Allow Skills to be enumerated.
This commit is contained in:
parent
e336c2920c
commit
2d8902d0e4
1 changed files with 6 additions and 1 deletions
|
|
@ -689,7 +689,7 @@ namespace Server
|
|||
}
|
||||
|
||||
[PropertyObject]
|
||||
public class Skills
|
||||
public class Skills : IEnumerable
|
||||
{
|
||||
private Mobile m_Owner;
|
||||
private Skill[] m_Skills;
|
||||
|
|
@ -1107,5 +1107,10 @@ namespace Server
|
|||
if ( ns != null )
|
||||
ns.Send( new SkillChange( skill ) );
|
||||
}
|
||||
|
||||
public IEnumerator GetEnumerator()
|
||||
{
|
||||
return m_Skills.GetEnumerator();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue