Class MyForageableEntity
Inheritance
System.Object
MyForageableEntity
Assembly: Sandbox.Game.dll
Syntax
[MyEntityType]
public class MyForageableEntity : MyEntity, IMyEntity, IMyEntity, IMyEventProxy, IMyEventOwner
Constructors
MyForageableEntity()
Declaration
public MyForageableEntity()
MyForageableEntity(MyEnvironmentSector, Int32, MyForageableDefinition)
Declaration
public MyForageableEntity(MyEnvironmentSector sector, int itemId, MyForageableDefinition definition)
Parameters
Properties
Definition
Declaration
public MyForageableDefinition Definition { get; }
Property Value
EnvironmentSector
Declaration
public MyEnvironmentSector EnvironmentSector { get; }
Property Value
ItemId
Declaration
public int ItemId { get; }
Property Value
Type |
Description |
System.Int32 |
|
PlanetId
Declaration
public long PlanetId { get; }
Property Value
Type |
Description |
System.Int64 |
|
SectorId
Declaration
public long SectorId { get; }
Property Value
Type |
Description |
System.Int64 |
|
WasForaged
Declaration
public bool WasForaged { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
Forage(Nullable<Int64>)
Declaration
public void Forage(Nullable<long> collectorId = null)
Parameters
Type |
Name |
Description |
System.Nullable<System.Int64> |
collectorId |
|
GetObjectBuilder(Boolean)
Declaration
public override MyObjectBuilder_EntityBase GetObjectBuilder(bool copy = false)
Parameters
Type |
Name |
Description |
System.Boolean |
copy |
|
Returns
Overrides
Init(MyObjectBuilder_EntityBase)
Declaration
public override void Init(MyObjectBuilder_EntityBase objectBuilder)
Parameters
Overrides
Implements
Extension Methods