internal void Update(kcsapi_kdock[] source)
{
if (this.Docks.Count == source.Length)
{
foreach (var raw in source)
{
var target = this.Docks[raw.api_id];
if (target != null) target.Update(raw);
}
}
else
{
this.Docks.ForEach(x => x.Value.Dispose());
this.Docks = new MemberTable<BuildingDock>(source.Select(x => new BuildingDock(x)));
}
}