当前位置:网站首页>The realization of online Fox game server room configuration battle engagement customization function

The realization of online Fox game server room configuration battle engagement customization function

2022-06-11 06:39:00 RemoteDev

Final effect :

1. Create dialog resources and modify ID by IDD_PERSONAL_RULE, Then design the effect as shown in the figure below

2. Add dialog resource processing class DlgPersonalRule

3. Declare structure variable and control data interaction function and rule structure operation function

// Configuration structure 
struct tagPersonalRule
{
	byte	cbSpecialRule;											// Are there any special rules 
	tagPersonalGeneralRule personalRule[PERSONAL_OPTION_COUNT];		// Configuration parameters 
	int nCellScore[CELLSCORE_COUNT];								// Initial integral 
	tagPersonalRule()
	{
		memset(nCellScore, 0, sizeof(nCellScore));
	}
};

4. Initialization class

原网站

版权声明
本文为[RemoteDev]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/162/202206110638005668.html