Ejemplo n.º 1
0
    public static int get_m_configDataLoader(IntPtr l)
    {
        int result;

        try
        {
            DanmakuComponentCommon danmakuComponentCommon = (DanmakuComponentCommon)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, danmakuComponentCommon.m_luaExportHelper.m_configDataLoader);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 2
0
    public static int PostInit(IntPtr l)
    {
        int result;

        try
        {
            DanmakuComponentCommon danmakuComponentCommon = (DanmakuComponentCommon)LuaObject.checkSelf(l);
            danmakuComponentCommon.PostInit();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 3
0
    public static int constructor(IntPtr l)
    {
        int result;

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

        try
        {
            DanmakuComponentCommon danmakuComponentCommon = (DanmakuComponentCommon)LuaObject.checkSelf(l);
            string name = danmakuComponentCommon.GetName();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, name);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 5
0
    public static int set_Owner(IntPtr l)
    {
        int result;

        try
        {
            DanmakuComponentCommon danmakuComponentCommon = (DanmakuComponentCommon)LuaObject.checkSelf(l);
            IComponentOwner        owner;
            LuaObject.checkType <IComponentOwner>(l, 2, out owner);
            danmakuComponentCommon.Owner = owner;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 6
0
    public static int TruncateDanmakuOrNot(IntPtr l)
    {
        int result;

        try
        {
            DanmakuComponentCommon danmakuComponentCommon = (DanmakuComponentCommon)LuaObject.checkSelf(l);
            PostDanmakuEntry       entry;
            LuaObject.checkType <PostDanmakuEntry>(l, 2, out entry);
            danmakuComponentCommon.m_luaExportHelper.TruncateDanmakuOrNot(entry);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 7
0
    public static int Tick(IntPtr l)
    {
        int result;

        try
        {
            DanmakuComponentCommon danmakuComponentCommon = (DanmakuComponentCommon)LuaObject.checkSelf(l);
            uint deltaMillisecond;
            LuaObject.checkType(l, 2, out deltaMillisecond);
            danmakuComponentCommon.Tick(deltaMillisecond);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 8
0
    public static int CombineLevelDanmakuKey(IntPtr l)
    {
        int result;

        try
        {
            DanmakuComponentCommon danmakuComponentCommon = (DanmakuComponentCommon)LuaObject.checkSelf(l);
            int gameFunctionTypeId;
            LuaObject.checkType(l, 2, out gameFunctionTypeId);
            int locationId;
            LuaObject.checkType(l, 3, out locationId);
            string s = danmakuComponentCommon.CombineLevelDanmakuKey(gameFunctionTypeId, locationId);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, s);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 9
0
    public static int CanPostLevelDanmaku(IntPtr l)
    {
        int result;

        try
        {
            DanmakuComponentCommon danmakuComponentCommon = (DanmakuComponentCommon)LuaObject.checkSelf(l);
            int gameFunctionTypeId;
            LuaObject.checkType(l, 2, out gameFunctionTypeId);
            int locationId;
            LuaObject.checkType(l, 3, out locationId);
            List <PostDanmakuEntry> entries;
            LuaObject.checkType <List <PostDanmakuEntry> >(l, 4, out entries);
            int i = danmakuComponentCommon.CanPostLevelDanmaku(gameFunctionTypeId, locationId, entries);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, i);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }