The .drft container · class
RegionLedger
What regions must be to each other: an id once, a level mesh in one region's one level, and a group's prototype never also a level mesh. Kept across chunks by the writer, the whole-file reader and the stream alike, so a file one of them refuses the others refuse too.
Explained in The .drft container.
class RegionLedgerimport { RegionLedger } from '@driftengine/drft';Methods
admit
admit(region: DrftRegion): void| Parameter | Type | Description |
|---|---|---|
region | DrftRegion |
names
names(mesh: number): booleanWhether a mesh is any region's, as a level or a prop.
| Parameter | Type | Description |
|---|---|---|
mesh | number |