forked from Cyinx/einx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
einx.go
41 lines (36 loc) · 992 Bytes
/
einx.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package einx
import (
"github.com/Cyinx/einx/agent"
"github.com/Cyinx/einx/component"
"github.com/Cyinx/einx/event"
"github.com/Cyinx/einx/lua"
"github.com/Cyinx/einx/module"
"github.com/Cyinx/einx/network"
"sync"
)
type EventMsg = event.EventMsg
type EventType = event.EventType
type Agent = agent.Agent
type AgentID = agent.AgentID
type AgentSessionMgr = agent.AgentSessionMgr
type Component = component.Component
type ComponentID = component.ComponentID
type ComponentMgr = component.ComponentMgr
type MsgHandler = module.MsgHandler
type RpcHandler = module.RpcHandler
type ProtoTypeID = network.ProtoTypeID
type Module = module.Module
type SessionEventMsg = event.SessionEventMsg
type LuaRuntime = lua_state.LuaRuntime
type ITcpClientMgr = network.ITcpClientMgr
type ITcpServerMgr = network.ITcpServerMgr
type einx struct {
end_wait sync.WaitGroup
close_chan chan bool
}
func (this *einx) do_close() {
module.Close()
}
func (this *einx) close() {
this.end_wait.Wait()
}