Change: Allow GS access to ScriptGroup functions

This commit is contained in:
SamuXarick
2023-01-23 23:10:46 +00:00
committed by rubidium42
parent f225f36c3d
commit f8b5661d28
8 changed files with 51 additions and 8 deletions

View File

@@ -69,26 +69,28 @@ public:
/**
* Creates a list of vehicles that are in a group.
* @api ai
* @api ai game
* @ingroup ScriptList
*/
class ScriptVehicleList_Group : public ScriptList {
public:
/**
* @param group_id The ID of the group the vehicles are in.
* @game @pre ScriptCompanyMode::IsValid().
*/
ScriptVehicleList_Group(GroupID group_id);
};
/**
* Creates a list of vehicles that are in the default group.
* @api ai
* @api ai game
* @ingroup ScriptList
*/
class ScriptVehicleList_DefaultGroup : public ScriptList {
public:
/**
* @param vehicle_type The VehicleType to get the list of vehicles for.
* @game @pre ScriptCompanyMode::IsValid().
*/
ScriptVehicleList_DefaultGroup(ScriptVehicle::VehicleType vehicle_type);
};