Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 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);
     }
 }
Exemplo n.º 3
0
 internal ActionsBox(ActionBoxIndex _index)
 {
     this.index = _index;
 }