public override bool Equals(object obj) { if (!(obj is ActionBoxIndex)) { return(false); } ActionBoxIndex oth = (ActionBoxIndex)obj; return(oth.passed == passed && oth.spanHeight == this.spanHeight && oth.duration == duration); }
internal void addAction(ActionTemplate actionTemplate) { if (actionTemplate.subActionList.Count >= 1) { // 找到最子的动作 foreach (ActionTemplate xxx in actionTemplate.subActionList) { addAction(xxx); } } else { // 最子的动作 ActionBoxIndex index = new ActionBoxIndex(actionTemplate.__passed, actionTemplate.__spanStart + curHeight, actionTemplate.__duration); if (!actionBoxs.ContainsKey(index)) { ActionsBox xxx = new ActionsBox(index); actionBoxs[index] = xxx; } actionBoxs[index].actions.Add(actionTemplate); } }
internal ActionsBox(ActionBoxIndex _index) { this.index = _index; }