private static int CreatePanel(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 2); uint callId = (uint)LuaScriptMgr.GetNumber(L, 1); string luaString = LuaScriptMgr.GetLuaString(L, 2); CSharpInterface.CreatePanel(callId, luaString); return(0); }
public static int CreatePanel_s(IntPtr l) { int result; try { uint callId; LuaObject.checkType(l, 1, out callId); string panelName; LuaObject.checkType(l, 2, out panelName); CSharpInterface.CreatePanel(callId, panelName); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }