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.
Exemplo n.º 1
0
		/// <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;
		}
Exemplo n.º 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;
		}
Exemplo n.º 3
0
		/// <see cref="ScriptCompiler._fireEvent(ref ScriptCompilerEvent, out object)"/>
		internal bool _fireEvent( ref ScriptCompilerEvent evt )
		{
			object o;
			return _fireEvent( ref evt, out o );
		}
Exemplo n.º 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);
 }