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); }
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]; }
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); } }
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); } }
internal FuzzyDouble(DataStore.Premitives.StoragePremitive x, LinkedList <object> path) : base(x, path) { }