Format
Every table, struct, enum and union a level is written with: 146 types across 16 FlatBuffers schemas, generated from the files under crates/blvl/schema/ that the Rust crate and the viewer's reader are also generated from. The spec says what they mean.
Files
| file | namespace | root table | sections | types |
|---|---|---|---|---|
| acoustics.fbs | blvl.acoustics | blvl.acoustics.Acoustics | acoustics | 4 |
| cameras.fbs | blvl.cameras | blvl.cameras.Cameras | cameras | 3 |
| common.fbs | blvl | — | textures, cubemaps | 14 |
| entities.fbs | blvl.entities | blvl.entities.Entities | entities | 3 |
| geometry.fbs | blvl.geometry | blvl.geometry.Geometry | geometry | 22 |
| lighting.fbs | blvl.lighting | blvl.lighting.Lighting | lighting | 23 |
| lightmaps.fbs | blvl.lightmaps | blvl.lightmaps.Lightmaps | lightmaps | 3 |
| meta.fbs | blvl.meta | blvl.meta.Meta | 1 | |
| minimap.fbs | blvl.minimap | blvl.minimap.Minimap | minimap | 3 |
| props.fbs | blvl.props | blvl.props.Props | props | 7 |
| shots.fbs | blvl.shots | blvl.shots.Shots | blvl.shots | 3 |
| sim.fbs | blvl.sim | blvl.sim.Sim | sim | 41 |
| sites.fbs | blvl.sites | blvl.sites.Sites | sites | 3 |
| skies.fbs | blvl.skies | blvl.skies.Skies | skies | 2 |
| symbols.fbs | blvl.symbols | blvl.symbols.Symbols | .bsym | 11 |
| variants.fbs | blvl.variants | blvl.variants.Variants | variants | 3 |
acoustics.fbs
table Acoustics
struct Probe20 bytes
| field | type | offset | size |
|---|---|---|---|
pos | blvl.Vec3 | 0 | 12 |
room | uint16 | 12 | 2 |
enclosed | ubyte | 14 | 1 |
size_m | ubyte | 15 | 1 |
first_edge | uint32 | 16 | 4 |
used by
- Acoustics.probes
struct Edge12 bytes
| field | type | offset | size |
|---|---|---|---|
to | uint32 | 0 | 4 |
len_m | float | 4 | 4 |
door | uint16 | 8 | 2 |
narrow | bool | 10 | 1 |
used by
- Acoustics.edges
struct Room20 bytes
| field | type | offset | size |
|---|---|---|---|
rt60_s | float | 0 | 4 |
damping | float | 4 | 4 |
size_m | float | 8 | 4 |
enclosed | float | 12 | 4 |
outdoor | bool | 16 | 1 |
used by
- Acoustics.rooms
cameras.fbs
table Cameras
| field | type | default |
|---|---|---|
cameras | [Camera] |
enum Purpose: ubyte
| value | number |
|---|---|
Other | 0 |
Thumbnail | 1 |
Overview | 2 |
Menu | 3 |
used by
- Camera.purpose
- blvl.shots.Shot.purpose
table Camera
used by
- Cameras.cameras
common.fbs
- struct Vec2
- struct Vec3
- struct Vec4
- struct UVec3
- struct Bounds
- enum ImageEncoding
- enum ColorSpace
- enum LightmapEncoding
- struct BlobRef
- table Image
- table Images
- enum MapKind
- table Origin
- table Tag
struct Vec28 bytes
| field | type | offset | size |
|---|---|---|---|
x | float | 0 | 4 |
y | float | 4 | 4 |
used by
- blvl.geometry.Vertex.uv
- blvl.geometry.Vertex.lm_uv
- blvl.geometry.MaterialWater.scroll_a
- blvl.geometry.MaterialWater.scroll_b
struct Vec312 bytes
| field | type | offset | size |
|---|---|---|---|
x | float | 0 | 4 |
y | float | 4 | 4 |
z | float | 8 | 4 |
used by 88 fields
- blvl.acoustics.Probe.pos
- blvl.cameras.Camera.pos
- Bounds.lo
- Bounds.hi
- blvl.geometry.Vertex.pos
- blvl.geometry.Vertex.normal
- blvl.geometry.MaterialPbr.light_color
- blvl.geometry.MaterialFactors.emissive
- blvl.geometry.Deform.vector
- blvl.geometry.Deform.bulge
- blvl.geometry.MaterialShading.phong_fresnel
- blvl.geometry.MaterialShading.envmap_tint
- blvl.geometry.MaterialShading.selfillum_tint
- blvl.geometry.MaterialWater.fog_color
- blvl.geometry.MaterialWater.reflect_tint
- blvl.geometry.MaterialWater.refract_tint
- blvl.geometry.MaterialFalloff.begin
- blvl.geometry.MaterialFalloff.end
- blvl.lighting.Sun.dir
- blvl.lighting.Sun.color
- blvl.lighting.Light.pos
- blvl.lighting.Light.normal
- blvl.lighting.Light.color
- blvl.lighting.LightGrid.origin
- blvl.lighting.LightGrid.step
- blvl.lighting.SkyVis.origin
- blvl.lighting.ProbeBox.lo
- blvl.lighting.ProbeBox.hi
- blvl.lighting.ReflectionProbe.pos
- blvl.lighting.SpotLight.dir
- blvl.lighting.PunctualLight.pos
- blvl.lighting.PunctualLight.color
- blvl.lighting.Post.light_tint
- blvl.lighting.Post.dark_tint
- blvl.lighting.Post.mid_tint
- blvl.lighting.Post.contrast
- blvl.lighting.Post.saturation
- blvl.lighting.Post.color_temp
- blvl.lighting.Post.bleach
- blvl.lighting.Profile.lightmap_scale
- blvl.lighting.Profile.ambient
- blvl.lighting.Profile.fog_color
- blvl.lighting.FogVolume.color
- blvl.props.Model.lo
- blvl.props.Model.hi
- blvl.props.Prop.pos
- blvl.props.Prop.scale3
- blvl.shots.Shot.pos
- blvl.sim.Plane.n
- blvl.sim.Hull.points
- blvl.sim.Mesh.vertices
- blvl.sim.Instance.pos
- blvl.sim.Instance.scale3
- blvl.sim.Collider.lo
- blvl.sim.Collider.hi
- blvl.sim.CollisionModel.lo
- blvl.sim.CollisionModel.hi
- blvl.sim.Breakable.lo
- blvl.sim.Breakable.hi
- blvl.sim.Slide.dir
- blvl.sim.Swing.hinge
- blvl.sim.Swing.axis
- blvl.sim.Door.lo
- blvl.sim.Door.hi
- blvl.sim.Waypoint.pos
- blvl.sim.Mover.spin
- blvl.sim.Mover.hinge
- blvl.sim.Mover.lo
- blvl.sim.Mover.hi
- blvl.sim.Ride.path
- blvl.sim.Climb.lo
- blvl.sim.Climb.hi
- blvl.sim.Climb.up
- blvl.sim.Climb.facing
- blvl.sim.Climb.top
- blvl.sim.Climb.bottom
- blvl.sim.Use.lo
- blvl.sim.Use.hi
- blvl.sim.Use.look
- blvl.sim.Push.velocity
- blvl.sim.Trigger.lo
- blvl.sim.Trigger.hi
- blvl.sim.TeleportDest.pos
- blvl.sim.HurtVolume.lo
- blvl.sim.HurtVolume.hi
- blvl.sim.Spawn.pos
- blvl.sites.Site.lo
- blvl.sites.Site.hi
struct Vec416 bytes
| field | type | offset | size |
|---|---|---|---|
x | float | 0 | 4 |
y | float | 4 | 4 |
z | float | 8 | 4 |
w | float | 12 | 4 |
used by
- blvl.geometry.MaterialFactors.base_color
- blvl.props.Prop.rot
- blvl.sim.Instance.rot
struct UVec312 bytes
| field | type | offset | size |
|---|---|---|---|
x | uint32 | 0 | 4 |
y | uint32 | 4 | 4 |
z | uint32 | 8 | 4 |
used by
struct Bounds24 bytes
used by
- blvl.geometry.Batch.bounds
- blvl.lighting.ReflectionProbe.influence
- blvl.lighting.FogVolume.bounds
- blvl.sim.Door.trigger_box
- blvl.sim.Mover.trigger_box
- blvl.sim.Sim.bounds
enum ImageEncoding: ubyte
| value | number |
|---|---|
Png | 0 |
Jpeg | 1 |
Rgba8 | 2 |
Bc1 | 3 |
Bc3 | 4 |
Bc4 | 5 |
Bc5 | 6 |
Bc6h | 7 |
Bc7 | 8 |
used by
- Image.encoding
enum ColorSpace: ubyte
| value | number |
|---|---|
Srgb | 0 |
Linear | 1 |
used by
- Image.color
enum LightmapEncoding: ubyte
| value | number |
|---|---|
LinearHdr | 0 |
Gamma8 | 1 |
used by
- blvl.lighting.LightGrid.encoding
- blvl.lightmaps.Lightmap.encoding
struct BlobRef24 bytes
| field | type | offset | size |
|---|---|---|---|
key_lo | ulong | 0 | 8 |
key_hi | ulong | 8 | 8 |
size | ulong | 16 | 8 |
used by
- Image.blob
table Image
| field | type | default |
|---|---|---|
width | uint32 | |
height | uint32 | |
encoding | ImageEncoding | |
color | ColorSpace | |
mips | ubyte | |
layers | ubyte | |
bytes | [ubyte] | |
blob | BlobRef |
used by 16 fields
- Images.items
- blvl.lighting.LightGrid.ambient
- blvl.lighting.LightGrid.directional
- blvl.lighting.LightGrid.direction
- blvl.lighting.LightGrid.faces
- blvl.lighting.LightGrid.sun_visibility
- blvl.lighting.SkyVis.image
- blvl.lightmaps.StyledLayer.color
- blvl.lightmaps.Lightmap.color
- blvl.lightmaps.Lightmap.l1
- blvl.lightmaps.Lightmap.sun_visibility
- blvl.lightmaps.Lightmap.bump
- blvl.minimap.Overlay.mask
- blvl.minimap.Minimap.image
- blvl.shots.Shot.image
- blvl.skies.Sky.cube
table Images
| field | type | default |
|---|---|---|
items | [Image] |
enum MapKind: ubyte
| value | number |
|---|---|
Native | 0 |
Q3 | 1 |
Urt | 2 |
Source | 3 |
Source2 | 4 |
Valorant | 5 |
Ow2 | 6 |
Cod4 | 7 |
Css | 8 |
Csgo | 9 |
Tf2 | 10 |
Hl2 | 11 |
Deadlock | 12 |
Halo2 | 13 |
Mw2 | 14 |
Reflex | 15 |
Bo1 | 16 |
Swbf2 | 17 |
Apex | 18 |
Bo3 | 19 |
used by
- Origin.kind
- blvl.meta.Meta.kind
- blvl.sim.Meta.kind
- blvl.symbols.Bake.kind
table Origin
| field | type | default |
|---|---|---|
name | string | |
hash | uint64 | |
kind | MapKind |
used by
- blvl.meta.Meta.origin
- blvl.sim.Meta.origin
table Tag
| field | type | default |
|---|---|---|
key | string | |
value | string |
used by
- blvl.meta.Meta.tags
entities.fbs
table Entities
| field | type | default |
|---|---|---|
items | [Entity] |
table KeyValue
| field | type | default |
|---|---|---|
key | string | |
value | string |
used by
- Entity.keys
table Entity
| field | type | default |
|---|---|---|
classname | string | |
keys | [KeyValue] |
used by
- Entities.items
geometry.fbs
- table Geometry
- struct Rgba8
- struct Tangent
- struct Vertex
- enum AlphaFunc
- enum BlendMode
- struct MaterialKind
- table MaterialPbr
- table MaterialMaps
- struct MaterialFactors
- enum EnvMask
- table Wave
- table TcMod
- table Deform
- table MaterialAnim
- table MaterialShading
- table MaterialWater
- table MaterialFalloff
- enum MaskHeight
- table MaterialMask
- table Material
- table Batch
table Geometry
struct Rgba84 bytes
| field | type | offset | size |
|---|---|---|---|
r | ubyte | 0 | 1 |
g | ubyte | 1 | 1 |
b | ubyte | 2 | 1 |
a | ubyte | 3 | 1 |
used by
- Vertex.color
struct Tangent8 bytes
| field | type | offset | size |
|---|---|---|---|
x | int16 | 0 | 2 |
y | int16 | 2 | 2 |
z | int16 | 4 | 2 |
w | int16 | 6 | 2 |
used by
- Vertex.tangent
struct Vertex52 bytes
| field | type | offset | size |
|---|---|---|---|
pos | blvl.Vec3 | 0 | 12 |
normal | blvl.Vec3 | 12 | 12 |
uv | blvl.Vec2 | 24 | 8 |
lm_uv | blvl.Vec2 | 32 | 8 |
color | Rgba8 | 40 | 4 |
tangent | Tangent | 44 | 8 |
used by
- Geometry.vertices
- blvl.props.Props.vertices
enum AlphaFunc: ubyte
| value | number |
|---|---|
None | 0 |
Gt0 | 1 |
Lt128 | 2 |
Ge128 | 3 |
used by
- MaterialKind.alpha_test
enum BlendMode: ubyte
| value | number |
|---|---|
Opaque | 0 |
Alpha | 1 |
Additive | 2 |
Multiply | 3 |
used by
- MaterialKind.blend
struct MaterialKind9 bytes
| field | type | offset | size |
|---|---|---|---|
sort | ubyte | 0 | 1 |
blend | BlendMode | 1 | 1 |
depth_write | bool | 2 | 1 |
alpha_test | AlphaFunc | 3 | 1 |
two_sided | bool | 4 | 1 |
polygon_offset | bool | 5 | 1 |
env_map | bool | 6 | 1 |
no_mips | bool | 7 | 1 |
sky | bool | 8 | 1 |
used by
- Material.kind
table MaterialPbr
| field | type | default |
|---|---|---|
parms | uint16 | |
surface_light | float | |
light_color | blvl.Vec3 | |
glow | uint32 | optional |
used by
- Material.pbr
table MaterialMaps
| field | type | default |
|---|---|---|
normal | uint32 | optional |
orm | uint32 | optional |
emissive | uint32 | optional |
albedo_b | uint32 | optional |
specular | uint32 | optional |
detail | uint32 | optional |
paint | uint32 | optional |
normal_b | uint32 | optional |
orm_b | uint32 | optional |
used by
- Material.maps
struct MaterialFactors48 bytes
| field | type | offset | size |
|---|---|---|---|
base_color | blvl.Vec4 | 0 | 16 |
roughness | float | 16 | 4 |
metallic | float | 20 | 4 |
occlusion | float | 24 | 4 |
normal_scale | float | 28 | 4 |
emissive | blvl.Vec3 | 32 | 12 |
emissive_strength | float | 44 | 4 |
used by
- Material.factors
enum EnvMask: ubyte
| value | number |
|---|---|
None | 0 |
Texture | 1 |
BaseAlpha | 2 |
NormalAlpha | 3 |
SpecularAlpha | 4 |
used by
- MaterialShading.envmap_mask
table Wave
| field | type | default |
|---|---|---|
func | ubyte | |
base | float | |
amp | float | |
phase | float | |
freq | float |
used by
- TcMod.wave
- Deform.wave
- MaterialAnim.rgb_wave
- MaterialAnim.alpha_wave
table TcMod
| field | type | default |
|---|---|---|
kind | ubyte | |
a | float | |
b | float | |
c | float | |
d | float | |
wave | Wave |
used by
- MaterialAnim.tcmods
table Deform
used by
- MaterialAnim.deform
table MaterialAnim
used by
- MaterialShading.anim
table MaterialShading
| field | type | default |
|---|---|---|
phong_exponent | float | |
phong_boost | float | = 1 |
phong_fresnel | blvl.Vec3 | |
phong_albedo_tint | float | |
envmap_tint | blvl.Vec3 | |
envmap_mask | EnvMask | = None |
envmap_contrast | float | |
envmap_saturation | float | = 1 |
selfillum_tint | blvl.Vec3 | |
rim_boost | float | |
rim_exponent | float | = 4 |
lightwarp | uint32 | optional |
detail_blend | ubyte | |
detail_scale | float | = 1 |
detail_factor | float | = 1 |
seamless_scale | float | |
halflambert | bool | |
lightmapped | bool | = true |
anim | MaterialAnim | |
envmap_scale | float | = 1 |
lightmap_scale | float | = 1 |
used by
- Material.shading
table MaterialWater
| field | type | default |
|---|---|---|
fog_color | blvl.Vec3 | |
fog_start | float | |
fog_end | float | |
reflect_tint | blvl.Vec3 | |
refract_tint | blvl.Vec3 | |
reflect_amount | float | |
refract_amount | float | |
scroll_a | blvl.Vec2 | |
scroll_b | blvl.Vec2 |
used by
- Material.water
table MaterialFalloff
used by
- Material.falloff
enum MaskHeight: ubyte
| value | number |
|---|---|
None | 0 |
AlbedoAlpha | 1 |
AlbedoBAlpha | 2 |
used by
- MaterialMask.height
table MaterialMask
| field | type | default |
|---|---|---|
vertex | bool | = true |
height | MaskHeight | = None |
invert_height | bool | |
gain | float | = 1 |
power | float | = 1 |
used by
- Material.mask
table Material
| field | type | default |
|---|---|---|
name | string | |
texture | uint32 | |
kind | MaterialKind | |
pbr | MaterialPbr | |
maps | MaterialMaps | |
factors | MaterialFactors | |
shading | MaterialShading | |
water | MaterialWater | |
falloff | MaterialFalloff | |
mask | MaterialMask |
used by
- Geometry.materials
table Batch
| field | type | default |
|---|---|---|
material | uint32 | |
first_index | uint32 | |
index_count | uint32 | |
bounds | blvl.Bounds | |
breakable | uint32 | optional |
door | uint32 | optional |
fog | uint32 | optional |
gametypes | uint32 | optional |
variants | uint32 | optional |
variants_not | uint32 | optional |
used by
- Geometry.batches
lighting.fbs
- table Lighting
- struct Sun
- struct Light
- enum GridKind
- table LightGrid
- table SkyVis
- table ProbeBox
- table ProbeSphere
- union ProbeShape
- table ReflectionProbe
- table PointLight
- table SpotLight
- union LightShape
- table SmoothFalloff
- table SourceQuadratic
- table Iw3Falloff
- union Falloff
- table PunctualLight
- table Post
- enum SunUnits
- enum FogMode
- table Profile
- table FogVolume
table Lighting
| field | type | default |
|---|---|---|
profiles | [Profile] | |
lights | [Light] | |
light_grid | LightGrid | |
sky_vis | SkyVis | |
probes | [ReflectionProbe] | |
punctual_lights | [PunctualLight] | |
fog_volumes | [FogVolume] | |
light_styles | [string] |
struct Sun28 bytes
used by
- Profile.sun
struct Light52 bytes
| field | type | offset | size |
|---|---|---|---|
pos | blvl.Vec3 | 0 | 12 |
normal | blvl.Vec3 | 12 | 12 |
color | blvl.Vec3 | 24 | 12 |
intensity | float | 36 | 4 |
radius | float | 40 | 4 |
area | float | 44 | 4 |
material | uint32 | 48 | 4 |
used by
- Lighting.lights
enum GridKind: ubyte
| value | number |
|---|---|
AmbientDirectional | 0 |
AmbientCube | 1 |
Sh2 | 2 |
used by
- LightGrid.kind
table LightGrid
| field | type | default |
|---|---|---|
origin | blvl.Vec3 | |
step | blvl.Vec3 | |
dims | blvl.UVec3 | |
ambient | blvl.Image | |
directional | blvl.Image | |
direction | blvl.Image | |
kind | GridKind | = AmbientDirectional |
faces | [blvl.Image] | |
sun_visibility | blvl.Image | |
encoding | blvl.LightmapEncoding | = LinearHdr |
gain | float | = 1 |
used by
- Lighting.light_grid
table SkyVis
| field | type | default |
|---|---|---|
origin | blvl.Vec3 | |
step | float | |
dims | blvl.UVec3 | |
image | blvl.Image |
used by
- Lighting.sky_vis
table ProbeBox
used by
- ProbeShape.ProbeBox
table ProbeSphere
| field | type | default |
|---|---|---|
radius | float |
used by
- ProbeShape.ProbeSphere
union ProbeShape
| member | number |
|---|---|
ProbeBox | 1 |
ProbeSphere | 2 |
used by
- ReflectionProbe.parallax
table ReflectionProbe
| field | type | default |
|---|---|---|
pos | blvl.Vec3 | |
influence | blvl.Bounds | |
parallax | ProbeShape | |
cubemap | uint32 | |
priority | int32 | |
fade | float | |
intensity | float |
used by
- Lighting.probes
table PointLight
| field | type | default |
|---|
used by
- LightShape.PointLight
table SpotLight
| field | type | default |
|---|---|---|
dir | blvl.Vec3 | |
inner_cos | float | |
outer_cos | float |
used by
- LightShape.SpotLight
union LightShape
| member | number |
|---|---|
PointLight | 1 |
SpotLight | 2 |
used by
- PunctualLight.shape
table SmoothFalloff
| field | type | default |
|---|
used by
- Falloff.SmoothFalloff
table SourceQuadratic
| field | type | default |
|---|---|---|
c | float | |
l | float | |
q | float | |
fifty | float | |
hundred | float |
used by
- Falloff.SourceQuadratic
table Iw3Falloff
| field | type | default |
|---|---|---|
radius | float |
used by
- Falloff.Iw3Falloff
union Falloff
| member | number |
|---|---|
SmoothFalloff | 1 |
SourceQuadratic | 2 |
Iw3Falloff | 3 |
used by
- PunctualLight.falloff
table PunctualLight
| field | type | default |
|---|---|---|
pos | blvl.Vec3 | |
color | blvl.Vec3 | |
intensity | float | |
radius | float | |
shape | LightShape | |
baked | bool | |
shadow_channel | ubyte | optional |
falloff | Falloff | |
variants | uint32 | optional |
variants_not | uint32 | optional |
used by
- Lighting.punctual_lights
table Post
| field | type | default |
|---|---|---|
tonemap | ubyte | |
exposure | float | = 1 |
exposure_min | float | optional |
exposure_max | float | optional |
exposure_rate | float | = 1 |
exposure_compensation | float | |
bloom_scale | float | |
bloom_threshold | float | |
bloom_exponent | float | |
film_contrast | float | = 1 |
film_brightness | float | |
film_desaturation | float | |
light_tint | blvl.Vec3 | |
dark_tint | blvl.Vec3 | |
gamma | float | = 2.2 |
lut | uint32 | optional |
film_slope | float | |
film_toe | float | |
film_shoulder | float | |
film_black_clip | float | |
film_white_clip | float | |
vignette | float | |
mid_tint | blvl.Vec3 | |
mid_start | float | |
mid_end | float | = 1 |
dark_feather | float | |
light_feather | float | |
contrast | blvl.Vec3 | |
saturation | blvl.Vec3 | |
color_temp | blvl.Vec3 | |
bleach | blvl.Vec3 | |
curve_shoulder | float | |
curve_linear | float | |
curve_linear_angle | float | |
curve_toe | float | |
curve_toe_numerator | float | |
curve_toe_denominator | float |
used by
- Profile.post
enum SunUnits: ubyte
| value | number |
|---|---|
Legacy | 0 |
Source1 | 1 |
Source2 | 2 |
Ue4 | 3 |
Iw3 | 4 |
Ow2 | 5 |
T5 | 6 |
used by
- Profile.sun_units
enum FogMode: ubyte
| value | number |
|---|---|
Exp | 0 |
Linear | 1 |
ExpStart | 2 |
Height | 3 |
Gradient | 4 |
None | 5 |
used by
- Profile.fog_mode
table Profile
| field | type | default |
|---|---|---|
name | string | |
lightmap | uint32 | optional |
sky | uint32 | optional |
lightmap_scale | blvl.Vec3 | |
ambient | blvl.Vec3 | |
sun | Sun | |
light_scale | float | |
fog_color | blvl.Vec3 | |
fog_density | float | |
sky_ambient | [float] | |
post | Post | |
fog_start | float | optional |
fog_end | float | optional |
fog_max | float | optional |
fog_mode | FogMode | = Exp |
fog_height_falloff | float | optional |
sun_units | SunUnits | = Legacy |
sun_shadow_channel | ubyte | optional |
sun_baked | bool | = false |
fog_height_bottom | float | optional |
fog_height_top | float | optional |
variants | uint32 | optional |
used by
- Lighting.profiles
table FogVolume
| field | type | default |
|---|---|---|
bounds | blvl.Bounds | |
color | blvl.Vec3 | |
depth | float | |
variants | uint32 | optional |
variants_not | uint32 | optional |
used by
- Lighting.fog_volumes
lightmaps.fbs
table Lightmaps
| field | type | default |
|---|---|---|
items | [Lightmap] |
table StyledLayer
| field | type | default |
|---|---|---|
style | ubyte | |
color | blvl.Image |
used by
- Lightmap.styles
table Lightmap
| field | type | default |
|---|---|---|
color | blvl.Image | |
l1 | [blvl.Image] | |
sun_visibility | blvl.Image | |
gain | float | |
encoding | blvl.LightmapEncoding | = LinearHdr |
bump | [blvl.Image] | |
styles | [StyledLayer] |
used by
- Lightmaps.items
meta.fbs
table Meta
| field | type | default |
|---|---|---|
name | string | |
title | string | |
version | uint32 | |
author | string | |
description | string | |
created_unix | uint64 | |
generator | string | |
kind | blvl.MapKind | |
origin | blvl.Origin | |
tags | [blvl.Tag] |
minimap.fbs
table Minimap
| field | type | default |
|---|---|---|
bounds | Rect | |
image | blvl.Image | |
overlays | [Overlay] |
struct Rect16 bytes
| field | type | offset | size |
|---|---|---|---|
x0 | float | 0 | 4 |
z0 | float | 4 | 4 |
x1 | float | 8 | 4 |
z1 | float | 12 | 4 |
used by
- Minimap.bounds
table Overlay
| field | type | default |
|---|---|---|
sites | [uint32] | |
x | uint32 | |
y | uint32 | |
mask | blvl.Image |
used by
- Minimap.overlays
props.fbs
table Props
| field | type | default |
|---|---|---|
models | [Model] | |
vertices | [blvl.geometry.Vertex] | |
indices | [uint32] | |
props | [Prop] |
table Mesh
| field | type | default |
|---|---|---|
material | uint32 | |
first_index | uint32 | |
index_count | uint32 |
used by
- Model.meshes
table Lod
| field | type | default |
|---|---|---|
first_mesh | uint32 | |
mesh_count | uint32 | |
distance | float |
used by
- Model.lods
table Model
| field | type | default |
|---|---|---|
name | string | |
meshes | [Mesh] | |
lo | blvl.Vec3 | |
hi | blvl.Vec3 | |
hulls | [blvl.sim.Hull] | |
mass | float | |
surface | ubyte | |
lods | [Lod] |
used by
- Props.models
enum Motion: ubyte
| value | number |
|---|---|
Fixed | 0 |
Dynamic | 1 |
used by
- Prop.motion
enum Solidity: ubyte
| value | number |
|---|---|
Solid | 0 |
PushAway | 1 |
Debris | 2 |
used by
- Prop.solidity
table Prop
| field | type | default |
|---|---|---|
model | uint32 | |
pos | blvl.Vec3 | |
rot | blvl.Vec4 | |
motion | Motion | |
solidity | Solidity | |
entity | uint32 | optional |
scale | float | = 1 |
variants | uint32 | optional |
variants_not | uint32 | optional |
scale3 | blvl.Vec3 |
used by
- Props.props
shots.fbs
table Shots
| field | type | default |
|---|---|---|
shots | [Shot] |
enum Preset: ubyte
| value | number |
|---|---|
Other | 0 |
Thumb | 1 |
Wide | 2 |
Uhd | 3 |
used by
- Shot.preset
table Shot
| field | type | default |
|---|---|---|
name | string | |
preset | Preset | |
purpose | blvl.cameras.Purpose | |
camera | int32 | = -1 |
pos | blvl.Vec3 | |
yaw | float | |
pitch | float | |
roll | float | |
fov_x | float | |
image | blvl.Image |
used by
- Shots.shots
sim.fbs
- table Sim
- struct Plane
- table Planes
- table Hull
- table Mesh
- table Instance
- union ColliderShape
- enum ColliderKind
- table Collider
- table CollisionModel
- enum BreakableKind
- table Stage
- table Breakable
- table Slide
- table Swing
- union DoorKind
- enum DoorTrigger
- table Door
- enum MoverKind
- enum MoverStart
- struct Waypoint
- table Mover
- enum RideKind
- table Ride
- table Climb
- enum TargetKind
- struct Target
- enum UseKind
- table Use
- table Push
- table Teleport
- union TriggerKind
- table Trigger
- struct TeleportDest
- table Kill
- table Damage
- union HurtKind
- table HurtVolume
- enum SpawnKind
- table Spawn
- table Meta
table Sim
| field | type | default |
|---|---|---|
name | string | |
bounds | blvl.Bounds | |
kill_y | float | |
colliders | [Collider] | |
collider_sources | [string] | |
breakables | [Breakable] | |
doors | [Door] | |
triggers | [Trigger] | |
teleport_dests | [TeleportDest] | |
spawns | [Spawn] | |
meta | Meta | |
hurt_volumes | [HurtVolume] | |
movers | [Mover] | |
rides | [Ride] | |
climbs | [Climb] | |
uses | [Use] | |
collision_models | [CollisionModel] |
struct Plane16 bytes
| field | type | offset | size |
|---|---|---|---|
n | blvl.Vec3 | 0 | 12 |
d | float | 12 | 4 |
used by
- Planes.planes
- HurtVolume.planes
table Planes
| field | type | default |
|---|---|---|
planes | [Plane] |
used by
- ColliderShape.Planes
table Hull
| field | type | default |
|---|---|---|
points | [blvl.Vec3] | |
loops | [uint16] | |
sizes | [uint16] |
used by
- blvl.props.Model.hulls
- ColliderShape.Hull
table Mesh
| field | type | default |
|---|---|---|
vertices | [blvl.Vec3] | |
indices | [uint32] |
used by
- ColliderShape.Mesh
- CollisionModel.mesh
table Instance
used by
- ColliderShape.Instance
union ColliderShape
used by
- Collider.shape
enum ColliderKind: ubyte
| value | number |
|---|---|
Brush | 0 |
Detail | 1 |
Patch | 2 |
Prop | 3 |
Mesh | 4 |
Volume | 5 |
used by
- Collider.kind
table Collider
| field | type | default |
|---|---|---|
shape | ColliderShape | |
lo | blvl.Vec3 | |
hi | blvl.Vec3 | |
flags | uint32 | |
breakable | uint32 | optional |
door | uint32 | optional |
source | uint32 | optional |
material | uint32 | optional |
gametypes | uint32 | optional |
mover | uint32 | optional |
ride | uint32 | optional |
climb | uint32 | optional |
kind | ColliderKind | = Brush |
variants | uint32 | optional |
variants_not | uint32 | optional |
used by
- Sim.colliders
table CollisionModel
used by
- Sim.collision_models
enum BreakableKind: ubyte
| value | number |
|---|---|
Glass | 0 |
Other | 1 |
Wood | 2 |
Metal | 3 |
Stone | 4 |
Tile | 5 |
Flesh | 6 |
used by
- Breakable.kind
table Stage
| field | type | default |
|---|---|---|
health | uint32 | |
batches | [uint32] | |
colliders | [uint32] |
used by
- Breakable.stages
table Breakable
| field | type | default |
|---|---|---|
model | uint32 | |
kind | BreakableKind | |
health | uint32 | |
lo | blvl.Vec3 | |
hi | blvl.Vec3 | |
door | uint32 | optional |
gametypes | uint32 | optional |
stages | [Stage] | |
mover | uint32 | optional |
explodes | float | |
variants | uint32 | optional |
variants_not | uint32 | optional |
harmed_by | ubyte | optional |
site | uint32 | optional |
used by
- Sim.breakables
table Slide
| field | type | default |
|---|---|---|
dir | blvl.Vec3 | |
distance | float |
used by
- DoorKind.Slide
table Swing
used by
- DoorKind.Swing
union DoorKind
used by
- Door.kind
enum DoorTrigger: ubyte
| value | number |
|---|---|
Proximity | 0 |
Use | 1 |
Automation | 2 |
table Door
| field | type | default |
|---|---|---|
model | uint32 | |
kind | DoorKind | |
speed | float | |
wait | float | |
trigger | DoorTrigger | |
lo | blvl.Vec3 | |
hi | blvl.Vec3 | |
trigger_box | blvl.Bounds | |
gametypes | uint32 | optional |
team | string | |
health | uint32 | |
variants | uint32 | optional |
variants_not | uint32 | optional |
used by
- Sim.doors
enum MoverKind: ubyte
| value | number |
|---|---|
Platform | 0 |
Elevator | 1 |
Train | 2 |
Rotator | 3 |
Barrier | 4 |
used by
- Mover.kind
enum MoverStart: ubyte
| value | number |
|---|---|
Closed | 0 |
Open | 1 |
Looping | 2 |
used by
- Mover.start
struct Waypoint20 bytes
| field | type | offset | size |
|---|---|---|---|
pos | blvl.Vec3 | 0 | 12 |
wait | float | 12 | 4 |
speed | float | 16 | 4 |
used by
- Mover.path
table Mover
| field | type | default |
|---|---|---|
kind | MoverKind | |
path | [Waypoint] | |
spin | blvl.Vec3 | |
turn | float | |
hinge | blvl.Vec3 | |
lo | blvl.Vec3 | |
hi | blvl.Vec3 | |
batches | [uint32] | |
props | [uint32] | |
start | MoverStart | |
trigger | DoorTrigger | |
trigger_box | blvl.Bounds | |
gametypes | uint32 | optional |
team | string | |
variants | uint32 | optional |
variants_not | uint32 | optional |
used by
- Sim.movers
enum RideKind: ubyte
| value | number |
|---|---|
Zipline | 0 |
Rope | 1 |
Rail | 2 |
used by
- Ride.kind
table Ride
| field | type | default |
|---|---|---|
kind | RideKind | |
path | [blvl.Vec3] | |
speed | float | |
radius | float | |
two_way | bool | |
mounts | [uint32] | |
gametypes | uint32 | optional |
team | string | |
variants | uint32 | optional |
variants_not | uint32 | optional |
used by
- Sim.rides
table Climb
| field | type | default |
|---|---|---|
lo | blvl.Vec3 | |
hi | blvl.Vec3 | |
up | blvl.Vec3 | |
facing | blvl.Vec3 | |
top | blvl.Vec3 | |
bottom | blvl.Vec3 | |
gametypes | uint32 | optional |
variants | uint32 | optional |
variants_not | uint32 | optional |
used by
- Sim.climbs
enum TargetKind: ubyte
| value | number |
|---|---|
Door | 0 |
Mover | 1 |
Trigger | 2 |
Breakable | 3 |
Ride | 4 |
Use | 5 |
used by
- Target.kind
struct Target8 bytes
| field | type | offset | size |
|---|---|---|---|
kind | TargetKind | 0 | 1 |
index | uint32 | 4 | 4 |
used by
- Use.targets
enum UseKind: ubyte
| value | number |
|---|---|
Button | 0 |
Lever | 1 |
Panel | 2 |
Pickup | 3 |
used by
- Use.kind
table Use
| field | type | default |
|---|---|---|
kind | UseKind | |
lo | blvl.Vec3 | |
hi | blvl.Vec3 | |
look | blvl.Vec3 | |
reach | float | |
hold | float | |
once | bool | |
targets | [Target] | |
team | string | |
gametypes | uint32 | optional |
variants | uint32 | optional |
variants_not | uint32 | optional |
used by
- Sim.uses
table Push
| field | type | default |
|---|---|---|
velocity | blvl.Vec3 |
used by
- TriggerKind.Push
table Teleport
| field | type | default |
|---|---|---|
dest | uint32 |
used by
- TriggerKind.Teleport
union TriggerKind
used by
- Trigger.kind
table Trigger
| field | type | default |
|---|---|---|
model | uint32 | |
kind | TriggerKind | |
lo | blvl.Vec3 | |
hi | blvl.Vec3 | |
gametypes | uint32 | optional |
variants | uint32 | optional |
variants_not | uint32 | optional |
used by
- Sim.triggers
struct TeleportDest16 bytes
| field | type | offset | size |
|---|---|---|---|
pos | blvl.Vec3 | 0 | 12 |
yaw | float | 12 | 4 |
used by
- Sim.teleport_dests
table Kill
| field | type | default |
|---|
used by
- HurtKind.Kill
table Damage
| field | type | default |
|---|---|---|
amount | float | |
interval | float |
used by
- HurtKind.Damage
union HurtKind
used by
- HurtVolume.kind
table HurtVolume
| field | type | default |
|---|---|---|
name | string | |
kind | HurtKind | |
lo | blvl.Vec3 | |
hi | blvl.Vec3 | |
planes | [Plane] | |
variants | uint32 | optional |
variants_not | uint32 | optional |
used by
- Sim.hurt_volumes
enum SpawnKind: ubyte
| value | number |
|---|---|
Deathmatch | 0 |
Start | 1 |
UrbanTerror | 2 |
Team | 3 |
used by
- Spawn.kind
table Spawn
| field | type | default |
|---|---|---|
pos | blvl.Vec3 | |
yaw | float | |
kind | SpawnKind | |
team | string | |
gametypes | uint32 | optional |
variants | uint32 | optional |
variants_not | uint32 | optional |
used by
- Sim.spawns
table Meta
| field | type | default |
|---|---|---|
author | string | |
description | string | |
created_unix | uint64 | |
generator | string | |
kind | blvl.MapKind | |
origin | blvl.Origin |
used by
- Sim.meta
sites.fbs
table Sites
| field | type | default |
|---|---|---|
sites | [Site] |
enum Kind: ubyte
| value | number |
|---|---|
Other | 0 |
Bombsite | 1 |
Hostage | 2 |
Capture | 3 |
Flag | 4 |
BuyZone | 5 |
Rescue | 6 |
Place | 7 |
used by
- Site.kind
table Site
| field | type | default |
|---|---|---|
name | string | |
kind | Kind | |
lo | blvl.Vec3 | |
hi | blvl.Vec3 | |
team | string | |
gametypes | uint32 | optional |
variants | uint32 | optional |
variants_not | uint32 | optional |
used by
- Sites.sites
skies.fbs
table Skies
| field | type | default |
|---|---|---|
items | [Sky] |
table Sky
| field | type | default |
|---|---|---|
name | string | |
cube | blvl.Image | |
cloud_height | float |
used by
- Skies.items
symbols.fbs
- table Symbols
- enum SourceKind
- table Level
- table Bake
- table Material
- struct Source
- struct ColliderSym
- struct TriRun
- table Count
- table Names
- table Report
table Symbols
enum SourceKind: ubyte
| value | number |
|---|---|
Unknown | 0 |
Brush | 1 |
Face | 2 |
Patch | 3 |
Displacement | 4 |
Prop | 5 |
MeshHull | 6 |
PhysHull | 7 |
PhysMesh | 8 |
Overlay | 9 |
Block | 10 |
Synthetic | 11 |
used by
- Source.kind
table Level
| field | type | default |
|---|---|---|
name | string | |
colliders | uint32 | |
triangles | uint32 | |
batches | uint32 | |
materials | uint32 |
used by
- Symbols.level
table Bake
| field | type | default |
|---|---|---|
generator | string | |
kind | blvl.MapKind | |
options | string | |
options_hash | uint64 | |
created_unix | uint64 |
used by
- Symbols.bake
table Material
| field | type | default |
|---|---|---|
name | string | |
shader | string | |
script | string | |
albedo | string | |
normal | string | |
orm | string | |
emissive | string | |
albedo_b | string | |
props | string | |
surface_parms | uint16 | |
surface_flags | uint32 | |
contents_flags | uint32 | |
flags_label | string | |
baked | uint32 | optional |
skipped | string |
used by
- Symbols.materials
struct Source40 bytes
| field | type | offset | size |
|---|---|---|---|
kind | SourceKind | 0 | 1 |
model | uint32 | 4 | 4 |
index | uint32 | 8 | 4 |
sub | uint32 | 12 | 4 |
entity | uint32 | 16 | 4 |
material | uint32 | 20 | 4 |
surface_flags | uint32 | 24 | 4 |
contents_flags | uint32 | 28 | 4 |
label | uint32 | 32 | 4 |
flags_label | uint32 | 36 | 4 |
used by
- Symbols.sources
struct ColliderSym8 bytes
| field | type | offset | size |
|---|---|---|---|
source | uint32 | 0 | 4 |
part | uint32 | 4 | 4 |
used by
- Symbols.colliders
struct TriRun12 bytes
| field | type | offset | size |
|---|---|---|---|
first_tri | uint32 | 0 | 4 |
count | uint32 | 4 | 4 |
source | uint32 | 8 | 4 |
used by
- Symbols.tri_runs
table Count
| field | type | default |
|---|---|---|
name | string | |
count | uint32 |
table Names
| field | type | default |
|---|---|---|
name | string | |
names | [string] |
used by
- Report.skipped_shaders
table Report
| field | type | default |
|---|---|---|
skipped_faces | [Count] | |
skipped_shaders | [Names] | |
dropped_entities | [Count] | |
unresolved | [string] | |
unresolved_models | [string] | |
notes | [string] |
used by
- Symbols.report
variants.fbs
table Variants
table Group
| field | type | default |
|---|---|---|
name | string | |
label | string | |
default_variant | uint32 | optional |
used by
- Variants.groups
table Variant
| field | type | default |
|---|---|---|
name | string | |
label | string | |
group | uint32 | optional |
lighting | bool | |
modes | [string] |
used by
- Variants.variants