gconst

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Cnt_Wrold_EliteEnter   = 1000001 //每日精英关卡挑战次数
	Cnt_Power              = 1000002 //体力
	Cnt_SecretTower_Buy    = 1000006 //黄天秘境快速收益
	Cnt_DecisivrBattle_Re  = 1000007 //决战赤壁每日刷新次数
	Cnt_DecisivrBattle_Re2 = 1000008 //决战赤壁每日重置次数
	Cnt_SecretTower_Num    = 1000009 //黄天秘境关卡次数
	Cnt_GuildShop_Buy      = 1001704 // 公会商店购买次数
)

============================================================================ 玩家计数器

  • 请使用低 5 位
  • 第 6 位特殊含义 0: 计数器当前 Id 1: 计数器上限 Id
View Source
const (
	CounterType_Daily   = 1 // 每天重置
	CounterType_Weekly  = 2 // 每周重置
	CounterType_Recover = 3 // 时间恢复
)

计数器回复类型

View Source
const (
	AOP_Default = 0
	AOP_Stats   = 1
	AOP_GLog    = 2
	AOP_Mail    = 3
	AOP_Bill    = 4

	AOP_Max = 5
)
View Source
const (
	ObjType_Currency = 1
	ObjType_Item     = 2
)
View Source
const (
	ItemType_Consume = 100 // 消耗品
	ItemType_Armor   = 400 // 装备

	ItemType_Soul = 10 //战魂
)
View Source
const (
	Team_MaxSlots     = 5
	Team_MaxHeroes    = 5
	Mode_Arena        = "Pvp"
	Mode_Field        = "Field"
	Mode_Mine         = "Mine"
	Mode_Escort       = "Escort"
	Mode_Unknown      = "Unkown"
	Mode_RuneTower    = "RuneTower"
	Mode_LegendZone   = "LegendZone"
	Mode_DarkMapPk    = "DarkMapPk"
	Mode_LegendTrail  = "LegendTrail"
	Mode_ShabakePk    = "ShabakePk"
	Mode_ShabakeTopPk = "ShabakeTopPk"
	Mode_StoneMapPk   = "StoneMapPk"
	Mode_GuildWar     = "GuildWar"
	Mode_GangHQ       = "GangHQ"
	Mode_Challenge    = "LevelBoss"
)
View Source
const (
	Bill_Gift1           = 1
	Bill_Normal          = 10
	Bill_Act_Sale        = 11
	Bill_Card_Diam       = 12
	Bill_Card_PinkDiam   = 13
	Bill_Assistant_Super = 14
	Bill_Fund            = 15
	Bill_GreatGift       = 16
	Bill_Treasure        = 18
	Bill_TimeGift        = 19
	Bill_SevenDayGift    = 20
	Bill_NinjaBook       = 21
	Bill_PersonalTailor  = 22
	Bill_LevelRewards    = 23
	Bill_FixBug          = 24
)
View Source
const (
	ShopType_Fashion = 8 //时装商店

	//历史ID
	ShopType_Limited  = 100
	ShopType_Normal   = 200
	ShopType_Honour   = 300
	ShopType_Fighter  = 400
	ShopType_Book     = 500
	ShopType_Contr    = 600
	ShopType_Support  = 700
	ShopType_Exchange = 800

	ShopType_Feedback     = 1000
	ShopType_LostTreasure = 1100
	ShopType_GuildWar     = 1200
	ShopType_CrossShabake = 1300
)
View Source
const (
	DungeonType_Exp         = 1
	DungeonType_Gold        = 2
	DungeonType_WorldBoss   = 3
	DungeonType_VipBoss     = 4
	DungeonType_DarkBoss    = 5
	DungeonType_Arena       = 6
	DungeonType_LegendBoss  = 7
	DungeonType_Field       = 8
	DungeonType_UnknownZone = 9
	DungeonType_GuildBoss   = 10
	DungeonType_RuneTower   = 11
	DungeonType_StoneBoss   = 12
	DungeonType_BossInvade  = 13
)
View Source
const (
	Color_White     = 1
	Color_Green     = 2
	Color_Blue      = 3
	Color_Purple    = 4
	Color_Orange    = 5
	Color_Red       = 6
	Color_DarkGold  = 7
	Color_LightGold = 9
)
View Source
const (
	RMStat_Normal  = 0
	RMStat_Avenged = 1
	RMStat_Expired = 2
)
View Source
const (
	GuildHelp_Mine      = "mine"
	GuildHelp_Escort    = "escort"
	GuildHelp_DarkBoss  = "darkboss"
	GuildHelp_Challenge = "challenge"
)

请求帮忙来源

View Source
const (
	Cross_Mine   = 1 // 矿场
	Cross_Escort = 2 // 帮会押运
)

跨服功能

View Source
const (
	Robot_Mine         = 1 // 矿场
	Robot_Escort       = 2 // 押运
	Robot_WorldBoss    = 3 // 世界boss
	Robot_DarkBoss     = 4 // 暗区boss
	Robot_LostTreasure = 5 // 失落宝藏
	Robot_StoneBoss    = 6 // 遗迹boss
	Robot_GuildBoss    = 7 // 帮派boss
	Robot_BossInvade   = 8 // boss入侵
)

机器人类型

View Source
const (
	BattleMode_MainLevel      = "wlevel"         //主线关卡
	BattleMode_EliteLevel     = "elitelevel"     //精英关卡
	BattleMode_TestLevel      = "test"           //测试关卡
	BattleMode_SecretTower    = "SecretTower"    //黄天秘境
	BattleMode_DecisiveBattle = "DecisiveBattle" //决战赤壁
	BattleMode_TeamCrusade    = "TeamCrusade"    //组队讨伐单人
	BattleMode_TeamCrusade2   = "TeamCrusade2"   //组队讨伐
)

战斗类型

View Source
const (
	WorldLevelType_Guild  = 1
	WorldLevelType_Boss   = 2 //头目
	WorldLevelType_Leader = 3 //首领
	WorldLevelType_Plot   = 4 //剧情
	WorldLevelType_Field  = 5 //野外
)
View Source
const (
	Module_Arena = 4   // 排位赛
	Module_Guild = 100 // 家族
)
View Source
const (
	Diamond_BaseId = Diamond_Type * 100
)
View Source
const (
	Diamond_Type = 1002
)

Variables

This section is empty.

Functions

func CounterMaxId

func CounterMaxId(id int32) int32

返回计数器对应的上限 Id

func EquipSlot

func EquipSlot(tp int32) int32

func IsArmor

func IsArmor(tp int32) bool

func IsCurrency

func IsCurrency(id int32) bool

func IsDiamond

func IsDiamond(id int32) bool

func IsItem

func IsItem(id int32) bool

func ObjectType

func ObjectType(id int32) int32

Types

type Gender

type Gender int32
const (
	Gender_Male   Gender = 1
	Gender_Female Gender = 2
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL