public void Unload(IBoatLoadable loaded) { if (contents.Contains(loaded)) { contents.Remove(loaded); loaded.Unload(DockZone.zoneForLocation[currentLocation].GetRandomPoint()); } }
public bool TryLoad(IBoatLoadable loadable) { if (contents.Count >= capacity) { return(false); } loadable.Load(); contents.Add(loadable); return(true); }