private static KeyFrameInfo LoadKeyFrame(XElement node, string basePath) { var info = new KeyFrameInfo(); info.Frame = node.GetAttribute<int>("frame"); info.Fade = node.TryAttribute<bool>("fade"); info.Commands = LoadCommands(node, basePath); return info; }
public static KeyFrameInfo FromXml(XElement node, string basePath) { var info = new KeyFrameInfo(); info.Frame = node.GetInteger("frame"); bool fade = false; node.TryBool("fade", out fade); info.Fade = fade; info.Commands = SceneCommandInfo.Load(node, basePath); return info; }
private void TriggerKeyFrame(KeyFrameInfo info) { RunCommands(info.Commands); }