mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-03-04 04:50:33 +00:00
Initial commit
This commit is contained in:
parent
2211ed7650
commit
ebb3dc9cdd
10121 changed files with 801 additions and 4 deletions
37
generated/hxDif.d.ts
vendored
Normal file
37
generated/hxDif.d.ts
vendored
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
declare module "@/generated/hxDif.cjs" {
|
||||
export interface Point3F {
|
||||
x: number;
|
||||
y: number;
|
||||
z: number;
|
||||
write(io: any): void;
|
||||
static read(io: any): Point3F;
|
||||
}
|
||||
|
||||
export interface BSPNode {
|
||||
planeIndex: number;
|
||||
frontIndex: number;
|
||||
backIndex: number;
|
||||
isFrontLeaf: boolean;
|
||||
isFrontSolid: boolean;
|
||||
isBackLeaf: boolean;
|
||||
isBackSolid: boolean;
|
||||
}
|
||||
|
||||
export interface Dif {
|
||||
static LoadFromArrayBuffer(buffer: ArrayBufferLike): {
|
||||
// Add the properties you need from the parsed DIF here
|
||||
// This is just a starting point - add more as needed
|
||||
bspNodes: BSPNode[];
|
||||
points: Point3F[];
|
||||
planes: { x: number; y: number; z: number; d: number }[];
|
||||
materials: string[];
|
||||
// ... other properties
|
||||
};
|
||||
}
|
||||
|
||||
const hxDif: {
|
||||
Dif: typeof Dif;
|
||||
};
|
||||
|
||||
export default hxDif;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue