diff --git a/Assets/AddressableAssetsData/AssetGroups/Default Local Group.asset b/Assets/AddressableAssetsData/AssetGroups/Default Local Group.asset
index 62b7ab554..c10abaee0 100644
--- a/Assets/AddressableAssetsData/AssetGroups/Default Local Group.asset
+++ b/Assets/AddressableAssetsData/AssetGroups/Default Local Group.asset
@@ -92,6 +92,11 @@ MonoBehaviour:
m_ReadOnly: 0
m_SerializedLabels: []
FlaggedDuringContentUpdateRestriction: 0
+ - m_GUID: 7fc72821c53ff6a40b70a711c3d091c6
+ m_Address: Assets/MyGame/aa/UI/Game/XJMH/GameMainPanelXJMH.prefab
+ m_ReadOnly: 0
+ m_SerializedLabels: []
+ FlaggedDuringContentUpdateRestriction: 0
- m_GUID: 8098018ff11d33f4e8edaa9e53d5b568
m_Address: Assets/MyGame/aa/UI/Game/ChineseChess/2.5SelectCoin.prefab
m_ReadOnly: 0
diff --git a/Assets/Art/XJMH/pw/pw_prefab/game/enemy/XJMHEnemy/PW_Enemy_102.prefab b/Assets/Art/XJMH/pw/pw_prefab/game/enemy/XJMHEnemy/PW_Enemy_102.prefab
index e6184cae8..612721328 100644
--- a/Assets/Art/XJMH/pw/pw_prefab/game/enemy/XJMHEnemy/PW_Enemy_102.prefab
+++ b/Assets/Art/XJMH/pw/pw_prefab/game/enemy/XJMHEnemy/PW_Enemy_102.prefab
@@ -121,7 +121,7 @@ MonoBehaviour:
materialsInsideMask: []
materialsOutsideMask: []
disableRenderingOnOverride: 1
- _animationName:
+ _animationName: stand
loop: 0
timeScale: 1
--- !u!1 &1267104346094772
diff --git a/Assets/Framework/Event/ConstEventString.cs b/Assets/Framework/Event/ConstEventString.cs
new file mode 100644
index 000000000..210407291
--- /dev/null
+++ b/Assets/Framework/Event/ConstEventString.cs
@@ -0,0 +1,9 @@
+
+public class ConstEventString
+{
+ public const string SyncGameData_Rotate = "SyncGameData_Rotate";
+ public const string SyncGameData_FireBullet = "SyncGameData_FireBullet";
+ public const string SyncGameData_CreateFish = "SyncGameData_CreateFish";
+ public const string SyncGameData_ChangeTargetMonster = "SyncGameData_ChangeTargetMonster";
+}
+
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/BaseProduct.cs.meta b/Assets/Framework/Event/ConstEventString.cs.meta
similarity index 83%
rename from Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/BaseProduct.cs.meta
rename to Assets/Framework/Event/ConstEventString.cs.meta
index 18c2e4e25..cc85c8bf8 100644
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/BaseProduct.cs.meta
+++ b/Assets/Framework/Event/ConstEventString.cs.meta
@@ -1,5 +1,5 @@
fileFormatVersion: 2
-guid: 47c523ec9828ed64495bd3c41a15f9ff
+guid: 2a12b4d76c42f8d49b6af72e52653bb3
MonoImporter:
externalObjects: {}
serializedVersion: 2
diff --git a/Assets/Framework/Tool/BeijingTimeManager.cs b/Assets/Framework/Tool/BeijingTimeManager.cs
new file mode 100644
index 000000000..6ec7fa643
--- /dev/null
+++ b/Assets/Framework/Tool/BeijingTimeManager.cs
@@ -0,0 +1,149 @@
+using System;
+using UnityEngine;
+using System.Collections;
+
+///
+/// 北京时间管理器 - 获取一次后持续自增
+///
+public class BeijingTimeManager : MonoSingleton
+{
+ [Header("时间状态")]
+ [SerializeField] private bool _isTimeSynced = false; // 是否已同步
+ [SerializeField] private DateTime _currentBeijingTime; // 当前北京时间
+ [SerializeField] private float _timeSinceLastSync; // 距离上次同步的秒数
+
+ // 公开属性供其他脚本访问
+ public DateTime CurrentBeijingTime
+ {
+ get
+ {
+ if (_isTimeSynced)
+ {
+ // 基准时间 + 流逝的时间
+ return _currentBeijingTime.AddSeconds(_timeSinceLastSync);
+ }
+ else
+ {
+ Debug.LogWarning("时间尚未同步,返回本地时间");
+ return DateTime.Now.AddHours(8); // 降级为本地时间+8小时
+ }
+ }
+ }
+
+ public bool IsTimeSynced => _isTimeSynced;
+
+ // 事件:当时间成功同步时触发
+ public event Action OnTimeSynced;
+ private void Start()
+ {
+ SyncBeijingTime();
+ }
+ private void Update()
+ {
+ if (_isTimeSynced)
+ {
+ // 持续累计时间
+ _timeSinceLastSync += Time.deltaTime;
+
+ // 可选:每隔一段时间(如5分钟)自动校准
+ if (_timeSinceLastSync > 300f) // 5分钟
+ {
+ StartCoroutine(AutoCalibrateTime());
+ }
+ }
+ }
+
+ ///
+ /// 手动触发时间同步
+ ///
+ public void SyncBeijingTime()
+ {
+ StartCoroutine(FetchBeijingTime());
+ }
+
+ ///
+ /// 获取北京时间(协程)
+ ///
+ private IEnumerator FetchBeijingTime()
+ {
+ string[] timeServers = new string[]
+ {
+ "http://www.beijing-time.org/time.asp",
+ "https://www.baidu.com",
+ "https://www.taobao.com",
+
+ };
+
+ DateTime beijingTime = DateTime.MinValue;
+ bool success = false;
+
+ foreach (string url in timeServers)
+ {
+ using (UnityEngine.Networking.UnityWebRequest request =
+ UnityEngine.Networking.UnityWebRequest.Get(url))
+ {
+ yield return request.SendWebRequest();
+
+ if (request.result == UnityEngine.Networking.UnityWebRequest.Result.Success)
+ {
+ string dateHeader = request.GetResponseHeader("Date");
+ if (!string.IsNullOrEmpty(dateHeader))
+ {
+ try
+ {
+ // 解析GMT时间
+ DateTime gmtTime = DateTime.ParseExact(dateHeader,
+ "ddd, dd MMM yyyy HH:mm:ss 'GMT'",
+ System.Globalization.CultureInfo.InvariantCulture,
+ System.Globalization.DateTimeStyles.AssumeUniversal);
+
+ beijingTime = gmtTime.AddHours(8);
+
+ // 更新基准时间和计时器
+ _currentBeijingTime = beijingTime;
+ _timeSinceLastSync = 0f;
+ _isTimeSynced = true;
+
+ Debug.Log($"时间同步成功!北京时间:{beijingTime:yyyy-MM-dd HH:mm:ss}");
+
+ // 触发事件
+ OnTimeSynced?.Invoke(beijingTime);
+
+ success = true;
+ break;
+ }
+ catch (Exception e)
+ {
+ Debug.LogWarning($"解析失败:{e.Message}");
+ continue;
+ }
+ }
+ }
+ }
+ }
+
+ if (!success)
+ {
+ Debug.LogError("所有时间服务器都失败了,使用本地时间作为备用");
+ _currentBeijingTime = DateTime.Now.AddHours(8);
+ _timeSinceLastSync = 0f;
+ _isTimeSynced = false; // 标记为未同步
+ }
+ }
+
+ ///
+ /// 自动校准(后台静默同步)
+ ///
+ private IEnumerator AutoCalibrateTime()
+ {
+ Debug.Log("开始自动校准时间...");
+
+ // 保存当前累计时间,用于计算校准时的差距
+ float oldElapsed = _timeSinceLastSync;
+
+ yield return StartCoroutine(FetchBeijingTime());
+
+ // 校准后可以计算误差
+ Debug.Log($"时间校准完成,误差:{_timeSinceLastSync - oldElapsed:F2}秒");
+ }
+}
\ No newline at end of file
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/BaseProductCount.cs.meta b/Assets/Framework/Tool/BeijingTimeManager.cs.meta
similarity index 83%
rename from Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/BaseProductCount.cs.meta
rename to Assets/Framework/Tool/BeijingTimeManager.cs.meta
index 38b29ae4d..ee8670339 100644
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/BaseProductCount.cs.meta
+++ b/Assets/Framework/Tool/BeijingTimeManager.cs.meta
@@ -1,5 +1,5 @@
fileFormatVersion: 2
-guid: 3f237c5f1b35d6d44945e826e61cdf7f
+guid: eb493f215fdb45f4e87ada719286af2a
MonoImporter:
externalObjects: {}
serializedVersion: 2
diff --git a/Assets/MyGame/Scenes/UIScene.unity b/Assets/MyGame/Scenes/UIScene.unity
index 3e7920da7..092a4bff8 100644
--- a/Assets/MyGame/Scenes/UIScene.unity
+++ b/Assets/MyGame/Scenes/UIScene.unity
@@ -911,6 +911,7 @@ GameObject:
- component: {fileID: 2075409199}
- component: {fileID: 2075409200}
- component: {fileID: 2075409201}
+ - component: {fileID: 2075409202}
m_Layer: 0
m_Name: Manager
m_TagString: Untagged
@@ -1108,6 +1109,7 @@ MonoBehaviour:
dieFXPrefab: {fileID: 6304718870697136037, guid: 81d9913b840dd1e4d9801e06ed16d14e,
type: 3}
fishRoot: {fileID: 0}
+ fangzhu: 0
--- !u!61 &2075409201
BoxCollider2D:
m_ObjectHideFlags: 0
@@ -1153,6 +1155,20 @@ BoxCollider2D:
serializedVersion: 2
m_Size: {x: 1, y: 1}
m_EdgeRadius: 0
+--- !u!114 &2075409202
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 2075409194}
+ m_Enabled: 1
+ m_EditorHideFlags: 0
+ m_Script: {fileID: 11500000, guid: eb493f215fdb45f4e87ada719286af2a, type: 3}
+ m_Name:
+ m_EditorClassIdentifier:
+ _isTimeSynced: 0
+ _timeSinceLastSync: 0
--- !u!1660057539 &9223372036854775807
SceneRoots:
m_ObjectHideFlags: 0
diff --git a/Assets/MyGame/Scripts/Characters/Monster/MonsterContral.cs b/Assets/MyGame/Scripts/Characters/Monster/MonsterContral.cs
index 967154372..e02efa9cb 100644
--- a/Assets/MyGame/Scripts/Characters/Monster/MonsterContral.cs
+++ b/Assets/MyGame/Scripts/Characters/Monster/MonsterContral.cs
@@ -11,7 +11,7 @@ using static MonsterMoveLine;
public class MonsterContral : MonoBehaviour
{
- public string hashCode;
+ public string guid;
public MonsterDataBase monsterData = new MonsterDataBase(new MonsterHealthBase());
public SkeletonAnimation skeleton;
public bool isSpine = true;
diff --git a/Assets/MyGame/Scripts/CreateFishType.cs b/Assets/MyGame/Scripts/CreateFishType.cs
index 83bd91265..5e4a5d41d 100644
--- a/Assets/MyGame/Scripts/CreateFishType.cs
+++ b/Assets/MyGame/Scripts/CreateFishType.cs
@@ -1,4 +1,4 @@
-using Model.Entity.BaseModel;
+using Assets.MyGame.Scripts.Net.API.GameConfig_SubClass;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -17,17 +17,17 @@ public static class CreateFishType
{
//dic_CreateFishType.Add(FishCreateType.Line, CreateLine);
}
- public static void CreateFish(RoomFishDetailConfig roomFishDetailConfig)
- {
- switch (roomFishDetailConfig.Type)
- {
- case 0:
- break;
- case 1:
- break;
- default:
- break;
- }
- }
+ //public static void CreateFish(RoomFishDetailConfig roomFishDetailConfig)
+ //{
+ // switch (roomFishDetailConfig.Type)
+ // {
+ // case 0:
+ // break;
+ // case 1:
+ // break;
+ // default:
+ // break;
+ // }
+ //}
}
diff --git a/Assets/MyGame/Scripts/Items/Bullits/BullitMove.cs b/Assets/MyGame/Scripts/Items/Bullits/BullitMove.cs
index 6601ea34a..bee3e1c3d 100644
--- a/Assets/MyGame/Scripts/Items/Bullits/BullitMove.cs
+++ b/Assets/MyGame/Scripts/Items/Bullits/BullitMove.cs
@@ -9,7 +9,7 @@ using UnityEngine;
public class BullitMove : MonoBehaviour
{
- public RoomJoinNotice user;
+ public UserToken user;
public float moveSpeed = 5;
public float desTime = 10f;
public string playerID;
@@ -19,6 +19,7 @@ public class BullitMove : MonoBehaviour
Vector3 vector3_startPosition;
public bool isTriggerFirst = true;
MonsterContral target;
+ public string bulletID;
// Start is called before the first frame update
void Awake()
{
@@ -175,7 +176,7 @@ public class BullitMove : MonoBehaviour
var v2 = GameManager.Instance.gameData.currRoomData;
if (true)
{
- WebSocketSendList.KillFish(v2.roomId, user.userId,monster.monsterData.fishTypeConfig.fishNumber, monster.hashCode, GameManager.Instance.gameData.roomJoinNotice.cannonMultiple);
+ WebSocketSendList.KillFish(v2.roomId, user.id,monster.monsterData.fishTypeConfig.fishNumber, monster.guid, GameManager.Instance.gameData.roomJoinNotice.cannonMultiple);
}
diff --git a/Assets/MyGame/Scripts/Manager/CreateFishData.cs b/Assets/MyGame/Scripts/Manager/CreateFishData.cs
index 3ab7e5c38..dfb4c4c56 100644
--- a/Assets/MyGame/Scripts/Manager/CreateFishData.cs
+++ b/Assets/MyGame/Scripts/Manager/CreateFishData.cs
@@ -1,4 +1,4 @@
-using Model.Entity;
+using Assets.MyGame.Scripts.Net.API;
using UnityEngine;
[CreateAssetMenu(fileName = "createassetMenu", menuName = "fishCreate", order = 0)]
diff --git a/Assets/MyGame/Scripts/Manager/CreateFishManager.cs b/Assets/MyGame/Scripts/Manager/CreateFishManager.cs
index 7ff957efa..5bbfaecbe 100644
--- a/Assets/MyGame/Scripts/Manager/CreateFishManager.cs
+++ b/Assets/MyGame/Scripts/Manager/CreateFishManager.cs
@@ -173,14 +173,23 @@ public class CreateFishManager : MonoSingleton
}
// CreateSingleFish();
new FishResourcesData(); //这里用来测试加载鱼预制体
+ EventCenter.Instance.AddEventListener(ConstEventString.SyncGameData_CreateFish, CreateFish);
}
+ private void OnDestroy()
+ {
+ EventCenter.Instance.RemoveEventListener(ConstEventString.SyncGameData_CreateFish, CreateFish);
+ }
+ public bool fangzhu;
private void Update()
{
if (spawnList == null)
return;
-
+ if (!fangzhu)
+ {
+ return;
+ }
var job = new FishSpawnTimerJob
{
deltaTime = Time.deltaTime,
@@ -198,10 +207,35 @@ public class CreateFishManager : MonoSingleton
if (shouldSpawn[i] == 1)
{
var fish = spawnList[i];
- SpawnFishMainThread(fish);
+
+
+ {
+ SyncGameData sgd = new SyncGameData
+ {
+ sitPos = GameManager.Instance.gameData.roomJoinNotice.position,
+ frameType = FrameDataType.createFish,
+ frameData = new FrameData_CreateFish
+ {
+ fish = fish,
+ }
+ };
+
+ WebSocketSendList.SyncGameData(sgd);
+ }
+
+
+ //SpawnFishMainThread(fish);
}
}
}
+ public void CreateFish(SyncGameData syncGameData)
+ {
+ //if (syncGameData.sitPos == GameManager.Instance.gameData.roomJoinNotice.position)
+ {
+ var rotateData = JsonConvert.DeserializeObject(syncGameData.frameData.ToString());
+ SpawnFishMainThread(rotateData.fish);
+ }
+ }
private async void SpawnFishMainThread(RoomFishDetailConfig cfg)
{
@@ -304,8 +338,8 @@ public class CreateFishManager : MonoSingleton
var v = fish.GetComponent();
v.monsterData.fishTypeConfig = FishDatas[yz.fishNumber];
- v.hashCode = v.gameObject.GetHashCode().ToString();
- fishDatas_hashCodekey[v.hashCode] = v;
+ v.guid = Guid.NewGuid().ToString();
+ fishDatas_hashCodekey[v.guid] = v;
//int pathId = list[Random.Range(0, list.Count)];
v.Init(MonsterMoveLine.dic_BezierCurveDatas["鱼阵" + (pathId)],cfg.times, true, yz.arrayNumber);
}
@@ -320,8 +354,8 @@ public class CreateFishManager : MonoSingleton
GameObject fish = Instantiate(prefab, pos, Quaternion.Euler((360 / count) * i * Vector3.forward), fishRoot);
var v = fish.GetComponent();
v.monsterData.fishTypeConfig = FishDatas[yz.fishNumber];
- v.hashCode = v.gameObject.GetHashCode().ToString();
- fishDatas_hashCodekey[v.hashCode] = v;
+ v.guid = Guid.NewGuid().ToString();
+ fishDatas_hashCodekey[v.guid] = v;
//int pathId = list[Random.Range(0, list.Count)];
v.Init(MonsterMoveLine.dic_BezierCurveDatas["鱼阵" + (pathId)], cfg.times, true, yz.arrayNumber);
}
@@ -353,8 +387,8 @@ public class CreateFishManager : MonoSingleton
v = fish.AddComponent();
}
v.monsterData.fishTypeConfig = FishDatas[yz.fishNumber];
- v.hashCode = v.gameObject.GetHashCode().ToString();
- fishDatas_hashCodekey[v.hashCode] = v;
+ v.guid = Guid.NewGuid().ToString();
+ fishDatas_hashCodekey[v.guid] = v;
v.Init(MonsterMoveLine.dic_BezierCurveDatas["鱼阵" + pathId], 10);
}
@@ -390,8 +424,8 @@ public class CreateFishManager : MonoSingleton
v = fish.AddComponent();
}
v.monsterData.fishTypeConfig = FishDatas[cfg.fishNumber];
- v.hashCode = v.gameObject.GetHashCode().ToString();
- fishDatas_hashCodekey[v.hashCode] = v;
+ v.guid = Guid.NewGuid().ToString();
+ fishDatas_hashCodekey[v.guid] = v;
var list = FishDatas[cfg.fishNumber].pathList;
int pathId = list[Random.Range(0, list.Count)];
diff --git a/Assets/MyGame/Scripts/Manager/GameManager.cs b/Assets/MyGame/Scripts/Manager/GameManager.cs
index a1d03cdfa..1b84f90a0 100644
--- a/Assets/MyGame/Scripts/Manager/GameManager.cs
+++ b/Assets/MyGame/Scripts/Manager/GameManager.cs
@@ -1,6 +1,7 @@
using Assets.MyGame.Scripts.Net;
using Assets.MyGame.Scripts.Net.API;
using Newtonsoft.Json;
+using System;
using UnityEngine;
using UnityEngine.SceneManagement;
@@ -8,21 +9,21 @@ public class GameManager : MonoSingleton
{
public GameConfig gameConfig;
public UserToken user;
- public GameData gameData=new GameData();
+ public GameData gameData = new GameData();
public Scene scene;
protected override async void Awake()
{
Application.runInBackground = true;
base.Awake();
- gameData.currUser="123";
+ gameData.currUser = "123";
MonsterMoveLine.LoadBezier();//初始化加载路线
//string json = Resources.Load("Config/GameConfig").text;
//gameConfig = JsonConvert.DeserializeObject>(json).data;
APIManager.Response(APIType.GameConfig_Get, res => { gameConfig = res; var v = CreateFishManager.Instance.CreateDic; });
- }
- public void StartGame()
+ }
+ public void StartGame(Action action)
{
switch (gameData.currGameType)
@@ -44,8 +45,12 @@ public class GameManager : MonoSingleton
break;
case GameType.XJMH:
- WebSocketManager.Instance.Connect(SocketType.game);
-
+ if (action != null)
+ {
+ WebSocketManager.Instance.Connect(SocketType.game, action);
+ }
+ else
+ WebSocketManager.Instance.Connect(SocketType.game);
break;
case GameType.HHWK:
UIManager.Instance.ShowAsync(UIPanel.MainGamePanelDefault);
@@ -53,7 +58,7 @@ public class GameManager : MonoSingleton
default:
break;
}
-
+
}
// Start is called before the first frame update
void Start()
@@ -64,7 +69,7 @@ public class GameManager : MonoSingleton
// Update is called once per frame
void Update()
{
-
+
}
}
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model.zip b/Assets/MyGame/Scripts/Net/APIResponses/Model.zip
new file mode 100644
index 000000000..8fa7b88f2
Binary files /dev/null and b/Assets/MyGame/Scripts/Net/APIResponses/Model.zip differ
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model.zip.meta b/Assets/MyGame/Scripts/Net/APIResponses/Model.zip.meta
new file mode 100644
index 000000000..7fcca8fca
--- /dev/null
+++ b/Assets/MyGame/Scripts/Net/APIResponses/Model.zip.meta
@@ -0,0 +1,7 @@
+fileFormatVersion: 2
+guid: c36e09f19fea2b84b8427d970cf8a4f2
+DefaultImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/BaseIdCount.cs b/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/BaseIdCount.cs
deleted file mode 100644
index 2b3c4a566..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/BaseIdCount.cs
+++ /dev/null
@@ -1,25 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Model.Entity.BaseModel
-{
- ///
- /// 基础ID数量模型类
- ///
-
- public class BaseIdCount
- {
- ///
- /// Id
- ///
- public string Id { get; set; }
-
- ///
- /// 数量
- ///
- public int Count { get; set; }
- }
-}
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/BaseIdName.cs b/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/BaseIdName.cs
deleted file mode 100644
index a703af4d7..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/BaseIdName.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-namespace Model.Entity.BaseModel
-{
- ///
- /// 公共对象 ID和Name
- ///
-
- public class BaseIdName
- {
- ///
- /// Id
- ///
- public string Id { get; set; }
- ///
- /// 名称
- ///
- public string Name { get; set; }
- }
-}
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/BaseProduct.cs b/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/BaseProduct.cs
deleted file mode 100644
index c886699dd..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/BaseProduct.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-using Assets.MyGame.Scripts.Net.APIResponses.Enum;
-
-namespace Model.Entity.BaseModel
-{
- ///
- /// 基础商品类
- ///
- public class BaseProduct
- {
- ///
- /// 产品编号
- ///
- public string Number { get; set; }
- ///
- /// 产品名称
- ///
- public string Name { get; set; }
- ///
- /// 产品描述
- ///
- public string Desc { get; set; }
- ///
- /// 产品图片地址
- ///
- public string ImageUrl { get; set; }
-
- ///
- /// 产品类型
- ///
- public virtual ProductTypeEnum Type { get; set; }
-
- ///
- /// 道具等级
- ///
- public int Level { get; set; }
-
-
- }
-}
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/BaseProductCount.cs b/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/BaseProductCount.cs
deleted file mode 100644
index beaee2ffb..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/BaseProductCount.cs
+++ /dev/null
@@ -1,15 +0,0 @@
-namespace Model.Entity.BaseModel
-{
- ///
- /// 产品和数量
- ///
- public class BaseProductCount :BaseProduct
- {
- ///
- /// 数量
- ///
- public int Count { get; set; }
-
-
- }
-}
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/BaseTitleValue.cs b/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/BaseTitleValue.cs
deleted file mode 100644
index b4ba69f04..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/BaseTitleValue.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-namespace Model.Entity.BaseModel
-{
- ///
- /// 公共对象 Title和Value
- ///
-
- public class BaseTitleValue
- {
- ///
- /// 标题
- ///
- public string Title { get; set; }
- ///
- /// 名称
- ///
- public string Value { get; set; }
- }
-}
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/BaseTitleValue.cs.meta b/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/BaseTitleValue.cs.meta
deleted file mode 100644
index 7ba9d24ba..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/BaseTitleValue.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: ddecf5d674a99dc43bb4a752f1bef662
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/CreateUserInfo.cs b/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/CreateUserInfo.cs
deleted file mode 100644
index 143f9ecb6..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/CreateUserInfo.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-using System;
-
-namespace Model.Entity.BaseModel
-{
- ///
- /// 创建人的信息
- ///
- public class CreateInfo
- {
-
- ///
- /// 用户id
- ///
-
- public string UserId { get; set; }
- ///
- /// 用户名称
- ///
-
- public string UserName { get; set; }
- ///
- /// 用户头像
- ///
-
- public string UserHead { get; set; }
- ///
- /// 用户编号
- ///
- public string Number { get; set; }
-
- ///
- /// 创建时间
- ///
-
- public long CreateTime { get; set; }
-
-
- public CreateInfo()
- {
- }
- }
-}
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/CreateUserInfo.cs.meta b/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/CreateUserInfo.cs.meta
deleted file mode 100644
index d5359038a..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/CreateUserInfo.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: fd5bcc53ae4defa48a4d5d21d3fff6eb
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/GameBaseConfig.cs b/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/GameBaseConfig.cs
deleted file mode 100644
index e95bd9811..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/GameBaseConfig.cs
+++ /dev/null
@@ -1,537 +0,0 @@
-using Assets.MyGame.Scripts.Net.APIResponses.Enum;
-using System.Collections.Generic;
-
-namespace Model.Entity.BaseModel
-{
- ///
- /// 鱼种配置表模型类
- ///
- public class FishTypeConfig
- {
- ///
- /// 鱼种编号
- ///
- public string FishNumber { get; set; } = string.Empty;
-
- ///
- /// 鱼名字
- ///
- public string FishName { get; set; } = string.Empty;
-
- ///
- /// 鱼类型
- ///
- public FishTypeEnum FishType { get; set; }
-
-
- ///
- /// 基础分数
- ///
- public int FishScore { get; set; } = 0;
-
- ///
- /// 击杀权重
- ///
- public int KillWeight { get; set; } = 0;
-
- ///
- /// 路径编号集合
- ///
-
- public List PathList { get; set; } = new List();
- }
-
- ///
- /// 房间配置
- ///
- public class RoomConfig
- {
- ///
- /// 房间编号
- ///
- public string RoomNumber { get; set; }=string.Empty;
-
- ///
- /// 房间名称
- ///
- public string RoomName { get; set; } = string.Empty;
-
- ///
- /// 游戏类型
- ///
- public GameTypeEnum GameType { get; set; }
-
- ///
- /// 房间等级
- ///
- public int RoomLevel { get; set; } = 0;
-
- ///
- /// 房间分区数量
- ///
- public int RoomPartitionNum { get; set; } = 0;
-
- ///
- /// 房间数量
- ///
- public int RoomCount{ get; set; } = 0;
-
- ///
- /// 进房金币限制
- ///
- public int RoomGoldLimit { get; set; } = 0;
-
- ///
- /// 炮倍列表
- ///
- public List CannonMultipleList { get; set; } = new List();
-
- }
-
- ///
- /// 出鱼配置
- ///
- public class RoomFishConfig
- {
- ///
- /// 游戏类型
- ///
- public GameTypeEnum GameType { get; set; }
-
- ///
- /// 普通鱼配置列表
- ///
- public List NormalFishList { get; set; } = new List();
-
- ///
- /// 按照房间等级出鱼配置
- ///
-
- public List RoomFishLevelList { get; set; } = new List();
- }
- ///
- /// 按照房间等级出鱼配置
- ///
-
- public class RoomFishLevelConfig : RoomFishDetailConfig
- {
- public int RoomLevel { get; set; } = 0;
- }
-
- ///
- /// 出鱼配置
- ///
- public class RoomFishDetailConfig
- {
-
- ///
- /// 类型 1 鱼 2 鱼阵
- ///
- public int Type { get; set; } = 0;
-
- ///
- /// 鱼种编号或鱼阵编号
- ///
- public string FishNumber { get; set; } = string.Empty;
- ///
- /// 出鱼权重
- ///
- public int FishWeight { get; set; } = 0;
- ///
- /// 出鱼频率 秒
- ///
- public int FishFrequency { get; set; } = 0;
- ///
- /// 场内最大数量
- ///
- public int MaxCount { get; set; } = 0;
- }
-
- ///
- /// 鱼阵配置
- ///
- public class FishArrayConfig
- {
-
- ///
- /// 鱼阵编号
- ///
- public string FishArrayNumber { get; set; } = string.Empty;
-
- ///
- /// 名字
- ///
- public string Name { get; set; } = string.Empty;
-
- ///
- /// Boss鱼编号
- ///
- public string BossFishNumber { get; set; } = string.Empty;
-
- ///
- /// Boss数量
- ///
- public int BoosCount { get; set; } = 0;
-
-
- ///
- /// 普通鱼
- ///
- public string FishNumber { get; set; } = string.Empty;
- ///
- /// 普通鱼数量
- ///
- public int FishCount { get; set; } = 0;
- ///
- /// 阵型编号
- ///
- public string ArrayNumber { get; set; } = string.Empty;
-
- ///
- /// 路径集合
- ///
- public List PathList { get; set; } = new List();
-
- ///
- /// 阈值
- ///
- public List ThresholdList { get; set; } = new List();
-
- }
- ///
- /// 用户等级配置
- ///
- public class UserLevelConfig
- {
- ///
- /// 等级
- ///
- public int Level { get; set; } = 0;
- ///
- /// 经验值下限
- ///
- public int ExpMin { get; set; } = 0;
- ///
- /// 经验值上限
- ///
- public int ExpMax { get; set; } = 0;
-
- ///
- /// 金币
- ///
- public int Gold { get; set; } = 0;
- ///
- /// 钻石
- ///
- public int Diamond { get; set; } = 0;
-
- ///
- /// 道具列表
- ///
- public List ProductList { get; set; } = new List();
- }
- ///
- /// 道具信息
- ///
- public class PropInfConfig: BasePropInfo
- {
- ///
- /// 关联游戏 空为未设置 关联所有
- ///
- public List GameNumber { get; set; } = new List();
-
- ///
- /// 有效期 单位天 0为不限制天数
- ///
- public int Day { get; set; } = 0;
- }
-
- ///
- /// 道具碎片信息
- ///
- public class PropFragmentConfig : BasePropInfo
- {
- ///
- /// 碎片合成数量
- ///
- public int FragmentCount { get; set; } = 0;
- ///
- /// 碎片合成后道具编号
- ///
- public string ProductNumber { get; set; } = string.Empty;
- }
- ///
- /// 道具基础信息
- ///
-
- public class BasePropInfo:BaseProduct
- {
- ///
- /// 售卖方式
- ///
- public SaleTypeEnum SaleType { get; set; } = SaleTypeEnum.金币;
-
- ///
- /// 售卖价格
- ///
- public int Price { get; set; } = 0;
- ///
- /// 售卖数量
- ///
- public int SaleCount { get; set; } = 1;
-
- ///
- /// 会员价格
- ///
- public int VIPPrice { get; set; } = 0;
-
- ///
- /// 经销商价格
- ///
- public int DealerPrice { get; set; } = 0;
-
- ///
- /// 是否启用
- ///
- public bool IsEnable { get; set; } = true;
-
- ///
- /// 是否销售
- ///
- public bool IsSale { get; set; } = true;
- }
- ///
- /// Vip等级配置
- ///
- public class VipLevelConfig
- {
- ///
- /// Vip等级
- ///
- public int Level { get; set; } = 0;
-
- ///
- /// 经验值上限
- ///
- public int ExpMax { get; set; } = 0;
-
- ///
- /// 经验值下线
- ///
- public int ExpMin { get; set; } = 0;
-
- ///
- /// 签到加成
- ///
- public double SignInAdd { get; set; } = 0;
-
- ///
- /// Vip等级礼包列表
- ///
- public List GiftList { get; set; } = new List();
- ///
- /// 每日礼包
- ///
-
- public List DailyGift { get; set; } = new List();
-
-
- }
- ///
- ///礼包配置
- ///
- public class GiftConfig
- {
-
- ///
- /// 类型 1 金币 2 钻石 3 道具
- ///
- public int Type { get; set; } = 0;
-
- ///
- /// 是否随机值
- ///
- public bool IsRandom { get; set; } = false;
-
- ///
- /// 奖励数量
- ///
- public int Count { get; set; } = 0;
-
- ///
- /// 道具数量随机最小值
- ///
- public int MinCount { get; set; } = 0;
-
- ///
- /// 道具数量随机最大值
- ///
- public int MaxCount { get; set; } = 0;
-
- ///
- /// 道具信息
- ///
- public BaseProduct Product { get; set; }
- }
- ///
- /// 签到奖励配置
- ///
- public class SignConfig
- {
- ///
- /// 排序
- ///
- public int Order { get; set; } = 0;
-
- ///
- /// 金币
- ///
- public int Gold { get; set; } = 0;
-
- ///
- /// 名称
- ///
- public string Name { get; set; } = string.Empty;
-
- ///
- /// 图标地址
- ///
- public string Icon { get; set; } = string.Empty;
-
- ///
- /// 概率
- ///
- public double Probability { get; set; } = 0;
- }
- ///
- /// 月卡配置
- ///
- public class MonthCardConfig
- {
-
- ///
- /// 类型 1 周卡 2 月卡 3 年卡
- ///
- public int Type { get; set; } = 0;
-
- ///
- /// 名称
- ///
- public string Name { get; set; } = string.Empty;
-
- ///
- /// 签到加成
- ///
- public double SignInAdd { get; set; } = 0;
-
- ///
- /// 价格 金币
- ///
- public int Gold { get; set; } = 0;
-
- ///
- /// 现金价格
- ///
- public double Money { get; set; } = 0;
-
- ///
- /// 权益礼包
- ///
-
- public List GiftList { get; set; } = new List();
-
- ///
- /// 每日礼包
- ///
- public List DailyGift { get; set; } = new List();
-
-
- }
- ///
- /// 救济配置
- ///
- public class ReliefConfig
- {
- ///
- /// 是否开启
- ///
- public bool IsOpen { get; set; } = true;
-
- ///
- /// 金币数量
- ///
- public int Gold { get; set; } = 10000;
-
- ///
- /// 每天可以领取的次数
- ///
- public int Count { get; set; } = 3;
-
- ///
- /// 领取金币的限制
- ///
- public int Limit { get; set; } = 10000;
- }
- ///
- /// 金币商城配置
- ///
- public class GoldShopConfig
- {
- ///
- /// 商品编号
- ///
- public string Number { get; set; } = string.Empty;
-
- ///
- /// 商品名称
- ///
- public string Name { get; set; } = string.Empty;
-
- ///
- /// 图标地址
- ///
- public string Icon { get; set; } = string.Empty;
-
- ///
- /// 金币数量
- ///
- public int Gold { get; set; } = 0;
- ///
- /// 钻石数量
- ///
-
- public int Diamond { get; set; } = 0;
- }
-
- ///
- /// 钻石商城配置
- ///
- public class DiamondShopConfig
- {
- ///
- /// 商品编号
- ///
- public string Number { get; set; } = string.Empty;
-
- ///
- /// 商品名称
- ///
- public string Name { get; set; } = string.Empty;
-
- ///
- /// 图标地址
- ///
- public string Icon { get; set; } = string.Empty;
-
- ///
- /// 钻石数量
- ///
- public int Diamond { get; set; } = 0;
-
- ///
- /// 现金价格
- ///
- public double Money { get; set; } = 0;
-
- }
-}
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/GameBaseConfig.cs.meta b/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/GameBaseConfig.cs.meta
deleted file mode 100644
index 6f02d2188..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/GameBaseConfig.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 012e05ae29dc5864b8cf73f44a6acf78
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/MongoBaseEntity.cs b/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/MongoBaseEntity.cs
deleted file mode 100644
index 655df2326..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/MongoBaseEntity.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-
-namespace Model.Entity.BaseModel
-{
- ///
- /// Mongo实体基类
- ///
- public class MongoBaseEntity
- {
- ///
- /// 数据id
- ///
-
- public string Id { get; set; }
-
- ///
- /// 是否删除
- ///
- public bool IsDelete { get; set; }=false;
- ///
- /// 创建人信息
- ///
- public OptionUserInfo? CreateInfo { get; set; }
-
-
- }
-}
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/MongoBaseEntity.cs.meta b/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/MongoBaseEntity.cs.meta
deleted file mode 100644
index c824ee664..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/MongoBaseEntity.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 4704ab241c098984188317667cd515a7
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/OptionUserInfo.cs b/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/OptionUserInfo.cs
deleted file mode 100644
index 2c3f257a0..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/OptionUserInfo.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-using System;
-
-namespace Model.Entity.BaseModel
-{
- ///
- /// 操作人信息实体类
- ///
-
- public class OptionUserInfo
- {
-
-
- ///
- /// 操作人ID
- ///
- public string UserId { get; set; }
- ///
- /// 操作人名称
- ///
- public string UserName { get; set; }
- ///
- /// 操作时间戳
- ///
- public long OptionTime { get; set; }
- }
-
-}
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/OptionUserInfo.cs.meta b/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/OptionUserInfo.cs.meta
deleted file mode 100644
index bcfc7442b..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/OptionUserInfo.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: fa23f130ae3eb014c8c41beb77483019
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/UserSimpleInfo.cs b/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/UserSimpleInfo.cs
deleted file mode 100644
index e8a19c5cd..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/UserSimpleInfo.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-namespace Model.Entity.BaseModel
-{
- ///
- /// 用户简单信息
- ///
-
- public class UserSimpleInfo
- {
-
-
- ///
- /// 用户名
- ///
- public string UserName { get; set; }
- ///
- /// 用户id
- ///
- public string UserId { get; set; }
- ///
- /// 序号,唯一标识用户身份的序号
- ///
- public string Number { get; set; }
-
- ///
- /// 头像地址
- ///
- public string AvatarUrl { get; set; }
-
-
- }
-}
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/UserSimpleInfo.cs.meta b/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/UserSimpleInfo.cs.meta
deleted file mode 100644
index c05accc20..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/UserSimpleInfo.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 24606b5329d1a284ba98ec5a342a74c8
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/GameConfig.cs b/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/GameConfig.cs
deleted file mode 100644
index 1c4d0f201..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/GameConfig.cs
+++ /dev/null
@@ -1,86 +0,0 @@
-using Model.Entity.BaseModel;
-using System.Collections.Generic;
-
-namespace Model.Entity
-{
- ///
- /// 后台配置信息实体类
- ///
-
- public class GameConfig : MongoBaseEntity
- {
-
- ///
- /// 鱼种配置
- ///
- public List FishTypeConfigs { get; set; } = new List();
-
- ///
- /// 房间配置
- ///
- public List RoomConfigs { get; set; } = new List();
-
- ///
- /// 出鱼配置
- ///
- public List RoomFishConfigs { get; set; } = new List();
-
- ///
- /// 鱼阵配置
- ///
- public List FishArrayConfigs { get; set; } = new List();
-
-
- ///
- /// 用户等级配置
- ///
- public List UserLevelConfigs { get; set; } = new List();
-
-
- ///
- /// 道具表
- ///
- public List PropConfig { get; set; } = new List();
-
- ///
- /// 道具碎片表
- ///
- public List PropFragments { get; set; } = new List();
-
-
- //刮刮卡配置
-
-
- ///
- /// Vip等级配置
- ///
- public List VipLevelConfigs { get; set; } = new List();
-
- ///
- /// 签到池配置
- ///
- public List SignConfigs { get; set; } = new List();
-
- ///
- /// 月卡配置
- ///
- public List MonthCardConfigs { get; set; } = new List();
-
- ///
- /// 救济金配置
- ///
- public ReliefConfig ReliefConfigs { get; set; } = new ReliefConfig();
-
-
- ///
- /// 金币商城配置
- ///
- public List GoldShopConfigs { get; set; } = new List();
-
- ///
- /// 钻石商城配置
- ///
- public List DiamondShopConfigs { get; set; } = new List();
-
- }
-}
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/GameConfig.cs.meta b/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/GameConfig.cs.meta
deleted file mode 100644
index eaaa86eef..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/GameConfig.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 9ce903c3751deb24ca86550c29fa4918
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/Other/Notice.cs b/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/Other/Notice.cs
deleted file mode 100644
index b653750c3..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/Other/Notice.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-using Model.Entity.BaseModel;
-
-namespace Model.Entity.Other
-{
- ///
- /// 公告信息实体类
- ///
-
- public class Notice : MongoBaseEntity
- {
- ///
- /// 标题
- ///
- public string Title { get; set; }
- ///
- /// 内容
- ///
- public string Content { get; set; }
-
- ///
- /// 简介
- ///
- public string Recommend { get; set; }
- ///
- /// 创建时间
- ///
- public long CreateTime { get; set; }
-
-
- }
-}
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/Other/Notice.cs.meta b/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/Other/Notice.cs.meta
deleted file mode 100644
index 18e333c21..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/Other/Notice.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: cdac2cda30a55a64bb5108a6a748c8a4
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/User/GameRoom.cs b/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/User/GameRoom.cs
deleted file mode 100644
index 514ea0ca4..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/User/GameRoom.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-using Model.Entity.BaseModel;
-
-namespace Model.Entity.User
-{
- ///
- /// 游戏房间
- ///
-
- public class GameRoom:MongoBaseEntity
- {
- }
-}
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/User/GameRoom.cs.meta b/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/User/GameRoom.cs.meta
deleted file mode 100644
index 6c0959ccb..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/User/GameRoom.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: d68102352f40f9b43bdc198039b80ac0
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/User/UserEmail.cs b/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/User/UserEmail.cs
deleted file mode 100644
index cbccdd0a9..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/User/UserEmail.cs
+++ /dev/null
@@ -1,57 +0,0 @@
-using Model.Entity.BaseModel;
-using System;
-using System.Collections.Generic;
-
-namespace Model.Entity.User
-{
- ///
- /// 用户邮件实体类
- ///
-
- public class UserEmail : MongoBaseEntity
- {
- ///
- /// 用户id
- ///
- public string UserId { get; set; }
-
- ///
- /// 邮件标题
- ///
- public string Title { get; set; }
- ///
- /// 邮件内容
- ///
- public string Content { get; set; }
- ///
- /// 发送时间
- ///
- public long SendTime { get; set; }
- ///
- /// 阅读时间
- ///
- public long ReadTime { get; set; }=0;
- ///
- /// 是否已读
- ///
- public bool IsRead { get; set; }=false;
-
- ///
- /// 奖励是否领取
- ///
- public bool IsReward { get; set; }=false;
- ///
- /// 奖励钻石数量
- ///
- public int RewardDiamond { get; set; }=0;
- ///
- /// 奖励金币数量
- ///
- public int RewardGold { get; set; }=0;
- ///
- /// 奖励道具列表
- ///
- public List RewardItems { get; set; } = new List();
- }
-
-}
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/User/UserEmail.cs.meta b/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/User/UserEmail.cs.meta
deleted file mode 100644
index 230faa74c..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/User/UserEmail.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 7672f4238c508d84d8c90ce755dadd93
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/User/UserEntity.cs b/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/User/UserEntity.cs
deleted file mode 100644
index 6a6376628..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/User/UserEntity.cs
+++ /dev/null
@@ -1,364 +0,0 @@
-using Model.Entity.BaseModel;
-using System.Collections.Generic;
-
-namespace Model.Entity.User
-{
- ///
- /// 用户实体类
- ///
-
- public class UserEntity : MongoBaseEntity
- {
-
- ///
- /// 基础信息,包括昵称、头像等基本信息
- ///
- public UserBaseInfo BaseInfo= new UserBaseInfo();
-
- ///
- /// 实名认证信息
- ///
-
- public RealNameInfo RealName { get; set; }
-
- ///
- /// 保险箱信息
- ///
-
- public SafeBoxInfo SafeBox { get; set; } = new SafeBoxInfo();
-
- ///
- /// 签到
- ///
- public SignInfo Sign { get; set; }
-
- ///
- /// 已有炮台列表
- ///
- public List CannonList { get; set; }=new List();
-
- ///
- /// 正在使用的炮台信息
- ///
- public BaseUserProp CannonUsing { get; set; }
-
- ///
- /// 使用中的翅膀
- ///
- public BaseUserProp WingUsing { get; set; }
-
- ///
- /// 已有翅膀列表
- ///
- public List WingList { get; set; } = new List();
-
-
- ///
- /// 使用中的战神
- ///
- public BaseUserProp GodWarUsing { get; set; }
-
- ///
- /// 已有战神列表
- ///
- public List GodWarList { get; set; } = new List();
-
- ///
- /// 我的背包
- ///
-
- public List Props { get; set; } = new List();
-
- ///
- /// 资产信息、
- ///
-
- public Assets Assets { get; set; } = new Assets();
- ///
- /// 注册时间戳,单位为秒
- ///
- public long CreateTime { get; set; } = 0;
-
- ///
- /// 封号信息
- ///
-
- public BanInfo BanInfo { get; set; }
- ///
- /// 玩家统计信息
- ///
-
- public StaticInfo Static { get; set; } = new StaticInfo();
-
-
-
- }
- ///
- /// 签到信息
- ///
- public class SignInfo
- {
- ///
- /// 是否签到,默认为false
- ///
- public bool IsSign { get; set; } = false;
- ///
- /// 签到时间戳,单位为秒
- ///
- public long SignTime { get; set; } = 0;
- }
-
- ///
- /// 玩家统计信息
- ///
- public class StaticInfo
- {
-
- ///
- /// 最后一次登录时间戳,单位为秒
- ///
- public long LastLoginTime { get; set; } = 0;
- ///
- /// 最后一次登录IP地址
- ///
- public string LastLoginIp { get; set; } = "";
-
- ///
- /// 在线时长
- ///
- public long OnlineTime { get; set; } = 0;
-
- ///
- /// 游戏时长
- ///
- public long GameTime { get; set; } = 0;
-
- ///
- /// 所在房间
- ///
- public string RoomNumber { get; set; } = "";
-
- ///
- /// 累计充值
- ///
- public double TotalRecharge { get; set; } = 0;
-
- ///
- /// 累计消费金币
- ///
- public int TotalConsumeGold { get; set; } = 0;
-
- ///
- /// 累计消费钻石
- ///
- public int TotalConsumeDiamond { get; set; } = 0;
-
- ///
- /// 可以领取的次数
- ///
- public int ReliefGoldCount {get; set; } = 0;
-
-
-
- }
- ///
- /// 封号信息
- ///
-
- public class BanInfo
- {
- ///
- /// 是否封号,true为封号状态,false为正常状态。默认值为false(未被封号)。
- ///
- public bool IsBan { get; set; } = false;
- ///
- /// 封号时间
- ///
- public long BanTime { get; set; } = 0;
- ///
- /// 封号原因
- ///
- public string BanReason { get; set; } = "";
- ///
- /// 封号天数
- ///
- public int BanDays { get; set; } = 0;
- ///
- /// 封号到期时间
- ///
- public long BanEndTime { get; set; } = 0;
- }
- ///
- /// 用户基本信息
- ///
-
- public class UserBaseInfo
- {
- ///
- /// 用户名
- ///
- public string UserName { get; set; } = string.Empty;
- ///
- /// 密码
- ///
- public string Password { get; set; } = string.Empty;
-
- ///
- /// 序号,唯一标识用户身份的序号
- ///
- public string Number { get; set; } = string.Empty;
-
- ///
- /// 头像地址
- ///
- public string AvatarUrl { get; set; } = string.Empty;
-
- ///
- /// 手机号
- ///
- public string Mobile { get; set; } = string.Empty;
- ///
- /// 第三方登陆信息
- ///
- public string WXOpenId { get; set; } = string.Empty;
-
- ///
- /// 渠道编号
- ///
- public string Channel { get; set; } = string.Empty;
-
- ///
- /// 是否红色昵称
- ///
- public bool IsRedName { get; set; } = false;
- }
-
-
- ///
- /// 资产信息
- ///
-
- public class Assets
- {
- ///
- /// 钻石数量
- ///
- public int Diamond { get; set; } = 0;
- ///
- /// 金币数量
- ///
- public int Gold { get; set; } = 0;
- ///
- /// 等级
- ///
- public int Level { get; set; } = 1;
- ///
- /// 经验值
- ///
- public int Exp { get; set; } = 0;
-
-
-
- ///
- /// Vip签到加成
- ///
- public double VipSignInAdd { get; set; } = 0;
- ///
- /// Vip等级
- ///
- public int VipLevel { get; set; } = 0;
-
- ///
- /// 未领取的Vip礼包集合
- ///
-
- public List VipGift { get; set; } = new List();
-
-
- ///
- /// vip每日礼包是否领取
- ///
- public bool IsVipDayGift { get; set; } = false;
-
-
-
- ///
- /// 会员卡签到加成
- ///
- public double UserCardInAdd { get; set; } = 0;
-
- ///
- /// 会员卡等级 1 周卡 2 月卡 3 年卡
- ///
- public int UserCardLevel { get; set; } = 0;
-
-
- ///
- /// 会员卡到期时间
- ///
- public long UserCardEndTime { get; set; } = 0;
- ///
- /// 月卡每日礼包是否领取
- ///
- public bool IsUserCardDayGift { get; set; } = false;
-
- ///
- /// 未领取的权益礼包集合
- ///
-
- public List UserCardGift { get; set; } = new List();
-
-
- }
- ///
- /// 实名信息
- ///
-
- public class RealNameInfo
- {
- ///
- /// 真实名字
- ///
- public string RealName { get; set; } = string.Empty;
- ///
- /// 身份证号
- ///
- public string IDCard { get; set; } = string.Empty;
- }
- ///
- /// 保险箱
- ///
-
- public class SafeBoxInfo
- {
- ///
- /// 存储金额
- ///
- public int Amount { get; set; } = 0;
-
- ///
- /// 密码
- ///
- public string Password { get; set; } = "";
-
- ///
- /// 存储时间
- ///
- public long SaveTime { get; set; } = 0;
- }
-
- ///
- /// 用户道具
- ///
- public class BaseUserProp : BaseProduct
- {
- ///
- /// 是否试用
- ///
- public bool IsTrial { get; set; } = false;
- ///
- /// 体验截止时间
- ///
- public long TrialEndTime { get; set; } = 0;
- }
-}
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/User/UserEntity.cs.meta b/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/User/UserEntity.cs.meta
deleted file mode 100644
index 47cb5eb00..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/User/UserEntity.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 0daa07e113165d84c86e9d731b5f7567
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/User/UserTask.cs b/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/User/UserTask.cs
deleted file mode 100644
index 2c6a90469..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/User/UserTask.cs
+++ /dev/null
@@ -1,77 +0,0 @@
-using Assets.MyGame.Scripts.Net.APIResponses.Enum;
-using Model.Entity.BaseModel;
-
-namespace Model.Entity.User
-{
- ///
- /// 用户任务
- ///
-
- public class UserTask : MongoBaseEntity
- {
- ///
- /// 用户Id
- ///
- public string UserId { get; set; }
- ///
- /// 任务编号
- ///
- public string Number { get; set; }
- ///
- /// 任务描述
- ///
- public string Remark { get; set; }
- ///
- /// 任务类型
- ///
- public TaskType TaskType { get; set; }
- ///
- /// 任务事件
- ///
- public TaskEvent TaskEvent { get; set; }
- ///
- /// 任务条件
- ///
- public int TaskCount { get; set; }
- ///
- /// 当前进度
- ///
- public int Count { get; set; }
-
- ///
- /// 是否完成
- ///
- public bool IsFinish { get; set; }=false;
-
- ///
- /// 关联Id 如好友Id
- ///
- public string OtherId { get; set; }
-
- ///
- /// 是否领取奖励
- ///
- public bool IsGet { get; set; }=false;
-
- ///
- /// 任务添加时间
- ///
- public long TaskAddTime { get; set; }
- ///
- /// 任务结束时间
- ///
- public long TaskEndTime { get; set; }=0;
-
- ///
- /// 任务完成时间
- ///
-
- public long TaskFinishTime { get; set; } = 0;
-
- ///
- /// 奖励礼包
- ///
-
- public GiftConfig GiftConfig { get; set; } = null;
- }
-}
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/User/UserTask.cs.meta b/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/User/UserTask.cs.meta
deleted file mode 100644
index 9f52e1818..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/User/UserTask.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: e749863c93f5e8444b5be2583ef161b6
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/BaseListPageParam.cs b/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/BaseListPageParam.cs
deleted file mode 100644
index ab25d8b5d..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/BaseListPageParam.cs
+++ /dev/null
@@ -1,45 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Model.Param
-{
- ///
- /// 公共分页参数
- ///
- public class BaseListPageParam
- {
- private string _keyword = "";
- private int _page = 1;
- private int _pageSize = 10;
- ///
- /// 关键词
- ///
- public string KeyWord
- {
- get { return string.IsNullOrWhiteSpace(_keyword) ? "" : _keyword.Trim(); }
- set { _keyword = string.IsNullOrWhiteSpace(value) ? "" : value.Trim(); }
- }
-
-
- ///
- /// 页码
- ///
- public int? PageIndex
- {
- get { return _page <= 1 ? 1 : _page; }
- set { _page = value ?? 0; }
- }
-
- ///
- /// 每页数量
- ///
- public int? PageSize
- {
- get { return _pageSize <= 1 ? 10 : _pageSize; }
- set { _pageSize = value ?? 0; }
- }
- }
-}
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/BaseListPageParam.cs.meta b/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/BaseListPageParam.cs.meta
deleted file mode 100644
index 14394c2f9..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/BaseListPageParam.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: d6f9153b1b2b07048a7f4805999a7192
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/CreateRoomParam.cs b/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/CreateRoomParam.cs
deleted file mode 100644
index e87dfd519..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/CreateRoomParam.cs
+++ /dev/null
@@ -1,50 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Model.Param
-{
- ///
- /// 创建房间参数
- ///
- public class CreateRoomParam
- {
-
- ///
- /// 房间id
- ///
- public string roomId { get; set; }
-
- ///
- /// 用户ID
- ///
- public string userId { get; set; }
- ///
- /// 用户名称
- ///
-
- public string userName { get; set; }
-
- ///
- /// 用户头像
- ///
- public string userAvatar { get; set; }
-
- ///
- /// 游戏类型 1 我方黑 2 我方红
- ///
- public int gameType { get; set; }
-
- ///
- /// 密码,可为空字符串
- ///
- public string password { get; set; }
-
- ///
- /// 金币数量
- ///
- public int gold { get; set; } = 1000;
- }
-}
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/CreateRoomParam.cs.meta b/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/CreateRoomParam.cs.meta
deleted file mode 100644
index 0b1dc07ed..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/CreateRoomParam.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 433879f7eac6e6344a0ac77c21d74016
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/Game/GameConfigParam.cs b/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/Game/GameConfigParam.cs
deleted file mode 100644
index bb7c942dd..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/Game/GameConfigParam.cs
+++ /dev/null
@@ -1,15 +0,0 @@
-using Model.Entity;
-using Model.Entity.BaseModel;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Model.Param.Game
-{
- public class GameConfigParam
- {
-
- }
-}
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/Game/GameConfigParam.cs.meta b/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/Game/GameConfigParam.cs.meta
deleted file mode 100644
index 606ce3183..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/Game/GameConfigParam.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 68ea623d07b0e6645bf687972fa1217f
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/Game/GetBannerListParam.cs b/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/Game/GetBannerListParam.cs
deleted file mode 100644
index a9bfe5370..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/Game/GetBannerListParam.cs
+++ /dev/null
@@ -1,25 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Model.Param.Game
-{
- ///
- /// 获取广告位列表
- ///
- public class GetBannerListParam : BaseListPageParam
- {
- ///
- /// 状态 1 使用中 2 已停止 -1是全部
- ///
- public int State { get; set; } = -1;
-
- ///
- /// 位置
- ///
-
- public string? Position { get; set; } = "";
- }
-}
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/Game/GetBannerListParam.cs.meta b/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/Game/GetBannerListParam.cs.meta
deleted file mode 100644
index 73bcda31a..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/Game/GetBannerListParam.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 954b8a086f92b09459b03416599ad17c
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/Game/GetTaskListParam.cs b/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/Game/GetTaskListParam.cs
deleted file mode 100644
index 5cae00b1f..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/Game/GetTaskListParam.cs
+++ /dev/null
@@ -1,21 +0,0 @@
-namespace Model.Param.Game
-{
- ///
- /// 获取任务列表参数
- ///
- public class GetTaskListParam:BaseListPageParam
- {
- ///
- /// 任务状态 1 上架 2 下架 -1全部
- ///
- public int State { get; set; } = -1;
- ///
- /// 任务类型 -1 全部
- ///
- public int TaskType { get; set; } = -1;
- ///
- /// 任务事件 -1 全部
- ///
- public int TaskEvent { get; set; } = -1;
- }
-}
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/Game/GetTaskListParam.cs.meta b/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/Game/GetTaskListParam.cs.meta
deleted file mode 100644
index 1baae0dc3..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/Game/GetTaskListParam.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: cf85dde803c06ea42a9718ee2a8bcc90
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/Game/GetUserTaskListParam.cs b/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/Game/GetUserTaskListParam.cs
deleted file mode 100644
index 8841735eb..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/Game/GetUserTaskListParam.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-namespace Model.Param.Game
-{
- ///
- /// 获取玩家任务列表参数
- ///
- public class GetUserTaskListParam
- {
- ///
- /// 任务类型 -1 全部
- ///
- public int TaskType { get; set; } = -1;
- }
-}
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/Game/GetUserTaskListParam.cs.meta b/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/Game/GetUserTaskListParam.cs.meta
deleted file mode 100644
index 63be6c412..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/Game/GetUserTaskListParam.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 2903ea713e3e1124cb8a720dc827d84c
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/Other/AddNoticeParam.cs b/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/Other/AddNoticeParam.cs
deleted file mode 100644
index 802915c17..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/Other/AddNoticeParam.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Model.Param.Other
-{
- ///
- /// 添加公告参数类
- ///
- public class AddNoticeParam
- {
- ///
- /// 标题
- ///
- public string Title { get; set; }
- ///
- /// 内容
- ///
- public string Content { get; set; }
-
- ///
- /// 简介
- ///
- public string Recommend { get; set; }
- }
-}
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/Other/AddNoticeParam.cs.meta b/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/Other/AddNoticeParam.cs.meta
deleted file mode 100644
index a34452fc0..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/Other/AddNoticeParam.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: d22d98b8ef826e84d93552628a5be101
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/Other/GetNoticeListParam.cs b/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/Other/GetNoticeListParam.cs
deleted file mode 100644
index b1d0f0c51..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/Other/GetNoticeListParam.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Model.Param.Other
-{
- ///
- /// 公告列表参数类
- ///
- public class GetNoticeListParam : BaseListPageParam
- {
-
- }
-}
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/Other/GetNoticeListParam.cs.meta b/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/Other/GetNoticeListParam.cs.meta
deleted file mode 100644
index ee67c5786..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/Other/GetNoticeListParam.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 140676c3e89ecb149bdc400d1627f55a
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/Other/UpdateNoticeParam.cs b/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/Other/UpdateNoticeParam.cs
deleted file mode 100644
index 766c7f881..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/Other/UpdateNoticeParam.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-namespace Model.Param.Other
-{
- ///
- /// 更新公告参数类
- ///
- public class UpdateNoticeParam : AddNoticeParam
- {
- ///
- /// 公告id
- ///
- public string Id { get; set; }
- }
-}
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/Other/UpdateNoticeParam.cs.meta b/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/Other/UpdateNoticeParam.cs.meta
deleted file mode 100644
index 1bf95b7a0..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/Other/UpdateNoticeParam.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 0ba53c0cd2f8bef489a5f26145316a52
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/User/AddUserPropParam.cs b/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/User/AddUserPropParam.cs
deleted file mode 100644
index 727ccae7b..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/User/AddUserPropParam.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Model.Param.User
-{
- ///
- /// 添加玩家道具参数
- ///
- public class AddUserPropParam
- {
- ///
- /// 道具id
- ///
- public string PropId { get; set; }
- ///
- /// 数量
- ///
- public int Count { get; set; }
- ///
- /// 类型 3 鱼苗 4 鱼食 5鱼池 6 宝箱 7 锦鲤 8 装饰 9 清洁
- ///
-
- public int Type { get; set; }
- }
-}
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/User/AddUserPropParam.cs.meta b/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/User/AddUserPropParam.cs.meta
deleted file mode 100644
index 8ebe4732c..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/User/AddUserPropParam.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 9bfb0d0e9d2231b4f930dfc560662e63
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/User/CompletedTaskParam.cs b/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/User/CompletedTaskParam.cs
deleted file mode 100644
index 40ab0796e..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/User/CompletedTaskParam.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-using Assets.MyGame.Scripts.Net.APIResponses.Enum;
-
-namespace Model.Param.User
-{
- ///
- /// 已完成的任务参数类
- ///
- public class CompletedTaskParam
- {
-
- ///
- /// 任务事件类型
- ///
- public TaskEvent taskEvent { get; set; }
- ///
- /// 用户ID
- ///
- public string userId { get; set; }=string.Empty;
- ///
- /// 根据传回数据判断任务是否 完成
- ///
- public int count { get; set; } = 0;
-
- ///
- /// 其他ID,比如好友ID等
- ///
- public string otherId { get; set; } = "";
- }
-}
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/User/CompletedTaskParam.cs.meta b/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/User/CompletedTaskParam.cs.meta
deleted file mode 100644
index 7637713fa..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/User/CompletedTaskParam.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: beb8f2ce8ffcec1459d1cbbc02ff97c9
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/User/GetEmailPageParam.cs b/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/User/GetEmailPageParam.cs
deleted file mode 100644
index 66f332968..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/User/GetEmailPageParam.cs
+++ /dev/null
@@ -1,21 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Model.Param.User
-{
- ///
- /// 获取邮箱列表参数类
- ///
- public class GetEmailPageParam : BaseListPageParam
- {
-
- ///
- /// 邮箱状态 0全部 1 已读 2 未读
- ///
- public int ReadStatus { get; set; }
-
- }
-}
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/User/GetEmailPageParam.cs.meta b/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/User/GetEmailPageParam.cs.meta
deleted file mode 100644
index e493de1e2..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/User/GetEmailPageParam.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 1621d46a351989842a3b03dfad91bb3d
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/User/RegisterUserParam.cs b/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/User/RegisterUserParam.cs
deleted file mode 100644
index e736d7c99..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/User/RegisterUserParam.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Model.Param.User
-{
- ///
- /// 注册用户请求参数
- ///
- public class RegisterUserParam
- {
-
- ///
- /// 短信验证码
- ///
- public string Code { get; set; }
- ///
- /// 手机号
- ///
- public string? Mobile { get; set; }
- ///
- /// 邀请码
- ///
- public string? InviteCode { get; set; }
-
- }
-}
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/User/RegisterUserParam.cs.meta b/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/User/RegisterUserParam.cs.meta
deleted file mode 100644
index 902bb0ac4..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/User/RegisterUserParam.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 9f7c96c87de57d54b96d84b90d3a6493
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/User/RegisterUserWeiXinParam.cs b/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/User/RegisterUserWeiXinParam.cs
deleted file mode 100644
index 13bf87880..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/User/RegisterUserWeiXinParam.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Model.Param.User
-{
- ///
- /// 注册用户请求参数
- ///
- public class RegisterUserWeiXinParam
- {
- ///
- /// 第三方标识Id
- ///
- public string? OpenId { get; set; }
-
- ///
- /// 用户昵称
- ///
- public string? NickName { get; set; }
-
- ///
- /// 头像地址
- ///
- public string? AvatarUrl { get; set; }
-
- ///
- /// 邀请码
- ///
- public string? InviteCode { get; set; }
-
-
- }
-}
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/User/RegisterUserWeiXinParam.cs.meta b/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/User/RegisterUserWeiXinParam.cs.meta
deleted file mode 100644
index 4ef1ac388..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/User/RegisterUserWeiXinParam.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 813a2f9e48988354da7e4be83b1cfa5f
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/User/SendEmailParam.cs b/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/User/SendEmailParam.cs
deleted file mode 100644
index b1c94399e..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/User/SendEmailParam.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-using Model.Entity.BaseModel;
-using Model.Entity.User;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Model.Param.User
-{
- ///
- /// 发送邮件业务参数类
- ///
- public class SendEmailParam
- {
-
-
- ///
- /// 接收者 用户id
- ///
- public string? UserId { get; set; }
- ///
- /// 邮件标题
- ///
- public string? Title { get; set; }
- ///
- /// 邮件内容
- ///
- public string? Content { get; set; }
- ///
- /// 奖励钻石数量
- ///
- public int RewardDiamond { get; set; } = 0;
- ///
- /// 奖励积分数量
- ///
- public int RewardGold { get; set; } = 0;
- ///
- /// 奖励道具列表
- ///
- public List? RewardItems { get; set; } = null;
-
- }
-}
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/User/SendEmailParam.cs.meta b/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/User/SendEmailParam.cs.meta
deleted file mode 100644
index a3f611cd9..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/User/SendEmailParam.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 809d01fcc0977554eb3abfff7ef5a69f
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/User/UpdateUserDataParam.cs b/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/User/UpdateUserDataParam.cs
deleted file mode 100644
index 8caf1e565..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/User/UpdateUserDataParam.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Model.Param.User
-{
- ///
- /// 更新用户参数
- ///
- public class UpdateUserDataParam
- {
-
- ///
- /// 用户ID
- ///
- public string Id { get; set; }
- ///
- /// 钻石数量
- ///
- public int Diamond { get; set; } = 0;
- ///
- /// 金币数量
- ///
- public int Gold { get; set; } = 0;
- ///
- /// 等级
- ///
- public int Level { get; set; } = 1;
- ///
- /// 经验值
- ///
- public int Exp { get; set; } = 0;
- }
-}
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/User/UpdateUserDataParam.cs.meta b/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/User/UpdateUserDataParam.cs.meta
deleted file mode 100644
index 9ba371710..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Param/User/UpdateUserDataParam.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 23c6fb7aa5e38e34a99b327531b8f5c6
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Response/StatisticsResult.cs b/Assets/MyGame/Scripts/Net/APIResponses/Model/Response/StatisticsResult.cs
deleted file mode 100644
index 1149ee8dc..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Response/StatisticsResult.cs
+++ /dev/null
@@ -1,56 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Model.Response
-{
- public class StatisticsResult
- {
- ///
- /// 在线用户数
- ///
- public int OnlineUsers { get; set; }
- ///
- /// 总访问数
- ///
- public long TotalVisits { get; set; }
- ///
- /// 今日访问数
- ///
- public long TodayVisits { get; set; }
- ///
- /// 本月访问数
- ///
- public long ThisMonthVisits { get; set; }
- ///
- /// 总流量(字节)
- ///
- public long TotalTraffic { get; set; }
- ///
- /// 总流量(格式化)
- ///
- public object TotalTrafficFormatted { get; set; }
- ///
- /// 今日流量(字节)
- ///
- public long TodayTraffic { get; set; }
- ///
- /// 今日流量(格式化)
- ///
- public object TodayTrafficFormatted { get; set; }
- ///
- /// 本月流量(字节)
- ///
- public long ThisMonthTraffic { get; set; }
- ///
- /// 本月流量(格式化)
- ///
- public object ThisMonthTrafficFormatted { get; set; }
- ///
- /// 最后更新时间
- ///
- public DateTime LastUpdated { get; set; }
- }
-}
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Response/StatisticsResult.cs.meta b/Assets/MyGame/Scripts/Net/APIResponses/Model/Response/StatisticsResult.cs.meta
deleted file mode 100644
index 6cc8081b9..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Response/StatisticsResult.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 8b0820ad90319bb4ab4f50cf029962f3
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Response/User/GiftResponse.cs b/Assets/MyGame/Scripts/Net/APIResponses/Model/Response/User/GiftResponse.cs
deleted file mode 100644
index 26b6af69f..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Response/User/GiftResponse.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using Model.Entity.BaseModel;
-
-namespace Model.Response.User
-{
- ///
- /// 礼物响应类
- ///
- public class GiftResponse
- {
- ///
- /// 金币数量
- ///
- public int Gold { get; set; } = 0;
- ///
- /// 钻石数量
- ///
- public int Diamond { get; set; }
- ///
- /// 商品列表
- ///
- public List Product { get; set; } = new List();
- }
-}
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Response/User/GiftResponse.cs.meta b/Assets/MyGame/Scripts/Net/APIResponses/Model/Response/User/GiftResponse.cs.meta
deleted file mode 100644
index 352e78b91..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Response/User/GiftResponse.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 083d72e6d9537de4aa9b03c8fbba2e11
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Response/User/InviteFriendListResponse.cs b/Assets/MyGame/Scripts/Net/APIResponses/Model/Response/User/InviteFriendListResponse.cs
deleted file mode 100644
index 7f3afe15e..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Response/User/InviteFriendListResponse.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-using Model.Entity.User;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Model.Response.User
-{
-
- ///
- /// 邀请好友列表响应
- ///
- public class InviteFriendListResponse
- {
- ///
- /// 用户列表
- ///
- public UserEntity User { get; set; }
-
- ///
- /// 状态码 1未领取 2 已领取
- ///
- public int State { get; set; }
-
- }
-}
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Response/User/InviteFriendListResponse.cs.meta b/Assets/MyGame/Scripts/Net/APIResponses/Model/Response/User/InviteFriendListResponse.cs.meta
deleted file mode 100644
index 8a7dd9ddc..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Response/User/InviteFriendListResponse.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: d3474b19ad461354ea78525b1529f692
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Response/User/RankingResponse.cs b/Assets/MyGame/Scripts/Net/APIResponses/Model/Response/User/RankingResponse.cs
deleted file mode 100644
index 17bd0cfda..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Response/User/RankingResponse.cs
+++ /dev/null
@@ -1,69 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Model.Response.User
-{
- ///
- /// 排行榜响应类
- ///
- public class RankingResponse
- {
-
- ///
- /// 用户列表
- ///
- public List UserList { get; set; }=new List();
-
- ///
- /// 用户信息
- ///
- public RankingUserResponse User { get; set; }
- }
- ///
- /// 排行榜用户信息响应类
- ///
- public class RankingUserResponse
- {
- ///
- /// 用户Id
- ///
- public string UserId{ get; set; }
- ///
- /// 排名
- ///
-
- public int Rank { get; set; }
- ///
- /// 用户名
- ///
- public string UserName { get; set; }
-
- ///
- /// 序号,唯一标识用户身份的序号
- ///
- public string Number { get; set; }
-
- ///
- /// 头像地址
- ///
- public string AvatarUrl { get; set; }
-
- ///
- /// 手机号
- ///
- public string Mobile { get; set; }
-
- ///
- /// 等级
- ///
- public int Level { get; set; }
-
- ///
- /// 锦鲤数量
- ///
- public int FishCount { get; set; }
- }
-}
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Response/User/RankingResponse.cs.meta b/Assets/MyGame/Scripts/Net/APIResponses/Model/Response/User/RankingResponse.cs.meta
deleted file mode 100644
index a8d79d03d..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Response/User/RankingResponse.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 7d6ec44dc383252439bec69166ebb970
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Response/User/UserFriendResponse.cs b/Assets/MyGame/Scripts/Net/APIResponses/Model/Response/User/UserFriendResponse.cs
deleted file mode 100644
index 65c325866..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Response/User/UserFriendResponse.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Model.Response.User
-{
- ///
- /// 用户好友响应类
- ///
- public class UserFriendResponse
- {
- ///
- /// 用户ID
- ///
- public string UserId { get; set; }
- ///
- /// 昵称
- ///
- public string NickName { get; set; }
- ///
- /// 头像地址
- ///
- public string AvatarUrl { get; set; }
- ///
- /// 等级
- ///
- public int Level { get; set; } = 1;
-
- ///
- /// 战斗力
- ///
- public int Combat { get; set; } = 1;
- }
-}
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Response/User/UserFriendResponse.cs.meta b/Assets/MyGame/Scripts/Net/APIResponses/Model/Response/User/UserFriendResponse.cs.meta
deleted file mode 100644
index 654e16eed..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Response/User/UserFriendResponse.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 1e4456d86496f1b4baedceeeccf14997
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Response/User/UserToken.cs b/Assets/MyGame/Scripts/Net/APIResponses/Model/Response/User/UserToken.cs
deleted file mode 100644
index be47a239e..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Response/User/UserToken.cs
+++ /dev/null
@@ -1,11 +0,0 @@
-using Model.Entity.User;
-namespace Model.Response.User
-{
- ///
- /// 用户token信息
- ///
- public class UserToken: UserEntity
- {
- public string Token { get; set; }
- }
-}
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Response/User/UserToken.cs.meta b/Assets/MyGame/Scripts/Net/APIResponses/Model/Response/User/UserToken.cs.meta
deleted file mode 100644
index 1bb62c474..000000000
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Response/User/UserToken.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 31be3f05f0d226e4bb8ff4bdf1d6b8e1
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/UserData_SubClass/UserBaseInfo.cs b/Assets/MyGame/Scripts/Net/APIResponses/UserData_SubClass/UserBaseInfo.cs
new file mode 100644
index 000000000..05c290f82
--- /dev/null
+++ b/Assets/MyGame/Scripts/Net/APIResponses/UserData_SubClass/UserBaseInfo.cs
@@ -0,0 +1,11 @@
+public class UserBaseInfo
+{
+ public string userName { get; set; }
+ public string password { get; set; }
+ public string number { get; set; }
+ public string avatarUrl { get; set; }
+ public string mobile { get; set; }
+ public string wxOpenId { get; set; }
+ public string channel { get; set; }
+ public bool isRedName { get; set; }
+}
\ No newline at end of file
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/BaseIdName.cs.meta b/Assets/MyGame/Scripts/Net/APIResponses/UserData_SubClass/UserBaseInfo.cs.meta
similarity index 83%
rename from Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/BaseIdName.cs.meta
rename to Assets/MyGame/Scripts/Net/APIResponses/UserData_SubClass/UserBaseInfo.cs.meta
index fb9c93c0e..77e97786b 100644
--- a/Assets/MyGame/Scripts/Net/APIResponses/Model/Entity/BaseModel/BaseIdName.cs.meta
+++ b/Assets/MyGame/Scripts/Net/APIResponses/UserData_SubClass/UserBaseInfo.cs.meta
@@ -1,5 +1,5 @@
fileFormatVersion: 2
-guid: 172b3f3d7ea9c244eb69f81e78d07b4c
+guid: 4f0adb90b7fac4f42b046634e32cd8f0
MonoImporter:
externalObjects: {}
serializedVersion: 2
diff --git a/Assets/MyGame/Scripts/Net/APIResponses/UserToken.cs b/Assets/MyGame/Scripts/Net/APIResponses/UserToken.cs
index c4a736e53..950f62107 100644
--- a/Assets/MyGame/Scripts/Net/APIResponses/UserToken.cs
+++ b/Assets/MyGame/Scripts/Net/APIResponses/UserToken.cs
@@ -13,6 +13,10 @@ namespace Assets.MyGame.Scripts.Net.API
[Serializable]
public class UserToken
{
+ ///
+ /// 基础信息,包括昵称、头像等基本信息
+ ///
+ public UserBaseInfo BaseInfo = new UserBaseInfo();
///
/// 用户唯一 ID
///
diff --git a/Assets/MyGame/Scripts/Net/WebResponses/ChineseChess/ChineseChessGameClassList.cs b/Assets/MyGame/Scripts/Net/WebResponses/ChineseChess/ChineseChessGameClassList.cs
index 8dbfd1bc5..e461583be 100644
--- a/Assets/MyGame/Scripts/Net/WebResponses/ChineseChess/ChineseChessGameClassList.cs
+++ b/Assets/MyGame/Scripts/Net/WebResponses/ChineseChess/ChineseChessGameClassList.cs
@@ -1,6 +1,8 @@
-using Model.Entity.BaseModel;
-using System;
+using System;
+using System.Collections;
using System.Collections.Generic;
+using UnityEngine;
+using UnityEngine.Networking;
namespace Assets.MyGame.Scripts.Net.WebResponses.ChineseChess
{
@@ -42,7 +44,7 @@ namespace Assets.MyGame.Scripts.Net.WebResponses.ChineseChess
///
/// 游戏房间
///
- public class ChessGameRoom : MongoBaseEntity
+ public class ChessGameRoom
{
///
/// 用户列表
@@ -88,6 +90,44 @@ namespace Assets.MyGame.Scripts.Net.WebResponses.ChineseChess
///
public class RedisGameUser
{
+ //下载头像 失败最多重试5次
+
+ public IEnumerator DownTexture2d(System.Action action)
+ {
+ string url = userAvatar;
+ int downCount = 5;
+ Texture2D avatarTexture2D = new Texture2D(100, 100);
+ //if (avatarTexture2D == null)
+ for (int i = 0; i < downCount; i++)
+ {
+ using (UnityWebRequest www = UnityWebRequestTexture.GetTexture(url))
+ {
+ yield return www.SendWebRequest();
+ if (www.result == UnityWebRequest.Result.ConnectionError ||
+ www.result == UnityWebRequest.Result.ProtocolError)
+ {
+ Debug.LogError("下载失败: " + www.error);
+ downCount++;
+ if (downCount == 5)
+ {
+
+ action.Invoke(new Texture2D(100, 100));
+
+ yield break;
+ }
+
+ }
+ else
+ {
+ avatarTexture2D = DownloadHandlerTexture.GetContent(www);
+ break;
+ }
+ }
+ }
+
+ action.Invoke(avatarTexture2D);
+
+ }
///
/// 链接Id
diff --git a/Assets/MyGame/Scripts/Net/WebResponses/GetRoomList.cs b/Assets/MyGame/Scripts/Net/WebResponses/GetRoomList.cs
index 8783d613f..7ca75c892 100644
--- a/Assets/MyGame/Scripts/Net/WebResponses/GetRoomList.cs
+++ b/Assets/MyGame/Scripts/Net/WebResponses/GetRoomList.cs
@@ -13,6 +13,6 @@ namespace Assets.MyGame.Scripts.Net.WebResponses
public int maxPlayerCount;
public int currentOnlinePlayerCount;
public int robotCount;
- public int roomNumber;
+ public int roomNumber;
}
}
diff --git a/Assets/MyGame/Scripts/Net/WebResponses/RoomChangeResponse.cs b/Assets/MyGame/Scripts/Net/WebResponses/RoomChangeResponse.cs
index ecc02db68..40d31ccdf 100644
--- a/Assets/MyGame/Scripts/Net/WebResponses/RoomChangeResponse.cs
+++ b/Assets/MyGame/Scripts/Net/WebResponses/RoomChangeResponse.cs
@@ -7,6 +7,7 @@ using System.Collections.Generic;
[Serializable]
public class RoomChangeResponse
{
+ public static int CreateSitPos=0;
///
/// 房间唯一 ID
///
diff --git a/Assets/MyGame/Scripts/Net/WebResponses/RoomJoinNotice.cs b/Assets/MyGame/Scripts/Net/WebResponses/RoomJoinNotice.cs
index b6710c5df..432c0acc3 100644
--- a/Assets/MyGame/Scripts/Net/WebResponses/RoomJoinNotice.cs
+++ b/Assets/MyGame/Scripts/Net/WebResponses/RoomJoinNotice.cs
@@ -47,7 +47,7 @@ namespace Assets.MyGame.Scripts.Net.WebResponses
///
/// 玩家金币
///
- public int gold;
+ public long gold;
///
/// 玩家钻石
diff --git a/Assets/MyGame/Scripts/Net/WebResponses/SyncGameData.cs b/Assets/MyGame/Scripts/Net/WebResponses/SyncGameData.cs
index 98285a334..fc2d54ad8 100644
--- a/Assets/MyGame/Scripts/Net/WebResponses/SyncGameData.cs
+++ b/Assets/MyGame/Scripts/Net/WebResponses/SyncGameData.cs
@@ -1,4 +1,7 @@
-using System;
+using Assets.MyGame.Scripts.Net.API.GameConfig_SubClass;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Linq;
+using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
@@ -6,20 +9,57 @@ using System.Threading.Tasks;
namespace Assets.MyGame.Scripts.Net.WebResponses
{
+ [Serializable]
+ public enum FrameDataType
+ {
+ none=0,
+ rotateTurrect,
+ fireBullet,
+ createFish,
+ changeAutoTarget
+
+ }
///
/// 同步游戏数据
///
[Serializable]
public class SyncGameData
{
- public string sitPos;
- public string name;
- public string messageID;
- public FrameData frameData;
+ public int sitPos;
+ public FrameDataType frameType;
+ public Object frameData;
}
+ [Serializable]
public class FrameData
{
-
+
+ }
+ [Serializable]
+ public class FrameData_Rotate : FrameData
+ {
+ public float angle;
+ }
+ [Serializable]
+ public class FrameData_FireBullit : FrameData
+ {
+ public float angle;
+ public long gold;
+ public bool isSanShe;
+ public bool isSuoDing;
+ public bool auto;
+ public bool twoRTruuect;
+ public string monsterID;
+ }
+ [Serializable]
+ public class FrameData_CreateFish : FrameData
+ {
+ public RoomFishDetailConfig fish;
+
+ }
+ [Serializable]
+ public class FrameData_ChangeAutoTarget : FrameData
+ {
+ public string targetGuid;
}
}
diff --git a/Assets/MyGame/Scripts/Net/WebSocketManager.cs b/Assets/MyGame/Scripts/Net/WebSocketManager.cs
index 426f5f539..8db4ee6ef 100644
--- a/Assets/MyGame/Scripts/Net/WebSocketManager.cs
+++ b/Assets/MyGame/Scripts/Net/WebSocketManager.cs
@@ -3,6 +3,7 @@ using Best.WebSockets;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
+using Unity.VisualScripting;
using UnityEngine;
using UnityEngine.SceneManagement;
@@ -80,10 +81,10 @@ namespace Assets.MyGame.Scripts.Net
WebSocketSendList.Bind(GameManager.Instance.user.id);
break;
case SocketType.room:
-
+
break;
case SocketType.game:
- WebSocketSendList.JoinRoom("11109", GameManager.Instance.user.id,1);
+
break;
case SocketType.chess:
@@ -99,7 +100,11 @@ namespace Assets.MyGame.Scripts.Net
{
Debug.Log($"[WebSocket] {type} 连接关闭 Code:{code} Reason:{reason}");
// 自动重连
- StartCoroutine(Reconnect(type));
+ if (code!=WebSocketStatusCodes.NormalClosure)
+ {
+ StartCoroutine(Reconnect(type));
+ }
+
};
ws.OnClosed += (web, code, message) =>
@@ -145,7 +150,8 @@ namespace Assets.MyGame.Scripts.Net
{
if (sockets.TryGetValue(type, out var ws))
{
- ws.Close();
+ ws.Close(WebSocketStatusCodes.NormalClosure, "正常关闭"); // 或者 CloseStatusCode.Normal
+ //ws.Close();
sockets.Remove(type);
}
}
diff --git a/Assets/MyGame/Scripts/Net/WebSocketManager_Message.cs b/Assets/MyGame/Scripts/Net/WebSocketManager_Message.cs
index 478c70f8a..b97937af0 100644
--- a/Assets/MyGame/Scripts/Net/WebSocketManager_Message.cs
+++ b/Assets/MyGame/Scripts/Net/WebSocketManager_Message.cs
@@ -58,10 +58,13 @@ namespace Assets.MyGame.Scripts.Net
Screen.orientation = ScreenOrientation.Portrait;
break;
case "BeginGame":
-
- roomMainPanel.subUIManager.CloseAll();
- roomMainPanel.StartGame(msg);
-
+ {
+ var va = JsonConvert.DeserializeObject>(msg.ToString()).arguments[0];
+ roomMainPanel.subUIManager.CloseAll();
+ roomMainPanel.StartGame(msg);
+ roomMainPanel.UpdateUserData(va);
+ }
+
break;
case "CreateRoomNotice":
{
@@ -70,6 +73,7 @@ namespace Assets.MyGame.Scripts.Net
if (panel != null)
{
panel.UpdataRoom(va);
+
}
}
@@ -109,6 +113,7 @@ namespace Assets.MyGame.Scripts.Net
case "EndGameSuccess":
{
var va = JsonConvert.DeserializeObject>(msg).arguments[0];
+
if (va == GameManager.Instance.user.id)
{
roomMainPanel.subUIManager.ShowAsync(UIPanel.ZGXQWin);
@@ -119,6 +124,34 @@ namespace Assets.MyGame.Scripts.Net
}
}
+ break;
+ case "ExitRoomSuccess":
+ {
+ var va = JsonConvert.DeserializeObject>(msg).arguments[0];
+ if (GameManager.Instance.user.id== va)
+ {
+
+ WebSocketSendList.GetRoomListChineseChess(1);
+
+
+ }
+ else
+ {
+ for (int i = 0; i < roomMainPanel.roomData.users.Count; i++)
+ {
+ var item = roomMainPanel.roomData.users[i];
+ if (item.userId != va)
+ {
+ roomMainPanel.roomData.users.Remove(item);
+ roomMainPanel.UpdateUserData(roomMainPanel.roomData);
+ i--;
+ }
+ }
+
+ }
+
+ }
+
break;
case "ExitRoomNotice":
@@ -129,6 +162,7 @@ namespace Assets.MyGame.Scripts.Net
if (panel != null)
{
panel.UpdataRoom(va);
+
}
}
}
@@ -136,6 +170,13 @@ namespace Assets.MyGame.Scripts.Net
case "Disconnect":
roomMainPanel.subUIManager.ShowAsync(UIPanel.ZGXQWin);
break;
+ case "GameError":
+ {
+ var va = JsonConvert.DeserializeObject>(msg).arguments[0];
+ UIManager.Instance.ShowBoard(va);
+ }
+
+ break;
default:
break;
}
@@ -180,6 +221,25 @@ namespace Assets.MyGame.Scripts.Net
case "SyncPlayerGold":
WebSocketReponseList.SyncPlayerGold(msg);
break;
+ case "GetRoomInfoResult":
+ WebSocketReponseList.GetRoomInfoResult(msg);
+
+ break;
+ case "SyncGameData":
+ WebSocketReponseList.SyncGameDataResult(msg);
+
+ break;
+ case "RoomLeaveNotice":
+ WebSocketReponseList.LeaveRoomResult(msg);
+ //WebSocketManager.Instance.Close(SocketType.game);
+ break;
+ case "ChangeControllerUser":
+ var userId = JsonConvert.DeserializeObject>(msg).arguments[0];
+ if (userId==GameManager.Instance.user.id)
+ {
+ CreateFishManager.Instance.fangzhu = true;
+ }
+ break;
default:
break;
}
diff --git a/Assets/MyGame/Scripts/Net/WebSocketReponseList.cs b/Assets/MyGame/Scripts/Net/WebSocketReponseList.cs
index bdcaf76f3..02c994b97 100644
--- a/Assets/MyGame/Scripts/Net/WebSocketReponseList.cs
+++ b/Assets/MyGame/Scripts/Net/WebSocketReponseList.cs
@@ -18,13 +18,13 @@ namespace Assets.MyGame.Scripts.Net
///
public static void GetRoomListChineseChessResult(string msg)
{
- var var1 = UIManager.Instance.Show(UIPanel.MainGamePanelZGXQ,msg);
+ var var1 = UIManager.Instance.Show(UIPanel.MainGamePanelZGXQ, msg);
}
public static void GetGoldConfigSuccessChineseChessResult(string msg)
{
UIManager.Instance.Get(UIPanel.MainGamePanelZGXQ).subUIManager.ShowAsync(UIPanel.ZGXQGameExplain);
}
-
+
///
/// 获取房间列表 room
///
@@ -32,7 +32,30 @@ namespace Assets.MyGame.Scripts.Net
public static void GetRoomListResult(string msg)
{
var var1 = UIManager.Instance.Get(UIPanel.HomeMainPanel);
- var1.subUIManager.Get(UIPanel.SelectRoomPenel).panel_UIHome_BY_MySelectRoomPenel.Show(msg);
+
+ var selectRoomPanel = var1.subUIManager.Get(UIPanel.SelectRoomPenel);
+ if (selectRoomPanel != null && selectRoomPanel.isMySelectRoom)
+ selectRoomPanel.panel_UIHome_BY_MySelectRoomPenel.Show(msg);
+
+ else
+ {
+ var v = JsonConvert.DeserializeObject>>(msg).arguments[0];
+
+
+ foreach (var item in v)
+ {
+ if (item.currentOnlinePlayerCount < item.maxPlayerCount)
+ {
+ WebSocketSendList.GetRoomInfo(item.roomId);
+ break;
+ //if (item)
+ //{
+ //UIHome_BY_SelectRoomLevelPanel.StartGame(item);
+ //}
+
+ }
+ }
+ }
}
///
/// 加入房间 room
@@ -40,7 +63,7 @@ namespace Assets.MyGame.Scripts.Net
///
public static void RoomJoinNotice(string msg)
{
- string sceneName="";
+ string sceneName = "";
UIPanel uIPanel = UIPanel.None;
switch (GameManager.Instance.gameData.currGameType)
{
@@ -56,20 +79,32 @@ namespace Assets.MyGame.Scripts.Net
break;
case GameType.XJMH:
sceneName = "XJMH";
- uIPanel= UIPanel.MainGamePanelXJMH;
+ uIPanel = UIPanel.MainGamePanelXJMH;
break;
case GameType.HHWK:
break;
default:
break;
}
- UIManager.Instance.ShowAsync(uIPanel,UIPanel.HomeMainPanel, msg);
+
+ UIManager.Instance.ShowAsync(uIPanel, UIPanel.HomeMainPanel, msg);
//这里
- SceneManager.LoadSceneAsync(sceneName, LoadSceneMode.Additive);
+ var v = SceneManager.GetSceneByName("XJMH");
+ if (v.IsValid() && v.isLoaded)
+ {
+
+ }
+ else
+ {
+ SceneManager.LoadSceneAsync(sceneName, LoadSceneMode.Additive);
+ }
+
UIManager.Instance.Close(UIPanel.HomeMainPanel);
+
+
}
///
- /// 获取房间列表 room
+ /// 房间列表 room
///
///
public static void RoomInfo(string msg)
@@ -92,6 +127,46 @@ namespace Assets.MyGame.Scripts.Net
{
UIManager.Instance.Get(UIPanel.MainGamePanelXJMH).currSitData.goldNum = int.Parse(msg);
}
+ public static void GetRoomInfoResult(string msg)
+ {
+ //GameManager.Instance.StartGame();RoomChangeResponse
+ var roomData = JsonConvert.DeserializeObject>(msg).arguments[0];
+ UIHome_BY_SelectRoomLevelPanel.StartGame(roomData);
+ }
+ public static void SyncGameDataResult(string msg)
+ {
+ var syncGameData = JsonConvert.DeserializeObject>(msg).arguments[0];
+ switch (syncGameData.frameType)
+ {
+ case FrameDataType.none:
+ break;
+ case FrameDataType.rotateTurrect:
+ EventCenter.Instance.EventTrigger(ConstEventString.SyncGameData_Rotate, syncGameData);
+ break;
+ case FrameDataType.fireBullet:
+ EventCenter.Instance.EventTrigger(ConstEventString.SyncGameData_FireBullet, syncGameData);
+ break;
+ case FrameDataType.createFish:
+ EventCenter.Instance.EventTrigger(ConstEventString.SyncGameData_CreateFish, syncGameData);
+ break;
+ case FrameDataType.changeAutoTarget:
+ EventCenter.Instance.EventTrigger(ConstEventString.SyncGameData_ChangeTargetMonster, syncGameData);
+ break;
+ default:
+ break;
+ }
+
+ }
+ public static void LeaveRoomResult(string msg)
+ {
+ //GameManager.Instance.StartGame();RoomChangeResponse
+ var roomData = JsonConvert.DeserializeObject>(msg).arguments[0];
+ if (roomData.userId == GameManager.Instance.user.id)
+ {
+ WebSocketManager.Instance.Close(SocketType.game);
+ }
+
+ }
}
}
diff --git a/Assets/MyGame/Scripts/Net/WebSocketSendList_Base.cs b/Assets/MyGame/Scripts/Net/WebSocketSendList_Base.cs
index 7695facaf..b17d8e4d9 100644
--- a/Assets/MyGame/Scripts/Net/WebSocketSendList_Base.cs
+++ b/Assets/MyGame/Scripts/Net/WebSocketSendList_Base.cs
@@ -30,6 +30,7 @@ public partial class WebSocketSendList
/// 参数数组(SignalR 要求必须是数组)
///
public List