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, IHasEnvVars
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
CanPutAttachment(User)
Declaration
[EnvVar]
public bool CanPutAttachment(User user)
Parameters
| Type |
Name |
Description |
| User |
user |
|
Returns
| Type |
Description |
| System.Boolean |
|
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()
PutAttachment(Player, InteractionTriggerInfo, InteractionTarget)
Declaration
[Interaction]
public void PutAttachment(Player player, InteractionTriggerInfo trigger, InteractionTarget target)
Parameters
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