struct

ECS::YAMLComponent

Inherits YAML::Serializable < ECS::Component < Cannon::AutoToIo < Cannon::Auto < Struct < Value < Object

Constructors

new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
Source
new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Source

Class methods

component_index
Source

Instance methods

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

Source