File tree Expand file tree Collapse file tree 5 files changed +6
-2
lines changed Expand file tree Collapse file tree 5 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 11// Package constants contains constants that are used internally across the demoinfocs library.
22package constants
33
4+ // Various constants tat are used internally.
45const (
56 MaxEdictBits = 11
67 EntityHandleIndexMask = (1 << MaxEdictBits ) - 1
Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ func (ts *TeamState) MoneySpentThisRound() (value int) {
191191 return
192192}
193193
194- // MoneySpentThisRound returns the total amount of cash spent by the whole team during the whole game up to the current point.
194+ // MoneySpentTotal returns the total amount of cash spent by the whole team during the whole game up to the current point.
195195func (ts * TeamState ) MoneySpentTotal () (value int ) {
196196 for _ , pl := range ts .Members () {
197197 value += pl .MoneySpentTotal ()
Original file line number Diff line number Diff line change @@ -270,8 +270,10 @@ func MapEquipment(eqName string) EquipmentType {
270270 return wep
271271}
272272
273+ // ZoomLevel contains how far a player is zoomed in.
273274type ZoomLevel int
274275
276+ // All currently known zoom levels.
275277const (
276278 ZoomNone ZoomLevel = 0
277279 ZoomHalf ZoomLevel = 1
Original file line number Diff line number Diff line change @@ -289,7 +289,7 @@ type BombPlantBegin struct {
289289 BombEvent
290290}
291291
292- // BombPlantAbort signals the abortion of a plant.
292+ // BombPlantAborted signals the abortion of a plant.
293293type BombPlantAborted struct {
294294 Player * common.Player
295295}
Original file line number Diff line number Diff line change 88 st "github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs/sendtables"
99)
1010
11+ // NewEntityWithProperty creates and returns an entity with a single mocked property.
1112func NewEntityWithProperty (name string , val st.PropertyValue ) * Entity {
1213 entity := new (Entity )
1314
You can’t perform that action at this time.
0 commit comments