コード例 #1
0
ファイル: Key.cs プロジェクト: bluephoton/wwt-windows-client
 public Key(double time, double value, KeyType inFunction, BaseTweenType baseTweenType)
 {
     Time = time;
     Value = value;
     InFunction = inFunction;
     BaseTweenType = baseTweenType;
 }
コード例 #2
0
 public Key(double time, double value, KeyType inFunction, BaseTweenType baseTweenType)
 {
     Time          = time;
     Value         = value;
     InFunction    = inFunction;
     BaseTweenType = baseTweenType;
 }
コード例 #3
0
ファイル: Key.cs プロジェクト: bluephoton/wwt-windows-client
        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);
            }
        }
コード例 #4
0
        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);
            }
        }