diff --git a/MMOTestServer/MMOserver/Game/Channel/Channel.cs b/MMOTestServer/MMOserver/Game/Channel/Channel.cs index 0b0c2cd..370207d 100644 --- a/MMOTestServer/MMOserver/Game/Channel/Channel.cs +++ b/MMOTestServer/MMOserver/Game/Channel/Channel.cs @@ -5,6 +5,14 @@ using MMOserver.Game.Party; namespace MMOserver.Game.Channel; +/* + * Channel 클래스 + * - 채널 내 Peer 관리 + * - 채널 내 유저관리 + * - 맵 관리 + * - 인스턴스 던전 관리 + * - 동적 맵 id 생성 + */ public class Channel { // 채널 내 유저 NetPeer (hashKey → NetPeer) — BroadcastToChannel 교차 조회 제거용 diff --git a/MMOTestServer/MMOserver/Game/Channel/Maps/AMap.cs b/MMOTestServer/MMOserver/Game/Channel/Maps/AMap.cs index cda1f4d..72afcb8 100644 --- a/MMOTestServer/MMOserver/Game/Channel/Maps/AMap.cs +++ b/MMOTestServer/MMOserver/Game/Channel/Maps/AMap.cs @@ -1,5 +1,10 @@ namespace MMOserver.Game.Channel.Maps; +/* + * 게임 맵 + * - 각 존 관리 + * - 맵의 유저 관리 + */ public abstract class AMap { private Dictionary users = new Dictionary(); diff --git a/MMOTestServer/MMOserver/Game/Channel/Maps/EunmMap.cs b/MMOTestServer/MMOserver/Game/Channel/Maps/EunmMap.cs index 2380ed9..33116d1 100644 --- a/MMOTestServer/MMOserver/Game/Channel/Maps/EunmMap.cs +++ b/MMOTestServer/MMOserver/Game/Channel/Maps/EunmMap.cs @@ -1,8 +1,15 @@ namespace MMOserver.Game.Channel.Maps; +/* + * 맵 타입 + * - ROBBY : 마을 + * - DUNGEON : 오픈월드 던전 (마을 외곽) + * - INSTANCE : 인스턴스 레이드 던전(포톤용) + */ public enum EnumMap : int { NONE = 0, ROBBY = 1, + DUNGEON = 2, INSTANCE = 10, } diff --git a/MMOTestServer/MMOserver/Game/Channel/Maps/InstanceDungeun/BossInstance.cs b/MMOTestServer/MMOserver/Game/Channel/Maps/InstanceDungeun/BossInstance.cs index e9b6f9e..4d6c96b 100644 --- a/MMOTestServer/MMOserver/Game/Channel/Maps/InstanceDungeun/BossInstance.cs +++ b/MMOTestServer/MMOserver/Game/Channel/Maps/InstanceDungeun/BossInstance.cs @@ -3,7 +3,9 @@ using MMOserver.Game.Engine; namespace MMOserver.Game.Channel.Maps.InstanceDungeun; -// 인스턴스 보스 맵에 들어갈때 쓰는 것 +/* + * 인스턴스 보스 레이드에 진입은 하나의 Map으로 처리 + */ public class BossInstance : AMap { private EnumMap enumMap; diff --git a/MMOTestServer/MMOserver/Game/Channel/Maps/Robby.cs b/MMOTestServer/MMOserver/Game/Channel/Maps/Robby.cs index d8890c5..34199b5 100644 --- a/MMOTestServer/MMOserver/Game/Channel/Maps/Robby.cs +++ b/MMOTestServer/MMOserver/Game/Channel/Maps/Robby.cs @@ -2,18 +2,14 @@ namespace MMOserver.Game.Channel.Maps; +/* + * 마을(로비) + */ public class Robby : AMap { private EnumMap enumMap; private int mapId; - // 마을 시작 지점 넣어 둔다. - public static Vector3 StartPosition - { - get; - set; - } = new Vector3(0, 0, 0); - public Robby(int mapId, EnumMap enumMap = EnumMap.ROBBY) { this.enumMap = enumMap; diff --git a/MMOTestServer/MMOserver/RDB/DbConnectionFactory.cs b/MMOTestServer/MMOserver/RDB/DbConnectionFactory.cs index 75c4843..183af4d 100644 --- a/MMOTestServer/MMOserver/RDB/DbConnectionFactory.cs +++ b/MMOTestServer/MMOserver/RDB/DbConnectionFactory.cs @@ -5,6 +5,9 @@ using ServerLib.RDB.Database; namespace MMOserver.RDB; +/* + * DB Helper 사용 테스트 코드이다. + */ public class DbConnectionFactory : IDbConnectionFactory { private readonly string connectionString;