public void Update()
 {
     //IL_000f: Unknown result type (might be due to invalid IL or missing references)
     //IL_0014: Unknown result type (might be due to invalid IL or missing references)
     //IL_0015: Unknown result type (might be due to invalid IL or missing references)
     //IL_0020: Unknown result type (might be due to invalid IL or missing references)
     //IL_0033: Unknown result type (might be due to invalid IL or missing references)
     //IL_0034: Unknown result type (might be due to invalid IL or missing references)
     //IL_0048: Unknown result type (might be due to invalid IL or missing references)
     //IL_0049: Unknown result type (might be due to invalid IL or missing references)
     foreach (SlotVector <ActiveSound> .ItemPair item in (SlotVector <ActiveSound>)_trackedSounds)
     {
         try
         {
             item.Value.Update();
             if (!item.Value.IsPlaying)
             {
                 _trackedSounds.Remove(item.Id);
             }
         }
         catch
         {
             _trackedSounds.Remove(item.Id);
         }
     }
 }
Exemple #2
0
 public void Update()
 {
     //IL_000f: Unknown result type (might be due to invalid IL or missing references)
     //IL_0014: Unknown result type (might be due to invalid IL or missing references)
     //IL_0015: Unknown result type (might be due to invalid IL or missing references)
     //IL_0020: Unknown result type (might be due to invalid IL or missing references)
     //IL_0033: Unknown result type (might be due to invalid IL or missing references)
     //IL_0034: Unknown result type (might be due to invalid IL or missing references)
     foreach (ItemPair <ActiveSound> item in (IEnumerable <ItemPair <ActiveSound> >)_trackedSounds)
     {
         item.Value.Update();
         if (!item.Value.IsPlaying)
         {
             _trackedSounds.Remove(item.Id);
         }
     }
 }
Exemple #3
0
		public void Draw(ref MapOverlayDrawContext context, ref string text)
		{
			//IL_001e: Unknown result type (might be due to invalid IL or missing references)
			//IL_0023: Unknown result type (might be due to invalid IL or missing references)
			//IL_0024: Unknown result type (might be due to invalid IL or missing references)
			//IL_0090: Unknown result type (might be due to invalid IL or missing references)
			//IL_0091: Unknown result type (might be due to invalid IL or missing references)
			SpriteFrame frame = new SpriteFrame(1, 5);
			DateTime now = DateTime.Now;
			foreach (ItemPair<Ping> item in (IEnumerable<ItemPair<Ping>>)_pings)
			{
				Ping value = item.Value;
				double totalSeconds = (now - value.Time).TotalSeconds;
				int num = (int)(totalSeconds * 10.0);
				frame.CurrentRow = (byte)(num % (int)frame.RowCount);
				context.Draw(TextureAssets.MapPing.get_Value(), value.Position, frame, Alignment.Center);
				if (totalSeconds > 15.0)
				{
					_pings.Remove(item.Id);
				}
			}
		}