protected override void GenerateAccessToCustomProperties() { SetProperties.Add("freezepercentage", SetFreezePercentage); SetProperties.Add("freezetime", SetFreezeTime); GetProperties.Add("freezepercentage", GetFreezePercentage); GetProperties.Add("freezetime", GetFreezeTime); }
protected override void GenerateAccessToCustomProperties() { SetProperties.Add("moneytime", SetMoneyTime); SetProperties.Add("moneyamount", SetMoneyAmount); GetProperties.Add("moneytime", GetMoneyTime); GetProperties.Add("moneyamount", GetMoneyAmount); GetProperties.Add("moneypersecond", GetMoneyPerSecond); }
protected override void GenerateAccessToCustomProperties() { SetProperties.Add("healthtime", SetHealthTime); SetProperties.Add("healthamount", SetHealthAmount); GetProperties.Add("healthtime", GetHealthTime); GetProperties.Add("healthamount", GetHealthAmount); GetProperties.Add("healthpersecond", GetHealthPerSecond); }
private void GenerateAccessToProperties() { SetProperties.Add("damage", ChangeDamage); SetProperties.Add("range", ChangeRange); SetProperties.Add("speed", ChangeSpeed); SetProperties.Add("interval", ChangeInterval); GenerateAccessToCustomProperties(); }
protected override void GenerateAccessToCustomProperties() { SetProperties.Add("poisontime", SetPoisonTime); SetProperties.Add("poisonamount", SetPoisonAmount); SetProperties.Add("poisoncountertime", SetDotCounterTime); GetProperties.Add("poisontime", GetPoisonTime); GetProperties.Add("poisonamount", GetPoisonAmount); GetProperties.Add("poisoncountertime", GetDotCounterTime); GetProperties.Add("damageoverall", GetDamageOverall); }
public void LoadFromFlatLayout(FlatLayout savedLayout, PuzzleLayout gameLayout) { savedLayout.Connections.ForEach(gameLayout.AddNodeConnections); savedLayout.Objects.ForEach(puzzleObject => { var properties = new SetProperties(); puzzleObject.Properties.ForEach(property => { var type = Type.GetType(property.Type); var converter = System.ComponentModel.TypeDescriptor.GetConverter(type); var value = converter.ConvertFromInvariantString(property.Value); properties.Add(property.Key, value); }); gameLayout.PlaceObject(puzzleObject.Type, puzzleObject.Position, properties); }); }
protected override void GenerateAccessToCustomProperties() { SetProperties.Add("shotcostmultiplier", SetShotCostMultiplier); GetProperties.Add("shotcostmultiplier", GetShotCostMultiplier); GetProperties.Add("costpershot", GetCostPerShot); }
protected override void GenerateAccessToCustomProperties() { SetProperties.Add("percentage", SetPercentage); GetProperties.Add("percentage", GetPercentage); }