Esempio n. 1
0
		/// <summary>
		/// Creates a new instance of this class.
		/// </summary>
		/// <param name="animationsystem">The animation system.</param>
		public AnimationLoader(AnimationSystem animationsystem)
		{
			if (animationsystem == null) throw new ArgumentNullException("animationsystem");

			m_animationsystem = animationsystem;
			m_animationtitleregex = new Regex(@"^\s*Begin action\s+(-?\d+)(,.+)?\s*$", RegexOptions.IgnoreCase);
			m_clsnregex = new Regex(@"Clsn([12])(Default)?:\s*(\d+)", RegexOptions.IgnoreCase);
			m_clsnlineregex = new Regex(@"Clsn([12])?\[(-?\d+)\]\s*=\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*(-?\d+)", RegexOptions.IgnoreCase);
			m_elementregex = new Regex(@"\s*,\s*", RegexOptions.IgnoreCase);
		}
Esempio n. 2
0
        /// <summary>
        /// Creates a new instance of this class.
        /// </summary>
        /// <param name="animationsystem">The animation system.</param>
        public AnimationLoader(AnimationSystem animationsystem)
        {
            if (animationsystem == null)
            {
                throw new ArgumentNullException("animationsystem");
            }

            m_animationsystem     = animationsystem;
            m_animationtitleregex = new Regex(@"^\s*Begin action\s+(-?\d+)(,.+)?\s*$", RegexOptions.IgnoreCase);
            m_clsnregex           = new Regex(@"Clsn([12])(Default)?:\s*(\d+)", RegexOptions.IgnoreCase);
            m_clsnlineregex       = new Regex(@"Clsn([12])?\[(-?\d+)\]\s*=\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*(-?\d+)", RegexOptions.IgnoreCase);
            m_elementregex        = new Regex(@"\s*,\s*", RegexOptions.IgnoreCase);
        }