Photon Fusion 2.1.1

InterestManagementConfig Class Reference

Settings for initializing interest management. More...

Static Public Member Functions

static bool CheckCellHashIntOverflow (int x, int y, int z)
 Checks whether the 3 cell grid sizes cause an int overflow when creating a cell hash.

Public Attributes

Vector3Int AreaOfInterestCellGridSize = new Vector3Int(Simulation.AreaOfInterestState.GRID_CELL_COUNT_DEFAULT, Simulation.AreaOfInterestState.GRID_CELL_COUNT_DEFAULT, Simulation.AreaOfInterestState.GRID_CELL_COUNT_DEFAULT)
 The size of the Area of Interest cell grid. The total world size is this value multiplied by AreaOfInterestCellSize.
int AreaOfInterestCellSize = Simulation.AreaOfInterestState.CELL_SIZE_DEFAULT
 The size of the cells used by the Area of Interest system.

Detailed Description

Settings for initializing interest management.

Member Function Documentation

◆ CheckCellHashIntOverflow()

bool CheckCellHashIntOverflow ( int x,
int y,
int z )
static

Checks whether the 3 cell grid sizes cause an int overflow when creating a cell hash.

Parameters
xx
yy
zz
Returns
True if there is an overflow else false