ManiaMap.Godot
Procedural generation of metroidvania style maps for Godot .NET.
RoomFlag2D Class Reference

A room flag that can be set or toggled to alter the LayoutState. More...

Inheritance diagram for RoomFlag2D:
CellChild2D IRoomFlag ICellChild ICellChild

Public Member Functions

override void _ValidateProperty (Godot.Collections.Dictionary property)
 
override void AutoAssign (RoomNode2D room)
 Assigns the room and any auto assigned values to the object. More...
 
- Public Member Functions inherited from CellChild2D
override void _ValidateProperty (Godot.Collections.Dictionary property)
 

Properties

bool EditId [getset]
 If true, the Id property becomes editable in the inspector. More...
 
int Id = -1 [getset]
 
- Properties inherited from CellChild2D
bool AutoAssignCell = true [getset]
 
int Column [getset]
 
RoomNode2D Room [getset]
 The contained room. More...
 
IRoomNode RoomNode [get]
 
int Row [getset]
 
- Properties inherited from ICellChild
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...
 
- Properties inherited from IRoomFlag
int Id [get]
 The unique flag ID. The ID must be unique within a room. More...
 

Private Member Functions

void SetValidatedField< T > (ref T field, T value)
 

Private Attributes

bool _editId
 

Detailed Description

A room flag that can be set or toggled to alter the LayoutState.

See IRoomFlagExtensions for additional methods usable by this class.

Definition at line 13 of file RoomFlag2D.cs.

Member Function Documentation

◆ _ValidateProperty()

override void _ValidateProperty ( Godot.Collections.Dictionary  property)

Definition at line 30 of file RoomFlag2D.cs.

◆ AutoAssign()

override void AutoAssign ( RoomNode2D  room)
virtual

Assigns the room and any auto assigned values to the object.

Reimplemented from CellChild2D.

Definition at line 43 of file RoomFlag2D.cs.

◆ SetValidatedField< T >()

void SetValidatedField< T > ( ref T  field,
value 
)
private

Definition at line 24 of file RoomFlag2D.cs.

Member Data Documentation

◆ _editId

bool _editId
private

Definition at line 15 of file RoomFlag2D.cs.

Property Documentation

◆ EditId

bool EditId
getset

If true, the Id property becomes editable in the inspector.

Definition at line 19 of file RoomFlag2D.cs.

◆ Id

int Id = -1
getset

Definition at line 22 of file RoomFlag2D.cs.


The documentation for this class was generated from the following file: