File tree Expand file tree Collapse file tree 3 files changed +0
-17
lines changed
pkg/demoinfocs/sendtables Expand file tree Collapse file tree 3 files changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,6 @@ package sendtables
22
33import (
44 "github.com/golang/geo/r3"
5-
6- bit "github.com/markus-wa/demoinfocs-golang/v5/internal/bitread"
75)
86
97// Entity is an auto-generated interface for entity, intended to be used when mockability is needed.
@@ -33,11 +31,6 @@ type Entity interface {
3331 //
3432 // Panics with nil pointer dereference error if the property was not found.
3533 PropertyValueMust (name string ) PropertyValue
36- // ApplyUpdate reads an update to an Enitiy's properties and
37- // triggers registered PropertyUpdateHandlers if values changed.
38- //
39- // Intended for internal use only.
40- ApplyUpdate (reader * bit.BitReader )
4134 // Position returns the entity's position in world coordinates.
4235 Position () r3.Vector
4336 // OnPositionUpdate registers a handler for the entity's position update.
Original file line number Diff line number Diff line change 44 "github.com/golang/geo/r3"
55 "github.com/stretchr/testify/mock"
66
7- bitread "github.com/markus-wa/demoinfocs-golang/v5/internal/bitread"
87 st "github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs/sendtables"
98)
109
@@ -79,11 +78,6 @@ func (e *Entity) PropertyValueMust(name string) st.PropertyValue {
7978 return args .Get (0 ).(st.PropertyValue )
8079}
8180
82- // ApplyUpdate is a mock-implementation of Entity.ApplyUpdate().
83- func (e * Entity ) ApplyUpdate (reader * bitread.BitReader ) {
84- e .Called (reader )
85- }
86-
8781// Position is a mock-implementation of Entity.Position().
8882func (e * Entity ) Position () r3.Vector {
8983 return e .Called ().Get (0 ).(r3.Vector )
Original file line number Diff line number Diff line change @@ -161,10 +161,6 @@ func (e *Entity) PropertyValueMust(name string) st.PropertyValue {
161161 return val
162162}
163163
164- func (e * Entity ) ApplyUpdate (reader * bit.BitReader ) {
165- panic ("not implemented" )
166- }
167-
168164const (
169165 serverClassPlayer = "CCSPlayerPawn"
170166
You can’t perform that action at this time.
0 commit comments