test
This commit is contained in:
parent
d2b51de3a7
commit
ca4bc33664
4
def.go
4
def.go
@ -173,6 +173,8 @@ const (
|
|||||||
objTypeJob = 6
|
objTypeJob = 6
|
||||||
objTypeItem = 7
|
objTypeItem = 7
|
||||||
objTypeCastle = 8
|
objTypeCastle = 8
|
||||||
|
objTypeFair = 9
|
||||||
|
objTypeUnion = 10
|
||||||
|
|
||||||
castleDeer = 1
|
castleDeer = 1
|
||||||
castleDragon = 2
|
castleDragon = 2
|
||||||
@ -250,6 +252,8 @@ const (
|
|||||||
objSubTypeItemPart = 705
|
objSubTypeItemPart = 705
|
||||||
objSubTypeItemOther = 706
|
objSubTypeItemOther = 706
|
||||||
objSubTypeCastle = 801
|
objSubTypeCastle = 801
|
||||||
|
objSubTypeFair = 901
|
||||||
|
objSubTypeUnion = 1001
|
||||||
|
|
||||||
objJobStatusNew = 0
|
objJobStatusNew = 0
|
||||||
objJobStatusPillageGo = 1
|
objJobStatusPillageGo = 1
|
||||||
|
7
obj.go
7
obj.go
@ -1,5 +1,10 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"strconv"
|
||||||
|
"time"
|
||||||
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
cacheObjCastle map[string]ChatWarsCastle
|
cacheObjCastle map[string]ChatWarsCastle
|
||||||
cacheObjGuild map[string]ChatWarsGuild
|
cacheObjGuild map[string]ChatWarsGuild
|
||||||
@ -170,7 +175,7 @@ func loadObjCastle() error {
|
|||||||
defer castles.Close()
|
defer castles.Close()
|
||||||
|
|
||||||
for castles.Next() {
|
for castles.Next() {
|
||||||
err = rules.Scan(&id, &logo, &name)
|
err = castles.Scan(&id, &logo, &name)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user