1
0
forked from x/icebergs
This commit is contained in:
harveyshao 2022-11-30 12:43:19 +08:00
parent 15afccc923
commit 1355ba9432
2 changed files with 1 additions and 9 deletions

View File

@ -20,7 +20,6 @@ func init() {
mdb.ZoneInsert(m, m.OptionSimple(EVENT, ice.CMD))
}},
HAPPEN: {Name: "happen event", Help: "触发", Hand: func(m *ice.Message, arg ...string) {
m.Debug(m.FormatChain())
defer m.Cost()
m.OptionCB(mdb.SELECT, "")
mdb.ZoneSelect(m.Spawn(ice.OptionFields("")), m.Option(EVENT)).Tables(func(value ice.Maps) {
@ -60,11 +59,5 @@ func Event(m *ice.Message, key string, arg ...ice.Any) *ice.Message {
}
func EventDeferEvent(m *ice.Message, key string, arg ...ice.Any) func(string, ...ice.Any) {
Event(m, key, arg...)
return func(key string, args ...ice.Any) {
if len(args) > 0 {
Event(m, key, args)
} else {
Event(m, key, arg)
}
}
return func(key string, args ...ice.Any) { Event(m, key, args...) }
}

View File

@ -128,7 +128,6 @@ func init() {
}
}},
DREAM_TABLES: {Hand: func(m *ice.Message, arg ...string) {
m.Debug(m.FormatChain())
switch m.Option(mdb.TYPE) {
case SERVER, WORKER:
m.PushButton(OPEN)