Exemplo n.º 1
0
 protected override void GenerateAccessToCustomProperties()
 {
     SetProperties.Add("freezepercentage", SetFreezePercentage);
     SetProperties.Add("freezetime", SetFreezeTime);
     GetProperties.Add("freezepercentage", GetFreezePercentage);
     GetProperties.Add("freezetime", GetFreezeTime);
 }
Exemplo n.º 2
0
 protected override void GenerateAccessToCustomProperties()
 {
     SetProperties.Add("moneytime", SetMoneyTime);
     SetProperties.Add("moneyamount", SetMoneyAmount);
     GetProperties.Add("moneytime", GetMoneyTime);
     GetProperties.Add("moneyamount", GetMoneyAmount);
     GetProperties.Add("moneypersecond", GetMoneyPerSecond);
 }
Exemplo n.º 3
0
        protected override void GenerateAccessToCustomProperties()
        {
            SetProperties.Add("healthtime", SetHealthTime);
            SetProperties.Add("healthamount", SetHealthAmount);

            GetProperties.Add("healthtime", GetHealthTime);
            GetProperties.Add("healthamount", GetHealthAmount);
            GetProperties.Add("healthpersecond", GetHealthPerSecond);
        }
Exemplo n.º 4
0
        private void GenerateAccessToProperties()
        {
            SetProperties.Add("damage", ChangeDamage);
            SetProperties.Add("range", ChangeRange);
            SetProperties.Add("speed", ChangeSpeed);
            SetProperties.Add("interval", ChangeInterval);

            GenerateAccessToCustomProperties();
        }
Exemplo n.º 5
0
        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);
        }
Exemplo n.º 6
0
 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);
     });
 }
Exemplo n.º 7
0
 protected override void GenerateAccessToCustomProperties()
 {
     SetProperties.Add("shotcostmultiplier", SetShotCostMultiplier);
     GetProperties.Add("shotcostmultiplier", GetShotCostMultiplier);
     GetProperties.Add("costpershot", GetCostPerShot);
 }
Exemplo n.º 8
0
 protected override void GenerateAccessToCustomProperties()
 {
     SetProperties.Add("percentage", SetPercentage);
     GetProperties.Add("percentage", GetPercentage);
 }