Initial commit: Unity WordConnect project
This commit is contained in:
@ -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
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9cbf97ce69c64b73a70d6514c63fba00
|
||||
timeCreated: 1717651770
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cf8c4b2a3efd465ba893956bd3e16207
|
||||
timeCreated: 1612009971
|
||||
@ -0,0 +1,7 @@
|
||||
namespace VContainer.Unity
|
||||
{
|
||||
public interface IFixedTickable
|
||||
{
|
||||
void FixedTick();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e83f6a64504c4d1da11c1f6d046a0ecc
|
||||
timeCreated: 1612009716
|
||||
@ -0,0 +1,7 @@
|
||||
namespace VContainer.Unity
|
||||
{
|
||||
public interface IInitializable
|
||||
{
|
||||
void Initialize();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7e3cb2445077468db349bf4dadae84be
|
||||
timeCreated: 1612009493
|
||||
@ -0,0 +1,7 @@
|
||||
namespace VContainer.Unity
|
||||
{
|
||||
public interface ILateTickable
|
||||
{
|
||||
void LateTick();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9b82ce93c2104d6c91ce9868c02dafc7
|
||||
timeCreated: 1612009914
|
||||
@ -0,0 +1,7 @@
|
||||
namespace VContainer.Unity
|
||||
{
|
||||
public interface IPostFixedTickable
|
||||
{
|
||||
void PostFixedTick();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2bf16fe4c16a465b8a8f1d68a8685e11
|
||||
timeCreated: 1612009787
|
||||
@ -0,0 +1,7 @@
|
||||
namespace VContainer.Unity
|
||||
{
|
||||
public interface IPostInitializable
|
||||
{
|
||||
void PostInitialize();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ff6e6d963c0544649d8fedd94d25b8da
|
||||
timeCreated: 1612009543
|
||||
@ -0,0 +1,7 @@
|
||||
namespace VContainer.Unity
|
||||
{
|
||||
public interface IPostLateTickable
|
||||
{
|
||||
void PostLateTick();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: dcd967d55bd245408860956770845c3d
|
||||
timeCreated: 1612009947
|
||||
@ -0,0 +1,7 @@
|
||||
namespace VContainer.Unity
|
||||
{
|
||||
public interface IPostStartable
|
||||
{
|
||||
void PostStart();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 90378302abd9404eb23d078553c60031
|
||||
timeCreated: 1612009663
|
||||
@ -0,0 +1,7 @@
|
||||
namespace VContainer.Unity
|
||||
{
|
||||
public interface IPostTickable
|
||||
{
|
||||
void PostTick();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 968f5691c67f4f64b8deed98e6a62cc2
|
||||
timeCreated: 1612009893
|
||||
@ -0,0 +1,7 @@
|
||||
namespace VContainer.Unity
|
||||
{
|
||||
public interface IStartable
|
||||
{
|
||||
void Start();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 29296d5987f24dce8ee347cc39fdf1e0
|
||||
timeCreated: 1612009633
|
||||
@ -0,0 +1,7 @@
|
||||
namespace VContainer.Unity
|
||||
{
|
||||
public interface ITickable
|
||||
{
|
||||
void Tick();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e6460471a1864836afaf0617f182a721
|
||||
timeCreated: 1612009837
|
||||
@ -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
|
||||
{
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d9445a99bad3a60af9f20ca441c14bca
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user