仙魔无双SDK
面向策划逻辑制作的游戏开发包
|
魂元相关玩法的API集合 更多...
函数 | |
int | ChargeSoul (FxCreature *pActor, unsigned long nValue) |
角色pActor向魂元石充电,充电。 更多... | |
int | DischargeSoul (FxCreature *pActor, unsigned long nValue, unsigned long nMaxValue=0) |
魂元石向角色pActor输入魂元,即放电。 更多... | |
int | GetSoul (FxCreature *pActor) |
查询角色pActor的魂元数值。 更多... | |
int | GetSoulChargable (FxCreature *pActor, unsigned long nInput) |
查询角色pActor的魂元数值是否够存储在魂元石。 更多... | |
int | GetSoulDischargable (FxCreature *pActor, unsigned long nInput) |
查询角色pActor的魂元数值是否够存储在魂元石,就是查询角色的魂元值剩余空间是否够接受一次放电 更多... | |
魂元相关玩法的API集合
int ChargeSoul | ( | FxCreature * | pActor, |
unsigned long | nValue | ||
) |
角色pActor向魂元石充电,充电。
pActor | [角色] 角色对象。 |
nValue | [整数] 操作的魂元数值。 |
0 | 失败,这个逻辑中,只会因为pActor不是玩家而失败 |
1 | 充电成功 |
int DischargeSoul | ( | FxCreature * | pActor, |
unsigned long | nValue, | ||
unsigned long | nMaxValue = 0 |
||
) |
魂元石向角色pActor输入魂元,即放电。
pActor | [角色] 角色对象。 |
nValue | [整数] 操作的魂元数值,默认0 |
nMaxValue | [整数] 操作的最大数值,默认0 |
0 | 失败,这个逻辑中,只会因为pActor不是玩家而失败 |
1 | 放电成功 |
int GetSoul | ( | FxCreature * | pActor | ) |
查询角色pActor的魂元数值。
pActor | [角色] 角色对象。 |
int GetSoulChargable | ( | FxCreature * | pActor, |
unsigned long | nInput | ||
) |
查询角色pActor的魂元数值是否够存储在魂元石。
pActor | [角色] 角色对象。 |
nInput | [整数] 输入的数值。 |
int GetSoulDischargable | ( | FxCreature * | pActor, |
unsigned long | nInput | ||
) |
查询角色pActor的魂元数值是否够存储在魂元石,就是查询角色的魂元值剩余空间是否够接受一次放电
pActor | [角色] 角色对象。 |
nInput | [整数] 输入的数值。 |