1
This commit is contained in:
17
Src/Skin/Com.Project.B.Skin.asmdef
Normal file
17
Src/Skin/Com.Project.B.Skin.asmdef
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"name": "Com.Project.B.Skin",
|
||||
"rootNamespace": "",
|
||||
"references": [
|
||||
"GUID:14fe60d984bf9f84eac55c6ea033a8f4",
|
||||
"GUID:f51ebe6a0ceec4240a699833d6309b23"
|
||||
],
|
||||
"includePlatforms": [],
|
||||
"excludePlatforms": [],
|
||||
"allowUnsafeCode": false,
|
||||
"overrideReferences": false,
|
||||
"precompiledReferences": [],
|
||||
"autoReferenced": true,
|
||||
"defineConstraints": [],
|
||||
"versionDefines": [],
|
||||
"noEngineReferences": true
|
||||
}
|
7
Src/Skin/Com.Project.B.Skin.asmdef.meta
Normal file
7
Src/Skin/Com.Project.B.Skin.asmdef.meta
Normal file
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c95e23613aa3d05469c7fb568e04243c
|
||||
AssemblyDefinitionImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
30
Src/Skin/IPlayerSkinData.cs
Normal file
30
Src/Skin/IPlayerSkinData.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Project.B.Skin
|
||||
{
|
||||
public interface IPlayerSkinSocket{}
|
||||
/// <summary>
|
||||
/// 玩家武器皮肤
|
||||
/// </summary>
|
||||
public struct PlayerSkinWeaponSocket : IPlayerSkinSocket{}
|
||||
/// <summary>
|
||||
/// 玩家角色皮肤
|
||||
/// </summary>
|
||||
public struct PlayerOperatorSkinSocket : IPlayerSkinSocket{}
|
||||
/// <summary>
|
||||
/// 玩家已装备皮肤数据
|
||||
/// </summary>
|
||||
public interface IPlayerReplacedSkinData:IReadOnlyDictionary<IPlayerSkinSocket,IPlayerSkinData[]>
|
||||
{
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// 玩家皮肤数据
|
||||
/// </summary>
|
||||
public interface IPlayerSkinData
|
||||
{
|
||||
public int Id { get; }
|
||||
public int ConfigId { get; }
|
||||
}
|
||||
}
|
11
Src/Skin/IPlayerSkinData.cs.meta
Normal file
11
Src/Skin/IPlayerSkinData.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: de24d0a11c0575d449218df10eb83a1e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
32
Src/Skin/IPlayerSkinService.cs
Normal file
32
Src/Skin/IPlayerSkinService.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Cysharp.Threading.Tasks;
|
||||
|
||||
namespace Project.B.Skin
|
||||
{
|
||||
/// <summary>
|
||||
/// 玩家皮肤服务
|
||||
/// </summary>
|
||||
public interface IPlayerSkinService
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取玩家已装备皮肤数据
|
||||
/// </summary>
|
||||
/// <param name="playerId"></param>
|
||||
/// <returns></returns>
|
||||
public UniTask<IPlayerReplacedSkinData> GetPlayerReplacedSkinDataAsync(Guid playerId);
|
||||
/// <summary>
|
||||
/// 获取玩家已装备皮肤数据
|
||||
/// </summary>
|
||||
/// <param name="playerIds"></param>
|
||||
/// <returns></returns>
|
||||
public UniTask<IPlayerReplacedSkinData[]> GetPlayersReplacedSkinDataAsync(params Guid[] playerIds);
|
||||
/// <summary>
|
||||
/// 获取玩家皮肤数据
|
||||
/// </summary>
|
||||
/// <param name="playerId"></param>
|
||||
/// <returns></returns>
|
||||
public UniTask<IPlayerSkinData[]> GetPlayerSkinDataAsync(Guid playerId);
|
||||
}
|
||||
}
|
11
Src/Skin/IPlayerSkinService.cs.meta
Normal file
11
Src/Skin/IPlayerSkinService.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 350ce8452677ca543bcdbea74519a858
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Reference in New Issue
Block a user