Example #1
0
 public Ship(Premitives.StoragePremitive info, LinkedList <object> serializationPath) : base(info, serializationPath)
 {
     if (UpdateTime == 0)
     {
         UpdateTime = Helpers.UnixTimestamp;
     }
 }
        protected AbstractDSSerializable(Premitives.StoragePremitive storage, LinkedList <object> serializationPath)
        {
            InitHandlers();

            serializationPath.AddFirst(this);
            var info  = (Premitives.Compound)storage;
            var depth = serializationPath.Count;

            foreach (var kv in info)
            {
                HandlerInfo handler;
                if (!_serializationHandlers.TryGetValue(kv.Key, out handler))
                {
                    BlackBox.Add(kv.Key, kv.Value);
                }
                else
                {
                    if (depth > handler.DepthLimit)
                    {
                        continue;
                    }
                    if (handler.IgnoreIfNull && kv.Value == null)
                    {
                        continue;
                    }
                    handler.Deserialize((T)this, kv.Value, serializationPath);
                }
            }
            serializationPath.RemoveFirst();
        }
Example #3
0
 public BasicInfo(Premitives.StoragePremitive info, LinkedList <object> serializationPath) : base(info, serializationPath)
 {
     _holder = (Store)serializationPath.First(x => x is Store);
 }
Example #4
0
 public ShipNameType(Premitives.StoragePremitive info, LinkedList <object> serializationPath) : base(info, serializationPath)
 {
 }
Example #5
0
 public Settings(Premitives.StoragePremitive info, LinkedList <object> serializationPath) : base(info, serializationPath)
 {
 }
Example #6
0
 public DrillInfo(Premitives.StoragePremitive _info, LinkedList <object> _path) : base(_info, _path)
 {
 }
Example #7
0
 public ItemCreate(Premitives.StoragePremitive info, LinkedList <object> serializationPath) : base(info, serializationPath)
 {
 }
Example #8
0
 public EquiptInfo(Premitives.StoragePremitive info, LinkedList <object> serializationPath) : base(info, serializationPath)
 {
 }