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

The base class for elements tied to a RoomNode2D's cell index. More...

Inheritance diagram for CellChild2D:
ICellChild CollectableSpot2D DoorNode2D Feature2D RoomFlag2D

Public Member Functions

override void _ValidateProperty (Godot.Collections.Dictionary property)
 
virtual void AutoAssign (RoomNode2D room)
 Assigns the room and any auto assigned values to the object. More...
 

Properties

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...
 

Detailed Description

The base class for elements tied to a RoomNode2D's cell index.

Definition at line 10 of file CellChild2D.cs.

Member Function Documentation

◆ _ValidateProperty()

override void _ValidateProperty ( Godot.Collections.Dictionary  property)

Definition at line 41 of file CellChild2D.cs.

◆ AutoAssign()

virtual void AutoAssign ( RoomNode2D  room)
virtual

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

Parameters
roomThe containing room.

Reimplemented in CollectableSpot2D, DoorNode2D, and RoomFlag2D.

Definition at line 33 of file CellChild2D.cs.

Property Documentation

◆ AutoAssignCell

bool AutoAssignCell = true
getset

Definition at line 21 of file CellChild2D.cs.

◆ Column

int Column
getset

Definition at line 27 of file CellChild2D.cs.

◆ Room

RoomNode2D Room
getset

The contained room.

Definition at line 15 of file CellChild2D.cs.

◆ RoomNode

IRoomNode RoomNode
get

Definition at line 18 of file CellChild2D.cs.

◆ Row

int Row
getset

Definition at line 24 of file CellChild2D.cs.


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