class Nya::Scene

Included Modules

Defined in:

nya/scene.cr

Constant Summary

NYA_REGISTERED = true
PROPERTIES = {"root" => "Array(GameObject)"} of String => String

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(root : Array(Nya::GameObject)) #

Initializes scene with #root


[View source]
def self.new #

Initializes scene with empty root


[View source]

Class Method Detail

def self.deserialize(xml, ctx : SerializationContext | Nil = nil) #

[View source]
def self.transform_name(name) #

def self.xml_name #

Returns XML compatible name of a type (see Nya::Serializable.translate_type)


Instance Method Detail

def awake #

Post-initializes scene objects


[View source]
def find_components_of(type : U.class) : Array(U) forall U #

[View source]
def render(tag : String | Nil = nil) #

[View source]
def root : Array(GameObject) #

[View source]
def root=(root : Array(GameObject)) #

[View source]
def update #

[View source]