celaria-formats
    Preparing search index...

    Class EditableCelariaMap

    I represent an editable Celaria map openable in the game's map editor. I am yet to be finalized into a CelariaMap.

    import fs from "node:fs"
    import { Block } from "celaria-formats/class/maps/objects/Block.mjs"
    import { EditableCelariaMap } from "celaria-formats/class/maps/EditableCelariaMap.mjs"

    const myMap = EditableCelariaMap.parse(fs.readFileSync("./myMap.cmap"))
    myMap.instances.filter(instance => instance.instanceId == 0).forEach(block => block.type = Block.types.speed)
    const output = myMap.serialize(4)

    Hierarchy

    • BaseCelariaMap
      • EditableCelariaMap
    Index

    Constructors

    Properties

    checkpointOrder: OrderedSet<Block>

    The order of checkpoint blocks in the map.

    The object instances in the map.

    previewCamera: { from: Vector3; to: Vector3 }
    sunRotationHorizontal: number
    sunRotationVertical: number
    version: number
    fileSignature: string = "celaria_edi"

    Accessors

    Methods

    • Serializes the map into a buffer.

      Checkpoints and goal blocks are modified in place if they aren't specified in my checkpointOrder. And the blocks that are will also be modified.

      Parameters

      • version: number

      Returns Buffer<ArrayBufferLike>

      If a Barrier can't figure out if it's a wall or a floor.