mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-22 17:51:53 +00:00
Initial commit
This commit is contained in:
commit
3b45ff7d46
54
.gitignore
vendored
Normal file
54
.gitignore
vendored
Normal file
@ -0,0 +1,54 @@
|
||||
# Compiled class file
|
||||
*.class
|
||||
|
||||
#idea
|
||||
*.idea
|
||||
# Log file
|
||||
*.log
|
||||
|
||||
# BlueJ files
|
||||
*.ctxt
|
||||
|
||||
# Mobile Tools for Java (J2ME)
|
||||
.mtj.tmp/
|
||||
|
||||
# Package Files #
|
||||
*.war
|
||||
*.nar
|
||||
*.ear
|
||||
*.zip
|
||||
*.tar.gz
|
||||
*.rar
|
||||
|
||||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
|
||||
hs_err_pid*
|
||||
|
||||
# Ignore Gradle project-specific cache directory
|
||||
.gradle
|
||||
|
||||
# Ignore Gradle build output directory
|
||||
build
|
||||
|
||||
# Eclipse
|
||||
.project
|
||||
.classpath
|
||||
.settings
|
||||
.metadata
|
||||
.properties
|
||||
bin/
|
||||
tmp/
|
||||
*.tmp
|
||||
*.bak
|
||||
*.swp
|
||||
*~.nib
|
||||
.loadpath
|
||||
.recommenders
|
||||
|
||||
# Grasscutter
|
||||
resources/*
|
||||
data/AbilityEmbryos.json
|
||||
data/OpenConfig.json
|
||||
proto/auto/
|
||||
proto/protoc.exe
|
||||
GM Handbook.txt
|
||||
config.json
|
201
LICENSE
Normal file
201
LICENSE
Normal file
@ -0,0 +1,201 @@
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
49
README.md
Normal file
49
README.md
Normal file
@ -0,0 +1,49 @@
|
||||
# Grasscutter
|
||||
A WIP server emulator for Genshin Impact 2.3-2.6
|
||||
|
||||
# Current features
|
||||
* Logging in
|
||||
* Spawning monsters via console
|
||||
* Combat
|
||||
* Inventory features (recieving items/characters, upgrading items/characters, etc)
|
||||
* Co-op does work, but movement is kind of buggy and some player ults do not spawn properly
|
||||
* Friends list
|
||||
* Gacha system
|
||||
|
||||
# Running the server and client
|
||||
|
||||
### Prerequisites
|
||||
* Java 8 JDK
|
||||
* Mongodb (recommended 4.0+)
|
||||
|
||||
### Starting up the server
|
||||
1. Compile the server with `./gradlew jar`
|
||||
2. Create a folder named `resources` in your server directory, you will need to copy `BinData` and `ExcelBinOutput` folders which you can get from a repo like [https://github.com/Dimbreath/GenshinData](https://github.com/Dimbreath/GenshinData) into your resources folder.
|
||||
3. Run the server with `java -jar grasscutter.jar`. Make sure mongodb is running as well.
|
||||
|
||||
### Connecting with the client
|
||||
1. If you are using the provided keystore, you will need to install and have [Fiddler](https://www.telerik.com/fiddler) running. Make sure fiddler is set to decrypt https traffic.
|
||||
2. Set your hosts file to redirect at least `api-account-os.hoyoverse.com` and `dispatchosglobal.yuanshen.com` to your dispatch server ip.
|
||||
|
||||
### Server console commands
|
||||
|
||||
`/account create [username] {playerid}` - Creates an account with the specified username and the in-game uid for that account. The playerid parameter is optional and will be auto generated if not set.
|
||||
|
||||
### In-Game commands
|
||||
There is a dummy user named "Server" in every player's friends list that you can message to use commands. Commands also work in other chat rooms, such as private/team chats.
|
||||
|
||||
`!spawn [monster id] [level] [amount]`
|
||||
|
||||
`!give [item id] [amount]`
|
||||
|
||||
`!drop [item id] [amount]`
|
||||
|
||||
`!killall`
|
||||
|
||||
`!godmode` - Prevents you from taking damage
|
||||
|
||||
`!resetconst` - Resets the constellation level on your current active character, will need to relog after using the command to see any changes.
|
||||
|
||||
`!sethp [hp]`
|
||||
|
||||
`!clearartifacts` - Deletes all unequipped and unlocked level 0 artifacts, **including yellow rarity ones** from your inventory
|
63
build.gradle
Normal file
63
build.gradle
Normal file
@ -0,0 +1,63 @@
|
||||
/*
|
||||
* This file was generated by the Gradle 'init' task.
|
||||
*
|
||||
* This generated file contains a sample Java project to get you started.
|
||||
* For more details take a look at the Java Quickstart chapter in the Gradle
|
||||
* User Manual available at https://docs.gradle.org/5.6.3/userguide/tutorial_java_projects.html
|
||||
*/
|
||||
|
||||
plugins {
|
||||
// Apply the java plugin to add support for Java
|
||||
id 'java'
|
||||
|
||||
// Apply the application plugin to add support for building a CLI application
|
||||
id 'application'
|
||||
}
|
||||
|
||||
sourceCompatibility = 1.8
|
||||
targetCompatibility = 1.8
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
jcenter()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile fileTree(dir: 'lib', include: '*.jar')
|
||||
|
||||
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.32'
|
||||
compile group: 'ch.qos.logback', name: 'logback-core', version: '1.2.6'
|
||||
compile group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.6'
|
||||
compile group: 'io.netty', name: 'netty-all', version: '4.1.69.Final'
|
||||
|
||||
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.8'
|
||||
compile group: 'com.google.protobuf', name: 'protobuf-java', version: '3.18.1'
|
||||
|
||||
compile group: 'org.reflections', name: 'reflections', version: '0.9.12'
|
||||
|
||||
compile group: 'dev.morphia.morphia', name: 'core', version: '1.6.1'
|
||||
}
|
||||
|
||||
application {
|
||||
// Define the main class for the application
|
||||
mainClassName = 'emu.grasscutter.Grasscutter'
|
||||
}
|
||||
|
||||
jar {
|
||||
manifest {
|
||||
attributes 'Main-Class': 'emu.grasscutter.Grasscutter'
|
||||
}
|
||||
|
||||
jar.baseName = 'grasscutter'
|
||||
|
||||
from {
|
||||
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
|
||||
}
|
||||
|
||||
from('src/main/java') {
|
||||
include '*.xml'
|
||||
}
|
||||
|
||||
destinationDir = file(".")
|
||||
}
|
||||
|
64
data/Banners.json
Normal file
64
data/Banners.json
Normal file
@ -0,0 +1,64 @@
|
||||
[
|
||||
{
|
||||
"gachaType": 200,
|
||||
"scheduleId": 893,
|
||||
"bannerType": "STANDARD",
|
||||
"prefabPath": "GachaShowPanel_A022",
|
||||
"previewPrefabPath": "UI_Tab_GachaShowPanel_A022",
|
||||
"titlePath": "UI_GACHA_SHOW_PANEL_A022_TITLE",
|
||||
"costItem": 224,
|
||||
"beginTime": 0,
|
||||
"endTime": 1924992000,
|
||||
"sortId": 1000,
|
||||
"rateUpItems1": [],
|
||||
"rateUpItems2": []
|
||||
},
|
||||
{
|
||||
"gachaType": 301,
|
||||
"scheduleId": 903,
|
||||
"bannerType": "EVENT",
|
||||
"prefabPath": "GachaShowPanel_A076",
|
||||
"previewPrefabPath": "UI_Tab_GachaShowPanel_A076",
|
||||
"titlePath": "UI_GACHA_SHOW_PANEL_A076_TITLE",
|
||||
"costItem": 223,
|
||||
"beginTime": 0,
|
||||
"endTime": 1924992000,
|
||||
"sortId": 9998,
|
||||
"maxItemType": 1,
|
||||
"rateUpItems1": [1066],
|
||||
"rateUpItems2": [1023, 1043, 1064]
|
||||
},
|
||||
{
|
||||
"gachaType": 400,
|
||||
"scheduleId": 913,
|
||||
"bannerType": "EVENT",
|
||||
"prefabPath": "GachaShowPanel_A077",
|
||||
"previewPrefabPath": "UI_Tab_GachaShowPanel_A077",
|
||||
"titlePath": "UI_Tab_GachaShowPanel_A077",
|
||||
"costItem": 223,
|
||||
"beginTime": 0,
|
||||
"endTime": 1924992000,
|
||||
"sortId": 9998,
|
||||
"maxItemType": 1,
|
||||
"rateUpItems1": [1022],
|
||||
"rateUpItems2": [1023, 1043, 1064]
|
||||
},
|
||||
{
|
||||
"gachaType": 302,
|
||||
"scheduleId": 923,
|
||||
"bannerType": "WEAPON",
|
||||
"prefabPath": "GachaShowPanel_A078",
|
||||
"previewPrefabPath": "UI_Tab_GachaShowPanel_A078",
|
||||
"titlePath": "UI_GACHA_SHOW_PANEL_A078_TITLE",
|
||||
"costItem": 223,
|
||||
"beginTime": 0,
|
||||
"endTime": 1924992000,
|
||||
"sortId": 9997,
|
||||
"minItemType": 2,
|
||||
"eventChance": 75,
|
||||
"softPity": 80,
|
||||
"hardPity": 80,
|
||||
"rateUpItems1": [11510, 15503],
|
||||
"rateUpItems2": [11402, 12403, 13401, 14402, 15405]
|
||||
}
|
||||
]
|
1
data/query_cur_region.txt
Normal file
1
data/query_cur_region.txt
Normal file
File diff suppressed because one or more lines are too long
1
data/query_region_list.txt
Normal file
1
data/query_region_list.txt
Normal file
@ -0,0 +1 @@
|
||||
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
|
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Normal file
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Normal file
Binary file not shown.
5
gradle/wrapper/gradle-wrapper.properties
vendored
Normal file
5
gradle/wrapper/gradle-wrapper.properties
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.3-bin.zip
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
188
gradlew
vendored
Normal file
188
gradlew
vendored
Normal file
@ -0,0 +1,188 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
#
|
||||
# Copyright 2015 the original author or authors.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# https://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
##############################################################################
|
||||
##
|
||||
## Gradle start up script for UN*X
|
||||
##
|
||||
##############################################################################
|
||||
|
||||
# Attempt to set APP_HOME
|
||||
# Resolve links: $0 may be a link
|
||||
PRG="$0"
|
||||
# Need this for relative symlinks.
|
||||
while [ -h "$PRG" ] ; do
|
||||
ls=`ls -ld "$PRG"`
|
||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||
if expr "$link" : '/.*' > /dev/null; then
|
||||
PRG="$link"
|
||||
else
|
||||
PRG=`dirname "$PRG"`"/$link"
|
||||
fi
|
||||
done
|
||||
SAVED="`pwd`"
|
||||
cd "`dirname \"$PRG\"`/" >/dev/null
|
||||
APP_HOME="`pwd -P`"
|
||||
cd "$SAVED" >/dev/null
|
||||
|
||||
APP_NAME="Gradle"
|
||||
APP_BASE_NAME=`basename "$0"`
|
||||
|
||||
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
||||
|
||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||
MAX_FD="maximum"
|
||||
|
||||
warn () {
|
||||
echo "$*"
|
||||
}
|
||||
|
||||
die () {
|
||||
echo
|
||||
echo "$*"
|
||||
echo
|
||||
exit 1
|
||||
}
|
||||
|
||||
# OS specific support (must be 'true' or 'false').
|
||||
cygwin=false
|
||||
msys=false
|
||||
darwin=false
|
||||
nonstop=false
|
||||
case "`uname`" in
|
||||
CYGWIN* )
|
||||
cygwin=true
|
||||
;;
|
||||
Darwin* )
|
||||
darwin=true
|
||||
;;
|
||||
MINGW* )
|
||||
msys=true
|
||||
;;
|
||||
NONSTOP* )
|
||||
nonstop=true
|
||||
;;
|
||||
esac
|
||||
|
||||
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
||||
|
||||
# Determine the Java command to use to start the JVM.
|
||||
if [ -n "$JAVA_HOME" ] ; then
|
||||
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
||||
# IBM's JDK on AIX uses strange locations for the executables
|
||||
JAVACMD="$JAVA_HOME/jre/sh/java"
|
||||
else
|
||||
JAVACMD="$JAVA_HOME/bin/java"
|
||||
fi
|
||||
if [ ! -x "$JAVACMD" ] ; then
|
||||
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
|
||||
|
||||
Please set the JAVA_HOME variable in your environment to match the
|
||||
location of your Java installation."
|
||||
fi
|
||||
else
|
||||
JAVACMD="java"
|
||||
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||
|
||||
Please set the JAVA_HOME variable in your environment to match the
|
||||
location of your Java installation."
|
||||
fi
|
||||
|
||||
# Increase the maximum file descriptors if we can.
|
||||
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
|
||||
MAX_FD_LIMIT=`ulimit -H -n`
|
||||
if [ $? -eq 0 ] ; then
|
||||
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
|
||||
MAX_FD="$MAX_FD_LIMIT"
|
||||
fi
|
||||
ulimit -n $MAX_FD
|
||||
if [ $? -ne 0 ] ; then
|
||||
warn "Could not set maximum file descriptor limit: $MAX_FD"
|
||||
fi
|
||||
else
|
||||
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
|
||||
fi
|
||||
fi
|
||||
|
||||
# For Darwin, add options to specify how the application appears in the dock
|
||||
if $darwin; then
|
||||
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
|
||||
fi
|
||||
|
||||
# For Cygwin or MSYS, switch paths to Windows format before running java
|
||||
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
|
||||
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
|
||||
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
|
||||
JAVACMD=`cygpath --unix "$JAVACMD"`
|
||||
|
||||
# We build the pattern for arguments to be converted via cygpath
|
||||
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
|
||||
SEP=""
|
||||
for dir in $ROOTDIRSRAW ; do
|
||||
ROOTDIRS="$ROOTDIRS$SEP$dir"
|
||||
SEP="|"
|
||||
done
|
||||
OURCYGPATTERN="(^($ROOTDIRS))"
|
||||
# Add a user-defined pattern to the cygpath arguments
|
||||
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
|
||||
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
|
||||
fi
|
||||
# Now convert the arguments - kludge to limit ourselves to /bin/sh
|
||||
i=0
|
||||
for arg in "$@" ; do
|
||||
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
|
||||
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
|
||||
|
||||
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
|
||||
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
|
||||
else
|
||||
eval `echo args$i`="\"$arg\""
|
||||
fi
|
||||
i=$((i+1))
|
||||
done
|
||||
case $i in
|
||||
(0) set -- ;;
|
||||
(1) set -- "$args0" ;;
|
||||
(2) set -- "$args0" "$args1" ;;
|
||||
(3) set -- "$args0" "$args1" "$args2" ;;
|
||||
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
|
||||
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
|
||||
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
|
||||
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
|
||||
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
|
||||
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# Escape application args
|
||||
save () {
|
||||
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
|
||||
echo " "
|
||||
}
|
||||
APP_ARGS=$(save "$@")
|
||||
|
||||
# Collect all arguments for the java command, following the shell quoting and substitution rules
|
||||
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
|
||||
|
||||
# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
|
||||
if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
|
||||
cd "$(dirname "$0")"
|
||||
fi
|
||||
|
||||
exec "$JAVACMD" "$@"
|
100
gradlew.bat
vendored
Normal file
100
gradlew.bat
vendored
Normal file
@ -0,0 +1,100 @@
|
||||
@rem
|
||||
@rem Copyright 2015 the original author or authors.
|
||||
@rem
|
||||
@rem Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@rem you may not use this file except in compliance with the License.
|
||||
@rem You may obtain a copy of the License at
|
||||
@rem
|
||||
@rem https://www.apache.org/licenses/LICENSE-2.0
|
||||
@rem
|
||||
@rem Unless required by applicable law or agreed to in writing, software
|
||||
@rem distributed under the License is distributed on an "AS IS" BASIS,
|
||||
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
@rem See the License for the specific language governing permissions and
|
||||
@rem limitations under the License.
|
||||
@rem
|
||||
|
||||
@if "%DEBUG%" == "" @echo off
|
||||
@rem ##########################################################################
|
||||
@rem
|
||||
@rem Gradle startup script for Windows
|
||||
@rem
|
||||
@rem ##########################################################################
|
||||
|
||||
@rem Set local scope for the variables with windows NT shell
|
||||
if "%OS%"=="Windows_NT" setlocal
|
||||
|
||||
set DIRNAME=%~dp0
|
||||
if "%DIRNAME%" == "" set DIRNAME=.
|
||||
set APP_BASE_NAME=%~n0
|
||||
set APP_HOME=%DIRNAME%
|
||||
|
||||
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
|
||||
|
||||
@rem Find java.exe
|
||||
if defined JAVA_HOME goto findJavaFromJavaHome
|
||||
|
||||
set JAVA_EXE=java.exe
|
||||
%JAVA_EXE% -version >NUL 2>&1
|
||||
if "%ERRORLEVEL%" == "0" goto init
|
||||
|
||||
echo.
|
||||
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||
echo.
|
||||
echo Please set the JAVA_HOME variable in your environment to match the
|
||||
echo location of your Java installation.
|
||||
|
||||
goto fail
|
||||
|
||||
:findJavaFromJavaHome
|
||||
set JAVA_HOME=%JAVA_HOME:"=%
|
||||
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
||||
|
||||
if exist "%JAVA_EXE%" goto init
|
||||
|
||||
echo.
|
||||
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
||||
echo.
|
||||
echo Please set the JAVA_HOME variable in your environment to match the
|
||||
echo location of your Java installation.
|
||||
|
||||
goto fail
|
||||
|
||||
:init
|
||||
@rem Get command-line arguments, handling Windows variants
|
||||
|
||||
if not "%OS%" == "Windows_NT" goto win9xME_args
|
||||
|
||||
:win9xME_args
|
||||
@rem Slurp the command line arguments.
|
||||
set CMD_LINE_ARGS=
|
||||
set _SKIP=2
|
||||
|
||||
:win9xME_args_slurp
|
||||
if "x%~1" == "x" goto execute
|
||||
|
||||
set CMD_LINE_ARGS=%*
|
||||
|
||||
:execute
|
||||
@rem Setup the command line
|
||||
|
||||
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
||||
|
||||
@rem Execute Gradle
|
||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
|
||||
|
||||
:end
|
||||
@rem End local scope for the variables with windows NT shell
|
||||
if "%ERRORLEVEL%"=="0" goto mainEnd
|
||||
|
||||
:fail
|
||||
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
||||
rem the _cmd.exe /c_ return code!
|
||||
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
|
||||
exit /b 1
|
||||
|
||||
:mainEnd
|
||||
if "%OS%"=="Windows_NT" endlocal
|
||||
|
||||
:omega
|
BIN
keys/dispatchKey.bin
Normal file
BIN
keys/dispatchKey.bin
Normal file
Binary file not shown.
BIN
keys/dispatchSeed.bin
Normal file
BIN
keys/dispatchSeed.bin
Normal file
Binary file not shown.
BIN
keys/secretKey.bin
Normal file
BIN
keys/secretKey.bin
Normal file
Binary file not shown.
1
keys/secretKeyBuffer.bin
Normal file
1
keys/secretKeyBuffer.bin
Normal file
@ -0,0 +1 @@
|
||||
<EFBFBD><EFBFBD>lt1L <09><>ܟ<EFBFBD>.<15>\<5C>pXP<58><50>"ƀ(<28>a<><61><EFBFBD>
|
BIN
keystore.p12
Normal file
BIN
keystore.p12
Normal file
Binary file not shown.
BIN
lib/fastutil-mini-8.5.6.jar
Normal file
BIN
lib/fastutil-mini-8.5.6.jar
Normal file
Binary file not shown.
BIN
lib/kcp-netty.jar
Normal file
BIN
lib/kcp-netty.jar
Normal file
Binary file not shown.
13
proto/AbilityAppliedAbility.proto
Normal file
13
proto/AbilityAppliedAbility.proto
Normal file
@ -0,0 +1,13 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
import "AbilityScalarValueEntry.proto";
|
||||
import "AbilityString.proto";
|
||||
|
||||
message AbilityAppliedAbility {
|
||||
AbilityString abilityName = 1;
|
||||
AbilityString abilityOverride = 2;
|
||||
repeated AbilityScalarValueEntry overrideMap = 3;
|
||||
uint32 instancedAbilityId = 4;
|
||||
}
|
23
proto/AbilityAppliedModifier.proto
Normal file
23
proto/AbilityAppliedModifier.proto
Normal file
@ -0,0 +1,23 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
import "AbilityAttachedModifier.proto";
|
||||
import "AbilityString.proto";
|
||||
import "ModifierDurability.proto";
|
||||
|
||||
message AbilityAppliedModifier {
|
||||
int32 modifierLocalId = 1;
|
||||
uint32 parentAbilityEntityId = 2;
|
||||
AbilityString parentAbilityName = 3;
|
||||
AbilityString parentAbilityOverride = 4;
|
||||
uint32 instancedAbilityId = 5;
|
||||
uint32 instancedModifierId = 6;
|
||||
float existDuration = 7;
|
||||
AbilityAttachedModifier attachedInstancedModifier = 8;
|
||||
uint32 applyEntityId = 9;
|
||||
bool isAttachedParentAbility = 10;
|
||||
ModifierDurability modifierDurability = 11;
|
||||
uint32 sbuffUid = 12;
|
||||
bool isServerbuffModifier = 13;
|
||||
}
|
11
proto/AbilityAttachedModifier.proto
Normal file
11
proto/AbilityAttachedModifier.proto
Normal file
@ -0,0 +1,11 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message AbilityAttachedModifier {
|
||||
bool isInvalid = 1;
|
||||
uint32 ownerEntityId = 2;
|
||||
uint32 instancedModifierId = 3;
|
||||
bool isServerbuffModifier = 4;
|
||||
int32 attachNameHash = 5;
|
||||
}
|
10
proto/AbilityChangeNotify.proto
Normal file
10
proto/AbilityChangeNotify.proto
Normal file
@ -0,0 +1,10 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
import "AbilityControlBlock.proto";
|
||||
|
||||
message AbilityChangeNotify {
|
||||
uint32 entityId = 1;
|
||||
AbilityControlBlock abilityControlBlock = 2;
|
||||
}
|
9
proto/AbilityControlBlock.proto
Normal file
9
proto/AbilityControlBlock.proto
Normal file
@ -0,0 +1,9 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
import "AbilityEmbryo.proto";
|
||||
|
||||
message AbilityControlBlock {
|
||||
repeated AbilityEmbryo abilityEmbryoList = 1;
|
||||
}
|
9
proto/AbilityEmbryo.proto
Normal file
9
proto/AbilityEmbryo.proto
Normal file
@ -0,0 +1,9 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message AbilityEmbryo {
|
||||
uint32 abilityId = 1;
|
||||
fixed32 abilityNameHash = 2;
|
||||
fixed32 abilityOverrideNameHash = 3;
|
||||
}
|
12
proto/AbilityIdentifier.proto
Normal file
12
proto/AbilityIdentifier.proto
Normal file
@ -0,0 +1,12 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message AbilityIdentifier {
|
||||
uint32 instancedAbilityId = 1;
|
||||
uint32 abilityCasterId = 2;
|
||||
int32 localId = 3;
|
||||
uint32 instancedModifierId = 4;
|
||||
uint32 modifierOwnerId = 5;
|
||||
bool isServerbuffModifier = 6;
|
||||
}
|
9
proto/AbilityInvocationsNotify.proto
Normal file
9
proto/AbilityInvocationsNotify.proto
Normal file
@ -0,0 +1,9 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
import "AbilityInvokeEntry.proto";
|
||||
|
||||
message AbilityInvocationsNotify {
|
||||
repeated AbilityInvokeEntry invokes = 1;
|
||||
}
|
48
proto/AbilityInvokeArgument.proto
Normal file
48
proto/AbilityInvokeArgument.proto
Normal file
@ -0,0 +1,48 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
enum AbilityInvokeArgument {
|
||||
AbilityNone = 0;
|
||||
AbilityMetaModifierChange = 1;
|
||||
AbilityMetaCommandModifierChangeRequest = 2;
|
||||
AbilityMetaSpecialFloatArgument = 3;
|
||||
AbilityMetaOverrideParam = 4;
|
||||
AbilityMetaClearOverrideParam = 5;
|
||||
AbilityMetaReinitOverridemap = 6;
|
||||
AbilityMetaGlobalFloatValue = 7;
|
||||
AbilityMetaClearGlobalFloatValue = 8;
|
||||
AbilityMetaAbilityElementStrength = 9;
|
||||
AbilityMetaAddOrGetAbilityAndTrigger = 10;
|
||||
AbilityMetaSetKilledSetate = 11;
|
||||
AbilityMetaSetAbilityTrigger = 12;
|
||||
AbilityMetaAddNewAbility = 13;
|
||||
AbilityMetaRemoveAbility = 14;
|
||||
AbilityMetaSetModifierApplyEntity = 15;
|
||||
AbilityMetaModifierDurabilityChange = 16;
|
||||
AbilityMetaElementReactionVisual = 17;
|
||||
AbilityMetaSetPoseParameter = 18;
|
||||
AbilityMetaUpdateBaseReactionDamage = 19;
|
||||
AbilityActionTriggerAbility = 50;
|
||||
AbilityActionSetCrashDamage = 51;
|
||||
AbilityActionEffect = 52;
|
||||
AbilityActionSummon = 53;
|
||||
AbilityActionBlink = 54;
|
||||
AbilityActionCreateGadget = 55;
|
||||
AbilityActionApplyLevelModifier = 56;
|
||||
AbilityActionGenerateElemBall = 57;
|
||||
AbilityActionSetRandomOverrideMapValue = 58;
|
||||
AbilityActionServerMonsterLog = 59;
|
||||
AbilityMixinAvatarSteerByCamera = 100;
|
||||
AbilityMixinMonsterDefend = 101;
|
||||
AbilityMixinWindZone = 102;
|
||||
AbilityMixinCostStamina = 103;
|
||||
AbilityMixinEliteShield = 104;
|
||||
AbilityMixinElementShield = 105;
|
||||
AbilityMixinGlobalShield = 106;
|
||||
AbilityMixinShieldBar = 107;
|
||||
AbilityMixinWindSeedSpawner = 108;
|
||||
AbilityMixinDoActionByElementReaction = 109;
|
||||
AbilityMixinFieldEntityCountChange = 110;
|
||||
AbilityMixinScenePropSync = 111;
|
||||
}
|
17
proto/AbilityInvokeEntry.proto
Normal file
17
proto/AbilityInvokeEntry.proto
Normal file
@ -0,0 +1,17 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
import "AbilityInvokeArgument.proto";
|
||||
import "AbilityInvokeEntryHead.proto";
|
||||
import "ForwardType.proto";
|
||||
|
||||
message AbilityInvokeEntry {
|
||||
AbilityInvokeEntryHead head = 1;
|
||||
AbilityInvokeArgument argumentType = 2;
|
||||
bytes abilityData = 3;
|
||||
uint32 entityId = 4;
|
||||
ForwardType forwardType = 5;
|
||||
uint32 forwardPeer = 6;
|
||||
uint32 eventId = 7;
|
||||
}
|
13
proto/AbilityInvokeEntryHead.proto
Normal file
13
proto/AbilityInvokeEntryHead.proto
Normal file
@ -0,0 +1,13 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message AbilityInvokeEntryHead {
|
||||
uint32 instancedAbilityId = 1;
|
||||
uint32 instancedModifierId = 2;
|
||||
int32 localId = 3;
|
||||
int32 modifierConfigLocalId = 4;
|
||||
uint32 targetId = 5;
|
||||
bool isServerbuffModifier = 6;
|
||||
uint32 serverBuffUid = 7;
|
||||
}
|
16
proto/AbilityMixinRecoverInfo.proto
Normal file
16
proto/AbilityMixinRecoverInfo.proto
Normal file
@ -0,0 +1,16 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
import "MassivePropSyncInfo.proto";
|
||||
|
||||
message AbilityMixinRecoverInfo {
|
||||
oneof source {
|
||||
uint32 instancedAbilityId = 1;
|
||||
uint32 instancedModifierId = 2;
|
||||
}
|
||||
uint32 localId = 3;
|
||||
repeated uint32 dataList = 4;
|
||||
bool isServerbuffModifier = 5;
|
||||
repeated MassivePropSyncInfo massivePropList = 6;
|
||||
}
|
13
proto/AbilityScalarType.proto
Normal file
13
proto/AbilityScalarType.proto
Normal file
@ -0,0 +1,13 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
enum AbilityScalarType {
|
||||
Unknow = 0;
|
||||
Float = 1;
|
||||
Int = 2;
|
||||
Bool = 3;
|
||||
Trigger = 4;
|
||||
String = 5;
|
||||
Uint = 6;
|
||||
}
|
17
proto/AbilityScalarValueEntry.proto
Normal file
17
proto/AbilityScalarValueEntry.proto
Normal file
@ -0,0 +1,17 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
import "AbilityScalarType.proto";
|
||||
import "AbilityString.proto";
|
||||
|
||||
message AbilityScalarValueEntry {
|
||||
AbilityString key = 1;
|
||||
AbilityScalarType valueType = 2;
|
||||
oneof value {
|
||||
float floatValue = 3;
|
||||
string stringValue = 4;
|
||||
int32 intValue = 5;
|
||||
uint32 uintValue = 6;
|
||||
}
|
||||
}
|
10
proto/AbilityString.proto
Normal file
10
proto/AbilityString.proto
Normal file
@ -0,0 +1,10 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message AbilityString {
|
||||
oneof type {
|
||||
string str = 1;
|
||||
uint32 hash = 2;
|
||||
}
|
||||
}
|
16
proto/AbilitySyncStateInfo.proto
Normal file
16
proto/AbilitySyncStateInfo.proto
Normal file
@ -0,0 +1,16 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
import "AbilityAppliedAbility.proto";
|
||||
import "AbilityAppliedModifier.proto";
|
||||
import "AbilityMixinRecoverInfo.proto";
|
||||
import "AbilityScalarValueEntry.proto";
|
||||
|
||||
message AbilitySyncStateInfo {
|
||||
bool isInited = 1;
|
||||
repeated AbilityScalarValueEntry dynamicValueMap = 2;
|
||||
repeated AbilityAppliedAbility appliedAbilities = 3;
|
||||
repeated AbilityAppliedModifier appliedModifiers = 4;
|
||||
repeated AbilityMixinRecoverInfo mixinRecoverInfos = 5;
|
||||
}
|
179
proto/ActionReasonType.proto
Normal file
179
proto/ActionReasonType.proto
Normal file
@ -0,0 +1,179 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
enum ActionReasonType {
|
||||
ActionReasonNone = 0;
|
||||
ActionReasonQuestItem = 1;
|
||||
ActionReasonQuestReward = 2;
|
||||
ActionReasonTrifle = 3;
|
||||
ActionReasonShop = 4;
|
||||
ActionReasonPlayerUpgradeReward = 5;
|
||||
ActionReasonAddAvatar = 6;
|
||||
ActionReasonGadgetEnvAnimal = 7;
|
||||
ActionReasonMonsterEnvAnimal = 8;
|
||||
ActionReasonCompound = 9;
|
||||
ActionReasonCook = 10;
|
||||
ActionReasonGather = 11;
|
||||
ActionReasonMailAttachment = 12;
|
||||
ActionReasonCityLevelupReturn = 15;
|
||||
ActionReasonCityLevelupReward = 17;
|
||||
ActionReasonAreaExploreReward = 18;
|
||||
ActionReasonUnlockPointReward = 19;
|
||||
ActionReasonDungeonFirstPass = 20;
|
||||
ActionReasonDungeonPass = 21;
|
||||
ActionReasonChangeElemType = 23;
|
||||
ActionReasonFetterOpen = 25;
|
||||
ActionReasonDailyTaskScore = 26;
|
||||
ActionReasonDailyTaskHost = 27;
|
||||
ActionReasonRandTaskHost = 28;
|
||||
ActionReasonExpedition = 29;
|
||||
ActionReasonGacha = 30;
|
||||
ActionReasonCombine = 31;
|
||||
ActionReasonRandTaskGuest = 32;
|
||||
ActionReasonDailyTaskGuest = 33;
|
||||
ActionReasonForgeOutput = 34;
|
||||
ActionReasonForgeReturn = 35;
|
||||
ActionReasonInitAvatar = 36;
|
||||
ActionReasonMonsterDie = 37;
|
||||
ActionReasonGm = 38;
|
||||
ActionReasonOpenChest = 39;
|
||||
ActionReasonGadgetDie = 40;
|
||||
ActionReasonMonsterChangeHp = 41;
|
||||
ActionReasonSubfieldDrop = 42;
|
||||
ActionReasonPushTipsReward = 43;
|
||||
ActionReasonActivityMonsterDrop = 44;
|
||||
ActionReasonActivityGather = 45;
|
||||
ActionReasonActivitySubfieldDrop = 46;
|
||||
ActionReasonTowerScheduleReward = 47;
|
||||
ActionReasonTowerFloorStarReward = 48;
|
||||
ActionReasonTowerFirstPassReward = 49;
|
||||
ActionReasonTowerDailyReward = 50;
|
||||
ActionReasonHitClientTrivialEntity = 51;
|
||||
ActionReasonOpenWorldBossChest = 52;
|
||||
ActionReasonMaterialDeleteReturn = 53;
|
||||
ActionReasonSignInReward = 54;
|
||||
ActionReasonOpenBlossomChest = 55;
|
||||
ActionReasonRecharge = 56;
|
||||
ActionReasonBonusActivityReward = 57;
|
||||
ActionReasonTowerCommemorativeReward = 58;
|
||||
ActionReasonTowerSkipFloorReward = 59;
|
||||
ActionReasonRechargeBonus = 60;
|
||||
ActionReasonRechargeCard = 61;
|
||||
ActionReasonRechargeCardDaily = 62;
|
||||
ActionReasonRechargeCardReplace = 63;
|
||||
ActionReasonRechargeCardReplaceFree = 64;
|
||||
ActionReasonRechargePlayReplace = 65;
|
||||
ActionReasonMpPlayTakeReward = 66;
|
||||
ActionReasonActivityWatcher = 67;
|
||||
ActionReasonSalesmanDeliverItem = 68;
|
||||
ActionReasonSalesmanReward = 69;
|
||||
ActionReasonRebate = 70;
|
||||
ActionReasonMcoinExchangeHcoin = 71;
|
||||
ActionReasonDailyTaskExchangeLegendaryKey = 72;
|
||||
ActionReasonUnlockPersonLine = 73;
|
||||
ActionReasonFetterLevelReward = 74;
|
||||
ActionReasonBuyResin = 75;
|
||||
ActionReasonRechargePackage = 76;
|
||||
ActionReasonDeliveryDailyReward = 77;
|
||||
ActionReasonCityReputationLevel = 78;
|
||||
ActionReasonCityReputationQuest = 79;
|
||||
ActionReasonCityReputationRequest = 80;
|
||||
ActionReasonCityReputationExplore = 81;
|
||||
ActionReasonOffergingLevel = 82;
|
||||
ActionReasonRoutineHost = 83;
|
||||
ActionReasonRoutineGuest = 84;
|
||||
ActionReasonTreasureMapSpotToken = 89;
|
||||
ActionReasonTreasureMapBonusLevelReward = 90;
|
||||
ActionReasonTreasureMapMpReward = 91;
|
||||
ActionReasonConvert = 92;
|
||||
ActionReasonOverflowTransform = 93;
|
||||
ActionReasonActivityAvatarSelectionReward = 96;
|
||||
ActionReasonActivityWatcherBatch = 97;
|
||||
ActionReasonHitTreeDrop = 98;
|
||||
ActionReasonGetHomeLevelupReward = 99;
|
||||
ActionReasonHomeDefaultFurniture = 100;
|
||||
ActionReasonActivityCond = 101;
|
||||
ActionReasonBattlePassNotify = 102;
|
||||
ActionReasonPlayerUseItem = 1001;
|
||||
ActionReasonDropItem = 1002;
|
||||
ActionReasonWeaponUpgrade = 1011;
|
||||
ActionReasonWeaponPromote = 1012;
|
||||
ActionReasonWeaponAwaken = 1013;
|
||||
ActionReasonRelicUpgrade = 1014;
|
||||
ActionReasonAbility = 1015;
|
||||
ActionReasonDungeonStatueDrop = 1016;
|
||||
ActionReasonOfflineMsg = 1017;
|
||||
ActionReasonAvatarUpgrade = 1018;
|
||||
ActionReasonAvatarPromote = 1019;
|
||||
ActionReasonQuestAction = 1021;
|
||||
ActionReasonCityLevelup = 1022;
|
||||
ActionReasonUpgradeSkill = 1024;
|
||||
ActionReasonUnlockTalent = 1025;
|
||||
ActionReasonUpgradeProudSkill = 1026;
|
||||
ActionReasonPlayerLevelLimitUp = 1027;
|
||||
ActionReasonDungeonDaily = 1028;
|
||||
ActionReasonItemGiving = 1030;
|
||||
ActionReasonForgeCost = 1031;
|
||||
ActionReasonInvestigationReward = 1032;
|
||||
ActionReasonInvestigationTargetReward = 1033;
|
||||
ActionReasonGadgetInteract = 1034;
|
||||
ActionReasonSeaLampCiMaterial = 1036;
|
||||
ActionReasonSeaLampContributionReward = 1037;
|
||||
ActionReasonSeaLampPhaseReward = 1038;
|
||||
ActionReasonSeaLampFlyLamp = 1039;
|
||||
ActionReasonAutoRecover = 1040;
|
||||
ActionReasonActivityExpireItem = 1041;
|
||||
ActionReasonSubCoinNegative = 1042;
|
||||
ActionReasonBargainDeduct = 1043;
|
||||
ActionReasonBattlePassPaidReward = 1044;
|
||||
ActionReasonBattlePassLevelReward = 1045;
|
||||
ActionReasonTrialAvatarActivityFirstPassReward = 1046;
|
||||
ActionReasonBuyBattlePassLevel = 1047;
|
||||
ActionReasonGrantBirthdayBenefit = 1048;
|
||||
ActionReasonAchievementReward = 1049;
|
||||
ActionReasonAchievementGoalReward = 1050;
|
||||
ActionReasonFirstShareToSocialNetwork = 1051;
|
||||
ActionReasonDestroyMaterial = 1052;
|
||||
ActionReasonCodexLevelupReward = 1053;
|
||||
ActionReasonHuntingOfferReward = 1054;
|
||||
ActionReasonUseWidgetAnchorPoint = 1055;
|
||||
ActionReasonUseWidgetBonfire = 1056;
|
||||
ActionReasonUngradeWeaponReturnMaterial = 1057;
|
||||
ActionReasonUseWidgetOneoffGatherPointDetector = 1058;
|
||||
ActionReasonUseWidgetClientCollector = 1059;
|
||||
ActionReasonUseWidgetClientDetector = 1060;
|
||||
ActionReasonTakeGeneralReward = 1061;
|
||||
ActionReasonAsterTakeSpecialReward = 1062;
|
||||
ActionReasonRemoveCodexBook = 1063;
|
||||
ActionReasonOfferingItem = 1064;
|
||||
ActionReasonUseWidgetGadgetBuilder = 1065;
|
||||
ActionReasonEffigyFirstPassReward = 1066;
|
||||
ActionReasonEffigyReward = 1067;
|
||||
ActionReasonReunionFirstGiftReward = 1068;
|
||||
ActionReasonReunionSignInReward = 1069;
|
||||
ActionReasonReunionWatcherReward = 1070;
|
||||
ActionReasonSalesmanMpReward = 1071;
|
||||
ActionReasionAvatarPromoteReward = 1072;
|
||||
ActionReasonBlessingRedeemReward = 1073;
|
||||
ActionMiracleRingReward = 1074;
|
||||
ActionReasonExpeditionReward = 1075;
|
||||
ActionReasonTreasureMapRemoveDetector = 1076;
|
||||
ActionReasonMechanicusDungeonTicket = 1077;
|
||||
ActionReasonMechanicusLevelupGear = 1078;
|
||||
ActionReasonMechanicusBattleSettle = 1079;
|
||||
ActionReasonRegionSearchReward = 1080;
|
||||
ActionReasonUnlockCoopChapter = 1081;
|
||||
ActionReasonTakeCoopReward = 1082;
|
||||
ActionReasonFleurFairDungeonReward = 1083;
|
||||
ActionReasonActivityScore = 1084;
|
||||
ActionReasonChannellerSlabOneoffDungeonReward = 1085;
|
||||
ActionReasonFurnitureMakeStart = 1086;
|
||||
ActionReasonFurnitureMakeTake = 1087;
|
||||
ActionReasonFurnitureMakeCancel = 1088;
|
||||
ActionReasonFurnitureMakeFastFinish = 1089;
|
||||
ActionReasonChannellerSlabLoopDungeonFirstPassReward = 1090;
|
||||
ActionReasonChannellerSlabLoopDungeonScoreReward = 1091;
|
||||
ActionReasonHomeLimitedShopBuy = 1092;
|
||||
ActionReasonHomeCoinCollect = 1093;
|
||||
}
|
47
proto/ActivityInfo.proto
Normal file
47
proto/ActivityInfo.proto
Normal file
@ -0,0 +1,47 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
import "ActivityNullDetailInfo.proto";
|
||||
import "ActivityWatcherInfo.proto";
|
||||
|
||||
message ActivityInfo {
|
||||
uint32 activityId = 1;
|
||||
uint32 scheduleId = 2;
|
||||
uint32 beginTime = 3;
|
||||
uint32 endTime = 4;
|
||||
uint32 activityType = 5;
|
||||
bool isPlayOpenAnim = 6;
|
||||
bool isFinished = 7;
|
||||
bool isStarting = 8;
|
||||
repeated ActivityWatcherInfo watcherInfoList = 9;
|
||||
repeated uint32 meetCondList = 10;
|
||||
repeated uint32 expireCondList = 15;
|
||||
uint32 selectedAvatarRewardId = 17;
|
||||
map<uint32, uint32> activityCoinMap = 18;
|
||||
uint32 scoreLimit = 19;
|
||||
uint32 curScore = 20;
|
||||
repeated uint32 takenRewardList = 24;
|
||||
oneof detail {
|
||||
ActivityNullDetailInfo samLampInfo = 11;
|
||||
ActivityNullDetailInfo crucibleInfo = 12;
|
||||
ActivityNullDetailInfo salesmanInfo = 13;
|
||||
ActivityNullDetailInfo trialAvatarInfo = 14;
|
||||
ActivityNullDetailInfo deliveryInfo = 16;
|
||||
ActivityNullDetailInfo asterInfo = 21;
|
||||
ActivityNullDetailInfo flightInfo = 25;
|
||||
ActivityNullDetailInfo dragonSpineInfo = 31;
|
||||
ActivityNullDetailInfo effigyInfo = 32;
|
||||
ActivityNullDetailInfo treasureMapInfo = 35;
|
||||
ActivityNullDetailInfo blessingInfo = 41;
|
||||
ActivityNullDetailInfo seaLampInfo = 42;
|
||||
ActivityNullDetailInfo expeditionInfo = 43;
|
||||
ActivityNullDetailInfo arenaChallengeInfo = 44;
|
||||
ActivityNullDetailInfo fleurFairInfo = 51;
|
||||
ActivityNullDetailInfo waterSpiritInfo = 52;
|
||||
ActivityNullDetailInfo challnelerSlabInfo = 61;
|
||||
ActivityNullDetailInfo mistTrialActivityInfo = 62;
|
||||
ActivityNullDetailInfo hideAndSeekInfo = 63;
|
||||
ActivityNullDetailInfo findHilichurlInfo = 64;
|
||||
}
|
||||
}
|
7
proto/ActivityNullDetailInfo.proto
Normal file
7
proto/ActivityNullDetailInfo.proto
Normal file
@ -0,0 +1,7 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message ActivityNullDetailInfo {
|
||||
|
||||
}
|
10
proto/ActivityWatcherInfo.proto
Normal file
10
proto/ActivityWatcherInfo.proto
Normal file
@ -0,0 +1,10 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message ActivityWatcherInfo {
|
||||
uint32 watcherId = 1;
|
||||
uint32 curProgress = 2;
|
||||
uint32 totalProgress = 3;
|
||||
bool isTakenReward = 4;
|
||||
}
|
8
proto/AiSkillCdInfo.proto
Normal file
8
proto/AiSkillCdInfo.proto
Normal file
@ -0,0 +1,8 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message AiSkillCdInfo {
|
||||
map<uint32, uint32> skillCdMap = 1;
|
||||
map<uint32, uint32> skillGroupCdMap = 2;
|
||||
}
|
8
proto/AiSyncInfo.proto
Normal file
8
proto/AiSyncInfo.proto
Normal file
@ -0,0 +1,8 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message AiSyncInfo {
|
||||
uint32 entityId = 1;
|
||||
bool hasPathToTarget = 2;
|
||||
}
|
7
proto/AiThreatInfo.proto
Normal file
7
proto/AiThreatInfo.proto
Normal file
@ -0,0 +1,7 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message AiThreatInfo {
|
||||
map<uint32, uint32> aiThreatMap = 1;
|
||||
}
|
10
proto/AnimatorParameterValueInfo.proto
Normal file
10
proto/AnimatorParameterValueInfo.proto
Normal file
@ -0,0 +1,10 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message AnimatorParameterValueInfo {
|
||||
uint32 paraType = 1;
|
||||
int32 intVal = 2;
|
||||
float floatVal = 3;
|
||||
bool boolVal = 4;
|
||||
}
|
10
proto/AnimatorParameterValueInfoPair.proto
Normal file
10
proto/AnimatorParameterValueInfoPair.proto
Normal file
@ -0,0 +1,10 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
import "AnimatorParameterValueInfo.proto";
|
||||
|
||||
message AnimatorParameterValueInfoPair {
|
||||
int32 name = 1;
|
||||
AnimatorParameterValueInfo animatorPara = 2;
|
||||
}
|
10
proto/AskAddFriendNotify.proto
Normal file
10
proto/AskAddFriendNotify.proto
Normal file
@ -0,0 +1,10 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
import "FriendBrief.proto";
|
||||
|
||||
message AskAddFriendNotify {
|
||||
uint32 targetUid = 1;
|
||||
FriendBrief targetFriendBrief = 2;
|
||||
}
|
7
proto/AskAddFriendReq.proto
Normal file
7
proto/AskAddFriendReq.proto
Normal file
@ -0,0 +1,7 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message AskAddFriendReq {
|
||||
uint32 targetUid = 1;
|
||||
}
|
9
proto/AskAddFriendRsp.proto
Normal file
9
proto/AskAddFriendRsp.proto
Normal file
@ -0,0 +1,9 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message AskAddFriendRsp {
|
||||
int32 retcode = 1;
|
||||
uint32 targetUid = 2;
|
||||
uint32 param = 3;
|
||||
}
|
12
proto/AttackHitEffectResult.proto
Normal file
12
proto/AttackHitEffectResult.proto
Normal file
@ -0,0 +1,12 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message AttackHitEffectResult {
|
||||
uint32 hitEffLevel = 1;
|
||||
float retreatStrength = 2;
|
||||
float airStrength = 3;
|
||||
float hitHaltTime = 4;
|
||||
float hitHaltTimeScale = 5;
|
||||
uint32 originalHitEffLevel = 6;
|
||||
}
|
40
proto/AttackResult.proto
Normal file
40
proto/AttackResult.proto
Normal file
@ -0,0 +1,40 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
import "AbilityIdentifier.proto";
|
||||
import "AttackHitEffectResult.proto";
|
||||
import "HitCollision.proto";
|
||||
import "Vector.proto";
|
||||
|
||||
message AttackResult {
|
||||
uint32 attackerId = 1;
|
||||
uint32 defenseId = 2;
|
||||
string animEventId = 3;
|
||||
AbilityIdentifier abilityIdentifier = 4;
|
||||
float damage = 6;
|
||||
bool isCrit = 7;
|
||||
HitCollision hitCollision = 8;
|
||||
uint32 hitPosType = 9;
|
||||
uint32 endureBreak = 10;
|
||||
Vector resolvedDir = 11;
|
||||
int32 hitRetreatAngleCompat = 12;
|
||||
AttackHitEffectResult hitEffResult = 13;
|
||||
uint32 elementType = 14;
|
||||
bool useGadgetDamageAction = 19;
|
||||
uint32 gadgetDamageActionIdx = 20;
|
||||
bool isResistText = 22;
|
||||
uint32 criticalRand = 23;
|
||||
float elementAmplifyRate = 24;
|
||||
float damageShield = 26;
|
||||
bool muteElementHurt = 27;
|
||||
uint32 amplifyReactionType = 30;
|
||||
uint32 addhurtReactionType = 31;
|
||||
uint32 bulletFlyTimeMs = 32;
|
||||
uint32 attackCount = 33;
|
||||
uint32 hashedAnimEventId = 34;
|
||||
uint32 attackTimestampMs = 36;
|
||||
float endureDelta = 37;
|
||||
uint32 targetType = 38;
|
||||
float elementDurabilityAttenuation = 39;
|
||||
}
|
10
proto/AvatarAddNotify.proto
Normal file
10
proto/AvatarAddNotify.proto
Normal file
@ -0,0 +1,10 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
import "AvatarInfo.proto";
|
||||
|
||||
message AvatarAddNotify {
|
||||
AvatarInfo avatar = 1;
|
||||
bool isInTeam = 2;
|
||||
}
|
9
proto/AvatarChangeCostumeNotify.proto
Normal file
9
proto/AvatarChangeCostumeNotify.proto
Normal file
@ -0,0 +1,9 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
import "SceneEntityInfo.proto";
|
||||
|
||||
message AvatarChangeCostumeNotify {
|
||||
SceneEntityInfo entity = 1;
|
||||
}
|
8
proto/AvatarChangeCostumeReq.proto
Normal file
8
proto/AvatarChangeCostumeReq.proto
Normal file
@ -0,0 +1,8 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message AvatarChangeCostumeReq {
|
||||
uint64 avatarGuid = 1;
|
||||
uint32 costumeId = 2;
|
||||
}
|
9
proto/AvatarChangeCostumeRsp.proto
Normal file
9
proto/AvatarChangeCostumeRsp.proto
Normal file
@ -0,0 +1,9 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message AvatarChangeCostumeRsp {
|
||||
uint32 retcode = 1;
|
||||
uint64 avatarGuid = 2;
|
||||
uint32 costumeId = 3;
|
||||
}
|
16
proto/AvatarDataNotify.proto
Normal file
16
proto/AvatarDataNotify.proto
Normal file
@ -0,0 +1,16 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
import "AvatarInfo.proto";
|
||||
import "AvatarTeam.proto";
|
||||
|
||||
message AvatarDataNotify {
|
||||
repeated AvatarInfo avatarList = 1;
|
||||
map<uint32, AvatarTeam> avatarTeamMap = 2;
|
||||
uint32 curAvatarTeamId = 3;
|
||||
fixed64 chooseAvatarGuid = 4;
|
||||
repeated uint64 tempAvatarGuidList = 5;
|
||||
repeated uint32 ownedFlycloakList = 6;
|
||||
repeated uint32 ownedCostumeList = 7;
|
||||
}
|
11
proto/AvatarDieAnimationEndReq.proto
Normal file
11
proto/AvatarDieAnimationEndReq.proto
Normal file
@ -0,0 +1,11 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
import "Vector.proto";
|
||||
|
||||
message AvatarDieAnimationEndReq {
|
||||
uint64 dieGuid = 1;
|
||||
uint32 skillId = 2;
|
||||
Vector rebornPos = 3;
|
||||
}
|
9
proto/AvatarDieAnimationEndRsp.proto
Normal file
9
proto/AvatarDieAnimationEndRsp.proto
Normal file
@ -0,0 +1,9 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message AvatarDieAnimationEndRsp {
|
||||
int32 retcode = 1;
|
||||
uint64 dieGuid = 2;
|
||||
uint32 skillId = 3;
|
||||
}
|
17
proto/AvatarEnterSceneInfo.proto
Normal file
17
proto/AvatarEnterSceneInfo.proto
Normal file
@ -0,0 +1,17 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
import "AbilitySyncStateInfo.proto";
|
||||
import "ServerBuff.proto";
|
||||
|
||||
message AvatarEnterSceneInfo {
|
||||
uint64 avatarGuid = 1;
|
||||
uint32 avatarEntityId = 2;
|
||||
AbilitySyncStateInfo avatarAbilityInfo = 3;
|
||||
repeated uint32 buffIdList = 4;
|
||||
uint64 weaponGuid = 5;
|
||||
uint32 weaponEntityId = 6;
|
||||
AbilitySyncStateInfo weaponAbilityInfo = 7;
|
||||
repeated ServerBuff serverBuffList = 8;
|
||||
}
|
8
proto/AvatarEquipAffixInfo.proto
Normal file
8
proto/AvatarEquipAffixInfo.proto
Normal file
@ -0,0 +1,8 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message AvatarEquipAffixInfo {
|
||||
uint32 equipAffixId = 1;
|
||||
uint32 leftCdTime = 2;
|
||||
}
|
15
proto/AvatarEquipChangeNotify.proto
Normal file
15
proto/AvatarEquipChangeNotify.proto
Normal file
@ -0,0 +1,15 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
import "SceneReliquaryInfo.proto";
|
||||
import "SceneWeaponInfo.proto";
|
||||
|
||||
message AvatarEquipChangeNotify {
|
||||
uint64 avatarGuid = 1;
|
||||
uint32 equipType = 2;
|
||||
uint32 itemId = 3;
|
||||
uint64 equipGuid = 4;
|
||||
SceneWeaponInfo weapon = 5;
|
||||
SceneReliquaryInfo reliquary = 6;
|
||||
}
|
10
proto/AvatarExpeditionState.proto
Normal file
10
proto/AvatarExpeditionState.proto
Normal file
@ -0,0 +1,10 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
enum AvatarExpeditionState {
|
||||
AvatarExpeditionNone = 0;
|
||||
AvatarExpeditionDoing = 1;
|
||||
AvatarExpeditionFinishWaitReward = 2;
|
||||
AvatarExpeditionCallbackWaitReward = 3;
|
||||
}
|
14
proto/AvatarFetterInfo.proto
Normal file
14
proto/AvatarFetterInfo.proto
Normal file
@ -0,0 +1,14 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
import "FetterData.proto";
|
||||
|
||||
message AvatarFetterInfo {
|
||||
uint32 expNumber = 1;
|
||||
uint32 expLevel = 2;
|
||||
repeated uint32 openIdList = 3;
|
||||
repeated uint32 finishIdList = 4;
|
||||
repeated uint32 rewardedFetterLevelList = 5;
|
||||
repeated FetterData fetterList = 6;
|
||||
}
|
8
proto/AvatarFightPropNotify.proto
Normal file
8
proto/AvatarFightPropNotify.proto
Normal file
@ -0,0 +1,8 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message AvatarFightPropNotify {
|
||||
uint64 avatarGuid = 1;
|
||||
map<uint32, float> fightPropMap = 2;
|
||||
}
|
8
proto/AvatarFightPropUpdateNotify.proto
Normal file
8
proto/AvatarFightPropUpdateNotify.proto
Normal file
@ -0,0 +1,8 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message AvatarFightPropUpdateNotify {
|
||||
uint64 avatarGuid = 1;
|
||||
map<uint32, float> fightPropMap = 2;
|
||||
}
|
8
proto/AvatarFlycloakChangeNotify.proto
Normal file
8
proto/AvatarFlycloakChangeNotify.proto
Normal file
@ -0,0 +1,8 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message AvatarFlycloakChangeNotify {
|
||||
uint64 avatarGuid = 1;
|
||||
uint32 flycloakId = 2;
|
||||
}
|
7
proto/AvatarGainCostumeNotify.proto
Normal file
7
proto/AvatarGainCostumeNotify.proto
Normal file
@ -0,0 +1,7 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message AvatarGainCostumeNotify {
|
||||
uint32 costumeId = 1;
|
||||
}
|
7
proto/AvatarGainFlycloakNotify.proto
Normal file
7
proto/AvatarGainFlycloakNotify.proto
Normal file
@ -0,0 +1,7 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message AvatarGainFlycloakNotify {
|
||||
uint32 flycloakId = 1;
|
||||
}
|
37
proto/AvatarInfo.proto
Normal file
37
proto/AvatarInfo.proto
Normal file
@ -0,0 +1,37 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
import "AvatarEquipAffixInfo.proto";
|
||||
import "AvatarExpeditionState.proto";
|
||||
import "AvatarFetterInfo.proto";
|
||||
import "AvatarSkillInfo.proto";
|
||||
import "PropValue.proto";
|
||||
import "TrialAvatarInfo.proto";
|
||||
|
||||
message AvatarInfo {
|
||||
uint32 avatarId = 1;
|
||||
uint64 guid = 2;
|
||||
map<uint32, PropValue> propMap = 3;
|
||||
uint32 lifeState = 4;
|
||||
repeated uint64 equipGuidList = 5;
|
||||
repeated uint32 talentIdList = 6;
|
||||
map<uint32, float> fightPropMap = 7;
|
||||
TrialAvatarInfo trialAvatarInfoField = 9;
|
||||
map<uint32, AvatarSkillInfo> skillMap = 10;
|
||||
uint32 skillDepotId = 11;
|
||||
AvatarFetterInfo fetterInfo = 12;
|
||||
uint32 coreProudSkillLevel = 13;
|
||||
repeated uint32 inherentProudSkillList = 14;
|
||||
map<uint32, uint32> skillLevelMap = 15;
|
||||
AvatarExpeditionState expeditionState = 16;
|
||||
map<uint32, uint32> proudSkillExtraLevel = 17;
|
||||
bool isFocusFieldNumber = 18;
|
||||
uint32 avatarType = 19;
|
||||
repeated uint32 teamResonanceList = 20;
|
||||
uint32 wearingFlycloakId = 21;
|
||||
repeated AvatarEquipAffixInfo equipAffixList = 22;
|
||||
uint32 bornTime = 23;
|
||||
repeated uint32 pendingPromoteRewardListFieldNumber = 24;
|
||||
uint32 costumeId = 25;
|
||||
}
|
14
proto/AvatarLifeStateChangeNotify.proto
Normal file
14
proto/AvatarLifeStateChangeNotify.proto
Normal file
@ -0,0 +1,14 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
import "PlayerDieType.proto";
|
||||
|
||||
message AvatarLifeStateChangeNotify {
|
||||
uint64 avatarGuid = 1;
|
||||
uint32 lifeState = 2;
|
||||
uint32 sourceEntityId = 3;
|
||||
string attackTag = 4;
|
||||
PlayerDieType dieType = 5;
|
||||
uint32 moveReliableSeq = 6;
|
||||
}
|
7
proto/AvatarPromoteReq.proto
Normal file
7
proto/AvatarPromoteReq.proto
Normal file
@ -0,0 +1,7 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message AvatarPromoteReq {
|
||||
uint64 guid = 1;
|
||||
}
|
8
proto/AvatarPromoteRsp.proto
Normal file
8
proto/AvatarPromoteRsp.proto
Normal file
@ -0,0 +1,8 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message AvatarPromoteRsp {
|
||||
int32 retcode = 1;
|
||||
uint64 guid = 2;
|
||||
}
|
8
proto/AvatarPropNotify.proto
Normal file
8
proto/AvatarPropNotify.proto
Normal file
@ -0,0 +1,8 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message AvatarPropNotify {
|
||||
uint64 avatarGuid = 1;
|
||||
map<uint32, int64> propMap = 2;
|
||||
}
|
12
proto/AvatarSkillChangeNotify.proto
Normal file
12
proto/AvatarSkillChangeNotify.proto
Normal file
@ -0,0 +1,12 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message AvatarSkillChangeNotify {
|
||||
uint64 avatarGuid = 1;
|
||||
uint32 entityId = 2;
|
||||
uint32 skillDepotId = 3;
|
||||
uint32 avatarSkillId = 4;
|
||||
uint32 oldLevel = 5;
|
||||
uint32 curLevel = 6;
|
||||
}
|
9
proto/AvatarSkillInfo.proto
Normal file
9
proto/AvatarSkillInfo.proto
Normal file
@ -0,0 +1,9 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message AvatarSkillInfo {
|
||||
uint32 passCdTime = 1;
|
||||
repeated uint32 fullCdTimeList = 2;
|
||||
uint32 maxChargeCount = 3;
|
||||
}
|
9
proto/AvatarSkillUpgradeReq.proto
Normal file
9
proto/AvatarSkillUpgradeReq.proto
Normal file
@ -0,0 +1,9 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message AvatarSkillUpgradeReq {
|
||||
uint64 avatarGuid = 1;
|
||||
uint32 avatarSkillId = 2;
|
||||
uint32 oldLevel = 3;
|
||||
}
|
11
proto/AvatarSkillUpgradeRsp.proto
Normal file
11
proto/AvatarSkillUpgradeRsp.proto
Normal file
@ -0,0 +1,11 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message AvatarSkillUpgradeRsp {
|
||||
int32 retcode = 1;
|
||||
uint64 avatarGuid = 2;
|
||||
uint32 avatarSkillId = 3;
|
||||
uint32 oldLevel = 4;
|
||||
uint32 curLevel = 5;
|
||||
}
|
8
proto/AvatarTeam.proto
Normal file
8
proto/AvatarTeam.proto
Normal file
@ -0,0 +1,8 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message AvatarTeam {
|
||||
repeated uint64 avatarGuidList = 1;
|
||||
string teamName = 2;
|
||||
}
|
10
proto/AvatarTeamResonanceInfo.proto
Normal file
10
proto/AvatarTeamResonanceInfo.proto
Normal file
@ -0,0 +1,10 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message AvatarTeamResonanceInfo {
|
||||
uint32 entityId = 1;
|
||||
uint64 avatarGuid = 2;
|
||||
repeated uint32 addTeamResonanceIdList = 3;
|
||||
repeated uint32 delTeamResonanceIdList = 4;
|
||||
}
|
10
proto/AvatarTeamUpdateNotify.proto
Normal file
10
proto/AvatarTeamUpdateNotify.proto
Normal file
@ -0,0 +1,10 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
import "AvatarTeam.proto";
|
||||
|
||||
message AvatarTeamUpdateNotify {
|
||||
map<uint32, AvatarTeam> avatarTeamMap = 1;
|
||||
repeated uint64 tempAvatarGuidList = 2;
|
||||
}
|
10
proto/AvatarUnlockTalentNotify.proto
Normal file
10
proto/AvatarUnlockTalentNotify.proto
Normal file
@ -0,0 +1,10 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message AvatarUnlockTalentNotify {
|
||||
uint64 avatarGuid = 1;
|
||||
uint32 entityId = 2;
|
||||
uint32 talentId = 3;
|
||||
uint32 skillDepotId = 4;
|
||||
}
|
9
proto/AvatarUpgradeReq.proto
Normal file
9
proto/AvatarUpgradeReq.proto
Normal file
@ -0,0 +1,9 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message AvatarUpgradeReq {
|
||||
uint32 itemId = 1;
|
||||
uint32 count = 2;
|
||||
uint64 avatarGuid = 3;
|
||||
}
|
12
proto/AvatarUpgradeRsp.proto
Normal file
12
proto/AvatarUpgradeRsp.proto
Normal file
@ -0,0 +1,12 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message AvatarUpgradeRsp {
|
||||
int32 retcode = 1;
|
||||
uint64 avatarGuid = 2;
|
||||
uint32 oldLevel = 3;
|
||||
uint32 curLevel = 4;
|
||||
map<uint32, float> oldFightPropMap = 5;
|
||||
map<uint32, float> curFightPropMap = 6;
|
||||
}
|
8
proto/AvatarWearFlycloakReq.proto
Normal file
8
proto/AvatarWearFlycloakReq.proto
Normal file
@ -0,0 +1,8 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message AvatarWearFlycloakReq {
|
||||
uint64 avatarGuid = 1;
|
||||
uint32 flycloakId = 2;
|
||||
}
|
9
proto/AvatarWearFlycloakRsp.proto
Normal file
9
proto/AvatarWearFlycloakRsp.proto
Normal file
@ -0,0 +1,9 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message AvatarWearFlycloakRsp {
|
||||
int32 retcode = 1;
|
||||
uint64 avatarGuid = 2;
|
||||
uint32 flycloakId = 3;
|
||||
}
|
8
proto/Birthday.proto
Normal file
8
proto/Birthday.proto
Normal file
@ -0,0 +1,8 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message Birthday {
|
||||
uint32 month = 1;
|
||||
uint32 day = 2;
|
||||
}
|
10
proto/BlockInfo.proto
Normal file
10
proto/BlockInfo.proto
Normal file
@ -0,0 +1,10 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message BlockInfo {
|
||||
uint32 blockId = 1;
|
||||
uint32 dataVersion = 2;
|
||||
bytes binData = 3;
|
||||
bool isDirty = 4;
|
||||
}
|
11
proto/CalcWeaponUpgradeReturnItemsReq.proto
Normal file
11
proto/CalcWeaponUpgradeReturnItemsReq.proto
Normal file
@ -0,0 +1,11 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
import "ItemParam.proto";
|
||||
|
||||
message CalcWeaponUpgradeReturnItemsReq {
|
||||
uint64 targetWeaponGuid = 1;
|
||||
repeated uint64 foodWeaponGuidList = 2;
|
||||
repeated ItemParam itemParamList = 3;
|
||||
}
|
11
proto/CalcWeaponUpgradeReturnItemsRsp.proto
Normal file
11
proto/CalcWeaponUpgradeReturnItemsRsp.proto
Normal file
@ -0,0 +1,11 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
import "ItemParam.proto";
|
||||
|
||||
message CalcWeaponUpgradeReturnItemsRsp {
|
||||
int32 retcode = 1;
|
||||
uint64 targetWeaponGuid = 2;
|
||||
repeated ItemParam itemParamList = 3;
|
||||
}
|
12
proto/ChangeAvatarReq.proto
Normal file
12
proto/ChangeAvatarReq.proto
Normal file
@ -0,0 +1,12 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
import "Vector.proto";
|
||||
|
||||
message ChangeAvatarReq {
|
||||
uint64 guid = 1;
|
||||
uint32 skillId = 2;
|
||||
bool isMove = 3;
|
||||
Vector movePos = 4;
|
||||
}
|
9
proto/ChangeAvatarRsp.proto
Normal file
9
proto/ChangeAvatarRsp.proto
Normal file
@ -0,0 +1,9 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message ChangeAvatarRsp {
|
||||
uint32 retcode = 1;
|
||||
uint64 currGuid = 2;
|
||||
uint32 skillId = 3;
|
||||
}
|
8
proto/ChangeGameTimeReq.proto
Normal file
8
proto/ChangeGameTimeReq.proto
Normal file
@ -0,0 +1,8 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message ChangeGameTimeReq {
|
||||
uint32 gameTime = 1;
|
||||
bool isForceSet = 2;
|
||||
}
|
8
proto/ChangeGameTimeRsp.proto
Normal file
8
proto/ChangeGameTimeRsp.proto
Normal file
@ -0,0 +1,8 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message ChangeGameTimeRsp {
|
||||
int32 retcode = 1;
|
||||
uint32 curGameTime = 2;
|
||||
}
|
31
proto/ChangeHpReason.proto
Normal file
31
proto/ChangeHpReason.proto
Normal file
@ -0,0 +1,31 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
enum ChangeHpReason {
|
||||
ChangeHpNone = 0;
|
||||
ChangeHpSubAvatar = 1;
|
||||
ChangeHpSubMonster = 2;
|
||||
ChangeHpSubGear = 3;
|
||||
ChangeHpSubEnvir = 4;
|
||||
ChangeHpSubFall = 5;
|
||||
ChangeHpSubDrawn = 6;
|
||||
ChangeHpSubAbyss = 7;
|
||||
ChangeHpSubAbility = 8;
|
||||
ChangeHpSubSummon = 9;
|
||||
ChangeHpSubScript = 10;
|
||||
ChangeHpSubGm = 11;
|
||||
ChangeHpSubKillSelf = 12;
|
||||
ChangeHpSubClimateCold = 13;
|
||||
ChangeHpSubStormLightning = 14;
|
||||
ChangeHpSubKillServerGadget = 15;
|
||||
ChangeHpByLua = 51;
|
||||
ChangeHpAddAbility = 101;
|
||||
ChangeHpAddItem = 102;
|
||||
ChangeHpAddRevive = 103;
|
||||
ChangeHpAddUpgrade = 104;
|
||||
ChangeHpAddStatue = 105;
|
||||
ChangeHpAddBackground = 106;
|
||||
ChangeHpAddGm = 107;
|
||||
ChangeHpAddTrialAvatarActivity = 108;
|
||||
}
|
8
proto/ChangeMpTeamAvatarReq.proto
Normal file
8
proto/ChangeMpTeamAvatarReq.proto
Normal file
@ -0,0 +1,8 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message ChangeMpTeamAvatarReq {
|
||||
repeated uint64 avatarGuidList = 1;
|
||||
uint64 curAvatarGuid = 2;
|
||||
}
|
9
proto/ChangeMpTeamAvatarRsp.proto
Normal file
9
proto/ChangeMpTeamAvatarRsp.proto
Normal file
@ -0,0 +1,9 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message ChangeMpTeamAvatarRsp {
|
||||
int32 retcode = 1;
|
||||
repeated uint64 avatarGuidList = 2;
|
||||
uint64 curAvatarGuid = 3;
|
||||
}
|
8
proto/ChangeTeamNameReq.proto
Normal file
8
proto/ChangeTeamNameReq.proto
Normal file
@ -0,0 +1,8 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message ChangeTeamNameReq {
|
||||
int32 teamId = 1;
|
||||
string teamName = 2;
|
||||
}
|
9
proto/ChangeTeamNameRsp.proto
Normal file
9
proto/ChangeTeamNameRsp.proto
Normal file
@ -0,0 +1,9 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message ChangeTeamNameRsp {
|
||||
int32 teamId = 1;
|
||||
string teamName = 2;
|
||||
int32 retcode = 3;
|
||||
}
|
18
proto/ChatInfo.proto
Normal file
18
proto/ChatInfo.proto
Normal file
@ -0,0 +1,18 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
import "SystemHint.proto";
|
||||
|
||||
message ChatInfo {
|
||||
uint32 time = 1;
|
||||
uint32 uid = 2;
|
||||
uint32 sequence = 3;
|
||||
uint32 toUid = 4;
|
||||
bool isRead = 5;
|
||||
oneof content {
|
||||
string text = 100;
|
||||
uint32 icon = 101;
|
||||
SystemHint systemHint = 102;
|
||||
}
|
||||
}
|
7
proto/ChooseCurAvatarTeamReq.proto
Normal file
7
proto/ChooseCurAvatarTeamReq.proto
Normal file
@ -0,0 +1,7 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message ChooseCurAvatarTeamReq {
|
||||
uint32 teamId = 1;
|
||||
}
|
8
proto/ChooseCurAvatarTeamRsp.proto
Normal file
8
proto/ChooseCurAvatarTeamRsp.proto
Normal file
@ -0,0 +1,8 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message ChooseCurAvatarTeamRsp {
|
||||
int32 retcode = 1;
|
||||
uint32 curTeamId = 2;
|
||||
}
|
9
proto/CityInfo.proto
Normal file
9
proto/CityInfo.proto
Normal file
@ -0,0 +1,9 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
message CityInfo {
|
||||
uint32 cityId = 1;
|
||||
uint32 level = 2;
|
||||
uint32 crystalNum = 3;
|
||||
}
|
10
proto/ClientAbilityChangeNotify.proto
Normal file
10
proto/ClientAbilityChangeNotify.proto
Normal file
@ -0,0 +1,10 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option java_package = "emu.grasscutter.net.proto";
|
||||
|
||||
import "AbilityInvokeEntry.proto";
|
||||
|
||||
message ClientAbilityChangeNotify {
|
||||
uint32 entityId = 1;
|
||||
repeated AbilityInvokeEntry invokes = 2;
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user