feat : 파티 패킷 구조 1개로 통일(CRUD)

This commit is contained in:
qornwh1
2026-03-08 20:13:07 +09:00
parent 76c6f46bbe
commit 1b7f0003fb
4 changed files with 16 additions and 54 deletions

View File

@@ -523,16 +523,12 @@ public class DamagePacket
public enum PartyUpdateType public enum PartyUpdateType
{ {
CREATE, CREATE,
DELETE DELETE,
}
public enum UserPartyUpdateType
{
JOIN, JOIN,
LEAVE LEAVE
} }
// UPDATE_PARTY // UPDATE_PARTY - 파티 생성/삭제: LeaderId 사용 / 파티원 추가/제거: PlayerId 사용
[ProtoContract] [ProtoContract]
public class UpdatePartyPacket public class UpdatePartyPacket
{ {
@@ -556,30 +552,18 @@ public class UpdatePartyPacket
get; get;
set; set;
} }
}
// UPDATE_USER_PARTY [ProtoMember(4)]
[ProtoContract]
public class UpdateUserPartyPacket
{
[ProtoMember(1)]
public int PartyId
{
get;
set;
}
[ProtoMember(2)]
public int PlayerId public int PlayerId
{ {
get; get;
set; set;
} }
[ProtoMember(3)] [ProtoMember(5)]
public UserPartyUpdateType Type public string PartyName
{ {
get; get;
set; set;
} } // CREATE일 때 사용
} }

View File

@@ -48,11 +48,8 @@ public enum PacketCode : ushort
// 데미지 UI 전달 (서버 -> 클라) // 데미지 UI 전달 (서버 -> 클라)
DAMAGE, DAMAGE,
// 파티 (생성, 삭제) // 파티 생성/삭제, 파티원 추가/제거 (서버 -> 클라)
UPDATE_PARTY, UPDATE_PARTY
// 파티 유저 업데이트(추가 삭제)
UPDATE_USER_PARTY
} }
public class PacketHeader public class PacketHeader

View File

@@ -523,16 +523,12 @@ public class DamagePacket
public enum PartyUpdateType public enum PartyUpdateType
{ {
CREATE, CREATE,
DELETE DELETE,
}
public enum UserPartyUpdateType
{
JOIN, JOIN,
LEAVE LEAVE
} }
// UPDATE_PARTY // UPDATE_PARTY - 파티 생성/삭제: LeaderId 사용 / 파티원 추가/제거: PlayerId 사용
[ProtoContract] [ProtoContract]
public class UpdatePartyPacket public class UpdatePartyPacket
{ {
@@ -556,30 +552,18 @@ public class UpdatePartyPacket
get; get;
set; set;
} }
}
// UPDATE_USER_PARTY [ProtoMember(4)]
[ProtoContract]
public class UpdateUserPartyPacket
{
[ProtoMember(1)]
public int PartyId
{
get;
set;
}
[ProtoMember(2)]
public int PlayerId public int PlayerId
{ {
get; get;
set; set;
} }
[ProtoMember(3)] [ProtoMember(5)]
public UserPartyUpdateType Type public string PartyName
{ {
get; get;
set; set;
} } // CREATE일 때 사용
} }

View File

@@ -48,11 +48,8 @@ public enum PacketCode : ushort
// 데미지 UI 전달 (서버 -> 클라) // 데미지 UI 전달 (서버 -> 클라)
DAMAGE, DAMAGE,
// 파티 (생성, 삭제) // 파티 생성/삭제, 파티원 추가/제거 (서버 -> 클라)
UPDATE_PARTY, UPDATE_PARTY
// 파티 유저 업데이트(추가 삭제)
UPDATE_USER_PARTY
} }
public class PacketHeader public class PacketHeader