Ejemplo n.º 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);
 }
Ejemplo n.º 2
0
 public LocationReadersState(LocationReaders readers)
 {
     _readers = Exceptions.CheckArgumentNull(readers, "readers");
 }