Skip to content

Commit

Permalink
Remove avatar cache from web game
Browse files Browse the repository at this point in the history
  • Loading branch information
minetoblend committed Jan 6, 2025
1 parent 22a326d commit f8a655e
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions packages/web/src/OsucadWebGame.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import type { DependencyContainer } from 'osucad-framework';
import { ContextMenuContainer, DummyEditorBeatmap, Editor } from '@osucad/common';
import { ContextMenuContainer, DummyEditorBeatmap, Editor, OsuRuleset, RulesetStore } from '@osucad/common';
import { OsucadGameBase } from '@osucad/editor';
import { UserAvatarCache } from '@osucad/editor/UserAvatarCache';
import { Axes, Box } from 'osucad-framework';
import { OsucadScreenStack } from '../../common/src/screens/OsucadScreenStack';
import { EditorActionContainer } from '../../editor/src/editor/EditorActionContainer';
Expand All @@ -18,6 +17,8 @@ export class OsucadWebGame extends OsucadGameBase {
async load(dependencies: DependencyContainer) {
await super.load(dependencies);

RulesetStore.register(new OsuRuleset(), 0);

const screenStack = new OsucadScreenStack();

this.add(new Box({
Expand All @@ -40,11 +41,6 @@ export class OsucadWebGame extends OsucadGameBase {
}),
}));

const avatarCache = new UserAvatarCache();

this.add(avatarCache);
this.dependencies.provide(avatarCache);

const notificationOverlay = new NotificationOverlay();
this.add(notificationOverlay);
dependencies.provide(NotificationOverlay, notificationOverlay);
Expand Down

0 comments on commit f8a655e

Please sign in to comment.