Пример #1
0
    public static int get_Levels(IntPtr l)
    {
        int result;

        try
        {
            HeroPhantom heroPhantom = (HeroPhantom)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, heroPhantom.Levels);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Пример #2
0
    public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            HeroPhantom o = new HeroPhantom();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Пример #3
0
    public static int get_IsAvailableForChallenge(IntPtr l)
    {
        int result;

        try
        {
            HeroPhantom heroPhantom = (HeroPhantom)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, heroPhantom.IsAvailableForChallenge);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Пример #4
0
    public static int set_Levels(IntPtr l)
    {
        int result;

        try
        {
            HeroPhantom             heroPhantom = (HeroPhantom)LuaObject.checkSelf(l);
            List <HeroPhantomLevel> levels;
            LuaObject.checkType <List <HeroPhantomLevel> >(l, 2, out levels);
            heroPhantom.Levels = levels;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Пример #5
0
    public static int set_ConfigDataLoader(IntPtr l)
    {
        int result;

        try
        {
            HeroPhantom       heroPhantom = (HeroPhantom)LuaObject.checkSelf(l);
            IConfigDataLoader configDataLoader;
            LuaObject.checkType <IConfigDataLoader>(l, 2, out configDataLoader);
            heroPhantom.ConfigDataLoader = configDataLoader;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Пример #6
0
    public static int set_WhichCollection(IntPtr l)
    {
        int result;

        try
        {
            HeroPhantom            heroPhantom = (HeroPhantom)LuaObject.checkSelf(l);
            HeroPhantomCollections whichCollection;
            LuaObject.checkType <HeroPhantomCollections>(l, 2, out whichCollection);
            heroPhantom.WhichCollection = whichCollection;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Пример #7
0
    public static int set_ID(IntPtr l)
    {
        int result;

        try
        {
            HeroPhantom heroPhantom = (HeroPhantom)LuaObject.checkSelf(l);
            int         id;
            LuaObject.checkType(l, 2, out id);
            heroPhantom.ID = id;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int GetHeroPhantom(IntPtr l)
    {
        int result;

        try
        {
            HeroPhantomCollections heroPhantomCollections = (HeroPhantomCollections)LuaObject.checkSelf(l);
            int heroPhantomId;
            LuaObject.checkType(l, 2, out heroPhantomId);
            HeroPhantom heroPhantom = heroPhantomCollections.GetHeroPhantom(heroPhantomId);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, heroPhantom);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Пример #9
0
    public static int GetLevel(IntPtr l)
    {
        int result;

        try
        {
            HeroPhantom heroPhantom = (HeroPhantom)LuaObject.checkSelf(l);
            int         levelId;
            LuaObject.checkType(l, 2, out levelId);
            HeroPhantomLevel level = heroPhantom.GetLevel(levelId);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, level);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int __callBase_GetHeroPhantom(IntPtr l)
    {
        int result;

        try
        {
            HeroPhantomCompoment heroPhantomCompoment = (HeroPhantomCompoment)LuaObject.checkSelf(l);
            int heroPhantomId;
            LuaObject.checkType(l, 2, out heroPhantomId);
            HeroPhantom o = heroPhantomCompoment.m_luaExportHelper.__callBase_GetHeroPhantom(heroPhantomId);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }