Implement new transition.

This commit is contained in:
2023-04-20 00:18:49 +08:00
parent d2b71e41c9
commit 8670482c04
8 changed files with 175 additions and 28 deletions

View File

@@ -1,5 +1,6 @@
using Cryville.Common;
using Cryville.Common.Collections.Specialized;
using Cryville.Common.Pdt;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
@@ -237,6 +238,7 @@ namespace Cryville.Crtr {
result += "#" + node.Id;
if (node.Time != null) result += "@" + node.Time.ToString();
if (node.EndTime != null) result += "~" + node.EndTime.ToString();
if (node.Transition != null) result += "^" + node.Transition.ToString();
if (node.Value != null) result += ":" + node.Value.ToString();
}
else {
@@ -264,6 +266,9 @@ namespace Cryville.Crtr {
[JsonIgnore]
public MotionNode Node;
[JsonConverter(typeof(JsonPdtExpConverter))]
public PdtExpression transition;
[DefaultValue(0.0f)]
public float sumfix = 0.0f;