//指定版本
//注意proto3与proto2的写法有些不同
syntax = "proto3";

//包名，通过protoc生成时go文件时
package protocol;

enum ENTITY_TYPE {
    GHOST = 0;
    PLAYER = 1;
    NPC = 2;
    OBJ = 3;
}

enum FILTER_CLIENTS_OP {
    EQ = 0;
    NE = 1;
    GT = 2;
    LT = 3;
    GTE = 4;
    LTE = 5;
}

enum CHAT_TYPE {
    CT_WORLD = 0;
}


message Person {
    string name = 1;
    int32 id = 2;
    string email = 3;

    enum PhoneType {
        MOBILE = 0;
        HOME = 1;
        WORK = 2;
    }

    message PhoneNumber {
        string number = 1;
        PhoneType type = 2;
    }

    repeated PhoneNumber phones = 4;
    map<int32, string> subjects = 5;
}
