diff options
author | Peter Nelson <peter1138@openttd.org> | 2019-02-15 20:14:50 +0000 |
---|---|---|
committer | Niels Martin Hansen <nielsm@indvikleren.dk> | 2019-03-03 09:15:39 +0100 |
commit | 5a5944867dfeaa556ec78c23af4796adb28a6a9f (patch) | |
tree | f735f1c944bbf765bbcdfe9311cc7ed86ed71135 /src/script/api/script_group.hpp | |
parent | 5d3ccae6c5bd3f328ad0d8e68ae7c69451b9ca48 (diff) | |
download | openttd-5a5944867dfeaa556ec78c23af4796adb28a6a9f.tar.xz |
Add: Add parent_group_id parameter to CreateGroup()
Diffstat (limited to 'src/script/api/script_group.hpp')
-rw-r--r-- | src/script/api/script_group.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/script/api/script_group.hpp b/src/script/api/script_group.hpp index a41196718..9e88eaff1 100644 --- a/src/script/api/script_group.hpp +++ b/src/script/api/script_group.hpp @@ -42,11 +42,12 @@ public: /** * Create a new group. * @param vehicle_type The type of vehicle to create a group for. + * @param parent_group_id The parent group id to create this group under, INVALID_GROUP for top-level. * @return The GroupID of the new group, or an invalid GroupID when * it failed. Check the return value using IsValidGroup(). In test-mode * 0 is returned if it was successful; any other value indicates failure. */ - static GroupID CreateGroup(ScriptVehicle::VehicleType vehicle_type); + static GroupID CreateGroup(ScriptVehicle::VehicleType vehicle_type, GroupID parent_group_id); /** * Delete the given group. When the deletion succeeds all vehicles in the |