Update spcomp and includes to latest 1.10-fork

disable warning 241: Array-based enum structs will be removed in 1.11
This commit is contained in:
BotoX
2024-06-21 06:55:55 +02:00
committed by zaCade
parent 689c4e89cf
commit 917ec936f8
72 changed files with 7755 additions and 6440 deletions
+96 -96
View File
@@ -200,72 +200,72 @@ methodmap BfRead < Handle
/**
* Writes a single bit to a writable bitbuffer (bf_write).
*
* @param bf bf_write handle to write to.
* @param bit Bit to write (true for 1, false for 0).
* @error Invalid or incorrect Handle.
* @param bf bf_write handle to write to.
* @param bit Bit to write (true for 1, false for 0).
* @error Invalid or incorrect Handle.
*/
native void BfWriteBool(Handle bf, bool bit);
/**
* Writes a byte to a writable bitbuffer (bf_write).
*
* @param bf bf_write handle to write to.
* @param byte Byte to write (value will be written as 8bit).
* @error Invalid or incorrect Handle.
* @param bf bf_write handle to write to.
* @param byte Byte to write (value will be written as 8bit).
* @error Invalid or incorrect Handle.
*/
native void BfWriteByte(Handle bf, int byte);
/**
* Writes a byte to a writable bitbuffer (bf_write).
*
* @param bf bf_write handle to write to.
* @param chr Character to write.
* @error Invalid or incorrect Handle.
* @param bf bf_write handle to write to.
* @param chr Character to write.
* @error Invalid or incorrect Handle.
*/
native void BfWriteChar(Handle bf, int chr);
/**
* Writes a 16bit integer to a writable bitbuffer (bf_write).
*
* @param bf bf_write handle to write to.
* @param num Integer to write (value will be written as 16bit).
* @error Invalid or incorrect Handle.
* @param bf bf_write handle to write to.
* @param num Integer to write (value will be written as 16bit).
* @error Invalid or incorrect Handle.
*/
native void BfWriteShort(Handle bf, int num);
/**
* Writes a 16bit unsigned integer to a writable bitbuffer (bf_write).
*
* @param bf bf_write handle to write to.
* @param num Integer to write (value will be written as 16bit).
* @error Invalid or incorrect Handle.
* @param bf bf_write handle to write to.
* @param num Integer to write (value will be written as 16bit).
* @error Invalid or incorrect Handle.
*/
native void BfWriteWord(Handle bf, int num);
/**
* Writes a normal integer to a writable bitbuffer (bf_write).
*
* @param bf bf_write handle to write to.
* @param num Integer to write (value will be written as 32bit).
* @error Invalid or incorrect Handle.
* @param bf bf_write handle to write to.
* @param num Integer to write (value will be written as 32bit).
* @error Invalid or incorrect Handle.
*/
native void BfWriteNum(Handle bf, int num);
/**
* Writes a floating point number to a writable bitbuffer (bf_write).
*
* @param bf bf_write handle to write to.
* @param num Number to write.
* @error Invalid or incorrect Handle.
* @param bf bf_write handle to write to.
* @param num Number to write.
* @error Invalid or incorrect Handle.
*/
native void BfWriteFloat(Handle bf, float num);
/**
* Writes a string to a writable bitbuffer (bf_write).
*
* @param bf bf_write handle to write to.
* @param string Text string to write.
* @error Invalid or incorrect Handle.
* @param bf bf_write handle to write to.
* @param string Text string to write.
* @error Invalid or incorrect Handle.
*/
native void BfWriteString(Handle bf, const char[] string);
@@ -273,134 +273,134 @@ native void BfWriteString(Handle bf, const char[] string);
* Writes an entity to a writable bitbuffer (bf_write).
* @note This is a wrapper around BfWriteShort().
*
* @param bf bf_write handle to write to.
* @param ent Entity index to write.
* @error Invalid or incorrect Handle, or invalid entity.
* @param bf bf_write handle to write to.
* @param ent Entity index to write.
* @error Invalid or incorrect Handle, or invalid entity.
*/
native void BfWriteEntity(Handle bf, int ent);
/**
* Writes a bit angle to a writable bitbuffer (bf_write).
*
* @param bf bf_write handle to write to.
* @param angle Angle to write.
* @param numBits Optional number of bits to use.
* @error Invalid or incorrect Handle.
* @param bf bf_write handle to write to.
* @param angle Angle to write.
* @param numBits Optional number of bits to use.
* @error Invalid or incorrect Handle.
*/
native void BfWriteAngle(Handle bf, float angle, int numBits=8);
/**
* Writes a coordinate to a writable bitbuffer (bf_write).
*
* @param bf bf_write handle to write to.
* @param coord Coordinate to write.
* @error Invalid or incorrect Handle.
* @param bf bf_write handle to write to.
* @param coord Coordinate to write.
* @error Invalid or incorrect Handle.
*/
native void BfWriteCoord(Handle bf, float coord);
/**
* Writes a 3D vector of coordinates to a writable bitbuffer (bf_write).
*
* @param bf bf_write handle to write to.
* @param coord Coordinate array to write.
* @error Invalid or incorrect Handle.
* @param bf bf_write handle to write to.
* @param coord Coordinate array to write.
* @error Invalid or incorrect Handle.
*/
native void BfWriteVecCoord(Handle bf, float coord[3]);
/**
* Writes a 3D normal vector to a writable bitbuffer (bf_write).
*
* @param bf bf_write handle to write to.
* @param vec Vector to write.
* @error Invalid or incorrect Handle.
* @param bf bf_write handle to write to.
* @param vec Vector to write.
* @error Invalid or incorrect Handle.
*/
native void BfWriteVecNormal(Handle bf, float vec[3]);
/**
* Writes a 3D angle vector to a writable bitbuffer (bf_write).
*
* @param bf bf_write handle to write to.
* @param angles Angle vector to write.
* @error Invalid or incorrect Handle.
* @param bf bf_write handle to write to.
* @param angles Angle vector to write.
* @error Invalid or incorrect Handle.
*/
native void BfWriteAngles(Handle bf, float angles[3]);
/**
* Reads a single bit from a readable bitbuffer (bf_read).
*
* @param bf bf_read handle to read from.
* @return Bit value read.
* @error Invalid or incorrect Handle.
* @param bf bf_read handle to read from.
* @return Bit value read.
* @error Invalid or incorrect Handle.
*/
native bool BfReadBool(Handle bf);
/**
* Reads a byte from a readable bitbuffer (bf_read).
*
* @param bf bf_read handle to read from.
* @return Byte value read (read as 8bit).
* @error Invalid or incorrect Handle.
* @param bf bf_read handle to read from.
* @return Byte value read (read as 8bit).
* @error Invalid or incorrect Handle.
*/
native int BfReadByte(Handle bf);
/**
* Reads a character from a readable bitbuffer (bf_read).
*
* @param bf bf_read handle to read from.
* @return Character value read.
* @error Invalid or incorrect Handle.
* @param bf bf_read handle to read from.
* @return Character value read.
* @error Invalid or incorrect Handle.
*/
native int BfReadChar(Handle bf);
/**
* Reads a 16bit integer from a readable bitbuffer (bf_read).
*
* @param bf bf_read handle to read from.
* @return Integer value read (read as 16bit).
* @error Invalid or incorrect Handle.
* @param bf bf_read handle to read from.
* @return Integer value read (read as 16bit).
* @error Invalid or incorrect Handle.
*/
native int BfReadShort(Handle bf);
/**
* Reads a 16bit unsigned integer from a readable bitbuffer (bf_read).
*
* @param bf bf_read handle to read from.
* @return Integer value read (read as 16bit).
* @error Invalid or incorrect Handle.
* @param bf bf_read handle to read from.
* @return Integer value read (read as 16bit).
* @error Invalid or incorrect Handle.
*/
native int BfReadWord(Handle bf);
/**
* Reads a normal integer to a readable bitbuffer (bf_read).
*
* @param bf bf_read handle to read from.
* @return Integer value read (read as 32bit).
* @error Invalid or incorrect Handle.
* @param bf bf_read handle to read from.
* @return Integer value read (read as 32bit).
* @error Invalid or incorrect Handle.
*/
native int BfReadNum(Handle bf);
/**
* Reads a floating point number from a readable bitbuffer (bf_read).
*
* @param bf bf_read handle to read from.
* @return Floating point value read.
* @error Invalid or incorrect Handle.
* @param bf bf_read handle to read from.
* @return Floating point value read.
* @error Invalid or incorrect Handle.
*/
native float BfReadFloat(Handle bf);
/**
* Reads a string from a readable bitbuffer (bf_read).
*
* @param bf bf_read handle to read from.
* @param buffer Destination string buffer.
* @param maxlength Maximum length of output string buffer.
* @param line If true the buffer will be copied until it reaches a '\n' or a null terminator.
* @return Number of bytes written to the buffer. If the bitbuffer stream overflowed,
* that is, had no terminator before the end of the stream, then a negative
* number will be returned equal to the number of characters written to the
* buffer minus 1. The buffer will be null terminated regardless of the
* return value.
* @error Invalid or incorrect Handle.
* @param bf bf_read handle to read from.
* @param buffer Destination string buffer.
* @param maxlength Maximum length of output string buffer.
* @param line If true the buffer will be copied until it reaches a '\n' or a null terminator.
* @return Number of bytes written to the buffer. If the bitbuffer stream overflowed,
* that is, had no terminator before the end of the stream, then a negative
* number will be returned equal to the number of characters written to the
* buffer minus 1. The buffer will be null terminated regardless of the
* return value.
* @error Invalid or incorrect Handle.
*/
native int BfReadString(Handle bf, char[] buffer, int maxlength, bool line=false);
@@ -408,63 +408,63 @@ native int BfReadString(Handle bf, char[] buffer, int maxlength, bool line=false
* Reads an entity from a readable bitbuffer (bf_read).
* @note This is a wrapper around BfReadShort().
*
* @param bf bf_read handle to read from.
* @return Entity index read.
* @error Invalid or incorrect Handle.
* @param bf bf_read handle to read from.
* @return Entity index read.
* @error Invalid or incorrect Handle.
*/
native int BfReadEntity(Handle bf);
/**
* Reads a bit angle from a readable bitbuffer (bf_read).
*
* @param bf bf_read handle to read from.
* @param numBits Optional number of bits to use.
* @return Angle read.
* @error Invalid or incorrect Handle.
* @param bf bf_read handle to read from.
* @param numBits Optional number of bits to use.
* @return Angle read.
* @error Invalid or incorrect Handle.
*/
native float BfReadAngle(Handle bf, int numBits=8);
/**
* Reads a coordinate from a readable bitbuffer (bf_read).
*
* @param bf bf_read handle to read from.
* @return Coordinate read.
* @error Invalid or incorrect Handle.
* @param bf bf_read handle to read from.
* @return Coordinate read.
* @error Invalid or incorrect Handle.
*/
native float BfReadCoord(Handle bf);
/**
* Reads a 3D vector of coordinates from a readable bitbuffer (bf_read).
*
* @param bf bf_read handle to read from.
* @param coord Destination coordinate array.
* @error Invalid or incorrect Handle.
* @param bf bf_read handle to read from.
* @param coord Destination coordinate array.
* @error Invalid or incorrect Handle.
*/
native void BfReadVecCoord(Handle bf, float coord[3]);
/**
* Reads a 3D normal vector from a readable bitbuffer (bf_read).
*
* @param bf bf_read handle to read from.
* @param vec Destination vector array.
* @error Invalid or incorrect Handle.
* @param bf bf_read handle to read from.
* @param vec Destination vector array.
* @error Invalid or incorrect Handle.
*/
native void BfReadVecNormal(Handle bf, float vec[3]);
/**
* Reads a 3D angle vector from a readable bitbuffer (bf_read).
*
* @param bf bf_read handle to read from.
* @param angles Destination angle vector.
* @error Invalid or incorrect Handle.
* @param bf bf_read handle to read from.
* @param angles Destination angle vector.
* @error Invalid or incorrect Handle.
*/
native void BfReadAngles(Handle bf, float angles[3]);
/**
* Returns the number of bytes left in a readable bitbuffer (bf_read).
*
* @param bf bf_read handle to read from.
* @return Number of bytes left unread.
* @error Invalid or incorrect Handle.
* @param bf bf_read handle to read from.
* @return Number of bytes left unread.
* @error Invalid or incorrect Handle.
*/
native int BfGetNumBytesLeft(Handle bf);