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
2
2
3
3
import (
4
4
"github.com/golang/geo/r3"
5
-
6
- bit "github.com/markus-wa/demoinfocs-golang/v5/internal/bitread"
7
5
)
8
6
9
7
// Entity is an auto-generated interface for entity, intended to be used when mockability is needed.
@@ -33,11 +31,6 @@ type Entity interface {
33
31
//
34
32
// Panics with nil pointer dereference error if the property was not found.
35
33
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 )
41
34
// Position returns the entity's position in world coordinates.
42
35
Position () r3.Vector
43
36
// OnPositionUpdate registers a handler for the entity's position update.
Original file line number Diff line number Diff line change 4
4
"github.com/golang/geo/r3"
5
5
"github.com/stretchr/testify/mock"
6
6
7
- bitread "github.com/markus-wa/demoinfocs-golang/v5/internal/bitread"
8
7
st "github.com/markus-wa/demoinfocs-golang/v5/pkg/demoinfocs/sendtables"
9
8
)
10
9
@@ -79,11 +78,6 @@ func (e *Entity) PropertyValueMust(name string) st.PropertyValue {
79
78
return args .Get (0 ).(st.PropertyValue )
80
79
}
81
80
82
- // ApplyUpdate is a mock-implementation of Entity.ApplyUpdate().
83
- func (e * Entity ) ApplyUpdate (reader * bitread.BitReader ) {
84
- e .Called (reader )
85
- }
86
-
87
81
// Position is a mock-implementation of Entity.Position().
88
82
func (e * Entity ) Position () r3.Vector {
89
83
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 {
161
161
return val
162
162
}
163
163
164
- func (e * Entity ) ApplyUpdate (reader * bit.BitReader ) {
165
- panic ("not implemented" )
166
- }
167
-
168
164
const (
169
165
serverClassPlayer = "CCSPlayerPawn"
170
166
You can’t perform that action at this time.
0 commit comments