LCOV - code coverage report
Current view: top level - simulation/components - TrainingRestrictions.js (source / functions) Hit Total Coverage
Test: lcov.info Lines: 6 6 100.0 %
Date: 2023-04-02 12:52:40 Functions: 3 3 100.0 %

          Line data    Source code
       1             : function TrainingRestrictions() {}
       2             : 
       3           1 : TrainingRestrictions.prototype.Schema =
       4             :         "<a:help>Specifies unit training restrictions, currently only unit category</a:help>" +
       5             :         "<a:example>" +
       6             :                 "<TrainingRestrictions>" +
       7             :                         "<Category>Hero</Category>" +
       8             :                 "</TrainingRestrictions>" +
       9             :         "</a:example>" +
      10             :         "<element name='Category' a:help='Specifies the category of this unit, for satisfying special constraints. Choices include: Hero, Juggernaut, WarDog'>" +
      11             :                 "<text/>" +
      12             :         "</element>" +
      13             :         "<optional>" +
      14             :                 "<element name='MatchLimit' a:help='Specifies how many times this entity can be trained during a match.'>" +
      15             :                         "<data type='positiveInteger'/>" +
      16             :                 "</element>" +
      17             :         "</optional>";
      18             : 
      19           1 : TrainingRestrictions.prototype.Init = function()
      20             : {
      21             : };
      22             : 
      23           1 : TrainingRestrictions.prototype.Serialize = null;
      24             : 
      25           1 : TrainingRestrictions.prototype.GetCategory = function()
      26             : {
      27           2 :         return this.template.Category;
      28             : };
      29             : 
      30           1 : Engine.RegisterComponentType(IID_TrainingRestrictions, "TrainingRestrictions", TrainingRestrictions);

Generated by: LCOV version 1.14