コード例 #1
0
ファイル: SceneXmlReader.cs プロジェクト: laazer/cs_megaman
        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
ファイル: Scene.cs プロジェクト: laazer/cs_megaman
 private void TriggerKeyFrame(KeyFrameInfo info)
 {
     RunCommands(info.Commands);
 }