Weapon Scripting Overhaul
Weapons are now monolithic behaviors Various new weapon behavior types implemented All weapons have optional magazine and reload mechanic Visibility now decays globally
This commit is contained in:
parent
48abee4847
commit
357f9db329
95 changed files with 2571 additions and 754 deletions
|
|
@ -34,7 +34,8 @@ namespace JsonKnownTypes
|
|||
if(_typesSettings.DiscriminatorToType.TryGetValue(discriminator, out var typeForObject))
|
||||
return JsonConvert.DeserializeObject(jo.ToString(), typeForObject, SpecifiedSubclassConversion);
|
||||
|
||||
throw new NotImplementedException();
|
||||
return null;
|
||||
//throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ namespace RethinkDb.Driver.Net.Clustering
|
|||
private EpsilonValueCalculator calc;
|
||||
private float[] weights = null;
|
||||
|
||||
private Timer timer;
|
||||
private System.Threading.Timer timer;
|
||||
|
||||
/// <summary>
|
||||
/// Random value generator.
|
||||
|
|
@ -158,7 +158,7 @@ namespace RethinkDb.Driver.Net.Clustering
|
|||
public void StartDecayTimer()
|
||||
{
|
||||
var durationPerBucket = TimeSpan.FromTicks(decayDuration.Ticks / EpsilonBuckets);
|
||||
this.timer = new Timer(PerformEpsilonGreedyDecay, null, Timeout.Infinite, Timeout.Infinite);
|
||||
this.timer = new System.Threading.Timer(PerformEpsilonGreedyDecay, null, Timeout.Infinite, Timeout.Infinite);
|
||||
|
||||
//fire now.
|
||||
this.timer.Change(TimeSpan.Zero, durationPerBucket);
|
||||
|
|
|
|||
Loading…
Reference in a new issue