protected override void SetValue(GroupCollection groups, out CommandError error) { error = null; _Name = groups[1].Value; _Position = StringDefine.ParseVector3(groups[2].Value); _Duration = StringDefine.ParseFloat(groups[3].Value, 0.0f); }
public void ParsingVector3Test() { string text = "(0,-1.5,10.0)"; Vector3 vec = StringDefine.ParseVector3(text); Assert.AreEqual(new Vector3(0.0f, -1.5f, 10.0f), vec); }
protected override void SetValue(GroupCollection groups, out CommandError error) { error = null; _Name = groups[1].Value; _MotionName = groups[2].Value; _MotionLoop = StringDefine.ParseBoolean(groups[3].Value, false); _ExpressionName = groups[4].Value; _Position = StringDefine.ParseVector3(groups[5].Value); _Duration = StringDefine.ParseFloat(groups[6].Value, 0.0f); }