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)); }
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); } }
public object Effect(EffectMethod method, params object[] options) { return null; }
public object Effect(EffectMethod method, params object[] options) { return(null); }
public virtual void Update(int time) { EffectMethod?.Invoke(Grid, this, Param); }