Server.Spells.SpellRegistry.Register C# (CSharp) Méthode

Register() public static méthode

public static Register ( int spellID, Type type ) : void
spellID int
type System.Type
Résultat void
		public static void Register( int spellID, Type type )
		{
			if ( spellID < 0 || spellID >= m_Types.Length )
				return;

			if ( m_Types[spellID] == null )
				++m_Count;

			m_Types[spellID] = type;

			if( !m_IDsFromTypes.ContainsKey( type ) )
				m_IDsFromTypes.Add( type, spellID );
		}

Usage Example

Exemple #1
0
 public static void Register(int spellID, Type type)
 {
     SpellRegistry.Register(spellID, type);
 }