You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Participants: fix disconnected players being returned (#98)
Sometimes bots and players dont get deleted from GameState.playersByUserID
due to missing player_disconnect events.
Some of these cases seem to be re-connects and some are inexplicable to
me.
This change excludes these disconnected players being returned by
Participants.All() etc.
- also made sendtables.Entity mockable for datatables_test.go
Copy file name to clipboardExpand all lines: sendtables/entity.go
+7-4Lines changed: 7 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@ import (
9
9
bit "github.com/markus-wa/demoinfocs-golang/bitread"
10
10
)
11
11
12
+
//go:generate ifacemaker -f entity.go -s Entity -i IEntity -p sendtables -D -y "IEntity is an auto-generated interface for Entity, intended to be used when mockability is needed." -c "DO NOT EDIT: Auto generated" -o entity_interface.go
13
+
12
14
// Entity stores a entity in the game (e.g. players etc.) with its properties.
0 commit comments