コード例 #1
0
 static public int OnDeserialization(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
         System.Collections.Generic.Dictionary <System.Int32, System.String> self = (System.Collections.Generic.Dictionary <System.Int32, System.String>)checkSelf(l);
         System.Object a1;
         checkType(l, 2, out a1);
         self.OnDeserialization(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
 }
コード例 #2
0
 static public int OnDeserialization(IntPtr l)
 {
     try {
         System.Collections.Generic.Dictionary <System.String, System.Object> self = (System.Collections.Generic.Dictionary <System.String, System.Object>)checkSelf(l);
         System.Object a1;
         checkType(l, 2, out a1);
         self.OnDeserialization(a1);
         return(0);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
コード例 #3
0
 static int OnDeserialization(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         System.Collections.Generic.Dictionary <int, TestAccount> obj = (System.Collections.Generic.Dictionary <int, TestAccount>)ToLua.CheckObject(L, 1, TypeTraits <System.Collections.Generic.Dictionary <int, TestAccount> > .type);
         object arg0 = ToLua.ToVarObject(L, 2);
         obj.OnDeserialization(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int OnDeserialization(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         System.Collections.Generic.Dictionary <string, SingleData> obj = (System.Collections.Generic.Dictionary <string, SingleData>)ToLua.CheckObject(L, 1, typeof(System.Collections.Generic.Dictionary <string, SingleData>));
         object arg0 = ToLua.ToVarObject(L, 2);
         obj.OnDeserialization(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int OnDeserialization(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         System.Collections.Generic.Dictionary <uint, Logic.Character.EnemyEntity> obj = (System.Collections.Generic.Dictionary <uint, Logic.Character.EnemyEntity>)ToLua.CheckObject(L, 1, typeof(System.Collections.Generic.Dictionary <uint, Logic.Character.EnemyEntity>));
         object arg0 = ToLua.ToVarObject(L, 2);
         obj.OnDeserialization(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
コード例 #6
0
 static int OnDeserialization(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         System.Collections.Generic.Dictionary <UnityEngine.GameObject, LuaInterface.LuaTable> obj = (System.Collections.Generic.Dictionary <UnityEngine.GameObject, LuaInterface.LuaTable>)ToLua.CheckObject(L, 1, typeof(System.Collections.Generic.Dictionary <UnityEngine.GameObject, LuaInterface.LuaTable>));
         object arg0 = ToLua.ToVarObject(L, 2);
         obj.OnDeserialization(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
    static int OnDeserialization(IntPtr L)
    {
        ToLua.CheckArgsCount(L, 2);
        System.Collections.Generic.Dictionary <int, TestAccount> obj = (System.Collections.Generic.Dictionary <int, TestAccount>)ToLua.CheckObject(L, 1, typeof(System.Collections.Generic.Dictionary <int, TestAccount>));
        object arg0 = ToLua.ToVarObject(L, 2);

        try
        {
            obj.OnDeserialization(arg0);
        }
        catch (Exception e)
        {
            LuaDLL.luaL_error(L, e.Message);
            return(0);
        }

        return(0);
    }
コード例 #8
0
 /// <inheritdoc/>
 public virtual void OnDeserialization(object sender)
 {
     dict.OnDeserialization(sender);
 }