internal Event(InternalEvent internalEvent, Manager manager, Collection eventDef) { this.internalEvent = internalEvent; this.internalEvent.Ready(this); this.manager = manager; this.eventDef = eventDef; this.eventDef.Modify(this.eventDef.GenerateUniqueKey("DynamicEvent")); this.radarMethodList = new List <IRadarMethod>(2); IRadarMethod item = Activator.CreateInstance <IRadarMethod>("GameCore.Radar.CopRadarMethod"); IRadarMethod item2 = Activator.CreateInstance <IRadarMethod>("GameCore.Radar.CoinRadarMethod"); this.radarMethodList.Add(item); this.radarMethodList.Add(item2); Mode mode = Activator.CreateInstance <Mode>(this.eventDef.EventFlow().GetKey()); mode.Event = this; this.scoringMethod = Activator.CreateInstance <IScoringMethod>(this.eventDef.ScoringMethod().GetKey()); this.livePacket = this.scoringMethod.CreateLivePacket(); this.workflowInstance = WorkflowInstance.Create(mode); this.workflowInstance.Completed += this.WorkflowInstance_Completed; }
internal InstancedEvent(InternalInstancedEvent internalInstancedEvent, InternalEvent internalEvent, long eventSessionId, Manager manager, Collection eventDef, ConnectionSupport connectionSupport) : base(internalEvent, manager, eventDef) { this.internalInstancedEvent = internalInstancedEvent; this.internalInstancedEvent.Ready(this); this.eventSessionId = eventSessionId; this.trackLayoutDef = new Collection(eventDef.TrackLayout()); this.carClassDef = new Collection(eventDef.CarClass()); this.connectionSupport = connectionSupport; this.trackLayout = new TrackLayout(); string arbitratedPacketName = base.ScoringMethod.ArbitratedPacketName; if (!string.IsNullOrEmpty(arbitratedPacketName)) { this.internalInstancedEvent.RegisterArbitrationListener(arbitratedPacketName); } if (this.eventDef.SpectateMethod() != null) { this.spectateMethod = Activator.CreateInstance <ISpectateMethod>(this.eventDef.SpectateMethod().GetKey()); } this.routingMethod = Activator.CreateInstance <IRoutingMethod>(this.eventDef.RoutingMethod().GetKey()); }
// Token: 0x060001D3 RID: 467 RVA: 0x00003F70 File Offset: 0x00002F70 public void FetchAccolades() { InternalEvent._EASharpBinding_165(this.mSelf); }
// Token: 0x060001D1 RID: 465 RVA: 0x00003F63 File Offset: 0x00002F63 public void Cleanup() { InternalEvent._EASharpBinding_164(this.mSelf); }
// Token: 0x060001CF RID: 463 RVA: 0x00003F56 File Offset: 0x00002F56 public void Dispose() { InternalEvent._EASharpBinding_163(this.mSelf); }
// Token: 0x060001CD RID: 461 RVA: 0x00003F48 File Offset: 0x00002F48 public void Ready(Event evnt) { InternalEvent._EASharpBinding_162(this.mSelf, evnt); }
// Token: 0x060001C9 RID: 457 RVA: 0x00003EE4 File Offset: 0x00002EE4 public InternalEvent() : base(default(ExposeTag_NoInitOwned)) { this.mSelf = InternalEvent._EASharpBinding_160(); }
// Token: 0x060001D7 RID: 471 RVA: 0x00003F84 File Offset: 0x00002F84 public static void UpdateCoinsCollected(uint coinFlags) { InternalEvent._EASharpBinding_167(coinFlags); }
// Token: 0x060001D5 RID: 469 RVA: 0x00003F7D File Offset: 0x00002F7D public static void RefreshCoins() { InternalEvent._EASharpBinding_166(); }
// Token: 0x06000299 RID: 665 RVA: 0x00004A1C File Offset: 0x00003A1C public InternalEvent GetInternalEvent() { return(InternalEvent.CreateInitUnowned(InternalManager._EASharpBinding_264(this.mSelf))); }