예제 #1
0
 public int GetActionID(string name)
 {
     if (name == null || name.Length == 0)
     {
         return(Exporter.GetActionID(CurrentActionName));
     }
     return(Exporter.GetActionID(name));
 }
예제 #2
0
 private static Expression RushCondition(PlayerExporter exporter, NormalSkill skill)
 {
     if (skill.IsRushSkill)
     {
         var skillActionID = skill.ActionID;
         var indexes       = exporter.Skills
                             .Where(s => s is NormalSkill)
                             .Select(s => (NormalSkill)s)
                             .Where(s => s.RushCancel == skillActionID)
                             .Select(s =>
                                     new BiOpExpr(ThisExpr.Instance.MakeIndex("motion"),
                                                  new BiOpExpr(ThisExpr.Instance.MakeIndex("u").MakeIndex("CA"),
                                                               new ConstNumberExpr(exporter.GetActionID(s.ActionID)), BiOpExpr.Op.Add),
                                                  BiOpExpr.Op.Equal))
                             .ToArray();
         return(ExpressionExt.OrAll(indexes));
     }
     return(new ConstNumberExpr(1));
 }