/// <summary> /// 加载列表 /// </summary> protected override void LoadList(MMO_MemoryStream ms) { int rows = ms.ReadInt(); int columns = ms.ReadInt(); for (int i = 0; i < rows; i++) { UIFormEntity entity = new UIFormEntity(); entity.Id = ms.ReadInt(); entity.Desc = ms.ReadUTF8String(); entity.AssetName = ms.ReadUTF8String(); entity.UIGroupName = ms.ReadUTF8String(); entity.AllowMultiInstance = ms.ReadBool(); entity.PauseCoveredUIForm = ms.ReadBool(); m_List.Add(entity); m_Dic[entity.Id] = entity; } }
/// <summary> /// 加载列表 /// </summary> protected override void LoadList(MMO_MemoryStream ms) { int rows = ms.ReadInt(); int columns = ms.ReadInt(); for (int i = 0; i < rows; i++) { SoundEntity entity = new SoundEntity(); entity.Id = ms.ReadInt(); entity.Desc = ms.ReadUTF8String(); entity.AssetName = ms.ReadUTF8String(); entity.Priority = ms.ReadInt(); entity.Loop = ms.ReadBool(); entity.Volume = ms.ReadFloat(); entity.SpatialBlend = ms.ReadFloat(); entity.MaxDistance = ms.ReadFloat(); m_List.Add(entity); m_Dic[entity.Id] = entity; } }