forked from x/icebergs
opt some
This commit is contained in:
parent
15afccc923
commit
1355ba9432
@ -20,7 +20,6 @@ func init() {
|
|||||||
mdb.ZoneInsert(m, m.OptionSimple(EVENT, ice.CMD))
|
mdb.ZoneInsert(m, m.OptionSimple(EVENT, ice.CMD))
|
||||||
}},
|
}},
|
||||||
HAPPEN: {Name: "happen event", Help: "触发", Hand: func(m *ice.Message, arg ...string) {
|
HAPPEN: {Name: "happen event", Help: "触发", Hand: func(m *ice.Message, arg ...string) {
|
||||||
m.Debug(m.FormatChain())
|
|
||||||
defer m.Cost()
|
defer m.Cost()
|
||||||
m.OptionCB(mdb.SELECT, "")
|
m.OptionCB(mdb.SELECT, "")
|
||||||
mdb.ZoneSelect(m.Spawn(ice.OptionFields("")), m.Option(EVENT)).Tables(func(value ice.Maps) {
|
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) {
|
func EventDeferEvent(m *ice.Message, key string, arg ...ice.Any) func(string, ...ice.Any) {
|
||||||
Event(m, key, arg...)
|
Event(m, key, arg...)
|
||||||
return func(key string, args ...ice.Any) {
|
return func(key string, args ...ice.Any) { Event(m, key, args...) }
|
||||||
if len(args) > 0 {
|
|
||||||
Event(m, key, args)
|
|
||||||
} else {
|
|
||||||
Event(m, key, arg)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -128,7 +128,6 @@ func init() {
|
|||||||
}
|
}
|
||||||
}},
|
}},
|
||||||
DREAM_TABLES: {Hand: func(m *ice.Message, arg ...string) {
|
DREAM_TABLES: {Hand: func(m *ice.Message, arg ...string) {
|
||||||
m.Debug(m.FormatChain())
|
|
||||||
switch m.Option(mdb.TYPE) {
|
switch m.Option(mdb.TYPE) {
|
||||||
case SERVER, WORKER:
|
case SERVER, WORKER:
|
||||||
m.PushButton(OPEN)
|
m.PushButton(OPEN)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user