Esempio n. 1
0
        RflagsBitsConstantsType(GenTypes genTypes)
        {
            var type = new ConstantsType(TypeIds.RflagsBitsConstants, ConstantsTypeFlags.None, null, GetConstants());

            genTypes.Add(type);
        }
Esempio n. 2
0
 protected override void Generate(ConstantsType constantsType) => constantsGenerator.Generate(constantsType);
Esempio n. 3
0
        InstructionInfoKeysType(GenTypes genTypes)
        {
            var type = new ConstantsType(TypeIds.InstructionInfoKeys, ConstantsTypeFlags.None, null, GetConstants());

            genTypes.Add(type);
        }
 void WriteConstants(FileWriter writer, ConstantsType constantsType) =>
 constantsWriter.Write(writer, constantsType, Array.Empty <string>());
Esempio n. 5
0
        OpCodeInfoFlagsType(GenTypes genTypes)
        {
            var type = new ConstantsType(TypeIds.OpCodeInfoFlags, ConstantsTypeFlags.None, null, GetConstants());

            genTypes.Add(type);
        }
Esempio n. 6
0
 public void SetConstants(ConstantsType type, object data)
 {
     switch (type)
     {
         case ConstantsType.AutoTranslate:
             Constants.AutoTranslate = data as Dictionary<string, string>;
             break;
         case ConstantsType.ChatCodes:
             Constants.ChatCodes = data as Dictionary<string, string>;
             break;
         case ConstantsType.ChatCodesXml:
             Constants.ChatCodesXml = data as string;
             break;
         case ConstantsType.Colors:
             Constants.Colors = data as Dictionary<string, string[]>;
             break;
         case ConstantsType.CultureInfo:
             Constants.CultureInfo = data as CultureInfo;
             break;
         case ConstantsType.CharacterName:
             Constants.CharacterName = data as string;
             break;
         case ConstantsType.ServerName:
             Constants.ServerName = data as string;
             break;
         case ConstantsType.GameLanguage:
             Constants.GameLanguage = data as string;
             break;
         case ConstantsType.EnableNLog:
             Constants.EnableNLog = data is bool && (bool) data;
             break;
         case ConstantsType.EnableHelpLabels:
             PluginViewModel.Instance.EnableHelpLabels = Constants.EnableHelpLabels = data is bool && (bool) data;
             break;
     }
 }
Esempio n. 7
0
        MiscInstrInfoTestConstantsType(GenTypes genTypes)
        {
            var type = new ConstantsType(TypeIds.MiscInstrInfoTestConstants, ConstantsTypeFlags.None, null, GetConstants());

            genTypes.Add(type);
        }
Esempio n. 8
0
        DecoderTestParserConstantsType(GenTypes genTypes)
        {
            var type = new ConstantsType(TypeIds.DecoderTestParserConstants, ConstantsTypeFlags.None, null, GetConstants());

            genTypes.Add(type);
        }
Esempio n. 9
0
 protected abstract void Generate(ConstantsType constantsType);
Esempio n. 10
0
        MiscSectionNamesType(GenTypes genTypes)
        {
            var type = new ConstantsType(TypeIds.MiscSectionNames, ConstantsTypeFlags.None, null, GetConstants());

            genTypes.Add(type);
        }
Esempio n. 11
0
 public abstract void Generate(ConstantsType constantsType);