Ejemplo n.º 1
0
        private void UpdatePlayerPosition(MyMwcTravelTypeEnum travelType, ref Vector3 position)
        {
            switch (travelType)
            {
            case MyMwcTravelTypeEnum.SOLAR:
                position = new Vector3(0, 0, 0);
                break;

            case MyMwcTravelTypeEnum.NEIGHBOUR:
                position = MyMwcUtils.GetNeighbourSectorShipPosition(position);
                break;

            default:
                throw new MyMwcExceptionApplicationShouldNotGetHere();
            }
        }