• 关于updateElement接口


    1.bool UpdateGameElement(const struct_game_element& ele, gs_dbs_user_info_op_req& db_req, ::google::protobuf::RepeatedPtrField<struct_game_element>& c_rep_game_ele, gs_c_mail_ntf_array* pMailNtf = NULL, ::google::protobuf::RepeatedPtrField<user_hero>* c_heros = NULL);
    2,bool UpdateGameElement(const ::google::protobuf::RepeatedPtrField<struct_game_element>& rep_ele, gs_dbs_user_info_op_req& db_req, ::google::protobuf::RepeatedPtrField<struct_game_element>& c_rep_game_ele, gs_c_mail_ntf_array& mail_ntf, ::google::protobuf::RepeatedPtrField<user_hero>* c_heros = NULL);

    3.bool UpdateGameElement(const stGameElement& ele, gs_dbs_user_info_op_req& db_req, ::google::protobuf::RepeatedPtrField<struct_game_element>& c_rep_game_ele, gs_c_mail_ntf_array* pMailNtf = NULL, ::google::protobuf::RepeatedPtrField<user_hero>* c_heros = NULL);
    4.bool UpdateGameElement(const std::vector<stGameElement*> &eles, gs_dbs_user_info_op_req& db_req, ::google::protobuf::RepeatedPtrField<struct_game_element>& c_rep_game_ele, gs_c_mail_ntf_array& mail_ntf, ::google::protobuf::RepeatedPtrField<user_hero>* c_heros = NULL);
    bool UpdateGameElement(const std::vector<stGameElement> &eles, gs_dbs_user_info_op_req& db_req, ::google::protobuf::RepeatedPtrField<struct_game_element>& c_rep_game_ele, gs_c_mail_ntf_array& mail_ntf, ::google::protobuf::RepeatedPtrField<user_hero>* c_heros = NULL);

    对于单个因为有可能不需要邮件,因为可能是减或者根本不是道具所以有可能不需要,对于多个因为根本不知道加入的多个元素到底是什么东西,所以这个邮件是需要的,用引用是为了防止空指针的出现

  • 相关阅读:
    文件上传
    .NET格式化字符串详细说明
    外键
    VS IIS 注册 以及IIS浏览提示无权限访问
    CentOS 6.x 系统中安装原生 Hadoop 2
    Scrapy启动spider出错
    cmd进入pycharm所创建的虚拟环境
    基于mysql和Java Swing的简单课程设计
    python 内置函数
    java中的静态内部类
  • 原文地址:https://www.cnblogs.com/zzyoucan/p/4628508.html
Copyright © 2020-2023  润新知