コード例 #1
0
        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;
        }
コード例 #2
0
 public LoadResourcesCommand(OpenTagCache info, TagInstance tag, ScenarioStructureBsp bsp)
     : base(CommandFlags.Inherit,
           "loadresources",
           "",
           "loadresources",
           "")
 {
     Info = info;
     Tag = tag;
     BSP = bsp;
 }
コード例 #3
0
 public static void Populate(CommandContext context, OpenTagCache info, TagInstance tag, ScenarioStructureBsp bsp)
 {
     context.AddCommand(new LoadResourcesCommand(info, tag, bsp));
 }