gizgame/made
Canonical single source of truth for a made world's document schema (the studio field of world.json). Both the maker service (gizstack) and the unified game host (gizlang) import these exact types.
import * as Made from "gizgame/made";Types
WorldSky
type WorldSky = { day: f64; timeOfDay: string; weather: string; }Sky cycle and weather configuration of a made world.
day:f64timeOfDay:stringweather:string
WorldLand
type WorldLand = { seed: i64; erode: f64; hillHeight: f64; }Procedural terrain parameters of a made world.
seed:i64erode:f64hillHeight:f64
WorldPbr
type WorldPbr = { diff: string; norm: string; }Ground diffuse and normal PBR texture addresses.
diff:stringnorm:string
WorldGround
type WorldGround = { side: f64; samples: i64; land: WorldLand; pbr: WorldPbr; }Ground size, sampling resolution, terrain, and PBR textures.
side:f64samples:i64land:M229.WorldLandpbr:M229.WorldPbr
WorldPlacing
type WorldPlacing = { kind: string; name: string; x: f64; z: f64; scale: f64; yaw: f64; solid: i64; modelUrl: string; hp: i64; damage: i64; behavior: string; dialogue: string; }One placed entity or prop on a made world's map.
kind:stringname:stringx:f64z:f64scale:f64yaw:f64solid:i64modelUrl:stringhp:i64damage:i64behavior:stringdialogue:string
WorldMap
type WorldMap = { far: f64; sky: WorldSky; ground: WorldGround; placings: Vec<WorldPlacing>; }Map visibility, sky, ground, and placed objects.
far:f64sky:M229.WorldSkyground:M229.WorldGroundplacings:Vec<M229.WorldPlacing>
WorldHero
type WorldHero = { rig: string; name: string; portrait: string; speed: f64; jump: f64; hits: i64; weapon: string; attackPower: i64; attackRange: f64; guns?: Vec<string>; }Player hero rig, combat stats, and optional stock gun loadout.
rig:stringname:stringportrait:stringspeed:f64jump:f64hits:i64weapon:stringattackPower:i64attackRange:f64guns:_gizlang_sdk_core.Option<Vec<string>>
WorldFoe
type WorldFoe = { name: string; kind: string; count: i64; hits: i64; speed: f64; damage: i64; color: string; scale: f64; }One enemy archetype definition.
name:stringkind:stringcount:i64hits:i64speed:f64damage:i64color:stringscale:f64
WorldKinds
type WorldKinds = { hero: WorldHero; foes: Vec<WorldFoe>; }Hero and enemy archetypes of a made world.
hero:M229.WorldHerofoes:Vec<M229.WorldFoe>
WorldMind
type WorldMind = { name: string; role: string; traits: string; greeting: string; at: Vec<f64>; color: string; rig: string; }One autonomous AI NPC mind placed in the world.
name:stringrole:stringtraits:stringgreeting:stringat:Vec<f64>color:stringrig:string
WorldObjective
type WorldObjective = { title: string; target: i64; }One player-facing mission objective.
title:stringtarget:i64
WorldRules
type WorldRules = { goalType: string; targetCount: i64; timeLimitSec: i64; collectible: string; collectibleColor: string; objectives: Vec<WorldObjective>; }Goal rules, collectibles, and objectives of a made world.
goalType:stringtargetCount:i64timeLimitSec:i64collectible:stringcollectibleColor:stringobjectives:Vec<M229.WorldObjective>
WorldTheme
type WorldTheme = { biome: string; timeOfDay: string; weather: string; skyTop: string; skyBottom: string; fogDensity: f64; groundColor: string; accentColor: string; }Visual biome, lighting, fog, and palette theme.
biome:stringtimeOfDay:stringweather:stringskyTop:stringskyBottom:stringfogDensity:f64groundColor:stringaccentColor:string
WorldGameplay
type WorldGameplay = { mode: string; vehicleKind: string; cameraMode: string; actionLabel: string; projectileColor: string; safeZoneRadius: f64; planet?: i64; }Genre gameplay mode, vehicle, camera, and optional planet seed (0 = real Earth).
mode:stringvehicleKind:stringcameraMode:stringactionLabel:stringprojectileColor:stringsafeZoneRadius:f64planet:_gizlang_sdk_core.Option<i64>
WorldAssets
type WorldAssets = { heroQuery: string; vehicleQuery: string; vehicleModelUrl: string; enemyQuery: string; enemyModelUrl: string; bossQuery: string; bossModelUrl: string; collectibleQuery: string; collectibleModelUrl: string; npcQuery: string; npcModelUrl: string; }Resolved 3D model URLs and search queries for a made world's actors and props.
heroQuery:stringvehicleQuery:stringvehicleModelUrl:stringenemyQuery:stringenemyModelUrl:stringbossQuery:stringbossModelUrl:stringcollectibleQuery:stringcollectibleModelUrl:stringnpcQuery:stringnpcModelUrl:string
WorldSoundtrack
type WorldSoundtrack = { mood: string; tempo: i64; }Procedural soundtrack mood and tempo.
mood:stringtempo:i64
WorldMultiplayer
type WorldMultiplayer = { enabled: bool; mode: string; maxPlayers: i64; }Multiplayer room configuration.
enabled:boolmode:stringmaxPlayers:i64
WorldDoc
type WorldDoc = { title: string; help: string; genre: string; runtimeUrl: string; gameplay: WorldGameplay; theme: WorldTheme; assets: WorldAssets; map: WorldMap; kinds: WorldKinds; minds: Vec<WorldMind>; rules: WorldRules; soundtrack: WorldSoundtrack; multiplayer: WorldMultiplayer; }Complete canonical document of a made world.
title:stringhelp:stringgenre:stringruntimeUrl:stringgameplay:M229.WorldGameplaytheme:M229.WorldThemeassets:M229.WorldAssetsmap:M229.WorldMapkinds:M229.WorldKindsminds:Vec<M229.WorldMind>rules:M229.WorldRulessoundtrack:M229.WorldSoundtrackmultiplayer:M229.WorldMultiplayer
CharacterCommand
type CharacterCommand = { kind: string; clip: string; motionPrompt: string; dx: f64; dz: f64; duration: f64; target: string; reply: string; }Structured AI character command dispatched to a live world.
kind:stringclip:stringmotionPrompt:stringdx:f64dz:f64duration:f64target:stringreply:string
Constants
GENRES
const GENRES: Vec<string> = ["rpg", "arena", "vehicle", "parkour", "sports", "survival", "sandbox", "arcade2d", "strategy"]The genres a made world may be.
STRATEGY_MODES
const STRATEGY_MODES: Vec<string> = ["four_x", "three_kingdoms", "steppe_empire", "grand_strategy", "geopolitics", "airline"]The grand-strategy and tycoon scenario modes playable on the real-Earth board.