Exemple #1
0
        public ScriptHelper(Nwn2TriggerFactory triggerFactory)
        {
            if (triggerFactory == null)
            {
                throw new ArgumentNullException("triggerFactory");
            }

            this.triggerFactory = triggerFactory;
            this.addressFactory = new Nwn2AddressFactory();
            this.session        = new Nwn2Session();
            this.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>
        /// <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();
        }
 public Nwn2ImageProvider(NarrativeThreadsHelper nt)
 {
     this.nt     = nt;
     imageGetter = new ImageGetter();
 }
Exemple #4
0
 public Nwn2ObjectBlockFactory(Nwn2ImageProvider images)
 {
     this.images = images;
     this.helper = new NarrativeThreadsHelper();
 }
Exemple #5
0
 public Nwn2ObjectBlockFactory()
 {
     helper = new NarrativeThreadsHelper();
     images = new Nwn2ImageProvider(helper);
 }