github.com/loomnetwork/gamechain@v0.0.0-20200406110549-36c47eb97a92/tools/cmd/templates/csharpabilities.parse (about)

     1  //THIS FILE IS AUTO GENERATED IN THE BACKEND REPO
     2  //TO MAKE CHANGES YOU NEED TO EDIT THE GAMECHAIN REPO 
     3  
     4  namespace Loom.ZombieBattleground.Common
     5  {
     6      public class Enumerators
     7      {
     8          public const string JSONVersion = '0.1' //constant for what json file generated this 
     9  
    10          {{- with .EnumDefinitions }}
    11          {{ range . }}
    12          public enum {{.Name}}
    13          {
    14              {{- with .Values -}}
    15                  {{range  $i, $e := . -}}
    16                  {{- if $i}},{{end}}
    17                  {{$e}}
    18                  {{- end }}
    19              {{- end}}
    20          }
    21          {{end -}} 
    22          {{end}}
    23      }
    24  }