FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
NoahGameFrame/NFComm/NFPluginModule/NFIPackModule.h at develop · ifivebig/NoahGameFrame · GitHub
ifivebig
/
NoahGameFrame
Public
forked from
ketoo/NoahGameFrame
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
NoahGameFrame
/
NFComm
/
NFPluginModule
/
NFIPackModule.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
118 lines (89 loc) · 5.25 KB
Breadcrumbs
NoahGameFrame
/
NFComm
/
NFPluginModule
/
NFIPackModule.h
Copy path
File metadata and controls
118 lines (89 loc) · 5.25 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
//
-------------------------------------------------------------------------
//
@FileName : NFIPackModule.h
//
@Author : LvSheng.Huang
//
@Date : 2013-07-10
//
@Module : NFIPackModule
//
//
-------------------------------------------------------------------------
#
ifndef
_NFI_PACK_MODULE_H_
#
define
_NFI_PACK_MODULE_H_
#
include
<
iostream
>
#
include
"
NFILogicModule.h
"
#
include
"
NFComm/Define/NFItem_def.h
"
enum
PackTableType
{
None_Pack = -
1
,
NormalPack =
0
,
//
普通背包
ViewPack =
1
,
//
可视装备背包
BuyBackPack =
2
,
//
回购背包
DropItemList =
3
,
//
副本掉落列表
FriendEquipPack =
4
,
//
好友装备列表
MaxPack,
};
#
define
MAX_PACK_SIZE
200
//
最大背包数量
class
NFIPackModule
:
public
NFILogicModule
{
public:
enum
EDrawDropItemState
{
E_DRAW_STATE_NONE
=
0
,
//
初始状态
E_DRAW_STATE_GAIN
=
1
,
//
可获得
E_DRAW_STATE_RECV
=
2
,
//
已领取
};
enum
DropItemListColType
{
DROP_MONSTER_ID
=
0
,
DROP_ITEM_ID
=
1
,
DROP_ITEM_COUNT
=
2
,
DROP_DRAW_STATE
=
3
,
};
//
添加装备:装备config,装备过期类型,孔数量,空里宝石列表,强化等级,附魔等级,元素卡片列表
virtual
NFIDENTID
CreateEquip
(
const
NFIDENTID
& self,
const
std::string& strConfigName,
const
EGameItemExpiredType eExpiredType,
const
int
nSoltCount,
const
NFIDataList& inlayCardList,
const
int
nIntensiveLevel,
const
int
nEnchantLevel,
const
std::string& enchantCardList) = 0;
//
添加装备:装备config,装备过期类型,孔数量
virtual
NFIDENTID
CreateEquip
(
const
NFIDENTID
& self,
const
std::string& strConfigName,
const
EGameItemExpiredType eExpiredType,
const
int
nSoltCount) = 0;
//
添加普通道具
virtual
bool
CreateItem
(
const
NFIDENTID
& self,
const
std::string& strConfigName,
const
EGameItemExpiredType eExpiredType,
const
int
nCount) = 0;
//
交换2个格子[换装]
virtual
bool
SwapGrid
(
const
NFIDENTID
& self,
const
int
nOrigin,
const
int
nTarget,
const
PackTableType origin_name = PackTableType::NormalPack,
const
PackTableType target_name = PackTableType::NormalPack) = 0;
//
删除某格子内物品
virtual
bool
DeleteGrid
(
const
NFIDENTID
& self,
const
int
nOrigin,
const
PackTableType name = PackTableType::NormalPack) = 0;
//
////////////////////////////////////////////////////////////////////////
//
得到此格子的configID
virtual
const
std::string&
GetGridConfigID
(
const
NFIDENTID
& self,
const
int
nRow,
const
PackTableType name = PackTableType::NormalPack) = 0;
//
设置道具数量
virtual
bool
SetGridCount
(
const
NFIDENTID
& self,
const
int
nOrigin,
const
int
nCount,
const
PackTableType name = PackTableType::NormalPack) = 0;
virtual
int
GetGridCount
(
const
NFIDENTID
& self,
const
int
nOrigin,
const
PackTableType name = PackTableType::NormalPack) = 0;
//
是否绑定
virtual
bool
SetGridBan
(
const
NFIDENTID
& self,
const
int
nOrigin,
const
bool
bBan) = 0;
virtual
bool
GetGridBan
(
const
NFIDENTID
& self,
const
int
nOrigin) = 0;
//
设置装备强化等级
virtual
bool
SetEquipIntensiveLevel
(
const
NFIDENTID
& self,
const
int
nOrigin,
const
int
nLevel) = 0;
virtual
int
GetEquipIntensiveLevel
(
const
NFIDENTID
& self,
const
int
nOrigin) = 0;
//
设置装备洞数量
virtual
bool
SetEquipSlotCount
(
const
NFIDENTID
& self,
const
int
nOrigin,
const
int
nCount) = 0;
virtual
int
GetEquipSlotCount
(
const
NFIDENTID
& self,
const
int
nOrigin) = 0;
//
设置装镶嵌宝石ID
virtual
bool
SetEquipInlayCard
(
const
NFIDENTID
& self,
const
int
nOrigin,
const
EGameItemStoreType eSlotIndex,
const
std::string& strCardIndex) = 0;
virtual
const
std::string&
GetEquipInlayCard
(
const
NFIDENTID
& self,
const
int
nOrigin,
const
EGameItemStoreType eSlotIndex) = 0;
//
设置装备附魔等级
virtual
bool
SetEquipEnchantmentLevel
(
const
NFIDENTID
& self,
const
int
nOrigin,
const
int
nLevel) = 0;
virtual
int
GetEquipEnchantmentLevel
(
const
NFIDENTID
& self,
const
int
nOrigin) = 0;
//
设置装附魔宝石ID
virtual
bool
SetEquipEnchantmentCard
(
const
NFIDENTID
& self,
const
int
nOrigin,
const
std::string& strCardIndex) = 0;
virtual
const
std::string&
GetEquipEnchantmentCard
(
const
NFIDENTID
& self,
const
int
nOrigin) = 0;
//
设置创建时间(如果是非永久道具)
virtual
bool
SetEquipCreatTime
(
const
NFIDENTID
& self,
const
int
nOrigin,
const
std::string& strTime) = 0;
virtual
const
std::string&
GetEquipCreatTime
(
const
NFIDENTID
& self,
const
int
nOrigin) = 0;
//
修改属性
virtual
bool
SetGridData
(
const
NFIDENTID
& self,
const
int
mRow
,
const
int
nCol,
const
NFIDataList& var,
const
PackTableType name = PackTableType::NormalPack) = 0;
//
得到还有多少空格子
virtual
int
GetCanUsedCount
(
const
NFIDENTID
& self,
const
PackTableType name = PackTableType::NormalPack)
const
= 0;
//
得到某样物品有多少个
virtual
int
QueryCount
(
const
NFIDENTID
& self,
const
std::string& strItemConfigID)
const
= 0;
//
消费N个某样物品
virtual
bool
DeleteItem
(
const
NFIDENTID
& self,
const
std::string& strItemConfigID,
const
int
nCount) = 0;
//
掉落奖励
virtual
void
DrawDropAward
(
const
NFIDENTID
& self,
int
& nMoney,
int
& nExp, NFIDataList& xItemList, NFIDataList& xCountList) = 0;
};
#
endif
Back
|
FazBrowse Home
|
New Git URL