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; }
// Token: 0x060016D8 RID: 5848 RVA: 0x00027EEE File Offset: 0x00026EEE public void Ready() { this.manager.Ready(); this.gameflow = WorkflowInstance.Create(Gameflow.Create(this.manager)); this.gameflow.Start(); }