public StateRenderObj GetStateRenderObj(string state) { StateRenderObj render = null; collection.TryGetValue(state, out render); return(render); }
public List <List <PartInfo> > ListStatePartInfos(string stateId) { StateRenderObj stateRender = classRenderObj.GetStateRenderObj(stateId); if (stateRender != null) { return(stateRender.ListPartInfo); } return(null); }
public ControlRenderObj(Object parent, ClassRenderObj classRenderObj) { this.parent = parent; /* * ITransform transformThis = this as ITransform; * transformThis.Local = Matrix.Identity; */ this.classRenderObj = classRenderObj; this.staticRender = classRenderObj.GetStateRenderObj(ClassRenderObj.StaticStateName); }
protected void AddStateRender(Model model, ModelBone bone) { string controlName; int indexSplit = bone.Name.IndexOf(":"); if (indexSplit > 0) { controlName = bone.Name.Substring(0, indexSplit + 1).Trim(); } else { controlName = bone.Name.Trim(); } // create a state render object StateRenderObj stateRender = new StateRenderObj(model, bone); collection.Add(controlName, stateRender); }