Esempio n. 1
0
    public static int get_heroDictionary(IntPtr l)
    {
        int result;

        try
        {
            HeroShowComponent heroShowComponent = (HeroShowComponent)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, heroShowComponent.m_luaExportHelper.heroDictionary);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Esempio n. 2
0
    public static int Dispose(IntPtr l)
    {
        int result;

        try
        {
            HeroShowComponent heroShowComponent = (HeroShowComponent)LuaObject.checkSelf(l);
            heroShowComponent.Dispose();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Esempio n. 3
0
    public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            HeroShowComponent o = new HeroShowComponent();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Esempio n. 4
0
    public static int ShowComponent(IntPtr l)
    {
        int result;

        try
        {
            HeroShowComponent heroShowComponent = (HeroShowComponent)LuaObject.checkSelf(l);
            bool isActive;
            LuaObject.checkType(l, 2, out isActive);
            heroShowComponent.ShowComponent(isActive);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Esempio n. 5
0
    public static int Init(IntPtr l)
    {
        int result;

        try
        {
            HeroShowComponent heroShowComponent = (HeroShowComponent)LuaObject.checkSelf(l);
            GameObject        root;
            LuaObject.checkType <GameObject>(l, 2, out root);
            heroShowComponent.Init(root);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Esempio n. 6
0
    public static int set_heroDictionary(IntPtr l)
    {
        int result;

        try
        {
            HeroShowComponent heroShowComponent = (HeroShowComponent)LuaObject.checkSelf(l);
            Dictionary <string, CommonUIStateController> heroDictionary;
            LuaObject.checkType <Dictionary <string, CommonUIStateController> >(l, 2, out heroDictionary);
            heroShowComponent.m_luaExportHelper.heroDictionary = heroDictionary;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Esempio n. 7
0
    public static int set_m_configDataLoader(IntPtr l)
    {
        int result;

        try
        {
            HeroShowComponent heroShowComponent = (HeroShowComponent)LuaObject.checkSelf(l);
            IConfigDataLoader configDataLoader;
            LuaObject.checkType <IConfigDataLoader>(l, 2, out configDataLoader);
            heroShowComponent.m_luaExportHelper.m_configDataLoader = configDataLoader;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Esempio n. 8
0
    public static int set_m_playerContext(IntPtr l)
    {
        int result;

        try
        {
            HeroShowComponent     heroShowComponent = (HeroShowComponent)LuaObject.checkSelf(l);
            ProjectLPlayerContext playerContext;
            LuaObject.checkType <ProjectLPlayerContext>(l, 2, out playerContext);
            heroShowComponent.m_luaExportHelper.m_playerContext = playerContext;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }