Skip to content

Commit afca1a1

Browse files
committed
refactor(sdk): rename
1 parent 01ae5a4 commit afca1a1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

engine/modules/entities/src/main/java/com/codingame/gameengine/module/entities/GraphicEntityModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ private void sendFrameData() {
200200
currentWorldState.updateAllEntities(nextWorldState);
201201
}
202202

203-
Optional<String> worldCommits = gameSerializer.serializeWorldStateUpdates(worldCommitsBuilder);
203+
Optional<String> worldCommits = gameSerializer.serializeWorldCommits(worldCommitsBuilder);
204204

205205
Optional<String> update = gameSerializer.serializeWorldDiff(updateBuilder);
206206

engine/modules/entities/src/main/java/com/codingame/gameengine/module/entities/Serializer.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,13 +224,13 @@ public Optional<String> serializeLoadSpriteSheets(List<SpriteSheetLoader> sprite
224224
}
225225
}
226226

227-
public Optional<String> serializeWorldStateUpdates(List<String> worldUpdates) {
228-
if (worldUpdates.isEmpty()) {
227+
public Optional<String> serializeWorldCommits(List<String> worldCommits) {
228+
if (worldCommits.isEmpty()) {
229229
return Optional.empty();
230230
} else {
231231
return Optional.of(
232232
commands.get("WORLDUPDATE") +
233-
worldUpdates.stream()
233+
worldCommits.stream()
234234
.collect(Collectors.joining(separators.get("COMMAND_ARGUMENT")))
235235
);
236236
}

0 commit comments

Comments
 (0)