public void ReplaceMaxSpeed(FixMath.NET.Fix64 newValue) { var index = GameComponentsLookup.MaxSpeed; var component = (MaxSpeedComponent)CreateComponent(index, typeof(MaxSpeedComponent)); component.value = newValue; ReplaceComponent(index, component); }
public void ReplaceRadius(FixMath.NET.Fix64 newValue) { var index = GameComponentsLookup.Radius; var component = (Lockstep.Core.State.Game.RadiusComponent)CreateComponent(index, typeof(Lockstep.Core.State.Game.RadiusComponent)); component.value = newValue; ReplaceComponent(index, component); }
public void AddMaxSpeed(FixMath.NET.Fix64 newValue) { var index = GameComponentsLookup.MaxSpeed; var component = (Lockstep.Core.State.Game.MaxSpeedComponent)CreateComponent(index, typeof(Lockstep.Core.State.Game.MaxSpeedComponent)); component.value = newValue; AddComponent(index, component); }
public void ReplaceRvoAgentSettings(BEPUutilities.Vector2 newPreferredVelocity, FixMath.NET.Fix64 newTimeHorizonObst, System.Collections.Generic.IList <System.Collections.Generic.KeyValuePair <FixMath.NET.Fix64, uint> > newAgentNeighbors) { var index = GameComponentsLookup.RvoAgentSettings; var component = (Lockstep.Core.State.Game.RvoAgentSettingsComponent)CreateComponent(index, typeof(Lockstep.Core.State.Game.RvoAgentSettingsComponent)); component.preferredVelocity = newPreferredVelocity; component.timeHorizonObst = newTimeHorizonObst; component.agentNeighbors = newAgentNeighbors; ReplaceComponent(index, component); }