Shouldn't this be done using the "index" attribute? I mean, the Index should check "index" attribute in EditorGame and then realize that has to index variables definitions, right?