mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
Start TEngine3.0
Start TEngine3.0
This commit is contained in:
19
Luban/Luban.ClientServer/Templates/proto/cs/stub.tpl
Normal file
19
Luban/Luban.ClientServer/Templates/proto/cs/stub.tpl
Normal file
@@ -0,0 +1,19 @@
|
||||
using Bright.Serialization;
|
||||
|
||||
namespace {{namespace}}
|
||||
{
|
||||
public static class {{name}}
|
||||
{
|
||||
public static System.Collections.Generic.Dictionary<int, Bright.Net.Codecs.ProtocolCreator> Factories { get; } = new System.Collections.Generic.Dictionary<int, Bright.Net.Codecs.ProtocolCreator>
|
||||
{
|
||||
{{~ for proto in protos ~}}
|
||||
[{{proto.full_name}}.__ID__] = () => new {{proto.full_name}}(),
|
||||
{{~end~}}
|
||||
|
||||
{{~ for rpc in rpcs ~}}
|
||||
[{{rpc.full_name}}.__ID__] = () => new {{rpc.full_name}}(),
|
||||
{{~end~}}
|
||||
};
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user