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