Move git root from Client/ to src/ to track all source code: - Client: Game client source (moved to Client/Client/) - Server: Game server source - GameTools: Development tools - CryptoSource: Encryption utilities - database: Database scripts - Script: Game scripts - rylCoder_16.02.2008_src: Legacy coder tools - GMFont, Game: Additional resources 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
62 lines
2.5 KiB
C++
62 lines
2.5 KiB
C++
#ifndef _GLOBAL_FUNCTIONS_H_
|
|
#define _GLOBAL_FUNCTIONS_H_
|
|
|
|
// 전방 참조
|
|
namespace Item{ namespace ItemType{ enum Type; } }
|
|
|
|
class CCheckComboBox;
|
|
|
|
enum REPORT_TYPE
|
|
{
|
|
GENERAL = 0,
|
|
SUCCESS = 1,
|
|
FAILED = 2,
|
|
CAUTION = 3,
|
|
NOTIFY = 4
|
|
};
|
|
|
|
bool ClippingListCtrl(CListCtrl& ctrlList, int nColCount, bool bIsAllSel = false); // 선택된 리스트 컨트롤 항목을 클립보드에 저장하기
|
|
int SearchListCtrlCol(CListCtrl& ctrlList, CString strSearchValue, int nColIndex); // 문자열과 컬럼 인덱스를 받아 리스트 컨트롤 검색
|
|
|
|
void ServerGroupComboSet(CComboBox &Cb); // 서버군 콤보 박스 셋팅
|
|
void ServerGroupComboSet(CCheckComboBox & Cb, bool bIsCheck); // 서버군 체크 콤보 박스 셋팅
|
|
|
|
|
|
CString GetSiegeObjectTypeString(int nSiegeObjectTypeIndex); // 인덱스로 공성오브젝트명 얻기
|
|
int GetSiegeObjectTypeIndex(char* szNation); // 오브젝트명으로 인덱스 얻기
|
|
CString GetStateString(int nStateIndex); // 오브젝트 상태 얻기
|
|
CString GetSubStateString(int nSiegeObjectTypeIndex, int nSubStateIndex); // 오브젝트 부가상태 얻기
|
|
CString GetJewelString(int nJewelIndex); // 인덱스로 보석명 얻기
|
|
CString GetZoneString(unsigned char cZoneIdx); // 인덱스로 존이름 얻기
|
|
CString GetNationString(int nNationIndex); // 인덱스로 국가명 얻기
|
|
unsigned char GetNationIndex(char* szNation); // 국가명으로 국가 인덱스 얻기
|
|
CString GetRaceString(int nRaceIndex); // 인덱스로 종족 얻기
|
|
CString GetSkillTypeString(unsigned char SkillType); // 스킬 타입 명 얻기
|
|
CString GetClassString(int nClassIndex); // 인덱스로 클래스 명 얻기
|
|
CString GetSetupString(CString Section, CString key); // 텍스트 파일로 부터 문자열 얻어오기
|
|
|
|
CString GetSTableString(unsigned int nIDS); // IDS로 CString 얻기
|
|
int GetSetupInt(CString Section, CString key); // 텍스트 파일로 부터 정수값 얻어오기
|
|
|
|
|
|
void Report(CString report, REPORT_TYPE eType); // 작업 상황 창에 메세지 띄우기
|
|
void Report(UINT nID, REPORT_TYPE eType); // 리소스 읽어서 메세지 띄우기
|
|
|
|
COLORREF GetItemTypeColor(Item::ItemType::Type ItemTypeIndex); // 아이템 타입에 맞는 색상 얻기
|
|
|
|
void CustomPeekMessage();
|
|
|
|
void SetAdminLevelCb(CComboBox& ctrlLevelCb);
|
|
unsigned char GetAdminLVInitial(CString strAdminLVName);
|
|
unsigned char SetAuthorityMask(unsigned char cLV);
|
|
CString GetAdminLVName(unsigned char Initial);
|
|
int GetAdminLVIconIndex(unsigned char Initial);
|
|
CString GetExtraSpacePosString(unsigned char ePos); // 상수로 기타 위치명 얻기
|
|
|
|
// 로컬용 스트링 얻기
|
|
CString GetLocalString(CString strKey);
|
|
|
|
// UI에 로컬 스트링 셋팅
|
|
void SetUIString(HWND hWnd, int nResID, char* szKey);
|
|
|
|
#endif |