Hi! GroundBuilding is class that contains just 2 members - Title (name of the building) and pos (position of the building). This class used in OnBuildingKilled event to check what kind of building dies and where. Buildings that used this class not loaded in missions - they are property of map - i.e. that buildings which are already placed to the map.
When you create buildings in mission - it would be stationary objects and you could use GroundStationary class , its propertys -
Скрытый текст:
Код:
string Title { get; }
      string Name { get; }
      string country { get; }
      string Category { get; }
      Point3d pos { get; }
      AiGroundActorType Type { get; }
      void Destroy();
      bool IsAlive { get; }

AiGroundActorType {
    Unknown,
    
    // cars, tanks
    Medic,
    Motorcycle,
    ArmoredCar,
    Tractor,
    Car,
    Amphibian,
    SPG,
    Tank,
    Bus,
    LightTruck,
    Truck,
    Trailer,
    
    // stationary
    Balloon,
    Generator,
    Predictor,
    Radar,
    RadioBeacon,
    RadioBeamProjector,
    Listener,
    AmmoComposition,
    ContainerShort,
    ContainerLong,
    Artillery,
    AAGun,
    Plane,
    GroundCrew,
    
    // trains/wagons
    EngineWagon,
    FreightWagon,
    PassengerWagon,
    
    // ships
    ShipMisc,
    ShipTransport,
    ShipSmallWarship,
    ShipDestroyer,
    ShipCruiser,
    ShipBattleship,
    ShipCarrier,
    ShipSubmarine,

    // statics
    Bridge,
    House
  }


and you can get array of GroundStationary's objects in mission like this :
GroundStationary[] gpGroundStationarys(); - all GroundStationary objects in runing mission,
GroundStationary[] gpGroundStationarys(string Country); - all GroundStationary objects in runing mission with specific Country,
GroundStationary[] gpGroundStationarys(double x, double y, double r); all GroundStationary objects in runing mission placed in circle with center in x,y and radious r,
GroundStationary[] gpGroundStationarys(string Country, double x, double y, double r); all GroundStationary objects in runing mission placed in circle with center in x,y and radious r, with specific Country.
Thus you can get array of all created stationary objects, filter it by Type == AiGroundActorType .House , and you'll get array of buildings created in mission.