public IEntity CreateAt(string entityName, MapCoordinate mapCoordinate) { var entity = Get(entityName); _positionSystem.SetPosition(entity, mapCoordinate); return(entity); }
public void SetPosition_SetsPositionOfEntity() { positionSystem.Move(mover, new Vector(1, 1)); MapCoordinate testMapCoordinate = GetTestMapCoordinate(x: 5, y: 10); positionSystem.SetPosition(mover, testMapCoordinate); var result = positionSystem.CoordinateOf(mover); result.Should().BeEquivalentTo(testMapCoordinate); }