class

PointClickEngine::Core::StateValue

Inherits YAML::Serializable < Reference < Object

Represents a value in the game state

Constructors

new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
Source
new(value : String | Int32 | Float32 | Bool)
Source
new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Source

Instance methods

as_bool?
Source
as_float?
Source
as_int?
Source
as_string?

Type-safe getters

Source
to_s(io)

Convert to string for display

Source
value
Source
value=(value : String | Int32 | Float32 | Bool)
Source