LibWrapperHealComm-1.0
This is a small wrapper library that is used to make the transition from LibHealComm-3.0 to LibHealComm-4.0 easier for both authors and users. There are no function calls or callbacks to register for this to work.
Because LHC-3.0 does not send GUIDs for healing targets, the wrapper will try and figure out the GUID it will prioritize players over pets/vehicles. The first healing message sent from LibHealComm-3.0 will be ignored per user, so that if they are using both LHC-3.0 and LHC-4.0 it will not bug out.
Sending LHC-3.0 data
By default this will take LHC-4.0 data and send it in the LHC-3.0 format (when it can) assuming there is not an instance of 3.0 already running, this can be forcibly disabled using:
local WrapperHC = LibStub("LibWrapperHealComm-1.0") WrapperHC:DisableSendingData(true)
How does this work?
This will not make addons work with LHC-4.0 that are currently using LHC-3.0, authors will have to update to take advantage of the new spells in 4.0.
When receiving LHC-3.0 data, it will attempt to convert it to the LHC-4.0 format locally provided the sender is not already sending LHC-4.0 data.
If the player is not running LHC-3.0 and someone in the group is running LHC-3.0, then it will convert LHC-4.0 data into the LHC-3.0 format. This cannot send any healing spells that LHC-3.0 does not already support.
Another library?! For how long?!
How long this library will be necessary depends on the changes Blizzard makes in the coming patches. Most likely this library will be phased out with Cataclysm or a patch that breaks compatibility with most mods, the library will still be available should people choose to continue embedding it but it wouldn't be needed.
Comments