Exemple #1
0
        /// <summary>
        /// Constructs a new <see cref="NWScriptAttacher"/> instance.
        /// </summary>
        /// <param name="translator">The translator which will
        /// be used to translate scripts before attaching them.</param>
        /// <param name="session">The helper class used for creating,
        /// compiling and attaching scripts.</param>
        /// <param name="backups">The folder to save a second backup
        /// copy of created script files to. A null or invalid backup
        /// path will be ignored.</param>
        public NWScriptAttacher(FlipTranslator translator, INwn2Session session, string backups) : base(translator)
        {
            if (session == null)
            {
                throw new ArgumentNullException("session");
            }

            this.game    = new GameInformation("Neverwinter Nights 2");
            this.session = session;
            this.backups = backups;

            pathChecker           = new PathChecker();
            createFoldersForUsers = false;             // not necessary as now backing up to user profile
            nt = new NarrativeThreadsHelper();
        }
Exemple #2
0
 /// <summary>
 /// Constructs a new <see cref="NWScriptAttacher"/> instance.
 /// </summary>
 /// <param name="translator">The translator which will
 /// be used to translate scripts before attaching them.</param>
 /// <param name="session">The helper class used for creating,
 /// compiling and attaching scripts.</param>
 public NWScriptAttacher(FlipTranslator translator, INwn2Session session) : this(translator, session, null)
 {
 }
Exemple #3
0
 public FakeAttacher(FlipTranslator translator) : base(translator)
 {
     this.game = new GameInformation("GoodGame");
 }