Skip to content

Commit 54ddf0d

Browse files
committed
提交
1 parent 51dd09e commit 54ddf0d

27 files changed

+632
-8
lines changed

Assets/Script/Core/Data/DataGenerateManager.cs

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,21 @@
1111

1212
static bool s_isInit = false;
1313

14+
static string s_dataName = null;
15+
16+
public static string DataName
17+
{
18+
get
19+
{
20+
if(s_dataName == null)
21+
{
22+
s_dataName = typeof(T).Name.Replace("Generate", "");
23+
}
24+
25+
return s_dataName;
26+
}
27+
}
28+
1429
public static T GetData(string key)
1530
{
1631
if (key == null)
@@ -39,6 +54,10 @@ public static T GetData(string key)
3954
}
4055
}
4156

57+
public static bool GetExistKey(string key)
58+
{
59+
return DataManager.GetData(DataName).ContainsKey(key);
60+
}
4261

4362
/// <summary>
4463
/// 全查表
@@ -52,12 +71,10 @@ public static void PreLoad()
5271
GlobalEvent.AddEvent(MemoryEvent.FreeHeapMemory, CleanCache);
5372
}
5473

55-
5674
DataTable data = GetDataTable();
5775
for (int i = 0; i < data.TableIDs.Count; i++)
5876
{
5977
GetData(data.TableIDs[i]);
60-
6178
}
6279
}
6380

@@ -75,10 +92,7 @@ public static List<T> GetAllDataList()
7592
}
7693
public static DataTable GetDataTable()
7794
{
78-
string dataName = typeof(T).Name.Replace("Generate", "");
79-
80-
return DataManager.GetData(dataName);
81-
95+
return DataManager.GetData(DataName);
8296
}
8397

8498
public static void CleanCache(params object[] objs)

Assets/Script/Core/Network/Message.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: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
6+
7+
public class AdmiLogin2Client : CodeMessageBase
8+
{
9+
public override void DispatchMessage()
10+
{
11+
GlobalEvent.DispatchTypeEvent(this);
12+
}
13+
}
14+

Assets/Script/Core/Network/Message/AdmiLogin2Client.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: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
6+
7+
public class AdmiLogin2Server
8+
{
9+
public String typeKey;
10+
public String pw;
11+
}
12+

Assets/Script/Core/Network/Message/AdmiLogin2Server.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: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
6+
7+
public class UserLogin2Client :CodeMessageBase
8+
{
9+
public User user;
10+
public LoginPlatform loginType;
11+
public String typeKey;
12+
13+
public override void DispatchMessage()
14+
{
15+
GlobalEvent.DispatchTypeEvent(this);
16+
}
17+
}
18+

Assets/Script/Core/Network/Message/UserLogin2Client.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: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using UnityEngine;
6+
7+
public class UserLogin2Server
8+
{
9+
public LoginPlatform loginType;
10+
public String typeKey;
11+
public String pw;
12+
public RuntimePlatform platform;
13+
public String deviceUniqueIdentifier;
14+
}
15+

Assets/Script/Core/Network/Message/UserLogin2Server.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.

0 commit comments

Comments
 (0)