class Nya::Component

Overview

Component class

This class must be a superclass for all custom components (like Component in Unity3D)

Direct Known Subclasses

Defined in:

nya/object.cr

Constant Summary

NYA_REGISTERED = true

Component class

This class must be a superclass for all custom components (like Component in Unity3D)

PROPERTIES = {} of String => String

Component class

This class must be a superclass for all custom components (like Component in Unity3D)

Class Method Summary

Instance Method Summary

Instance methods inherited from class Nya::Object

ancestor_or_same?(u : U.class) forall U ancestor_or_same?, awake awake, backend backend, enabled : Bool enabled, enabled=(enabled : Bool) enabled=, enabled? : Bool enabled?, engine engine, id : String? id, id=(id : Nil | String) id=, matches_tag?(tag) matches_tag?, render(tag : String | Nil = nil) render, tag : String? tag, tag=(tag : Nil | String) tag=, update update

Class methods inherited from class Nya::Object

deserialize(xml, ctx : SerializationContext | Nil = nil) deserialize, transform_name(name) transform_name, xml_name xml_name

Class Method Detail

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

Component class

This class must be a superclass for all custom components (like Component in Unity3D)


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

Component class

This class must be a superclass for all custom components (like Component in Unity3D)


def self.xml_name #

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


Instance Method Detail

def log #

[View source]
def metadata #

[View source]
def metadata=(metadata : Nya::Render::Backend::Metadata | Nil) #

[View source]

[View source]
def parent #

Returns parent of component

Raises an exception if parent is nil


[View source]
def parent=(parent : Nil | Nya::GameObject) #

[View source]
def parent? : Nya::GameObject? #

Returns parent or nil


[View source]