package config

import (
	"os"
	"runtime"
	"time"
)

type EventItem struct {
	ID   int32  `json:"id"`
	Name string `json:"name"`
}

var (
	RootPtah, _ = os.Getwd()

	// SysType 操作系统类型  windows | linux
	SysType = runtime.GOOS

	// DefaultZone 默认时区 东八
	DefaultZone = time.FixedZone("CST", 8*3600)

	// DiamondGoodIds 钻石商品ID集合
	DiamondGoodIds = []int32{7, 8, 9, 12, 13, 14}

	// LoginEvent 登录事件
	LoginEvent = []EventItem{
		{ID: 1, Name: "游戏引擎启动"},
		{ID: 2, Name: "启动到加载分包完成"},
		{ID: 3, Name: "接收到http登录成功后"},
		{ID: 4, Name: "加载json成功后，同时打开socket"},
		{ID: 5, Name: "获取到entryPack"},
		{ID: 6, Name: "加载大厅分包成功"},
		{ID: 7, Name: "加载游戏分包成功"},
		{ID: 8, Name: "切换到大厅"},
		{ID: 9, Name: "切换到游戏"},
		{ID: 10, Name: "发送EntryPack"},
		{ID: 11, Name: "获取到服务器列表"},
		{ID: 12, Name: "选择服务器请求登录"},
		{ID: 13, Name: "登录服务器成功"},
	}

	// GemTypeMap 宝石类型
	GemTypeMap = map[int64]string{
		1: "攻击宝石",
		2: "减伤宝石",
		3: "生命宝石",
		4: "暴击宝石",
		5: "暴伤宝石",
		6: "换弹宝石",
	}

	// GemPartMap 宝石镶嵌部位
	GemPartMap = map[int64]string{
		1: "武器",
		2: "头盔",
		3: "护甲",
		4: "配饰",
		5: "手套",
		6: "戒指",
	}
)
