Содержание#
Типы и методы. Параметры и результаты относятся к указанному слою X4; неизвестные типы помечены явно.
Бой и боезапас#
Верфи и строительство#
Другие функции X4#
Загрузка и сохранение#
| Вызов / событие | Возвращает |
|---|---|
| SaveLoadout | void |
| SaveLoadout2 | void |
| TriggerAutosave | void |
Карта и отображение#
Мир и положение#
| Вызов / событие | Возвращает |
|---|---|
| GetAllResourceProbes | uint32_t |
| GetCameraRotation | Rotation |
| GetCompSlotControlPosition | const char* |
| GetContextByClass | UniverseID |
| GetDiscoveredSectorResources | uint32_t |
| GetNumAllResourceProbes | uint32_t |
| GetNumDiscoveredSectorResources | uint32_t |
| GetObjectPositionInSector | UIPosRot |
| GetPositionalOffset | UIPosRot |
| GetSectorControlStation | UniverseID |
| GetSectorPopulation | uint64_t |
| IsContestedSector | bool |
| SetPlayerCameraTargetView | void |
| SetPositionalOffset | void |
| SetSofttarget | bool |
Объекты и идентификаторы#
| Вызов / событие | Возвращает |
|---|---|
| ConvertStringTo64Bit | uint64_t |
| GetObjectIDCode | const char* |
Правила и поведение AI#
Приказы и управление#
Торговля, груз и счета#
| Вызов / событие | Возвращает |
|---|---|
| GetCargo | uint32_t |
| GetMoneyLog | uint32_t |
| GetNumCargo | uint32_t |
| GetNumUnitCargo | uint32_t |
| GetNumWares | uint32_t |
| GetPlayerGlobalTradeLoopCargoReservationSetting | bool |
| GetShipTradeLoopCargoReservationSetting | bool |
| GetSupplyBudget | int64_t |
| GetTradeWareBudget | int64_t |
| GetUnitCargo | uint32_t |
| GetWares | uint32_t |
| HasShipTradeLoopCargoReservationOverride | bool |
| RemoveShipTradeLoopCargoReservationOverride | void |
| SetShipTradeLoopCargoReservationOverride | void |
Фракции и дипломатия#
| Вызов / событие | Возвращает |
|---|---|
| GetAllFactions | uint32_t |
| GetAllFactionStations | uint32_t |
| GetCurrentFleetLogo | UILogo |
| GetCurrentPlayerLogo | UILogo |
| GetFactionBuildMethod | unknown |
| GetFleetName | const char* |
| GetNumAllFactions | uint32_t |
| GetNumAllFactionStations | uint32_t |
| GetNumPlayerLogos | uint32_t |
| GetPlayerFactionName | const char* |
| GetPlayerLogos | uint32_t |
| IsFactionEnemyToFaction | bool |
| SetFactionBuildMethod | void |
| SetFleetLogo | void |
| SetFleetName | void |
| SetPlayerFactionName | void |
NPC и персонажи#
| Вызов / событие | Возвращает |
|---|---|
| GetContainerBuildPriceFactor | float |
| GetControlPanelName | const char* |
| GetEntityCombinedSkill | int32_t |
| GetPersonCombinedSkill | int32_t |
| GetPersonName | const char* |
| GetPersonRole | const char* |
| GetPlayerName | const char* |
| PerformCrewExchange2 | UICrewExchangeResult |