[Pets] Convert Load of Pets Beastlord Data to Repositories (#3995)

* [Pets] Convert Load of Pets Beastlord Data to Repositories

# Notes
- Convert `GetBeastlordPetData()` to repositories.
- Add support for `unsigned` versions of `float`, `double`, and `decimal`, without this we defaulted to `std::string`, such as with `pets_beastlord_data`.

* Update repository-generator.pl

---------

Co-authored-by: Chris Miles <akkadius1@gmail.com>
This commit is contained in:
Alex King
2024-01-29 00:05:43 -05:00
committed by GitHub
parent a1f2a21c99
commit b89772ca91
4 changed files with 43 additions and 45 deletions
+6 -8
View File
@@ -15,8 +15,6 @@
#include "bot_database.h"
#define WOLF 42
class Client;
class Corpse;
class Merc;
@@ -337,12 +335,12 @@ struct CharacterCorpseEntry
namespace BeastlordPetData {
struct PetStruct {
uint16 race_id = WOLF;
uint8 texture = 0;
uint8 helm_texture = 0;
uint8 gender = Gender::Neuter;
float size_modifier = 1.0f;
uint8 face = 0;
uint16 race_id = Race::Wolf;
uint8 texture = 0;
uint8 helm_texture = 0;
uint8 gender = Gender::Neuter;
float size_modifier = 1.0f;
uint8 face = 0;
};
}