Documentation ¶
Index ¶
- func GetSesionFromContext(c context.Context) *Session
- type ATGClient
- func (c *ATGClient) CreateSession(ctx context.Context, in *SessionInfo, opts ...grpc.CallOption) (*Success, error)
- func (c *ATGClient) GetGameServerInfo(ctx context.Context, in *SessionKey, opts ...grpc.CallOption) (*ServerInfo, error)
- func (c *ATGClient) GetRoomList(ctx context.Context, in *SessionKey, opts ...grpc.CallOption) (*RoomList, error)
- type ATGServer
- type Agent
- func (a *Agent) AquireGameServer(context.Context, *Empty) (*ServerInfo, error)
- func (a *Agent) AquireOtherAgent(c context.Context, e *Empty) (*ServerInfo, error)
- func (a *Agent) AquireSessionKey(c context.Context, e *Empty) (*SessionKey, error)
- func (a *Agent) CreateAccount(context.Context, *RegistInput) (*Error, error)
- func (a *Agent) CreateRoom(context.Context, *RoomSetting) (*Success, error)
- func (a *Agent) Init()
- func (a *Agent) JoinRoom(context.Context, *ID) (*Success, error)
- func (a *Agent) Login(c context.Context, in *LoginInput) (*UserInfo, error)
- func (a *Agent) Pipe(ClientToAgent_PipeServer) error
- func (a *Agent) RoomReady(context.Context, *Empty) (*Success, error)
- func (a *Agent) SetAccount(context.Context, *AttrSetting) (*Success, error)
- func (a *Agent) SetCharacter(context.Context, *AttrSetting) (*Success, error)
- func (a *Agent) UpdateHome(*Empty, ClientToAgent_UpdateHomeServer) error
- func (a *Agent) UpdateRoomList(*Empty, ClientToAgent_UpdateRoomListServer) error
- func (a *Agent) UpdateUserList(*Empty, ClientToAgent_UpdateUserListServer) error
- type CTGServer
- func (s *CTGServer) EnterRoom(context.Context, *ServerInfo) (*Success, error)
- func (s *CTGServer) LeaveRoom(context.Context, *Empty) (*Success, error)
- func (s *CTGServer) PlayerInput(ClientToGame_PlayerInputServer) error
- func (s *CTGServer) UpdateGameFrame(*Empty, ClientToGame_UpdateGameFrameServer) error
- func (s *CTGServer) UpdateRoomPrepareView(*Empty, ClientToGame_UpdateRoomPrepareViewServer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSesionFromContext ¶
Types ¶
type ATGClient ¶
type ATGClient struct { }
func (*ATGClient) CreateSession ¶
func (*ATGClient) GetGameServerInfo ¶
func (*ATGClient) GetRoomList ¶
type ATGServer ¶
type ATGServer struct { }
func (*ATGServer) CreateSession ¶
func (*ATGServer) GetGameServerInfo ¶
func (*ATGServer) GetRoomList ¶
type Agent ¶
type Agent struct {
Uuid int64
}
func NewAgentRpc ¶
func NewAgentRpc() (agent *Agent)
func (*Agent) AquireGameServer ¶
allocate room
func (*Agent) AquireOtherAgent ¶
func (*Agent) AquireSessionKey ¶
func (*Agent) CreateAccount ¶
func (*Agent) CreateRoom ¶
func (*Agent) SetAccount ¶
UserSetting
func (*Agent) SetCharacter ¶
func (*Agent) UpdateHome ¶
View
func (*Agent) UpdateRoomList ¶
func (*Agent) UpdateUserList ¶
type CTGServer ¶
type CTGServer struct { }
func (*CTGServer) PlayerInput ¶
entityManager
func (*CTGServer) UpdateGameFrame ¶
func (*CTGServer) UpdateRoomPrepareView ¶
View
Click to show internal directories.
Click to hide internal directories.