Entity.CreateMoved C# (CSharp) Method

CreateMoved() public method

public CreateMoved ( Vector2 deltaPosition ) : Entity
deltaPosition Vector2
return Entity
    public Entity CreateMoved(Vector2 deltaPosition)
    {
        return new Entity()
        {
          Position = this.Position + deltaPosition,
          Appearance = this.Appearance
        };
    }