Class FpsInventorySwapper
Inheritance
FpsInventorySwapper
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 FpsInventorySwapper : IQuickSlotItem
Constructors
FpsInventorySwapper(IQuickSlots, Int32, Int32)
Declaration
public FpsInventorySwapper(IQuickSlots owner, int index, int max)
Parameters
| Type |
Name |
Description |
| IQuickSlots |
owner |
|
| System.Int32 |
index |
|
| System.Int32 |
max |
|
Properties
displayImage
Declaration
public Sprite displayImage { get; }
Property Value
gameObject
Declaration
public GameObject gameObject { get; }
Property Value
| Type |
Description |
| GameObject |
|
isDroppable
Declaration
public bool isDroppable { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
isSelectable
Declaration
public bool isSelectable { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
isSelected
Declaration
public bool isSelected { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
isUsable
Declaration
public bool isUsable { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
quickSlot
Declaration
public int quickSlot { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
slots
Declaration
public IQuickSlots slots { get; }
Property Value
Declaration
public Transform transform { get; }
Property Value
| Type |
Description |
| Transform |
|
wieldable
Declaration
public IWieldable wieldable { get; }
Property Value
Methods
DropItem(Vector3, Vector3, Vector3)
Declaration
public bool DropItem(Vector3 position, Vector3 forward, Vector3 velocity)
Parameters
| Type |
Name |
Description |
| Vector3 |
position |
|
| Vector3 |
forward |
|
| Vector3 |
velocity |
|
Returns
| Type |
Description |
| System.Boolean |
|
GetComponent(Type)
Declaration
public Component GetComponent(Type t)
Parameters
| Type |
Name |
Description |
| System.Type |
t |
|
Returns
| Type |
Description |
| Component |
|
GetComponent<T>()
Declaration
public T GetComponent<T>()
Returns
Type Parameters
GetComponentInChildren(Type)
Declaration
public Component GetComponentInChildren(Type t)
Parameters
| Type |
Name |
Description |
| System.Type |
t |
|
Returns
| Type |
Description |
| Component |
|
GetComponentInChildren<T>()
Declaration
public T GetComponentInChildren<T>()
Returns
Type Parameters
GetComponentInParent(Type)
Declaration
public Component GetComponentInParent(Type t)
Parameters
| Type |
Name |
Description |
| System.Type |
t |
|
Returns
| Type |
Description |
| Component |
|
GetComponentInParent<T>()
Declaration
public T GetComponentInParent<T>()
Returns
Type Parameters
GetComponents(Type)
Declaration
public Component[] GetComponents(Type t)
Parameters
| Type |
Name |
Description |
| System.Type |
t |
|
Returns
| Type |
Description |
| Component[] |
|
GetComponents<T>()
Declaration
public T[] GetComponents<T>()
Returns
Type Parameters
GetComponentsInChildren(Type, Boolean)
Declaration
public Component[] GetComponentsInChildren(Type t, bool includeInactive = false)
Parameters
| Type |
Name |
Description |
| System.Type |
t |
|
| System.Boolean |
includeInactive |
|
Returns
| Type |
Description |
| Component[] |
|
GetComponentsInChildren<T>(Boolean)
Declaration
public T[] GetComponentsInChildren<T>(bool includeInactive = false)
Parameters
| Type |
Name |
Description |
| System.Boolean |
includeInactive |
|
Returns
Type Parameters
GetComponentsInParent(Type, Boolean)
Declaration
public Component[] GetComponentsInParent(Type t, bool includeInactive = false)
Parameters
| Type |
Name |
Description |
| System.Type |
t |
|
| System.Boolean |
includeInactive |
|
Returns
| Type |
Description |
| Component[] |
|
GetComponentsInParent<T>(Boolean)
Declaration
public T[] GetComponentsInParent<T>(bool includeInactive = false)
Parameters
| Type |
Name |
Description |
| System.Boolean |
includeInactive |
|
Returns
Type Parameters
GetSlotItem(Int32)
Declaration
public IQuickSlotItem GetSlotItem(int subIndex)
Parameters
| Type |
Name |
Description |
| System.Int32 |
subIndex |
|
Returns
OnDeselect()
Declaration
public Waitable OnDeselect()
Returns
OnDeselectInstant()
Declaration
public void OnDeselectInstant()
OnSelect()
Declaration
SetSlotItem(Int32, IQuickSlotItem)
Declaration
public void SetSlotItem(int subIndex, IQuickSlotItem item)
Parameters
UseItem()
Declaration
Implements