Skip to content

Commit f09a2c5

Browse files
add more properties to Door
1 parent ca021de commit f09a2c5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Code/ValueSystem/PropertySystem/ReferencePropertyRegistry.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ public static void Initialize()
156156

157157
Register<Door, NumberValue>("remainingHealth", d => new NumberValue(d is BreakableDoor bDoor ? (decimal)bDoor.Health : -1), "The remaining health of the door");
158158
Register<Door, NumberValue>("maxHealth", d => new NumberValue(d is BreakableDoor bDoor ? (decimal)bDoor.MaxHealth : -1), "The maximum health of the door");
159+
Register<Door, BoolValue>("isGate", d => d is Gate, "Is door a gate?");
160+
Register<Door, BoolValue>("isBreakable", d => d is BreakableDoor, "Is door breakable?");
161+
Register<Door, BoolValue>("isCheckpoint", d => d is CheckpointDoor, "Is door breakable?");
162+
159163

160164
Register<Pickup, NumberValue>("positionX", p => new NumberValue((decimal)p.Position.x), "The X position of the pickup");
161165
Register<Pickup, NumberValue>("positionY", p => new NumberValue((decimal)p.Position.y), "The Y position of the pickup");

0 commit comments

Comments
 (0)