-
Notifications
You must be signed in to change notification settings - Fork 737
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parse List Common Function #2257
Conversation
👍 |
Status? As soon as this gets merged (or closed) I'll replace string operations with new commands. |
I'd say something, but I have no idea at all what this does. |
It parses modules which take strings, (eg. list of medical vehicles or list of repair facilities), checks for nil, removes or trims whitespace (all parameters). It is used in all modules that can take a list and the code was duplicated in each of them, this simply makes one function that all modules can use. It can of course be used for something else than modules, hence why it's in common. |
I wonder if modules isn't a better location for this. |
I'd say no, it doesn't take module logic, it can be used for anything else that requires parsing string lists. |
Conflicts: addons/slideshow/functions/fnc_makeList.sqf
Conflicts: addons/medical/functions/fnc_moduleAssignMedicRoles.sqf addons/medical/functions/fnc_moduleAssignMedicalVehicle.sqf
Merge conflicts resolved. |
Conflicts: addons/common/functions/fnc_assignObjectsInList.sqf
Status? |
I still have no idea what this does, haha. |
it combine a function that used in closly every module and is written there any time seprate and this combine this |
👍 Merge then if anyone can confirm this works. |
If someone else can give it a test that would be great! |
Self-note #2565 |
Conflicts: addons/medical/functions/fnc_moduleAssignMedicalVehicle.sqf
…n optional parameter
Added vehicle support from #2565 for |
Used for parsing strings in modules, has params for optional remove whitespace (default is trim) and to check for object existence. Rerouted part of
assignObjectsInList
through this as well.