Photon Fusion 2.0.0

Public Member Functions | Public Attributes | List of all members
NetworkObjectReleaseContext Struct Reference

Represents the context for releasing a network object. This struct is unsafe because it uses pointers. More...

Public Member Functions

 NetworkObjectReleaseContext (NetworkObject obj, NetworkObjectTypeId typeId, bool isBeingDestroyed, bool isNested)
 Initializes a new instance of the NetworkObjectReleaseContext struct with the specified parameters.
 
override string ToString ()
 Returns a string that represents the current object.
 

Public Attributes

readonly bool IsBeingDestroyed
 Indicates whether the network object is being destroyed.
 
readonly bool IsNestedObject
 Indicates whether the network object is a nested object.
 
readonly NetworkObject Object
 The network object to be released.
 
readonly NetworkObjectTypeId TypeId
 The type identifier of the network object.
 

Detailed Description

Represents the context for releasing a network object. This struct is unsafe because it uses pointers.

Constructor & Destructor Documentation

◆ NetworkObjectReleaseContext()

NetworkObjectReleaseContext ( NetworkObject  obj,
NetworkObjectTypeId  typeId,
bool  isBeingDestroyed,
bool  isNested 
)

Initializes a new instance of the NetworkObjectReleaseContext struct with the specified parameters.

Parameters
objThe network object to be released.
typeIdThe type identifier of the network object.
isBeingDestroyedIndicates whether the network object is being destroyed.
isNestedIndicates whether the network object is a nested object.

Member Function Documentation

◆ ToString()

override string ToString ( )

Returns a string that represents the current object.

Returns
A string that represents the current object.