public JournalRenameSuitLoadout(JObject evt) : base(evt, JournalTypeEnum.RenameSuitLoadout) { SuitID = ulong.MaxValue; // Limit search to this class only using DeclaredOnly. evt.ToObjectProtected(this.GetType(), true, false, System.Reflection.BindingFlags.Static | System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.DeclaredOnly, this); // read fields named in this structure matching JSON names SuitFriendlyName = ItemData.GetSuit(SuitName, SuitName_Localised)?.Name ?? SuitName_Localised; SuitName = SuitName.ToLower(); // normalise }
public JournalLoadoutRemoveModule(JObject evt) : base(evt, JournalTypeEnum.LoadoutRemoveModule) { SuitID = ulong.MaxValue; // Limit search to this class only using DeclaredOnly. evt.ToObjectProtected(this.GetType(), true, false, System.Reflection.BindingFlags.Static | System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.DeclaredOnly, this); // read fields named in this structure matching JSON names SuitFriendlyName = ItemData.GetSuit(SuitName, SuitName_Localised)?.Name ?? SuitName_Localised; SuitName = SuitName.ToLower(); // normalise ModuleNameFriendly = ItemData.GetWeapon(ModuleName, ModuleName_Localised)?.Name ?? ModuleName_Localised; SlotFriendlyName = SlotName.SplitCapsWordFull(); SlotName = SlotName.ToLower(); ModuleName = ModuleName.ToLower(); }