hsequence

what in the world
types
Jordan Orelli 8 years ago
parent 1dff55ca67
commit 92ff4ea5f7

@ -0,0 +1,17 @@
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()
})
}

@ -26,7 +26,7 @@ func parseType(flat *dota.ProtoFlattenedSerializerFieldT, env *Env) tÿpe {
}
return nil
}
return coalesce(atomType, floatType, handleType, qAngleType)
return coalesce(atomType, floatType, handleType, qAngleType, hSeqType)
}
// a type error is both an error and a type. It represents a type that we were

Loading…
Cancel
Save