Versions in this module Expand all Collapse all v1 v1.1.3 Dec 25, 2020 v1.1.1 Dec 19, 2020 Changes in this version + const C_player_name_maxlen + const C_tabname_names + const C_tabname_svrlist + const C_tabname_userinfo + func Center_GetServerMergeName(svr0 string) string + func Center_GetServerUserLimit(svr0 string) int32 + func DatabaseOpen() + func SetDefaults(input interface{}) + type Handlers struct + func (e *Handlers) ActCalendarChange(ctx context.Context, in *MPB.GS_ActCalendarChange, out *MPB.Response) error + func (e *Handlers) ActConfChange(ctx context.Context, in *MPB.GS_ActConfChange, out *MPB.Response) error + func (e *Handlers) ActStageChange(ctx context.Context, in *MPB.GS_ActStageChange, out *MPB.Response) error + func (e *Handlers) GetRank(ctx context.Context, in *MPB.C_GetRank, out *MPB.GS_GetRank_R) error + func (e *Handlers) MailChange(ctx context.Context, in *MPB.GS_MailChange, out *MPB.Response) error + func (e *Handlers) MailDel(ctx context.Context, in *MPB.GS_MailDel, out *MPB.Response) error + func (e *Handlers) MailNew(ctx context.Context, in *MPB.GS_MailNew, out *MPB.Response) error + type UserInfo struct + AuthId string + BanTs time.Time + CreateTs time.Time + DevId string + IP string + Lv int32 + Name string + Plat string + Sdk string + Svr string + Svr0 string + Tutorial int32 + UserId uint64 + Vip int32 + func Center_GetUserInfo(auth_id string, sdk string, svr0 string, on_create func(*UserInfo)) (*UserInfo, bool) + func Center_GetUserInfoById(user_id uint64) *UserInfo v1.1.0 Nov 9, 2020 Changes in this version + const C_heart_beat_timeout + const C_max_session_count + const C_session_timeout + const C_session_timeout_tick + const SessionState_Authenticating + const SessionState_LoggedIn + const SessionState_None + var NetMgr = &netmgr_t + func C_Login(message PB.Message, ctx interface{}) + func C_Reconnect(message PB.Message, ctx interface{}) + func GS_Kick(message PB.Message, ctx interface{}) + func InitSession() + type Rc4 rc4.Cipher + func NewRc4() *Rc4 + func (self *Rc4) Decrypt(dst, src []byte) + func (self *Rc4) Encrypt(dst, src []byte) + type Session struct + func (self *Session) BeginAuth() bool + func (self *Session) Close() + func (self *Session) Dispatch(p packet.Packet) + func (self *Session) EndAuth() + func (self *Session) GetIP() string + func (self *Session) GetId() uint64 + func (self *Session) LoginPlayer(m *PB.GW_UserOnline) + func (self *Session) LogoutPlayer() + func (self *Session) ReconnectPlayer(old uint64, m *PB.GW_UserReconnect) PB.RetType + func (self *Session) SendMsg(message PB.Message) + func (self *Session) SendPacket(p packet.Packet) + func (self *Session) SetForceRemove()