30 lines
551 B
C#
30 lines
551 B
C#
namespace MMOserver.Game.Channel.Maps;
|
|
|
|
/*
|
|
* 게임 맵
|
|
* - 각 존 관리
|
|
* - 맵의 유저 관리
|
|
*/
|
|
public abstract class AMap
|
|
{
|
|
private Dictionary<int, Player> users = new Dictionary<int, Player>();
|
|
|
|
public abstract EnumMap GetMapType();
|
|
public abstract int GetMapId();
|
|
|
|
public void AddUser(int userId, Player player)
|
|
{
|
|
users[userId] = player;
|
|
}
|
|
|
|
public void RemoveUser(int userId)
|
|
{
|
|
users.Remove(userId);
|
|
}
|
|
|
|
public Dictionary<int, Player> GetUsers()
|
|
{
|
|
return users;
|
|
}
|
|
}
|