public override string ToString() { String s = ""; //if (Techniques.Count > 0) //{ // s += "First, " + Techniques[0].ToString(); //} //foreach (SkillTechnique tech in Techniques.Skip(1)) //{ // s += ", then " + tech.ToString(); //} String transition = ""; String lastActor = "Player"; String lastProjectile = ""; //if (Techniques.Count > 0) //{ // s += Techniques[0].ToString(); //} //foreach (SkillTechnique tech in Techniques.Skip(1)) foreach (SkillTechnique tech in Techniques) { if (s.Length > 0) { s += ". "; } s += tech.ToString(transition, lastActor, lastProjectile); SkillTechniqueInfo info = (SkillTechniqueInfo)tech.PartInfo; switch (info.TechType) { case SkillTechniqueInfo.TechniqueType.Action: //Nothing changes break; case SkillTechniqueInfo.TechniqueType.ActorSpawn: lastActor = info.CreatedEffectDescription; break; case SkillTechniqueInfo.TechniqueType.ProjectileSpawn: lastProjectile = info.CreatedEffectDescription; break; } transition = info.TransitionDescription; //if (tech.TransitionDescription != null && tech.TransitionDescription.Length > 0) //{ // transition = tech.TransitionDescription; //} //if (tech.CreatedObjectDescription != null && tech.CreatedObjectDescription.Length > 0) //{ // lastActor = tech.CreatedObjectDescription; //} } return(s); }
public SkillTechnique(SkillTechniqueInfo info, uint count) : base(info, count) { this.Modifiers = new List <SkillModifier>(); }