public Key(double time, double value, KeyType inFunction, BaseTweenType baseTweenType) { Time = time; Value = value; InFunction = inFunction; BaseTweenType = baseTweenType; }
public Key(double time, double value, KeyType inFunction, BaseTweenType baseTweenType) { Time = time; Value = value; InFunction = inFunction; BaseTweenType = baseTweenType; }
public Key(XmlNode node) { Time = double.Parse(node.Attributes["Time"].Value); Value = double.Parse(node.Attributes["Value"].Value); InFunction = (KeyType)Enum.Parse(typeof(KeyType), node.Attributes["InFunction"].Value); if (node.Attributes["BaseTweenType"] != null) { BaseTweenType = (BaseTweenType)Enum.Parse(typeof(BaseTweenType), node.Attributes["BaseTweenType"].Value); } if (node.Attributes["P1"] != null) { P1 = double.Parse(node.Attributes["P1"].Value); P2 = double.Parse(node.Attributes["P2"].Value); P3 = double.Parse(node.Attributes["P3"].Value); P4 = double.Parse(node.Attributes["P4"].Value); } }
public Key(System.Xml.XmlNode node) { Time = double.Parse(node.Attributes["Time"].Value); Value = double.Parse(node.Attributes["Value"].Value); InFunction = (KeyType)Enum.Parse(typeof(KeyType), node.Attributes["InFunction"].Value); if (node.Attributes["BaseTweenType"] != null) { BaseTweenType = (BaseTweenType)Enum.Parse(typeof(BaseTweenType), node.Attributes["BaseTweenType"].Value); } if (node.Attributes["P1"] != null) { P1 = double.Parse(node.Attributes["P1"].Value); P2 = double.Parse(node.Attributes["P2"].Value); P3 = double.Parse(node.Attributes["P3"].Value); P4 = double.Parse(node.Attributes["P4"].Value); } }