Пример #1
0
    public void Load(byte[] bytes)
    {
        BinaryHelper helper = new BinaryHelper(bytes);
        int          length = helper.ReadInt();

        StageInfoList = new SortedList <int, StageInfo>(length);
        for (int index = 0; index < length; index++)
        {
            StageInfo info = new StageInfo();
            info.Load(helper);
            StageInfoList.Add(info.ID, info);
        }
    }
Пример #2
0
    public IEnumerator PrepareMatch(bool isDancer, bool isAutoWithAudioTime, byte[] stageInfo)
    {
        if (StageInfo != null)
        {
            IEnumerator it = StageInfo.Load("song2246.tge");
            while (it.MoveNext())
            {
                yield return(null);
            }

            //StageInfo.LoadStageInfo(stageInfo);
        }

        SendMessage("OnMatchPrepare", isDancer, SendMessageOptions.DontRequireReceiver);
    }