Proto commits in phuhao00/greatestworks

These 21 commits are when the Protocol Buffers files have changed:

Commit:91beb31
Author:phuhao00

feat: 实现角色位置持久化、战斗伤害计算和E2E测试工具 - 领域层:扩展Player聚合根,增加lastMapID字段和SetLastLocation方法 - 应用层:新增CharacterService.UpdateLastLocation接口,实现位置持久化 - 应用层:重构FightService.CastSkillByID,返回SkillCastResult结构(包含伤害和暴击信息) - 应用层:实现伤害计算逻辑(基础伤害 + 10%暴击率,暴击1.5倍伤害) - 基础设施:更新PlayerDocument,增加LastMapID字段 - 基础设施:在gateway_bootstrap中初始化MongoDB连接和CharacterService - 接口层:handlePlayerLogin加载DB中持久化位置,在保存位置登录 - 接口层:handlePlayerLogout和cleanupConnection在登出/断线时保存位置 - 接口层:handleSkillCast集成战斗结果,通过AOI广播伤害和暴击信息 - 工具层:新增E2E测试场景,支持auth→connect→login→move→skill→logout完整流程 - 工具层:实现JSON payload支持的TCP消息构造 - 工具层:提供e2e.yaml(单次测试)和e2e_load.yaml(压测)配置 - 文档:新增README_E2E.md,包含使用说明、配置示例和故障排查 变更影响: - MongoDB现在是gateway服务的必需依赖 - 战斗结果通过AOI系统广播给可见实体 - SimClient支持完整E2E测试和负载测试场景

Commit:e4b3f96
Author:phuhao00

infrastructure: introduce unified bootstraps for auth, game, and gateway; refactor mains to use bootstraps; add lifecycle Done(); wire Mongo/Redis/NATS/HTTP/RPC/TCP; remove obsolete cmd stubs - Add internal/infrastructure/bootstrap/{auth,game,gateway}_bootstrap.go - Update cmd/{auth-service,game-service,gateway-service}/main.go to use new bootstraps - Expose Done() on scene & replication bootstraps and update mains accordingly - Delete obsolete cmd/{scene,replication}/service.go stubs - Keep behavior consistent; build and tests pass

Commit:980ff76
Author:phuhao00

feat: 实现proto常量集中管理和代码生成 - 创建专门的错误码proto文件(proto/errors.proto),包含所有错误码和错误消息 - 创建专门的消息号proto文件(proto/messages.proto),包含所有消息类型常量 - 合理拆分proto文件,按功能模块组织(battle, player, pet, common, protocol) - 更新所有代码引用,使用proto生成的常量替代硬编码常量 - 修复所有编译错误,添加缺失的消息ID常量 - 生成对应的Go代码到internal/proto/目录 - 确保类型安全和一致性,统一管理所有交互枚举和常量

Commit:af35f02
Author:phuhao00

feat: 生成Go pb文件并正确引用 - 安装protoc编译器和Go插件 - 生成protobuf消息定义文件(不包含gRPC) - 按照最佳实践组织文件结构: * internal/proto/common/ - 通用消息 * internal/proto/player/ - 玩家相关消息 * internal/proto/battle/ - 战斗相关消息 * internal/proto/pet/ - 宠物相关消息 - 更新RPC服务文件引用生成的pb包 - 支持C#和Go客户端代码生成 - 完全基于netcore-go RPC,不使用gRPC

Commit:6c16e17
Author:phuhao00

feat: 添加完整的Proto文件支持和netcore-go RPC实现 - 创建完整的proto文件定义: * common.proto - 通用消息定义 * player.proto - 玩家服务定义 * battle.proto - 战斗服务定义 * pet.proto - 宠物服务定义 - 添加Proto文件生成脚本: * generate_proto.sh (Linux/macOS) * generate_proto.bat (Windows) * Makefile支持一键生成 - 实现netcore-go RPC服务: * RPCServer - 核心RPC服务器 * PlayerRPCService - 玩家RPC服务 * BattleRPCService - 战斗RPC服务 * PetRPCService - 宠物RPC服务 - 支持C#和Go客户端代码生成 - 不使用gRPC,完全基于netcore-go RPC架构 - 提供完整的服务接口和请求处理

Commit:71117c0
Author:phuhao00

fix: 继续修复linter错误,移除gRPC依赖,改用netcore-go RPC - 移除gRPC相关代码和依赖 - 修复netcore-go导入错误,暂时注释掉缺失的包 - 修复协议相关错误,统一消息类型定义 - 修复服务方法缺失问题,添加Login、Logout、GetPlayerInfo、UpdatePlayer方法 - 修复协议消息结构定义 - 修复Logger接口重复声明问题 继续修复2346个linter错误中的关键问题

This commit does not contain any .proto files.

Commit:8bd0fef
Author:phuhao00

fix: 修复大量linter错误 - 修复导入错误:处理缺失的包和模块 - 修复字符串字面量错误:处理未终止的字符串 - 修复语法错误:处理EOF、括号不匹配等问题 - 清理未使用的导入 - 修复未定义类型错误:处理缺失的类型和方法 - 修复重复声明错误:处理重复的变量和类型 - 修复方法签名错误:处理参数不匹配和方法缺失 修复了2443个linter错误中的大部分关键错误,涉及171个文件

Commit:8ecd897
Author:phuhao00

feat: 重构网络架构,实现HTTP/TCP/gRPC多协议支持 ## 网络架构重构 - 明确协议职责分工:HTTP(认证管理)、TCP(游戏核心)、gRPC(服务通信) - 重构HTTP接口层,实现用户认证和GM管理功能 - 重构TCP接口层,处理游戏核心功能和实时交互 - 实现gRPC服务间通信,支持微服务架构 ## 主要功能实现 - HTTP JWT认证系统和GM后台管理接口 - TCP游戏协议处理器和连接管理 - gRPC服务定义和拦截器 - 统一的消息格式和错误处理 - 多协议服务器配置和启动机制 - 完整的认证授权和监控日志体系 ## 技术改进 - 支持万级并发连接 - 实现优雅关闭和健康检查 - 添加性能监控和错误追踪 - 建立企业级安全认证体系 项目现已具备现代化MMO游戏服务器的完整网络架构

The documentation is generated from this commit.

Commit:22983c3
Author:phuhao00

feat: Complete DDD architecture refactoring Major changes: - Migrated all gameplay modules to domain layer following DDD principles - Restructured config, aop, protocol into infrastructure layer - Created complete application services for all domains - Implemented infrastructure repositories and TCP handlers - Added comprehensive social domain (chat, friend, family, team, email) - Optimized project structure and cleaned up unnecessary files - Updated .gitignore to include .trae/ and other improvements - Created docs structure with diagrams and architecture documentation Architecture improvements: - Clear separation of concerns with DDD layers - Proper dependency injection and service organization - Standardized configuration management - Enhanced logging and monitoring systems - Complete protocol management system This refactoring establishes a solid foundation for the MMO game server with maintainable, scalable, and testable code architecture.

This commit does not contain any .proto files.

Commit:287daa1
Author:phuhao00

net add

Commit:b390ec5
Author:phuhao00

file orgnize

Commit:c611205
Author:calvin

add many

Commit:c42e625
Author:phuhao00

add many

Commit:30fd2ad
Author:calvin

metrics ,setting,protos folder add

Commit:687cf1f
Author:phuhao00

grpc

Commit:d31b73e
Author:phuhao00

gob add

Commit:62b2d32
Author:calvin

add submodule

This commit does not contain any .proto files.

Commit:5dd15a7
Author:calvin

add attribute.proto and change the structure of the project

Commit:1ed2fa1
Author:calvin

delete unused and complete the logic of simulate client

Commit:575c2ca
Author:calvin

模拟客户单和服务端的数据,改用正式的玩法

Commit:87be308
Author:calvin

client mocks logic