Properties
integrity
integrity: number[]
Methods
calculateIntegrity
- calculateIntegrity(): number[]
Private getRandomInt
- getRandomInt(min: number, max: number): number
-
Parameters
Returns number
Static cryptTop10
-
Parameters
Returns Buffer
Static Private parseBuffer
- parseBuffer(buffer: Buffer): Level
Static Private parseObjects
- parseObjects(buffer: Buffer, offset: number, objectCount: number): ElmaObject[]
-
Parameters
-
buffer: Buffer
-
offset: number
-
objectCount: number
Static Private parsePictures
- parsePictures(buffer: Buffer, offset: number, picCount: number): Picture[]
-
Parameters
-
buffer: Buffer
-
offset: number
-
picCount: number
Static Private parsePolygons
- parsePolygons(buffer: Buffer, readBytes: number, polyCount: number): [Polygon[], number]
-
Parameters
-
buffer: Buffer
-
readBytes: number
-
polyCount: number
Returns [Polygon[], number]
Calculates the integrity sums of the level. NOTE: Does not currently detect topology errors.