Exemple #1
0
 public Location(string name, GameLocationReader gameReader, GameLocationWriter gameWriter, XmlLocationReader xmlReader, XmlLocationWriter xmlWriter)
 {
     Name        = Exceptions.CheckArgumentNullOrEmprty(name, "name");
     _gameReader = Exceptions.CheckArgumentNull(gameReader, "gameReader");
     _gameWriter = Exceptions.CheckArgumentNull(gameWriter, "gameWriter");
     _xmlReader  = Exceptions.CheckArgumentNull(xmlReader, "xmlReader");
     _xmlWriter  = Exceptions.CheckArgumentNull(xmlWriter, "xmlWriter");
     _readers    = new LocationReaders(this, _xmlReader, _gameReader);
 }
 public LocationReadersState(LocationReaders readers)
 {
     _readers = Exceptions.CheckArgumentNull(readers, "readers");
 }