Table of Contents

Class ItemInstance

Namespace
DefaultNamespace
Assembly
Assembly-CSharp.dll
public class ItemInstance : MonoBehaviour
Inheritance
ItemInstance
Inherited Members
Extension Methods

Constructors

ItemInstance()

public ItemInstance()

Fields

instanceData

public ItemInstanceData instanceData

Field Value

ItemInstanceData

isHeld

public bool isHeld

Field Value

bool

isHeldByMe

public bool isHeldByMe

Field Value

bool

item

public Item item

Field Value

Item

itemBody

public Bodypart itemBody

Field Value

Bodypart

m_guid

public Optionable<Guid> m_guid

Field Value

Optionable<Guid>

m_syncer

public ItemDataSyncer m_syncer

Field Value

ItemDataSyncer

onItemEquipped

public UnityEvent<Player> onItemEquipped

Field Value

UnityEvent<Player>

onUnequip

public UnityEvent<Player> onUnequip

Field Value

UnityEvent<Player>

rig

public Rigidbody rig

Field Value

Rigidbody

wasHeldOnstart

public bool wasHeldOnstart

Field Value

bool

Methods

CallRPC(ItemRPC, BinarySerializer)

public void CallRPC(ItemRPC rpc, BinarySerializer binarySerializer)

Parameters

rpc ItemRPC
binarySerializer BinarySerializer

ConfigItemPosition(Player)

public void ConfigItemPosition(Player player)

Parameters

player Player

InitItem(Item, ItemInstanceData, PhotonView, PhotonView)

public void InitItem(Item setItem, ItemInstanceData data, PhotonView playerView, PhotonView pickupView)

Parameters

setItem Item
data ItemInstanceData
playerView PhotonView
pickupView PhotonView

OnCollisionEnter(Collision)

public void OnCollisionEnter(Collision other)

Parameters

other Collision

OnCollisionStay(Collision)

public void OnCollisionStay(Collision other)

Parameters

other Collision

OnDestroy()

public void OnDestroy()

RegisterRPC(ItemRPC, Action<BinaryDeserializer>)

public void RegisterRPC(ItemRPC rpc, Action<BinaryDeserializer> action)

Parameters

rpc ItemRPC
action Action<BinaryDeserializer>

SetItemBody(Bodypart)

public void SetItemBody(Bodypart part)

Parameters

part Bodypart

Update()

public void Update()