Class Unit
- Namespace
- SharpPluginLoader.Core
- Assembly
- SharpPluginLoader.Core.dll
Represents an instance of a cUnit.
public class Unit : MtObject
- Inheritance
-
Unit
- Derived
- Inherited Members
Remarks
A unit is basically an object that can act on its own (i.e. has an update method). It doesn't necessarily need to have a physical representation in the game world (e.g. Schedulers, Cameras, Visual Filters are also units). But everything that does have a physical representation in the game world is a unit.
Constructors
Unit()
public Unit()
Unit(nint)
public Unit(nint instance)
Parameters
instance
nint
Properties
ComponentManager
The unit's component manager.
public ComponentManager ComponentManager { get; }
Property Value
DeltaSec
The time in seconds since the last update.
public ref float DeltaSec { get; }
Property Value
DeltaTime
The time since the last update.
public ref float DeltaTime { get; }
Property Value
Draw
public bool Draw { get; set; }
Property Value
DrawMode
The draw mode of the unit.
public ref uint DrawMode { get; }
Property Value
Fix
public bool Fix { get; set; }
Property Value
LineNo
The line that the unit is in, see MoveLine.
public ref uint LineNo { get; }
Property Value
Move
public bool Move { get; set; }
Property Value
Name
The name of the unit.
public string Name { get; }
Property Value
Next
The next unit in the line.
public Unit? Next { get; }
Property Value
Prev
The previous unit in the line.
public Unit? Prev { get; }
Property Value
Rno
The RNO of the unit.
public ref uint Rno { get; }
Property Value
UnitGroup
The unit group of the unit.
public ref ulong UnitGroup { get; }
Property Value
UnitParam
The unit parameter of the unit.
public ref uint UnitParam { get; }