Weapos Rejiggered
Modified weapon scripts to eliminate specialized projectile behavior - allows charged weapons to have projectiles and modify weapon stats when charged Added machine gun weapon & VFX Moved third party code to Plugins folder to improve compile times
This commit is contained in:
parent
2a0fe34611
commit
dbc522a224
2105 changed files with 7033 additions and 1141 deletions
|
|
@ -1,76 +0,0 @@
|
|||
using System;
|
||||
using UniRx.Operators;
|
||||
|
||||
namespace UniRx
|
||||
{
|
||||
public static partial class Observable
|
||||
{
|
||||
public static IConnectableObservable<T> Multicast<T>(this IObservable<T> source, ISubject<T> subject)
|
||||
{
|
||||
return new ConnectableObservable<T>(source, subject);
|
||||
}
|
||||
|
||||
public static IConnectableObservable<T> Publish<T>(this IObservable<T> source)
|
||||
{
|
||||
return source.Multicast(new Subject<T>());
|
||||
}
|
||||
|
||||
public static IConnectableObservable<T> Publish<T>(this IObservable<T> source, T initialValue)
|
||||
{
|
||||
return source.Multicast(new BehaviorSubject<T>(initialValue));
|
||||
}
|
||||
|
||||
public static IConnectableObservable<T> PublishLast<T>(this IObservable<T> source)
|
||||
{
|
||||
return source.Multicast(new AsyncSubject<T>());
|
||||
}
|
||||
|
||||
public static IConnectableObservable<T> Replay<T>(this IObservable<T> source)
|
||||
{
|
||||
return source.Multicast(new ReplaySubject<T>());
|
||||
}
|
||||
|
||||
public static IConnectableObservable<T> Replay<T>(this IObservable<T> source, IScheduler scheduler)
|
||||
{
|
||||
return source.Multicast(new ReplaySubject<T>(scheduler));
|
||||
}
|
||||
|
||||
public static IConnectableObservable<T> Replay<T>(this IObservable<T> source, int bufferSize)
|
||||
{
|
||||
return source.Multicast(new ReplaySubject<T>(bufferSize));
|
||||
}
|
||||
|
||||
public static IConnectableObservable<T> Replay<T>(this IObservable<T> source, int bufferSize, IScheduler scheduler)
|
||||
{
|
||||
return source.Multicast(new ReplaySubject<T>(bufferSize, scheduler));
|
||||
}
|
||||
|
||||
public static IConnectableObservable<T> Replay<T>(this IObservable<T> source, TimeSpan window)
|
||||
{
|
||||
return source.Multicast(new ReplaySubject<T>(window));
|
||||
}
|
||||
|
||||
public static IConnectableObservable<T> Replay<T>(this IObservable<T> source, TimeSpan window, IScheduler scheduler)
|
||||
{
|
||||
return source.Multicast(new ReplaySubject<T>(window, scheduler));
|
||||
}
|
||||
|
||||
public static IConnectableObservable<T> Replay<T>(this IObservable<T> source, int bufferSize, TimeSpan window, IScheduler scheduler)
|
||||
{
|
||||
return source.Multicast(new ReplaySubject<T>(bufferSize, window, scheduler));
|
||||
}
|
||||
|
||||
public static IObservable<T> RefCount<T>(this IConnectableObservable<T> source)
|
||||
{
|
||||
return new RefCountObservable<T>(source);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// same as Publish().RefCount()
|
||||
/// </summary>
|
||||
public static IObservable<T> Share<T>(this IObservable<T> source)
|
||||
{
|
||||
return source.Publish().RefCount();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue