Server Authoritative API (BETA)
Quick Start
import RundotGameAPI from '@series-inc/rundot-game-sdk/api'
const state = await RundotGameAPI.simulation.getStateAsync()
const config = await RundotGameAPI.simulation.getConfigAsync()State Management
const personalState = await RundotGameAPI.simulation.getStateAsync()
const roomState = await RundotGameAPI.simulation.getStateAsync('room_123')
const config = await RundotGameAPI.simulation.getConfigAsync()
// { version, entities, recipes }Resetting State
// Reset all simulation state (inventory, active runs, slot assignments)
const result = await RundotGameAPI.simulation.resetStateAsync()
// { success: true, clearedRuns: 3, clearedSlots: 2, recipeExecuted: null }
// Reset and re-initialize with a starter recipe
const result = await RundotGameAPI.simulation.resetStateAsync({
initializeRecipe: 'starter_pack',
})
// { success: true, clearedRuns: 3, clearedSlots: 2, recipeExecuted: 'starter_pack' }Field
Type
Description
Recipe Execution
Recipe Requirements & Availability
Slot Management
Field Resolution & Metadata
Real-Time Subscriptions (BETA)
Push Notifications
Example Recipe
Effect Properties
Property
Type
Required
Description
Behavior
Template Variables
Variable
Description
Best Practices
Last updated