mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-04-29 08:16:22 +00:00
migrate to vite (#16)
This commit is contained in:
parent
1373f12ab4
commit
5025065188
165 changed files with 56708 additions and 8931 deletions
|
|
@ -2,7 +2,6 @@
|
|||
//
|
||||
// https://peggyjs.org/
|
||||
|
||||
"use strict";
|
||||
|
||||
|
||||
// Collect exec() script paths during parsing (deduplicated)
|
||||
|
|
@ -6446,8 +6445,12 @@ function peg$parse(input, options) {
|
|||
}
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
StartRules: ["Program"],
|
||||
SyntaxError: peg$SyntaxError,
|
||||
parse: peg$parse,
|
||||
const peg$allowedStartRules = [
|
||||
"Program"
|
||||
];
|
||||
|
||||
export {
|
||||
peg$allowedStartRules as StartRules,
|
||||
peg$SyntaxError as SyntaxError,
|
||||
peg$parse as parse
|
||||
};
|
||||
2736
generated/hxDif.cjs
2736
generated/hxDif.cjs
File diff suppressed because it is too large
Load diff
37
generated/hxDif.d.ts
vendored
37
generated/hxDif.d.ts
vendored
|
|
@ -1,37 +0,0 @@
|
|||
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