C# Class Nez.Transform

Exibir arquivo Open project: prime31/Nez Class Usage Examples

Public Properties

Property Type Description
entity System.Entity
shouldRoundPosition bool

Public Methods

Method Description
ToString ( ) : string
Transform ( System.Entity entity ) : System
copyFrom ( Transform transform ) : void
getChild ( int index ) : Transform

returns the Transform child at index

roundPosition ( ) : void

rounds the position of the Transform

setParent ( Transform parent ) : Transform

sets the parent Transform of this Transform

Private Methods

Method Description
setDirty ( DirtyType dirtyFlagType ) : void
setLocalPosition ( Vector2 localPosition ) : Transform
setLocalRotation ( float radians ) : Transform
setLocalRotationDegrees ( float degrees ) : Transform
setLocalScale ( Vector2 scale ) : Transform
setLocalScale ( float scale ) : Transform
setPosition ( Vector2 position ) : Transform
setPosition ( float x, float y ) : Transform
setRotation ( float radians ) : Transform
setRotationDegrees ( float degrees ) : Transform
setScale ( Vector2 scale ) : Transform
setScale ( float scale ) : Transform
updateTransform ( ) : void

Method Details

ToString() public method

public ToString ( ) : string
return string

Transform() public method

public Transform ( System.Entity entity ) : System
entity System.Entity
return System

copyFrom() public method

public copyFrom ( Transform transform ) : void
transform Transform
return void

getChild() public method

returns the Transform child at index
public getChild ( int index ) : Transform
index int Index.
return Transform

roundPosition() public method

rounds the position of the Transform
public roundPosition ( ) : void
return void

setParent() public method

sets the parent Transform of this Transform
public setParent ( Transform parent ) : Transform
parent Transform Parent.
return Transform

Property Details

entity public_oe property

the Entity associated with this transform
public Entity,System entity
return System.Entity

shouldRoundPosition public_oe static_oe property

if true, everytime position is set it will be rounded automatically
public static bool shouldRoundPosition
return bool