This repository has been archived by the owner on Aug 4, 2024. It is now read-only.
forked from workadventure/workadventure
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New Release 06/02/2024 (workadventure#3718)
# Changes 2 new features developed and in beta test 🔥 ## Room list ### Play - Create component to show the room list - Create API to get the room list from pusher and map storage - Hydrate room list to usable map object ### Map storage Inject MapListService service into the MapManager. The service profit to update: - WAM description to return the number of area and entity to exploration mode; - Update name, description or picture from the map editor; ## Explorer mode ### Play - unlock the following user camera to move on the map and discorder the room, - create a search mode. The user can search an item (zone or object) put by the map editor, - item details: when the 478156 click the item detail, the information like interaction, name, image, description… is displayed, ### Test - create test to put items on the room and use search explorer mode to find it.
- Loading branch information
Showing
91 changed files
with
3,222 additions
and
442 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
libs/map-editor/src/Commands/WAM/UpdateWAMMetadataCommand.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import type { ModifiyWAMMetadataMessage } from "@workadventure/messages"; | ||
import { WAMFileFormat } from "../../types"; | ||
import { Command } from "../Command"; | ||
|
||
export class UpdateWAMMetadataCommand extends Command { | ||
constructor( | ||
protected wam: WAMFileFormat, | ||
protected modifiyWAMMetadataMessage: ModifiyWAMMetadataMessage, | ||
id?: string | ||
) { | ||
super(id); | ||
} | ||
|
||
execute(): Promise<WAMFileFormat> { | ||
if (!this.wam.metadata) { | ||
this.wam.metadata = {}; | ||
} | ||
this.wam.metadata.name = this.modifiyWAMMetadataMessage.name; | ||
this.wam.metadata.description = this.modifiyWAMMetadataMessage.description; | ||
this.wam.metadata.thumbnail = this.modifiyWAMMetadataMessage.thumbnail; | ||
this.wam.metadata.copyright = this.modifiyWAMMetadataMessage.copyright; | ||
|
||
if (!this.wam.vendor) { | ||
this.wam.vendor = { | ||
tags: Array<string>(), | ||
}; | ||
} | ||
(this.wam.vendor as { tags: Array<string> }).tags = | ||
this.modifiyWAMMetadataMessage.tags && this.modifiyWAMMetadataMessage.tags.length > 0 | ||
? this.modifiyWAMMetadataMessage.tags.split(",") | ||
: []; | ||
return Promise.resolve(this.wam); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.