예제 #1
0
 public static bool VesselComputer_SetAsTranslated(NomaiVesselComputer __instance, int id)
 {
     if (__instance.IsTranslated(id))
     {
         return(true);
     }
     QSBEventManager.FireEvent(
         EventNames.QSBTextTranslated,
         NomaiTextType.VesselComputer,
         QSBWorldSync.GetIdFromUnity <QSBVesselComputer, NomaiVesselComputer>(__instance),
         id);
     return(true);
 }
예제 #2
0
 public static bool Wall_SetAsTranslated(NomaiWallText __instance, int id)
 {
     if (__instance.IsTranslated(id))
     {
         return(true);
     }
     QSBEventManager.FireEvent(
         EventNames.QSBTextTranslated,
         NomaiTextType.WallText,
         QSBWorldSync.GetIdFromUnity <QSBWallText, NomaiWallText>(__instance),
         id);
     return(true);
 }