Skip to content

Commit

Permalink
Deploying to gh-pages from @ 5e27eee 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
Polynomix committed Nov 12, 2024
0 parents commit 417db00
Show file tree
Hide file tree
Showing 245 changed files with 318,099 additions and 0 deletions.
Empty file added .dirstamp
Empty file.
Binary file added assets/database/db.bin
Binary file not shown.
10,486 changes: 10,486 additions & 0 deletions assets/database/db.json

Large diffs are not rendered by default.

Binary file added assets/database/leftover_db.bin
Binary file not shown.
29,407 changes: 29,407 additions & 0 deletions assets/database/leftover_db.json

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions assets/database/loader.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package database

import (
_ "embed"

"github.com/wowsims/cata/sim/core/proto"
googleProto "google.golang.org/protobuf/proto"
)

//go:embed db.bin
var dbBytes []byte

func Load() *proto.UIDatabase {
db := &proto.UIDatabase{}
if err := googleProto.Unmarshal(dbBytes, db); err != nil {
panic(err)
}
return db
}
Loading

0 comments on commit 417db00

Please sign in to comment.