Add TE_WriteEnt and TE_ReadEnt natives to SDKTools. (#1905)

This commit is contained in:
Nicholas Hastings
2023-01-14 14:48:05 +00:00
committed by GitHub
parent 27b1817b10
commit 8922ed0c5d
4 changed files with 111 additions and 0 deletions
+18
View File
@@ -98,6 +98,24 @@ native void TE_WriteNum(const char[] prop, int value);
*/
native int TE_ReadNum(const char[] prop);
/**
* Sets an entity value in the current temp entity.
*
* @param prop Property to use.
* @param value Entity reference or index value to set.
* @error Property not found.
*/
native void TE_WriteEnt(const char[] prop, int value);
/**
* Reads an entity value in the current temp entity.
*
* @param prop Property to use.
* @return Property value as backwards compatible entity reference.
* @error Property not found.
*/
native int TE_ReadEnt(const char[] prop);
/**
* Sets a floating point number in the current temp entity.
*