Alexandria.AlexandriaPlugin.AddGame C# (CSharp) Method

AddGame() protected method

Add a game to this plugin.
is null. is not part of this . is already in this .
protected AddGame ( Game game ) : void
game Game The game to add.
return void
        protected void AddGame(Game game)
        {
            if (game == null)
                throw new ArgumentNullException("game");
            if (game.Plugin != this)
                throw new ArgumentException(game.Name + " is not part of this " + Name + ".");
            if (GamesMutable.Contains(game))
                throw new ArgumentException(game.Name + " is already added to this " + Name + ".");
            GamesMutable.Add(game);
        }