1
This commit is contained in:
@@ -8,7 +8,8 @@ namespace Project.B.Map
|
||||
public string MapName { get; }
|
||||
public string Author { get; }
|
||||
public string Description { get; }
|
||||
public object Overview { get; }
|
||||
public object MapOverview { get; }
|
||||
public object LoadingScreen { get; }
|
||||
public string MapAddress { get; }
|
||||
}
|
||||
}
|
||||
|
@@ -39,20 +39,21 @@ namespace Project.B.Map
|
||||
/// <summary>
|
||||
/// 当加载状态发生变化时
|
||||
/// </summary>
|
||||
event Action<TaskStatus,TaskStatus> OnTaskStatusChanged;
|
||||
event Action<TaskStatus,TaskStatus> OnTaskStatusChanged;
|
||||
|
||||
/// <summary>
|
||||
/// 切换场景前
|
||||
/// </summary>
|
||||
event Func<string, UniTask> OnMapChange;
|
||||
/// <summary>
|
||||
/// 切换场景时
|
||||
/// </summary>
|
||||
event Func<string, UniTask> OnMapChanging;
|
||||
|
||||
/// <summary>
|
||||
/// 切换场景后
|
||||
/// </summary>
|
||||
event Action<Guid,string> OnMapChanged;
|
||||
/// <summary>
|
||||
/// 切换场景后,加载完成
|
||||
/// </summary>
|
||||
event Action<Guid,string> OnMapChangeCompleted;
|
||||
/// <summary>
|
||||
/// 地图加载进度
|
||||
/// </summary>
|
||||
|
@@ -2,6 +2,7 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Serialization;
|
||||
|
||||
namespace Project.B.Map
|
||||
{
|
||||
@@ -11,16 +12,18 @@ namespace Project.B.Map
|
||||
[SerializeField] private string description;
|
||||
[SerializeField] private string author;
|
||||
[SerializeField] private string mapAddress;
|
||||
[SerializeField] private Texture overview;
|
||||
[FormerlySerializedAs("overview")] [SerializeField] private Texture loadingScreen;
|
||||
[SerializeField] private Sprite mapOverview;
|
||||
[SerializeField] private Vector2 offset;
|
||||
[SerializeField] private int size;
|
||||
public string MapName => mapName;
|
||||
public string Author => author;
|
||||
public string Description => description;
|
||||
public object Overview => overview;
|
||||
public object LoadingScreen => loadingScreen;
|
||||
public string MapAddress => mapAddress;
|
||||
public Vector2 Offset => offset;
|
||||
public int Size => size;
|
||||
public object MapOverview => mapOverview;
|
||||
}
|
||||
}
|
||||
#endif
|
Reference in New Issue
Block a user