1
This commit is contained in:
18
Src/GameService/Com.Project.B.GameService.asmdef
Normal file
18
Src/GameService/Com.Project.B.GameService.asmdef
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "Com.Project.B.GameService",
|
||||
"rootNamespace": "",
|
||||
"references": [
|
||||
"GUID:14fe60d984bf9f84eac55c6ea033a8f4",
|
||||
"GUID:a4033552c5c40fa408838a1ce2b1b215",
|
||||
"GUID:f51ebe6a0ceec4240a699833d6309b23"
|
||||
],
|
||||
"includePlatforms": [],
|
||||
"excludePlatforms": [],
|
||||
"allowUnsafeCode": false,
|
||||
"overrideReferences": false,
|
||||
"precompiledReferences": [],
|
||||
"autoReferenced": true,
|
||||
"defineConstraints": [],
|
||||
"versionDefines": [],
|
||||
"noEngineReferences": true
|
||||
}
|
7
Src/GameService/Com.Project.B.GameService.asmdef.meta
Normal file
7
Src/GameService/Com.Project.B.GameService.asmdef.meta
Normal file
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 12c795c5ebfb7b245a0399e28b4015e8
|
||||
AssemblyDefinitionImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
58
Src/GameService/IGameMapService.cs
Normal file
58
Src/GameService/IGameMapService.cs
Normal file
@@ -0,0 +1,58 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using BITKit;
|
||||
using Cysharp.Threading.Tasks;
|
||||
|
||||
namespace Project.B.Map
|
||||
{
|
||||
/// <summary>
|
||||
/// 游戏地图服务
|
||||
/// </summary>
|
||||
public interface IGameMapService
|
||||
{
|
||||
/// <summary>
|
||||
/// 初始化状态
|
||||
/// </summary>
|
||||
InitializationState InitializationState { get; }
|
||||
/// <summary>
|
||||
/// 当前已加载或正在加载的地图
|
||||
/// </summary>
|
||||
string CurrentMap { get; }
|
||||
/// <summary>
|
||||
/// 获取地图
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
UniTask<string> GetMapAsync();
|
||||
/// <summary>
|
||||
/// 进入地图
|
||||
/// </summary>
|
||||
/// <param name="map"></param>
|
||||
/// <returns></returns>
|
||||
UniTask StartMapAsync(string map);
|
||||
/// <summary>
|
||||
/// 停止地图,也是返回菜单的意思
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
UniTask StopMapAsync();
|
||||
/// <summary>
|
||||
/// 当加载状态发生变化时
|
||||
/// </summary>
|
||||
event Action<InitializationState> OnInitializationStateChanged;
|
||||
/// <summary>
|
||||
/// 切换场景前
|
||||
/// </summary>
|
||||
event Func<string, UniTask> OnMapChanging;
|
||||
|
||||
/// <summary>
|
||||
/// 切换场景后
|
||||
/// </summary>
|
||||
event Action<Guid,string> OnMapChanged;
|
||||
|
||||
/// <summary>
|
||||
/// 地图加载进度
|
||||
/// </summary>
|
||||
event Action<Guid,float,string> OnMapLoadingProgress;
|
||||
}
|
||||
|
||||
}
|
11
Src/GameService/IGameMapService.cs.meta
Normal file
11
Src/GameService/IGameMapService.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3cef42cfdedec0c41b3992402685c70c
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Reference in New Issue
Block a user