public CopyForgePaletteCommand(OpenTagCache info, Scenario definition) : base(CommandFlags.Inherit, "CopyForgePalette", "Copies the forge palette from the current scenario to another scenario.", "CopyForgePalette <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)); }