using System.IO; namespace H2Engine { [System.Serializable] public class MapTrasfer { public int id; public enum E_TransferType { None, Current, Other, } public E_TransferType transferType; public int param; public MapTransferPoint[] transferPoints; public void Load(BinaryReader br) { transferType = (MapTrasfer.E_TransferType)br.ReadByte(); param = br.ReadInt32(); int _count = br.ReadInt32(); transferPoints = new MapTransferPoint[_count]; for (int i = 0; i < _count; ++i) { transferPoints[i] = new MapTransferPoint(); transferPoints[i].Load(br); } } } }