Vdauphin f9943658e9 Cargo - Support of object without ace_cargo_size defined in config or -1 config value (#6364)
* Add: Now findUnloadPosition support also cargo object

- use of ace_cargo_fnc_getSizeItem to determine size of item

- prefer the config way instead of manually set size

- This will also take into account object manually added to the cargo system with ace_cargo_fnc_setsize

- use the cargo object for ace_cargo_fnc_unloadItem.

* FIX: old work around

* FIX: error when cargo module is not loaded

* As suggested by @orbis2358

This fix handle the case when cargo module is not loaded for scheduled and unscheduled environnement.

* Use ACE framework to check if module is present

* FIX: EFUNC and isEqualto

- _itemSize here is always number
- here we are in common module (addons/common/functions/fnc_findUnloadPosition) so FUNC is ace_common_fnc

* FIX case where config value is `-1`

- if the config value is -1, get the `ace_cargo_size` from the `ace_cargo_fnc_getSizeItem
-
 https://github.com/acemod/ACE3/issues/6357#issuecomment-393525374
2018-05-31 22:48:19 -05:00
..
2015-01-12 19:22:58 +01:00
2018-04-15 13:14:31 -05:00
2015-01-12 19:22:58 +01:00
2015-03-24 20:28:44 +01:00
2015-01-12 22:34:01 +01:00
2018-04-15 13:14:31 -05:00
2017-09-12 23:23:45 -05:00
2018-04-15 13:14:31 -05:00
2018-01-02 14:57:19 +01:00
2015-01-26 13:35:31 +01:00
2015-01-12 19:22:58 +01:00
2018-01-02 14:57:19 +01:00
2016-02-22 15:20:36 +01:00

ace_common

Common functions and systems used by other components.

Maintainers

The people responsible for merging changes to this component or answering potential questions.