Class ItemInstanceHandler
- Namespace
- DefaultNamespace
- Assembly
- Assembly-CSharp.dll
public class ItemInstanceHandler : Singleton<ItemInstanceHandler>
- Inheritance
-
ItemInstanceHandler
- Inherited Members
-
- Extension Methods
-
Constructors
ItemInstanceHandler()
public ItemInstanceHandler()
Fields
m_itemInstances
public Dictionary<Guid, ItemInstance> m_itemInstances
Field Value
- Dictionary<Guid, ItemInstance>
m_listenerHandle
public ListenerHandle m_listenerHandle
Field Value
- ListenerHandle
m_rpcActions
public Dictionary<Guid, Dictionary<ItemRPC, Action<BinaryDeserializer>>> m_rpcActions
Field Value
- Dictionary<Guid, Dictionary<ItemRPC, Action<BinaryDeserializer>>>
Methods
CallRPC(Guid, ItemRPC, BinarySerializer)
public static void CallRPC(Guid guid, ItemRPC rpc, BinarySerializer binarySerializer)
Parameters
guid
Guid
rpc
ItemRPC
binarySerializer
BinarySerializer
HandleRPC(ItemInstancePackage)
public static void HandleRPC(ItemInstancePackage package)
Parameters
package
ItemInstancePackage
OnCreated()
protected override void OnCreated()
OnDestroy()
RegisterItemInstance(Guid, ItemInstance)
public static void RegisterItemInstance(Guid guid, ItemInstance itemInstance)
Parameters
guid
Guid
itemInstance
ItemInstance
RegisterRPC(Guid, ItemRPC, Action<BinaryDeserializer>)
public static void RegisterRPC(Guid itemInstance, ItemRPC rpc, Action<BinaryDeserializer> action)
Parameters
itemInstance
Guid
rpc
ItemRPC
action
Action<BinaryDeserializer>
UnregisterItemInstance(Guid)
public static void UnregisterItemInstance(Guid guid)
Parameters
guid
Guid