Beispiel #1
0
 /// <summary>
 /// Outputs to disk.
 /// </summary>
 /// <param name="rewrite">The rewrite.</param>
 /// <returns></returns>
 private bool OutputToDisk(IRewriteScripts rewrite)
 {
     if (rewrite.WriteToHardDisk())
     {
         return(true);
     }
     return(false);
 }
Beispiel #2
0
 /// <summary>
 /// Sets the editor imports.
 /// </summary>
 /// <param name="rewrite">The rewrite.</param>
 /// <returns></returns>
 private bool SetEditorImports(IRewriteScripts rewrite)
 {
     if (rewrite.WriteImports(cbd.BridgeGalaxyReplacementIdentifier, cbd2.BridgeSovereignReplacementIdentifier, csd.GalaxyShipReplacementIdentifier, csd2.SovereignShipReplacementIdentifier))
     {
         return(true);
     }
     return(false);
 }
Beispiel #3
0
 /// <summary>
 /// Sets the scripts.
 /// </summary>
 /// <param name="rewrite">The rewrite.</param>
 /// <returns></returns>
 private bool SetScripts(IRewriteScripts rewrite)
 {
     if (rewrite.WriteGalaxyReplacement(cbd.type, cbd.BridgeGalaxyReplacementIdentifier) &&
         rewrite.WriteGalaxyReplacement(csd.type, csd.GalaxyShipReplacementIdentifier) &&
         rewrite.WriteSovereignReplacement(cbd2.type, cbd2.BridgeSovereignReplacementIdentifier) &&
         rewrite.WriteSovereignReplacement(csd2.type, csd2.SovereignShipReplacementIdentifier))
     {
         return(true);
     }
     return(false);
 }
Beispiel #4
0
 /// <summary>
 /// Sets the editor variables.
 /// </summary>
 /// <param name="rewrite">The rewrite.</param>
 /// <returns></returns>
 private bool SetEditorVariables(IRewriteScripts rewrite)
 {
     if (rewrite.WriteVariables(csd2.SovereignShipReplacementIdentifier, csd2.ShipScript) &&
         rewrite.WriteVariables(csd.GalaxyShipReplacementIdentifier, csd.ShipScript) &&
         rewrite.WriteVariables(cbd2.BridgeSovereignReplacementIdentifier, cbd2.BridgeScript) &&
         rewrite.WriteVariables(cbd.BridgeGalaxyReplacementIdentifier, cbd.BridgeScript))
     {
         return(true);
     }
     return(false);
 }