struct Config

Defined in:

wif/game/systems.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from struct GameComponent

after_initialize after_initialize

Constructor methods inherited from struct GameComponent

new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) new

Class methods inherited from struct GameComponent

component_index component_index

Constructor Detail

def self.new(n_skills : Int32, work_duration : Int32, relation_chance : Array(Float64), relation_stress : Array(Float64), support_days : Int32, antistress : Array(Float64), debug : Bool) #

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

Class Method Detail

def self.component_index #

Instance Method Detail

def antistress : Array(Float64) #

def clone #

[View source]
def copy_with(n_skills _n_skills = @n_skills, work_duration _work_duration = @work_duration, relation_chance _relation_chance = @relation_chance, relation_stress _relation_stress = @relation_stress, support_days _support_days = @support_days, antistress _antistress = @antistress, debug _debug = @debug) #

[View source]
def debug : Bool #

def n_skills : Int32 #

def relation_chance : Array(Float64) #

def relation_stress : Array(Float64) #

def support_days : Int32 #

def work_duration : Int32 #