Documentation
¶
Index ¶
- Variables
- type DecimalVector3
- func (*DecimalVector3) Descriptor() ([]byte, []int)
- func (m *DecimalVector3) GetX() string
- func (m *DecimalVector3) GetY() string
- func (m *DecimalVector3) GetZ() string
- func (*DecimalVector3) ProtoMessage()
- func (m *DecimalVector3) Reset()
- func (m *DecimalVector3) String() string
- func (m *DecimalVector3) XXX_DiscardUnknown()
- func (m *DecimalVector3) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DecimalVector3) XXX_Merge(src proto.Message)
- func (m *DecimalVector3) XXX_Size() int
- func (m *DecimalVector3) XXX_Unmarshal(b []byte) error
- type Move
- func (*Move) Descriptor() ([]byte, []int)
- func (m *Move) GetSpeed() *DecimalVector3
- func (m *Move) GetUid() uint64
- func (*Move) ProtoMessage()
- func (m *Move) Reset()
- func (m *Move) String() string
- func (m *Move) XXX_DiscardUnknown()
- func (m *Move) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Move) XXX_Merge(src proto.Message)
- func (m *Move) XXX_Size() int
- func (m *Move) XXX_Unmarshal(b []byte) error
- type S_War_Do
- func (*S_War_Do) Descriptor() ([]byte, []int)
- func (m *S_War_Do) GetAction() *any.Any
- func (m *S_War_Do) GetId() uint64
- func (*S_War_Do) ProtoMessage()
- func (m *S_War_Do) Reset()
- func (m *S_War_Do) String() string
- func (m *S_War_Do) XXX_DiscardUnknown()
- func (m *S_War_Do) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *S_War_Do) XXX_Merge(src proto.Message)
- func (m *S_War_Do) XXX_Size() int
- func (m *S_War_Do) XXX_Unmarshal(b []byte) error
- type S_War_Want
- func (*S_War_Want) Descriptor() ([]byte, []int)
- func (m *S_War_Want) GetType() War_Type
- func (*S_War_Want) ProtoMessage()
- func (m *S_War_Want) Reset()
- func (m *S_War_Want) String() string
- func (m *S_War_Want) XXX_DiscardUnknown()
- func (m *S_War_Want) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *S_War_Want) XXX_Merge(src proto.Message)
- func (m *S_War_Want) XXX_Size() int
- func (m *S_War_Want) XXX_Unmarshal(b []byte) error
- type Shoot
- func (*Shoot) Descriptor() ([]byte, []int)
- func (m *Shoot) GetPoint() *DecimalVector3
- func (m *Shoot) GetSuper() bool
- func (m *Shoot) GetUid() uint64
- func (*Shoot) ProtoMessage()
- func (m *Shoot) Reset()
- func (m *Shoot) String() string
- func (m *Shoot) XXX_DiscardUnknown()
- func (m *Shoot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Shoot) XXX_Merge(src proto.Message)
- func (m *Shoot) XXX_Size() int
- func (m *Shoot) XXX_Unmarshal(b []byte) error
- type Team
- func (*Team) Descriptor() ([]byte, []int)
- func (m *Team) GetRoles() []*proto1.Role
- func (*Team) ProtoMessage()
- func (m *Team) Reset()
- func (m *Team) String() string
- func (m *Team) XXX_DiscardUnknown()
- func (m *Team) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Team) XXX_Merge(src proto.Message)
- func (m *Team) XXX_Size() int
- func (m *Team) XXX_Unmarshal(b []byte) error
- type Tick
- func (*Tick) Descriptor() ([]byte, []int)
- func (m *Tick) GetActions() []*any.Any
- func (m *Tick) GetIndex() int32
- func (*Tick) ProtoMessage()
- func (m *Tick) Reset()
- func (m *Tick) String() string
- func (m *Tick) XXX_DiscardUnknown()
- func (m *Tick) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Tick) XXX_Merge(src proto.Message)
- func (m *Tick) XXX_Size() int
- func (m *Tick) XXX_Unmarshal(b []byte) error
- type War_Match
- func (*War_Match) Descriptor() ([]byte, []int)
- func (m *War_Match) GetId() uint64
- func (m *War_Match) GetLeague() []*Team
- func (m *War_Match) GetMapId() int32
- func (*War_Match) ProtoMessage()
- func (m *War_Match) Reset()
- func (m *War_Match) String() string
- func (m *War_Match) XXX_DiscardUnknown()
- func (m *War_Match) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *War_Match) XXX_Merge(src proto.Message)
- func (m *War_Match) XXX_Size() int
- func (m *War_Match) XXX_Unmarshal(b []byte) error
- type War_Type
Constants ¶
This section is empty.
Variables ¶
View Source
var War_Type_name = map[int32]string{
0: "NIL",
1: "SOCCER",
2: "ONEWINNER",
3: "TEAMWINNER",
4: "HUNTING",
}
View Source
var War_Type_value = map[string]int32{
"NIL": 0,
"SOCCER": 1,
"ONEWINNER": 2,
"TEAMWINNER": 3,
"HUNTING": 4,
}
Functions ¶
This section is empty.
Types ¶
type DecimalVector3 ¶
type DecimalVector3 struct { X string `protobuf:"bytes,1,opt,name=x,proto3" json:"x,omitempty"` Y string `protobuf:"bytes,2,opt,name=y,proto3" json:"y,omitempty"` Z string `protobuf:"bytes,3,opt,name=z,proto3" json:"z,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
DecimalVector3 向量数据结构
func (*DecimalVector3) Descriptor ¶
func (*DecimalVector3) Descriptor() ([]byte, []int)
func (*DecimalVector3) GetX ¶
func (m *DecimalVector3) GetX() string
func (*DecimalVector3) GetY ¶
func (m *DecimalVector3) GetY() string
func (*DecimalVector3) GetZ ¶
func (m *DecimalVector3) GetZ() string
func (*DecimalVector3) ProtoMessage ¶
func (*DecimalVector3) ProtoMessage()
func (*DecimalVector3) Reset ¶
func (m *DecimalVector3) Reset()
func (*DecimalVector3) String ¶
func (m *DecimalVector3) String() string
func (*DecimalVector3) XXX_DiscardUnknown ¶
func (m *DecimalVector3) XXX_DiscardUnknown()
func (*DecimalVector3) XXX_Marshal ¶
func (m *DecimalVector3) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DecimalVector3) XXX_Merge ¶
func (m *DecimalVector3) XXX_Merge(src proto.Message)
func (*DecimalVector3) XXX_Size ¶
func (m *DecimalVector3) XXX_Size() int
func (*DecimalVector3) XXX_Unmarshal ¶
func (m *DecimalVector3) XXX_Unmarshal(b []byte) error
type Move ¶
type Move struct { Uid uint64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` Speed *DecimalVector3 `protobuf:"bytes,2,opt,name=speed,proto3" json:"speed,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Move 移动操作,记录当前tick中移动属性
func (*Move) Descriptor ¶
func (*Move) GetSpeed ¶
func (m *Move) GetSpeed() *DecimalVector3
func (*Move) ProtoMessage ¶
func (*Move) ProtoMessage()
func (*Move) XXX_DiscardUnknown ¶
func (m *Move) XXX_DiscardUnknown()
func (*Move) XXX_Unmarshal ¶
type S_War_Do ¶
type S_War_Do struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Action *any.Any `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
S_War_Do 执行操作
func (*S_War_Do) Descriptor ¶
func (*S_War_Do) ProtoMessage ¶
func (*S_War_Do) ProtoMessage()
func (*S_War_Do) XXX_DiscardUnknown ¶
func (m *S_War_Do) XXX_DiscardUnknown()
func (*S_War_Do) XXX_Marshal ¶
func (*S_War_Do) XXX_Unmarshal ¶
type S_War_Want ¶
type S_War_Want struct { Type War_Type `protobuf:"varint,1,opt,name=type,proto3,enum=war_pb.War_Type" json:"type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
S_War_Want 想要战斗
func (*S_War_Want) Descriptor ¶
func (*S_War_Want) Descriptor() ([]byte, []int)
func (*S_War_Want) GetType ¶
func (m *S_War_Want) GetType() War_Type
func (*S_War_Want) ProtoMessage ¶
func (*S_War_Want) ProtoMessage()
func (*S_War_Want) Reset ¶
func (m *S_War_Want) Reset()
func (*S_War_Want) String ¶
func (m *S_War_Want) String() string
func (*S_War_Want) XXX_DiscardUnknown ¶
func (m *S_War_Want) XXX_DiscardUnknown()
func (*S_War_Want) XXX_Marshal ¶
func (m *S_War_Want) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*S_War_Want) XXX_Merge ¶
func (m *S_War_Want) XXX_Merge(src proto.Message)
func (*S_War_Want) XXX_Size ¶
func (m *S_War_Want) XXX_Size() int
func (*S_War_Want) XXX_Unmarshal ¶
func (m *S_War_Want) XXX_Unmarshal(b []byte) error
type Shoot ¶
type Shoot struct { Uid uint64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` Super bool `protobuf:"varint,2,opt,name=super,proto3" json:"super,omitempty"` Point *DecimalVector3 `protobuf:"bytes,3,opt,name=point,proto3" json:"point,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Shoot 射击操作
func (*Shoot) Descriptor ¶
func (*Shoot) GetPoint ¶
func (m *Shoot) GetPoint() *DecimalVector3
func (*Shoot) ProtoMessage ¶
func (*Shoot) ProtoMessage()
func (*Shoot) XXX_DiscardUnknown ¶
func (m *Shoot) XXX_DiscardUnknown()
func (*Shoot) XXX_Marshal ¶
func (*Shoot) XXX_Unmarshal ¶
type Team ¶
type Team struct { Roles []*proto1.Role `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Team) Descriptor ¶
func (*Team) ProtoMessage ¶
func (*Team) ProtoMessage()
func (*Team) XXX_DiscardUnknown ¶
func (m *Team) XXX_DiscardUnknown()
func (*Team) XXX_Unmarshal ¶
type Tick ¶
type Tick struct { Index int32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` Actions []*any.Any `protobuf:"bytes,2,rep,name=actions,proto3" json:"actions,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Tick 服务器定期下发,用于同步表现
func (*Tick) Descriptor ¶
func (*Tick) GetActions ¶
func (*Tick) ProtoMessage ¶
func (*Tick) ProtoMessage()
func (*Tick) XXX_DiscardUnknown ¶
func (m *Tick) XXX_DiscardUnknown()
func (*Tick) XXX_Unmarshal ¶
type War_Match ¶
type War_Match struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` MapId int32 `protobuf:"varint,2,opt,name=mapId,proto3" json:"mapId,omitempty"` League []*Team `protobuf:"bytes,3,rep,name=league,proto3" json:"league,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*War_Match) Descriptor ¶
func (*War_Match) ProtoMessage ¶
func (*War_Match) ProtoMessage()
func (*War_Match) XXX_DiscardUnknown ¶
func (m *War_Match) XXX_DiscardUnknown()
func (*War_Match) XXX_Marshal ¶
func (*War_Match) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.