public void RemoveStructure(IStructure structure) { if (_structures.Contains(structure)) { _structures.Remove(structure); StructureEventManager.StructureDestroyed(structure); } }
public Structure(StructureDefinition.StructureType type, IStructureBehaviour behaviour, Coord coord, bool requiresLink = true) { Type = type; Behaviour = behaviour; RequiresLink = requiresLink; Coord = coord; StructureEventManager.StructurePlanned(this); }