Get the list of flags as a string. :param value: The value to get the flags for. :type value: int
(value: int)
| 345 | |
| 346 | |
| 347 | def get_integrated_flags_list(value: int) -> str: |
| 348 | """ |
| 349 | Get the list of flags as a string. |
| 350 | |
| 351 | :param value: The value to get the flags for. |
| 352 | :type value: int |
| 353 | """ |
| 354 | flags = [] |
| 355 | for mask, flag in INTEGRATED_FLAGS.items(): |
| 356 | if value & mask: |
| 357 | flags.append(flag) |
| 358 | |
| 359 | return ' | '.join(flags) |
| 360 | |
| 361 | |
| 362 | @printer_typedef('openage::path::integrated_flags_t') |