mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-29 15:47:46 +00:00
Added type for shared_ptr< exdSheet >
This commit is contained in:
parent
67b06bce25
commit
0e052e84c6
1 changed files with 4 additions and 2 deletions
|
@ -48,7 +48,9 @@ std::string generateIdListDecl( const std::string &exd )
|
||||||
|
|
||||||
std::string generateDirectGetters( const std::string& exd )
|
std::string generateDirectGetters( const std::string& exd )
|
||||||
{
|
{
|
||||||
return " boost::shared_ptr< " + exd + " > get" + exd + "( uint32_t " + exd + "Id );\n";
|
|
||||||
|
return " using " + exd + "Ptr = boost::shared_ptr< " + exd + " >;\n" +
|
||||||
|
" " + exd + "Ptr get" + exd + "( uint32_t " + exd + "Id );\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string generateIdListGetter( const std::string &exd )
|
std::string generateIdListGetter( const std::string &exd )
|
||||||
|
@ -79,7 +81,7 @@ std::string generateDirectGetterDef( const std::string& exd )
|
||||||
{
|
{
|
||||||
std::string result = "";
|
std::string result = "";
|
||||||
result =
|
result =
|
||||||
"boost::shared_ptr< Core::Data::" + exd + " >\n"
|
"" + exd + "Ptr\n"
|
||||||
" Core::Data::ExdDataGenerated::get" + exd + "( uint32_t " + exd + "Id )\n"
|
" Core::Data::ExdDataGenerated::get" + exd + "( uint32_t " + exd + "Id )\n"
|
||||||
"{\n"
|
"{\n"
|
||||||
" try\n"
|
" try\n"
|
||||||
|
|
Loading…
Add table
Reference in a new issue