This commit is contained in:
Kim Ravn Hansen
2025-09-04 16:54:03 +02:00
parent fc28f4ef55
commit 0acd46fb6b
16 changed files with 629 additions and 21 deletions

27
server/models/portal.js Normal file
View File

@@ -0,0 +1,27 @@
/**
* Connects two location ONE WAY.
*
* Example: two adjacent rooms connected by a door:
* Room A has a portal to Room B, and
* Room B has a portal to Room A.
*
* @todo Add encounters to portals
*/
export class Portal {
/**
* Target Location.
*/
_targetLocationId;
/**
* Description shown to the player when they inspect the portal from the source location.
*/
_description;
/**
* Description shown to the player when they traverse the portal.
*/
_traversalDescription;
}