Versions in this module Expand all Collapse all v0 v0.1.0 Jan 6, 2021 Changes in this version + func NewFlags() []cli.Flag + type AccountManager struct + func NewAccountManager(ctx *cli.Context, g *Game) *AccountManager + func (am *AccountManager) AccountExecute(sock transport.Socket, handler player.DelayHandleFunc) error + func (am *AccountManager) AccountLogon(ctx context.Context, userID int64, accountID int64, accountName string, ...) error + func (am *AccountManager) BroadCast(msg proto.Message) + func (am *AccountManager) CreatePlayer(acct *player.Account, name string) (*player.Player, error) + func (am *AccountManager) Exit() + func (am *AccountManager) GetAccountById(acctId int64) *player.Account + func (am *AccountManager) GetAccountIdBySock(sock transport.Socket) int64 + func (am *AccountManager) GetLitePlayer(playerId int64) (player.LitePlayer, error) + func (am *AccountManager) GetPlayerByAccount(acct *player.Account) (*player.Player, error) + func (am *AccountManager) Main(ctx context.Context) error + func (am *AccountManager) OnLitePlayerEvicted(key lru.Key, value interface{}) + func (am *AccountManager) Run(ctx context.Context) error + func (am *AccountManager) SelectPlayer(acct *player.Account, id int64) (*player.Player, error) + type Game struct + ID int16 + func New() *Game + func (g *Game) Action(ctx *cli.Context) error + func (g *Game) Run(arguments []string) error + func (g *Game) StartGate() + func (g *Game) Stop() + type GinServer struct + func NewGinServer(ctx *cli.Context, g *Game) *GinServer + func (s *GinServer) Exit(ctx context.Context) + func (s *GinServer) Main(ctx *cli.Context) error + func (s *GinServer) Run(ctx *cli.Context) error + type MC_AccountTest struct + AccountId int64 + Name string + func (msg *MC_AccountTest) GetName() string + type MicroService struct + func NewMicroService(c *ucli.Context, g *Game) *MicroService + func (s *MicroService) Run() error + type MsgHandler struct + func NewMsgHandler(g *Game) *MsgHandler + type PubSub struct + func NewPubSub(g *Game) *PubSub + func (ps *PubSub) PubStartGate(ctx context.Context, c *pbAccount.LiteAccount) error + func (ps *PubSub) PubSyncPlayerInfo(ctx context.Context, p *player.LitePlayer) error + type RpcHandler struct + func NewRpcHandler(g *Game) *RpcHandler + func (h *RpcHandler) CallGetGateStatus(ctx context.Context) (*pbGate.GetGateStatusReply, error) + func (h *RpcHandler) CallGetRemoteLitePlayer(playerID int64) (*pbGame.GetRemoteLitePlayerReply, error) + func (h *RpcHandler) CallStartStageCombat(p *player.Player) (*pbCombat.StartStageCombatReply, error) + func (h *RpcHandler) CallSyncPlayerInfo(userId int64, info *player.LitePlayer) (*pbGate.SyncPlayerInfoReply, error) + func (h *RpcHandler) CallUpdateUserInfo(c *player.Account) (*pbGate.GateEmptyMessage, error) + func (h *RpcHandler) GetRemoteLitePlayer(ctx context.Context, req *pbGame.GetRemoteLitePlayerRequest, ...) error + func (h *RpcHandler) UpdatePlayerExp(ctx context.Context, req *pbGame.UpdatePlayerExpRequest, ...) error + type TcpServer struct + func NewTcpServer(ctx *cli.Context, g *Game) *TcpServer + func (s *TcpServer) Exit() + func (s *TcpServer) Run(ctx context.Context) error + type WsServer struct + func NewWsServer(ctx *cli.Context, g *Game) *WsServer + func (s *WsServer) Exit() + func (s *WsServer) Run(ctx context.Context) error