public List<JSValue> GetEntities(Aspect aspect) { var em = _instance.EntityManager; var lst = em.GetEntities(aspect); List<JSValue> ents = new List<JSValue>(); foreach(var e in lst) { ents.Add(JSValue.Wrap(e)); } return ents; }