24 [Export(PropertyHint.Range,
"0,10,1,or_greater")]
public int Row {
get;
set; }
27 [Export(PropertyHint.Range,
"0,10,1,or_greater")]
public int Column {
get;
set; }
41 public override void _ValidateProperty(Godot.Collections.Dictionary property)
43 base._ValidateProperty(property);
44 var name =
property[
"name"].AsStringName();
46 if (name == PropertyName.Room)
47 property[
"usage"] = (int)(property[
"usage"].As<PropertyUsageFlags>() | PropertyUsageFlags.ReadOnly);
The base class for elements tied to a RoomNode2D's cell index.
RoomNode2D Room
The contained room.
virtual void AutoAssign(RoomNode2D room)
Assigns the room and any auto assigned values to the object.
A node serving as the top level of a 2D room.
Vector2I FindClosestActiveCellIndex(Vector2 position)
Returns the closest active cell index to the specified global position.
The interface for elements tied to an IRoomNode's cell index.
The interface for a room node.