C# Class MiningGame.Code.Entities.Particle

Inheritance: System.Entity
Afficher le fichier Open project: geel9/Minor-Destruction Class Usage Examples

Méthodes publiques

Свойство Type Description
active bool
degrees double
lifetime int
speed float

Méthodes publiques

Méthode 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 méthode

public Draw ( SpriteBatch sb ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
Résultat void

Particle() public méthode

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
Résultat System

Update() public méthode

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

Property Details

active public_oe property

public bool active
Résultat bool

degrees public_oe property

public double degrees
Résultat double

lifetime public_oe property

public int lifetime
Résultat int

speed public_oe property

public float speed
Résultat float