class Nya::Component
- Nya::Component
- Nya::Object
- Reference
- Object
Overview
Component class
This class must be a superclass for all custom components (like Component in Unity3D)
Direct Known Subclasses
- Nya::Misc::CameraController
- Nya::Misc::DebugInfo
- Nya::Render::Camera
- Nya::Render::Font
- Nya::Render::Light
- Nya::Render::Mesh
- Nya::Render::ShaderProgram
- Nya::Render::Text2D
- Nya::Render::Texture
- Nya::Transform
Defined in:
nya/object.crConstant 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
-
.deserialize(xml, ctx : SerializationContext | Nil = nil)
Component class
-
.transform_name(name)
Component class
-
.xml_name
Returns XML compatible name of a type (see
Nya::Serializable.translate_type
)
Instance Method Summary
- #log
- #metadata
- #metadata=(metadata : Nya::Render::Backend::Metadata | Nil)
- #metadata? : Nya::Render::Backend::Metadata?
-
#parent
Returns parent of component
- #parent=(parent : Nil | Nya::GameObject)
-
#parent? : Nya::GameObject?
Returns parent or nil
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)
def self.transform_name(name)
#
Component class
This class must be a superclass for all custom components (like Component in Unity3D)