Class EmplacementEntity
public class EmplacementEntity : IFobEntity, ITransformObject
- Inheritance
-
EmplacementEntity
- Implements
- Inherited Members
- Extension Methods
Constructors
EmplacementEntity(WarfareVehicle, Team, IAssetLink<ItemPlaceableAsset>, IBuildable?)
public EmplacementEntity(WarfareVehicle emplacementVehicle, Team team, IAssetLink<ItemPlaceableAsset> foundationAsset, IBuildable? foundation = null)
Parameters
emplacementVehicleWarfareVehicleteamTeamfoundationAssetIAssetLink<ItemPlaceableAsset>foundationIBuildable
Properties
AuxilliaryBuildable
public IBuildable? AuxilliaryBuildable { get; }
Property Value
IdentifyingAsset
The primary asset that identifies this fob entity.
public IAssetLink<Asset> IdentifyingAsset { get; }
Property Value
- IAssetLink<Asset>
Position
The world position of the object.
public Vector3 Position { get; set; }
Property Value
- Vector3
Exceptions
- GameThreadException
Not on main thread.
- NotSupportedException
Not able to set position.
Rotation
The world rotation of the object.
public Quaternion Rotation { get; set; }
Property Value
- Quaternion
Exceptions
- GameThreadException
Not on main thread.
- NotSupportedException
Not able to set rotation.
Team
The team this buildable belongs to.
public Team Team { get; }
Property Value
Vehicle
public WarfareVehicle Vehicle { get; }
Property Value
Methods
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
SetPositionAndRotation(Vector3, Quaternion)
Set the position and rotation at the same time.
public void SetPositionAndRotation(Vector3 position, Quaternion rotation)
Parameters
positionVector3rotationQuaternion
Exceptions
- GameThreadException
Not on main thread.
- NotSupportedException
Not able to set position or rotation.
UpdateConfiguration(FobConfiguration)
Called when the FobConfiguration is updated.
public void UpdateConfiguration(FobConfiguration configuration)
Parameters
configurationFobConfiguration