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

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

Inheritance diagram for RoomFlag3D:
CellChild3D IRoomFlag ICellChild ICellChild

Public Member Functions

override void _ValidateProperty (Godot.Collections.Dictionary property)
 
override void AutoAssign (RoomNode3D room)
 Assigns the room and any auto assigned values to the object. More...
 
- Public Member Functions inherited from CellChild3D
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 CellChild3D
bool AutoAssignCell = true [getset]
 
int Column [getset]
 
RoomNode3D 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 RoomFlag3D.cs.

Member Function Documentation

◆ _ValidateProperty()

override void _ValidateProperty ( Godot.Collections.Dictionary  property)

Definition at line 30 of file RoomFlag3D.cs.

◆ AutoAssign()

override void AutoAssign ( RoomNode3D  room)
virtual

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

Reimplemented from CellChild3D.

Definition at line 43 of file RoomFlag3D.cs.

◆ SetValidatedField< T >()

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

Definition at line 24 of file RoomFlag3D.cs.

Member Data Documentation

◆ _editId

bool _editId
private

Definition at line 15 of file RoomFlag3D.cs.

Property Documentation

◆ EditId

bool EditId
getset

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

Definition at line 19 of file RoomFlag3D.cs.

◆ Id

int Id = -1
getset

Definition at line 22 of file RoomFlag3D.cs.


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