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

A possible collectable location within a RoomNode3D. More...

Inheritance diagram for CollectableSpot3D:
CellChild3D ICollectableSpot 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

CollectableGroup CollectableGroup [getset]
 
bool EditId [getset]
 If true, the Id property becomes editable in the inspector. More...
 
int Id = -1 [getset]
 
float Weight = 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 ICollectableSpot
CollectableGroup CollectableGroup [get]
 The assigned collectable group from which collectables will be procedurally pulled. More...
 
int Id [get]
 The spot's unique ID. The ID must be unique within the scope of a room. More...
 
float Weight [get]
 The manual draw weight assigned to the spot. A larger value increases the chance of the spot being used. More...
 

Private Member Functions

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

Private Attributes

bool _editId
 

Detailed Description

A possible collectable location within a RoomNode3D.

See ICollectableSpotExtensions for additional methods usable by this class.

Definition at line 13 of file CollectableSpot3D.cs.

Member Function Documentation

◆ _ValidateProperty()

override void _ValidateProperty ( Godot.Collections.Dictionary  property)

Definition at line 36 of file CollectableSpot3D.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 49 of file CollectableSpot3D.cs.

◆ SetValidatedField< T >()

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

Definition at line 30 of file CollectableSpot3D.cs.

Member Data Documentation

◆ _editId

bool _editId
private

Definition at line 15 of file CollectableSpot3D.cs.

Property Documentation

◆ CollectableGroup

Definition at line 25 of file CollectableSpot3D.cs.

◆ EditId

bool EditId
getset

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

Definition at line 19 of file CollectableSpot3D.cs.

◆ Id

int Id = -1
getset

Definition at line 22 of file CollectableSpot3D.cs.

◆ Weight

float Weight = 1
getset

Definition at line 28 of file CollectableSpot3D.cs.


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