update cmdid

This commit is contained in:
Akbar Yahya 2023-01-28 21:50:50 +08:00
parent c6c4ae534e
commit 919aed2ecf
3 changed files with 2148 additions and 15 deletions

View File

@ -1,3 +1,2 @@
# Grasscutter Protos
This repository contains the [ProtoBuf](https://github.com/google/protobuf) `.proto` files for [Sorapointa Proto](https://github.com/Sorapointa/Sorapointa-Protos) APIs.<br/>
Then use [SoraToJava.py](/SoraToJava.py) so that it can be used for [Grasscutter](https://github.com/Grasscutters/Grasscutter).
It's a mix of sources, which I'll tell you about later once this is working....

View File

@ -1,13 +0,0 @@
import os
for file in os.listdir(r'./proto'):
with open(f'./proto/{file}', 'r') as f:
temp = '// Proto has been converted from Sorapointa to Grasscutter format\n'
for line in f.readlines():
if 'org.sorapointa.proto' in line:
temp += "option java_package = \"emu.grasscutter.net.proto\";\n"
else:
temp += line
with open(f'./proto/{file}', 'w') as out:
out.write(temp)

2147
cmdid_ht_34.json Normal file

File diff suppressed because it is too large Load Diff