How MetaMarket Fits Into Your Game
MetaMarket sits behind your game as a backend it talks to over HTTP. Your client and your game logic stay yours; the platform stores authoritative player state and runs the shared engine your configuration drives. Here is the shape of that relationship before you reach the integration detail.
The split, in one line
You send player activity as actions and display the results. MetaMarket interprets each action against your config, stores the authoritative state, and runs the quest, reward, and economy engine.
Your game client holds the UI and game rules, authenticates the player, and sends actions.
The edge gateway is the door external games come through. It enforces the tenant boundary and attaches your app credential to event calls on your behalf.
Your game's runtime interprets your configuration (your actions, resources, quests, and local economy), isolated by your app id.
The Hub owns what is shared across every game: player identity, the platform currency, and the loyalty standing (points, tier, badges).
First-party modules skip the gateway and talk to the engine directly; external games always go through the gateway. Roles explains why, and which door each trust level uses.
What you send, what MetaMarket stores
Player activity your game reports, as actions
Interprets each action against your config and writes the result
A player JWT, obtained by the SDK's device-key sign-in
Owns identity, issues and rotates sessions, and runs handoff. The device keeps its private key; the platform stores only the public half
Your app's configuration (actions, resources, quests, rewards)
Runs the shared engine that config drives, and picks up changes within its refresh window
Requests to read player state, quests, inventory
Returns authoritative state, with live echoes of what an action just changed
What you keep, what MetaMarket owns
Your game logic, content, UX, local economy, and client credentials stay with you. MetaMarket owns identity (so you don't build and maintain a login system), the platform currency and shared loyalty standing, the platform-owned bridge quests, and tenant isolation. See Studio and platform responsibilities for the full breakdown, and the Integration walkthrough to wire up the first call.
One consistent response shape
Every mutating domain call returns the same four-channel envelope, which carries the domain result alongside the values the action changed, snapshots of the affected subjects, and any instruction the client should act on. The practical consequence is that a client updates its UI straight from an action's response instead of making a second read. Sending Actions documents the four channels and the order to apply them in.
How an action becomes a state update or reward
An action's own config decides what it does: a stat action writes a declared resource, a mechanic action runs a linked reward package. Either way, the response already carries what changed, so the client does not need a follow-up read to update its UI.
With the shape in hand, the Integration walkthrough wires up the first real call.
Last updated