Skip to content

Commit 88ccc48

Browse files
committed
Add placeholder suit API calls
1 parent 8206006 commit 88ccc48

File tree

3 files changed

+66
-0
lines changed

3 files changed

+66
-0
lines changed

api/src/main/java/com/lunarclient/apollo/module/evnt/EVNTModule.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,12 +176,16 @@ public boolean isClientNotify() {
176176

177177
public abstract void updateCosmetics(Recipients recipients, List<String> models, List<String> animations);
178178

179+
public abstract void overrideCharacterSuitResources(Recipients recipients, List<Integer> cosmeticIds);
180+
179181
public abstract void overrideCharacterCosmetic(Recipients recipients, UUID playerUuid, CharacterType type);
180182

181183
public abstract void overrideCharacterAbility(Recipients recipients, List<CharacterAbility> abilities);
182184

183185
public abstract void overrideCharacter(Recipients recipients, Character character);
184186

187+
public abstract void overrideCharacterSuit(Recipients recipients, Suit suit);
188+
185189
public abstract void updateGameOverview(Recipients recipients, EventGame game);
186190

187191
public abstract void updateStatusOverview(Recipients recipients, EventStatus status);
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
/*
2+
* This file is part of Apollo, licensed under the MIT License.
3+
*
4+
* Copyright (c) 2023 Moonsworth
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
*/
24+
package com.lunarclient.apollo.module.evnt;
25+
26+
import lombok.Builder;
27+
import lombok.Getter;
28+
import java.util.UUID;
29+
30+
/**
31+
* Represents a suit.
32+
*
33+
* @since 1.0.0 // TODO
34+
*/
35+
@Getter
36+
@Builder
37+
public final class Suit {
38+
39+
/**
40+
* The UUID of this player.
41+
*
42+
* @since 1.0.0 // TODO
43+
*/
44+
UUID playerUuid;
45+
46+
CharacterType type;
47+
48+
int cosmeticID;
49+
50+
boolean equipped;
51+
52+
}

common/src/main/java/com/lunarclient/apollo/module/evnt/EVNTModuleImpl.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,11 @@ public void updateCosmetics(@NonNull Recipients recipients, @NonNull List<String
148148
recipients.forEach(player -> ((AbstractApolloPlayer) player).sendPacket(message));
149149
}
150150

151+
@Override
152+
public void overrideCharacterSuitResources(@NonNull Recipients recipients, @NonNull List<Integer> cosmeticIds) {
153+
// TODO
154+
}
155+
151156
@Override
152157
public void overrideCharacterCosmetic(@NonNull Recipients recipients, @NonNull UUID playerUuid, @NonNull CharacterType type) {
153158
OverrideCharacterCosmeticMessage message = OverrideCharacterCosmeticMessage.newBuilder()
@@ -179,6 +184,11 @@ public void overrideCharacter(@NonNull Recipients recipients, @NonNull Character
179184
recipients.forEach(player -> ((AbstractApolloPlayer) player).sendPacket(message));
180185
}
181186

187+
@Override
188+
public void overrideCharacterSuit(@NonNull Recipients recipients, @NonNull Suit suit) {
189+
// TODO
190+
}
191+
182192
@Override
183193
public void updateGameOverview(@NonNull Recipients recipients, @NonNull EventGame game) {
184194
EventGameOverviewMessage message = EventGameOverviewMessage.newBuilder()

0 commit comments

Comments
 (0)