public static int UpdateTile(IntPtr l) { int result; try { SparseTexture sparseTexture = (SparseTexture)LuaObject.checkSelf(l); int tileX; LuaObject.checkType(l, 2, out tileX); int tileY; LuaObject.checkType(l, 3, out tileY); int miplevel; LuaObject.checkType(l, 4, out miplevel); Color32[] data; LuaObject.checkArray <Color32>(l, 5, out data); sparseTexture.UpdateTile(tileX, tileY, miplevel, data); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
static int UpdateTile(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 5); SparseTexture obj = LuaScriptMgr.GetNetObject <SparseTexture>(L, 1); int arg0 = (int)LuaScriptMgr.GetNumber(L, 2); int arg1 = (int)LuaScriptMgr.GetNumber(L, 3); int arg2 = (int)LuaScriptMgr.GetNumber(L, 4); Color32[] objs3 = LuaScriptMgr.GetArrayObject <Color32>(L, 5); obj.UpdateTile(arg0, arg1, arg2, objs3); return(0); }