Armor view
Use cases
- Edit - in the Armory, add/remove armor from sections, adjust "max", black or not
- Delete - in combat, show armor damage when hit, adjust "is", white or black
Both cases have ui that need to react to updates.
ArmorMessage
- Processes the ARMOR message
- Server.ArmorService updates central data and echoes to all clients
- Client.ArmorService updates client-side data and echoes to subscribers:
- Data properties track is/max, messages include "was" in case needed by subscribers
ARMOR data / message
- All armor sections for a unit are in each message
- Each section has these attributes: was/is/max
- Armory uses the max props
- Selected (battle damage) use the was+is props
- Service and subscribers will know how to process it