Use "package". 
https://developers.google.com/protocol-buffers/docs/proto#packages

On Wed, Jan 14, 2015 at 2:27 AM, you zhou <zhyou...@gmail.com> wrote:
> in my project, file name as module name, like that
> file(module):battle.proto
> message SyncMapReq{
>
> }
> message SyncMapResp{
>     message Map map = 1;
>     repeated Player player = 2;
> }
> message Player {
>     required int32 x = 1;
>     required int32 y = 2;
>     required int32 speed = 3;
>     required int32 hp = 4;
> }
> file(module): base.proto
> message LoadPlayerReq{
> }
> message LoadPlayerResp{
>     required Player player = 1;
> }
> message Player {
>     required string name = 1;
>     required int32 level = 2;
>     required int32 gold = 3;
>     required int32 gem = 4;
> }
> how can i make it work?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to protobuf+unsubscr...@googlegroups.com.
> To post to this group, send email to protobuf@googlegroups.com.
> Visit this group at http://groups.google.com/group/protobuf.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to