public CopyForgePaletteCommand(OpenTagCache info, Scenario definition)
     : base(CommandFlags.Inherit,
          "copyforgepalette",
          "Copies the forge palette from the current scenario to another scenario",
          "copyforgepalette [palette = all] <destination scenario>",
          "Copies the forge palette from the current scenario to another scenario")
 {
     Info = info;
     Definition = definition;
 }
        public static CommandContext Create(CommandContext parent, OpenTagCache info, TagInstance tag, Scenario scenario)
        {
            var groupName = info.StringIDs.GetString(tag.Group.Name);

            var context = new CommandContext(parent,
                string.Format("{0:X8}.{1}", tag.Index, groupName));

            Populate(context, info, tag, scenario);

            return context;
        }
 public static void Populate(CommandContext context, OpenTagCache info, TagInstance tag, Scenario scenario)
 {
     context.AddCommand(new CopyForgePaletteCommand(info, scenario));
 }