public void ReplaceVelocity(Determinism.FixedVector2 newValue) { var index = LogicComponentsLookup.Velocity; var component = CreateComponent <VelocityComponent>(index); component.value = newValue; ReplaceComponent(index, component); }
public void ReplaceMove(Determinism.FixedVector2 newTarget) { var index = LogicComponentsLookup.Move; var component = CreateComponent <MoveComponent>(index); component.target = newTarget; ReplaceComponent(index, component); }
public void ReplaceAcceleration(Determinism.FixedVector2 newValue) { var index = LogicComponentsLookup.Acceleration; var component = CreateComponent <AccelerationComponent>(index); component.value = newValue; ReplaceComponent(index, component); }
public void AddPosition(Determinism.FixedVector2 newValue) { var index = LogicComponentsLookup.Position; var component = CreateComponent <PositionComponent>(index); component.value = newValue; AddComponent(index, component); }
public void ReplaceScale(Determinism.FixedVector2 newValue) { var index = LogicComponentsLookup.Scale; var component = CreateComponent <ScaleComponent>(index); component.value = newValue; ReplaceComponent(index, component); }
public void AddLastVelocity(Determinism.FixedVector2 newValue) { var index = LogicComponentsLookup.LastVelocity; var component = CreateComponent <LastVelocityComponent>(index); component.value = newValue; AddComponent(index, component); }
public void ReplaceFollowPoint(int newTargetID, long newFollowSpeed, Determinism.FixedVector2 newOffset, long newPickUpRadius, long newMaxRotation) { var index = LogicComponentsLookup.FollowPoint; var component = CreateComponent <FollowPointComponent>(index); component.targetID = newTargetID; component.followSpeed = newFollowSpeed; component.offset = newOffset; component.pickUpRadius = newPickUpRadius; component.maxRotation = newMaxRotation; ReplaceComponent(index, component); }
public void ReplaceWallRideMovement(long newFallSpeed, long newFastFallFactor, Determinism.FixedVector2 newInnerJumpVelocity, Determinism.FixedVector2 newNeutralJumpVelocity, Determinism.FixedVector2 newOuterJumpVelocity, long newAccelerationTime, long newJumpLenth, long newStickTime) { var index = LogicComponentsLookup.WallRideMovement; var component = CreateComponent <WallRideMovementComponent>(index); component.fallSpeed = newFallSpeed; component.fastFallFactor = newFastFallFactor; component.innerJumpVelocity = newInnerJumpVelocity; component.neutralJumpVelocity = newNeutralJumpVelocity; component.outerJumpVelocity = newOuterJumpVelocity; component.accelerationTime = newAccelerationTime; component.jumpLenth = newJumpLenth; component.stickTime = newStickTime; ReplaceComponent(index, component); }