Example #1
0
 public static bool Prefix(SimGameCharacter __instance)
 {
     try
     {
         return(false);
     }
     catch (Exception e)
     {
         Logger.Error(e);
         return(true);
     }
 }
Example #2
0
 public static void Prefix(SimGameCharacter __instance, ref bool state)
 {
     try
     {
         // Limit to certain characters
         if
         (
             __instance.character == SimGameState.SimGameCharacterType.HERALDRY ||
             __instance.character == SimGameState.SimGameCharacterType.MEMORIAL ||
             __instance.character == SimGameState.SimGameCharacterType.CONTRACTS
         )
         {
             Logger.Debug($"[SimGameCharacter_SetHighlightColor_PREFIX] Disable character highlight for {__instance.character}");
             state = false;
         }
     }
     catch (Exception e)
     {
         Logger.Error(e);
     }
 }