[This is preliminary documentation and is subject to change.]

Namespace:  Phoenix
Assembly:  Phoenix (in Phoenix.dll) Version: 0.7.0.0

Syntax

         
 C#  Visual Basic  Visual C++ 
public class ServerMessageHandlerAttribute : MessageHandlerAttributeBase
Public Class ServerMessageHandlerAttribute _
	Inherits MessageHandlerAttributeBase
public ref class ServerMessageHandlerAttribute : public MessageHandlerAttributeBase

Members

         
 All Members  Constructors   Properties  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
ServerMessageHandlerAttribute(Byte)
Initializes a new instance of the ServerMessageHandlerAttribute class
Id (Inherited from MessageHandlerAttributeBase.)
Priority (Inherited from MessageHandlerAttributeBase.)

Examples

This sample shows how to use ServerMessageHandlerAttribute. It is not required to be used on static methods.
CopyC#
public static class SomeClass
{
   [ServerMessageHandler(0x2C)]
   public static CallbackResult OnDeath(byte[] data, CallbackResult prevResult)
   {
       UO.Print("You are DEAD!");
       return CallbackResult.Normal;
   }
}

Inheritance Hierarchy

System..::.Object
  System..::.Attribute
    Phoenix..::.RuntimeAttribute
      Phoenix..::.MessageHandlerAttributeBase
        Phoenix..::.ServerMessageHandlerAttribute

See Also