/**
 * @license
 * Copyright 2022-2026 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
import { BooleanStateBehavior } from "./BooleanStateBehavior.js";
class BooleanStateServer extends BooleanStateBehavior {
  initialize() {
    this.reactTo(this.events.stateValue$Changed, this.#emitStateChange);
  }
  #emitStateChange(stateValue) {
    this.events.stateChange?.emit({ stateValue }, this.context);
  }
}
export {
  BooleanStateServer
};
//# sourceMappingURL=BooleanStateServer.js.map
