func (e *Entity) initializeBaseline(r *bit.BitReader) map[int]PropertyValue {
	baseline := make(map[int]PropertyValue)
	for i := range e.props {
		i2 := i // Copy for the adder
		adder := func(val PropertyValue) {
			baseline[i2] = val
		}

		e.props[i].OnUpdate(adder)
	}

	e.ApplyUpdate(r)

	for i := range e.props {
		e.props[i].updateHandlers = nil
	}

	return baseline
}
// Collects an initial baseline for a server-class
Collects an initial baseline for a server-class
// Collects an initial baseline for a server - class
func (e *Entity) initializeBaseline(r *bit.BitReader) map[int]PropertyValue {
	baseline := make(map[int]PropertyValue)
	for i := range e.props {
		i2 := i 
		adder := func(val PropertyValue) {
			baseline[i2] = val
		}
		e.props[i].OnUpdate(adder)
	}
	e.ApplyUpdate(r)
	for i := range e.props {
		e.props[i].updateHandlers = nil
	}
	return baseline
}
func ( e * Entity ) initializeBaseline ( r * bit . BitReader ) map [ int ] PropertyValue { baseline := make ( map [ int ] PropertyValue ) for i := range e . props { i2 := i adder := func ( val PropertyValue ) { baseline [ i2 ] = val } e . props [ i ] . OnUpdate ( adder ) } e . ApplyUpdate ( r ) for i := range e . props { e . props [ i ] . updateHandlers = nil } return baseline }
Collects an initial baseline for a server-class
Collects an initial baseline for a server - class
// Copy for the adder