Table of Contents

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

ComponentManager

DeltaSec

The time in seconds since the last update.

public ref float DeltaSec { get; }

Property Value

float

DeltaTime

The time since the last update.

public ref float DeltaTime { get; }

Property Value

float

Draw

public bool Draw { get; set; }

Property Value

bool

DrawMode

The draw mode of the unit.

public ref uint DrawMode { get; }

Property Value

uint

Fix

public bool Fix { get; set; }

Property Value

bool

LineNo

The line that the unit is in, see MoveLine.

public ref uint LineNo { get; }

Property Value

uint

Move

public bool Move { get; set; }

Property Value

bool

Name

The name of the unit.

public string Name { get; }

Property Value

string

Next

The next unit in the line.

public Unit? Next { get; }

Property Value

Unit

Prev

The previous unit in the line.

public Unit? Prev { get; }

Property Value

Unit

Rno

The RNO of the unit.

public ref uint Rno { get; }

Property Value

uint

UnitGroup

The unit group of the unit.

public ref ulong UnitGroup { get; }

Property Value

ulong

UnitParam

The unit parameter of the unit.

public ref uint UnitParam { get; }

Property Value

uint