mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
Start TEngine3.0
Start TEngine3.0
This commit is contained in:
18
Luban/Proto/gen_pb_code.bat
Normal file
18
Luban/Proto/gen_pb_code.bat
Normal file
@@ -0,0 +1,18 @@
|
||||
@echo off & setlocal enabledelayedexpansion
|
||||
cd %~dp0
|
||||
echo =================start gen proto code=================
|
||||
set pb_path=pb_message
|
||||
set out_path=..\..\Assets\GameMain\HotFix\Scripts\Proto
|
||||
del /f /s /q %out_path%\*.*
|
||||
for /f "delims=" %%i in ('dir /b %pb_path%') do (
|
||||
echo ------------%%i start gen
|
||||
protoc -I=pb_message --csharp_out=../../Assets/GameMain/HotFix/Scripts/Proto pb_message\%%i
|
||||
echo ------------%%i gen success
|
||||
)
|
||||
echo =================end gen proto code=================
|
||||
set cur_path=%~dp0
|
||||
set outEventPath=../../Assets\GameMain\HotFix\Scripts\Proto\Definition\Constant
|
||||
call ProtobufResolver.exe %cur_path%pb_message %outEventPath%
|
||||
echo =================end gen proto event=================
|
||||
pause
|
||||
|
Reference in New Issue
Block a user