File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ type TeamState struct {
131131 Entity st.Entity
132132
133133 // Terrorist TeamState for CTs, CT TeamState for Terrorists
134- Opponent * TeamState
134+ Opponent * TeamState `json:"-"`
135135}
136136
137137// Team returns the team for which the TeamState contains data.
Original file line number Diff line number Diff line change @@ -312,8 +312,8 @@ const (
312312// This also includes the skin and some additional data.
313313type Equipment struct {
314314 Type EquipmentType // The type of weapon which the equipment instantiates.
315- Entity st.Entity // The game entity instance
316- Owner * Player // The player carrying the equipment, not necessarily the buyer.
315+ Entity st.Entity `json:"-"` // The game entity instance
316+ Owner * Player `json:"-"` // The player carrying the equipment, not necessarily the buyer.
317317 // E.g. 'models/weapons/w_rif_m4a1_s.mdl'.
318318 // Used internally to differentiate alternative weapons (M4A4 / M4A1-S etc.) for Source 1 demos.
319319 // It's always an empty string with Source 2 demos, you should use Type to know which weapon it is.
Original file line number Diff line number Diff line change @@ -28,6 +28,9 @@ type Entity struct {
2828 propCache map [string ]st.Property
2929}
3030
31+ // func (*Entity) GobDecode([]byte) error { return nil }
32+ // func (Entity) GobEncode() ([]byte, error) { return nil, nil }
33+
3134func (e * Entity ) ServerClass () st.ServerClass {
3235 return e .class
3336}
You can’t perform that action at this time.
0 commit comments