ICECreatureControl  1.3.2
Public Member Functions | Public Attributes | Properties | List of all members
ICE.Creatures.Objects.InventorySlotObject Class Reference
Inheritance diagram for ICE.Creatures.Objects.InventorySlotObject:
Inheritance graph
Collaboration diagram for ICE.Creatures.Objects.InventorySlotObject:
Collaboration graph

Public Member Functions

 InventorySlotObject ()
 
 InventorySlotObject (string _name)
 
 InventorySlotObject (string _name, int _amount)
 
 InventorySlotObject (ICEWorldBehaviour _component)
 
 InventorySlotObject (InventorySlotObject _slot)
 
void Init (GameObject _owner)
 
void Reset ()
 
GameObject UpdateItemObject ()
 
bool SetItemObject (GameObject _item)
 
GameObject SpawnItemObject (Vector3 _position, Quaternion _rotation)
 Spawns a new item object, changes its name and sets it active. More...
 
GameObject FindItemObject ()
 Finds the item object within the transform hierarchy. More...
 
bool AttachToSlot (GameObject _object)
 Attachs to slot. More...
 
bool DetachFromSlot (GameObject _object)
 Detachs from slot. More...
 
GameObject GiveItem (Vector3 _position, Quaternion _rotation)
 Gives a detached item. More...
 
GameObject GiveItem (Transform _transform, bool _attach)
 Gives an item from slot (optional attached to the specified transform). More...
 
GameObject GiveItem ()
 Gives an detached item. More...
 
void DropItem ()
 Drops an detached item. More...
 
void Copy (InventorySlotObject _slot)
 
int TryUpdateAmount (string _name, int _amount)
 
int UpdateAmount (int _amount)
 

Public Attributes

bool IsExclusive = false
 
bool UseDetachOnDie = false
 
float DropRange = 0
 
bool IsTransferable = true
 
bool UseRandomAmount = false
 

Properties

string SlotName [get, set]
 
Transform SlotTransform [get]
 
string ItemName [get, set]
 
GameObject ItemObject [get, set]
 
bool ItemUpdateRequired [get]
 
GameObject ItemReferenceObject [get]
 
bool ItemNameIsValid [get]
 
int Amount [get, set]
 
int MaxAmount [get, set]
 
int FreeCapacity [get]
 
bool IsChild [get]
 
bool IsNotional [get]
 
bool IsEquipped [get]
 

Constructor & Destructor Documentation

ICE.Creatures.Objects.InventorySlotObject.InventorySlotObject ( )
ICE.Creatures.Objects.InventorySlotObject.InventorySlotObject ( string  _name)
ICE.Creatures.Objects.InventorySlotObject.InventorySlotObject ( string  _name,
int  _amount 
)
ICE.Creatures.Objects.InventorySlotObject.InventorySlotObject ( ICEWorldBehaviour  _component)
ICE.Creatures.Objects.InventorySlotObject.InventorySlotObject ( InventorySlotObject  _slot)

Member Function Documentation

bool ICE.Creatures.Objects.InventorySlotObject.AttachToSlot ( GameObject  _object)

Attachs to slot.

Returns
true, if to slot was attached, false otherwise.
Parameters
_objectObject.

Here is the call graph for this function:

void ICE.Creatures.Objects.InventorySlotObject.Copy ( InventorySlotObject  _slot)
bool ICE.Creatures.Objects.InventorySlotObject.DetachFromSlot ( GameObject  _object)

Detachs from slot.

Returns
true, if from slot was detached, false otherwise.
Parameters
_objectObject.

Here is the call graph for this function:

void ICE.Creatures.Objects.InventorySlotObject.DropItem ( )

Drops an detached item.

Here is the caller graph for this function:

GameObject ICE.Creatures.Objects.InventorySlotObject.FindItemObject ( )

Finds the item object within the transform hierarchy.

Returns
The item object.
GameObject ICE.Creatures.Objects.InventorySlotObject.GiveItem ( Vector3  _position,
Quaternion  _rotation 
)

Gives a detached item.

Returns
The item.
Parameters
_positionPosition.
_rotationRotation.

Here is the caller graph for this function:

GameObject ICE.Creatures.Objects.InventorySlotObject.GiveItem ( Transform  _transform,
bool  _attach 
)

Gives an item from slot (optional attached to the specified transform).

Returns
The detached item.
Parameters
_transformTransform.
_attachIf set to true attach the item to the specified transform.

Here is the call graph for this function:

GameObject ICE.Creatures.Objects.InventorySlotObject.GiveItem ( )

Gives an detached item.

Returns
The item.
void ICE.Creatures.Objects.InventorySlotObject.Init ( GameObject  _owner)

Here is the caller graph for this function:

void ICE.Creatures.Objects.InventorySlotObject.Reset ( )

Here is the caller graph for this function:

bool ICE.Creatures.Objects.InventorySlotObject.SetItemObject ( GameObject  _item)

Here is the caller graph for this function:

GameObject ICE.Creatures.Objects.InventorySlotObject.SpawnItemObject ( Vector3  _position,
Quaternion  _rotation 
)

Spawns a new item object, changes its name and sets it active.

Returns
The item object.
Parameters
_positionPosition.
_rotationRotation.
int ICE.Creatures.Objects.InventorySlotObject.TryUpdateAmount ( string  _name,
int  _amount 
)

Here is the caller graph for this function:

int ICE.Creatures.Objects.InventorySlotObject.UpdateAmount ( int  _amount)
GameObject ICE.Creatures.Objects.InventorySlotObject.UpdateItemObject ( )

Member Data Documentation

float ICE.Creatures.Objects.InventorySlotObject.DropRange = 0
bool ICE.Creatures.Objects.InventorySlotObject.IsExclusive = false
bool ICE.Creatures.Objects.InventorySlotObject.IsTransferable = true
bool ICE.Creatures.Objects.InventorySlotObject.UseDetachOnDie = false
bool ICE.Creatures.Objects.InventorySlotObject.UseRandomAmount = false

Property Documentation

int ICE.Creatures.Objects.InventorySlotObject.Amount
getset
int ICE.Creatures.Objects.InventorySlotObject.FreeCapacity
get
bool ICE.Creatures.Objects.InventorySlotObject.IsChild
get
bool ICE.Creatures.Objects.InventorySlotObject.IsEquipped
get
bool ICE.Creatures.Objects.InventorySlotObject.IsNotional
get
string ICE.Creatures.Objects.InventorySlotObject.ItemName
getset
bool ICE.Creatures.Objects.InventorySlotObject.ItemNameIsValid
get
GameObject ICE.Creatures.Objects.InventorySlotObject.ItemObject
getset
GameObject ICE.Creatures.Objects.InventorySlotObject.ItemReferenceObject
get
bool ICE.Creatures.Objects.InventorySlotObject.ItemUpdateRequired
get
int ICE.Creatures.Objects.InventorySlotObject.MaxAmount
getset
string ICE.Creatures.Objects.InventorySlotObject.SlotName
getset
Transform ICE.Creatures.Objects.InventorySlotObject.SlotTransform
get

The documentation for this class was generated from the following file: