This commit is contained in:
Ilia Denisov
2026-03-30 19:41:04 +02:00
parent a7793f5416
commit 92889b81ab
9 changed files with 0 additions and 609 deletions
@@ -1,75 +0,0 @@
// Code generated by the FlatBuffers compiler. DO NOT EDIT.
package order
import (
flatbuffers "github.com/google/flatbuffers/go"
)
type CommandRaceRelation struct {
_tab flatbuffers.Table
}
func GetRootAsCommandRaceRelation(buf []byte, offset flatbuffers.UOffsetT) *CommandRaceRelation {
n := flatbuffers.GetUOffsetT(buf[offset:])
x := &CommandRaceRelation{}
x.Init(buf, n+offset)
return x
}
func FinishCommandRaceRelationBuffer(builder *flatbuffers.Builder, offset flatbuffers.UOffsetT) {
builder.Finish(offset)
}
func GetSizePrefixedRootAsCommandRaceRelation(buf []byte, offset flatbuffers.UOffsetT) *CommandRaceRelation {
n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:])
x := &CommandRaceRelation{}
x.Init(buf, n+offset+flatbuffers.SizeUint32)
return x
}
func FinishSizePrefixedCommandRaceRelationBuffer(builder *flatbuffers.Builder, offset flatbuffers.UOffsetT) {
builder.FinishSizePrefixed(offset)
}
func (rcv *CommandRaceRelation) Init(buf []byte, i flatbuffers.UOffsetT) {
rcv._tab.Bytes = buf
rcv._tab.Pos = i
}
func (rcv *CommandRaceRelation) Table() flatbuffers.Table {
return rcv._tab
}
func (rcv *CommandRaceRelation) Relation() Relation {
o := flatbuffers.UOffsetT(rcv._tab.Offset(4))
if o != 0 {
return Relation(rcv._tab.GetInt8(o + rcv._tab.Pos))
}
return 0
}
func (rcv *CommandRaceRelation) MutateRelation(n Relation) bool {
return rcv._tab.MutateInt8Slot(4, int8(n))
}
func (rcv *CommandRaceRelation) For() []byte {
o := flatbuffers.UOffsetT(rcv._tab.Offset(6))
if o != 0 {
return rcv._tab.ByteVector(o + rcv._tab.Pos)
}
return nil
}
func CommandRaceRelationStart(builder *flatbuffers.Builder) {
builder.StartObject(2)
}
func CommandRaceRelationAddRelation(builder *flatbuffers.Builder, relation Relation) {
builder.PrependInt8Slot(0, int8(relation), 0)
}
func CommandRaceRelationAddFor(builder *flatbuffers.Builder, for_ flatbuffers.UOffsetT) {
builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(for_), 0)
}
func CommandRaceRelationEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT {
return builder.EndObject()
}