struct Wakdata::HarvestLoot

Included Modules

Defined in:

wakdata/harvest_loot.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from module Wakdata::With::Quantity

quantity : UInt32 quantity

Instance methods inherited from module Wakdata::With::ItemId

item(items : Array(Wakdata::Item), jobItems : Array(Wakdata::JobItem)) : Wakdata::Item | Wakdata::JobItem | Nil
item(items : Array(Wakdata::Item)) : Wakdata::Item | Nil
item(jobItems : Array(Wakdata::JobItem)) : Wakdata::JobItem | Nil
item
, item_id : UInt32 item_id

Instance methods inherited from module Wakdata::With::Id

id : UInt32 id

Constructor Detail

def self.new(id : UInt32, item_id : UInt32, quantity : UInt32, required_prospection : UInt8, drop_rate : Float32, list_id : UInt32, quantity_per_item : UInt8, quantity_min : UInt32, quantity_max : UInt32, max_roll : UInt8, item_is_loot_list : Bool) #

[View source]
def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

def self.new(pull : JSON::PullParser) #

def self.new(bson : BSON) #

Allocate an instance and copies data from a BSON struct.

class User
  include BSON::Serializable
  property name : String
end

data = BSON.new
data["name"] = "John"
User.new(data)

Class Method Detail

def self.from_bson(bson : BSON) #

NOTE See self.new.


Instance Method Detail

def [](value : String) #

[View source]
def drop_rate : Float32 #

def item_is_loot_list : Bool #

def list_id : UInt32 #

def max_roll : UInt8 #

def quantity_max : UInt32 #

def quantity_min : UInt32 #

def quantity_per_item : UInt8 #

def required_prospection : UInt8 #

def to_bson(bson = BSON.new) #

Converts to a BSON representation.

user = User.new name: "John"
bson = user.to_bson