diff --git a/csminify.go b/csminify.go index 393b3c4..f54bf71 100644 --- a/csminify.go +++ b/csminify.go @@ -164,7 +164,7 @@ func (m *minifier) tickDone(e events.TickDone) { } func r3VectorToPoint(v r3.Vector) rep.Point { - return rep.Point{X: int(v.X), Y: int(v.Y)} + return rep.Point{X: int(v.X), Y: int(v.Y), Z: int(v.Z)} } // roundTo wraps math.Round and allows specifying the rounding precision. diff --git a/protobuf/gen/proto/replay.proto b/protobuf/gen/proto/replay.proto index e6ed89a..fe33a5c 100644 --- a/protobuf/gen/proto/replay.proto +++ b/protobuf/gen/proto/replay.proto @@ -12,6 +12,7 @@ enum Team { message Point { int32 x = 1; int32 y = 2; + int32 z = 3; } message Replay { diff --git a/protobuf/gen/replay.pb.go b/protobuf/gen/replay.pb.go index 14c324d..2b11f5a 100644 --- a/protobuf/gen/replay.pb.go +++ b/protobuf/gen/replay.pb.go @@ -3,13 +3,13 @@ package gen -import proto "github.com/gogo/protobuf/proto" -import fmt "fmt" -import math "math" - -import encoding_binary "encoding/binary" - -import io "io" +import ( + encoding_binary "encoding/binary" + fmt "fmt" + proto "github.com/gogo/protobuf/proto" + io "io" + math "math" +) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal @@ -37,6 +37,7 @@ var Team_name = map[int32]string{ 2: "COUNTER_TERRORIST", 3: "SPECTATOR", } + var Team_value = map[string]int32{ "UNASSIGNED": 0, "TERRORIST": 1, @@ -47,8 +48,9 @@ var Team_value = map[string]int32{ func (x Team) String() string { return proto.EnumName(Team_name, int32(x)) } + func (Team) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_replay_1ae4eb0f1325df1c, []int{0} + return fileDescriptor_eed9461330ccfc03, []int{0} } type Replay_Tick_Event_Kind int32 @@ -78,6 +80,7 @@ var Replay_Tick_Event_Kind_name = map[int32]string{ 8: "CHAT_MESSAGE", 9: "CUSTOM", } + var Replay_Tick_Event_Kind_value = map[string]int32{ "JUMP": 0, "FIRE": 1, @@ -94,8 +97,9 @@ var Replay_Tick_Event_Kind_value = map[string]int32{ func (x Replay_Tick_Event_Kind) String() string { return proto.EnumName(Replay_Tick_Event_Kind_name, int32(x)) } + func (Replay_Tick_Event_Kind) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_replay_1ae4eb0f1325df1c, []int{1, 3, 0, 0} + return fileDescriptor_eed9461330ccfc03, []int{1, 3, 0, 0} } type Replay_Tick_Event_Attribute_Kind int32 @@ -119,6 +123,7 @@ var Replay_Tick_Event_Attribute_Kind_name = map[int32]string{ 5: "EVENT_NAME", 6: "CUSTOM", } + var Replay_Tick_Event_Attribute_Kind_value = map[string]int32{ "ENTITY_ID": 0, "VICTIM": 1, @@ -132,20 +137,22 @@ var Replay_Tick_Event_Attribute_Kind_value = map[string]int32{ func (x Replay_Tick_Event_Attribute_Kind) String() string { return proto.EnumName(Replay_Tick_Event_Attribute_Kind_name, int32(x)) } + func (Replay_Tick_Event_Attribute_Kind) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_replay_1ae4eb0f1325df1c, []int{1, 3, 0, 0, 0} + return fileDescriptor_eed9461330ccfc03, []int{1, 3, 0, 0, 0} } type Point struct { X int32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"` Y int32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"` + Z int32 `protobuf:"varint,3,opt,name=z,proto3" json:"z,omitempty"` } func (m *Point) Reset() { *m = Point{} } func (m *Point) String() string { return proto.CompactTextString(m) } func (*Point) ProtoMessage() {} func (*Point) Descriptor() ([]byte, []int) { - return fileDescriptor_replay_1ae4eb0f1325df1c, []int{0} + return fileDescriptor_eed9461330ccfc03, []int{0} } func (m *Point) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -162,8 +169,8 @@ func (m *Point) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } -func (dst *Point) XXX_Merge(src proto.Message) { - xxx_messageInfo_Point.Merge(dst, src) +func (m *Point) XXX_Merge(src proto.Message) { + xxx_messageInfo_Point.Merge(m, src) } func (m *Point) XXX_Size() int { return m.Size() @@ -188,18 +195,25 @@ func (m *Point) GetY() int32 { return 0 } +func (m *Point) GetZ() int32 { + if m != nil { + return m.Z + } + return 0 +} + type Replay struct { - Header *Replay_Header `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - Entities []*Replay_Entity `protobuf:"bytes,2,rep,name=entities" json:"entities,omitempty"` - Snapshots []*Replay_Snapshot `protobuf:"bytes,3,rep,name=snapshots" json:"snapshots,omitempty"` - Ticks []*Replay_Tick `protobuf:"bytes,4,rep,name=ticks" json:"ticks,omitempty"` + Header *Replay_Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` + Entities []*Replay_Entity `protobuf:"bytes,2,rep,name=entities,proto3" json:"entities,omitempty"` + Snapshots []*Replay_Snapshot `protobuf:"bytes,3,rep,name=snapshots,proto3" json:"snapshots,omitempty"` + Ticks []*Replay_Tick `protobuf:"bytes,4,rep,name=ticks,proto3" json:"ticks,omitempty"` } func (m *Replay) Reset() { *m = Replay{} } func (m *Replay) String() string { return proto.CompactTextString(m) } func (*Replay) ProtoMessage() {} func (*Replay) Descriptor() ([]byte, []int) { - return fileDescriptor_replay_1ae4eb0f1325df1c, []int{1} + return fileDescriptor_eed9461330ccfc03, []int{1} } func (m *Replay) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -216,8 +230,8 @@ func (m *Replay) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return b[:n], nil } } -func (dst *Replay) XXX_Merge(src proto.Message) { - xxx_messageInfo_Replay.Merge(dst, src) +func (m *Replay) XXX_Merge(src proto.Message) { + xxx_messageInfo_Replay.Merge(m, src) } func (m *Replay) XXX_Size() int { return m.Size() @@ -266,7 +280,7 @@ func (m *Replay_Header) Reset() { *m = Replay_Header{} } func (m *Replay_Header) String() string { return proto.CompactTextString(m) } func (*Replay_Header) ProtoMessage() {} func (*Replay_Header) Descriptor() ([]byte, []int) { - return fileDescriptor_replay_1ae4eb0f1325df1c, []int{1, 0} + return fileDescriptor_eed9461330ccfc03, []int{1, 0} } func (m *Replay_Header) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -283,8 +297,8 @@ func (m *Replay_Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return b[:n], nil } } -func (dst *Replay_Header) XXX_Merge(src proto.Message) { - xxx_messageInfo_Replay_Header.Merge(dst, src) +func (m *Replay_Header) XXX_Merge(src proto.Message) { + xxx_messageInfo_Replay_Header.Merge(m, src) } func (m *Replay_Header) XXX_Size() int { return m.Size() @@ -327,7 +341,7 @@ func (m *Replay_Entity) Reset() { *m = Replay_Entity{} } func (m *Replay_Entity) String() string { return proto.CompactTextString(m) } func (*Replay_Entity) ProtoMessage() {} func (*Replay_Entity) Descriptor() ([]byte, []int) { - return fileDescriptor_replay_1ae4eb0f1325df1c, []int{1, 1} + return fileDescriptor_eed9461330ccfc03, []int{1, 1} } func (m *Replay_Entity) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -344,8 +358,8 @@ func (m *Replay_Entity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return b[:n], nil } } -func (dst *Replay_Entity) XXX_Merge(src proto.Message) { - xxx_messageInfo_Replay_Entity.Merge(dst, src) +func (m *Replay_Entity) XXX_Merge(src proto.Message) { + xxx_messageInfo_Replay_Entity.Merge(m, src) } func (m *Replay_Entity) XXX_Size() int { return m.Size() @@ -386,14 +400,14 @@ func (m *Replay_Entity) GetIsNpc() bool { type Replay_Snapshot struct { Tick int32 `protobuf:"varint,1,opt,name=tick,proto3" json:"tick,omitempty"` - EntityUpdates []*Replay_Snapshot_EntityUpdate `protobuf:"bytes,2,rep,name=entityUpdates" json:"entityUpdates,omitempty"` + EntityUpdates []*Replay_Snapshot_EntityUpdate `protobuf:"bytes,2,rep,name=entityUpdates,proto3" json:"entityUpdates,omitempty"` } func (m *Replay_Snapshot) Reset() { *m = Replay_Snapshot{} } func (m *Replay_Snapshot) String() string { return proto.CompactTextString(m) } func (*Replay_Snapshot) ProtoMessage() {} func (*Replay_Snapshot) Descriptor() ([]byte, []int) { - return fileDescriptor_replay_1ae4eb0f1325df1c, []int{1, 2} + return fileDescriptor_eed9461330ccfc03, []int{1, 2} } func (m *Replay_Snapshot) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -410,8 +424,8 @@ func (m *Replay_Snapshot) XXX_Marshal(b []byte, deterministic bool) ([]byte, err return b[:n], nil } } -func (dst *Replay_Snapshot) XXX_Merge(src proto.Message) { - xxx_messageInfo_Replay_Snapshot.Merge(dst, src) +func (m *Replay_Snapshot) XXX_Merge(src proto.Message) { + xxx_messageInfo_Replay_Snapshot.Merge(m, src) } func (m *Replay_Snapshot) XXX_Size() int { return m.Size() @@ -438,7 +452,7 @@ func (m *Replay_Snapshot) GetEntityUpdates() []*Replay_Snapshot_EntityUpdate { type Replay_Snapshot_EntityUpdate struct { EntityId int32 `protobuf:"varint,1,opt,name=entityId,proto3" json:"entityId,omitempty"` - Positions []*Point `protobuf:"bytes,2,rep,name=positions" json:"positions,omitempty"` + Positions []*Point `protobuf:"bytes,2,rep,name=positions,proto3" json:"positions,omitempty"` Angle int32 `protobuf:"varint,3,opt,name=angle,proto3" json:"angle,omitempty"` Hp int32 `protobuf:"varint,4,opt,name=hp,proto3" json:"hp,omitempty"` Armor int32 `protobuf:"varint,5,opt,name=armor,proto3" json:"armor,omitempty"` @@ -451,7 +465,7 @@ func (m *Replay_Snapshot_EntityUpdate) Reset() { *m = Replay_Snapshot_En func (m *Replay_Snapshot_EntityUpdate) String() string { return proto.CompactTextString(m) } func (*Replay_Snapshot_EntityUpdate) ProtoMessage() {} func (*Replay_Snapshot_EntityUpdate) Descriptor() ([]byte, []int) { - return fileDescriptor_replay_1ae4eb0f1325df1c, []int{1, 2, 0} + return fileDescriptor_eed9461330ccfc03, []int{1, 2, 0} } func (m *Replay_Snapshot_EntityUpdate) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -468,8 +482,8 @@ func (m *Replay_Snapshot_EntityUpdate) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (dst *Replay_Snapshot_EntityUpdate) XXX_Merge(src proto.Message) { - xxx_messageInfo_Replay_Snapshot_EntityUpdate.Merge(dst, src) +func (m *Replay_Snapshot_EntityUpdate) XXX_Merge(src proto.Message) { + xxx_messageInfo_Replay_Snapshot_EntityUpdate.Merge(m, src) } func (m *Replay_Snapshot_EntityUpdate) XXX_Size() int { return m.Size() @@ -538,14 +552,14 @@ func (m *Replay_Snapshot_EntityUpdate) GetIsNpc() bool { type Replay_Tick struct { Nr int32 `protobuf:"varint,1,opt,name=nr,proto3" json:"nr,omitempty"` - Events []*Replay_Tick_Event `protobuf:"bytes,2,rep,name=events" json:"events,omitempty"` + Events []*Replay_Tick_Event `protobuf:"bytes,2,rep,name=events,proto3" json:"events,omitempty"` } func (m *Replay_Tick) Reset() { *m = Replay_Tick{} } func (m *Replay_Tick) String() string { return proto.CompactTextString(m) } func (*Replay_Tick) ProtoMessage() {} func (*Replay_Tick) Descriptor() ([]byte, []int) { - return fileDescriptor_replay_1ae4eb0f1325df1c, []int{1, 3} + return fileDescriptor_eed9461330ccfc03, []int{1, 3} } func (m *Replay_Tick) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -562,8 +576,8 @@ func (m *Replay_Tick) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return b[:n], nil } } -func (dst *Replay_Tick) XXX_Merge(src proto.Message) { - xxx_messageInfo_Replay_Tick.Merge(dst, src) +func (m *Replay_Tick) XXX_Merge(src proto.Message) { + xxx_messageInfo_Replay_Tick.Merge(m, src) } func (m *Replay_Tick) XXX_Size() int { return m.Size() @@ -590,14 +604,14 @@ func (m *Replay_Tick) GetEvents() []*Replay_Tick_Event { type Replay_Tick_Event struct { Kind Replay_Tick_Event_Kind `protobuf:"varint,1,opt,name=kind,proto3,enum=gen.Replay_Tick_Event_Kind" json:"kind,omitempty"` - Attributes []*Replay_Tick_Event_Attribute `protobuf:"bytes,2,rep,name=attributes" json:"attributes,omitempty"` + Attributes []*Replay_Tick_Event_Attribute `protobuf:"bytes,2,rep,name=attributes,proto3" json:"attributes,omitempty"` } func (m *Replay_Tick_Event) Reset() { *m = Replay_Tick_Event{} } func (m *Replay_Tick_Event) String() string { return proto.CompactTextString(m) } func (*Replay_Tick_Event) ProtoMessage() {} func (*Replay_Tick_Event) Descriptor() ([]byte, []int) { - return fileDescriptor_replay_1ae4eb0f1325df1c, []int{1, 3, 0} + return fileDescriptor_eed9461330ccfc03, []int{1, 3, 0} } func (m *Replay_Tick_Event) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -614,8 +628,8 @@ func (m *Replay_Tick_Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return b[:n], nil } } -func (dst *Replay_Tick_Event) XXX_Merge(src proto.Message) { - xxx_messageInfo_Replay_Tick_Event.Merge(dst, src) +func (m *Replay_Tick_Event) XXX_Merge(src proto.Message) { + xxx_messageInfo_Replay_Tick_Event.Merge(m, src) } func (m *Replay_Tick_Event) XXX_Size() int { return m.Size() @@ -651,7 +665,7 @@ func (m *Replay_Tick_Event_Attribute) Reset() { *m = Replay_Tick_Event_A func (m *Replay_Tick_Event_Attribute) String() string { return proto.CompactTextString(m) } func (*Replay_Tick_Event_Attribute) ProtoMessage() {} func (*Replay_Tick_Event_Attribute) Descriptor() ([]byte, []int) { - return fileDescriptor_replay_1ae4eb0f1325df1c, []int{1, 3, 0, 0} + return fileDescriptor_eed9461330ccfc03, []int{1, 3, 0, 0} } func (m *Replay_Tick_Event_Attribute) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -668,8 +682,8 @@ func (m *Replay_Tick_Event_Attribute) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (dst *Replay_Tick_Event_Attribute) XXX_Merge(src proto.Message) { - xxx_messageInfo_Replay_Tick_Event_Attribute.Merge(dst, src) +func (m *Replay_Tick_Event_Attribute) XXX_Merge(src proto.Message) { + xxx_messageInfo_Replay_Tick_Event_Attribute.Merge(m, src) } func (m *Replay_Tick_Event_Attribute) XXX_Size() int { return m.Size() @@ -709,6 +723,9 @@ func (m *Replay_Tick_Event_Attribute) GetCustomName() string { } func init() { + proto.RegisterEnum("gen.Team", Team_name, Team_value) + proto.RegisterEnum("gen.Replay_Tick_Event_Kind", Replay_Tick_Event_Kind_name, Replay_Tick_Event_Kind_value) + proto.RegisterEnum("gen.Replay_Tick_Event_Attribute_Kind", Replay_Tick_Event_Attribute_Kind_name, Replay_Tick_Event_Attribute_Kind_value) proto.RegisterType((*Point)(nil), "gen.Point") proto.RegisterType((*Replay)(nil), "gen.Replay") proto.RegisterType((*Replay_Header)(nil), "gen.Replay.Header") @@ -718,10 +735,66 @@ func init() { proto.RegisterType((*Replay_Tick)(nil), "gen.Replay.Tick") proto.RegisterType((*Replay_Tick_Event)(nil), "gen.Replay.Tick.Event") proto.RegisterType((*Replay_Tick_Event_Attribute)(nil), "gen.Replay.Tick.Event.Attribute") - proto.RegisterEnum("gen.Team", Team_name, Team_value) - proto.RegisterEnum("gen.Replay_Tick_Event_Kind", Replay_Tick_Event_Kind_name, Replay_Tick_Event_Kind_value) - proto.RegisterEnum("gen.Replay_Tick_Event_Attribute_Kind", Replay_Tick_Event_Attribute_Kind_name, Replay_Tick_Event_Attribute_Kind_value) } + +func init() { proto.RegisterFile("replay.proto", fileDescriptor_eed9461330ccfc03) } + +var fileDescriptor_eed9461330ccfc03 = []byte{ + // 819 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x54, 0xcd, 0x6e, 0xe3, 0x54, + 0x14, 0x8e, 0x7f, 0x6b, 0x9f, 0x26, 0xd5, 0x9d, 0xab, 0x01, 0x59, 0x41, 0x44, 0x21, 0x02, 0x54, + 0xcd, 0x22, 0x88, 0xb2, 0x62, 0x87, 0x49, 0xee, 0xb4, 0xa6, 0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e5, 0x8d, 0x98, 0x37, + 0x41, 0x8a, 0xb0, 0xcf, 0xbd, 0x8b, 0x0b, 0x42, 0x91, 0x8a, 0xdb, 0x60, 0xb9, 0x41, 0xe0, 0x05, + 0x8c, 0x50, 0xa4, 0x61, 0x0b, 0x74, 0x46, 0xbe, 0x63, 0x48, 0xc7, 0x47, 0x00, 0xe4, 0x8a, 0xf8, + 0x6c, 0xee, 0xbb, 0x13, 0x82, 0x0c, 0x91, 0x33, 0x9a, 0x05, 0x6c, 0x3a, 0x41, 0xe6, 0xe0, 0x67, + 0xa5, 0xea, 0x61, 0x81, 0xfe, 0xcd, 0x6c, 0x72, 0x89, 0x5a, 0xc2, 0x7a, 0xe9, 0x51, 0x82, 0x14, + 0x61, 0x9d, 0xcd, 0x28, 0x43, 0x2a, 0x3e, 0x84, 0x83, 0x97, 0x17, 0x6e, 0x70, 0x46, 0xc6, 0x65, + 0x65, 0xd1, 0x13, 0xe9, 0xf8, 0x19, 0x74, 0xe8, 0x74, 0xe6, 0x8f, 0xe7, 0x01, 0x73, 0x29, 0x23, + 0x63, 0x64, 0x88, 0x59, 0x83, 0x6f, 0xdd, 0xcb, 0x39, 0x23, 0xee, 0x04, 0x99, 0xa2, 0xf7, 0xd8, + 0x0b, 0x46, 0x53, 0xdf, 0x27, 0x23, 0x86, 0x0e, 0x30, 0x82, 0xf6, 0xe8, 0xcc, 0x65, 0xf3, 0x09, + 0x09, 0x02, 0xf7, 0x94, 0x20, 0xab, 0x31, 0x8d, 0xfd, 0xe2, 0x1c, 0x74, 0x71, 0x87, 0x22, 0x6b, + 0xe6, 0x8b, 0x5d, 0x4e, 0x7d, 0x22, 0x36, 0xee, 0x80, 0xcd, 0x08, 0xa5, 0x53, 0xea, 0x05, 0x0c, + 0x29, 0xf8, 0x3d, 0x78, 0x36, 0x9a, 0xce, 0x7c, 0x46, 0xe8, 0x7c, 0x17, 0x56, 0x65, 0xeb, 0x4b, + 0x32, 0x62, 0x2e, 0x9b, 0x52, 0xa4, 0x7d, 0xed, 0xfc, 0xf1, 0xd0, 0x53, 0xde, 0x3c, 0xf4, 0x94, + 0xbf, 0x1f, 0x7a, 0xca, 0xaf, 0x8f, 0xbd, 0xd6, 0x9b, 0xc7, 0x5e, 0xeb, 0xaf, 0xc7, 0x5e, 0xeb, + 0xda, 0x94, 0xff, 0xf8, 0x2f, 0xfe, 0x0b, 0x00, 0x00, 0xff, 0xff, 0x9f, 0xda, 0x90, 0x1f, 0xf3, + 0x05, 0x00, 0x00, +} + func (m *Point) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -747,6 +820,11 @@ func (m *Point) MarshalTo(dAtA []byte) (int, error) { i++ i = encodeVarintReplay(dAtA, i, uint64(m.Y)) } + if m.Z != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintReplay(dAtA, i, uint64(m.Z)) + } return i, nil } @@ -1131,6 +1209,9 @@ func (m *Point) Size() (n int) { if m.Y != 0 { n += 1 + sovReplay(uint64(m.Y)) } + if m.Z != 0 { + n += 1 + sovReplay(uint64(m.Z)) + } return n } @@ -1347,7 +1428,7 @@ func (m *Point) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1375,7 +1456,7 @@ func (m *Point) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.X |= (int32(b) & 0x7F) << shift + m.X |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -1394,7 +1475,26 @@ func (m *Point) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Y |= (int32(b) & 0x7F) << shift + m.Y |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Z", wireType) + } + m.Z = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReplay + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Z |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -1408,6 +1508,9 @@ func (m *Point) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthReplay } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthReplay + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -1435,7 +1538,7 @@ func (m *Replay) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1463,7 +1566,7 @@ func (m *Replay) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1472,6 +1575,9 @@ func (m *Replay) Unmarshal(dAtA []byte) error { return ErrInvalidLengthReplay } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthReplay + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1496,7 +1602,7 @@ func (m *Replay) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1505,6 +1611,9 @@ func (m *Replay) Unmarshal(dAtA []byte) error { return ErrInvalidLengthReplay } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthReplay + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1527,7 +1636,7 @@ func (m *Replay) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1536,6 +1645,9 @@ func (m *Replay) Unmarshal(dAtA []byte) error { return ErrInvalidLengthReplay } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthReplay + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1558,7 +1670,7 @@ func (m *Replay) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1567,6 +1679,9 @@ func (m *Replay) Unmarshal(dAtA []byte) error { return ErrInvalidLengthReplay } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthReplay + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1584,6 +1699,9 @@ func (m *Replay) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthReplay } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthReplay + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -1611,7 +1729,7 @@ func (m *Replay_Header) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1639,7 +1757,7 @@ func (m *Replay_Header) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1649,6 +1767,9 @@ func (m *Replay_Header) Unmarshal(dAtA []byte) error { return ErrInvalidLengthReplay } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthReplay + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1679,7 +1800,7 @@ func (m *Replay_Header) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SnapshotRate |= (int32(b) & 0x7F) << shift + m.SnapshotRate |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -1693,6 +1814,9 @@ func (m *Replay_Header) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthReplay } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthReplay + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -1720,7 +1844,7 @@ func (m *Replay_Entity) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1748,7 +1872,7 @@ func (m *Replay_Entity) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Id |= (int32(b) & 0x7F) << shift + m.Id |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -1767,7 +1891,7 @@ func (m *Replay_Entity) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1777,6 +1901,9 @@ func (m *Replay_Entity) Unmarshal(dAtA []byte) error { return ErrInvalidLengthReplay } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthReplay + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1796,7 +1923,7 @@ func (m *Replay_Entity) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Team |= (Team(b) & 0x7F) << shift + m.Team |= Team(b&0x7F) << shift if b < 0x80 { break } @@ -1815,7 +1942,7 @@ func (m *Replay_Entity) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1830,6 +1957,9 @@ func (m *Replay_Entity) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthReplay } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthReplay + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -1857,7 +1987,7 @@ func (m *Replay_Snapshot) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1885,7 +2015,7 @@ func (m *Replay_Snapshot) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Tick |= (int32(b) & 0x7F) << shift + m.Tick |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -1904,7 +2034,7 @@ func (m *Replay_Snapshot) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1913,6 +2043,9 @@ func (m *Replay_Snapshot) Unmarshal(dAtA []byte) error { return ErrInvalidLengthReplay } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthReplay + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1930,6 +2063,9 @@ func (m *Replay_Snapshot) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthReplay } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthReplay + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -1957,7 +2093,7 @@ func (m *Replay_Snapshot_EntityUpdate) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1985,7 +2121,7 @@ func (m *Replay_Snapshot_EntityUpdate) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.EntityId |= (int32(b) & 0x7F) << shift + m.EntityId |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -2004,7 +2140,7 @@ func (m *Replay_Snapshot_EntityUpdate) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2013,6 +2149,9 @@ func (m *Replay_Snapshot_EntityUpdate) Unmarshal(dAtA []byte) error { return ErrInvalidLengthReplay } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthReplay + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2035,7 +2174,7 @@ func (m *Replay_Snapshot_EntityUpdate) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Angle |= (int32(b) & 0x7F) << shift + m.Angle |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -2054,7 +2193,7 @@ func (m *Replay_Snapshot_EntityUpdate) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Hp |= (int32(b) & 0x7F) << shift + m.Hp |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -2073,7 +2212,7 @@ func (m *Replay_Snapshot_EntityUpdate) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Armor |= (int32(b) & 0x7F) << shift + m.Armor |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -2103,7 +2242,7 @@ func (m *Replay_Snapshot_EntityUpdate) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Team |= (Team(b) & 0x7F) << shift + m.Team |= Team(b&0x7F) << shift if b < 0x80 { break } @@ -2122,7 +2261,7 @@ func (m *Replay_Snapshot_EntityUpdate) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2137,6 +2276,9 @@ func (m *Replay_Snapshot_EntityUpdate) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthReplay } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthReplay + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -2164,7 +2306,7 @@ func (m *Replay_Tick) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2192,7 +2334,7 @@ func (m *Replay_Tick) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Nr |= (int32(b) & 0x7F) << shift + m.Nr |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -2211,7 +2353,7 @@ func (m *Replay_Tick) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2220,6 +2362,9 @@ func (m *Replay_Tick) Unmarshal(dAtA []byte) error { return ErrInvalidLengthReplay } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthReplay + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2237,6 +2382,9 @@ func (m *Replay_Tick) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthReplay } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthReplay + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -2264,7 +2412,7 @@ func (m *Replay_Tick_Event) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2292,7 +2440,7 @@ func (m *Replay_Tick_Event) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Kind |= (Replay_Tick_Event_Kind(b) & 0x7F) << shift + m.Kind |= Replay_Tick_Event_Kind(b&0x7F) << shift if b < 0x80 { break } @@ -2311,7 +2459,7 @@ func (m *Replay_Tick_Event) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -2320,6 +2468,9 @@ func (m *Replay_Tick_Event) Unmarshal(dAtA []byte) error { return ErrInvalidLengthReplay } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthReplay + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2337,6 +2488,9 @@ func (m *Replay_Tick_Event) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthReplay } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthReplay + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -2364,7 +2518,7 @@ func (m *Replay_Tick_Event_Attribute) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2392,7 +2546,7 @@ func (m *Replay_Tick_Event_Attribute) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Kind |= (Replay_Tick_Event_Attribute_Kind(b) & 0x7F) << shift + m.Kind |= Replay_Tick_Event_Attribute_Kind(b&0x7F) << shift if b < 0x80 { break } @@ -2411,7 +2565,7 @@ func (m *Replay_Tick_Event_Attribute) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2421,6 +2575,9 @@ func (m *Replay_Tick_Event_Attribute) Unmarshal(dAtA []byte) error { return ErrInvalidLengthReplay } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthReplay + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2451,7 +2608,7 @@ func (m *Replay_Tick_Event_Attribute) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -2461,6 +2618,9 @@ func (m *Replay_Tick_Event_Attribute) Unmarshal(dAtA []byte) error { return ErrInvalidLengthReplay } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthReplay + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -2475,6 +2635,9 @@ func (m *Replay_Tick_Event_Attribute) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthReplay } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthReplay + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -2541,10 +2704,13 @@ func skipReplay(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthReplay } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthReplay + } return iNdEx, nil case 3: for { @@ -2573,6 +2739,9 @@ func skipReplay(dAtA []byte) (n int, err error) { return 0, err } iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthReplay + } } return iNdEx, nil case 4: @@ -2591,60 +2760,3 @@ var ( ErrInvalidLengthReplay = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowReplay = fmt.Errorf("proto: integer overflow") ) - -func init() { proto.RegisterFile("replay.proto", fileDescriptor_replay_1ae4eb0f1325df1c) } - -var fileDescriptor_replay_1ae4eb0f1325df1c = []byte{ - // 813 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x54, 0xcd, 0x6e, 0xe3, 0x54, - 0x14, 0x8e, 0x7f, 0x6b, 0x9f, 0x26, 0xd5, 0x9d, 0xab, 0x01, 0x59, 0x41, 0x44, 0x21, 0xfc, 0xa8, - 0x9a, 0x45, 0x90, 0xca, 0x8a, 0x1d, 0x26, 0xb9, 0xd3, 0x9a, 0x36, 0x4e, 0x75, 0x7d, 0x53, 0x7e, - 0x36, 0xd1, 0x6d, 0x63, 0x1a, 0xab, 0x89, 0x6d, 0xd9, 0x0e, 0x9a, 0x3c, 0x03, 0x42, 0x62, 0xc9, - 0xbb, 0xf0, 0x02, 0x2c, 0x67, 0x83, 0xc4, 0x12, 0xda, 0x25, 0x2f, 0x81, 0xee, 0xb5, 0x9d, 0x38, - 0xa3, 0x41, 0xb3, 0x3b, 0xe7, 0x7c, 0xdf, 0xf9, 0xfb, 0xee, 0xb1, 0xa1, 0x9d, 0x85, 0xe9, 0x8a, - 0x6f, 0x87, 0x69, 0x96, 0x14, 0x09, 0xd6, 0xee, 0xc3, 0x78, 0xf0, 0x31, 0x18, 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 0x52, 0xf1, - 0x31, 0x1c, 0xbd, 0xbc, 0x72, 0x83, 0x0b, 0x32, 0x2e, 0x2b, 0x8b, 0x9e, 0x48, 0xc7, 0xcf, 0xa0, - 0x43, 0xa7, 0x33, 0x7f, 0x3c, 0x0f, 0x98, 0x4b, 0x19, 0x19, 0x23, 0x43, 0xcc, 0x1a, 0x7c, 0xeb, - 0x5e, 0xcf, 0x19, 0x71, 0x27, 0xc8, 0x14, 0xbd, 0xc7, 0x5e, 0x30, 0x9a, 0xfa, 0x3e, 0x19, 0x31, - 0x74, 0x84, 0x11, 0xb4, 0x47, 0x17, 0x2e, 0x9b, 0x4f, 0x48, 0x10, 0xb8, 0xe7, 0x04, 0x59, 0x8d, - 0x69, 0xec, 0x17, 0x97, 0xa0, 0x8b, 0x3b, 0x14, 0x59, 0x33, 0x5f, 0xec, 0x72, 0xee, 0x13, 0xb1, - 0x71, 0x07, 0x6c, 0x46, 0x28, 0x9d, 0x52, 0x2f, 0x60, 0x48, 0xc1, 0xef, 0xc1, 0xb3, 0xd1, 0x74, - 0xe6, 0x33, 0x42, 0xe7, 0xfb, 0xb0, 0x2a, 0x5b, 0x5f, 0x93, 0x11, 0x73, 0xd9, 0x94, 0x22, 0xed, - 0x6b, 0xe7, 0x8f, 0xc7, 0x9e, 0xf2, 0xfa, 0xb1, 0xa7, 0xfc, 0xfd, 0xd8, 0x53, 0x7e, 0x7d, 0xea, - 0xb5, 0x5e, 0x3f, 0xf5, 0x5a, 0x7f, 0x3d, 0xf5, 0x5a, 0xb7, 0xa6, 0xfc, 0xab, 0x7f, 0xf1, 0x5f, - 0x00, 0x00, 0x00, 0xff, 0xff, 0x83, 0x37, 0x86, 0xbe, 0xe5, 0x05, 0x00, 0x00, -} diff --git a/protobuf/marshal.go b/protobuf/marshal.go index d1f458a..5c1bc42 100644 --- a/protobuf/marshal.go +++ b/protobuf/marshal.go @@ -98,6 +98,7 @@ func mapToPosition(p rep.Point) *gen.Point { return &gen.Point{ X: int32(p.X), Y: int32(p.Y), + Z: int32(p.Z), } } diff --git a/protobuf/unmarshal.go b/protobuf/unmarshal.go index fd3e210..2e7fb40 100644 --- a/protobuf/unmarshal.go +++ b/protobuf/unmarshal.go @@ -128,6 +128,7 @@ func mapFromPosition(p *gen.Point) rep.Point { return rep.Point{ X: int(p.X), Y: int(p.Y), + Z: int(p.Z), } } diff --git a/replay/nondefault/nondefault_replay.go b/replay/nondefault/nondefault_replay.go index ccba0a7..e41d567 100644 --- a/replay/nondefault/nondefault_replay.go +++ b/replay/nondefault/nondefault_replay.go @@ -31,6 +31,7 @@ func init() { pos = append(pos, rep.Point{ X: 1124, Y: -321, + Z: 24, }) var entUpd []rep.EntityUpdate diff --git a/replay/replay.go b/replay/replay.go index 8aaab27..08058d7 100644 --- a/replay/replay.go +++ b/replay/replay.go @@ -70,6 +70,7 @@ type EntityUpdate struct { type Point struct { X int `json:"x" msgpack:"x"` Y int `json:"y" msgpack:"y"` + Z int `json:"z" msgpack:"z"` } // Tick contains all events occurring at a specific tick