private static void loadEntities(List <XmlNode> entities) { for (int i = 0; i < entities.Count; i++) { XmlNode e = entities[i]; com.discobeard.spriter.dom.Entity entity = new com.discobeard.spriter.dom.Entity(); entity.setId(XmlReader.getInt(e, "id")); entity.setName(XmlReader.getAttribute(e, "name")); data.getEntity().Add(entity); loadAnimations(XmlReader.getChildrenByName(e, "animation"), entity); } }
public SpriterPlayerIK(com.discobeard.spriter.dom.SpriterData data, int entityIndex , com.brashmonkey.spriter.file.FileLoader loader) : this(data, data.getEntity ()[entityIndex], loader) { }