public void Draw(SpriteBatch spriteBatch) { if (!started) { started = true; MapStarted?.Invoke(this, null); } Actors.ForEach(x => x.Draw(spriteBatch)); }
//Started map "map" (CRC "crc") [003.2] /// <summary> /// Raises the <see cref="MapStarted"/> event. /// </summary> /// <param name="timestamp">Time at which <see cref="MapStarted"/> event was fired.</param> /// <param name="info">Information about <see cref="MapStarted"/> event.</param> protected virtual void OnMapStart(DateTime timestamp, string[] info) { var eventArgs = new MapStartEventArgs { Timestamp = timestamp, MapName = info[1], MapCRC = info[3] }; MapStarted.Fire(ServerEndPoint, eventArgs); }