public static short ExportCancelLevel(Pat.CancelLevel value) { switch (value) { case Pat.CancelLevel.Free: case Pat.CancelLevel.None: return(0); case Pat.CancelLevel.Light: return(10); case Pat.CancelLevel.Long: return(30); case Pat.CancelLevel.Heavy: return(31); case Pat.CancelLevel.Magic: return(50); case Pat.CancelLevel.Highest: return(100); } return(0); }
private static Expression CancelLevelCondition(Pat.CancelLevel value) { return(ThisExpr.Instance .MakeIndex("C_Check") .Call(new ConstNumberExpr(ExportHelper.ExportCancelLevel(value)))); }