Skip to content

Commit a60d532

Browse files
committed
[删除]1. 删除S2C_和C2S_ 的支持
1 parent 357d247 commit a60d532

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

ProtoExport/MessageInfo.cs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -118,28 +118,24 @@ public string ParentClass
118118
/// </summary>
119119
public string Name
120120
{
121-
get => _name;
121+
get { return _name; }
122122
set
123123
{
124124
_name = value;
125-
IsRequest = Name.StartsWith("Req") || Name.StartsWith("C2S_");
125+
IsRequest = Name.StartsWith("Req");
126126
IsNotify = Name.StartsWith("Notify");
127127
IsHeartbeat = Name.Contains("Heartbeat", StringComparison.OrdinalIgnoreCase);
128-
IsResponse = Name.StartsWith("Resp") || Name.StartsWith("S2C_") || IsNotify || (IsHeartbeat && !IsRequest);
128+
IsResponse = Name.StartsWith("Resp") || IsNotify || (IsHeartbeat && !IsRequest);
129129
if (IsRequest)
130130
{
131131
if (Name.StartsWith("Req"))
132132
{
133133
MessageName = Name[3..];
134134
}
135-
else if (Name.StartsWith("C2S_"))
136-
{
137-
MessageName = Name[4..];
138-
}
139135
}
140136
else
141137
{
142-
if (Name.StartsWith("Resp") || Name.StartsWith("S2C_"))
138+
if (Name.StartsWith("Resp"))
143139
{
144140
MessageName = Name[4..];
145141
}

0 commit comments

Comments
 (0)