public override void Read(IStarboundStream stream) { while ((stream.Length - stream.Position) > 0) { SpawnedEntities.Add(SpawnedEntity.FromStream(stream)); } }
protected void OnSpawnedDestroyed(SpawnedEntity entity) { SpawnedEntities.Remove(entity); }