static */
| 32 | } |
| 33 | |
| 34 | /* static */ GroupID ScriptGroup::CreateGroup(ScriptVehicle::VehicleType vehicle_type, GroupID parent_group_id) |
| 35 | { |
| 36 | EnforceCompanyModeValid(GROUP_INVALID); |
| 37 | if (!ScriptObject::Command<CMD_CREATE_GROUP>::Do(&ScriptInstance::DoCommandReturnGroupID, (::VehicleType)vehicle_type, parent_group_id)) return GROUP_INVALID; |
| 38 | |
| 39 | /* In case of test-mode, we return GroupID 0 */ |
| 40 | return GroupID::Begin(); |
| 41 | } |
| 42 | |
| 43 | /* static */ bool ScriptGroup::DeleteGroup(GroupID group_id) |
| 44 | { |
no test coverage detected