Implemented client-side HandleCharacterCreate

This commit is contained in:
Kayne Ruse
2014-12-18 09:14:11 +11:00
parent ae046977f0
commit 015631a73d
6 changed files with 62 additions and 21 deletions
+5 -1
View File
@@ -21,6 +21,8 @@
*/
#include "base_character.hpp"
#include "config_utility.hpp"
//-------------------------
//graphics
//-------------------------
@@ -71,7 +73,9 @@ std::string BaseCharacter::GetHandle() const {
}
std::string BaseCharacter::SetAvatar(std::string s) {
return avatar = s;
avatar = s;
sprite.LoadSurface(ConfigUtility::GetSingleton()["dir.sprites"] + avatar, CHARACTER_CELLS_X, CHARACTER_CELLS_Y);
return avatar;
}
std::string BaseCharacter::GetAvatar() const {