Add authentication server, dev CLI, Docker multi-service setup, and cross-platform improvements

This commit is contained in:
Ilya Groshev
2026-04-21 16:49:44 +03:00
parent 43d6527b42
commit a3fbb1aeba
121 changed files with 4523 additions and 2888 deletions
+3 -8
View File
@@ -6,23 +6,18 @@ import (
"lunar-tear/server/internal/utils"
)
type ConsumableItemRow struct {
ConsumableItemId int32 `json:"ConsumableItemId"`
SellPrice int32 `json:"SellPrice"`
}
type ConsumableItemCatalog struct {
All map[int32]ConsumableItemRow
All map[int32]EntityMConsumableItem
}
func LoadConsumableItemCatalog() (*ConsumableItemCatalog, error) {
rows, err := utils.ReadJSON[ConsumableItemRow]("EntityMConsumableItemTable.json")
rows, err := utils.ReadTable[EntityMConsumableItem]("m_consumable_item")
if err != nil {
return nil, fmt.Errorf("load consumable item table: %w", err)
}
catalog := &ConsumableItemCatalog{
All: make(map[int32]ConsumableItemRow, len(rows)),
All: make(map[int32]EntityMConsumableItem, len(rows)),
}
for _, row := range rows {
catalog.All[row.ConsumableItemId] = row