You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.7 KiB
59 lines
1.7 KiB
package logic |
|
|
|
import ( |
|
"context" |
|
"google.golang.org/protobuf/types/known/emptypb" |
|
"sonet/api/gen/mahjong" |
|
) |
|
|
|
type MahjongServer struct { |
|
mahjong.UnimplementedMahjongServer |
|
} |
|
|
|
func (s *MahjongServer) PlayerOnline(ctx context.Context, empty *emptypb.Empty) (*mahjong.ResPlayerOnline, error) { |
|
return nil, nil |
|
} |
|
|
|
func (s *MahjongServer) PlayerOffline(ctx context.Context, empty *emptypb.Empty) (*emptypb.Empty, error) { |
|
return nil, nil |
|
} |
|
|
|
func (s *MahjongServer) LobbyView(ctx context.Context, empty *emptypb.Empty) (*mahjong.Lobby, error) { |
|
return nil, nil |
|
} |
|
|
|
func (s *MahjongServer) CreateTable(ctx context.Context, empty *emptypb.Empty) (*mahjong.MjTable, error) { |
|
return nil, nil |
|
} |
|
|
|
func (s *MahjongServer) JoinTable(ctx context.Context, table *mahjong.ReqJoinTable) (*mahjong.MjTable, error) { |
|
return nil, nil |
|
} |
|
|
|
func (s *MahjongServer) LeaveTable(ctx context.Context, empty *emptypb.Empty) (*emptypb.Empty, error) { |
|
return nil, nil |
|
} |
|
|
|
func (s *MahjongServer) KickoutTable(ctx context.Context, table *mahjong.ReqKickoutTable) (*emptypb.Empty, error) { |
|
return nil, nil |
|
} |
|
|
|
func (s *MahjongServer) ReadyStart(ctx context.Context, empty *emptypb.Empty) (*emptypb.Empty, error) { |
|
return nil, nil |
|
} |
|
|
|
func (s *MahjongServer) CancelReady(ctx context.Context, empty *emptypb.Empty) (*emptypb.Empty, error) { |
|
return nil, nil |
|
} |
|
|
|
func (s *MahjongServer) DismissTable(ctx context.Context, empty *emptypb.Empty) (*emptypb.Empty, error) { |
|
return nil, nil |
|
} |
|
|
|
func (s *MahjongServer) GameStart(ctx context.Context, empty *emptypb.Empty) (*emptypb.Empty, error) { |
|
return nil, nil |
|
} |
|
|
|
func (s *MahjongServer) PlayerAction(ctx context.Context, action *mahjong.ReqPlayerAction) (*emptypb.Empty, error) { |
|
return nil, nil |
|
}
|
|
|