![]() |
ManiaMap.Godot
Procedural generation of metroidvania style maps for Godot .NET.
|
Provides area and body entering and exiting detection for a cell. More...
Public Member Functions | |
override void | _Ready () |
Static Public Member Functions | |
static CellArea3D | CreateInstance (int row, int column, RoomNode3D room, uint collisionMask) |
Creates a new instance with child collision shape and adds it as a child of the specified room. More... | |
Properties | |
int | Column [getprivate set] |
The cell column in the room. More... | |
RoomNode3D | Room [getprivate set] |
The containing room. More... | |
int | Row [getprivate set] |
The cell row in the room. More... | |
Private Member Functions | |
void | EmitOnCellEntered (Node collision) |
void | EmitOnCellExited (Node collision) |
void | OnAreaEntered (Area3D area) |
void | OnAreaExited (Area3D area) |
void | OnBodyEntered (Node body) |
void | OnBodyExited (Node body) |
Provides area and body entering and exiting detection for a cell.
Register to a RoomNode3D's OnCellAreaEntered
and OnCellAreaExited
signals to monitor these events. When the area detects an entering object, the RoomState
cell visibility is automatically updated.
Definition at line 11 of file CellArea3D.cs.
override void _Ready | ( | ) |
Definition at line 54 of file CellArea3D.cs.
|
static |
Creates a new instance with child collision shape and adds it as a child of the specified room.
row | The cell row. |
column | The cell column. |
room | The containing room. |
collisionMask | The monitored collision mask. Typically, this should match the collision layer of the player character. |
Definition at line 35 of file CellArea3D.cs.
|
private |
Definition at line 83 of file CellArea3D.cs.
|
private |
Definition at line 89 of file CellArea3D.cs.
|
private |
Definition at line 68 of file CellArea3D.cs.
|
private |
Definition at line 78 of file CellArea3D.cs.
|
private |
Definition at line 63 of file CellArea3D.cs.
|
private |
Definition at line 73 of file CellArea3D.cs.
|
getprivate set |
The cell column in the room.
Definition at line 21 of file CellArea3D.cs.
|
getprivate set |
The containing room.
Definition at line 26 of file CellArea3D.cs.
|
getprivate set |
The cell row in the room.
Definition at line 16 of file CellArea3D.cs.