Contenido#
Tipos y métodos. Parámetro y tipos de resultados se refieren a la capa X4 indicada; los contratos desconocidos son explícitos.
Combate y municiones#
Astilleros y construcción#
Otras funciones de X4#
Carga y ahorro#
| Llamada / evento | Devuelve |
|---|---|
| SaveLoadout | void |
| SaveLoadout2 | void |
| TriggerAutosave | void |
Mapa y presentación#
Mundo y posición#
| Llamada / evento | Devuelve |
|---|---|
| GetAllResourceProbes | uint32_t |
| GetCameraRotation | Rotación |
| 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 |
Objetos e identificadores#
| Llamada / evento | Devuelve |
|---|---|
| ConvertStringTo64Bit | uint64_t |
| GetObjectIDCode | const char* |
Normas y comportamiento de la IA#
Órdenes y control#
Comercio, carga y contabilidad#
| Llamada / evento | Devuelve |
|---|---|
| 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 |
Facciones y diplomacia#
| Llamada / evento | Devuelve |
|---|---|
| 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 |
NPCs y caracteres#
| Llamada / evento | Devuelve |
|---|---|
| GetContainerBuildPriceFactor | float |
| GetControlPanelName | const char* |
| GetEntityCombinedSkill | int32_t |
| GetPersonCombinedSkill | int32_t |
| GetPersonName | const char* |
| GetPersonRole | const char* |
| GetPlayerName | const char* |
| PerformCrewExchange2 | UICrewExchangeResult |