![]() |
ManiaMap.Unity
Procedural generation of metroidvania style maps for Unity.
|
An object tied to the cell index of a RoomComponent. More...
Public Member Functions | |
virtual void | AutoAssign (RoomComponent room) |
Performs auto assignment on the object. More... | |
Protected Member Functions | |
virtual void | Awake () |
virtual void | Initialize () |
Initializes the object. More... | |
virtual void | OnDestroy () |
Protected Attributes | |
bool | _autoAssignCell = true |
Vector2Int | _cellIndex |
RoomComponent | _room |
Properties | |
bool | AutoAssignCell [getset] |
If true, the cell will be automatically assigned to the closest cell when update and save operations are performed. More... | |
Vector2Int | CellIndex [getset] |
The containing cell index. More... | |
int | Column [getset] |
The column index. More... | |
bool | IsInitialized [getprotected set] |
True if the object has been initialized. More... | |
UnityEvent | OnInitialize [getset] |
The event invoked after the object is initialized. More... | |
RoomComponent | Room [getset] |
The containing room. More... | |
int | Row [getset] |
The row index. More... | |
Private Attributes | |
UnityEvent | _onInitialize = new UnityEvent() |
An object tied to the cell index of a RoomComponent.
Definition at line 9 of file CellChild.cs.
|
virtual |
Performs auto assignment on the object.
room | The containing room. |
Reimplemented in CollectableSpotComponent, DoorComponent, and RoomFlag.
Definition at line 69 of file CellChild.cs.
|
protectedvirtual |
Definition at line 55 of file CellChild.cs.
|
protectedvirtual |
|
protectedvirtual |
Definition at line 60 of file CellChild.cs.
|
protected |
Definition at line 13 of file CellChild.cs.
|
protected |
Definition at line 26 of file CellChild.cs.
|
private |
Definition at line 39 of file CellChild.cs.
|
protected |
Definition at line 33 of file CellChild.cs.
|
getset |
If true, the cell will be automatically assigned to the closest cell when update and save operations are performed.
Definition at line 18 of file CellChild.cs.
|
getset |
The containing cell index.
Definition at line 30 of file CellChild.cs.
|
getset |
The column index.
Definition at line 53 of file CellChild.cs.
|
getprotected set |
True if the object has been initialized.
Definition at line 23 of file CellChild.cs.
|
getset |
The event invoked after the object is initialized.
Definition at line 43 of file CellChild.cs.
|
getset |
The containing room.
Definition at line 37 of file CellChild.cs.
|
getset |
The row index.
Definition at line 48 of file CellChild.cs.