mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
[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:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user