Ejemplo n.º 1
0
 public Town(TownCenterService service, GenericDatastoreRecord datastoreRecord)
 {
     this.service         = service;
     this.datastoreRecord = datastoreRecord;
     townVoxels           = datastoreRecord.GetSet <IVoxel>("TownVoxels");
     datastoreRecord.Bind(this);
 }
Ejemplo n.º 2
0
 public TownCenterService(Lazy <HouseType> houseType, GenericDatastoreRecord store)
 {
     this.houseType       = houseType;
     this.datastoreRecord = store;
     towns = datastoreRecord.GetList <Town>("TownCenterService-Towns", r => new Town(this, r));
 }