...
Static variables
staticgetFourBytes:(Array<Int>, Int) ‑> Int = getFourBytesDefault
Get a 32 bit bit value (Long) from provided data and location
Parameters:
_data | Data of current wad loaded |
---|---|
_offset | Position of data needed |
Returns:
Returns an integer from specified position
staticgetOneByte:(Array<Int>, Int, Bool) ‑> Int = getOneByteDefault
Get an 8 bit value from provided data and location
Parameters:
_data | Data of current wad loaded |
---|---|
_offset | Position of data needed |
_signed | Is value a signed value? |
Returns:
Returns an integer from specified position
staticgetStringFromRange:(Array<Int>, Int, Int) ‑> String = getStringFromRangeDefault
Get and construct a string value from specified range
Parameters:
_data | Data of current wad loaded |
---|---|
_start | Start position of string |
_end | End position of string |
Returns:
Returns a UTF8 compatible string. Automatically removes null and empty characters.
staticgetTwoBytes:(Array<Int>, Int, Bool) ‑> Int = getTwoBytesDefault
Get a 16 bit value (Short) from provided data and location @return
Parameters:
_data | |
---|---|
_offset | |
_signed |
staticreadDirectory:(Array<Int>, Int, String, Int) ‑> Directory = readDirectoryDefault
Reads from provided data and returns a new directory. @return
Parameters:
_data | |
---|---|
_offset | |
_wadname | |
_index |
staticreadHexenLinedef:(Array<Int>, Int) ‑> LineDefHexen = function(_data:Array<Int>, _offset:Int):LineDefHexen {
return LineDefHexen.CONSTRUCTOR([getTwoBytes(_data, _offset), getTwoBytes(_data, _offset + 2), getTwoBytes(_data, _offset + 4), getOneByte(_data, _offset + 6), getOneByte(_data, _offset + 7), getOneByte(_data, _offset + 8), getOneByte(_data, _offset + 9), getOneByte(_data, _offset + 10), getOneByte(_data, _offset + 11), getTwoBytes(_data, _offset + 12), getTwoBytes(_data, _offset + 14)]);
}
Reads from provided data and returns a Hexen compatible Linedef @return
Parameters:
_data | |
---|---|
_offset |
staticreadLinedef:(Array<Int>, Int) ‑> LineDef = readLinedefDefault
Reads from provided data and returns a vanilla compatible Linedef @return
Parameters:
_data | |
---|---|
_offset |
staticreadNode:(Array<Int>, Int) ‑> Node = readNodeDefault
Reads from provided data and returns a new Node @return
Parameters:
_data | |
---|---|
_offset |
staticreadPatch:(Array<Int>, Int) ‑> Patch = readPatchDefault
Read data and return a patch from given location
Parameters:
_data | Specified wad data array |
---|---|
_offset | Location of patch |
Returns:
New patch with correct data values
staticreadPatchNames:(Array<Int>, Int) ‑> PatchNames = readPatchNamesDefault
Read lump as PName @return
Parameters:
_data | |
---|---|
_offset | |
_size |
staticreadSector:(Array<Int>, Int) ‑> Sector = readSectorDefault
Reads from provided data and returns a new Sector @return
Parameters:
_data | |
---|---|
_offset |
staticreadSegment:(Array<Int>, Int) ‑> Segment = readSegmentDefault
Reads from provided data and returns a new Segment @return
Parameters:
_data | |
---|---|
_offset |
staticreadSideDef:(Array<Int>, Int) ‑> SideDef = readSideDefDefault
Reads from provided data and returns a new Sidedef @return
Parameters:
_data | |
---|---|
_offset |
staticreadSound:(Array<Int>, Int) ‑> SoundEffect = function(_data:Array<Int>, _offset:Int):SoundEffect {
var samplerate = getTwoBytes(_data, _offset + 2);
var numsamples = getTwoBytes(_data, _offset + 4);
var sampleBytes:BytesBuffer = new BytesBuffer();
for (samplepos in 0 ... numsamples) {
sampleBytes.addByte(getOneByte(_data, _offset + 8 + samplepos));
};
return SoundEffect.CONSTRUCTOR([samplerate, numsamples, sampleBytes.getBytes()]);
}
staticreadSubSector:(Array<Int>, Int) ‑> SubSector = readSubSectorDefault
Reads from provided data and returns a new Subsector @return
Parameters:
_data | |
---|---|
_offset |
staticreadThing:(Array<Int>, Int) ‑> Thing = readThingDefault
Reads from provided data and returns a new Thing @return
Parameters:
_data | |
---|---|
_offset |
staticreadVertex:(Array<Int>, Int) ‑> Vertex = readVertexDefault
Reads from provided data and returns a new Vertex @return
Parameters:
_data | |
---|---|
_offset |