//this source code was auto-generated by tolua#, do not modify it using System; using LuaInterface; public class LuaUInt32Wrap { public static void Register(LuaState L) { L.BeginClass(typeof(LuaUInt32), typeof(System.Object)); L.RegFunction("FromString", FromString); L.RegFunction("BytesToUInt32", BytesToUInt32); L.RegFunction("New", _CreateLuaUInt32); L.RegFunction("__tostring", ToLua.op_ToString); L.EndClass(); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _CreateLuaUInt32(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 0) { LuaUInt32 obj = new LuaUInt32(); ToLua.PushObject(L, obj); return 1; } else { return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: LuaUInt32.New"); } } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int FromString(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); string arg0 = ToLua.CheckString(L, 1); byte[] o = LuaUInt32.FromString(arg0); ToLua.Push(L, o); return 1; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int BytesToUInt32(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); byte[] arg0 = ToLua.CheckByteBuffer(L, 1); uint o = LuaUInt32.BytesToUInt32(arg0); LuaDLL.lua_pushnumber(L, o); return 1; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } }