This commit is contained in:
CortexCore
2025-02-24 23:02:49 +08:00
parent 9775bdd099
commit b07ae4fea7
82 changed files with 1021 additions and 386 deletions

View File

@@ -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
}

View 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; }
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: fe062caa353113146b021853aeffa5f9
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -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>

View 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

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: c9a67d267efc1e74cb6424b855defc7b
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: