public Accelerator(Type.Battle.Accelerator accelerator, DateTime changedAt) { IsAccelerating = accelerator.IsAccelerating; StartRate = accelerator.StartRate; MaxSpeed = accelerator.MaxSpeed; Duration = TimeSpan.FromMilliseconds(accelerator.Duration); StartSpeed = MaxSpeed * StartRate; ChangedAt = changedAt; }
public void SendMovement(long actorId, TyphenApi.Type.Submarine.Battle.Point position, double direction, long movedAt, TyphenApi.Type.Submarine.Battle.Accelerator accelerator) { session.Send((int)MessageType.Movement, new TyphenApi.Type.Submarine.Battle.Movement() { ActorId = actorId, Position = position, Direction = direction, MovedAt = movedAt, Accelerator = accelerator, }); }