Documentation ¶
Index ¶
- Variables
- type Command
- func (*Command) Descriptor() ([]byte, []int)
- func (this *Command) Equal(that interface{}) bool
- func (m *Command) GetEmpire() uint32
- func (m *Command) GetOrders() []*Command_Order
- func (this *Command) GoString() string
- func (m *Command) Marshal() (dAtA []byte, err error)
- func (m *Command) MarshalTo(dAtA []byte) (int, error)
- func (*Command) ProtoMessage()
- func (m *Command) Reset()
- func (m *Command) Size() (n int)
- func (this *Command) String() string
- func (m *Command) Unmarshal(dAtA []byte) error
- func (m *Command) XXX_DiscardUnknown()
- func (m *Command) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Command) XXX_Merge(src proto.Message)
- func (m *Command) XXX_Size() int
- func (m *Command) XXX_Unmarshal(b []byte) error
- type Command_Order
- func (*Command_Order) Descriptor() ([]byte, []int)
- func (this *Command_Order) Equal(that interface{}) bool
- func (m *Command_Order) GetMove() *MovementOrder
- func (m *Command_Order) GetOrder() isCommand_Order_Order
- func (this *Command_Order) GoString() string
- func (m *Command_Order) Marshal() (dAtA []byte, err error)
- func (m *Command_Order) MarshalTo(dAtA []byte) (int, error)
- func (*Command_Order) ProtoMessage()
- func (m *Command_Order) Reset()
- func (m *Command_Order) Size() (n int)
- func (this *Command_Order) String() string
- func (m *Command_Order) Unmarshal(dAtA []byte) error
- func (m *Command_Order) XXX_DiscardUnknown()
- func (m *Command_Order) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Command_Order) XXX_Merge(src proto.Message)
- func (*Command_Order) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *Command_Order) XXX_Size() int
- func (m *Command_Order) XXX_Unmarshal(b []byte) error
- type Command_Order_Move
- type Empire
- func (*Empire) Descriptor() ([]byte, []int)
- func (this *Empire) Equal(that interface{}) bool
- func (m *Empire) GetColor() string
- func (m *Empire) GetFleets() map[uint32]bool
- func (m *Empire) GetId() uint32
- func (m *Empire) GetPassive() bool
- func (m *Empire) GetPlanets() map[uint32]bool
- func (this *Empire) GoString() string
- func (m *Empire) Marshal() (dAtA []byte, err error)
- func (m *Empire) MarshalTo(dAtA []byte) (int, error)
- func (*Empire) ProtoMessage()
- func (m *Empire) Reset()
- func (m *Empire) Size() (n int)
- func (this *Empire) String() string
- func (m *Empire) Unmarshal(dAtA []byte) error
- func (m *Empire) XXX_DiscardUnknown()
- func (m *Empire) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Empire) XXX_Merge(src proto.Message)
- func (m *Empire) XXX_Size() int
- func (m *Empire) XXX_Unmarshal(b []byte) error
- type Fleet
- func (*Fleet) Descriptor() ([]byte, []int)
- func (this *Fleet) Equal(that interface{}) bool
- func (m *Fleet) GetEmpire() uint32
- func (m *Fleet) GetPosition() uint32
- func (m *Fleet) GetShips() map[uint32]uint64
- func (this *Fleet) GoString() string
- func (m *Fleet) Marshal() (dAtA []byte, err error)
- func (m *Fleet) MarshalTo(dAtA []byte) (int, error)
- func (*Fleet) ProtoMessage()
- func (m *Fleet) Reset()
- func (m *Fleet) Size() (n int)
- func (this *Fleet) String() string
- func (m *Fleet) Unmarshal(dAtA []byte) error
- func (m *Fleet) XXX_DiscardUnknown()
- func (m *Fleet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Fleet) XXX_Merge(src proto.Message)
- func (m *Fleet) XXX_Size() int
- func (m *Fleet) XXX_Unmarshal(b []byte) error
- type MovementOrder
- func (*MovementOrder) Descriptor() ([]byte, []int)
- func (this *MovementOrder) Equal(that interface{}) bool
- func (m *MovementOrder) GetDestination() uint32
- func (m *MovementOrder) GetShip() uint64
- func (m *MovementOrder) GetStart() uint32
- func (this *MovementOrder) GoString() string
- func (m *MovementOrder) Marshal() (dAtA []byte, err error)
- func (m *MovementOrder) MarshalTo(dAtA []byte) (int, error)
- func (*MovementOrder) ProtoMessage()
- func (m *MovementOrder) Reset()
- func (m *MovementOrder) Size() (n int)
- func (this *MovementOrder) String() string
- func (m *MovementOrder) Unmarshal(dAtA []byte) error
- func (m *MovementOrder) XXX_DiscardUnknown()
- func (m *MovementOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *MovementOrder) XXX_Merge(src proto.Message)
- func (m *MovementOrder) XXX_Size() int
- func (m *MovementOrder) XXX_Unmarshal(b []byte) error
- type Planet
- func (*Planet) Descriptor() ([]byte, []int)
- func (this *Planet) Equal(that interface{}) bool
- func (m *Planet) GetConnected() []uint32
- func (m *Planet) GetControl() float32
- func (m *Planet) GetEmpire() uint32
- func (m *Planet) GetFleets() []uint32
- func (m *Planet) GetId() uint32
- func (m *Planet) GetName() string
- func (m *Planet) GetPosX() uint32
- func (m *Planet) GetPosY() uint32
- func (m *Planet) GetProduction() float32
- func (this *Planet) GoString() string
- func (m *Planet) Marshal() (dAtA []byte, err error)
- func (m *Planet) MarshalTo(dAtA []byte) (int, error)
- func (*Planet) ProtoMessage()
- func (m *Planet) Reset()
- func (m *Planet) Size() (n int)
- func (this *Planet) String() string
- func (m *Planet) Unmarshal(dAtA []byte) error
- func (m *Planet) XXX_DiscardUnknown()
- func (m *Planet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Planet) XXX_Merge(src proto.Message)
- func (m *Planet) XXX_Size() int
- func (m *Planet) XXX_Unmarshal(b []byte) error
- type Space
- func (*Space) Descriptor() ([]byte, []int)
- func (this *Space) Equal(that interface{}) bool
- func (m *Space) GetEmpires() map[uint32]*Empire
- func (m *Space) GetFleets() map[uint32]*Fleet
- func (m *Space) GetHeight() uint32
- func (m *Space) GetPlanets() map[uint32]*Planet
- func (m *Space) GetRound() uint64
- func (m *Space) GetWidth() uint32
- func (this *Space) GoString() string
- func (m *Space) Marshal() (dAtA []byte, err error)
- func (m *Space) MarshalTo(dAtA []byte) (int, error)
- func (*Space) ProtoMessage()
- func (m *Space) Reset()
- func (m *Space) Size() (n int)
- func (this *Space) String() string
- func (m *Space) Unmarshal(dAtA []byte) error
- func (m *Space) XXX_DiscardUnknown()
- func (m *Space) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Space) XXX_Merge(src proto.Message)
- func (m *Space) XXX_Size() int
- func (m *Space) XXX_Unmarshal(b []byte) error
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) GetOrders ¶
func (m *Command) GetOrders() []*Command_Order
func (*Command) ProtoMessage ¶
func (*Command) ProtoMessage()
func (*Command) XXX_DiscardUnknown ¶
func (m *Command) XXX_DiscardUnknown()
func (*Command) XXX_Marshal ¶
func (*Command) XXX_Unmarshal ¶
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) 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) GetPassive ¶
func (*Empire) GetPlanets ¶
func (*Empire) ProtoMessage ¶
func (*Empire) ProtoMessage()
func (*Empire) XXX_DiscardUnknown ¶
func (m *Empire) XXX_DiscardUnknown()
func (*Empire) XXX_Marshal ¶
func (*Empire) XXX_Unmarshal ¶
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) GetPosition ¶
func (*Fleet) ProtoMessage ¶
func (*Fleet) ProtoMessage()
func (*Fleet) XXX_DiscardUnknown ¶
func (m *Fleet) XXX_DiscardUnknown()
func (*Fleet) XXX_Marshal ¶
func (*Fleet) XXX_Unmarshal ¶
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) 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) GetConnected ¶
func (*Planet) GetControl ¶
func (*Planet) GetProduction ¶
func (*Planet) ProtoMessage ¶
func (*Planet) ProtoMessage()
func (*Planet) XXX_DiscardUnknown ¶
func (m *Planet) XXX_DiscardUnknown()
func (*Planet) XXX_Marshal ¶
func (*Planet) XXX_Unmarshal ¶
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) GetEmpires ¶
func (*Space) GetPlanets ¶
func (*Space) ProtoMessage ¶
func (*Space) ProtoMessage()
func (*Space) XXX_DiscardUnknown ¶
func (m *Space) XXX_DiscardUnknown()
func (*Space) XXX_Marshal ¶
func (*Space) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.