[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 KingandChris Miles authored and GitHub committed 2024-01-28 23:05:43 -06:00
1 parent a1f2a21c99
commit b89772ca91
4 files changed
+43 -45

No files matched your search

@@ -566,9 +566,12 @@ sub translate_mysql_data_type_to_c
elsif ($mysql_data_type =~ /int/) {
$struct_data_type = 'uint32_t';
}
elsif ($mysql_data_type =~ /float|decimal/) {
elsif ($mysql_data_type =~ /float|decimal/i) {
$struct_data_type = 'float';
}
elsif ($mysql_data_type =~ /double/i) {
$struct_data_type = 'double';
}
}
elsif ($mysql_data_type =~ /bigint/) {
$struct_data_type = 'int64_t';