using Chernobyl.Collections.Generic.Event; using Chernobyl.Plugin; namespace Chernobyl.Game { /// /// The type that is added to the root and is /// used to represent a game as an application. This type contains an /// the following services: /// /// /// /// of /// instances that is used to represent games being played within /// the application (usually one for a client application and many /// for a server). /// /// /// class GameApplication : DecoratingEventList, IGame { /// /// Initializes a new instance of the class. /// public GameApplication() { Add(new DecoratingEventList()); } /// /// A type that adds an instance of to the /// instance passed to this types constructor. /// The instance that is added is used to represent the game as an /// application. Additionally this type adds additional services to the /// service. /// public class Plugin : IPlugin { /// /// Initializes a new instance of the class. /// /// The instance that is to have the /// services added to it. public Plugin(IEventCollection services) { services.Add(new GameApplication()); } } } }