static int PrintTo(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); Google.ProtocolBuffers.AbstractMessageLite <MyLib.GCPlayerCmd, MyLib.GCPlayerCmd.Builder> obj = (Google.ProtocolBuffers.AbstractMessageLite <MyLib.GCPlayerCmd, MyLib.GCPlayerCmd.Builder>)ToLua.CheckObject <Google.ProtocolBuffers.AbstractMessageLite <MyLib.GCPlayerCmd, MyLib.GCPlayerCmd.Builder> >(L, 1); System.IO.TextWriter arg0 = (System.IO.TextWriter)ToLua.CheckObject <System.IO.TextWriter>(L, 2); obj.PrintTo(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int WriteTo(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 2 && TypeChecker.CheckTypes <Google.ProtocolBuffers.CodedOutputStream>(L, 2)) { Google.ProtocolBuffers.AbstractMessageLite <MyLib.GCPlayerCmd, MyLib.GCPlayerCmd.Builder> obj = (Google.ProtocolBuffers.AbstractMessageLite <MyLib.GCPlayerCmd, MyLib.GCPlayerCmd.Builder>)ToLua.CheckObject <Google.ProtocolBuffers.AbstractMessageLite <MyLib.GCPlayerCmd, MyLib.GCPlayerCmd.Builder> >(L, 1); Google.ProtocolBuffers.CodedOutputStream arg0 = (Google.ProtocolBuffers.CodedOutputStream)ToLua.ToObject(L, 2); obj.WriteTo(arg0); return(0); } else if (count == 2 && TypeChecker.CheckTypes <System.IO.Stream>(L, 2)) { Google.ProtocolBuffers.AbstractMessageLite <MyLib.GCPlayerCmd, MyLib.GCPlayerCmd.Builder> obj = (Google.ProtocolBuffers.AbstractMessageLite <MyLib.GCPlayerCmd, MyLib.GCPlayerCmd.Builder>)ToLua.CheckObject <Google.ProtocolBuffers.AbstractMessageLite <MyLib.GCPlayerCmd, MyLib.GCPlayerCmd.Builder> >(L, 1); System.IO.Stream arg0 = (System.IO.Stream)ToLua.ToObject(L, 2); obj.WriteTo(arg0); return(0); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: Google.ProtocolBuffers.AbstractMessageLite<MyLib.GCPlayerCmd,MyLib.GCPlayerCmd.Builder>.WriteTo")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int ToBuilder(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); Google.ProtocolBuffers.AbstractMessageLite <MyLib.GCPlayerCmd, MyLib.GCPlayerCmd.Builder> obj = (Google.ProtocolBuffers.AbstractMessageLite <MyLib.GCPlayerCmd, MyLib.GCPlayerCmd.Builder>)ToLua.CheckObject <Google.ProtocolBuffers.AbstractMessageLite <MyLib.GCPlayerCmd, MyLib.GCPlayerCmd.Builder> >(L, 1); MyLib.GCPlayerCmd.Builder o = obj.ToBuilder(); ToLua.PushSealed(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int get_SerializedSize(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Google.ProtocolBuffers.AbstractMessageLite <MyLib.GCPlayerCmd, MyLib.GCPlayerCmd.Builder> obj = (Google.ProtocolBuffers.AbstractMessageLite <MyLib.GCPlayerCmd, MyLib.GCPlayerCmd.Builder>)o; int ret = obj.SerializedSize; LuaDLL.lua_pushinteger(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index SerializedSize on a nil value")); } }
static int get_IsInitialized(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Google.ProtocolBuffers.AbstractMessageLite <MyLib.GCPlayerCmd, MyLib.GCPlayerCmd.Builder> obj = (Google.ProtocolBuffers.AbstractMessageLite <MyLib.GCPlayerCmd, MyLib.GCPlayerCmd.Builder>)o; bool ret = obj.IsInitialized; LuaDLL.lua_pushboolean(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index IsInitialized on a nil value")); } }
static int get_DefaultInstanceForType(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); Google.ProtocolBuffers.AbstractMessageLite <MyLib.GCPlayerCmd, MyLib.GCPlayerCmd.Builder> obj = (Google.ProtocolBuffers.AbstractMessageLite <MyLib.GCPlayerCmd, MyLib.GCPlayerCmd.Builder>)o; MyLib.GCPlayerCmd ret = obj.DefaultInstanceForType; ToLua.PushSealed(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index DefaultInstanceForType on a nil value")); } }