war_pb

package
v0.0.0-...-b414419 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*Move) GetSpeed

func (m *Move) GetSpeed() *DecimalVector3

func (*Move) GetUid

func (m *Move) GetUid() uint64

func (*Move) ProtoMessage

func (*Move) ProtoMessage()

func (*Move) Reset

func (m *Move) Reset()

func (*Move) String

func (m *Move) String() string

func (*Move) XXX_DiscardUnknown

func (m *Move) XXX_DiscardUnknown()

func (*Move) XXX_Marshal

func (m *Move) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Move) XXX_Merge

func (m *Move) XXX_Merge(src proto.Message)

func (*Move) XXX_Size

func (m *Move) XXX_Size() int

func (*Move) XXX_Unmarshal

func (m *Move) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*S_War_Do) GetAction

func (m *S_War_Do) GetAction() *any.Any

func (*S_War_Do) GetId

func (m *S_War_Do) GetId() uint64

func (*S_War_Do) ProtoMessage

func (*S_War_Do) ProtoMessage()

func (*S_War_Do) Reset

func (m *S_War_Do) Reset()

func (*S_War_Do) String

func (m *S_War_Do) String() string

func (*S_War_Do) XXX_DiscardUnknown

func (m *S_War_Do) XXX_DiscardUnknown()

func (*S_War_Do) XXX_Marshal

func (m *S_War_Do) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*S_War_Do) XXX_Merge

func (m *S_War_Do) XXX_Merge(src proto.Message)

func (*S_War_Do) XXX_Size

func (m *S_War_Do) XXX_Size() int

func (*S_War_Do) XXX_Unmarshal

func (m *S_War_Do) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Shoot) GetPoint

func (m *Shoot) GetPoint() *DecimalVector3

func (*Shoot) GetSuper

func (m *Shoot) GetSuper() bool

func (*Shoot) GetUid

func (m *Shoot) GetUid() uint64

func (*Shoot) ProtoMessage

func (*Shoot) ProtoMessage()

func (*Shoot) Reset

func (m *Shoot) Reset()

func (*Shoot) String

func (m *Shoot) String() string

func (*Shoot) XXX_DiscardUnknown

func (m *Shoot) XXX_DiscardUnknown()

func (*Shoot) XXX_Marshal

func (m *Shoot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Shoot) XXX_Merge

func (m *Shoot) XXX_Merge(src proto.Message)

func (*Shoot) XXX_Size

func (m *Shoot) XXX_Size() int

func (*Shoot) XXX_Unmarshal

func (m *Shoot) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Team) GetRoles

func (m *Team) GetRoles() []*proto1.Role

func (*Team) ProtoMessage

func (*Team) ProtoMessage()

func (*Team) Reset

func (m *Team) Reset()

func (*Team) String

func (m *Team) String() string

func (*Team) XXX_DiscardUnknown

func (m *Team) XXX_DiscardUnknown()

func (*Team) XXX_Marshal

func (m *Team) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Team) XXX_Merge

func (m *Team) XXX_Merge(src proto.Message)

func (*Team) XXX_Size

func (m *Team) XXX_Size() int

func (*Team) XXX_Unmarshal

func (m *Team) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Tick) GetActions

func (m *Tick) GetActions() []*any.Any

func (*Tick) GetIndex

func (m *Tick) GetIndex() int32

func (*Tick) ProtoMessage

func (*Tick) ProtoMessage()

func (*Tick) Reset

func (m *Tick) Reset()

func (*Tick) String

func (m *Tick) String() string

func (*Tick) XXX_DiscardUnknown

func (m *Tick) XXX_DiscardUnknown()

func (*Tick) XXX_Marshal

func (m *Tick) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Tick) XXX_Merge

func (m *Tick) XXX_Merge(src proto.Message)

func (*Tick) XXX_Size

func (m *Tick) XXX_Size() int

func (*Tick) XXX_Unmarshal

func (m *Tick) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*War_Match) GetId

func (m *War_Match) GetId() uint64

func (*War_Match) GetLeague

func (m *War_Match) GetLeague() []*Team

func (*War_Match) GetMapId

func (m *War_Match) GetMapId() int32

func (*War_Match) ProtoMessage

func (*War_Match) ProtoMessage()

func (*War_Match) Reset

func (m *War_Match) Reset()

func (*War_Match) String

func (m *War_Match) String() string

func (*War_Match) XXX_DiscardUnknown

func (m *War_Match) XXX_DiscardUnknown()

func (*War_Match) XXX_Marshal

func (m *War_Match) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*War_Match) XXX_Merge

func (m *War_Match) XXX_Merge(src proto.Message)

func (*War_Match) XXX_Size

func (m *War_Match) XXX_Size() int

func (*War_Match) XXX_Unmarshal

func (m *War_Match) XXX_Unmarshal(b []byte) error

type War_Type

type War_Type int32
const (
	War_Type_NIL        War_Type = 0
	War_Type_SOCCER     War_Type = 1
	War_Type_ONEWINNER  War_Type = 2
	War_Type_TEAMWINNER War_Type = 3
	War_Type_HUNTING    War_Type = 4
)

func (War_Type) EnumDescriptor

func (War_Type) EnumDescriptor() ([]byte, []int)

func (War_Type) String

func (x War_Type) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL