From a7444ce335f382a6077ee11c69aace95aef6b890 Mon Sep 17 00:00:00 2001 From: Akbar Yahya Date: Sun, 5 Feb 2023 01:33:31 +0800 Subject: [PATCH] Add proto cutscene --- README.md | 8 ++++++-- proto/CutSceneBeginNotify.proto | 10 ++++++++++ proto/CutSceneEndNotify.proto | 8 ++++++++ proto/CutSceneExtraParam.proto | 6 ++++++ proto/CutSceneFinishNotify.proto | 6 ++++++ 5 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 proto/CutSceneBeginNotify.proto create mode 100644 proto/CutSceneEndNotify.proto create mode 100644 proto/CutSceneExtraParam.proto create mode 100644 proto/CutSceneFinishNotify.proto diff --git a/README.md b/README.md index 8ba19af0..ffc1fa48 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ -# Grasscutter Protos -It's a mix of sources, which I'll tell you about later once this is working.... \ No newline at end of file +# Anime Game Protos +This repository contains the [ProtoBuf](https://github.com/google/protobuf) `.proto` files for Anime Game API.
+ +## Credits + - [NickTheHuy (Hiro)](https://github.com/NickTheHuy/3.4_proto) (3.4)
+ - [Sorapointa Team](https://github.com/Sorapointa/Sorapointa-Protos) (<3.3) \ No newline at end of file diff --git a/proto/CutSceneBeginNotify.proto b/proto/CutSceneBeginNotify.proto new file mode 100644 index 00000000..c374d4c4 --- /dev/null +++ b/proto/CutSceneBeginNotify.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; +option java_package = "emu.grasscutter.net.proto"; + +import "CutSceneExtraParam.proto"; + +message CutSceneBeginNotify { + bool isWaitOthers = 3; + repeated CutSceneExtraParam extraParamList = 14; + uint32 cutsceneId = 2; +} diff --git a/proto/CutSceneEndNotify.proto b/proto/CutSceneEndNotify.proto new file mode 100644 index 00000000..25b1771a --- /dev/null +++ b/proto/CutSceneEndNotify.proto @@ -0,0 +1,8 @@ +syntax = "proto3"; +option java_package = "emu.grasscutter.net.proto"; + +message CutSceneEndNotify { + + uint32 cutsceneId = 15; + int32 retcode = 9; +} diff --git a/proto/CutSceneExtraParam.proto b/proto/CutSceneExtraParam.proto new file mode 100644 index 00000000..337d5c76 --- /dev/null +++ b/proto/CutSceneExtraParam.proto @@ -0,0 +1,6 @@ +syntax = "proto3"; +option java_package = "emu.grasscutter.net.proto"; + +message CutSceneExtraParam { + repeated double detailParamList = 3; +} diff --git a/proto/CutSceneFinishNotify.proto b/proto/CutSceneFinishNotify.proto new file mode 100644 index 00000000..7df23470 --- /dev/null +++ b/proto/CutSceneFinishNotify.proto @@ -0,0 +1,6 @@ +syntax = "proto3"; +option java_package = "emu.grasscutter.net.proto"; + +message CutSceneFinishNotify { + uint32 cutsceneId = 14; +}