CANMASK

From SphereWiki
Revision as of 21:44, 2 December 2023 by Jhobean (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Description

X branch only.

This property is a bitmask, like the CAN property, and stores the CAN flags to be dynamically switched on or off from the base CAN property.

When retrieving the CAN property, now it is first XORed with CANMASK (the return value will be CAN ^ CANMASK), so in other words:

If a flag set in the CANMASK is also set in CAN, the flag is ignored; If a flag set in the CANMASK isn't set in CAN, the flag is considered as set.