Photon Unity Networking 2  v2.1
English | 日本語 | 한국
Public Types | Public Member Functions | Public Attributes | List of all members
CellTreeNode Class Reference

ツリーの単一のノードを表します。 More...

Public Types

enum  ENodeType
 

Public Member Functions

 CellTreeNode ()
 デフォルトのコンストラクタ。 More...
 
 CellTreeNode (byte id, ENodeType nodeType, CellTreeNode parent)
 IDとノードタイプを定義し、親ノードを設定するコンストラクタ。 More...
 
void AddChild (CellTreeNode child)
 指定された子をノードに追加します。 More...
 
void Draw ()
 エディタでセルを描画します。 More...
 
void GetActiveCells (List< byte > activeCells, bool yIsUpAxis, Vector3 position)
 現在プレイヤーが中にいる、または近くにいるすべてのセルIDを収集します。 More...
 
bool IsPointInsideCell (bool yIsUpAxis, Vector3 point)
 指定された点がセル内にあるかどうかをチェックします。 More...
 
bool IsPointNearCell (bool yIsUpAxis, Vector3 point)
 指定された点がセルの近くにあるかどうかをチェックします。 More...
 

Public Attributes

byte Id
 セルの一意のIDを表します。 More...
 
Vector3 Center
 セルの中央、左上、または右下の位置、 またはセルのサイズを表します。 More...
 
ENodeType NodeType
 セルツリーノードの現在のノードタイプを示します。 More...
 
CellTreeNode Parent
 親ノードへの参照。 More...
 
List< CellTreeNodeChilds
 すべての子ノードを含むリスト。 More...
 

Detailed Description

ツリーの単一のノードを表します。

Constructor & Destructor Documentation

デフォルトのコンストラクタ。

CellTreeNode ( byte  id,
ENodeType  nodeType,
CellTreeNode  parent 
)

IDとノードタイプを定義し、親ノードを設定するコンストラクタ。

Parameters
idセルのIDは、インタレストグループとして使用されます。
nodeTypeセルツリーノードのノードタイプ。
parentセルツリーノードの親ノード。

Member Function Documentation

void AddChild ( CellTreeNode  child)

指定された子をノードに追加します。

Parameters
childノードに追加される子。
void Draw ( )

エディタでセルを描画します。

void GetActiveCells ( List< byte >  activeCells,
bool  yIsUpAxis,
Vector3  position 
)

現在プレイヤーが中にいる、または近くにいるすべてのセルIDを収集します。

Parameters
activeCells現在プレイヤーが中にいる、または近くにいるすべてのセルIDを追加するためのリスト。
yIsUpAxisy軸を上軸として使用するかどうかを示します。
positionプレイヤーの現在の位置。
bool IsPointInsideCell ( bool  yIsUpAxis,
Vector3  point 
)

指定された点がセル内にあるかどうかをチェックします。

Parameters
yIsUpAxisy軸を上軸として使用するかどうかを示します。
point確認するポイント。
Returns
ポイントがセルの内側にある場合はtrue、ポイントがセルの内側にない場合はfalseです。
bool IsPointNearCell ( bool  yIsUpAxis,
Vector3  point 
)

指定された点がセルの近くにあるかどうかをチェックします。

Parameters
yIsUpAxisy軸を上軸として使用するかどうかを示します。
point確認するポイント。
Returns
点がセルの近くにある場合はtrue、点が遠すぎる場合はfalse。

Member Data Documentation

Vector3 Center

セルの中央、左上、または右下の位置、 またはセルのサイズを表します。

List<CellTreeNode> Childs

すべての子ノードを含むリスト。

byte Id

セルの一意のIDを表します。

ENodeType NodeType

セルツリーノードの現在のノードタイプを示します。

CellTreeNode Parent

親ノードへの参照。