static public int Decode(IntPtr l) { try { #if DEBUG var method = System.Reflection.MethodBase.GetCurrentMethod(); string methodName = GetMethodName(method); #if UNITY_5_5_OR_NEWER UnityEngine.Profiling.Profiler.BeginSample(methodName); #else Profiler.BeginSample(methodName); #endif #endif Common.Protocol.StartGameProtocol self = (Common.Protocol.StartGameProtocol)checkSelf(l); System.Byte[] a1; checkArray(l, 2, out a1); self.Decode(a1); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } #if DEBUG finally { #if UNITY_5_5_OR_NEWER UnityEngine.Profiling.Profiler.EndSample(); #else Profiler.EndSample(); #endif } #endif }
static public int constructor(IntPtr l) { try { #if DEBUG var method = System.Reflection.MethodBase.GetCurrentMethod(); string methodName = GetMethodName(method); #if UNITY_5_5_OR_NEWER UnityEngine.Profiling.Profiler.BeginSample(methodName); #else Profiler.BeginSample(methodName); #endif #endif int argc = LuaDLL.lua_gettop(l); Common.Protocol.StartGameProtocol o; if (argc == 1) { o = new Common.Protocol.StartGameProtocol(); pushValue(l, true); pushValue(l, o); return(2); } else if (argc == 8) { System.Int32 a1; checkType(l, 2, out a1); System.Single a2; checkType(l, 3, out a2); System.Single a3; checkType(l, 4, out a3); System.Single a4; checkType(l, 5, out a4); System.Single a5; checkType(l, 6, out a5); System.Single a6; checkType(l, 7, out a6); System.Single a7; checkType(l, 8, out a7); o = new Common.Protocol.StartGameProtocol(a1, a2, a3, a4, a5, a6, a7); pushValue(l, true); pushValue(l, o); return(2); } else if (argc == 3) { System.Int32 a1; checkType(l, 2, out a1); Common.MyTransform a2; checkType(l, 3, out a2); o = new Common.Protocol.StartGameProtocol(a1, a2); pushValue(l, true); pushValue(l, o); return(2); } return(error(l, "New object failed.")); } catch (Exception e) { return(error(l, e)); } #if DEBUG finally { #if UNITY_5_5_OR_NEWER UnityEngine.Profiling.Profiler.EndSample(); #else Profiler.EndSample(); #endif } #endif }