Class ModularVehicleComponent
Inheritance
System.Object
ModularVehicleComponent
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: Eco.Gameplay.dll
Syntax
[RequireComponent]
public class ModularVehicleComponent : WorldObjectComponent, ILinkable, IOwned, IHasSerializableID, IRPCAuthChecks, INotifyPropertyChanged, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions, IHasInteractions, IInventoryWorldObjectComponent, IPermanentDestroyHandler, ISyncRotationValue, IController, IViewController, IHasUniversalID, IModularVehicleState
Constructors
ModularVehicleComponent()
Declaration
public ModularVehicleComponent()
Properties
Attachments
Declaration
public AuthorizationInventory Attachments { get; set; }
Property Value
AttachmentTypesString
Declaration
public string AttachmentTypesString { get; }
Property Value
Type |
Description |
System.String |
|
Availability
Declaration
public override WorldObjectComponentClientAvailability Availability { get; }
Property Value
Overrides
IconName
Declaration
public override string IconName { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
Inventory
Declaration
public Inventory Inventory { get; }
Property Value
Rotation
Declaration
public Quaternion Rotation { get; set; }
Property Value
Segments
Declaration
public AuthorizationInventory Segments { get; set; }
Property Value
SegmentTypesString
Declaration
public string SegmentTypesString { get; }
Property Value
Type |
Description |
System.String |
|
State
Declaration
public ModularVehicleToolState State { get; set; }
Property Value
Declaration
public VehicleToolItem VehicleToolItem { get; }
Property Value
Methods
Destroy()
Declaration
public override void Destroy()
Overrides
Initialize(Int32, Int32, Type[], Type[])
Declaration
public void Initialize(int segmentSlots, int attachmentSlots, Type[] segmentTypes, Type[] attachTypes)
Parameters
Type |
Name |
Description |
System.Int32 |
segmentSlots |
|
System.Int32 |
attachmentSlots |
|
System.Type[] |
segmentTypes |
|
System.Type[] |
attachTypes |
|
OnVehicleMoved()
Declaration
public void OnVehicleMoved()
SetRotation(Quaternion)
Declaration
public void SetRotation(Quaternion value)
Parameters
Declaration
public void SetState(ModularVehicleToolState value)
Parameters
TryPickup(Player, InventoryChangeSet, Inventory, Boolean)
Declaration
public override InventoryMoveResult TryPickup(Player player, InventoryChangeSet playerInvChanges, Inventory targetInventory, bool force)
Parameters
Returns
Overrides
Declaration
public void UpdateVehicleToolItem()
Implements
System.ComponentModel.INotifyPropertyChanged
Extension Methods