Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxq committed Jul 6, 2018
1 parent e87cc60 commit d4f9257
Showing 1 changed file with 46 additions and 1 deletion.
47 changes: 46 additions & 1 deletion Lua/DataType.lua
Original file line number Diff line number Diff line change
Expand Up @@ -544,4 +544,49 @@ KBEngineLua.DATATYPE_FIXED_DICT.isSameType = function(self, v)
end
end
return true;
end
end


KBEngineLua.datatypes = {};
KBEngineLua.datatype2id = {};


KBEngineLua.datatypes["UINT8"] = KBEngineLua.DATATYPE_UINT8;
KBEngineLua.datatypes["UINT16"] = KBEngineLua.DATATYPE_UINT16;
KBEngineLua.datatypes["UINT32"] = KBEngineLua.DATATYPE_UINT32;
KBEngineLua.datatypes["UINT64"] = KBEngineLua.DATATYPE_UINT64;

KBEngineLua.datatypes["INT8"] = KBEngineLua.DATATYPE_INT8;
KBEngineLua.datatypes["INT16"] = KBEngineLua.DATATYPE_INT16;
KBEngineLua.datatypes["INT32"] = KBEngineLua.DATATYPE_INT32;
KBEngineLua.datatypes["INT64"] = KBEngineLua.DATATYPE_INT64;

KBEngineLua.datatypes["FLOAT"] = KBEngineLua.DATATYPE_FLOAT;
KBEngineLua.datatypes["DOUBLE"] = KBEngineLua.DATATYPE_DOUBLE;

KBEngineLua.datatypes["STRING"] = KBEngineLua.DATATYPE_STRING;
KBEngineLua.datatypes["VECTOR2"] = KBEngineLua.DATATYPE_VECTOR2;
KBEngineLua.datatypes["VECTOR3"] = KBEngineLua.DATATYPE_VECTOR3;
KBEngineLua.datatypes["VECTOR4"] = KBEngineLua.DATATYPE_VECTOR4;
KBEngineLua.datatypes["PYTHON"] = KBEngineLua.DATATYPE_PYTHON;
KBEngineLua.datatypes["UNICODE"] = KBEngineLua.DATATYPE_UNICODE;
KBEngineLua.datatypes["ENTITYCALL"] = KBEngineLua.DATATYPE_ENTITYCALL;
KBEngineLua.datatypes["BLOB"] = KBEngineLua.DATATYPE_BLOB;

KBEngineLua.datatypes[1] = KBEngineLua.datatypes["STRING"];
KBEngineLua.datatypes[2] = KBEngineLua.datatypes["UINT8"];
KBEngineLua.datatypes[3] = KBEngineLua.datatypes["UINT16"];
KBEngineLua.datatypes[4] = KBEngineLua.datatypes["UINT32"];
KBEngineLua.datatypes[5] = KBEngineLua.datatypes["UINT64"];
KBEngineLua.datatypes[6] = KBEngineLua.datatypes["INT8"];
KBEngineLua.datatypes[7] = KBEngineLua.datatypes["INT16"];
KBEngineLua.datatypes[8] = KBEngineLua.datatypes["INT32"];
KBEngineLua.datatypes[9] = KBEngineLua.datatypes["INT64"];
KBEngineLua.datatypes[10] = KBEngineLua.datatypes["PYTHON"];
KBEngineLua.datatypes[11] = KBEngineLua.datatypes["BLOB"];
KBEngineLua.datatypes[12] = KBEngineLua.datatypes["UNICODE"];
KBEngineLua.datatypes[13] = KBEngineLua.datatypes["FLOAT"];
KBEngineLua.datatypes[14] = KBEngineLua.datatypes["DOUBLE"];
KBEngineLua.datatypes[15] = KBEngineLua.datatypes["VECTOR2"];
KBEngineLua.datatypes[16] = KBEngineLua.datatypes["VECTOR3"];
KBEngineLua.datatypes[17] = KBEngineLua.datatypes["VECTOR4"];

0 comments on commit d4f9257

Please sign in to comment.