fn_updateUserMarkerList.sqf 712 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. Name: cTab_fnc_updateUserMarkerList
  3. Author(s):
  4. Gundy
  5. Description:
  6. Update lists of user markers by finding extracting all the user markers with the right encryption key and then translate the marker data in to a format so that it can be drawn quicker.
  7. Parameters:
  8. NONE
  9. Returns:
  10. BOOLEAN - Always TRUE
  11. Example:
  12. call cTab_fnc_updateUserMarkerList;
  13. */
  14. private ["_playerEncryptionKey","_tempList"];
  15. _playerEncryptionKey = call cTab_fnc_getPlayerEncryptionKey;
  16. _tempList = [];
  17. {
  18. 0 = _tempList pushBack [_x select 0,_x select 1 call cTab_fnc_translateUserMarker];
  19. } count ([cTab_userMarkerLists,_playerEncryptionKey,[]] call cTab_fnc_getFromPairs);
  20. cTabUserMarkerList = _tempList;
  21. true