コード例 #1
0
        private void FillMoveCommand(SceneFillMoveCommandInfo command)
        {
            HandlerFill obj = objects[command.Name] as HandlerFill;

            if (obj != null)
            {
                obj.Move(command.X, command.Y, command.Width, command.Height, command.Duration);
            }
        }
コード例 #2
0
        public static SceneFillMoveCommandInfo LoadFillMoveCommand(XElement node)
        {
            var info = new SceneFillMoveCommandInfo();

            info.Name     = node.RequireAttribute("name").Value;
            info.Duration = node.GetAttribute <int>("duration");
            info.X        = node.GetAttribute <int>("x");
            info.Y        = node.GetAttribute <int>("y");
            info.Width    = node.GetAttribute <int>("width");
            info.Height   = node.GetAttribute <int>("height");
            return(info);
        }