Files
2026-06-01 12:46:52 +02:00

27 lines
995 B
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#pragma once
// @brief 2010.04.22 Save the information of the last selected character in the character selection window
// Not sure if its 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();