Beispiel #1
0
        // Token: 0x06004F68 RID: 20328 RVA: 0x0017EE98 File Offset: 0x0017D098
        public static TurnDanmaku PBTurnDanmakuToTurnDanmaku(ProTurnDanmaku pbTurnDanmaku)
        {
            TurnDanmaku turnDanmaku = new TurnDanmaku
            {
                Turn      = pbTurnDanmaku.Turn,
                NextIndex = pbTurnDanmaku.NextIndex
            };

            foreach (ProDanmakuEntry pbEntry in pbTurnDanmaku.Entries)
            {
                turnDanmaku.Entries.Add(DanmakuEntry.PBLevelDanmakuToLevelDanmaku(pbEntry));
            }
            return(turnDanmaku);
        }
Beispiel #2
0
        // Token: 0x06004F69 RID: 20329 RVA: 0x0017EF20 File Offset: 0x0017D120
        public static ProTurnDanmaku TurnDanmakuToPBTurnDanmaku(TurnDanmaku turnDanmaku)
        {
            ProTurnDanmaku proTurnDanmaku = new ProTurnDanmaku
            {
                Turn      = turnDanmaku.Turn,
                NextIndex = turnDanmaku.NextIndex
            };

            foreach (DanmakuEntry entry in turnDanmaku.Entries)
            {
                proTurnDanmaku.Entries.Add(DanmakuEntry.LevelDanmakuToPBLevelDanmaku(entry));
            }
            return(proTurnDanmaku);
        }
    public static int TurnDanmakuToPBTurnDanmaku_s(IntPtr l)
    {
        int result;

        try
        {
            TurnDanmaku turnDanmaku;
            LuaObject.checkType <TurnDanmaku>(l, 1, out turnDanmaku);
            ProTurnDanmaku o = TurnDanmaku.TurnDanmakuToPBTurnDanmaku(turnDanmaku);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }