feat: Implemented basic location graph

This commit is contained in:
2026-07-06 20:11:43 +05:30
parent 215b7b171e
commit 6d8c3cee4f
3 changed files with 24 additions and 1 deletions

View File

@@ -5,5 +5,8 @@
"type": "module",
"exports": {
".": "./dist/index.js"
},
"dependencies": {
"@omnia/core": "workspace:*"
}
}

View File

@@ -1 +1 @@
export {};
export * from "./location.js";

View File

@@ -0,0 +1,20 @@
import { AttributableObject } from "@omnia/core";
export class Location extends AttributableObject {
parentId: string | null;
connections: PortalConnection[] = [];
constructor(id?: string, parentId: string | null = null) {
super(id);
this.parentId = parentId;
}
}
export interface PortalConnection {
targetId: string;
portalName?: string;
portalStateDescriptor?: string;
visionProp: number; // 010
soundProp: number; // 010
bidirectional: boolean;
}