예제 #1
0
 public void RemoveStructure(IStructure structure)
 {
     if (_structures.Contains(structure))
     {
         _structures.Remove(structure);
         StructureEventManager.StructureDestroyed(structure);
     }
 }
예제 #2
0
        public Structure(StructureDefinition.StructureType type, IStructureBehaviour behaviour, Coord coord, bool requiresLink = true)
        {
            Type      = type;
            Behaviour = behaviour;

            RequiresLink = requiresLink;


            Coord = coord;

            StructureEventManager.StructurePlanned(this);
        }