예제 #1
0
 public SpecifyShadersCommand(OpenTagCache info, TagInstance tag, RenderModel definition)
     : base(CommandFlags.Inherit,
           "specifyshaders",
           "Allows the shaders of a render_model to be respecified.",
           "specifyshaders",
           "Allows the shaders of a render_model to be respecified.")
 {
     Info = info;
     Tag = tag;
     Definition = definition;
 }
        public static CommandContext Create(CommandContext parent, OpenTagCache info, TagInstance tag, RenderModel renderModel)
        {
            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, renderModel);

            return context;
        }
예제 #3
0
 public GetResourceCommand(OpenTagCache info, TagInstance tag, RenderModel definition)
     : base(CommandFlags.None,
           "getresource",
           "",
           "getresource",
           "")
 {
     Info = info;
     Tag = tag;
     Definition = definition;
 }
 public static void Populate(CommandContext context, OpenTagCache info, TagInstance tag, RenderModel renderModel)
 {
     context.AddCommand(new SpecifyShadersCommand(info, tag, renderModel));
     context.AddCommand(new GetResourceCommand(info, tag, renderModel));
     context.AddCommand(new ReplaceCommand(info, tag, renderModel));
 }