struct Recipe

Defined in:

mechanics/craft.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(name : String, desc : String, work : Int32, require_tech : Array(ECS::Entity), use : Hash(ECS::Entity, Int32), result : Hash(ECS::Entity, Int32)) #

[View source]

Class Method Detail

def self.component_index #

Instance Method Detail

def clone #

[View source]
def copy_with(name _name = @name, desc _desc = @desc, work _work = @work, require_tech _require_tech = @require_tech, use _use = @use, result _result = @result) #

[View source]
def desc : String #

def name : String #

def require_tech : Array(ECS::Entity) #

def result : Hash(ECS::Entity, Int32) #

def use : Hash(ECS::Entity, Int32) #

def work : Int32 #