diff --git a/src/script/api/script_types.hpp b/src/script/api/script_types.hpp index ee60c7c482..b007ce8d56 100644 --- a/src/script/api/script_types.hpp +++ b/src/script/api/script_types.hpp @@ -29,6 +29,14 @@ * game start \ref newgrf_changes "(1)" * never \ref newgrf_changes "(1)" * no \ref newgrf_changes "(1)" + * #ClientID network client (player) + * joining server + * leaving server + * no + * #CompanyID company + * launch + * merger, bankruptcy + * yes * #EngineID engine type * introduction, preview \ref dynamic_engines "(2)" * engines retires \ref dynamic_engines "(2)" @@ -49,6 +57,14 @@ * game start \ref newgrf_changes "(1)" * never \ref newgrf_changes "(1)" * no + * #LeagueTableID league table + * creation + * deletion + * yes + * #LeagueTableElementID element of a league table + * creation + * deletion + * yes * #ObjectType NewGRF object type * game start \ref newgrf_changes "(1)" * never \ref newgrf_changes "(1)" @@ -110,12 +126,16 @@ /* Define all types here, so they are added to the API docs. */ using BridgeType = uint32_t; ///< The ID of a bridge type. using CargoType = uint8_t; ///< The ID of a cargo type. +using ClientID = uint32_t; //< The ID of a (network) client. +using CompanyID = uint8_t; ///< The ID of a company. using EngineID = uint16_t; ///< The ID of an engine. using GoalID = uint16_t; ///< The ID of a goal. using GroupID = uint16_t; ///< The ID of a group. using IndustryID = uint16_t; ///< The ID of an industry. using IndustryType = uint8_t; ///< The ID of an industry-type. using Money = int64_t; ///< Money, stored in a 32bit/64bit safe way. For scripts money is always in pounds. +using LeagueTableID = uint8_t; ///< The ID of a league table. +using LeagueTableElementID = uint16_t; ///< The ID of an element of a league table. using ObjectType = uint16_t; ///< The ID of an object-type. using SignID = uint16_t; ///< The ID of a sign. using StationID = uint16_t; ///< The ID of a station.