abstract struct ECS::YAMLComponent

Included Modules

Defined in:

yaml.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from struct ECS::Component

initialize initialize

Constructor methods inherited from struct ECS::Component

new new

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]
def self.new #

[View source]

Class Method Detail

def self.component_index #

[View source]

Instance Method Detail

def to_yaml(yaml : YAML::Nodes::Builder) #

this is a hack - it copies substancial part of logic from Crystal stdlib just for one thing - automatically serialize type field


[View source]