Implement an Action¶
Refer to the StartupRoom.ts in the backend for an example.
- Make sure you first created a game object.
- Make sure the Action you wish to implement exists.
- Add one or more
implementsfor the actions you wish to support, for example:class DungeonRoom extends Room implements Smell, Push. - Implement the required abstract functions and return a type of
ActionResultfrom the functions orundefined.