# 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.

```gizlang
import * as Made from "gizgame/made";
```

## Types

### `WorldSky`

```gizlang
type WorldSky = { day: f64; timeOfDay: string; weather: string; }
```

Sky cycle and weather configuration of a made world.

- `day`: `f64`
- `timeOfDay`: `string`
- `weather`: `string`

### `WorldLand`

```gizlang
type WorldLand = { seed: i64; erode: f64; hillHeight: f64; }
```

Procedural terrain parameters of a made world.

- `seed`: `i64`
- `erode`: `f64`
- `hillHeight`: `f64`

### `WorldPbr`

```gizlang
type WorldPbr = { diff: string; norm: string; }
```

Ground diffuse and normal PBR texture addresses.

- `diff`: `string`
- `norm`: `string`

### `WorldGround`

```gizlang
type WorldGround = { side: f64; samples: i64; land: WorldLand; pbr: WorldPbr; }
```

Ground size, sampling resolution, terrain, and PBR textures.

- `side`: `f64`
- `samples`: `i64`
- `land`: `M229.WorldLand`
- `pbr`: `M229.WorldPbr`

### `WorldPlacing`

```gizlang
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`: `string`
- `name`: `string`
- `x`: `f64`
- `z`: `f64`
- `scale`: `f64`
- `yaw`: `f64`
- `solid`: `i64`
- `modelUrl`: `string`
- `hp`: `i64`
- `damage`: `i64`
- `behavior`: `string`
- `dialogue`: `string`

### `WorldMap`

```gizlang
type WorldMap = { far: f64; sky: WorldSky; ground: WorldGround; placings: Vec<WorldPlacing>; }
```

Map visibility, sky, ground, and placed objects.

- `far`: `f64`
- `sky`: `M229.WorldSky`
- `ground`: `M229.WorldGround`
- `placings`: `Vec<M229.WorldPlacing>`

### `WorldHero`

```gizlang
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`: `string`
- `name`: `string`
- `portrait`: `string`
- `speed`: `f64`
- `jump`: `f64`
- `hits`: `i64`
- `weapon`: `string`
- `attackPower`: `i64`
- `attackRange`: `f64`
- `guns`: `_gizlang_sdk_core.Option<Vec<string>>`

### `WorldFoe`

```gizlang
type WorldFoe = { name: string; kind: string; count: i64; hits: i64; speed: f64; damage: i64; color: string; scale: f64; }
```

One enemy archetype definition.

- `name`: `string`
- `kind`: `string`
- `count`: `i64`
- `hits`: `i64`
- `speed`: `f64`
- `damage`: `i64`
- `color`: `string`
- `scale`: `f64`

### `WorldKinds`

```gizlang
type WorldKinds = { hero: WorldHero; foes: Vec<WorldFoe>; }
```

Hero and enemy archetypes of a made world.

- `hero`: `M229.WorldHero`
- `foes`: `Vec<M229.WorldFoe>`

### `WorldMind`

```gizlang
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`: `string`
- `role`: `string`
- `traits`: `string`
- `greeting`: `string`
- `at`: `Vec<f64>`
- `color`: `string`
- `rig`: `string`

### `WorldObjective`

```gizlang
type WorldObjective = { title: string; target: i64; }
```

One player-facing mission objective.

- `title`: `string`
- `target`: `i64`

### `WorldRules`

```gizlang
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`: `string`
- `targetCount`: `i64`
- `timeLimitSec`: `i64`
- `collectible`: `string`
- `collectibleColor`: `string`
- `objectives`: `Vec<M229.WorldObjective>`

### `WorldTheme`

```gizlang
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`: `string`
- `timeOfDay`: `string`
- `weather`: `string`
- `skyTop`: `string`
- `skyBottom`: `string`
- `fogDensity`: `f64`
- `groundColor`: `string`
- `accentColor`: `string`

### `WorldGameplay`

```gizlang
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`: `string`
- `vehicleKind`: `string`
- `cameraMode`: `string`
- `actionLabel`: `string`
- `projectileColor`: `string`
- `safeZoneRadius`: `f64`
- `planet`: `_gizlang_sdk_core.Option<i64>`

### `WorldAssets`

```gizlang
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`: `string`
- `vehicleQuery`: `string`
- `vehicleModelUrl`: `string`
- `enemyQuery`: `string`
- `enemyModelUrl`: `string`
- `bossQuery`: `string`
- `bossModelUrl`: `string`
- `collectibleQuery`: `string`
- `collectibleModelUrl`: `string`
- `npcQuery`: `string`
- `npcModelUrl`: `string`

### `WorldSoundtrack`

```gizlang
type WorldSoundtrack = { mood: string; tempo: i64; }
```

Procedural soundtrack mood and tempo.

- `mood`: `string`
- `tempo`: `i64`

### `WorldMultiplayer`

```gizlang
type WorldMultiplayer = { enabled: bool; mode: string; maxPlayers: i64; }
```

Multiplayer room configuration.

- `enabled`: `bool`
- `mode`: `string`
- `maxPlayers`: `i64`

### `WorldDoc`

```gizlang
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`: `string`
- `help`: `string`
- `genre`: `string`
- `runtimeUrl`: `string`
- `gameplay`: `M229.WorldGameplay`
- `theme`: `M229.WorldTheme`
- `assets`: `M229.WorldAssets`
- `map`: `M229.WorldMap`
- `kinds`: `M229.WorldKinds`
- `minds`: `Vec<M229.WorldMind>`
- `rules`: `M229.WorldRules`
- `soundtrack`: `M229.WorldSoundtrack`
- `multiplayer`: `M229.WorldMultiplayer`

### `CharacterCommand`

```gizlang
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`: `string`
- `clip`: `string`
- `motionPrompt`: `string`
- `dx`: `f64`
- `dz`: `f64`
- `duration`: `f64`
- `target`: `string`
- `reply`: `string`

## Constants

### `GENRES`

```gizlang
const GENRES: Vec<string> = ["rpg", "arena", "vehicle", "parkour", "sports", "survival", "sandbox", "arcade2d", "strategy"]
```

The genres a made world may be.

### `STRATEGY_MODES`

```gizlang
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.

