This adds a RoomObject-level .print method, so that it's safe to print any sort of object. I believe it is missing a couple cases, but it covers most of them.
Testing checklist:
[x] Changes are backward-compatible
[x] Codebase compiles with current tsconfig configuration
Pull request summary
Description:
This adds a RoomObject-level
.print
method, so that it's safe to print any sort of object. I believe it is missing a couple cases, but it covers most of them.Testing checklist:
tsconfig
configuration