void IInterpTimedEventReceiver.OnInterpTimedEvent() { int num; string tag = InterpTimedEvent.Tag; if (tag != null) { if (ClientVitalsSync.< > f__switch$map2 == null) { ClientVitalsSync.< > f__switch$map2 = new Dictionary <string, int>(1) { { "DMG", 0 } }; } if (ClientVitalsSync.< > f__switch$map2.TryGetValue(tag, out num)) { if (num != 0) { InterpTimedEvent.MarkUnhandled(); return; } this.ClientHealthChange(InterpTimedEvent.Argument <float>(0), InterpTimedEvent.Argument <GameObject>(1)); return; } } InterpTimedEvent.MarkUnhandled(); }
protected virtual bool OnInterpTimedEvent() { int num; string tag = InterpTimedEvent.Tag; if (tag != null) { if (BasicWildLifeAI.< > f__switch$map7 == null) { Dictionary <string, int> strs = new Dictionary <string, int>(2) { { "DEATH", 0 }, { "SOUND", 1 } }; BasicWildLifeAI.< > f__switch$map7 = strs; } if (BasicWildLifeAI.< > f__switch$map7.TryGetValue(tag, out num)) { if (num == 0) { this.DoClientDeath(); return(true); } if (num == 1) { this.PlaySnd(InterpTimedEvent.Argument <int>(0)); return(true); } } } return(false); }
protected virtual void OnInterpTimedEvent() { uLink.BitStream bitStream; int num; int num1 = -1; string tag = InterpTimedEvent.Tag; if (tag != null) { if (ItemRepresentation.< > f__switch$mapB == null) { Dictionary <string, int> strs = new Dictionary <string, int>(4) { { "Action1", 0 }, { "Action2", 1 }, { "Action3", 2 }, { "InterpDestroy", 3 } }; ItemRepresentation.< > f__switch$mapB = strs; } if (ItemRepresentation.< > f__switch$mapB.TryGetValue(tag, out num)) { switch (num) { case 0: { num1 = 1; bitStream = InterpTimedEvent.Argument <uLink.BitStream>(0); break; } case 1: { num1 = 2; bitStream = InterpTimedEvent.Argument <uLink.BitStream>(0); break; } case 2: { num1 = 3; bitStream = InterpTimedEvent.Argument <uLink.BitStream>(0); break; } case 3: { UnityEngine.Object.Destroy(base.gameObject); return; } default: { InterpTimedEvent.MarkUnhandled(); return; } } uLink.NetworkMessageInfo info = InterpTimedEvent.Info; this.RunAction(num1, bitStream, ref info); return; } } InterpTimedEvent.MarkUnhandled(); }