Skip to main content

Module menu_scene

Module menu_scene 

Source
Expand description

MenuScene (Game/MenuScene/Scene0..9.rsc): the pre-built 3D scenes behind the main menu, and the MapComponent block they embed (the same serializer saves use).

The layout is described in docs/MENU-SCENE.md.

Original: FUN_1400a8b00 (the menu scene, version 2), FUN_1400b59a0 (the map component, version 6) and FUN_1400b4670 (version 4), FUN_14009dd90 (the camera), FUN_14001c550 (the placements), FUN_140020900 and FUN_140020320 (the decals).

Structs§

Decal
A tiled decal (roads, fields, building footprints) drawn over the terrain.
MapComponent
The serialized terrain and water of a map (MapComponent).
MenuScene
A main-menu scene: its map, its placed models and particles, and its camera.
ParticlePlacement
A particle system placed in a menu scene.
Placement
One placed mesh: position, rotation and scale, then mesh and material table indices.
SceneCamera
The camera of a menu scene (also saved in game saves).

Functions§

menu_scene
Read a MenuScene from the bytes of its resource.
read_camera
The camera block (also in saves).
read_map_component
The MapComponent block.
write_camera
The writing side of read_camera.
write_map_component
The writing side of read_map_component, at the version it was read at (3 or later).