CONTENT CONTRACT · VERSION 1
PortalDefinition
A passage one way: a player who steps into the circle around `from` while `when` holds fades out and arrives at `to` (another outdoor map, a room or the same map). Back is a second portal; the package shows the place itself (a structure or world object).
Signature
{ closed: (TextKey)?, fade: PortalFade, from: MapPoint, id: ContentId, radius_mm: PortalRadius, to: MapPoint, when: ({StoryCondition})? }Fields
| Name | Type | Meaning |
|---|---|---|
closed | TextKey | Text a player sees who steps in while the passage is closed; absent: none. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: text |
fade | PortalFade | The fade of the passage. |
from | MapPoint | Centre of the circle that takes a player along. |
id | ContentId | Package-qualified identity; unique within its declaring namespace. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$ |
radius_mm | PortalRadius | Radius of the circle. Range: 500…8000; Unit: mm |
to | MapPoint | Where the player arrives. |
when | {StoryCondition} | Conditions under which the passage is open (all must hold; a shared quest's stage is the world's, a personal one the player's); absent: always. Items: 1…16 |