This struct is a base class for events which can be thrown by the compilers and caught by subscribers. There are a set number of standard events which are used by Ogre's core. New event types may be derived for more custom compiler processing.
コード例 #1
0
ファイル: ScriptCompiler.cs プロジェクト: mono-soc-2011/axiom
		/// <summary>
		/// Internal method for firing the handleEvent method
		/// </summary>
		/// <param name="evt"></param>
		/// <param name="retVal"></param>
		/// <returns></returns>
		internal bool _fireEvent( ref ScriptCompilerEvent evt, out object retVal )
		{
			retVal = null;

			if ( this.OnCompilerEvent != null )
				return this.OnCompilerEvent( this, ref evt, out retVal );

			return false;
		}
コード例 #2
0
		/// <summary>
		/// Called when an event occurs during translation, return true if handled
		/// </summary>
		/// <remarks>
		/// This function is called from the translators when an event occurs that
		/// that can be responded to. Often this is overriding names, or it can be a request for
		///	custom resource creation.
		/// </remarks>
		/// <param name="compiler">A reference to the compiler</param>
		/// <param name="evt">The event object holding information about the event to be processed</param>
		/// <param name="retVal">A possible return value from handlers</param>
		/// <returns>True if the handler processed the event</returns>
		public virtual bool HandleEvent( ScriptCompiler compiler, ref ScriptCompilerEvent evt, out object retVal )
		{
			retVal = null;
			return false;
		}
コード例 #3
0
ファイル: ScriptCompiler.cs プロジェクト: mono-soc-2011/axiom
		/// <see cref="ScriptCompiler._fireEvent(ref ScriptCompilerEvent, out object)"/>
		internal bool _fireEvent( ref ScriptCompilerEvent evt )
		{
			object o;
			return _fireEvent( ref evt, out o );
		}
コード例 #4
0
 /// <summary>
 /// Called when an event occurs during translation, return true if handled
 /// </summary>
 /// <remarks>
 /// This function is called from the translators when an event occurs that
 /// that can be responded to. Often this is overriding names, or it can be a request for
 ///	custom resource creation.
 /// </remarks>
 /// <param name="compiler">A reference to the compiler</param>
 /// <param name="evt">The event object holding information about the event to be processed</param>
 /// <param name="retVal">A possible return value from handlers</param>
 /// <returns>True if the handler processed the event</returns>
 public virtual bool HandleEvent(ScriptCompiler compiler, ref ScriptCompilerEvent evt, out object retVal)
 {
     retVal = null;
     return(false);
 }