struct LifeConfig
- LifeConfig
- GameComponent
- ECS::Component
- Struct
- Value
- Object
Defined in:
wif/game/life.crConstructors
- .new(produced : Float64, start_gen : Float64, degradation : Float64, ppm_scale : Float64, max_ppm : Float64)
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
Class Method Summary
Instance Method Summary
- #clone
- #copy_with(produced _produced = @produced, start_gen _start_gen = @start_gen, degradation _degradation = @degradation, ppm_scale _ppm_scale = @ppm_scale, max_ppm _max_ppm = @max_ppm)
- #degradation : Float64
- #max_ppm : Float64
- #ppm_scale : Float64
- #produced : Float64
- #start_gen : Float64
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(produced : Float64, start_gen : Float64, degradation : Float64, ppm_scale : Float64, max_ppm : Float64)
#
Class Method Detail
Instance Method Detail
def copy_with(produced _produced = @produced, start_gen _start_gen = @start_gen, degradation _degradation = @degradation, ppm_scale _ppm_scale = @ppm_scale, max_ppm _max_ppm = @max_ppm)
#