/// <summary>
        /// Converts the entity into a domain model.
        /// </summary>
        /// <returns>The domain model.</returns>
        /// <param name="gameObjectLocationEntity">Model entity.</param>
        internal static GameObjectLocation ToDomainModel(this GameObjectLocationEntity gameObjectLocationEntity)
        {
            GameObjectLocation gameObjectLocation = new GameObjectLocation
            {
                Location  = new Point2D(gameObjectLocationEntity.X, gameObjectLocationEntity.Y),
                Direction = gameObjectLocationEntity.Direction,
                Type      = (GameObjectType)gameObjectLocationEntity.Type
            };

            return(gameObjectLocation);
        }
        /// <summary>
        /// Converts the domain model into an entity.
        /// </summary>
        /// <returns>The entity.</returns>
        /// <param name="gameObjectLocation">Model.</param>
        internal static GameObjectLocationEntity ToEntity(this GameObjectLocation gameObjectLocation)
        {
            GameObjectLocationEntity gameObjectLocationEntity = new GameObjectLocationEntity
            {
                X         = gameObjectLocation.Location.X,
                Y         = gameObjectLocation.Location.Y,
                Direction = gameObjectLocation.Direction,
                Type      = (int)gameObjectLocation.Type
            };

            return(gameObjectLocationEntity);
        }