|
@@ -23,9 +23,9 @@ const (
|
|
|
type EnumRelationShip int8
|
|
|
|
|
|
const (
|
|
|
- Friends EnumRelationShip = 0 //
|
|
|
- Enemy EnumRelationShip = 1 //
|
|
|
- Unknown EnumRelationShip = 2 //
|
|
|
+ Friends EnumRelationShip = 0 //
|
|
|
+ Enemy EnumRelationShip = 1 //
|
|
|
+ Unknown EnumRelationShip = 2 //
|
|
|
)
|
|
|
|
|
|
type HonorType int8
|
|
@@ -45,13 +45,13 @@ const (
|
|
|
|
|
|
// custom types
|
|
|
type ABAsset struct {
|
|
|
- Ab string //
|
|
|
- Prefab string //
|
|
|
+ Ab string //
|
|
|
+ Prefab string //
|
|
|
}
|
|
|
|
|
|
type AreaDoorData struct {
|
|
|
Width float32 // 存储一个建造区域里门的位置、宽、高信息
|
|
|
- Height float32 //
|
|
|
+ Height float32 //
|
|
|
}
|
|
|
|
|
|
type ItemDiscountWeight struct {
|
|
@@ -74,7 +74,7 @@ type ItemRewardWeight struct {
|
|
|
|
|
|
type RangeInt32 struct {
|
|
|
Min int // 描述一个值的范围
|
|
|
- Max int //
|
|
|
+ Max int //
|
|
|
}
|
|
|
|
|
|
type RectRange struct {
|
|
@@ -83,9 +83,9 @@ type RectRange struct {
|
|
|
}
|
|
|
|
|
|
type RoleConfig struct {
|
|
|
- Names []string //
|
|
|
- Model ABAsset //
|
|
|
- Icon ABAsset //
|
|
|
+ Names []string //
|
|
|
+ Model ABAsset //
|
|
|
+ Icon ABAsset //
|
|
|
}
|
|
|
|
|
|
type S3Param struct {
|
|
@@ -114,21 +114,21 @@ type StoreItemWeight struct {
|
|
|
}
|
|
|
|
|
|
type TileArea struct {
|
|
|
- Rect TileAreaRange //
|
|
|
- Add []TilePos //
|
|
|
- Sub []TilePos //
|
|
|
+ Rect TileAreaRange //
|
|
|
+ Add []TilePos //
|
|
|
+ Sub []TilePos //
|
|
|
}
|
|
|
|
|
|
type TileAreaRange struct {
|
|
|
- XMin int //
|
|
|
- XMax int //
|
|
|
- YMin int //
|
|
|
- YMax int //
|
|
|
+ XMin int //
|
|
|
+ XMax int //
|
|
|
+ YMin int //
|
|
|
+ YMax int //
|
|
|
}
|
|
|
|
|
|
type TilePos struct {
|
|
|
- X int //
|
|
|
- Y int //
|
|
|
+ X int //
|
|
|
+ Y int //
|
|
|
}
|
|
|
|
|
|
type UnlockCondition struct {
|
|
@@ -138,10 +138,11 @@ type UnlockCondition struct {
|
|
|
|
|
|
type ValueRange struct {
|
|
|
Key string // 描述一个key对应value的范围
|
|
|
- VaueRange RangeInt32 //
|
|
|
+ VaueRange RangeInt32 //
|
|
|
}
|
|
|
|
|
|
type Vector2 struct {
|
|
|
X int // 存储一个二维空间的坐标
|
|
|
- Y int //
|
|
|
+ Y int //
|
|
|
}
|
|
|
+
|