Database Support
Refactored almost everything, but most importantly we now integrate with RethinkDB for game data.
This commit is contained in:
parent
5ffeb55214
commit
0b46d5ee39
839 changed files with 77349 additions and 112660 deletions
|
|
@ -0,0 +1,35 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
|
||||
namespace UnityAsyncAwaitUtil
|
||||
{
|
||||
public class AsyncCoroutineRunner : MonoBehaviour
|
||||
{
|
||||
static AsyncCoroutineRunner _instance;
|
||||
|
||||
public static AsyncCoroutineRunner Instance
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_instance == null)
|
||||
{
|
||||
_instance = new GameObject("AsyncCoroutineRunner")
|
||||
.AddComponent<AsyncCoroutineRunner>();
|
||||
}
|
||||
|
||||
return _instance;
|
||||
}
|
||||
}
|
||||
|
||||
void Awake()
|
||||
{
|
||||
// Don't show in scene hierarchy
|
||||
gameObject.hideFlags = HideFlags.HideAndDontSave;
|
||||
|
||||
DontDestroyOnLoad(gameObject);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
fileFormatVersion: 2
|
||||
guid: f11ec4617f62c224b99e34972dc917a8
|
||||
timeCreated: 1506153419
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using UnityEngine;
|
||||
|
||||
namespace UnityAsyncAwaitUtil
|
||||
{
|
||||
public static class SyncContextUtil
|
||||
{
|
||||
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]
|
||||
static void Install()
|
||||
{
|
||||
UnitySynchronizationContext = SynchronizationContext.Current;
|
||||
UnityThreadId = Thread.CurrentThread.ManagedThreadId;
|
||||
}
|
||||
|
||||
public static int UnityThreadId
|
||||
{
|
||||
get; private set;
|
||||
}
|
||||
|
||||
public static SynchronizationContext UnitySynchronizationContext
|
||||
{
|
||||
get; private set;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
fileFormatVersion: 2
|
||||
guid: a184433eba65a614191b36436c5620cd
|
||||
timeCreated: 1506158938
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Loading…
Reference in a new issue