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

27
Src/Emoji/IEmojiData.cs Normal file
View 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);
}
}

View File

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

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

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: d70a36705df567d40ac20b6aef5182ba
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant: