C# Class Shared.RenderData

Inheritance: DefinitionNetworkObject
Mostra file Open project: enBask/Asgard

Public Properties

Property Type Description
Content Microsoft.Xna.Framework.Content.ContentManager

Public Methods

Method Description
Draw ( SpriteBatch batch ) : void
GetPosition ( ) : Vector2
OnCreated ( AsgardBase instance, Entity entity ) : void
OnDestroyed ( AsgardBase instance, Entity entity, bool destoryEntity = true ) : void
RenderData ( ) : System
RenderData ( Midgard midgard, Entity entity, Microsoft.Xna.Framework.Content.ContentManager manager ) : System
Set ( Midgard midgard, Entity entity, Microsoft.Xna.Framework.Content.ContentManager manager ) : void
SetSpeed ( Entity entity, Farseer direction ) : void
UpdateFromPhysics ( ) : void

Private Methods

Method Description
CreatePhysics ( Midgard midgard, Entity entity, bool usePos = true ) : void

Method Details

Draw() public method

public Draw ( SpriteBatch batch ) : void
batch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

GetPosition() public method

public GetPosition ( ) : Vector2
return Vector2

OnCreated() public method

public OnCreated ( AsgardBase instance, Entity entity ) : void
instance AsgardBase
entity Entity
return void

OnDestroyed() public method

public OnDestroyed ( AsgardBase instance, Entity entity, bool destoryEntity = true ) : void
instance AsgardBase
entity Entity
destoryEntity bool
return void

RenderData() public method

public RenderData ( ) : System
return System

RenderData() public method

public RenderData ( Midgard midgard, Entity entity, Microsoft.Xna.Framework.Content.ContentManager manager ) : System
midgard Asgard.Core.Physics.Midgard
entity Entity
manager Microsoft.Xna.Framework.Content.ContentManager
return System

Set() public method

public Set ( Midgard midgard, Entity entity, Microsoft.Xna.Framework.Content.ContentManager manager ) : void
midgard Asgard.Core.Physics.Midgard
entity Entity
manager Microsoft.Xna.Framework.Content.ContentManager
return void

SetSpeed() public method

public SetSpeed ( Entity entity, Farseer direction ) : void
entity Entity
direction Farseer
return void

UpdateFromPhysics() public method

public UpdateFromPhysics ( ) : void
return void

Property Details

Content public_oe static_oe property

public static ContentManager,Microsoft.Xna.Framework.Content Content
return Microsoft.Xna.Framework.Content.ContentManager