인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

Inflearn Community Q&A

elan's profile image
elan

asked

[MMORPG Game Development Series with C# and Unity] Part 7: MMO Content Implementation (Unity + C# Server Integration Basics)

Protobuf porting (code review)

31:49초 에서도 GenPacket.bat 실행 시 오류 발생합니다

Written on

·

434

0

오류내용 :

Protocol.proto:8:3: "C_CHAT" is already defined in "Protocol".

Protocol.proto:8:3: Note that enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it.  Therefore, "C_CHAT" must be unique within "Protocol", not just within "MsgId".

Protocol.proto:9:3: "S_CHAT" is already defined in "Protocol".

Protocol.proto:9:3: Note that enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it.  Therefore, "S_CHAT" must be unique within "Protocol", not just within "MsgId".

unityC#

Answer 1

2

rookiss님의 프로필 이미지
rookiss
Instructor

에러 메시지에서 나온대로,
enum MsgId와 message를 다르게 하면 됩니다.
C_CHAT과 C_Chat 이렇게 대소문자를 구분해주시면 됩니다.

elan's profile image
elan

asked

Ask a question