Otter
0.9.8.91
2d Game Development Framework based on SFML.Net
|
A Component that can manage a set of Bone Components that can move Entities around. Sort of like a system similar to Spine or Spriter, but moving actual Entities around instead of just textures. More...
Inherits Otter.Component.
Public Member Functions | |
void | AddAllBonesToScene () |
Adds every Bone in the Skeleton's Entity to the Scene that the Skeleton's Entity is in. More... | |
Bone | AddBone (Bone bone) |
Add a Bone to the Skeleton. More... | |
Bone | AddBone (string parentName, string name, Bone bone=null) |
Add a Bone to the Skeleton. More... | |
Bone | AddBone (Enum parentName, Enum name, Bone bone=null) |
Add a Bone to the Skeleton. More... | |
Bone | AddBone (Bone parent, Bone bone=null) |
Add a Bone to the Skeleton. More... | |
Bone | AddBone (string name, Bone bone=null) |
Add a Bone to the Skeleton. More... | |
Bone | AddBone (Enum id, Bone bone=null) |
Add a Bone to the Skeleton. More... | |
Bone | GetBone (string name) |
Retrieve a Bone by its string name. More... | |
Bone | GetBone (Enum name) |
Retrieve a Bone by its Enum name. More... | |
Bone | GetBone (int id) |
Retrieve a Bone by its int id. More... | |
Bone | GetBone (Entity e) |
Retrieve a Bone by its Entity. More... | |
List< Bone > | GetBones () |
A list of all the Bones contained in this Skeleton. More... | |
void | LoadXml (string xml) |
Load a Skeleton from XML data. More... | |
void | RemoveAllBonesFromScene () |
Remove all the Entities controlled by the Bones in this Skeleton from the Scene. More... | |
Bone | RemoveBone (string name, Bone bone=null) |
Remove a Bone from the Skeleton. More... | |
Bone | RemoveBone (Enum id) |
Remove a Bone from the Skeleton. More... | |
Bone | RemoveBone (Bone bone) |
Remove a Bone from the Skeleton. More... | |
override void | Render () |
Called during the Render on the parent Entity. More... | |
override void | Update () |
Called during the Update on the parent Entity. More... | |
Public Member Functions inherited from Otter.Component | |
T | GetEntity< T > () |
Get the Entity as a specific Type. More... | |
virtual void | Added () |
Called when the Component is added to the Entity. More... | |
virtual void | Removed () |
Called when the Component is removed from the Entity. More... | |
void | RemoveSelf () |
Removes the Component from its parent Entity. More... | |
virtual void | UpdateFirst () |
Called during the UpdateFirst on the parent Entity. More... | |
virtual void | UpdateLast () |
Called during the UpdateLast on the parent Entity. More... | |
T | GetComponent< T > () |
Gets the first Component of type T from this Component's Entity. More... | |
List< T > | GetComponents< T > () |
Gets a list of Components of type T from this Component's Entity. More... | |
Public Attributes | |
bool | RenderBones |
Determines if the Skeleton should render debug displays for each Bone. More... | |
Public Attributes inherited from Otter.Component | |
Entity | Entity |
The parent Entity of the Component. More... | |
bool | RenderAfterEntity = true |
Determines if the Component should render after the Entity has rendered. More... | |
bool | Visible = true |
Determines if the Component will render. More... | |
float | Timer = 0 |
How long the Component has been alive (added to an Entity and updated.) More... | |
Properties | |
Bone | Base [get] |
The base bone (the first bone added to the Skeleton.) More... | |
Bone | this[Enum name] [get] |
Get a Bone by enum name out of the Skeleton. More... | |
Bone | this[string name] [get] |
Get a Bone by enum name out of the Skeleton. More... | |
Properties inherited from Otter.Component | |
int | InstanceId [get, set] |
The Component's id for the Entity its attached to. More... | |
Scene | Scene [get] |
The Scene that the parent Entity is in. More... | |
Collider | Collider [get] |
The first Collider of the parent Entity. More... | |
Graphic | Graphic [get] |
The first Graphic of the parent Entity. More... | |
List< Graphic > | Graphics [get] |
The list of Graphics from the parent Entity. More... | |
List< Collider > | Colliders [get] |
The list of Colliders from the parent Entity. More... | |
A Component that can manage a set of Bone Components that can move Entities around. Sort of like a system similar to Spine or Spriter, but moving actual Entities around instead of just textures.
void Otter.Skeleton.AddAllBonesToScene | ( | ) |
Bone Otter.Skeleton.GetBone | ( | string | name | ) |
Bone Otter.Skeleton.GetBone | ( | Enum | name | ) |
Bone Otter.Skeleton.GetBone | ( | int | id | ) |
List<Bone> Otter.Skeleton.GetBones | ( | ) |
A list of all the Bones contained in this Skeleton.
void Otter.Skeleton.LoadXml | ( | string | xml | ) |
Load a Skeleton from XML data.
xml | The XML data to parse. |
void Otter.Skeleton.RemoveAllBonesFromScene | ( | ) |
|
virtual |
Called during the Render on the parent Entity.
Reimplemented from Otter.Component.
|
virtual |
Called during the Update on the parent Entity.
Reimplemented from Otter.Component.
bool Otter.Skeleton.RenderBones |
|
get |
|
get |