-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploying to gh-pages from @ 5e27eee 🚀
- Loading branch information
0 parents
commit 417db00
Showing
245 changed files
with
318,099 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
Oops, something went wrong.