Class BuildableFobEntity<TInfo>
public class BuildableFobEntity<TInfo> : IBuildableFobEntity, IFobEntity, ITransformObject, IDisposable where TInfo : IBuildableFobEntityInfo
Type Parameters
TInfo
- Inheritance
-
BuildableFobEntity<TInfo>
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
BuildableFobEntity(TInfo?, IBuildable, Team, IServiceProvider, string?)
public BuildableFobEntity(TInfo? info, IBuildable buildable, Team team, IServiceProvider serviceProvider, string? iconOverride = null)
Parameters
infoTInfobuildableIBuildableteamTeamserviceProviderIServiceProvidericonOverridestring
Properties
Buildable
The buildable this FOB entity is based on.
public IBuildable Buildable { get; }
Property Value
Icon
The floating icon above this buildable.
public WorldIconInfo? Icon { get; }
Property Value
IdentifyingAsset
The primary asset that identifies this fob entity.
public virtual IAssetLink<Asset> IdentifyingAsset { get; }
Property Value
- IAssetLink<Asset>
Info
Shovelable or supply crate info of this buildable if it's configured.
public TInfo? Info { get; }
Property Value
- TInfo
IsIconVisible
Temporarily hides the icon.
public bool IsIconVisible { get; set; }
Property Value
Position
The world position of the object.
public Vector3 Position { get; }
Property Value
- Vector3
Exceptions
- GameThreadException
Not on main thread.
- NotSupportedException
Not able to set position.
PreventItemDrops
Whether or not contained items should be dropped when this buildable is destroyed.
public virtual bool PreventItemDrops { get; }
Property Value
Rotation
The world rotation of the object.
public Quaternion Rotation { get; }
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
Methods
DestroyIcon()
protected void DestroyIcon()
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public virtual void Dispose()
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
UpdateConfiguration(FobConfiguration)
Called when the FobConfiguration is updated.
public virtual void UpdateConfiguration(FobConfiguration configuration)
Parameters
configurationFobConfiguration