Mercurial > wow > askmrrobot
comparison AskMrRobot-Serializer/AskMrRobot-Serializer.lua @ 197:23b740b4c93a v96
Added Great Vault export.
| author | Yellowfive |
|---|---|
| date | Thu, 17 Dec 2020 11:57:06 -0600 |
| parents | 4ccc9ff6e824 |
| children | 6e8838b231d4 |
comparison
equal
deleted
inserted
replaced
| 196:b4f74de03b43 | 197:23b740b4c93a |
|---|---|
| 1 -- AskMrRobot-Serializer will serialize and communicate character data between users. | 1 -- AskMrRobot-Serializer will serialize and communicate character data between users. |
| 2 | 2 |
| 3 local MAJOR, MINOR = "AskMrRobot-Serializer", 95 | 3 local MAJOR, MINOR = "AskMrRobot-Serializer", 96 |
| 4 local Amr, oldminor = LibStub:NewLibrary(MAJOR, MINOR) | 4 local Amr, oldminor = LibStub:NewLibrary(MAJOR, MINOR) |
| 5 | 5 |
| 6 if not Amr then return end -- already loaded by something else | 6 if not Amr then return end -- already loaded by something else |
| 7 | 7 |
| 8 -- event and comm used for player snapshotting on entering combat | 8 -- event and comm used for player snapshotting on entering combat |
| 818 end | 818 end |
| 819 end | 819 end |
| 820 end | 820 end |
| 821 | 821 |
| 822 table.insert(fields, ".inv") | 822 table.insert(fields, ".inv") |
| 823 appendItemsToExport(fields, itemObjects) | 823 appendItemsToExport(fields, itemObjects) |
| 824 | |
| 825 if data.GreatVaultItems then | |
| 826 itemObjects = {} | |
| 827 for i, itemData in ipairs(data.GreatVaultItems) do | |
| 828 if itemData then | |
| 829 table.insert(itemObjects, itemData) | |
| 830 end | |
| 831 end | |
| 832 table.insert(fields, ".gv") | |
| 833 appendItemsToExport(fields, itemObjects) | |
| 834 end | |
| 824 end | 835 end |
| 825 | 836 |
| 826 return "$" .. table.concat(fields, ";") .. "$" | 837 return "$" .. table.concat(fields, ";") .. "$" |
| 827 | 838 |
| 828 end | 839 end |
