Пример #1
0
        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;
        }
Пример #2
0
        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;
        }
Пример #3
0
 private void TriggerKeyFrame(KeyFrameInfo info)
 {
     RunCommands(info.Commands);
 }