public static TC AddNewLocking <TC>(this SkyrimGroup <TC> itms, FormKey val) where TC : class, ISkyrimMajorRecordInternal { lock (itms) { return(itms.AddNew(val)); } }
public static void GroupAccessors() { var mod = new SkyrimMod(TestConstants.LightMasterModKey, SkyrimRelease.SkyrimSE); var group = new SkyrimGroup <Npc>(mod); if (group.TryGetValue(TestConstants.Form1, out var npc)) { } }