Exemplo n.º 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));
     }
 }
Exemplo n.º 2
0
 internal static void Evt_USMSceneLoaded(Scene scene, LoadSceneMode mode)
 {
     AutoItemConfig.CleanupDirty(false);
 }
Exemplo n.º 3
0
 internal static void On_GNMDisconnect(On.RoR2.Networking.GameNetworkManager.orig_Disconnect orig, GameNetworkManager self)
 {
     orig(self);
     AutoItemConfig.CleanupDirty(true);
 }