encoding

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AbyssRecording_AbyssShipType_name = map[int32]string{
		0: "UNKNOWN_SHIP",
		1: "CRUISER",
		2: "DESTROYER",
		3: "FRIGATE",
	}
	AbyssRecording_AbyssShipType_value = map[string]int32{
		"UNKNOWN_SHIP": 0,
		"CRUISER":      1,
		"DESTROYER":    2,
		"FRIGATE":      3,
	}
)

Enum value maps for AbyssRecording_AbyssShipType.

View Source
var File_abyssfile_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AbyssRecording

type AbyssRecording struct {
	Overview                []byte                       `protobuf:"bytes,1,opt,name=overview,proto3" json:"overview,omitempty"`
	Loot                    []*LootRecord                `protobuf:"bytes,2,rep,name=loot,proto3" json:"loot,omitempty"`
	CombatLog               []*combatlog.CombatLogRecord `protobuf:"bytes,3,rep,name=combat_log,json=combatLog,proto3" json:"combat_log,omitempty"`
	TestServer              bool                         `protobuf:"varint,4,opt,name=test_server,json=testServer,proto3" json:"test_server,omitempty"`
	WeatherStrength         int32                        `protobuf:"varint,5,opt,name=weather_strength,json=weatherStrength,proto3" json:"weather_strength,omitempty"`
	LootRecordDiscriminator string                       `` /* 132-byte string literal not displayed */
	ManualAbyssTypeOverride bool                         `` /* 135-byte string literal not displayed */
	AbyssShipType           AbyssRecording_AbyssShipType `` /* 146-byte string literal not displayed */
	AbyssWheather           string                       `protobuf:"bytes,9,opt,name=abyss_wheather,json=abyssWheather,proto3" json:"abyss_wheather,omitempty"`
	AbyssTier               int32                        `protobuf:"varint,10,opt,name=abyss_tier,json=abyssTier,proto3" json:"abyss_tier,omitempty"`
	Fittings                map[string]*Fit              `` /* 158-byte string literal not displayed */
	RecorderVersion         string                       `protobuf:"bytes,99,opt,name=recorder_version,json=recorderVersion,proto3" json:"recorder_version,omitempty"`
	// contains filtered or unexported fields
}

func Decode

func Decode(r io.Reader) (*AbyssRecording, error)

Decode abyss file back into AbyssRecording struct

func (*AbyssRecording) Descriptor deprecated

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

Deprecated: Use AbyssRecording.ProtoReflect.Descriptor instead.

func (*AbyssRecording) Encode

func (rf *AbyssRecording) Encode(w io.Writer) error

Encode AbyssRecording into io.WriteCloser

func (*AbyssRecording) GetAbyssShipType

func (x *AbyssRecording) GetAbyssShipType() AbyssRecording_AbyssShipType

func (*AbyssRecording) GetAbyssTier

func (x *AbyssRecording) GetAbyssTier() int32

func (*AbyssRecording) GetAbyssWheather

func (x *AbyssRecording) GetAbyssWheather() string

func (*AbyssRecording) GetCombatLog

func (x *AbyssRecording) GetCombatLog() []*combatlog.CombatLogRecord

func (*AbyssRecording) GetFittings

func (x *AbyssRecording) GetFittings() map[string]*Fit

func (*AbyssRecording) GetLoot

func (x *AbyssRecording) GetLoot() []*LootRecord

func (*AbyssRecording) GetLootRecordDiscriminator

func (x *AbyssRecording) GetLootRecordDiscriminator() string

func (*AbyssRecording) GetManualAbyssTypeOverride

func (x *AbyssRecording) GetManualAbyssTypeOverride() bool

func (*AbyssRecording) GetOverview

func (x *AbyssRecording) GetOverview() []byte

func (*AbyssRecording) GetRecorderVersion

func (x *AbyssRecording) GetRecorderVersion() string

func (*AbyssRecording) GetTestServer

func (x *AbyssRecording) GetTestServer() bool

func (*AbyssRecording) GetWeatherStrength

func (x *AbyssRecording) GetWeatherStrength() int32

func (*AbyssRecording) ProtoMessage

func (*AbyssRecording) ProtoMessage()

func (*AbyssRecording) ProtoReflect

func (x *AbyssRecording) ProtoReflect() protoreflect.Message

func (*AbyssRecording) Reset

func (x *AbyssRecording) Reset()

func (*AbyssRecording) String

func (x *AbyssRecording) String() string

type AbyssRecording_AbyssShipType

type AbyssRecording_AbyssShipType int32
const (
	AbyssRecording_UNKNOWN_SHIP AbyssRecording_AbyssShipType = 0
	AbyssRecording_CRUISER      AbyssRecording_AbyssShipType = 1
	AbyssRecording_DESTROYER    AbyssRecording_AbyssShipType = 2
	AbyssRecording_FRIGATE      AbyssRecording_AbyssShipType = 3
)

func (AbyssRecording_AbyssShipType) Descriptor

func (AbyssRecording_AbyssShipType) Enum

func (AbyssRecording_AbyssShipType) EnumDescriptor deprecated

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

Deprecated: Use AbyssRecording_AbyssShipType.Descriptor instead.

func (AbyssRecording_AbyssShipType) Number

func (AbyssRecording_AbyssShipType) String

func (AbyssRecording_AbyssShipType) Type

type Fit

type Fit struct {
	Source      string  `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	ForeignID   *string `protobuf:"bytes,2,opt,name=foreignID,proto3,oneof" json:"foreignID,omitempty"`
	FittingName string  `protobuf:"bytes,3,opt,name=fittingName,proto3" json:"fittingName,omitempty"`
	EFT         string  `protobuf:"bytes,4,opt,name=EFT,proto3" json:"EFT,omitempty"`
	FFH         string  `protobuf:"bytes,5,opt,name=FFH,proto3" json:"FFH,omitempty"`
	Price       float64 `protobuf:"fixed64,6,opt,name=price,proto3" json:"price,omitempty"`
	ShipName    string  `protobuf:"bytes,7,opt,name=shipName,proto3" json:"shipName,omitempty"`
	ShipTypeID  int32   `protobuf:"varint,8,opt,name=shipTypeID,proto3" json:"shipTypeID,omitempty"`
	// contains filtered or unexported fields
}

func (*Fit) Descriptor deprecated

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

Deprecated: Use Fit.ProtoReflect.Descriptor instead.

func (*Fit) GetEFT

func (x *Fit) GetEFT() string

func (*Fit) GetFFH

func (x *Fit) GetFFH() string

func (*Fit) GetFittingName

func (x *Fit) GetFittingName() string

func (*Fit) GetForeignID

func (x *Fit) GetForeignID() string

func (*Fit) GetPrice

func (x *Fit) GetPrice() float64

func (*Fit) GetShipName

func (x *Fit) GetShipName() string

func (*Fit) GetShipTypeID

func (x *Fit) GetShipTypeID() int32

func (*Fit) GetSource

func (x *Fit) GetSource() string

func (*Fit) ProtoMessage

func (*Fit) ProtoMessage()

func (*Fit) ProtoReflect

func (x *Fit) ProtoReflect() protoreflect.Message

func (*Fit) Reset

func (x *Fit) Reset()

func (*Fit) String

func (x *Fit) String() string

type LootRecord

type LootRecord struct {
	Frame int32  `protobuf:"varint,1,opt,name=frame,proto3" json:"frame,omitempty"`
	Loot  string `protobuf:"bytes,2,opt,name=loot,proto3" json:"loot,omitempty"`
	// contains filtered or unexported fields
}

func (*LootRecord) Descriptor deprecated

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

Deprecated: Use LootRecord.ProtoReflect.Descriptor instead.

func (*LootRecord) GetFrame

func (x *LootRecord) GetFrame() int32

func (*LootRecord) GetLoot

func (x *LootRecord) GetLoot() string

func (*LootRecord) ProtoMessage

func (*LootRecord) ProtoMessage()

func (*LootRecord) ProtoReflect

func (x *LootRecord) ProtoReflect() protoreflect.Message

func (*LootRecord) Reset

func (x *LootRecord) Reset()

func (*LootRecord) String

func (x *LootRecord) String() string

Jump to

Keyboard shortcuts

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