Skip to content

Commit

Permalink
适配seedorigin生成
Browse files Browse the repository at this point in the history
  • Loading branch information
davyxu committed Aug 24, 2021
1 parent bfe2397 commit 63e9fa5
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion gen/ppcs/text.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,22 @@ const RegTemplateText = `// Generated by github.com/davyxu/protoplus
// DO NOT EDIT!
using System;
using System.Collections.Generic;
using ProtoPlus;
#pragma warning disable 162
namespace {{.PackageName}}
{
public class MetaInfo
{
public ushort ID; // 消息ID
public Type Type; // 消息类型
// 消息方向
// 在proto中添加[MsgDir: "client -> game" ], 左边为源, 右边为目标
public string SourcePeer; // 消息发起的源
public string TargetPeer; // 消息的目标
public string Name;
}
public static class MessageVisitor
{
Expand Down

0 comments on commit 63e9fa5

Please sign in to comment.