C# Класс MiningGame.Code.Entities.Particle

Наследование: System.Entity
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
active bool
degrees double
lifetime int
speed float

Открытые методы

Метод Описание
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

Описание методов

Draw() публичный Метод

public Draw ( SpriteBatch sb ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
Результат void

Particle() публичный Метод

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
Результат System

Update() публичный Метод

public Update ( GameTime time, bool serverContext = false ) : void
time Microsoft.Xna.Framework.GameTime
serverContext bool
Результат void

Описание свойств

active публичное свойство

public bool active
Результат bool

degrees публичное свойство

public double degrees
Результат double

lifetime публичное свойство

public int lifetime
Результат int

speed публичное свойство

public float speed
Результат float