Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

Commit de7555c

Browse files
committed
移动hotfix到Asset目录下,并将C#7的语法将为C#6
1 parent 61a92ad commit de7555c

File tree

93 files changed

+5927
-551
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+5927
-551
lines changed

Assembly-CSharp.csproj

Lines changed: 240 additions & 529 deletions
Large diffs are not rendered by default.

Assets/HotFix.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/HotFix/Game.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/HotFix/Game/Network.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
using GT=GameFramework.Taurus;
2+
3+
namespace HotFix.Taurus
4+
{
5+
[MessageHandler(typeof(C2S_TestInfo))]
6+
public class C2S_TestInfo_Handle:MessageHandlerBase
7+
{
8+
public override void Handle(object message)
9+
{
10+
C2S_TestInfo c2S_TestInfo = message as C2S_TestInfo;
11+
12+
HotFixMode.Network.SendMessage(new S2C_TestInfo(){RpcId=c2S_TestInfo.RpcId, Message = "C2S_TestInfo_Handle -- S2C" },new System.Net.IPEndPoint(System.Net.IPAddress.Parse("255.255.255.255"),35120));
13+
}
14+
}
15+
}

Assets/HotFix/Game/Network/C2S_TestInfo_Handle.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using GT = GameFramework.Taurus;
2+
3+
namespace HotFix.Taurus
4+
{
5+
[MessageHandler(typeof(HotFixProtoTest))]
6+
public class HotFixTestMessageHandle: MessageHandlerBase
7+
{
8+
public override void Handle(object message)
9+
{
10+
HotFixProtoTest test = message as HotFixProtoTest;
11+
}
12+
}
13+
}

Assets/HotFix/Game/Network/HotFixTestMessageHandle.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/HotFix/Game/Network/Proto.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 234 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,234 @@
1+
// Generated by the protocol buffer compiler. DO NOT EDIT!
2+
// source: HotFixProto.proto
3+
#pragma warning disable 1591, 0612, 3021
4+
#region Designer generated code
5+
6+
using pb = global::Google.Protobuf;
7+
using pbc = global::Google.Protobuf.Collections;
8+
using scg = global::System.Collections.Generic;
9+
#region Messages
10+
public partial class HotFixProtoTest : pb::IMessage {
11+
private static readonly pb::MessageParser<HotFixProtoTest> _parser = new pb::MessageParser<HotFixProtoTest>(() => new HotFixProtoTest());
12+
public static pb::MessageParser<HotFixProtoTest> Parser { get { return _parser; } }
13+
14+
private int iD_;
15+
public int ID {
16+
get { return iD_; }
17+
set {
18+
iD_ = value;
19+
}
20+
}
21+
22+
private string commit_ = "";
23+
/// <summary>
24+
///提交
25+
/// </summary>
26+
public string Commit {
27+
get { return commit_; }
28+
set {
29+
commit_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
30+
}
31+
}
32+
33+
private string message_ = "";
34+
/// <summary>
35+
///信息
36+
/// </summary>
37+
public string Message {
38+
get { return message_; }
39+
set {
40+
message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
41+
}
42+
}
43+
44+
public void WriteTo(pb::CodedOutputStream output) {
45+
if (ID != 0) {
46+
output.WriteRawTag(8);
47+
output.WriteInt32(ID);
48+
}
49+
if (Commit.Length != 0) {
50+
output.WriteRawTag(18);
51+
output.WriteString(Commit);
52+
}
53+
if (Message.Length != 0) {
54+
output.WriteRawTag(26);
55+
output.WriteString(Message);
56+
}
57+
}
58+
59+
public int CalculateSize() {
60+
int size = 0;
61+
if (ID != 0) {
62+
size += 1 + pb::CodedOutputStream.ComputeInt32Size(ID);
63+
}
64+
if (Commit.Length != 0) {
65+
size += 1 + pb::CodedOutputStream.ComputeStringSize(Commit);
66+
}
67+
if (Message.Length != 0) {
68+
size += 1 + pb::CodedOutputStream.ComputeStringSize(Message);
69+
}
70+
return size;
71+
}
72+
73+
public void MergeFrom(pb::CodedInputStream input) {
74+
iD_ = 0;
75+
commit_ = "";
76+
message_ = "";
77+
uint tag;
78+
while ((tag = input.ReadTag()) != 0) {
79+
switch(tag) {
80+
default:
81+
input.SkipLastField();
82+
break;
83+
case 8: {
84+
ID = input.ReadInt32();
85+
break;
86+
}
87+
case 18: {
88+
Commit = input.ReadString();
89+
break;
90+
}
91+
case 26: {
92+
Message = input.ReadString();
93+
break;
94+
}
95+
}
96+
}
97+
}
98+
99+
}
100+
101+
public partial class C2S_TestInfo : pb::IMessage {
102+
private static readonly pb::MessageParser<C2S_TestInfo> _parser = new pb::MessageParser<C2S_TestInfo>(() => new C2S_TestInfo());
103+
public static pb::MessageParser<C2S_TestInfo> Parser { get { return _parser; } }
104+
105+
private int rpcId_;
106+
public int RpcId {
107+
get { return rpcId_; }
108+
set {
109+
rpcId_ = value;
110+
}
111+
}
112+
113+
private string message_ = "";
114+
public string Message {
115+
get { return message_; }
116+
set {
117+
message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
118+
}
119+
}
120+
121+
public void WriteTo(pb::CodedOutputStream output) {
122+
if (RpcId != 0) {
123+
output.WriteRawTag(8);
124+
output.WriteInt32(RpcId);
125+
}
126+
if (Message.Length != 0) {
127+
output.WriteRawTag(18);
128+
output.WriteString(Message);
129+
}
130+
}
131+
132+
public int CalculateSize() {
133+
int size = 0;
134+
if (RpcId != 0) {
135+
size += 1 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
136+
}
137+
if (Message.Length != 0) {
138+
size += 1 + pb::CodedOutputStream.ComputeStringSize(Message);
139+
}
140+
return size;
141+
}
142+
143+
public void MergeFrom(pb::CodedInputStream input) {
144+
rpcId_ = 0;
145+
message_ = "";
146+
uint tag;
147+
while ((tag = input.ReadTag()) != 0) {
148+
switch(tag) {
149+
default:
150+
input.SkipLastField();
151+
break;
152+
case 8: {
153+
RpcId = input.ReadInt32();
154+
break;
155+
}
156+
case 18: {
157+
Message = input.ReadString();
158+
break;
159+
}
160+
}
161+
}
162+
}
163+
164+
}
165+
166+
public partial class S2C_TestInfo : pb::IMessage {
167+
private static readonly pb::MessageParser<S2C_TestInfo> _parser = new pb::MessageParser<S2C_TestInfo>(() => new S2C_TestInfo());
168+
public static pb::MessageParser<S2C_TestInfo> Parser { get { return _parser; } }
169+
170+
private int rpcId_;
171+
public int RpcId {
172+
get { return rpcId_; }
173+
set {
174+
rpcId_ = value;
175+
}
176+
}
177+
178+
private string message_ = "";
179+
public string Message {
180+
get { return message_; }
181+
set {
182+
message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
183+
}
184+
}
185+
186+
public void WriteTo(pb::CodedOutputStream output) {
187+
if (RpcId != 0) {
188+
output.WriteRawTag(8);
189+
output.WriteInt32(RpcId);
190+
}
191+
if (Message.Length != 0) {
192+
output.WriteRawTag(18);
193+
output.WriteString(Message);
194+
}
195+
}
196+
197+
public int CalculateSize() {
198+
int size = 0;
199+
if (RpcId != 0) {
200+
size += 1 + pb::CodedOutputStream.ComputeInt32Size(RpcId);
201+
}
202+
if (Message.Length != 0) {
203+
size += 1 + pb::CodedOutputStream.ComputeStringSize(Message);
204+
}
205+
return size;
206+
}
207+
208+
public void MergeFrom(pb::CodedInputStream input) {
209+
rpcId_ = 0;
210+
message_ = "";
211+
uint tag;
212+
while ((tag = input.ReadTag()) != 0) {
213+
switch(tag) {
214+
default:
215+
input.SkipLastField();
216+
break;
217+
case 8: {
218+
RpcId = input.ReadInt32();
219+
break;
220+
}
221+
case 18: {
222+
Message = input.ReadString();
223+
break;
224+
}
225+
}
226+
}
227+
}
228+
229+
}
230+
231+
#endregion
232+
233+
234+
#endregion Designer generated code

Assets/HotFix/Game/Network/Proto/HotFixProto.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using HotFix.Taurus;
2+
3+
[Message(1000)]
4+
public partial class HotFixProtoTest
5+
{
6+
}
7+
8+
[Message(1001)]
9+
public partial class C2S_TestInfo : IRequest
10+
{
11+
}
12+
13+
[Message(1002)]
14+
public partial class S2C_TestInfo : IResponse
15+
{
16+
}

Assets/HotFix/Game/Network/Proto/HotFixProtoMessage.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/HotFix/Game/State.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)