Start TEngine3.0

Start TEngine3.0
This commit is contained in:
ALEXTANG
2023-03-31 17:27:49 +08:00
parent 179765c43c
commit 36353294d6
1032 changed files with 21868 additions and 102407 deletions

View File

@@ -0,0 +1,17 @@
package {{namespace}}
import "bright/net"
type ProtocolFactory = func () net.Protocol
var ProtocolStub map[int]ProtocolFactory
func init() {
ProtocolStub = make(map[int]ProtocolFactory)
{{~for p in protos~}}
ProtocolStub[{{p.id}}] = func () net.Protocol { return &{{p.go_full_name}}{} }
{{~end~}}
{{~for r in rpcs~}}
ProtocolStub[{{r.id}}] = func () net.Protocol { return &{{r.go_full_name}}{} }
{{~end~}}
}