You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
392 B
Go
18 lines
392 B
Go
package ent
|
|
|
|
import (
|
|
"github.com/jordanorelli/hyperstone/bit"
|
|
"github.com/jordanorelli/hyperstone/dota"
|
|
)
|
|
|
|
func hSeqType(flat *dota.ProtoFlattenedSerializerFieldT, env *Env) tÿpe {
|
|
if env.symbol(int(flat.GetVarTypeSym())) != "HSequence" {
|
|
return nil
|
|
}
|
|
|
|
Debug.Printf(" hsequence type")
|
|
return typeFn(func(r bit.Reader) (value, error) {
|
|
return bit.ReadVarInt(r) - 1, r.Err()
|
|
})
|
|
}
|