riseandfall

package
v0.0.0-...-c313fba Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthCommand = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCommand   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	ErrInvalidLengthSpace = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSpace   = fmt.Errorf("proto: integer overflow")
)

Functions

This section is empty.

Types

type Command

type Command struct {
	Empire               uint32           `protobuf:"varint,1,opt,name=empire,proto3" json:"empire,omitempty"`
	Orders               []*Command_Order `protobuf:"bytes,2,rep,name=orders" json:"orders,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*Command) Descriptor

func (*Command) Descriptor() ([]byte, []int)

func (*Command) Equal

func (this *Command) Equal(that interface{}) bool

func (*Command) GetEmpire

func (m *Command) GetEmpire() uint32

func (*Command) GetOrders

func (m *Command) GetOrders() []*Command_Order

func (*Command) GoString

func (this *Command) GoString() string

func (*Command) Marshal

func (m *Command) Marshal() (dAtA []byte, err error)

func (*Command) MarshalTo

func (m *Command) MarshalTo(dAtA []byte) (int, error)

func (*Command) ProtoMessage

func (*Command) ProtoMessage()

func (*Command) Reset

func (m *Command) Reset()

func (*Command) Size

func (m *Command) Size() (n int)

func (*Command) String

func (this *Command) String() string

func (*Command) Unmarshal

func (m *Command) Unmarshal(dAtA []byte) error

func (*Command) XXX_DiscardUnknown

func (m *Command) XXX_DiscardUnknown()

func (*Command) XXX_Marshal

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

func (*Command) XXX_Merge

func (dst *Command) XXX_Merge(src proto.Message)

func (*Command) XXX_Size

func (m *Command) XXX_Size() int

func (*Command) XXX_Unmarshal

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

type Command_Order

type Command_Order struct {
	// Types that are valid to be assigned to Order:
	//	*Command_Order_Move
	Order                isCommand_Order_Order `protobuf_oneof:"order"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

func (*Command_Order) Descriptor

func (*Command_Order) Descriptor() ([]byte, []int)

func (*Command_Order) Equal

func (this *Command_Order) Equal(that interface{}) bool

func (*Command_Order) GetMove

func (m *Command_Order) GetMove() *MovementOrder

func (*Command_Order) GetOrder

func (m *Command_Order) GetOrder() isCommand_Order_Order

func (*Command_Order) GoString

func (this *Command_Order) GoString() string

func (*Command_Order) Marshal

func (m *Command_Order) Marshal() (dAtA []byte, err error)

func (*Command_Order) MarshalTo

func (m *Command_Order) MarshalTo(dAtA []byte) (int, error)

func (*Command_Order) ProtoMessage

func (*Command_Order) ProtoMessage()

func (*Command_Order) Reset

func (m *Command_Order) Reset()

func (*Command_Order) Size

func (m *Command_Order) Size() (n int)

func (*Command_Order) String

func (this *Command_Order) String() string

func (*Command_Order) Unmarshal

func (m *Command_Order) Unmarshal(dAtA []byte) error

func (*Command_Order) XXX_DiscardUnknown

func (m *Command_Order) XXX_DiscardUnknown()

func (*Command_Order) XXX_Marshal

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

func (*Command_Order) XXX_Merge

func (dst *Command_Order) XXX_Merge(src proto.Message)

func (*Command_Order) XXX_OneofFuncs

func (*Command_Order) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*Command_Order) XXX_Size

func (m *Command_Order) XXX_Size() int

func (*Command_Order) XXX_Unmarshal

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

type Command_Order_Move

type Command_Order_Move struct {
	Move *MovementOrder `protobuf:"bytes,3,opt,name=move,oneof"`
}

func (*Command_Order_Move) Equal

func (this *Command_Order_Move) Equal(that interface{}) bool

func (*Command_Order_Move) GoString

func (this *Command_Order_Move) GoString() string

func (*Command_Order_Move) MarshalTo

func (m *Command_Order_Move) MarshalTo(dAtA []byte) (int, error)

func (*Command_Order_Move) Size

func (m *Command_Order_Move) Size() (n int)

func (*Command_Order_Move) String

func (this *Command_Order_Move) String() string

type Empire

type Empire struct {
	Id                   uint32          `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Passive              bool            `protobuf:"varint,2,opt,name=passive,proto3" json:"passive,omitempty"`
	Planets              map[uint32]bool `` /* 150-byte string literal not displayed */
	Fleets               map[uint32]bool `` /* 148-byte string literal not displayed */
	Color                string          `protobuf:"bytes,5,opt,name=color,proto3" json:"color,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*Empire) Descriptor

func (*Empire) Descriptor() ([]byte, []int)

func (*Empire) Equal

func (this *Empire) Equal(that interface{}) bool

func (*Empire) GetColor

func (m *Empire) GetColor() string

func (*Empire) GetFleets

func (m *Empire) GetFleets() map[uint32]bool

func (*Empire) GetId

func (m *Empire) GetId() uint32

func (*Empire) GetPassive

func (m *Empire) GetPassive() bool

func (*Empire) GetPlanets

func (m *Empire) GetPlanets() map[uint32]bool

func (*Empire) GoString

func (this *Empire) GoString() string

func (*Empire) Marshal

func (m *Empire) Marshal() (dAtA []byte, err error)

func (*Empire) MarshalTo

func (m *Empire) MarshalTo(dAtA []byte) (int, error)

func (*Empire) ProtoMessage

func (*Empire) ProtoMessage()

func (*Empire) Reset

func (m *Empire) Reset()

func (*Empire) Size

func (m *Empire) Size() (n int)

func (*Empire) String

func (this *Empire) String() string

func (*Empire) Unmarshal

func (m *Empire) Unmarshal(dAtA []byte) error

func (*Empire) XXX_DiscardUnknown

func (m *Empire) XXX_DiscardUnknown()

func (*Empire) XXX_Marshal

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

func (*Empire) XXX_Merge

func (dst *Empire) XXX_Merge(src proto.Message)

func (*Empire) XXX_Size

func (m *Empire) XXX_Size() int

func (*Empire) XXX_Unmarshal

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

type Fleet

type Fleet struct {
	Empire uint32 `protobuf:"varint,1,opt,name=empire,proto3" json:"empire,omitempty"`
	// cannot use enum as map key
	// 1 ligth 2 heavy 3 ranged
	Ships                map[uint32]uint64 `` /* 146-byte string literal not displayed */
	Position             uint32            `protobuf:"varint,3,opt,name=position,proto3" json:"position,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*Fleet) Descriptor

func (*Fleet) Descriptor() ([]byte, []int)

func (*Fleet) Equal

func (this *Fleet) Equal(that interface{}) bool

func (*Fleet) GetEmpire

func (m *Fleet) GetEmpire() uint32

func (*Fleet) GetPosition

func (m *Fleet) GetPosition() uint32

func (*Fleet) GetShips

func (m *Fleet) GetShips() map[uint32]uint64

func (*Fleet) GoString

func (this *Fleet) GoString() string

func (*Fleet) Marshal

func (m *Fleet) Marshal() (dAtA []byte, err error)

func (*Fleet) MarshalTo

func (m *Fleet) MarshalTo(dAtA []byte) (int, error)

func (*Fleet) ProtoMessage

func (*Fleet) ProtoMessage()

func (*Fleet) Reset

func (m *Fleet) Reset()

func (*Fleet) Size

func (m *Fleet) Size() (n int)

func (*Fleet) String

func (this *Fleet) String() string

func (*Fleet) Unmarshal

func (m *Fleet) Unmarshal(dAtA []byte) error

func (*Fleet) XXX_DiscardUnknown

func (m *Fleet) XXX_DiscardUnknown()

func (*Fleet) XXX_Marshal

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

func (*Fleet) XXX_Merge

func (dst *Fleet) XXX_Merge(src proto.Message)

func (*Fleet) XXX_Size

func (m *Fleet) XXX_Size() int

func (*Fleet) XXX_Unmarshal

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

type MovementOrder

type MovementOrder struct {
	Ship                 uint64   `protobuf:"varint,1,opt,name=ship,proto3" json:"ship,omitempty"`
	Start                uint32   `protobuf:"varint,2,opt,name=start,proto3" json:"start,omitempty"`
	Destination          uint32   `protobuf:"varint,3,opt,name=destination,proto3" json:"destination,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MovementOrder) Descriptor

func (*MovementOrder) Descriptor() ([]byte, []int)

func (*MovementOrder) Equal

func (this *MovementOrder) Equal(that interface{}) bool

func (*MovementOrder) GetDestination

func (m *MovementOrder) GetDestination() uint32

func (*MovementOrder) GetShip

func (m *MovementOrder) GetShip() uint64

func (*MovementOrder) GetStart

func (m *MovementOrder) GetStart() uint32

func (*MovementOrder) GoString

func (this *MovementOrder) GoString() string

func (*MovementOrder) Marshal

func (m *MovementOrder) Marshal() (dAtA []byte, err error)

func (*MovementOrder) MarshalTo

func (m *MovementOrder) MarshalTo(dAtA []byte) (int, error)

func (*MovementOrder) ProtoMessage

func (*MovementOrder) ProtoMessage()

func (*MovementOrder) Reset

func (m *MovementOrder) Reset()

func (*MovementOrder) Size

func (m *MovementOrder) Size() (n int)

func (*MovementOrder) String

func (this *MovementOrder) String() string

func (*MovementOrder) Unmarshal

func (m *MovementOrder) Unmarshal(dAtA []byte) error

func (*MovementOrder) XXX_DiscardUnknown

func (m *MovementOrder) XXX_DiscardUnknown()

func (*MovementOrder) XXX_Marshal

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

func (*MovementOrder) XXX_Merge

func (dst *MovementOrder) XXX_Merge(src proto.Message)

func (*MovementOrder) XXX_Size

func (m *MovementOrder) XXX_Size() int

func (*MovementOrder) XXX_Unmarshal

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

type Planet

type Planet struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Id   uint32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	PosX uint32 `protobuf:"varint,3,opt,name=pos_x,json=posX,proto3" json:"pos_x,omitempty"`
	PosY uint32 `protobuf:"varint,4,opt,name=pos_y,json=posY,proto3" json:"pos_y,omitempty"`
	// fleetid
	Fleets               []uint32 `protobuf:"varint,5,rep,packed,name=fleets" json:"fleets,omitempty"`
	Control              float32  `protobuf:"fixed32,6,opt,name=control,proto3" json:"control,omitempty"`
	Empire               uint32   `protobuf:"varint,7,opt,name=empire,proto3" json:"empire,omitempty"`
	Connected            []uint32 `protobuf:"varint,8,rep,packed,name=connected" json:"connected,omitempty"`
	Production           float32  `protobuf:"fixed32,9,opt,name=production,proto3" json:"production,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Planet) Descriptor

func (*Planet) Descriptor() ([]byte, []int)

func (*Planet) Equal

func (this *Planet) Equal(that interface{}) bool

func (*Planet) GetConnected

func (m *Planet) GetConnected() []uint32

func (*Planet) GetControl

func (m *Planet) GetControl() float32

func (*Planet) GetEmpire

func (m *Planet) GetEmpire() uint32

func (*Planet) GetFleets

func (m *Planet) GetFleets() []uint32

func (*Planet) GetId

func (m *Planet) GetId() uint32

func (*Planet) GetName

func (m *Planet) GetName() string

func (*Planet) GetPosX

func (m *Planet) GetPosX() uint32

func (*Planet) GetPosY

func (m *Planet) GetPosY() uint32

func (*Planet) GetProduction

func (m *Planet) GetProduction() float32

func (*Planet) GoString

func (this *Planet) GoString() string

func (*Planet) Marshal

func (m *Planet) Marshal() (dAtA []byte, err error)

func (*Planet) MarshalTo

func (m *Planet) MarshalTo(dAtA []byte) (int, error)

func (*Planet) ProtoMessage

func (*Planet) ProtoMessage()

func (*Planet) Reset

func (m *Planet) Reset()

func (*Planet) Size

func (m *Planet) Size() (n int)

func (*Planet) String

func (this *Planet) String() string

func (*Planet) Unmarshal

func (m *Planet) Unmarshal(dAtA []byte) error

func (*Planet) XXX_DiscardUnknown

func (m *Planet) XXX_DiscardUnknown()

func (*Planet) XXX_Marshal

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

func (*Planet) XXX_Merge

func (dst *Planet) XXX_Merge(src proto.Message)

func (*Planet) XXX_Size

func (m *Planet) XXX_Size() int

func (*Planet) XXX_Unmarshal

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

type Space

type Space struct {
	Planets              map[uint32]*Planet `` /* 142-byte string literal not displayed */
	Fleets               map[uint32]*Fleet  `` /* 140-byte string literal not displayed */
	Empires              map[uint32]*Empire `` /* 142-byte string literal not displayed */
	Width                uint32             `protobuf:"varint,4,opt,name=width,proto3" json:"width,omitempty"`
	Height               uint32             `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"`
	Round                uint64             `protobuf:"varint,6,opt,name=round,proto3" json:"round,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

func (*Space) Descriptor

func (*Space) Descriptor() ([]byte, []int)

func (*Space) Equal

func (this *Space) Equal(that interface{}) bool

func (*Space) GetEmpires

func (m *Space) GetEmpires() map[uint32]*Empire

func (*Space) GetFleets

func (m *Space) GetFleets() map[uint32]*Fleet

func (*Space) GetHeight

func (m *Space) GetHeight() uint32

func (*Space) GetPlanets

func (m *Space) GetPlanets() map[uint32]*Planet

func (*Space) GetRound

func (m *Space) GetRound() uint64

func (*Space) GetWidth

func (m *Space) GetWidth() uint32

func (*Space) GoString

func (this *Space) GoString() string

func (*Space) Marshal

func (m *Space) Marshal() (dAtA []byte, err error)

func (*Space) MarshalTo

func (m *Space) MarshalTo(dAtA []byte) (int, error)

func (*Space) ProtoMessage

func (*Space) ProtoMessage()

func (*Space) Reset

func (m *Space) Reset()

func (*Space) Size

func (m *Space) Size() (n int)

func (*Space) String

func (this *Space) String() string

func (*Space) Unmarshal

func (m *Space) Unmarshal(dAtA []byte) error

func (*Space) XXX_DiscardUnknown

func (m *Space) XXX_DiscardUnknown()

func (*Space) XXX_Marshal

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

func (*Space) XXX_Merge

func (dst *Space) XXX_Merge(src proto.Message)

func (*Space) XXX_Size

func (m *Space) XXX_Size() int

func (*Space) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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