feat : 파티 패킷 추가 / 채널 접속시 모든 파티 리스트 전달
This commit is contained in:
@@ -541,6 +541,44 @@ public class ErrorPacket
|
||||
}
|
||||
}
|
||||
|
||||
// ============================================================
|
||||
// 파티
|
||||
// ============================================================
|
||||
|
||||
public enum PartyUpdateType
|
||||
{
|
||||
CREATE,
|
||||
DELETE,
|
||||
JOIN,
|
||||
LEAVE
|
||||
}
|
||||
|
||||
// REQUEST_PARTY (클라 -> 서버) - CREATE: PartyName 사용 / JOIN·LEAVE·DELETE: PartyId 사용
|
||||
[ProtoContract]
|
||||
public class RequestPartyPacket
|
||||
{
|
||||
[ProtoMember(1)]
|
||||
public PartyUpdateType Type
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
[ProtoMember(2)]
|
||||
public int PartyId
|
||||
{
|
||||
get;
|
||||
set;
|
||||
} // JOIN, LEAVE, DELETE 시 사용
|
||||
|
||||
[ProtoMember(3)]
|
||||
public string PartyName
|
||||
{
|
||||
get;
|
||||
set;
|
||||
} // CREATE 시 사용
|
||||
}
|
||||
|
||||
// ============================================================
|
||||
// 채팅
|
||||
// ============================================================
|
||||
@@ -598,40 +636,6 @@ public class ChatPacket
|
||||
// 파티
|
||||
// ============================================================
|
||||
|
||||
public enum PartyUpdateType
|
||||
{
|
||||
CREATE,
|
||||
DELETE,
|
||||
JOIN,
|
||||
LEAVE
|
||||
}
|
||||
|
||||
// REQUEST_PARTY (클라 -> 서버) - CREATE: PartyName 사용 / JOIN·LEAVE·DELETE: PartyId 사용
|
||||
[ProtoContract]
|
||||
public class RequestPartyPacket
|
||||
{
|
||||
[ProtoMember(1)]
|
||||
public PartyUpdateType Type
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
[ProtoMember(2)]
|
||||
public int PartyId
|
||||
{
|
||||
get;
|
||||
set;
|
||||
} // JOIN, LEAVE, DELETE 시 사용
|
||||
|
||||
[ProtoMember(3)]
|
||||
public string PartyName
|
||||
{
|
||||
get;
|
||||
set;
|
||||
} // CREATE 시 사용
|
||||
}
|
||||
|
||||
// UPDATE_PARTY (서버 -> 클라) - 파티 생성/삭제: LeaderId 사용 / 파티원 추가/제거: PlayerId 사용
|
||||
[ProtoContract]
|
||||
public class UpdatePartyPacket
|
||||
|
||||
Reference in New Issue
Block a user