Add Datatable Type enums to base class for ease of accessibility

This commit is contained in:
AconiteGodOfSWG
2020-12-01 02:13:03 -05:00
parent 3b1c2513fd
commit 9738f7bf02

View File

@@ -1545,6 +1545,16 @@ public class base_class
public static final int FACTION_HASH_GUILDWAR_COOLDOWN = -1526926610;
public static final int FACTION_HASH_BUBBLE_COMBAT = -377582139;
/**
* Datatable Column Data Types
* Returned by datatableGetColumnType (uses basic types only)
* Must match enums used in src DataTableColumnType.cpp
*/
public static final int DATATABLE_TYPE_INT = 0; // returned for columns with type: int, enum, hash, bool, bit vector
public static final int DATATABLE_TYPE_FLOAT = 1; // returned for columns with type: float
public static final int DATATABLE_TYPE_STRING = 2; // returned for columns with type: string, packed objvars
public static final int DATATABLE_TYPE_UNKNOWN = -1; // returned for columns with errors or unknown type
/**
* Returns an obj_id for a given id number.
* In order to match compliance with previous behavior, will return null if id == 0