27 lines
995 B
C
27 lines
995 B
C
|
||
#pragma once
|
||
|
||
// @brief 2010.04.22 Save the information of the last selected character in the character selection window
|
||
// Not sure if it’s okay to use a global location here… - prodongi
|
||
struct sSelectedAvatarInfo
|
||
{
|
||
sSelectedAvatarInfo() : m_decoIndex(0), m_hairColorIndex(0), m_hairColorRgb(0) {}
|
||
void setDecoIndex(int index) { m_decoIndex = index; }
|
||
int getDecoIndex() const { return m_decoIndex; }
|
||
void setHairColorIndex(int index) { m_hairColorIndex = index; }
|
||
int getHairColorIndex() const { return m_hairColorIndex; }
|
||
void setHairColorRgb(unsigned int rgb) { m_hairColorRgb = rgb; }
|
||
//unsigned int getHairColorRgb() const { return m_hairColorRgb; }
|
||
|
||
void setHideEquipInfo(unsigned int flag) { m_hideEquipInfo = flag; }
|
||
unsigned int getHideEquipInfo() const { return m_hideEquipInfo; }
|
||
|
||
int m_decoIndex;
|
||
int m_hairColorIndex;
|
||
unsigned int m_hairColorRgb;
|
||
unsigned int m_hideEquipInfo;
|
||
};
|
||
|
||
sSelectedAvatarInfo& GetSelectedAvatarInfo();
|
||
|