mirror of
https://gitlab.com/YuukiPS/GC-Proto.git
synced 2024-12-24 15:39:25 +03:00
update cmdid
This commit is contained in:
parent
c6c4ae534e
commit
919aed2ecf
@ -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....
|
@ -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
2147
cmdid_ht_34.json
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user