示例#1
0
        public override List <string> Save()
        {
            var list = base.Save();

            list.AddRange(SaveAttribute.GetFields(this, false));

            return(list);
        }
示例#2
0
        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);
        }
示例#3
0
        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);
        }
示例#4
0
 public List <string> Save()
 {
     return(SaveAttribute.GetFields(this));
 }