示例#1
0
 public MenuCommandGruntsKill(CovenantAPI CovenantClient) : base(CovenantClient)
 {
     this.Name        = "Kill";
     this.Description = "Kill an active Grunt.";
     this.Parameters  = new List <MenuCommandParameter> {
         new MenuCommandParameter {
             Name   = "Grunt Name",
             Values = CovenantClient.ApiGruntsGet().Where(G => G.Status != GruntStatus.Uninitialized)
                      .Select(G => new MenuCommandParameterValue {
                 Value = G.Name
             }).ToList()
         }
     };
 }