public Entity AddPieceApplyRotation(ShapeTetris.Enums.RotateDirection newDirection) { var component = CreateComponent <ShapeTetris.Components.PieceApplyRotation>(GameComponentIds.PieceApplyRotation); component.Direction = newDirection; return(AddComponent(GameComponentIds.PieceApplyRotation, component)); }
public Entity ReplacePieceApplyRotation(ShapeTetris.Enums.RotateDirection newDirection) { var component = CreateComponent <ShapeTetris.Components.PieceApplyRotation>(GameComponentIds.PieceApplyRotation); component.Direction = newDirection; ReplaceComponent(GameComponentIds.PieceApplyRotation, component); return(this); }