API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classBindingProfile
A player's rebindings, as the persistable delta against the developer's defaults. A profile stores ONLY the actions a player actually changed. That is the whole point of keeping it separate from the defaults: a full snapshot taken today would freeze every action a game gains tomorrow at whatever binding it had - or lacked - when the save was written, so adding a new action with a new default would silently do nothing for returning players. A profile holds no reference to any live action or map. Apply it with ActionMap.applyProfile, which validates it against the map's actual actions and applies it as one transaction.
import { BindingProfile } from '@codexo/exojs'A player's rebindings, as the persistable delta against the developer's defaults.
A profile stores ONLY the actions a player actually changed. That is the whole point of keeping it separate from the defaults: a full snapshot taken today would freeze every action a game gains tomorrow at whatever binding it had - or lacked - when the save was written, so adding a new action with a new default would silently do nothing for returning players.
A profile holds no reference to any live action or map. Apply it with ActionMap.applyProfile, which validates it against the map's actual actions and applies it as one transaction.
new(): BindingProfileclear(): thisreset(action: string): thisfromJSON(data: unknown): BindingProfilenames: readonly string[]size: number