Example #1
0
 internal void ServerAICSyncOneToAllLegacy(AutoItemConfig targetConfig, object newValue)
 {
     foreach (var user in NetworkUser.readOnlyInstancesList)
     {
         if (user.hasAuthority || (user.connectionToClient != null && Util.ConnectionIsLocal(user.connectionToClient)))
         {
             continue;
         }
         TargetAICSyncOneToAllLegacy(user.connectionToClient, targetConfig.modName, targetConfig.configEntry.Definition.Section, targetConfig.configEntry.Definition.Key,
                                     TomlTypeConverter.ConvertToString(newValue, targetConfig.propType));
     }
 }
 internal static void Evt_USMSceneLoaded(Scene scene, LoadSceneMode mode)
 {
     AutoItemConfig.CleanupDirty(false);
 }
 internal static void On_GNMDisconnect(On.RoR2.Networking.GameNetworkManager.orig_Disconnect orig, GameNetworkManager self)
 {
     orig(self);
     AutoItemConfig.CleanupDirty(true);
 }