Esempio n. 1
0
 public Store(Premitives.StoragePremitive info, LinkedList <object> serializationPath) : base(info, serializationPath)
 {
     _logbookSequence.Add(0);
     Ships           = new ShipsAccessor(this);
     Logbooks        = new LogbookAccessor(this);
     LogbookSequence = new NotifyingReadOnlyCollectionWrapper <ulong>(_logbookSequence, _logbookSequence);
 }
Esempio n. 2
0
 public MapLocInfo(StoragePremitive info, LinkedList<object> serializationPath)
 {
     var comp = (Compound)info;
     MapAreaId = (int)(SignedInteger)comp[16];
     MapSectId = (int)(SignedInteger)comp[17];
     MapLocId = (int)(SignedInteger)comp[18];
 }
Esempio n. 3
0
        public Weekbook(Premitives.StoragePremitive info, LinkedList <object> serializationPath) : base(info, serializationPath)
        {
            _holder = (Store)serializationPath.First(x => x is Store);
            Ships   = new ShipsAccessor(this);

            var keys = _ships.Where(kv => !(kv.Value?.ShipNameType?.Count > 0) || !(kv.Value?.UpdateTime > StartTimestamp)).Select(x => x.Key).ToList();

            foreach (var k in keys)
            {
                _ships.Remove(k);
            }
        }
Esempio n. 4
0
        public Logbook(Premitives.StoragePremitive info, LinkedList <object> serializationPath) : base(info, serializationPath)
        {
            Ships          = new ShipsAccessor(this);
            StartTimestamp = Helpers.FromLogbookSequence(SequenceId).ToUnixTimestamp();
            EndTimestamp   = Helpers.FromLogbookSequence(SequenceId + 1).ToUnixTimestamp();

            var keys = _ships.Where(kv => !(kv.Value?.ShipNameType?.Count > 0) || !(kv.Value?.UpdateTime > StartTimestamp)).Select(x => x.Key).ToList();

            foreach (var k in keys)
            {
                _ships.Remove(k);
            }
        }
Esempio n. 5
0
 internal FuzzyDouble(DataStore.Premitives.StoragePremitive x, LinkedList <object> path) : base(x, path)
 {
 }