UniRx 에셋 추가
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
// defined from .NET Framework 4.0 and NETFX_CORE
|
||||
|
||||
using System;
|
||||
|
||||
#if !(NETFX_CORE || NET_4_6 || NET_STANDARD_2_0 || UNITY_WSA_10_0)
|
||||
|
||||
namespace UniRx
|
||||
{
|
||||
public interface IObservable<T>
|
||||
{
|
||||
IDisposable Subscribe(IObserver<T> observer);
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
namespace UniRx
|
||||
{
|
||||
public interface IGroupedObservable<TKey, TElement> : IObservable<TElement>
|
||||
{
|
||||
TKey Key { get; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9703f7aad3c6b334badd37c1b41d0d8f
|
||||
timeCreated: 1455373900
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,17 @@
|
||||
// defined from .NET Framework 4.0 and NETFX_CORE
|
||||
|
||||
#if !(NETFX_CORE || NET_4_6 || NET_STANDARD_2_0 || UNITY_WSA_10_0)
|
||||
|
||||
using System;
|
||||
|
||||
namespace UniRx
|
||||
{
|
||||
public interface IObserver<T>
|
||||
{
|
||||
void OnCompleted();
|
||||
void OnError(Exception error);
|
||||
void OnNext(T value);
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1fc7a9cec9d3b644da7dbcf18ea16270
|
||||
timeCreated: 1455373897
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
|
||||
namespace UniRx
|
||||
{
|
||||
public interface IOptimizedObservable<T> : IObservable<T>
|
||||
{
|
||||
bool IsRequiredSubscribeOnCurrentThread();
|
||||
}
|
||||
|
||||
public static class OptimizedObservableExtensions
|
||||
{
|
||||
public static bool IsRequiredSubscribeOnCurrentThread<T>(this IObservable<T> source)
|
||||
{
|
||||
var obs = source as IOptimizedObservable<T>;
|
||||
if (obs == null) return true;
|
||||
|
||||
return obs.IsRequiredSubscribeOnCurrentThread();
|
||||
}
|
||||
|
||||
public static bool IsRequiredSubscribeOnCurrentThread<T>(this IObservable<T> source, IScheduler scheduler)
|
||||
{
|
||||
if (scheduler == Scheduler.CurrentThread) return true;
|
||||
|
||||
return IsRequiredSubscribeOnCurrentThread(source);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5a2d3a7c73260e14a875d62586ae28f9
|
||||
timeCreated: 1455373899
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,30 @@
|
||||
// defined from .NET Framework 4.5 and NETFX_CORE
|
||||
|
||||
#if !(NETFX_CORE || NET_4_6 || NET_STANDARD_2_0 || UNITY_WSA_10_0)
|
||||
|
||||
using System;
|
||||
|
||||
namespace UniRx
|
||||
{
|
||||
public interface IProgress<T>
|
||||
{
|
||||
void Report(T value);
|
||||
}
|
||||
|
||||
public class Progress<T> : IProgress<T>
|
||||
{
|
||||
readonly Action<T> report;
|
||||
|
||||
public Progress(Action<T> report)
|
||||
{
|
||||
this.report = report;
|
||||
}
|
||||
|
||||
public void Report(T value)
|
||||
{
|
||||
report(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a38a024b6babf8d48b7e32f2f8fb8686
|
||||
timeCreated: 1455373900
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: be811500a5640704b92de622c9202d48
|
||||
timeCreated: 1455373901
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,41 @@
|
||||
using System;
|
||||
|
||||
namespace UniRx
|
||||
{
|
||||
[Serializable]
|
||||
public struct Unit : IEquatable<Unit>
|
||||
{
|
||||
static readonly Unit @default = new Unit();
|
||||
|
||||
public static Unit Default { get { return @default; } }
|
||||
|
||||
public static bool operator ==(Unit first, Unit second)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public static bool operator !=(Unit first, Unit second)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public bool Equals(Unit other)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
return obj is Unit;
|
||||
}
|
||||
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "()";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 14f6907c0ae17e64c8fc34f08c3038a4
|
||||
timeCreated: 1455373897
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user