static int CreateEnemyPlayer(IntPtr L)
    {
        try
        {
            ToLua.CheckArgsCount(L, 3);
            Logic.Character.Controller.EnemyController obj  = (Logic.Character.Controller.EnemyController)ToLua.CheckObject(L, 1, typeof(Logic.Character.Controller.EnemyController));
            Logic.Fight.Model.FightPlayerInfo          arg0 = (Logic.Fight.Model.FightPlayerInfo)ToLua.CheckObject(L, 2, typeof(Logic.Fight.Model.FightPlayerInfo));
            System.Action <bool> arg1      = null;
            LuaTypes             funcType3 = LuaDLL.lua_type(L, 3);

            if (funcType3 != LuaTypes.LUA_TFUNCTION)
            {
                arg1 = (System.Action <bool>)ToLua.CheckObject(L, 3, typeof(System.Action <bool>));
            }
            else
            {
                LuaFunction func = ToLua.ToLuaFunction(L, 3);
                arg1 = DelegateFactory.CreateDelegate(typeof(System.Action <bool>), func) as System.Action <bool>;
            }

            obj.CreateEnemyPlayer(arg0, arg1);
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }