C# Class MiningGame.Code.Entities.Particle

Inheritance: System.Entity
Mostra file Open project: geel9/Minor-Destruction Class Usage Examples

Public Properties

Property Type Description
active bool
degrees double
lifetime int
speed float

Public Methods

Method Description
Draw ( SpriteBatch sb ) : void
Particle ( Vector2 position, double degrees, string assetname, float speed, float scale = 1f, int lifetime = 100, bool active = true, byte alpha = 255 ) : System
Update ( GameTime time, bool serverContext = false ) : void

Method Details

Draw() public method

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

Particle() public method

public Particle ( Vector2 position, double degrees, string assetname, float speed, float scale = 1f, int lifetime = 100, bool active = true, byte alpha = 255 ) : System
position Vector2
degrees double
assetname string
speed float
scale float
lifetime int
active bool
alpha byte
return System

Update() public method

public Update ( GameTime time, bool serverContext = false ) : void
time Microsoft.Xna.Framework.GameTime
serverContext bool
return void

Property Details

active public_oe property

public bool active
return bool

degrees public_oe property

public double degrees
return double

lifetime public_oe property

public int lifetime
return int

speed public_oe property

public float speed
return float