private new void SetValuesAndCheckOnDeserialized(StreamingContext context) { base.SetValuesAndCheckOnDeserialized(context); peopleGeneration = new CreationPeopleProbability(model); }
public Gate(GameRecords m, Coordinates c) { this.model = m; this.coord = c; this.entrance = new AmusementEnterPath(m, new Coordinates(c.x, (byte)(c.y + height / 2)), this, tangible: false); this.exit = new AmusementExitPath(m, new Coordinates(c.x, (byte)(c.y + height / 2)), this, tangible: false); this.CurrFee = 0; this.entranceFee = originalFee; m.maps.AddAmus(this); peopleGeneration = new CreationPeopleProbability(model); }