Class MyAssetModifierComponent
Inheritance
System.Object
MyAssetModifierComponent
Assembly: Sandbox.Game.dll
Syntax
[StaticEventOwner]
[MyComponentBuilder]
public class MyAssetModifierComponent : MyEntityComponentBase, IMyEntityComponentBase, IMyComponentBase
Constructors
MyAssetModifierComponent()
Declaration
public MyAssetModifierComponent()
Properties
AssetModifiers
Declaration
public List<MyDefinitionId> AssetModifiers { get; }
Property Value
ComponentTypeDebugString
Declaration
public override string ComponentTypeDebugString { get; }
Property Value
| Type |
Description |
| System.String |
|
Overrides
Methods
ApplyAssetModifierSync(Int64, Byte[], Boolean)
Declaration
[Event(null, 258)]
[Reliable]
[Server]
[Broadcast]
public static void ApplyAssetModifierSync(long entityId, byte[] checkData, bool addToList)
Parameters
| Type |
Name |
Description |
| System.Int64 |
entityId |
|
| System.Byte[] |
checkData |
|
| System.Boolean |
addToList |
|
ApplyAssetModifierSync(Int64, String, Boolean)
Declaration
[Event(null, 293)]
[Reliable]
[Server]
[Broadcast]
public static void ApplyAssetModifierSync(long entityId, string assetModifierId, bool addToList)
Parameters
| Type |
Name |
Description |
| System.Int64 |
entityId |
|
| System.String |
assetModifierId |
|
| System.Boolean |
addToList |
|
Deserialize(MyObjectBuilder_ComponentBase)
Declaration
public override void Deserialize(MyObjectBuilder_ComponentBase builder)
Parameters
Overrides
IsSerialized()
Declaration
public override bool IsSerialized()
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
LazyUpdate()
Declaration
Returns
| Type |
Description |
| System.Boolean |
|
OnRemovedFromScene()
Declaration
public override void OnRemovedFromScene()
Overrides
ResetDrill(MyEntity)
Declaration
public static void ResetDrill(MyEntity entity)
Parameters
ResetGrinder(MyEntity)
Declaration
public static void ResetGrinder(MyEntity entity)
Parameters
ResetRifle(MyEntity)
Declaration
public static void ResetRifle(MyEntity entity)
Parameters
ResetSlot(MyGameInventoryItemSlot)
Declaration
public void ResetSlot(MyGameInventoryItemSlot slot)
Parameters
| Type |
Name |
Description |
| VRage.GameServices.MyGameInventoryItemSlot |
slot |
|
ResetWelder(MyEntity)
Declaration
public static void ResetWelder(MyEntity entity)
Parameters
Serialize(Boolean)
Declaration
public override MyObjectBuilder_ComponentBase Serialize(bool copy = false)
Parameters
| Type |
Name |
Description |
| System.Boolean |
copy |
|
Returns
Overrides
SetDefaultTextures(MyEntity, String)
Declaration
public static void SetDefaultTextures(MyEntity entity, string materialName)
Parameters
| Type |
Name |
Description |
| MyEntity |
entity |
|
| System.String |
materialName |
|
TryAddAssetModifier(Byte[])
Declaration
public bool TryAddAssetModifier(byte[] checkData)
Parameters
| Type |
Name |
Description |
| System.Byte[] |
checkData |
|
Returns
| Type |
Description |
| System.Boolean |
|
TryAddAssetModifier(String)
Declaration
public bool TryAddAssetModifier(string assetModifierId)
Parameters
| Type |
Name |
Description |
| System.String |
assetModifierId |
|
Returns
| Type |
Description |
| System.Boolean |
|
Extension Methods