Server.Gumps.Gump.GetTypeID C# (CSharp) Méthode

GetTypeID() public static méthode

public static GetTypeID ( Type type ) : int
type System.Type
Résultat int
        public static int GetTypeID( Type type )
        {
            return type.FullName.GetHashCode();
        }

Usage Example

 public Gump(int x, int y)
 {
     this.m_Dragable   = true;
     this.m_Closable   = true;
     this.m_Resizable  = true;
     this.m_Disposable = true;
     do
     {
         this.m_Serial = Gump.m_NextSerial++;
     }while ((this.m_Serial == 0));
     this.m_X       = x;
     this.m_Y       = y;
     this.m_TypeID  = Gump.GetTypeID(base.GetType());
     this.m_Entries = new ArrayList();
     this.m_Strings = new ArrayList();
 }