1
This commit is contained in:
@@ -2,8 +2,6 @@
|
||||
"name": "Com.Project.B.GameService",
|
||||
"rootNamespace": "",
|
||||
"references": [
|
||||
"GUID:14fe60d984bf9f84eac55c6ea033a8f4",
|
||||
"GUID:a4033552c5c40fa408838a1ce2b1b215",
|
||||
"GUID:f51ebe6a0ceec4240a699833d6309b23"
|
||||
],
|
||||
"includePlatforms": [],
|
||||
@@ -14,5 +12,5 @@
|
||||
"autoReferenced": true,
|
||||
"defineConstraints": [],
|
||||
"versionDefines": [],
|
||||
"noEngineReferences": true
|
||||
"noEngineReferences": false
|
||||
}
|
14
Src/GameService/IGameMapData.cs
Normal file
14
Src/GameService/IGameMapData.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Project.B.Map
|
||||
{
|
||||
public interface IGameMapData
|
||||
{
|
||||
public string MapName { get; }
|
||||
public string Author { get; }
|
||||
public string Description { get; }
|
||||
public object Overview { get; }
|
||||
public string MapAddress { get; }
|
||||
}
|
||||
}
|
11
Src/GameService/IGameMapData.cs.meta
Normal file
11
Src/GameService/IGameMapData.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fe062caa353113146b021853aeffa5f9
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@@ -1,7 +1,8 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using BITKit;
|
||||
using System.Data;
|
||||
using System.Threading.Tasks;
|
||||
using Cysharp.Threading.Tasks;
|
||||
|
||||
namespace Project.B.Map
|
||||
@@ -14,7 +15,7 @@ namespace Project.B.Map
|
||||
/// <summary>
|
||||
/// 初始化状态
|
||||
/// </summary>
|
||||
InitializationState InitializationState { get; }
|
||||
TaskStatus TaskStatus { get; }
|
||||
/// <summary>
|
||||
/// 当前已加载或正在加载的地图
|
||||
/// </summary>
|
||||
@@ -38,7 +39,7 @@ namespace Project.B.Map
|
||||
/// <summary>
|
||||
/// 当加载状态发生变化时
|
||||
/// </summary>
|
||||
event Action<InitializationState> OnInitializationStateChanged;
|
||||
event Action<TaskStatus,TaskStatus> OnTaskStatusChanged;
|
||||
/// <summary>
|
||||
/// 切换场景前
|
||||
/// </summary>
|
||||
|
22
Src/GameService/ScriptableGameMapData.cs
Normal file
22
Src/GameService/ScriptableGameMapData.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
#if UNITY_5_3_OR_NEWER
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Project.B.Map
|
||||
{
|
||||
public class ScriptableGameMapData : ScriptableObject,IGameMapData
|
||||
{
|
||||
[SerializeField] private string mapName;
|
||||
[SerializeField] private string description;
|
||||
[SerializeField] private string author;
|
||||
[SerializeField] private string mapAddress;
|
||||
[SerializeField] private Texture overview;
|
||||
public string MapName => mapName;
|
||||
public string Author => author;
|
||||
public string Description => description;
|
||||
public object Overview => overview;
|
||||
public string MapAddress => mapAddress;
|
||||
}
|
||||
}
|
||||
#endif
|
11
Src/GameService/ScriptableGameMapData.cs.meta
Normal file
11
Src/GameService/ScriptableGameMapData.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c9a67d267efc1e74cb6424b855defc7b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Reference in New Issue
Block a user