⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 px_ls_lottery.h

📁 MMORPG游戏服务器端架构及函数
💻 H
字号:
#pragma	  once

/* must been first include begin */
#include "..\ProjectX_Common\ProjectX_Copyright.h"
#include "..\ProjectX_Common\ProjectX_Common.h"
/* must been first include end */

/* std and common include */
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>


/*
*	彩票
*	仅针对特别号码,相同为中,不排序,仅计数
*	如彩票数为 12410514,玩家持有数为54218215,则中数为5421,共4位,重复不计数
*	同时玩家每期可以买最多10注
*	奖项设置为:
*			1等奖	:8位全中
*			2等奖	:7位中
*			3等奖	:6位中
*			4等奖	:5位中
*			鼓励奖	:4位中
*/
typedef struct tagLottery_Base {
	__int64	start_time;
	int		num_term;
	char	lottery_current[8];
	int		award_money_level1;
	int		award_item_level1;
	int		award_money_level2;
	int		award_item_level2;
	int		award_money_level3;
	int		award_item_level3;
	int		award_money_level4;
	int		award_item_level4;
	int		award_money_level5;
	int		award_item_level5;
	struct tagLottery * pNext;
}LOTTERY_BASE, * LPLOTTERY_BASE;


typedef struct tagLottery {
	int		num_term;
	int		last_handled_frame;
	int		lottery_num;
	byte	state;
	struct tagLottery * pNext;
}LOTTERY, * LPLOTTERY;


typedef struct tagLottery_Key {
	byte	state;
	LOTTERY * plottery;
}LOTTERY_KEY, * LPLOTTERY_KEY;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -