Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

GrantContext

What a consumable’s grant receives, on the game’s authority: the room, or the page in a game with no rooms. As a player save’s restore receives, with the purchase’s frozen context.

Type Parameter Default type
Context undefined
Property Type Description
account SaveAccount The platform’s id for the buyer in this game.
context Context The value buy passed, as the product’s context schema checked it and the receipt froze it; undefined for a product with none.
player PlayerEntity The buyer’s player entity, which the core makes as the buyer joins.
world World The world the buyer plays in, to read: grant writes through writer, which its transaction undoes on a decline.
writer Authority What grant writes with, as every write verb takes it first: the world’s authority. It keeps the rules of what was handed in, so keep none.