16 lines
280 B
C#
16 lines
280 B
C#
|
using System.Numerics;
|
||
|
using Encompass;
|
||
|
|
||
|
namespace PongFE.Components
|
||
|
{
|
||
|
public struct VelocityComponent : IComponent
|
||
|
{
|
||
|
public Vector2 Velocity { get; }
|
||
|
|
||
|
public VelocityComponent(Vector2 velocity)
|
||
|
{
|
||
|
Velocity = velocity;
|
||
|
}
|
||
|
}
|
||
|
}
|