Esempio n. 1
0
        private void ParseBGALayer(IJsonWrapper rawData, int layerId, List <BMSEvent> bmev)
        {
            foreach (IJsonWrapper entry in rawData.GetChilds())
            {
                int ticks = entry.GetChild("y").AsInt32();

                AddEvent(new BMSEvent {
                    type  = BMSEventType.BMP,
                    ticks = ticks,
                    time  = CalculateTime(bmev, ticks),
                    data1 = layerId,
                    data2 = entry.GetChild("id").AsInt64()
                });
            }
        }
Esempio n. 2
0
        private void ParseSoundChannelSummary(IJsonWrapper rawData, HashSet <int> channels)
        {
            string name = rawData.GetChild("name").AsString();

            if (string.IsNullOrEmpty(name))
            {
                return;
            }
            IJsonWrapper notes = rawData.GetChild("notes");

            foreach (IJsonWrapper note in notes.GetChilds())
            {
                channels.Add(GetChannelMap(note.GetChild("x").AsInt32()));
                if (note.GetChild("l").AsInt32() > 0)
                {
                    maxCombos++;
                }
            }
            maxCombos += notes.Count;
        }