five-on-it / packages/missions/src
packages/missions/src
@foi/missions: the game document (a level's places and zones, its rules and its missions), the mission interpreter the server runs every few ticks, each player's phone it keeps, and the checks a document must pass. Isomorphic and deterministic, like the simulation: the server runs the interpreter, the tools and the platform validate with it, and a browser preview could run it too. The bundled games are the separate entry @foi/missions/content.
References
Action
Re-exports Action
actionsOfMission
Re-exports actionsOfMission
Actor
Re-exports Actor
ActorFacts
Re-exports ActorFacts
AlertCommand
Re-exports AlertCommand
App
Re-exports App
AppButton
Re-exports AppButton
AppScreen
Re-exports AppScreen
attemptSeconds
Re-exports attemptSeconds
BindCameraCommand
Re-exports BindCameraCommand
BindDoorCommand
Re-exports BindDoorCommand
BindGarageCommand
Re-exports BindGarageCommand
BindPropCommand
Re-exports BindPropCommand
CallDir
Re-exports CallDir
CameraActor
Re-exports CameraActor
CameraFacts
Re-exports CameraFacts
CatchObjective
Re-exports CatchObjective
ClockCommand
Re-exports ClockCommand
CollectObjective
Re-exports CollectObjective
Condition
Re-exports Condition
Contact
Re-exports Contact
ContainerActor
Re-exports ContainerActor
ContainerFacts
Re-exports ContainerFacts
COOP_PLAYERS
Re-exports COOP_PLAYERS
CREDIT
Re-exports CREDIT
DEFAULT_TEAM
Re-exports DEFAULT_TEAM
DefendObjective
Re-exports DefendObjective
DespawnCommand
Re-exports DespawnCommand
DestroyObjective
Re-exports DestroyObjective
Dialogue
Re-exports Dialogue
DialogueChoice
Re-exports DialogueChoice
DialogueNode
Re-exports DialogueNode
DOOR_REACH
Re-exports DOOR_REACH
DoorActor
Re-exports DoorActor
DoorFacts
Re-exports DoorFacts
eachTeams
Re-exports eachTeams
EliminateObjective
Re-exports EliminateObjective
ENEMY_PROFILES
Re-exports ENEMY_PROFILES
EnemyFacts
Re-exports EnemyFacts
EVENT_PATTERN
Re-exports EVENT_PATTERN
EventName
Re-exports EventName
FleeCommand
Re-exports FleeCommand
FormField
Re-exports FormField
GAME_ID_PATTERN
Re-exports GAME_ID_PATTERN
GAME_SCHEMA_VERSION
Re-exports GAME_SCHEMA_VERSION
GAME_STEPS
Re-exports GAME_STEPS
GameDoc
Re-exports GameDoc
GameDocInput
Re-exports GameDocInput
GameRules
Re-exports GameRules
GARAGE_REACH
Re-exports GARAGE_REACH
GarageActor
Re-exports GarageActor
GarageFacts
Re-exports GarageFacts
GiveCommand
Re-exports GiveCommand
GotoObjective
Re-exports GotoObjective
GROUP_EVENT_PATTERN
Re-exports GROUP_EVENT_PATTERN
HandOverCommand
Re-exports HandOverCommand
HitFacts
Re-exports HitFacts
Id
Re-exports Id
ID_PATTERN
Re-exports ID_PATTERN
isSolo
Re-exports isSolo
Issue
Re-exports Issue
Item
Re-exports Item
ItemActor
Re-exports ItemActor
ItemCount
Re-exports ItemCount
ItemEventFacts
Re-exports ItemEventFacts
ItemId
Re-exports ItemId
LockDoorCommand
Re-exports LockDoorCommand
LockVehicleCommand
Re-exports LockVehicleCommand
LoseObjective
Re-exports LoseObjective
MAX_CALLS
Re-exports MAX_CALLS
MAX_MESSAGES
Re-exports MAX_MESSAGES
MemberView
Re-exports MemberView
migrateGame
Re-exports migrateGame
Mission
Re-exports Mission
MissionCommand
Re-exports MissionCommand
MissionFacts
Re-exports MissionFacts
MissionRuntime
Re-exports MissionRuntime
MissionStart
Re-exports MissionStart
MissionView
Re-exports MissionView
NEXT_MISSION_DELAY_S
Re-exports NEXT_MISSION_DELAY_S
NPC_WEAPONS
Re-exports NPC_WEAPONS
NpcActor
Re-exports NpcActor
NpcFacts
Re-exports NpcFacts
Objective
Re-exports Objective
OBJECTIVE_VERBS
Re-exports OBJECTIVE_VERBS
ObjectiveNext
Re-exports ObjectiveNext
openSeats
Re-exports openSeats
OpenTeam
Re-exports OpenTeam
parseGame
Re-exports parseGame
Path
Re-exports Path
PayCommand
Re-exports PayCommand
PhoneInputFacts
Re-exports PhoneInputFacts
PhoneOp
Re-exports PhoneOp
PhotoFacts
Re-exports PhotoFacts
PickupFacts
Re-exports PickupFacts
PickupObjective
Re-exports PickupObjective
Place
Re-exports Place
placesUsed
Re-exports placesUsed
Play
Re-exports Play
PLAY_MODES
Re-exports PLAY_MODES
PlayerFacts
Re-exports PlayerFacts
PlayerRange
Re-exports PlayerRange
playOf
Re-exports playOf
PlayTeam
Re-exports PlayTeam
Point
Re-exports Point
PROP_REACH
Re-exports PROP_REACH
PropActor
Re-exports PropActor
PropFacts
Re-exports PropFacts
QueryFilter
Re-exports QueryFilter
RaceCommand
Re-exports RaceCommand
ResolvedPlay
Re-exports ResolvedPlay
RespawnCommand
Re-exports RespawnCommand
Rule
Re-exports Rule
RuleEvent
Re-exports RuleEvent
RUN_AMBIENT_SHARE
Re-exports RUN_AMBIENT_SHARE
RUN_HOLDER
Re-exports RUN_HOLDER
RUN_RETRIES
Re-exports RUN_RETRIES
runAmbient
Re-exports runAmbient
RunOptions
Re-exports RunOptions
RunSeat
Re-exports RunSeat
RunSeatView
Re-exports RunSeatView
RunTeamView
Re-exports RunTeamView
RunView
Re-exports RunView
Schedule
Re-exports Schedule
ScheduleHour
Re-exports ScheduleHour
SeatHold
Re-exports SeatHold
SetCameraCommand
Re-exports SetCameraCommand
SetSignalCommand
Re-exports SetSignalCommand
SetWantedCommand
Re-exports SetWantedCommand
SHOP_KINDS
Re-exports SHOP_KINDS
SkipTimeCommand
Re-exports SkipTimeCommand
SneakObjective
Re-exports SneakObjective
SpawnContainerCommand
Re-exports SpawnContainerCommand
SpawnGroupCommand
Re-exports SpawnGroupCommand
SpawnItemCommand
Re-exports SpawnItemCommand
SpawnNpcCommand
Re-exports SpawnNpcCommand
SpawnShopCommand
Re-exports SpawnShopCommand
SpawnTerminalCommand
Re-exports SpawnTerminalCommand
SpawnVehicleCommand
Re-exports SpawnVehicleCommand
SpectateCommand
Re-exports SpectateCommand
StackFacts
Re-exports StackFacts
StealObjective
Re-exports StealObjective
STEALTH_EVENT_PATTERN
Re-exports STEALTH_EVENT_PATTERN
StealthHooks
Re-exports StealthHooks
SurviveObjective
Re-exports SurviveObjective
Tag
Re-exports Tag
TakeCommand
Re-exports TakeCommand
TalkObjective
Re-exports TalkObjective
Team
Re-exports Team
TEAM_EVENT_PATTERN
Re-exports TEAM_EVENT_PATTERN
TERMINAL_KINDS
Re-exports TERMINAL_KINDS
Time
Re-exports Time
UnlockObjective
Re-exports UnlockObjective
UseObjective
Re-exports UseObjective
validateGame
Re-exports validateGame
validateReach
Re-exports validateReach
Value
Re-exports Value
valueOf
Re-exports valueOf
VEHICLE_OWNERS
Re-exports VEHICLE_OWNERS
VehicleActor
Re-exports VehicleActor
VERSUS_PLAYERS
Re-exports VERSUS_PLAYERS
WaitObjective
Re-exports WaitObjective
WeatherCommand
Re-exports WeatherCommand
WhenRule
Re-exports WhenRule
WhileRule
Re-exports WhileRule
WIN_PATTERN
Re-exports WIN_PATTERN
Zone
Re-exports Zone
ZONE_KINDS
Re-exports ZONE_KINDS