Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Ayin-a/hk4e
/ functions
Functions
1,514 in github.com/Ayin-a/hk4e
⨍
Functions
1,514
◇
Types & classes
263
↓ 629 callers
Function
Error
(msg string, param ...any)
pkg/logger/logger.go:217
↓ 300 callers
Method
regMsg
(cmdId uint16, protoObjNewFunc func() any)
protocol/cmd/cmd_id_proto_obj_map.go:369
↓ 204 callers
Method
SendMsg
SendMsg 发送消息给客户端
gs/game/game.go:306
↓ 117 callers
Function
n
(t,e)
cmd/dispatch/static/geetest/static/js/slide.7.8.6.js:1
↓ 115 callers
Method
SendError
SendError 通用返回错误码
gs/game/game.go:338
↓ 114 callers
Function
Info
(msg string, param ...any)
pkg/logger/logger.go:187
↓ 99 callers
Function
Debug
(msg string, param ...any)
pkg/logger/logger.go:172
↓ 96 callers
Method
registerRouter
(cmdId uint16, handlerFunc HandlerFunc)
gs/game/game_route_manager.go:30
↓ 79 callers
Function
e
(t)
cmd/dispatch/static/geetest/static/js/slide.7.8.6.js:1
↓ 67 callers
Function
t
()
cmd/dispatch/static/geetest/static/js/slide.7.8.6.js:1
↓ 65 callers
Method
GetWorldByID
(worldId uint32)
gs/game/game_world_manager.go:41
↓ 55 callers
Method
GetOnlineUser
GetOnlineUser 获取在线玩家对象
gs/game/game_user_manager.go:54
↓ 46 callers
Method
GetId
()
gs/game/game_world_scene.go:26
↓ 42 callers
Function
r
(t,e,n,r,i,o,s)
cmd/dispatch/static/geetest/static/js/slide.7.8.6.js:1
↓ 41 callers
Method
GetSceneById
(sceneId uint32)
gs/game/game_world_manager.go:774
↓ 40 callers
Function
v
(t,e)
cmd/dispatch/static/geetest/static/js/slide.7.8.6.js:1
↓ 37 callers
Function
GetConfig
()
common/config/config.go:64
↓ 36 callers
Method
SendMessage
SendMessage 发送消息
gs/game/game_command_manager.go:340
↓ 34 callers
Method
Push
(x interface{})
gate/kcp/timedsched.go:24
↓ 31 callers
Function
c
(t,e,n)
cmd/dispatch/static/geetest/static/js/slide.7.8.6.js:1
↓ 28 callers
Method
GetAllPlayer
()
gs/game/game_world_scene.go:34
↓ 28 callers
Method
GetDbAvatar
()
gs/model/db_avatar.go:16
↓ 28 callers
Function
Warn
(msg string, param ...any)
pkg/logger/logger.go:202
↓ 28 callers
Function
_itimediff
(later, earlier uint32)
gate/kcp/kcp.go:109
↓ 27 callers
Function
i
(n,r)
cmd/dispatch/static/geetest/static/js/slide.7.8.6.js:1
↓ 26 callers
Function
GetItemDataById
(itemId int32)
gdconf/item_data.go:55
↓ 25 callers
Method
Close
()
gs/game/game.go:249
↓ 25 callers
Method
GetMultiplayer
()
gs/game/game_world_manager.go:272
↓ 25 callers
Method
Header
Header returns all field names
gate/kcp/snmp.go:35
↓ 23 callers
Method
Bytes
Bytes converts the Email object to a []byte representation, including all needed MIMEHeaders, boundaries, etc.
pkg/email/email.go:379
↓ 22 callers
Method
GetEntity
(entityId uint32)
gs/game/game_world_scene.go:303
↓ 20 callers
Method
GetGadgetVehicleEntity
()
gs/game/game_world_scene.go:700
↓ 20 callers
Method
Write
Write implements net.Conn
gate/kcp/session.go:244
↓ 19 callers
Function
$_BCa
(t)
cmd/dispatch/static/geetest/static/js/slide.7.8.6.js:1
↓ 19 callers
Method
AddUserItem
AddUserItem 玩家添加物品
gs/game/player_item.go:50
↓ 19 callers
Method
EnQueue
(value any)
pkg/alg/queue.go:28
↓ 19 callers
Function
Hk4eAbilityHashCode
(ability string)
pkg/endec/endec.go:180
↓ 18 callers
Function
_
(n)
cmd/dispatch/static/geetest/static/js/slide.7.8.6.js:1
↓ 17 callers
Method
Close
Close immediately changes the pool's state so no new connections will be created, then gets and closes the existing ones as they become available.
pkg/email/pool.go:359
↓ 17 callers
Method
GetConv
GetConv gets conversation id of a session
gate/kcp/session.go:570
↓ 16 callers
Method
GetOwner
()
gs/game/game_world_manager.go:225
↓ 16 callers
Method
SendToWorldA
SendToWorldA 给世界内所有玩家发消息
gs/game/game.go:371
↓ 15 callers
Method
GetGadgetEntity
()
gs/game/game_world_scene.go:621
↓ 14 callers
Method
GetAvatarId
()
gs/game/game_world_scene.go:642
↓ 14 callers
Function
GetRandomInt32
(min int32, max int32)
pkg/random/random.go:39
↓ 14 callers
Method
SendToGs
(appId string, netMsg *NetMsg)
common/mq/topic.go:28
↓ 13 callers
Method
AddAllMsgPack
AddAllMsgPack 添加GCG消息包至每位游戏玩家的待发送区
gs/game/game_gcg_manager.go:696
↓ 13 callers
Method
GetPlayerActiveAvatarId
GetPlayerActiveAvatarId 获取玩家当前活跃角色id
gs/game/game_world_manager.go:549
↓ 13 callers
Method
GetPos
()
gs/game/game_world_scene.go:565
↓ 13 callers
Method
GetRot
()
gs/game/game_world_scene.go:569
↓ 12 callers
Method
GetEntityType
()
gs/game/game_world_scene.go:605
↓ 12 callers
Method
Uint64
()
pkg/random/hk4e_mt19937.go:37
↓ 11 callers
Function
CloseLogger
()
pkg/logger/logger.go:78
↓ 11 callers
Method
GetWorldPlayerNum
GetWorldPlayerNum 获取世界中玩家的数量
gs/game/game_world_manager.go:322
↓ 11 callers
Function
InitConfig
(filePath string)
common/config/config.go:59
↓ 11 callers
Function
InitLogger
(appName string)
pkg/logger/logger.go:65
↓ 11 callers
Function
RegScriptLibFunc
(fnName string, fn lua.LGFunction)
gdconf/game_data_config.go:278
↓ 11 callers
Method
UpdatePlayerStamina
UpdatePlayerStamina 更新玩家耐力
gs/game/player_stamina.go:276
↓ 11 callers
Function
z
(n)
cmd/dispatch/static/geetest/static/js/slide.7.8.6.js:1
↓ 10 callers
Function
GetAvatarDataById
(avatarId int32)
gdconf/avatar_data.go:80
↓ 10 callers
Method
GetDbQuest
()
gs/model/db_quest.go:25
↓ 10 callers
Method
GetDbTeam
()
gs/model/db_team.go:43
↓ 10 callers
Method
GetPlayerItemCount
(userId uint32, itemId uint32)
gs/game/player_item.go:32
↓ 10 callers
Method
GetPlayerWorldAvatarEntityId
GetPlayerWorldAvatarEntityId 获取某玩家在世界队伍中的某角色的实体id
gs/game/game_world_manager.go:518
↓ 10 callers
Function
GetQuestDataById
(questId int32)
gdconf/quest_data.go:388
↓ 10 callers
Function
GetSceneGroup
(groupId int32)
gdconf/scene_lua_config.go:402
↓ 10 callers
Method
copyLocalTeamToWorld
(start int, end int, peerId uint32)
gs/game/game_world_manager.go:640
↓ 10 callers
Function
w
()
cmd/dispatch/static/geetest/static/js/slide.7.8.6.js:1
↓ 9 callers
Method
AddSceneEntityNotify
AddSceneEntityNotify 添加的场景实体同步 封装接口
gs/game/player_scene.go:378
↓ 9 callers
Method
Attach
Attach is used to attach content from an io.Reader to the email. Required parameters include an io.Reader, the desired filename for the attachment, an
pkg/email/email.go:264
↓ 9 callers
Method
CostUserItem
(userId uint32, itemList []*ChangeItem)
gs/game/player_item.go:125
↓ 9 callers
Method
GetPlayerPeerId
GetPlayerPeerId 获取当前玩家世界内编号
gs/game/game_world_manager.go:301
↓ 9 callers
Function
getSceneLuaConfigTable
(luaState *lua.LState, tableName string, object T)
gdconf/game_data_config.go:358
↓ 8 callers
Function
$
(t,e,n)
cmd/dispatch/static/geetest/static/js/slide.7.8.6.js:1
↓ 8 callers
Function
$_EH
(t)
cmd/dispatch/static/geetest/static/js/slide.7.8.6.js:1
↓ 8 callers
Function
CallLuaFunc
CallLuaFunc 调用LUA方法
gs/game/lua_func.go:37
↓ 8 callers
Method
DestroyEntity
(entityId uint32)
gs/game/game_world_scene.go:295
↓ 8 callers
Function
GetContextPlayer
GetContextPlayer 获取上下文中的玩家对象
gs/game/lua_func.go:77
↓ 8 callers
Method
GetLuaState
()
gdconf/scene_lua_config.go:448
↓ 8 callers
Method
GetNextWorldEntityId
(entityType uint8)
gs/game/game_world_manager.go:280
↓ 8 callers
Method
GetQuestById
GetQuestById 获取一个任务
gs/model/db_quest.go:40
↓ 8 callers
Method
GetRemoteUserOnlineState
(userId uint32)
gs/game/game_user_manager.go:246
↓ 8 callers
Method
RemoteAddr
RemoteAddr returns the remote network address. The Addr returned is shared by all invocations of RemoteAddr, so do not modify it.
gate/kcp/session.go:373
↓ 8 callers
Method
SendMsg
(cmdId uint16, msg pb.Message)
robot/net/session.go:54
↓ 8 callers
Method
UpdateAccountFieldByFieldName
(fieldName string, fieldValue any, fieldUpdateName string, fieldUpdateValue any)
dispatch/dao/account_mongo.go:28
↓ 8 callers
Method
UpdateUserAvatarFightProp
(userId uint32, avatarId uint32)
gs/game/player_avatar.go:582
↓ 8 callers
Function
j
(t,e)
cmd/dispatch/static/geetest/static/js/slide.7.8.6.js:1
↓ 7 callers
Function
$_BGE
(t,e,n)
cmd/dispatch/static/geetest/static/js/slide.7.8.6.js:1
↓ 7 callers
Function
B
(r,t,e,n,i,o,s)
cmd/dispatch/static/geetest/static/js/slide.7.8.6.js:1
↓ 7 callers
Method
ChangePhase
ChangePhase 游戏更改阶段
gs/game/game_gcg_manager.go:399
↓ 7 callers
Method
Close
()
common/mq/nats.go:80
↓ 7 callers
Function
ConvClientPbDataToServerCore
(protoObjName string, serverProtoObj pb.Message, clientProtoData *[]byte, clientCmdProtoMap *client_proto.Clie
gate/net/proto_endecode.go:321
↓ 7 callers
Function
ConvServerPbDataToClientCore
(protoObjName string, serverProtoObj pb.Message, serverProtoData *[]byte, clientCmdProtoMap *client_proto.Clie
gate/net/proto_endecode.go:341
↓ 7 callers
Method
Copy
Copy make a copy of current snmp snapshot
gate/kcp/snmp.go:84
↓ 7 callers
Method
CreateEntity
(entity *Entity)
gs/game/game_world_scene.go:287
↓ 7 callers
Method
DeQueue
()
pkg/alg/queue.go:41
↓ 7 callers
Method
ForceFinishQuest
ForceFinishQuest 强制完成一个任务
gs/model/db_quest.go:123
↓ 7 callers
Method
GetAbilityList
()
gs/game/game_world_manager.go:420
↓ 7 callers
Method
GetGadgetId
()
gs/game/game_world_scene.go:680
↓ 7 callers
Function
NewEmailFromReader
NewEmailFromReader reads a stream of bytes from an io.Reader, r, and returns an email struct containing the parsed data. This function expects the dat
pkg/email/email.go:107
next →
1–100 of 1,514, ranked by callers