@phaserjs/phaser
Version:
8 lines (7 loc) • 335 B
JavaScript
import { GameObjectWorld } from "../../GameObjectWorld";
import { PermissionsComponent } from "./PermissionsComponent";
import { addComponent } from "bitecs";
export function AddPermissionsComponent(id) {
addComponent(GameObjectWorld, PermissionsComponent, id);
PermissionsComponent.data[id].set([1, 1, 1, 1, 1, 1, 0, 1, 1, 0]);
}