File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ func (e *Entity) CollectProperties(ppBase *map[int]PropValue) {
117117func NewEntity (id int , serverClass * ServerClass ) * Entity {
118118 props := make ([]PropertyEntry , 0 , len (serverClass .FlattenedProps ))
119119 for i := range serverClass .FlattenedProps {
120- props = append (props , NewPropertyEntry ( & serverClass .FlattenedProps [i ], i ) )
120+ props = append (props , PropertyEntry { index : i , entry : & serverClass .FlattenedProps [i ]} )
121121 }
122122 return & Entity {ID : id , ServerClass : serverClass , props : props }
123123}
@@ -153,8 +153,3 @@ func (pe *PropertyEntry) RegisterPropertyUpdateHandler(handler PropertyUpdateHan
153153
154154// PropertyUpdateHandler is the interface for handlers that are interested in PropertyEntry changes.
155155type PropertyUpdateHandler func (PropValue )
156-
157- // NewPropertyEntry creates a new PropertyEntry from a FlattenedPropEntry and index
158- func NewPropertyEntry (entry * FlattenedPropEntry , index int ) PropertyEntry {
159- return PropertyEntry {index : index , entry : entry }
160- }
You can’t perform that action at this time.
0 commit comments