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

A reference for a collectable with a unique ID. More...

Inheritance diagram for CollectableResource:

Public Member Functions

override void _ValidateProperty (Godot.Collections.Dictionary property)
 

Properties

bool EditId [getset]
 If true, the Id property becomes editable in the inspector. More...
 
int Id = Rand.GetRandomId() [getset]
 The unique ID associated with the collectable. More...
 

Private Member Functions

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

Private Attributes

bool _editId
 

Detailed Description

A reference for a collectable with a unique ID.

Definition at line 10 of file CollectableResource.cs.

Member Function Documentation

◆ _ValidateProperty()

override void _ValidateProperty ( Godot.Collections.Dictionary  property)

Definition at line 29 of file CollectableResource.cs.

◆ SetValidatedField< T >()

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

Definition at line 23 of file CollectableResource.cs.

Member Data Documentation

◆ _editId

bool _editId
private

Definition at line 12 of file CollectableResource.cs.

Property Documentation

◆ EditId

bool EditId
getset

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

Definition at line 16 of file CollectableResource.cs.

◆ Id

int Id = Rand.GetRandomId()
getset

The unique ID associated with the collectable.

Definition at line 21 of file CollectableResource.cs.


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