Skip to content

Commit

Permalink
Deploying to gh-pages from @ beb4a22 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
NerdEgghead committed Jan 27, 2025
0 parents commit 4300e21
Show file tree
Hide file tree
Showing 245 changed files with 318,459 additions and 0 deletions.
Empty file added .dirstamp
Empty file.
Binary file added assets/database/db.bin
Binary file not shown.
10,338 changes: 10,338 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,397 changes: 29,397 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 4300e21

Please sign in to comment.