class Nya::Scene
- Nya::Scene
- Reference
- Object
Included Modules
- Nya::Serializable
Defined in:
nya/scene.crConstant Summary
-
NYA_REGISTERED =
true
-
PROPERTIES =
{"root" => "Array(GameObject)"} of String => String
Constructors
-
.new(root : Array(Nya::GameObject))
Initializes scene with
#root
-
.new
Initializes scene with empty root
Class Method Summary
- .deserialize(xml, ctx : SerializationContext | Nil = nil)
- .transform_name(name)
-
.xml_name
Returns XML compatible name of a type (see
Nya::Serializable.translate_type
)
Instance Method Summary
-
#awake
Post-initializes scene objects
- #find_components_of(type : U.class) : Array(U) forall U
- #render(tag : String | Nil = nil)
- #root : Array(GameObject)
- #root=(root : Array(GameObject))
- #update