Add ship design constants in the shared module

This commit is contained in:
Oliver Akins 2022-03-07 23:35:56 -06:00
parent ad9ad389b6
commit d1e37d8fec
No known key found for this signature in database
GPG key ID: 3C2014AF9457AF99
3 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,22 @@
import { ISpaceship } from "../types/Spaceship";
/**
* The spaceships that are supported in the system, the "id" property **must**
* exist in the spaceship.svelte file as an icon, otherwise the "space-shuttle"
* icon will be used. The first icon in this list will be used by the server to
* assign new players' ship icon.
*/
export const spaceships: ISpaceship[] = [
{
name: "Space Shuttle",
id: "space-shuttle"
},
{
name: "Rocket",
id: "rocket"
},
{
name: "Sailboat",
id: "sailboat"
},
];