public static CommandContext Create(CommandContext parent, OpenTagCache info, TagInstance tag, ScenarioStructureBsp bsp) { 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, bsp); return context; }
public LoadResourcesCommand(OpenTagCache info, TagInstance tag, ScenarioStructureBsp bsp) : base(CommandFlags.Inherit, "loadresources", "", "loadresources", "") { Info = info; Tag = tag; BSP = bsp; }
public static void Populate(CommandContext context, OpenTagCache info, TagInstance tag, ScenarioStructureBsp bsp) { context.AddCommand(new LoadResourcesCommand(info, tag, bsp)); }