Skip to main content

Crate brdb

Crate brdb 

Source

Re-exports§

pub use crate::schema::as_brdb::AsBrdbValue;
pub use brz::*;

Modules§

assets
brz
component_db
compression
fs
pending
schema
schemas
tables

Structs§

BitFlags
BrReader
Brdb
Brick
BrickChunkIndexSoA
BrickChunkSoA
BrickSize
BrickSizeCounter
BundleAuthor
One entry of Bundle.json’s authors array as the game writes it.
BundleColor
Bundle.json color (RGBA, 0..=1 floats; the game writes whole numbers for white).
BundleJson
ChunkIndex
ChunkMeta
Collision
Color
ComponentChunkSoA
ComponentTypeCounter
Entity
EntityChunkIndexSoA
EntityChunkSoA
EntityColors
EntityTypeCounter
FoundFile
Guid
IntVector
LocalWirePortSource
Owner
OwnerTableSoA
Position
PrefabIntVec3
An integer 3-vector as serialized in Meta/Prefab.json (addedGlobalGridOffset).
PrefabJson
Meta/Prefab.json — present only for type: "Prefab" bundles. Describes the prefab’s bounds/pivots and grid flags so the game can preview and place it. Build one from a brick bounding box with PrefabJson::from_bounds.
PrefabPivot
A single pivot: a center point and an axis-aligned half-extent, both in grid-local brick units.
PrefabPivots
The pivots object of Meta/Prefab.json. The game uses these for preview and stud-snapping when placing a prefab.
PrefabVec3
A float 3-vector as serialized in Meta/Prefab.json (pivot centers and half-extents).
Quat4f
RelativePosition
RemoteWirePortSource
SavedBrickColor
UnsavedFs
All of the dynamic data needed to serialize a world
UnsavedGrid
UnsavedWorld
Vector3f
WireChunkSoA
WireConnection
WirePort
WirePortTarget
World
WorldJson
WorldMeta

Enums§

BString
A string that can be owned, static, or shared.
BrError
BrFsError
BrdbError
BrdbSchemaError
BrdbWorldError
BrickType
Direction
Rotation

Constants§

BRDB_SQLITE_SCHEMA
CHUNK_HALF
CHUNK_SIZE
GAME_VERSION
Written into Meta/Bundle.json as gameVersion. A neutral placeholder so generated bundles don’t bake in a specific changelist. Migrations are driven by the saved data/schema, not this field.
REQUIRED_TABLES
ZERO_GUID
The all-zero GUID the game uses for unset ids (bundle iD, author ids of bundles that never stored one).

Traits§

BoxedComponent
This trait allows BrdbComponents to be cloned despite being a dyn trait
BrFsReader
BrdbComponent
IntoReader
Wrap

Functions§

byte_to_orientation
lookup_entity_struct_name
This function may only be useful for legacy worlds from steam next fest. New worlds will properly pair the class name with the entity type
orientation_to_byte