Example #1
0
		public static StandardEffectStruct getStandardEffect(uint id, List<StandardEffectStruct> stdEffectList)
        {
			if(stdEffectList.Count>0)
            {
				foreach(dynamic effect in stdEffectList)
                {
					if (id == effect.id) return effect;
                }
            }

			StandardEffectStruct stdEffect = new StandardEffectStruct();
			stdEffect.clearStandardEffect();
			return stdEffect;
        }
Example #2
0
		public string printStdEffects(List<StandardEffectStruct> stdEffectList)
        {
			string retEffectsStr = "";

			if (standardEffectsID.Count > 0)
			{
				standardEffectsID.Sort();
				foreach (dynamic effectID in standardEffectsID)
				{
					StandardEffectStruct.getStandardEffect(effectID, stdEffectList);
				}
			}

			return retEffectsStr;

		}