![]() |
ManiaMap.Godot
Procedural generation of metroidvania style maps for Godot .NET.
|
A possible door location connecting two RoomNode2D. More...
Public Member Functions | |
override void | _EnterTree () |
override void | _ExitTree () |
override void | _Ready () |
override void | AutoAssign (RoomNode2D room) |
Assigns the room and any auto assigned values to the object. More... | |
![]() | |
override void | _ValidateProperty (Godot.Collections.Dictionary property) |
Static Public Member Functions | |
static DoorNode2D | FindActiveDoor (Uid roomId, DoorConnection doorConnection) |
Returns the door in the scene with the matching room ID and door connection. More... | |
Properties | |
static Dictionary< Uid, LinkedList< DoorNode2D > > | ActiveRoomDoors = new Dictionary<Uid, LinkedList<DoorNode2D>>() [get] |
A dictionary of doors in the scene by room ID. More... | |
bool | AutoAssignDirection = true [getset] |
int | DoorCode [getset] |
DoorConnection | DoorConnection [getprivate set] |
DoorDirection | DoorDirection [getset] |
DoorType | DoorType [getset] |
![]() | |
bool | AutoAssignCell = true [getset] |
int | Column [getset] |
RoomNode2D | Room [getset] |
The contained room. More... | |
IRoomNode | RoomNode [get] |
int | Row [getset] |
![]() | |
bool | AutoAssignCell [get] |
If true, the cell row and column indices will be automatically assigned when auto assign is run. Disable this flag if you wish to control these values manually. More... | |
int | Column [get] |
The cell column index. More... | |
IRoomNode | RoomNode [get] |
The containing room node. More... | |
int | Row [get] |
The cell row index. More... | |
![]() | |
bool | AutoAssignDirection [get] |
If true, auto assigns the door direction based on its position when auto assign is run. Disable this flag if you wish to control this value manually. More... | |
int | DoorCode [get] |
The door code to which this door may connect. Door codes can connect if they intersect. More... | |
DoorConnection | DoorConnection [get] |
The door's door and room connection information. More... | |
DoorDirection | DoorDirection [get] |
The direction where the door leads relative to its containing cell. More... | |
DoorType | DoorType [get] |
The door type. See the ManiaMap DoorType documentation for more information. More... | |
Private Member Functions | |
void | AddToActiveRoomDoors () |
Adds the door to the active room doors dictionary. More... | |
void | RemoveFromActiveRoomDoors () |
Removes the door from the active room doors dictionary. More... | |
A possible door location connecting two RoomNode2D.
See IDoorNodeExtensions for additional methods usable by this class.
Definition at line 15 of file DoorNode2D.cs.
override void _EnterTree | ( | ) |
Definition at line 46 of file DoorNode2D.cs.
override void _ExitTree | ( | ) |
Definition at line 54 of file DoorNode2D.cs.
override void _Ready | ( | ) |
Definition at line 38 of file DoorNode2D.cs.
|
private |
Adds the door to the active room doors dictionary.
Definition at line 74 of file DoorNode2D.cs.
|
virtual |
Assigns the room and any auto assigned values to the object.
Reimplemented from CellChild2D.
Definition at line 63 of file DoorNode2D.cs.
|
static |
Returns the door in the scene with the matching room ID and door connection.
roomId | The door's room ID. |
doorConnection | The door's connection. |
Definition at line 114 of file DoorNode2D.cs.
|
private |
Removes the door from the active room doors dictionary.
Definition at line 93 of file DoorNode2D.cs.
|
staticgetprivate |
A dictionary of doors in the scene by room ID.
Definition at line 20 of file DoorNode2D.cs.
|
getset |
Definition at line 23 of file DoorNode2D.cs.
|
getset |
Definition at line 33 of file DoorNode2D.cs.
|
getprivate set |
Definition at line 36 of file DoorNode2D.cs.
|
getset |
Definition at line 26 of file DoorNode2D.cs.
|
getset |
Definition at line 29 of file DoorNode2D.cs.