新增相关国旗内容

This commit is contained in:
2025-08-29 18:21:50 +08:00
parent 1fff9db9ca
commit 72f731b8bc
296 changed files with 728 additions and 22 deletions

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 8e4cf32f6efb45fba177341b57a34003
timeCreated: 1756450772

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: b9626380655a42298daf90e7333172ae
timeCreated: 1756363915

View File

@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using NBC.Entitas;
namespace NBF.Fishing2
{
public class Map : Entity
{
/// <summary>
/// 好友房地图
/// </summary>
public bool IsRoomMap;
/// <summary>
/// 地图中的单位
/// </summary>
public Dictionary<long, Unit> Units = new Dictionary<long, Unit>();
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 2acb8a2309ee4443a812939b0e02c18f
timeCreated: 1756049289

View File

@@ -0,0 +1,18 @@
using NBC;
using NBC.Network;
using NBC.Network.Interface;
using NBF.Fishing2;
namespace NBF
{
public class Map2C_ChangeMapHandler : Message<Map2C_ChangeMap>
{
protected override async FTask Run(Session session, Map2C_ChangeMap message)
{
Log.Info($"收到地图切换消息=={message.MapId}");
await MapHelper.LoadMap(message.MapId);
// await MapHelper.CreateRoomTest(message.MapId);
}
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 9aca13592484450582e818dd128a23c2
timeCreated: 1756301493

View File

@@ -0,0 +1,11 @@
using NBC.Entitas;
namespace NBF.Fishing2
{
/// <summary>
/// 地图管理组件
/// </summary>
public class MapManageComponent : Entity
{
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 226c840e80f840ae8a4ff54bc7c6645a
timeCreated: 1756304063

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 2f5c6349983b45b0bc48d4f30ef677ee
timeCreated: 1756367958

View File

@@ -0,0 +1,9 @@
using NBC.Entitas;
namespace NBF.Fishing2
{
public class MapScene : Entity
{
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: f4087371950b45cb8eaa0933cfbd9bee
timeCreated: 1756365024

View File

@@ -0,0 +1,38 @@
using System;
using NBC;
using UnityEngine.SceneManagement;
namespace NBF.Fishing2
{
public static class SceneHelper
{
public static async FTask LoadScene(string sceneName)
{
try
{
App.Main.EventComponent.Publish(new SceneChangeStart());
LoadingPanel.Show();
var asyncOperation = SceneManager.LoadSceneAsync(sceneName);
if (asyncOperation == null) throw new Exception($"Scene not found,name={sceneName}");
while (true)
{
App.Main.EventComponent.Publish(new LoadingProgress()
{
Progress = asyncOperation.progress
});
LoadingPanel.SetProgress(asyncOperation.progress);
// 等待0.5秒后执行下面的逻辑。
await App.Main.TimerComponent.Net.WaitAsync(500);
if (asyncOperation.isDone)
{
break;
}
}
}
catch (Exception e)
{
Log.Error(e);
}
}
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: d4a2e9c0ac6d4faabbec4bccdb7a2917
timeCreated: 1756367987