mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-03-01 00:35:36 +08:00
添加了节点服务器,各个服务器之间支持多对多
This commit is contained in:
32
common/constant/game_constant.go
Normal file
32
common/constant/game_constant.go
Normal file
@@ -0,0 +1,32 @@
|
||||
package constant
|
||||
|
||||
import "hk4e/pkg/endec"
|
||||
|
||||
var GameConstantConst *GameConstant
|
||||
|
||||
type GameConstant struct {
|
||||
DEFAULT_ABILITY_STRINGS []string
|
||||
DEFAULT_ABILITY_HASHES []int32
|
||||
DEFAULT_ABILITY_NAME int32
|
||||
}
|
||||
|
||||
func InitGameConstant() {
|
||||
GameConstantConst = new(GameConstant)
|
||||
|
||||
GameConstantConst.DEFAULT_ABILITY_STRINGS = []string{
|
||||
"Avatar_DefaultAbility_VisionReplaceDieInvincible",
|
||||
"Avatar_DefaultAbility_AvartarInShaderChange",
|
||||
"Avatar_SprintBS_Invincible",
|
||||
"Avatar_Freeze_Duration_Reducer",
|
||||
"Avatar_Attack_ReviveEnergy",
|
||||
"Avatar_Component_Initializer",
|
||||
"Avatar_FallAnthem_Achievement_Listener",
|
||||
}
|
||||
|
||||
GameConstantConst.DEFAULT_ABILITY_HASHES = make([]int32, 0)
|
||||
for _, v := range GameConstantConst.DEFAULT_ABILITY_STRINGS {
|
||||
GameConstantConst.DEFAULT_ABILITY_HASHES = append(GameConstantConst.DEFAULT_ABILITY_HASHES, endec.Hk4eAbilityHashCode(v))
|
||||
}
|
||||
|
||||
GameConstantConst.DEFAULT_ABILITY_NAME = endec.Hk4eAbilityHashCode("Default")
|
||||
}
|
||||
Reference in New Issue
Block a user