Initial commit: Unity WordConnect project

This commit is contained in:
2025-08-01 19:12:05 +08:00
commit f14db75802
3503 changed files with 448337 additions and 0 deletions

View File

@ -0,0 +1,53 @@
//
// Copyright (c) 2025 left (https://github.com/left-/)
// Copyright (c) 2020 hadashiA
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
#if UNITY_2021_3_OR_NEWER
using System;
#if UNITY_2023_1_OR_NEWER
using UnityEngine;
#else
using Awaitable = System.Threading.Tasks.Task;
#endif
namespace VContainer.Unity
{
internal static class AwaitableExtensions
{
public static async Awaitable Forget(this Awaitable awaitable,
EntryPointExceptionHandler exceptionHandler = null)
{
try
{
await awaitable;
}
catch (Exception ex)
{
if (exceptionHandler != null)
exceptionHandler.Publish(ex);
else
throw;
}
}
}
}
#endif

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 9cbf97ce69c64b73a70d6514c63fba00
timeCreated: 1717651770

View File

@ -0,0 +1,16 @@
using System.Threading;
#if VCONTAINER_UNITASK_INTEGRATION
using Awaitable = Cysharp.Threading.Tasks.UniTask;
#elif UNITY_2023_1_OR_NEWER
using UnityEngine;
#else
using Awaitable = System.Threading.Tasks.Task;
#endif
namespace VContainer.Unity
{
public interface IAsyncStartable
{
Awaitable StartAsync(CancellationToken cancellation = default);
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: cf8c4b2a3efd465ba893956bd3e16207
timeCreated: 1612009971

View File

@ -0,0 +1,7 @@
namespace VContainer.Unity
{
public interface IFixedTickable
{
void FixedTick();
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: e83f6a64504c4d1da11c1f6d046a0ecc
timeCreated: 1612009716

View File

@ -0,0 +1,7 @@
namespace VContainer.Unity
{
public interface IInitializable
{
void Initialize();
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 7e3cb2445077468db349bf4dadae84be
timeCreated: 1612009493

View File

@ -0,0 +1,7 @@
namespace VContainer.Unity
{
public interface ILateTickable
{
void LateTick();
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 9b82ce93c2104d6c91ce9868c02dafc7
timeCreated: 1612009914

View File

@ -0,0 +1,7 @@
namespace VContainer.Unity
{
public interface IPostFixedTickable
{
void PostFixedTick();
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 2bf16fe4c16a465b8a8f1d68a8685e11
timeCreated: 1612009787

View File

@ -0,0 +1,7 @@
namespace VContainer.Unity
{
public interface IPostInitializable
{
void PostInitialize();
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: ff6e6d963c0544649d8fedd94d25b8da
timeCreated: 1612009543

View File

@ -0,0 +1,7 @@
namespace VContainer.Unity
{
public interface IPostLateTickable
{
void PostLateTick();
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: dcd967d55bd245408860956770845c3d
timeCreated: 1612009947

View File

@ -0,0 +1,7 @@
namespace VContainer.Unity
{
public interface IPostStartable
{
void PostStart();
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 90378302abd9404eb23d078553c60031
timeCreated: 1612009663

View File

@ -0,0 +1,7 @@
namespace VContainer.Unity
{
public interface IPostTickable
{
void PostTick();
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 968f5691c67f4f64b8deed98e6a62cc2
timeCreated: 1612009893

View File

@ -0,0 +1,7 @@
namespace VContainer.Unity
{
public interface IStartable
{
void Start();
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 29296d5987f24dce8ee347cc39fdf1e0
timeCreated: 1612009633

View File

@ -0,0 +1,7 @@
namespace VContainer.Unity
{
public interface ITickable
{
void Tick();
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: e6460471a1864836afaf0617f182a721
timeCreated: 1612009837

View File

@ -0,0 +1,24 @@
using System;
namespace VContainer
{
public class PreserveAttribute : Attribute
{
}
#if UNITY_2018_4_OR_NEWER
[JetBrains.Annotations.MeansImplicitUse(
JetBrains.Annotations.ImplicitUseKindFlags.Access |
JetBrains.Annotations.ImplicitUseKindFlags.Assign |
JetBrains.Annotations.ImplicitUseKindFlags.InstantiatedNoFixedConstructorSignature)]
#endif
[AttributeUsage(AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public class InjectAttribute : PreserveAttribute
{
}
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Interface, AllowMultiple = false, Inherited = true)]
public class InjectIgnoreAttribute : Attribute
{
}
}

View File

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