Add ship design constants in the shared module
This commit is contained in:
parent
ad9ad389b6
commit
d1e37d8fec
3 changed files with 43 additions and 0 deletions
22
common/src/data/spaceships.ts
Normal file
22
common/src/data/spaceships.ts
Normal 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"
|
||||
},
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue