Documentation ¶
Index ¶
- Variables
- func RegisterExternalServiceServer(s grpc.ServiceRegistrar, srv ExternalServiceServer)
- type Ammo
- type Animation
- func (*Animation) Descriptor() ([]byte, []int)deprecated
- func (x *Animation) GetCurrentFrameMatrix() []float64
- func (x *Animation) GetFrameCount() uint64
- func (x *Animation) GetFrameDelayCounter() uint64
- func (x *Animation) GetPositionBeforeAnimation() *Position
- func (*Animation) ProtoMessage()
- func (x *Animation) ProtoReflect() protoreflect.Message
- func (x *Animation) Reset()
- func (x *Animation) String() string
- type Archievement
- func (Archievement) Descriptor() protoreflect.EnumDescriptor
- func (x Archievement) Enum() *Archievement
- func (Archievement) EnumDescriptor() ([]byte, []int)deprecated
- func (x Archievement) Number() protoreflect.EnumNumber
- func (x Archievement) String() string
- func (Archievement) Type() protoreflect.EnumType
- type AssignRandomSpawnsToPCsRequest
- func (*AssignRandomSpawnsToPCsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AssignRandomSpawnsToPCsRequest) GetSpawns() []*Position
- func (x *AssignRandomSpawnsToPCsRequest) GetWorldId() string
- func (*AssignRandomSpawnsToPCsRequest) ProtoMessage()
- func (x *AssignRandomSpawnsToPCsRequest) ProtoReflect() protoreflect.Message
- func (x *AssignRandomSpawnsToPCsRequest) Reset()
- func (x *AssignRandomSpawnsToPCsRequest) String() string
- type Base
- func (*Base) Descriptor() ([]byte, []int)deprecated
- func (x *Base) GetAnimation() *Animation
- func (x *Base) GetDirection() int64
- func (x *Base) GetId() string
- func (x *Base) GetParent() *Base
- func (x *Base) GetPhysics() *Physics
- func (x *Base) GetRawPos() *Position
- func (x *Base) GetRole() int64
- func (x *Base) GetSkin() *Skin
- func (x *Base) GetSpawn() *Position
- func (*Base) ProtoMessage()
- func (x *Base) ProtoReflect() protoreflect.Message
- func (x *Base) Reset()
- func (x *Base) String() string
- type DeletePCRequest
- type Element
- type ExternalServiceClient
- type ExternalServiceServer
- type GameSettings
- func (*GameSettings) Descriptor() ([]byte, []int)deprecated
- func (x *GameSettings) GetIsGameStarted() bool
- func (x *GameSettings) GetIsWorldExist() bool
- func (x *GameSettings) GetRegime() Regime
- func (*GameSettings) ProtoMessage()
- func (x *GameSettings) ProtoReflect() protoreflect.Message
- func (x *GameSettings) Reset()
- func (x *GameSettings) String() string
- type GetStatisticsResponse
- func (*GetStatisticsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetStatisticsResponse) GetKillsNum() int64
- func (*GetStatisticsResponse) ProtoMessage()
- func (x *GetStatisticsResponse) ProtoReflect() protoreflect.Message
- func (x *GetStatisticsResponse) Reset()
- func (x *GetStatisticsResponse) String() string
- type GetWorldResponse
- func (*GetWorldResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetWorldResponse) GetAmmos() []*Ammo
- func (x *GetWorldResponse) GetElements() []*Element
- func (x *GetWorldResponse) GetPCs() []*PC
- func (x *GetWorldResponse) GetWeapons() []*Weapon
- func (x *GetWorldResponse) GetWorld() *World
- func (*GetWorldResponse) ProtoMessage()
- func (x *GetWorldResponse) ProtoReflect() protoreflect.Message
- func (x *GetWorldResponse) Reset()
- func (x *GetWorldResponse) String() string
- type IsGameStartedResponse
- func (*IsGameStartedResponse) Descriptor() ([]byte, []int)deprecated
- func (x *IsGameStartedResponse) GetStarted() bool
- func (*IsGameStartedResponse) ProtoMessage()
- func (x *IsGameStartedResponse) ProtoReflect() protoreflect.Message
- func (x *IsGameStartedResponse) Reset()
- func (x *IsGameStartedResponse) String() string
- type Map
- type PC
- func (*PC) Descriptor() ([]byte, []int)deprecated
- func (x *PC) GetBase() *Base
- func (x *PC) GetHealth() uint64
- func (x *PC) GetLobbyNumber() int64
- func (x *PC) GetUsername() string
- func (*PC) ProtoMessage()
- func (x *PC) ProtoReflect() protoreflect.Message
- func (x *PC) Reset()
- func (x *PC) String() string
- type Physics
- type Position
- type Regime
- type RemovePCRequest
- func (*RemovePCRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemovePCRequest) GetPcId() string
- func (x *RemovePCRequest) GetWorldId() string
- func (*RemovePCRequest) ProtoMessage()
- func (x *RemovePCRequest) ProtoReflect() protoreflect.Message
- func (x *RemovePCRequest) Reset()
- func (x *RemovePCRequest) String() string
- type Skin
- type UnimplementedExternalServiceServer
- func (UnimplementedExternalServiceServer) AssignRandomSpawnsToPCs(context.Context, *AssignRandomSpawnsToPCsRequest) (*wrapperspb.BoolValue, error)
- func (UnimplementedExternalServiceServer) DeleteWorld(context.Context, *wrapperspb.StringValue) (*wrapperspb.BoolValue, error)
- func (UnimplementedExternalServiceServer) GetStatistics(context.Context, *wrapperspb.StringValue) (*GetStatisticsResponse, error)
- func (UnimplementedExternalServiceServer) GetWorld(context.Context, *wrapperspb.StringValue) (*GetWorldResponse, error)
- func (UnimplementedExternalServiceServer) IsArchievementUnlocked(context.Context, *wrapperspb.StringValue) (*wrapperspb.BoolValue, error)
- func (UnimplementedExternalServiceServer) UnlockArchievement(context.Context, *UnlockArchievementRequest) (*emptypb.Empty, error)
- func (UnimplementedExternalServiceServer) UpdateAmmo(context.Context, *Ammo) (*wrapperspb.BoolValue, error)
- func (UnimplementedExternalServiceServer) UpdateElement(context.Context, *Element) (*wrapperspb.BoolValue, error)
- func (UnimplementedExternalServiceServer) UpdateMap(context.Context, *Map) (*wrapperspb.BoolValue, error)
- func (UnimplementedExternalServiceServer) UpdatePC(context.Context, *PC) (*wrapperspb.BoolValue, error)
- func (UnimplementedExternalServiceServer) UpdateWeapon(context.Context, *Weapon) (*wrapperspb.BoolValue, error)
- func (UnimplementedExternalServiceServer) UpdateWorld(context.Context, *World) (*wrapperspb.BoolValue, error)
- type UnlockArchievementRequest
- func (*UnlockArchievementRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UnlockArchievementRequest) GetArchievement() Archievement
- func (x *UnlockArchievementRequest) GetPcId() string
- func (*UnlockArchievementRequest) ProtoMessage()
- func (x *UnlockArchievementRequest) ProtoReflect() protoreflect.Message
- func (x *UnlockArchievementRequest) Reset()
- func (x *UnlockArchievementRequest) String() string
- type UnsafeExternalServiceServer
- type Weapon
- type World
Constants ¶
This section is empty.
Variables ¶
var ( Regime_name = map[int32]string{ 0: "SQUAD", 1: "DEATHMATCH", } Regime_value = map[string]int32{ "SQUAD": 0, "DEATHMATCH": 1, } )
Enum value maps for Regime.
var ( Archievement_name = map[int32]string{ 0: "TenKills", } Archievement_value = map[string]int32{ "TenKills": 0, } )
Enum value maps for Archievement.
var ExternalService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "ExternalService", HandlerType: (*ExternalServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "UpdateWorld", Handler: _ExternalService_UpdateWorld_Handler, }, { MethodName: "UpdateMap", Handler: _ExternalService_UpdateMap_Handler, }, { MethodName: "UpdatePC", Handler: _ExternalService_UpdatePC_Handler, }, { MethodName: "UpdateElement", Handler: _ExternalService_UpdateElement_Handler, }, { MethodName: "UpdateWeapon", Handler: _ExternalService_UpdateWeapon_Handler, }, { MethodName: "UpdateAmmo", Handler: _ExternalService_UpdateAmmo_Handler, }, { MethodName: "DeleteWorld", Handler: _ExternalService_DeleteWorld_Handler, }, { MethodName: "GetWorld", Handler: _ExternalService_GetWorld_Handler, }, { MethodName: "GetStatistics", Handler: _ExternalService_GetStatistics_Handler, }, { MethodName: "IsArchievementUnlocked", Handler: _ExternalService_IsArchievementUnlocked_Handler, }, { MethodName: "UnlockArchievement", Handler: _ExternalService_UnlockArchievement_Handler, }, { MethodName: "AssignRandomSpawnsToPCs", Handler: _ExternalService_AssignRandomSpawnsToPCs_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "external.proto", }
ExternalService_ServiceDesc is the grpc.ServiceDesc for ExternalService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_external_proto protoreflect.FileDescriptor
Functions ¶
func RegisterExternalServiceServer ¶
func RegisterExternalServiceServer(s grpc.ServiceRegistrar, srv ExternalServiceServer)
Types ¶
type Ammo ¶
type Ammo struct { Base *Base `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` Direction int64 `protobuf:"varint,2,opt,name=direction,proto3" json:"direction,omitempty"` // contains filtered or unexported fields }
func (*Ammo) Descriptor
deprecated
func (*Ammo) GetDirection ¶
func (*Ammo) ProtoMessage ¶
func (*Ammo) ProtoMessage()
func (*Ammo) ProtoReflect ¶
func (x *Ammo) ProtoReflect() protoreflect.Message
type Animation ¶
type Animation struct { PositionBeforeAnimation *Position `protobuf:"bytes,1,opt,name=positionBeforeAnimation,proto3" json:"positionBeforeAnimation,omitempty"` FrameCount uint64 `protobuf:"varint,2,opt,name=frameCount,proto3" json:"frameCount,omitempty"` FrameDelayCounter uint64 `protobuf:"varint,3,opt,name=frameDelayCounter,proto3" json:"frameDelayCounter,omitempty"` CurrentFrameMatrix []float64 `protobuf:"fixed64,4,rep,packed,name=currentFrameMatrix,proto3" json:"currentFrameMatrix,omitempty"` // contains filtered or unexported fields }
func (*Animation) Descriptor
deprecated
func (*Animation) GetCurrentFrameMatrix ¶
func (*Animation) GetFrameCount ¶
func (*Animation) GetFrameDelayCounter ¶
func (*Animation) GetPositionBeforeAnimation ¶
func (*Animation) ProtoMessage ¶
func (*Animation) ProtoMessage()
func (*Animation) ProtoReflect ¶
func (x *Animation) ProtoReflect() protoreflect.Message
type Archievement ¶
type Archievement int32
const (
Archievement_TenKills Archievement = 0
)
func (Archievement) Descriptor ¶
func (Archievement) Descriptor() protoreflect.EnumDescriptor
func (Archievement) Enum ¶
func (x Archievement) Enum() *Archievement
func (Archievement) EnumDescriptor
deprecated
func (Archievement) EnumDescriptor() ([]byte, []int)
Deprecated: Use Archievement.Descriptor instead.
func (Archievement) Number ¶
func (x Archievement) Number() protoreflect.EnumNumber
func (Archievement) String ¶
func (x Archievement) String() string
func (Archievement) Type ¶
func (Archievement) Type() protoreflect.EnumType
type AssignRandomSpawnsToPCsRequest ¶
type AssignRandomSpawnsToPCsRequest struct { WorldId string `protobuf:"bytes,1,opt,name=worldId,proto3" json:"worldId,omitempty"` Spawns []*Position `protobuf:"bytes,2,rep,name=spawns,proto3" json:"spawns,omitempty"` // contains filtered or unexported fields }
func (*AssignRandomSpawnsToPCsRequest) Descriptor
deprecated
func (*AssignRandomSpawnsToPCsRequest) Descriptor() ([]byte, []int)
Deprecated: Use AssignRandomSpawnsToPCsRequest.ProtoReflect.Descriptor instead.
func (*AssignRandomSpawnsToPCsRequest) GetSpawns ¶
func (x *AssignRandomSpawnsToPCsRequest) GetSpawns() []*Position
func (*AssignRandomSpawnsToPCsRequest) GetWorldId ¶
func (x *AssignRandomSpawnsToPCsRequest) GetWorldId() string
func (*AssignRandomSpawnsToPCsRequest) ProtoMessage ¶
func (*AssignRandomSpawnsToPCsRequest) ProtoMessage()
func (*AssignRandomSpawnsToPCsRequest) ProtoReflect ¶
func (x *AssignRandomSpawnsToPCsRequest) ProtoReflect() protoreflect.Message
func (*AssignRandomSpawnsToPCsRequest) Reset ¶
func (x *AssignRandomSpawnsToPCsRequest) Reset()
func (*AssignRandomSpawnsToPCsRequest) String ¶
func (x *AssignRandomSpawnsToPCsRequest) String() string
type Base ¶
type Base struct { Animation *Animation `protobuf:"bytes,1,opt,name=animation,proto3" json:"animation,omitempty"` Skin *Skin `protobuf:"bytes,2,opt,name=skin,proto3" json:"skin,omitempty"` Physics *Physics `protobuf:"bytes,3,opt,name=physics,proto3" json:"physics,omitempty"` Parent *Base `protobuf:"bytes,4,opt,name=parent,proto3" json:"parent,omitempty"` Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"` RawPos *Position `protobuf:"bytes,6,opt,name=rawPos,proto3" json:"rawPos,omitempty"` Spawn *Position `protobuf:"bytes,7,opt,name=spawn,proto3" json:"spawn,omitempty"` Direction int64 `protobuf:"varint,8,opt,name=direction,proto3" json:"direction,omitempty"` Role int64 `protobuf:"varint,9,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
func (*Base) Descriptor
deprecated
func (*Base) GetAnimation ¶
func (*Base) GetDirection ¶
func (*Base) GetPhysics ¶
func (*Base) ProtoMessage ¶
func (*Base) ProtoMessage()
func (*Base) ProtoReflect ¶
func (x *Base) ProtoReflect() protoreflect.Message
type DeletePCRequest ¶
type DeletePCRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeletePCRequest) Descriptor
deprecated
func (*DeletePCRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeletePCRequest.ProtoReflect.Descriptor instead.
func (*DeletePCRequest) GetId ¶
func (x *DeletePCRequest) GetId() string
func (*DeletePCRequest) ProtoMessage ¶
func (*DeletePCRequest) ProtoMessage()
func (*DeletePCRequest) ProtoReflect ¶
func (x *DeletePCRequest) ProtoReflect() protoreflect.Message
func (*DeletePCRequest) Reset ¶
func (x *DeletePCRequest) Reset()
func (*DeletePCRequest) String ¶
func (x *DeletePCRequest) String() string
type Element ¶
type Element struct { Base *Base `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` // contains filtered or unexported fields }
func (*Element) Descriptor
deprecated
func (*Element) ProtoMessage ¶
func (*Element) ProtoMessage()
func (*Element) ProtoReflect ¶
func (x *Element) ProtoReflect() protoreflect.Message
type ExternalServiceClient ¶
type ExternalServiceClient interface { //Game process UpdateWorld(ctx context.Context, in *World, opts ...grpc.CallOption) (*wrapperspb.BoolValue, error) UpdateMap(ctx context.Context, in *Map, opts ...grpc.CallOption) (*wrapperspb.BoolValue, error) UpdatePC(ctx context.Context, in *PC, opts ...grpc.CallOption) (*wrapperspb.BoolValue, error) UpdateElement(ctx context.Context, in *Element, opts ...grpc.CallOption) (*wrapperspb.BoolValue, error) UpdateWeapon(ctx context.Context, in *Weapon, opts ...grpc.CallOption) (*wrapperspb.BoolValue, error) UpdateAmmo(ctx context.Context, in *Ammo, opts ...grpc.CallOption) (*wrapperspb.BoolValue, error) DeleteWorld(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*wrapperspb.BoolValue, error) // rpc DeletePC (google.protobuf.StringValue) returns (google.protobuf.BoolValue); GetWorld(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*GetWorldResponse, error) //Statistics GetStatistics(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*GetStatisticsResponse, error) //Archievements IsArchievementUnlocked(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*wrapperspb.BoolValue, error) UnlockArchievement(ctx context.Context, in *UnlockArchievementRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) //Utils AssignRandomSpawnsToPCs(ctx context.Context, in *AssignRandomSpawnsToPCsRequest, opts ...grpc.CallOption) (*wrapperspb.BoolValue, error) }
ExternalServiceClient is the client API for ExternalService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewExternalServiceClient ¶
func NewExternalServiceClient(cc grpc.ClientConnInterface) ExternalServiceClient
type ExternalServiceServer ¶
type ExternalServiceServer interface { //Game process UpdateWorld(context.Context, *World) (*wrapperspb.BoolValue, error) UpdateMap(context.Context, *Map) (*wrapperspb.BoolValue, error) UpdatePC(context.Context, *PC) (*wrapperspb.BoolValue, error) UpdateElement(context.Context, *Element) (*wrapperspb.BoolValue, error) UpdateWeapon(context.Context, *Weapon) (*wrapperspb.BoolValue, error) UpdateAmmo(context.Context, *Ammo) (*wrapperspb.BoolValue, error) DeleteWorld(context.Context, *wrapperspb.StringValue) (*wrapperspb.BoolValue, error) // rpc DeletePC (google.protobuf.StringValue) returns (google.protobuf.BoolValue); GetWorld(context.Context, *wrapperspb.StringValue) (*GetWorldResponse, error) //Statistics GetStatistics(context.Context, *wrapperspb.StringValue) (*GetStatisticsResponse, error) //Archievements IsArchievementUnlocked(context.Context, *wrapperspb.StringValue) (*wrapperspb.BoolValue, error) UnlockArchievement(context.Context, *UnlockArchievementRequest) (*emptypb.Empty, error) //Utils AssignRandomSpawnsToPCs(context.Context, *AssignRandomSpawnsToPCsRequest) (*wrapperspb.BoolValue, error) // contains filtered or unexported methods }
ExternalServiceServer is the server API for ExternalService service. All implementations must embed UnimplementedExternalServiceServer for forward compatibility
type GameSettings ¶
type GameSettings struct { Regime Regime `protobuf:"varint,1,opt,name=regime,proto3,enum=Regime" json:"regime,omitempty"` IsGameStarted bool `protobuf:"varint,2,opt,name=isGameStarted,proto3" json:"isGameStarted,omitempty"` IsWorldExist bool `protobuf:"varint,3,opt,name=isWorldExist,proto3" json:"isWorldExist,omitempty"` // contains filtered or unexported fields }
func (*GameSettings) Descriptor
deprecated
func (*GameSettings) Descriptor() ([]byte, []int)
Deprecated: Use GameSettings.ProtoReflect.Descriptor instead.
func (*GameSettings) GetIsGameStarted ¶
func (x *GameSettings) GetIsGameStarted() bool
func (*GameSettings) GetIsWorldExist ¶
func (x *GameSettings) GetIsWorldExist() bool
func (*GameSettings) GetRegime ¶
func (x *GameSettings) GetRegime() Regime
func (*GameSettings) ProtoMessage ¶
func (*GameSettings) ProtoMessage()
func (*GameSettings) ProtoReflect ¶
func (x *GameSettings) ProtoReflect() protoreflect.Message
func (*GameSettings) Reset ¶
func (x *GameSettings) Reset()
func (*GameSettings) String ¶
func (x *GameSettings) String() string
type GetStatisticsResponse ¶
type GetStatisticsResponse struct { KillsNum int64 `protobuf:"varint,1,opt,name=killsNum,proto3" json:"killsNum,omitempty"` // contains filtered or unexported fields }
func (*GetStatisticsResponse) Descriptor
deprecated
func (*GetStatisticsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetStatisticsResponse.ProtoReflect.Descriptor instead.
func (*GetStatisticsResponse) GetKillsNum ¶
func (x *GetStatisticsResponse) GetKillsNum() int64
func (*GetStatisticsResponse) ProtoMessage ¶
func (*GetStatisticsResponse) ProtoMessage()
func (*GetStatisticsResponse) ProtoReflect ¶
func (x *GetStatisticsResponse) ProtoReflect() protoreflect.Message
func (*GetStatisticsResponse) Reset ¶
func (x *GetStatisticsResponse) Reset()
func (*GetStatisticsResponse) String ¶
func (x *GetStatisticsResponse) String() string
type GetWorldResponse ¶
type GetWorldResponse struct { World *World `protobuf:"bytes,1,opt,name=world,proto3" json:"world,omitempty"` PCs []*PC `protobuf:"bytes,2,rep,name=PCs,proto3" json:"PCs,omitempty"` Elements []*Element `protobuf:"bytes,3,rep,name=elements,proto3" json:"elements,omitempty"` Weapons []*Weapon `protobuf:"bytes,4,rep,name=weapons,proto3" json:"weapons,omitempty"` Ammos []*Ammo `protobuf:"bytes,5,rep,name=ammos,proto3" json:"ammos,omitempty"` // contains filtered or unexported fields }
func (*GetWorldResponse) Descriptor
deprecated
func (*GetWorldResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetWorldResponse.ProtoReflect.Descriptor instead.
func (*GetWorldResponse) GetAmmos ¶
func (x *GetWorldResponse) GetAmmos() []*Ammo
func (*GetWorldResponse) GetElements ¶
func (x *GetWorldResponse) GetElements() []*Element
func (*GetWorldResponse) GetPCs ¶
func (x *GetWorldResponse) GetPCs() []*PC
func (*GetWorldResponse) GetWeapons ¶
func (x *GetWorldResponse) GetWeapons() []*Weapon
func (*GetWorldResponse) GetWorld ¶
func (x *GetWorldResponse) GetWorld() *World
func (*GetWorldResponse) ProtoMessage ¶
func (*GetWorldResponse) ProtoMessage()
func (*GetWorldResponse) ProtoReflect ¶
func (x *GetWorldResponse) ProtoReflect() protoreflect.Message
func (*GetWorldResponse) Reset ¶
func (x *GetWorldResponse) Reset()
func (*GetWorldResponse) String ¶
func (x *GetWorldResponse) String() string
type IsGameStartedResponse ¶
type IsGameStartedResponse struct { Started bool `protobuf:"varint,1,opt,name=started,proto3" json:"started,omitempty"` // contains filtered or unexported fields }
func (*IsGameStartedResponse) Descriptor
deprecated
func (*IsGameStartedResponse) Descriptor() ([]byte, []int)
Deprecated: Use IsGameStartedResponse.ProtoReflect.Descriptor instead.
func (*IsGameStartedResponse) GetStarted ¶
func (x *IsGameStartedResponse) GetStarted() bool
func (*IsGameStartedResponse) ProtoMessage ¶
func (*IsGameStartedResponse) ProtoMessage()
func (*IsGameStartedResponse) ProtoReflect ¶
func (x *IsGameStartedResponse) ProtoReflect() protoreflect.Message
func (*IsGameStartedResponse) Reset ¶
func (x *IsGameStartedResponse) Reset()
func (*IsGameStartedResponse) String ¶
func (x *IsGameStartedResponse) String() string
type Map ¶
type Map struct { Base *Base `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` Spawns []*Position `protobuf:"bytes,2,rep,name=spawns,proto3" json:"spawns,omitempty"` // contains filtered or unexported fields }
func (*Map) Descriptor
deprecated
func (*Map) ProtoMessage ¶
func (*Map) ProtoMessage()
func (*Map) ProtoReflect ¶
func (x *Map) ProtoReflect() protoreflect.Message
type PC ¶
type PC struct { Base *Base `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Health uint64 `protobuf:"varint,3,opt,name=health,proto3" json:"health,omitempty"` LobbyNumber int64 `protobuf:"varint,4,opt,name=lobbyNumber,proto3" json:"lobbyNumber,omitempty"` // contains filtered or unexported fields }
func (*PC) Descriptor
deprecated
func (*PC) GetLobbyNumber ¶
func (*PC) GetUsername ¶
func (*PC) ProtoMessage ¶
func (*PC) ProtoMessage()
func (*PC) ProtoReflect ¶
func (x *PC) ProtoReflect() protoreflect.Message
type Physics ¶
type Physics struct { Jump []int64 `protobuf:"varint,1,rep,packed,name=jump,proto3" json:"jump,omitempty"` // contains filtered or unexported fields }
func (*Physics) Descriptor
deprecated
func (*Physics) ProtoMessage ¶
func (*Physics) ProtoMessage()
func (*Physics) ProtoReflect ¶
func (x *Physics) ProtoReflect() protoreflect.Message
type Position ¶
type Position struct { X float64 `protobuf:"fixed64,1,opt,name=x,proto3" json:"x,omitempty"` Y float64 `protobuf:"fixed64,2,opt,name=y,proto3" json:"y,omitempty"` // contains filtered or unexported fields }
func (*Position) Descriptor
deprecated
func (*Position) ProtoMessage ¶
func (*Position) ProtoMessage()
func (*Position) ProtoReflect ¶
func (x *Position) ProtoReflect() protoreflect.Message
type Regime ¶
type Regime int32
func (Regime) Descriptor ¶
func (Regime) Descriptor() protoreflect.EnumDescriptor
func (Regime) EnumDescriptor
deprecated
func (Regime) Number ¶
func (x Regime) Number() protoreflect.EnumNumber
func (Regime) Type ¶
func (Regime) Type() protoreflect.EnumType
type RemovePCRequest ¶
type RemovePCRequest struct { WorldId string `protobuf:"bytes,1,opt,name=worldId,proto3" json:"worldId,omitempty"` PcId string `protobuf:"bytes,2,opt,name=pcId,proto3" json:"pcId,omitempty"` // contains filtered or unexported fields }
func (*RemovePCRequest) Descriptor
deprecated
func (*RemovePCRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemovePCRequest.ProtoReflect.Descriptor instead.
func (*RemovePCRequest) GetPcId ¶
func (x *RemovePCRequest) GetPcId() string
func (*RemovePCRequest) GetWorldId ¶
func (x *RemovePCRequest) GetWorldId() string
func (*RemovePCRequest) ProtoMessage ¶
func (*RemovePCRequest) ProtoMessage()
func (*RemovePCRequest) ProtoReflect ¶
func (x *RemovePCRequest) ProtoReflect() protoreflect.Message
func (*RemovePCRequest) Reset ¶
func (x *RemovePCRequest) Reset()
func (*RemovePCRequest) String ¶
func (x *RemovePCRequest) String() string
type Skin ¶
type Skin struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
func (*Skin) Descriptor
deprecated
func (*Skin) ProtoMessage ¶
func (*Skin) ProtoMessage()
func (*Skin) ProtoReflect ¶
func (x *Skin) ProtoReflect() protoreflect.Message
type UnimplementedExternalServiceServer ¶
type UnimplementedExternalServiceServer struct { }
UnimplementedExternalServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedExternalServiceServer) AssignRandomSpawnsToPCs ¶
func (UnimplementedExternalServiceServer) AssignRandomSpawnsToPCs(context.Context, *AssignRandomSpawnsToPCsRequest) (*wrapperspb.BoolValue, error)
func (UnimplementedExternalServiceServer) DeleteWorld ¶
func (UnimplementedExternalServiceServer) DeleteWorld(context.Context, *wrapperspb.StringValue) (*wrapperspb.BoolValue, error)
func (UnimplementedExternalServiceServer) GetStatistics ¶
func (UnimplementedExternalServiceServer) GetStatistics(context.Context, *wrapperspb.StringValue) (*GetStatisticsResponse, error)
func (UnimplementedExternalServiceServer) GetWorld ¶
func (UnimplementedExternalServiceServer) GetWorld(context.Context, *wrapperspb.StringValue) (*GetWorldResponse, error)
func (UnimplementedExternalServiceServer) IsArchievementUnlocked ¶
func (UnimplementedExternalServiceServer) IsArchievementUnlocked(context.Context, *wrapperspb.StringValue) (*wrapperspb.BoolValue, error)
func (UnimplementedExternalServiceServer) UnlockArchievement ¶
func (UnimplementedExternalServiceServer) UnlockArchievement(context.Context, *UnlockArchievementRequest) (*emptypb.Empty, error)
func (UnimplementedExternalServiceServer) UpdateAmmo ¶
func (UnimplementedExternalServiceServer) UpdateAmmo(context.Context, *Ammo) (*wrapperspb.BoolValue, error)
func (UnimplementedExternalServiceServer) UpdateElement ¶
func (UnimplementedExternalServiceServer) UpdateElement(context.Context, *Element) (*wrapperspb.BoolValue, error)
func (UnimplementedExternalServiceServer) UpdateMap ¶
func (UnimplementedExternalServiceServer) UpdateMap(context.Context, *Map) (*wrapperspb.BoolValue, error)
func (UnimplementedExternalServiceServer) UpdatePC ¶
func (UnimplementedExternalServiceServer) UpdatePC(context.Context, *PC) (*wrapperspb.BoolValue, error)
func (UnimplementedExternalServiceServer) UpdateWeapon ¶
func (UnimplementedExternalServiceServer) UpdateWeapon(context.Context, *Weapon) (*wrapperspb.BoolValue, error)
func (UnimplementedExternalServiceServer) UpdateWorld ¶
func (UnimplementedExternalServiceServer) UpdateWorld(context.Context, *World) (*wrapperspb.BoolValue, error)
type UnlockArchievementRequest ¶
type UnlockArchievementRequest struct { PcId string `protobuf:"bytes,1,opt,name=pcId,proto3" json:"pcId,omitempty"` Archievement Archievement `protobuf:"varint,2,opt,name=archievement,proto3,enum=Archievement" json:"archievement,omitempty"` // contains filtered or unexported fields }
func (*UnlockArchievementRequest) Descriptor
deprecated
func (*UnlockArchievementRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnlockArchievementRequest.ProtoReflect.Descriptor instead.
func (*UnlockArchievementRequest) GetArchievement ¶
func (x *UnlockArchievementRequest) GetArchievement() Archievement
func (*UnlockArchievementRequest) GetPcId ¶
func (x *UnlockArchievementRequest) GetPcId() string
func (*UnlockArchievementRequest) ProtoMessage ¶
func (*UnlockArchievementRequest) ProtoMessage()
func (*UnlockArchievementRequest) ProtoReflect ¶
func (x *UnlockArchievementRequest) ProtoReflect() protoreflect.Message
func (*UnlockArchievementRequest) Reset ¶
func (x *UnlockArchievementRequest) Reset()
func (*UnlockArchievementRequest) String ¶
func (x *UnlockArchievementRequest) String() string
type UnsafeExternalServiceServer ¶
type UnsafeExternalServiceServer interface {
// contains filtered or unexported methods
}
UnsafeExternalServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ExternalServiceServer will result in compilation errors.
type Weapon ¶
type Weapon struct { Base *Base `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Radius string `protobuf:"bytes,3,opt,name=radius,proto3" json:"radius,omitempty"` // contains filtered or unexported fields }
func (*Weapon) Descriptor
deprecated
func (*Weapon) ProtoMessage ¶
func (*Weapon) ProtoMessage()
func (*Weapon) ProtoReflect ¶
func (x *Weapon) ProtoReflect() protoreflect.Message
type World ¶
type World struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` GameSettings *GameSettings `protobuf:"bytes,2,opt,name=gameSettings,proto3" json:"gameSettings,omitempty"` // contains filtered or unexported fields }
func (*World) Descriptor
deprecated
func (*World) GetGameSettings ¶
func (x *World) GetGameSettings() *GameSettings
func (*World) ProtoMessage ¶
func (*World) ProtoMessage()
func (*World) ProtoReflect ¶
func (x *World) ProtoReflect() protoreflect.Message