RflagsBitsConstantsType(GenTypes genTypes) { var type = new ConstantsType(TypeIds.RflagsBitsConstants, ConstantsTypeFlags.None, null, GetConstants()); genTypes.Add(type); }
protected override void Generate(ConstantsType constantsType) => constantsGenerator.Generate(constantsType);
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>());
OpCodeInfoFlagsType(GenTypes genTypes) { var type = new ConstantsType(TypeIds.OpCodeInfoFlags, ConstantsTypeFlags.None, null, GetConstants()); genTypes.Add(type); }
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; } }
MiscInstrInfoTestConstantsType(GenTypes genTypes) { var type = new ConstantsType(TypeIds.MiscInstrInfoTestConstants, ConstantsTypeFlags.None, null, GetConstants()); genTypes.Add(type); }
DecoderTestParserConstantsType(GenTypes genTypes) { var type = new ConstantsType(TypeIds.DecoderTestParserConstants, ConstantsTypeFlags.None, null, GetConstants()); genTypes.Add(type); }
protected abstract void Generate(ConstantsType constantsType);
MiscSectionNamesType(GenTypes genTypes) { var type = new ConstantsType(TypeIds.MiscSectionNames, ConstantsTypeFlags.None, null, GetConstants()); genTypes.Add(type); }
public abstract void Generate(ConstantsType constantsType);