コード例 #1
0
 public void Call(Logic.Character.HeroEntity param0)
 {
     func.BeginPCall();
     func.Push(param0);
     func.PCall();
     func.EndPCall();
 }
    static int _CreateSystem_Collections_Generic_KeyValuePair_uint_Logic_Character_HeroEntity(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2)
            {
                uint arg0 = (uint)LuaDLL.luaL_checknumber(L, 1);
                Logic.Character.HeroEntity arg1 = (Logic.Character.HeroEntity)ToLua.CheckUnityObject(L, 2, typeof(Logic.Character.HeroEntity));
                System.Collections.Generic.KeyValuePair <uint, Logic.Character.HeroEntity> obj = new System.Collections.Generic.KeyValuePair <uint, Logic.Character.HeroEntity>(arg0, arg1);
                ToLua.PushValue(L, obj);
                return(1);
            }
            else if (count == 0)
            {
                System.Collections.Generic.KeyValuePair <uint, Logic.Character.HeroEntity> obj = new System.Collections.Generic.KeyValuePair <uint, Logic.Character.HeroEntity>();
                ToLua.PushValue(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: System.Collections.Generic.KeyValuePair<uint,Logic.Character.HeroEntity>.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
 static int RemovePlayerHaloBuff(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         Logic.Character.Controller.EnemyController obj = (Logic.Character.Controller.EnemyController)ToLua.CheckObject(L, 1, typeof(Logic.Character.Controller.EnemyController));
         Logic.Character.HeroEntity arg0 = (Logic.Character.HeroEntity)ToLua.CheckUnityObject(L, 2, typeof(Logic.Character.HeroEntity));
         obj.RemovePlayerHaloBuff(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int CanOrderSkill2Tumble(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         Logic.Character.Controller.PlayerController obj = (Logic.Character.Controller.PlayerController)ToLua.CheckObject(L, 1, typeof(Logic.Character.Controller.PlayerController));
         Logic.Character.HeroEntity arg0 = (Logic.Character.HeroEntity)ToLua.CheckUnityObject(L, 2, typeof(Logic.Character.HeroEntity));
         bool o = obj.CanOrderSkill2Tumble(arg0);
         LuaDLL.lua_pushboolean(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int _get_this(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         Logic.Character.Controller.PlayerController obj = (Logic.Character.Controller.PlayerController)ToLua.CheckObject(L, 1, typeof(Logic.Character.Controller.PlayerController));
         uint arg0 = (uint)LuaDLL.luaL_checknumber(L, 2);
         Logic.Character.HeroEntity o = obj[arg0];
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int SwitchHeros(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         Logic.Character.Controller.PlayerController obj = (Logic.Character.Controller.PlayerController)ToLua.CheckObject(L, 1, typeof(Logic.Character.Controller.PlayerController));
         int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         Logic.Character.HeroEntity arg1 = (Logic.Character.HeroEntity)ToLua.CheckUnityObject(L, 3, typeof(Logic.Character.HeroEntity));
         obj.SwitchHeros(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int CreateAeon(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         Logic.Character.Controller.PlayerController obj  = (Logic.Character.Controller.PlayerController)ToLua.CheckObject(L, 1, typeof(Logic.Character.Controller.PlayerController));
         Logic.Character.CharacterEntity             arg0 = (Logic.Character.CharacterEntity)ToLua.CheckUnityObject(L, 2, typeof(Logic.Character.CharacterEntity));
         Logic.Character.HeroEntity o = obj.CreateAeon(arg0);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int _get_this(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         System.Collections.Generic.Dictionary <uint, Logic.Character.HeroEntity> obj = (System.Collections.Generic.Dictionary <uint, Logic.Character.HeroEntity>)ToLua.CheckObject(L, 1, typeof(System.Collections.Generic.Dictionary <uint, Logic.Character.HeroEntity>));
         uint arg0 = (uint)LuaDLL.luaL_checknumber(L, 2);
         Logic.Character.HeroEntity o = obj[arg0];
         ToLua.Push(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.HeroEntity> obj = (System.Collections.Generic.Dictionary <uint, Logic.Character.HeroEntity>)ToLua.CheckObject(L, 1, typeof(System.Collections.Generic.Dictionary <uint, Logic.Character.HeroEntity>));
         Logic.Character.HeroEntity arg0 = (Logic.Character.HeroEntity)ToLua.CheckUnityObject(L, 2, typeof(Logic.Character.HeroEntity));
         bool o = obj.ContainsValue(arg0);
         LuaDLL.lua_pushboolean(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int Add(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         System.Collections.Generic.Dictionary <uint, Logic.Character.HeroEntity> obj = (System.Collections.Generic.Dictionary <uint, Logic.Character.HeroEntity>)ToLua.CheckObject(L, 1, typeof(System.Collections.Generic.Dictionary <uint, Logic.Character.HeroEntity>));
         uint arg0 = (uint)LuaDLL.luaL_checknumber(L, 2);
         Logic.Character.HeroEntity arg1 = (Logic.Character.HeroEntity)ToLua.CheckUnityObject(L, 3, typeof(Logic.Character.HeroEntity));
         obj.Add(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
    static int get_Value(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            System.Collections.Generic.KeyValuePair <uint, Logic.Character.HeroEntity> obj = (System.Collections.Generic.KeyValuePair <uint, Logic.Character.HeroEntity>)o;
            Logic.Character.HeroEntity ret = obj.Value;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index Value on a nil value" : e.Message));
        }
    }
コード例 #12
0
    static int set_skillItemBoxView(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Logic.Character.HeroEntity obj = (Logic.Character.HeroEntity)o;
            Logic.UI.SkillBar.View.SkillItemBoxView arg0 = (Logic.UI.SkillBar.View.SkillItemBoxView)ToLua.CheckUnityObject(L, 2, typeof(Logic.UI.SkillBar.View.SkillItemBoxView));
            obj.skillItemBoxView = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index skillItemBoxView on a nil value" : e.Message));
        }
    }
コード例 #13
0
    static int get_skillItemBoxView(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Logic.Character.HeroEntity obj = (Logic.Character.HeroEntity)o;
            Logic.UI.SkillBar.View.SkillItemBoxView ret = obj.skillItemBoxView;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index skillItemBoxView on a nil value" : e.Message));
        }
    }
 static int TryGetValue(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         System.Collections.Generic.Dictionary <uint, Logic.Character.HeroEntity> obj = (System.Collections.Generic.Dictionary <uint, Logic.Character.HeroEntity>)ToLua.CheckObject(L, 1, typeof(System.Collections.Generic.Dictionary <uint, Logic.Character.HeroEntity>));
         uint arg0 = (uint)LuaDLL.luaL_checknumber(L, 2);
         Logic.Character.HeroEntity arg1 = null;
         bool o = obj.TryGetValue(arg0, out arg1);
         LuaDLL.lua_pushboolean(L, o);
         ToLua.Push(L, arg1);
         return(2);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }