Preliminary work around making an Element type
This commit is contained in:
parent
702566e2ed
commit
63846089a4
2 changed files with 69 additions and 0 deletions
9
types/GranblueElement.d.ts
vendored
Normal file
9
types/GranblueElement.d.ts
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
interface GranblueElement {
|
||||
[key: string]: any
|
||||
id: number
|
||||
weaknessId: number
|
||||
name: {
|
||||
en: string
|
||||
ja: string
|
||||
}
|
||||
}
|
||||
60
utils/elements.tsx
Normal file
60
utils/elements.tsx
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
const elements: GranblueElement[] = [
|
||||
{
|
||||
id: 0,
|
||||
weaknessId: 0,
|
||||
name: {
|
||||
en: 'null',
|
||||
ja: '無',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
weaknessId: 2,
|
||||
name: {
|
||||
en: 'wind',
|
||||
ja: '風',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
weaknessId: 3,
|
||||
name: {
|
||||
en: 'fire',
|
||||
ja: '火',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
weaknessId: 4,
|
||||
name: {
|
||||
en: 'water',
|
||||
ja: '水',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
weaknessId: 1,
|
||||
name: {
|
||||
en: 'earth',
|
||||
ja: '土',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
weaknessId: 5,
|
||||
name: {
|
||||
en: 'dark',
|
||||
ja: '闇',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
weaknessId: 6,
|
||||
name: {
|
||||
en: 'light',
|
||||
ja: '光',
|
||||
},
|
||||
},
|
||||
]
|
||||
|
||||
export default elements
|
||||
Loading…
Reference in a new issue