Ejemplo n.º 1
0
 static int ToString(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         Google.ProtocolBuffers.GeneratedMessageLite <MyLib.CGPlayerCmd, MyLib.CGPlayerCmd.Builder> obj = (Google.ProtocolBuffers.GeneratedMessageLite <MyLib.CGPlayerCmd, MyLib.CGPlayerCmd.Builder>)ToLua.CheckObject <Google.ProtocolBuffers.GeneratedMessageLite <MyLib.CGPlayerCmd, MyLib.CGPlayerCmd.Builder> >(L, 1);
         string o = obj.ToString();
         LuaDLL.lua_pushstring(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }