Exemple #1
0
        private string parseEffect(ListEntry row)
        {
            int indexOffset = 5;

            EffectAffectedProperty affectedProperty = (EffectAffectedProperty)Enum.Parse(typeof(EffectAffectedProperty), row.Elements[indexOffset].Value);
            EffectMethod           effectMethod     = (EffectMethod)Enum.Parse(typeof(EffectMethod), row.Elements[indexOffset + 1].Value);

            indexOffset += 2;

            float[] modifiers = new float[10];
            for (int x = 0; x < 10; x++)
            {
                modifiers[x] = float.Parse(row.Elements[x + indexOffset].Value);
            }

            return(new UpgradeEffect(affectedProperty, effectMethod, modifiers));
        }
Exemple #2
0
 public void Start(ref ElimlnateGrid param)
 {
     Grid = param;
     if (ApplyUpdate)
     {
         if (mUpdater == default)
         {
             mUpdater = new MethodUpdater()
             {
                 Update = Update
             };
             UpdaterNotice.AddSceneUpdater(mUpdater);
         }
         else
         {
         }
     }
     else
     {
         EffectMethod?.Invoke(Grid, this, Param);
     }
 }
Exemple #3
0
 public object Effect(EffectMethod method, params object[] options) {
     return null;
 }
Exemple #4
0
 public object Effect(EffectMethod method, params object[] options)
 {
     return(null);
 }
Exemple #5
0
 public virtual void Update(int time)
 {
     EffectMethod?.Invoke(Grid, this, Param);
 }