1
This commit is contained in:
27
Src/Emoji/IEmojiData.cs
Normal file
27
Src/Emoji/IEmojiData.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading;
|
||||
using BITKit;
|
||||
using Cysharp.Threading.Tasks;
|
||||
|
||||
namespace Net.Project.B.Emoji
|
||||
{
|
||||
public interface IEmojiData<T>:IDescription
|
||||
{
|
||||
public T Clip { get; }
|
||||
}
|
||||
|
||||
public struct EmojiData<T>:IEmojiData<T>
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string Description { get; set; }
|
||||
public T Clip { get; set; }
|
||||
}
|
||||
public interface IEmojiService<T>
|
||||
{
|
||||
public event Func<IEmojiData<T>, CancellationToken, UniTask> OnPlayAsync;
|
||||
public UniTask<IReadOnlyCollection<IEmojiData<T>>> GetAllEmojis();
|
||||
public UniTask Play(IEmojiData<T> emojiData,CancellationToken cancellationToken=default);
|
||||
}
|
||||
}
|
11
Src/Emoji/IEmojiData.cs.meta
Normal file
11
Src/Emoji/IEmojiData.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8a4fdf27657398c45b87a020d0e27411
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
18
Src/Emoji/Net.Project.B.Emoji.asmdef
Normal file
18
Src/Emoji/Net.Project.B.Emoji.asmdef
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "Net.Project.B.Emoji",
|
||||
"rootNamespace": "",
|
||||
"references": [
|
||||
"GUID:f51ebe6a0ceec4240a699833d6309b23",
|
||||
"GUID:14fe60d984bf9f84eac55c6ea033a8f4",
|
||||
"GUID:d8b63aba1907145bea998dd612889d6b"
|
||||
],
|
||||
"includePlatforms": [],
|
||||
"excludePlatforms": [],
|
||||
"allowUnsafeCode": false,
|
||||
"overrideReferences": false,
|
||||
"precompiledReferences": [],
|
||||
"autoReferenced": true,
|
||||
"defineConstraints": [],
|
||||
"versionDefines": [],
|
||||
"noEngineReferences": false
|
||||
}
|
7
Src/Emoji/Net.Project.B.Emoji.asmdef.meta
Normal file
7
Src/Emoji/Net.Project.B.Emoji.asmdef.meta
Normal file
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d70a36705df567d40ac20b6aef5182ba
|
||||
AssemblyDefinitionImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Reference in New Issue
Block a user