diff options
author | syeyoung <cyong06@naver.com> | 2021-08-08 18:21:51 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2021-08-08 22:02:06 +0900 |
commit | eaaac61857654f7f629fa9ada669f40301009e31 (patch) | |
tree | 98189a04dcb1cd351d8ab30e31e932e65ad9454d /src/main/java/net/arikia/dev/drpc/callbacks | |
parent | a6eb8b879e8bad88aa334c3e681067e314723c59 (diff) | |
download | Skyblock-Dungeons-Guide-eaaac61857654f7f629fa9ada669f40301009e31.tar.gz Skyblock-Dungeons-Guide-eaaac61857654f7f629fa9ada669f40301009e31.tar.bz2 Skyblock-Dungeons-Guide-eaaac61857654f7f629fa9ada669f40301009e31.zip |
- GameSDK Binding
Welp it was painful writing a tool to generating these bindings, then manually correcting classes
Diffstat (limited to 'src/main/java/net/arikia/dev/drpc/callbacks')
6 files changed, 0 insertions, 235 deletions
diff --git a/src/main/java/net/arikia/dev/drpc/callbacks/DisconnectedCallback.java b/src/main/java/net/arikia/dev/drpc/callbacks/DisconnectedCallback.java deleted file mode 100644 index 367e1878..00000000 --- a/src/main/java/net/arikia/dev/drpc/callbacks/DisconnectedCallback.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Dungeons Guide - The most intelligent Hypixel Skyblock Dungeons Mod - * Copyright (C) 2021 cyoung06 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <https://www.gnu.org/licenses/>. - */ - -package net.arikia.dev.drpc.callbacks; - -import com.sun.jna.Callback; - -/** - * @author Nicolas "Vatuu" Adamoglou - * @version 1.5.1 - * <p> - * Interface to be implemented in classes that will be registered as "DisconnectedCallback" Event Handler. - * @see net.arikia.dev.drpc.DiscordEventHandlers - **/ -public interface DisconnectedCallback extends Callback { - - /** - * Method called when disconnected. - * - * @param errorCode Error code returned on disconnection. - * @param message Message containing details about the disconnection. - */ - void apply(int errorCode, String message); -} diff --git a/src/main/java/net/arikia/dev/drpc/callbacks/ErroredCallback.java b/src/main/java/net/arikia/dev/drpc/callbacks/ErroredCallback.java deleted file mode 100644 index 8cf3d387..00000000 --- a/src/main/java/net/arikia/dev/drpc/callbacks/ErroredCallback.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Dungeons Guide - The most intelligent Hypixel Skyblock Dungeons Mod - * Copyright (C) 2021 cyoung06 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <https://www.gnu.org/licenses/>. - */ - -package net.arikia.dev.drpc.callbacks; - -import com.sun.jna.Callback; - -/** - * @author Nicolas "Vatuu" Adamoglou - * @version 1.5.1 - * <p> - * Interface to be implemented in classes that will be registered as "ErroredCallback" Event Handler. - * @see net.arikia.dev.drpc.DiscordEventHandlers - **/ -public interface ErroredCallback extends Callback { - - /** - * Method called when a error occurs. - * - * @param errorCode Error code returned. - * @param message Message containing details about the error. - */ - void apply(int errorCode, String message); -} diff --git a/src/main/java/net/arikia/dev/drpc/callbacks/JoinGameCallback.java b/src/main/java/net/arikia/dev/drpc/callbacks/JoinGameCallback.java deleted file mode 100644 index 42b944e8..00000000 --- a/src/main/java/net/arikia/dev/drpc/callbacks/JoinGameCallback.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Dungeons Guide - The most intelligent Hypixel Skyblock Dungeons Mod - * Copyright (C) 2021 cyoung06 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <https://www.gnu.org/licenses/>. - */ - -package net.arikia.dev.drpc.callbacks; - -import com.sun.jna.Callback; - -/** - * @author Nicolas "Vatuu" Adamoglou - * @version 1.5.1 - * <p> - * Interface to be implemented in classes that will be registered as "JoinGameCallback" Event Handler. - * @see net.arikia.dev.drpc.DiscordEventHandlers - **/ -public interface JoinGameCallback extends Callback { - - /** - * Method called when joining a game. - * - * @param joinSecret Unique String containing information needed to let the player join. - */ - void apply(String joinSecret); -} diff --git a/src/main/java/net/arikia/dev/drpc/callbacks/JoinRequestCallback.java b/src/main/java/net/arikia/dev/drpc/callbacks/JoinRequestCallback.java deleted file mode 100644 index 01ec5a7d..00000000 --- a/src/main/java/net/arikia/dev/drpc/callbacks/JoinRequestCallback.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Dungeons Guide - The most intelligent Hypixel Skyblock Dungeons Mod - * Copyright (C) 2021 cyoung06 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <https://www.gnu.org/licenses/>. - */ - -package net.arikia.dev.drpc.callbacks; - -import com.sun.jna.Callback; -import net.arikia.dev.drpc.DiscordUser; - -/** - * @author Nicolas "Vatuu" Adamoglou - * @version 1.5.1 - * <p> - * Interface to be implemented in classes that will be registered as "JoinRequestCallback" Event Handler. - * @see net.arikia.dev.drpc.DiscordEventHandlers - **/ -public interface JoinRequestCallback extends Callback { - - /** - * Method called when another player requests to join a game. - * - * @param request Object containing all required information about the user requesting to join. - * @see DiscordUser - */ - void apply(DiscordUser request); -} diff --git a/src/main/java/net/arikia/dev/drpc/callbacks/ReadyCallback.java b/src/main/java/net/arikia/dev/drpc/callbacks/ReadyCallback.java deleted file mode 100644 index be54c8d7..00000000 --- a/src/main/java/net/arikia/dev/drpc/callbacks/ReadyCallback.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Dungeons Guide - The most intelligent Hypixel Skyblock Dungeons Mod - * Copyright (C) 2021 cyoung06 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <https://www.gnu.org/licenses/>. - */ - -package net.arikia.dev.drpc.callbacks; - -import com.sun.jna.Callback; -import net.arikia.dev.drpc.DiscordUser; - -/** - * @author Nicolas "Vatuu" Adamoglou - * @version 1.5.1 - * <p> - * Interface to be implemented in classes that will be registered as "ReadyCallback" Event Handler. - * @see net.arikia.dev.drpc.DiscordEventHandlers - **/ -public interface ReadyCallback extends Callback { - - /** - * Method called when the connection to Discord has been established. - * - * @param user Object containing all required information about the user executing the app. - * @see DiscordUser - **/ - void apply(DiscordUser user); -} - diff --git a/src/main/java/net/arikia/dev/drpc/callbacks/SpectateGameCallback.java b/src/main/java/net/arikia/dev/drpc/callbacks/SpectateGameCallback.java deleted file mode 100644 index a3f8d23b..00000000 --- a/src/main/java/net/arikia/dev/drpc/callbacks/SpectateGameCallback.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Dungeons Guide - The most intelligent Hypixel Skyblock Dungeons Mod - * Copyright (C) 2021 cyoung06 - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <https://www.gnu.org/licenses/>. - */ - -package net.arikia.dev.drpc.callbacks; - -import com.sun.jna.Callback; - -/** - * @author Nicolas "Vatuu" Adamoglou - * @version 1.5.1 - * <p> - * Interface to be implemented in classes that will be registered as "SpectateGameCallback" Event Handler. - * @see net.arikia.dev.drpc.DiscordEventHandlers - **/ -public interface SpectateGameCallback extends Callback { - - /** - * Method called when joining a game. - * - * @param spectateSecret Unique String containing information needed to let the player spectate. - */ - void apply(String spectateSecret); -} |