public override List <string> Save() { var list = base.Save(); list.AddRange(SaveAttribute.GetFields(this, false)); return(list); }
public List <string> Save() { var list = SaveAttribute.GetFields(this); foreach (var part in partManager.GetPartsOrDefault <ISaveLoadable>()) { list.AddRange(part.OnSave().GetSave()); } foreach (var effect in effects) { list.AddRange(effect.Save()); } return(list); }
public virtual List <string> Save() { var list = SaveAttribute.GetFields(this); if (Origin != null) { list.Add("Origin=" + Origin.ID); } if (Target.Type == TargetType.ACTOR) { list.Add("TargetActor=" + Target.Actor.ID); } list.Add("OriginalTargetPosition=" + Target.Position); list.Add("OriginalTargetHeight=" + Target.Height); return(list); }
public List <string> Save() { return(SaveAttribute.GetFields(this)); }