Initial commit
This commit is contained in:
commit
fa2a864365
5 changed files with 403 additions and 0 deletions
75
example/example.odin
Normal file
75
example/example.odin
Normal file
|
|
@ -0,0 +1,75 @@
|
|||
package xoark_db
|
||||
|
||||
Date :: struct {
|
||||
year: i16,
|
||||
month: i8,
|
||||
day: i8,
|
||||
}
|
||||
|
||||
Time :: struct {
|
||||
hour: i8,
|
||||
minute: i8,
|
||||
second: i8,
|
||||
}
|
||||
|
||||
Genre :: enum u8 {
|
||||
IDM,
|
||||
Noise,
|
||||
Glitch,
|
||||
Breakcore,
|
||||
SoCalledDnb,
|
||||
Ambient,
|
||||
Placeholder01,
|
||||
Placeholder02,
|
||||
Placeholder03,
|
||||
Placeholder04,
|
||||
Placeholder05,
|
||||
Placeholder06,
|
||||
Placeholder07,
|
||||
Placeholder08,
|
||||
Placeholder09,
|
||||
Placeholder10,
|
||||
Placeholder11,
|
||||
Placeholder12,
|
||||
Placeholder13,
|
||||
Placeholder14,
|
||||
Placeholder15,
|
||||
Placeholder16,
|
||||
}
|
||||
|
||||
Type :: enum u8 {
|
||||
Album,
|
||||
EP,
|
||||
Split,
|
||||
VA,
|
||||
Journey,
|
||||
Single,
|
||||
}
|
||||
|
||||
@export_js Series :: enum u8 {
|
||||
None = -2,
|
||||
Hex,
|
||||
Base64,
|
||||
P,
|
||||
Missing_Broken,
|
||||
Satellits,
|
||||
Praspis,
|
||||
Gnocchi,
|
||||
Runtime,
|
||||
};
|
||||
|
||||
Album :: struct {
|
||||
genre: bit_set[Genre],
|
||||
type: Type,
|
||||
series: Series,
|
||||
rating: u8,
|
||||
listened: Date,
|
||||
released: Date,
|
||||
duration: Time,
|
||||
title: string,
|
||||
art: string,
|
||||
url: string,
|
||||
favorite: string,
|
||||
comment: string,
|
||||
listens: i32,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue