Class FpsInventoryQuickUseSwappableItem
Inheritance
FpsInventoryQuickUseSwappableItem
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: NeoFPS.dll
Syntax
public class FpsInventoryQuickUseSwappableItem : FpsInventoryItemBase, IInventoryItem, INeoSerializableComponent, IQuickSlotItem, ISwappable, IMonoBehaviour
Properties
category
Declaration
public FpsSwappableCategory category { get; }
Property Value
displayImage
Declaration
public Sprite displayImage { get; }
Property Value
isDroppable
Declaration
public bool isDroppable { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
isSelectable
Declaration
public virtual bool isSelectable { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
isSelected
Declaration
public bool isSelected { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
isUsable
Declaration
public virtual bool isUsable { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
itemIdentifier
Declaration
public override int itemIdentifier { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
Overrides
maxQuantity
Declaration
public override int maxQuantity { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
Overrides
quickSlot
Declaration
public int quickSlot { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
slots
Declaration
public IQuickSlots slots { get; }
Property Value
wieldable
Declaration
public IWieldable wieldable { get; }
Property Value
Methods
Awake()
Declaration
protected override void Awake()
Overrides
CanUseWieldable()
Declaration
protected virtual bool CanUseWieldable()
Returns
| Type |
Description |
| System.Boolean |
|
DropItem(Vector3, Vector3, Vector3)
Declaration
public virtual bool DropItem(Vector3 position, Vector3 forward, Vector3 velocity)
Parameters
| Type |
Name |
Description |
| Vector3 |
position |
|
| Vector3 |
forward |
|
| Vector3 |
velocity |
|
Returns
| Type |
Description |
| System.Boolean |
|
FixedUpdate()
Declaration
protected void FixedUpdate()
OnAddToInventory(IInventory, InventoryAddResult)
Declaration
public override void OnAddToInventory(IInventory i, InventoryAddResult addResult)
Parameters
Overrides
OnDeselect()
Declaration
public virtual Waitable OnDeselect()
Returns
OnDeselectInstant()
Declaration
public virtual void OnDeselectInstant()
OnDisable()
Declaration
protected void OnDisable()
OnEnable()
Declaration
protected void OnEnable()
OnRemoveFromInventory()
Declaration
public override void OnRemoveFromInventory()
Overrides
OnSelect()
Declaration
public virtual void OnSelect()
OnValidate()
Declaration
protected override void OnValidate()
Overrides
OnZeroQuantity()
Declaration
protected override void OnZeroQuantity()
Overrides
ReadProperties(INeoDeserializer, NeoSerializedGameObject)
Declaration
public override void ReadProperties(INeoDeserializer reader, NeoSerializedGameObject nsgo)
Parameters
Overrides
UseItem()
Declaration
WriteProperties(INeoSerializer, NeoSerializedGameObject, SaveMode)
Declaration
public override void WriteProperties(INeoSerializer writer, NeoSerializedGameObject nsgo, SaveMode saveMode)
Parameters
Overrides
Events
onUsed
Declaration
public event UnityAction onUsed
Event Type
| Type |
Description |
| UnityAction |
|
Implements