feat: Add additional properties to Turtle state for enhanced status reporting

This commit is contained in:
MayaTheShy
2026-02-20 02:13:10 -05:00
parent 668d4a3685
commit ff58778f3f

View File

@@ -486,6 +486,8 @@ export class Turtle extends EventEmitter {
homePosition: this._homePosition,
facing: this._facing,
fuel: this._fuel,
fuelLimit: this._fuelLimit,
selectedSlot: this._selectedSlot,
inventory: this._inventory,
inventoryCount: Array.isArray(this._inventory)
? this._inventory.length
@@ -496,6 +498,9 @@ export class Turtle extends EventEmitter {
connected: this.connected,
lastUpdate: this.lastUpdate,
label: this._label,
peripherals: this._peripherals,
error: this._error,
warning: this._warning,
};
}