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); } }
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); }