Photon Fusion 2.0.3

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. More...
 
override string ToString ()
 Returns a string that represents the current object. More...
 

Public Attributes

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

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.

Member Data Documentation

◆ IsBeingDestroyed

readonly bool IsBeingDestroyed

Indicates whether the network object is being destroyed.

◆ IsNestedObject

readonly bool IsNestedObject

Indicates whether the network object is a nested object.

◆ Object

readonly NetworkObject Object

The network object to be released.

◆ TypeId

readonly NetworkObjectTypeId TypeId

The type identifier of the network object.