Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
offsetMTXF: r.uint32le,
offsetMTXP: r.uint32le,
skip: new r.Reserved(r.uint32le, 2)
});
var MTEX = Chunk({
filenames: new r.Array(new r.String(null), 'size', 'bytes')
});
var MMDX = Chunk({
filenames: new r.Array(new r.String(null), 'size', 'bytes')
});
var MCVT = Chunk({
heights: new r.Array(r.floatle, 145)
});
var MCNR = Chunk({
normals: new r.Array(new r.Struct({
x: r.int8,
z: r.int8,
y: r.int8
}), 145),
skip: new r.Reserved(r.uint8, 13)
});
var MCLY = Chunk({
layers: new r.Array(new r.Struct({
textureID: r.uint32le,
offsetMCAL: r.uint32le,
skip: r.uint32le,
import Entity from '../entity';
export default Entity({
id: r.uint32le,
mapID: r.uint32le,
bounds: new r.Struct({
left: r.uint32le,
right: r.uint32le,
top: r.uint32le,
bottom: r.uint32le,
}),
offsetX: r.floatle,
offsetY: r.floatle,
scale: r.floatle,
taxiMinX: r.floatle,
taxiMinY: r.floatle,
taxiMaxX: r.floatle,
taxiMaxY: r.floatle,
worldMapID: r.uint32le,
});
import r from 'restructure';
import Entity from '../entity';
import { Vec3Float } from '../../types';
export default Entity({
id: r.uint32le,
mapID: r.uint32le,
position: Vec3Float,
radius: r.floatle,
box: new r.Struct({
length: r.floatle,
width: r.floatle,
height: r.floatle,
yaw: r.floatle,
}),
});
import r from 'restructure';
import Entity from '../entity';
export default Entity({
id: r.uint32le,
indicatorID: r.uint32le,
seatIndex: r.uint32le,
x: r.floatle,
y: r.floatle,
});
mapID: r.uint32le,
parentID: r.uint32le,
areaBit: r.uint32le,
flags: r.uint32le,
soundPreferenceID: r.uint32le,
underwaterSoundPreferenceID: r.uint32le,
soundAmbienceID: r.uint32le,
zoneMusicID: r.uint32le,
zoneIntroMusicID: r.uint32le,
level: r.uint32le,
name: LocalizedStringRef,
factionGroupID: r.uint32le,
liquidTypes: new r.Array(r.uint32le, 4),
minElevation: r.floatle,
ambientMultiplier: r.floatle,
lightID: r.uint32le,
});
import r from 'restructure';
import Entity from '../entity';
export default Entity({
id: r.uint32le,
mapID: r.uint32le,
regionMinX: r.floatle,
regionMinY: r.floatle,
regionMaxX: r.floatle,
regionMaxY: r.floatle,
newMapID: r.uint32le,
regionOffsetX: r.floatle,
regionOffsetY: r.floatle,
unknown: new r.Reserved(r.uint32le),
});
import r from 'restructure';
import Entity from '../entity';
import LocalizedStringRef from '../localized-string-ref';
export default Entity({
id: r.uint32le,
minRangeHostile: r.floatle,
minRangeFriendly: r.floatle,
maxRangeHostile: r.floatle,
maxRangeFriendly: r.floatle,
type: r.uint32le,
description: LocalizedStringRef,
name: LocalizedStringRef,
});
import r from 'restructure';
import Entity from '../entity';
import { Vec3Float } from '../../types';
export default Entity({
id: r.uint32le,
parentKitID: r.uint32le,
effectID: r.uint32le,
attachmentID: r.uint32le,
offset: Vec3Float,
yaw: r.floatle,
pitch: r.floatle,
roll: r.floatle,
});
import r from 'restructure';
import Entity from '../entity';
import StringRef from '../string-ref';
export default Entity({
id: r.uint32le,
ambienceID: r.uint32le,
effectType: r.uint32le,
unknown1: new r.Reserved(r.floatle),
effectColors: new r.Array(r.floatle, 3),
effectTexture: StringRef,
});
filename: function () {
return this.parent.parent.MODN.filenames[this.filenameOffset];
},
flags: r.uint8,
position: Vec3Float,
rotation: Quat,
scale: r.floatle,
color: r.uint32le,
}), 'size', 'bytes'),
});
const MFOG = Chunk({
fogs: new r.Array(new r.Struct({
flags: r.uint32le,
position: Vec3Float,
smallerRadius: r.floatle,
largerRadius: r.floatle,
fogEnd: r.floatle,
fogStartMultiplier: r.floatle,
color: r.uint32le,
unknowns: new r.Reserved(r.floatle, 2),
color2: r.uint32le,
}), 'size', 'bytes'),
});
const MOPV = Chunk({
vertices: new r.Array(float32array3, 'size', 'bytes'),
});
const MOPT = Chunk({
portals: new r.Array(new r.Struct({
vertexOffset: r.uint16le,