From 6d340e119b827ab6844bbc2f709437e34f1bc3f3 Mon Sep 17 00:00:00 2001 From: Jordan Orelli Date: Sun, 11 Sep 2016 20:42:55 -0400 Subject: [PATCH] shit got hairy, time to rename things --- ent/entity.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ent/entity.go b/ent/entity.go index e05f558..47dd8a6 100644 --- a/ent/entity.go +++ b/ent/entity.go @@ -20,5 +20,14 @@ func (e *Entity) Read(br bit.Reader) error { if err := fp.read(br, htree, e.Class); err != nil { return fmt.Errorf("unable to read entity: %v", err) } + for i := 0; i <= fp.hlast; i++ { + if fp.history[i][0] == 0 { + Debug.Printf("direct selection: %v", fp.history[i][1]) + Debug.Printf("field: %v", e.Class.Fields[fp.history[i][1]]) + } else { + Debug.Printf("child selection: %v (%v)", fp.history[i], + fp.history[i][1:fp.history[i][0]+2]) + } + } return nil }