Exemple #1
0
 static public int ContainsValue(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.String a1;
         checkType(l, 2, out a1);
         var ret = self.ContainsValue(a1);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     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
 }
Exemple #2
0
 static public int ContainsValue(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);
         var ret = self.ContainsValue(a1);
         pushValue(l, ret);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int ContainsValue(IntPtr l)
 {
     try {
         System.Collections.Generic.Dictionary <System.Int32, System.String> self = (System.Collections.Generic.Dictionary <System.Int32, System.String>)checkSelf(l);
         System.String a1;
         checkType(l, 2, out a1);
         var ret = self.ContainsValue(a1);
         pushValue(l, ret);
         return(1);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
Exemple #4
0
 static int ContainsValue(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);
         TestAccount arg0 = ToLua.CheckObject <TestAccount>(L, 2);
         bool        o    = obj.ContainsValue(arg0);
         LuaDLL.lua_pushboolean(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int ContainsValue(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>));
         SingleData arg0 = (SingleData)ToLua.CheckObject(L, 2, typeof(SingleData));
         bool       o    = obj.ContainsValue(arg0);
         LuaDLL.lua_pushboolean(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int ContainsValue(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>));
         Logic.Character.EnemyEntity arg0 = (Logic.Character.EnemyEntity)ToLua.CheckUnityObject(L, 2, typeof(Logic.Character.EnemyEntity));
         bool o = obj.ContainsValue(arg0);
         LuaDLL.lua_pushboolean(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int ContainsValue(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>));
         LuaTable arg0 = ToLua.CheckLuaTable(L, 2);
         bool     o    = obj.ContainsValue(arg0);
         LuaDLL.lua_pushboolean(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemple #8
0
 static int ContainsValue(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         System.Collections.Generic.Dictionary <int, int> obj = (System.Collections.Generic.Dictionary <int, int>)ToLua.CheckObject(L, 1, typeof(System.Collections.Generic.Dictionary <int, int>));
         int  arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         bool o    = obj.ContainsValue(arg0);
         LuaDLL.lua_pushboolean(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemple #9
0
 static int ContainsValue(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         System.Collections.Generic.Dictionary <int, MyPlayerController> obj = (System.Collections.Generic.Dictionary <int, MyPlayerController>)ToLua.CheckObject(L, 1, typeof(System.Collections.Generic.Dictionary <int, MyPlayerController>));
         MyPlayerController arg0 = (MyPlayerController)ToLua.CheckObject <MyPlayerController>(L, 2);
         bool o = obj.ContainsValue(arg0);
         LuaDLL.lua_pushboolean(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
    static int ContainsValue(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>));
        TestAccount arg0 = (TestAccount)ToLua.CheckObject(L, 2, typeof(TestAccount));
        bool        o;

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

        LuaDLL.lua_pushboolean(L, o);
        return(1);
    }