Class FpsInventoryItemBase
Inheritance
FpsInventoryItemBase
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 abstract class FpsInventoryItemBase : MonoBehaviour, IInventoryItem, INeoSerializableComponent
Properties
fpsInventory
Declaration
protected FpsInventoryBase fpsInventory { get; }
Property Value
inventory
Declaration
public IInventory inventory { get; }
Property Value
itemIdentifier
Declaration
public virtual int itemIdentifier { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
maxQuantity
Declaration
public virtual int maxQuantity { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
neoSerializedGameObject
Declaration
protected NeoSerializedGameObject neoSerializedGameObject { get; }
Property Value
owner
Declaration
public ICharacter owner { get; }
Property Value
quantity
Declaration
public int quantity { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
Methods
Awake()
Declaration
protected virtual void Awake()
OnAddToInventory(IInventory, InventoryAddResult)
Declaration
public virtual void OnAddToInventory(IInventory i, InventoryAddResult addResult)
Parameters
OnRemoveFromInventory()
Declaration
public virtual void OnRemoveFromInventory()
OnValidate()
Declaration
protected virtual void OnValidate()
OnZeroQuantity()
Declaration
protected virtual void OnZeroQuantity()
ReadProperties(INeoDeserializer, NeoSerializedGameObject)
Declaration
public virtual void ReadProperties(INeoDeserializer reader, NeoSerializedGameObject nsgo)
Parameters
WriteProperties(INeoSerializer, NeoSerializedGameObject, SaveMode)
Declaration
public virtual void WriteProperties(INeoSerializer writer, NeoSerializedGameObject nsgo, SaveMode saveMode)
Parameters
Events
onAddToInventory
Declaration
public event UnityAction onAddToInventory
Event Type
| Type |
Description |
| UnityAction |
|
onOwnerChange
Declaration
public event UnityAction<ICharacter, ICharacter> onOwnerChange
Event Type
onQuantityChange
Declaration
public event UnityAction onQuantityChange
Event Type
| Type |
Description |
| UnityAction |
|
onRemoveFromInventory
Declaration
public event UnityAction onRemoveFromInventory
Event Type
| Type |
Description |
| UnityAction |
|
Implements