MudEngine:
- Set the Game.PlayerCollection property to Protected. You can no longer modify this list unless the class inherits from Game. Only 1 script is allowed to inherit from Game. - Created Game.GetPlayerCollection() method for retrieving a read-only reference to the playerCollection so scripts can access player data it might needs. - Updated various classes and scripts due to no longer being able to access the PlayerCollection property.
This commit is contained in:
parent
386d90df19
commit
c7d227745c
11 changed files with 69 additions and 38 deletions
|
@ -12,7 +12,7 @@ public class CommandSay : IGameCommand
|
|||
|
||||
String message = command.Substring("Say ".Length);
|
||||
|
||||
foreach (BaseCharacter p in player.ActiveGame.PlayerCollection)
|
||||
foreach (BaseCharacter p in player.ActiveGame.GetPlayerCollection())
|
||||
{
|
||||
if ((p.CurrentRoom.Realm == player.CurrentRoom.Realm) && (p.CurrentRoom.Zone == player.CurrentRoom.Zone) && (p.CurrentRoom.Filename == player.CurrentRoom.Filename))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue