Example #1
0
 public PredictionResult(string id, string sessionId, PredictionSources source, LocationTypes type)
 {
     Id        = id;
     SessionId = sessionId;
     Source    = source;
     Type      = type;
 }
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (obj == this)
            {
                return(true);
            }

            return(obj is BusinessAppointmentSettings other &&
                   ((LocationTypes == null && other.LocationTypes == null) || (LocationTypes?.Equals(other.LocationTypes) == true)) &&
                   ((AlignmentTime == null && other.AlignmentTime == null) || (AlignmentTime?.Equals(other.AlignmentTime) == true)) &&
                   ((MinBookingLeadTimeSeconds == null && other.MinBookingLeadTimeSeconds == null) || (MinBookingLeadTimeSeconds?.Equals(other.MinBookingLeadTimeSeconds) == true)) &&
                   ((MaxBookingLeadTimeSeconds == null && other.MaxBookingLeadTimeSeconds == null) || (MaxBookingLeadTimeSeconds?.Equals(other.MaxBookingLeadTimeSeconds) == true)) &&
                   ((AnyTeamMemberBookingEnabled == null && other.AnyTeamMemberBookingEnabled == null) || (AnyTeamMemberBookingEnabled?.Equals(other.AnyTeamMemberBookingEnabled) == true)) &&
                   ((MultipleServiceBookingEnabled == null && other.MultipleServiceBookingEnabled == null) || (MultipleServiceBookingEnabled?.Equals(other.MultipleServiceBookingEnabled) == true)) &&
                   ((MaxAppointmentsPerDayLimitType == null && other.MaxAppointmentsPerDayLimitType == null) || (MaxAppointmentsPerDayLimitType?.Equals(other.MaxAppointmentsPerDayLimitType) == true)) &&
                   ((MaxAppointmentsPerDayLimit == null && other.MaxAppointmentsPerDayLimit == null) || (MaxAppointmentsPerDayLimit?.Equals(other.MaxAppointmentsPerDayLimit) == true)) &&
                   ((CancellationWindowSeconds == null && other.CancellationWindowSeconds == null) || (CancellationWindowSeconds?.Equals(other.CancellationWindowSeconds) == true)) &&
                   ((CancellationFeeMoney == null && other.CancellationFeeMoney == null) || (CancellationFeeMoney?.Equals(other.CancellationFeeMoney) == true)) &&
                   ((CancellationPolicy == null && other.CancellationPolicy == null) || (CancellationPolicy?.Equals(other.CancellationPolicy) == true)) &&
                   ((CancellationPolicyText == null && other.CancellationPolicyText == null) || (CancellationPolicyText?.Equals(other.CancellationPolicyText) == true)) &&
                   ((SkipBookingFlowStaffSelection == null && other.SkipBookingFlowStaffSelection == null) || (SkipBookingFlowStaffSelection?.Equals(other.SkipBookingFlowStaffSelection) == true)));
        }
Example #3
0
        public LocationDto(ContextManager context, Guid?selectedLocation)
        {
            if (selectedLocation.HasValue)
            {
                SelectedItem = context.Get <Location>(selectedLocation.Value);
                if (SelectedItem.LocationType != null)
                {
                    LocationTypeId = SelectedItem.LocationType.ID;
                }
                if (SelectedItem.Map != null)
                {
                    MapId = SelectedItem.Map.ID;
                }
                History = context.GetHistory(typeof(Location), selectedLocation.Value);
            }
            else
            {
                History = new List <History>();
            }
            Locations = context.Context.Locations.ToList().Cast <ElementId>().ToList();
            Locations.Insert(0, new ElementId {
                ID = Guid.Empty, Name = "N/A"
            });

            LocationTypes = context.Context.LocationTypes.OrderBy(x => x.Name).ToList().Cast <ElementId>().ToList();
            LocationTypes.Insert(0, new ElementId {
                ID = Guid.Empty, Name = "--Non--"
            });

            Maps = context.Context.Maps.OrderBy(x => x.Name).ToList().Cast <ElementId>().ToList();
            Maps.Insert(0, new ElementId {
                ID = Guid.Empty, Name = "--Non--"
            });
        }
Example #4
0
 public Prediction(string id, string countryCode, PredictionSources source, LocationTypes type, string value)
 {
     Id          = id;
     CountryCode = countryCode;
     Source      = source;
     Type        = type;
     Value       = value;
 }
 public void RemoveItem(Item _item, LocationTypes _location, float _currentRotTime)
 {
     for (int i = 0; i < GetSlots.Length; i++)
     {
         if (GetSlots[i].item == _item)
         {
             GetSlots[i].UpdateSlot(null, 0, null, 0, 0);
         }
     }
 }
 public Location(GeoPoint coordinates, string country, int distance, string locality, string name, PredictionSources source, LocationTypes type)
 {
     Coordinates = new Point(coordinates.Longitude, coordinates.Latitude);
     Country     = country;
     Distance    = distance;
     Locality    = locality;
     Name        = name;
     Source      = source;
     Type        = type;
 }
Example #7
0
    private void Start()
    {
        if (locationInterface != null)
        {
            Location = locationInterface.defaultLocationType;
        }

        if (healthSystem != null)
        {
            HealthState = healthSystem.defaultHealthStateType;
        }
    }
Example #8
0
 internal static void InjectSerializers()
 {
     injectedSerializer         = new XmlSerializer(typeof(SaveGame), SerialiserTypes.Concat(InjectedTypes).ToArray());
     injectedFarmerSerializer   = new XmlSerializer(typeof(Farmer), FarmerTypes.Concat(InjectedTypes).ToArray());
     injectedLocationSerializer = new XmlSerializer(
         typeof(GameLocation),
         LocationTypes.Concat(InjectedTypes).ToArray());
     SaveGame.serializer         = injectedSerializer;
     SaveGame.farmerSerializer   = injectedFarmerSerializer;
     SaveGame.locationSerializer = injectedLocationSerializer;
     injected = true;
 }
Example #9
0
 public Location(string name, string locality, string country, GeoPoint coordinates, int distance, PredictionSources source, LocationTypes type,
                 List <Suppliers> suppliers)
 {
     Name        = name;
     Locality    = locality;
     Country     = country;
     Coordinates = coordinates;
     Distance    = distance;
     Source      = source;
     Type        = type;
     Suppliers   = suppliers ?? new List <Suppliers>();
 }
Example #10
0
 void ResetLevel()
 {
     Rubies          = 0;
     Life            = 1.0f;
     MagicPower      = 0.25f;
     CurrentLocation = LocationTypes.Overworld;
     CurrentState    = PlayerState.OnLevel;
     UnderworldObjectFader.SetActive(false, false);
     OverworldObjectFader.SetActive(true, true);
     OverworldObjectFader.SetOpacity(1);
     OverworldTileFader.SetOpacity(1);
     Crossfade(1);
 }
 public InventorySlot SetFirstEmptySlot(Item _item, int _amount, LocationTypes _location, float _currentRotTime, float _currentRotRate)
 {
     for (int i = 0; i < GetSlots.Length; i++)
     {
         if (GetSlots[i].item.Id <= -1)
         {
             GetSlots[i].UpdateSlot(_item, _amount, _location, _currentRotTime, _currentRotRate);
             return(GetSlots[i]);
         }
     }
     // Setup function for full inventory
     return(null);
 }
        private void PopulateLists()
        {
            ItemTypes.Clear();
            foreach (string iType in Enum.GetNames(typeof(ItemType)))
            {
                ItemTypes.Add(iType);
            }

            LocationTypes.Clear();
            foreach (string lType in Enum.GetNames(typeof(LocationType)))
            {
                LocationTypes.Add(lType);
            }

            Mediums = new ObservableCollection <string>();
        }
        public LocationTypes CreateLocationType(string locationTypeName, string locationDescription, int tenantId,
                                                int userId)
        {
            var locationType = new LocationTypes
            {
                LocTypeName        = locationTypeName,
                LocTypeDescription = locationDescription,
                CreatedBy          = userId,
                TenentId           = tenantId,
                DateCreated        = DateTime.UtcNow
            };

            _currentDbContext.LocationTypes.Add(locationType);
            _currentDbContext.SaveChanges();
            return(locationType);
        }
Example #14
0
        public ActionResult _LocationTypeSubmit(LocationTypes model)
        {
            if (model.LocationTypeId == 0)
            {
                var item = LookupServices.GetLocationTypeByName(model.LocTypeName, CurrentTenantId);
                if (item != null)
                {
                    return(Json(new { error = true, msg = "Location already exists" }));
                }

                var locationType = LookupServices.CreateLocationType(model.LocTypeName, model.LocTypeDescription, CurrentTenantId, CurrentUserId);
                if (locationType != null)
                {
                    model.LocationTypeId = locationType.LocationTypeId;
                }
            }
            return(Json(new { error = false, id = model.LocationTypeId, type = model.LocTypeName }));
        }
Example #15
0
    private void ReceiveData(InventorySlot _slotsOnInterface)
    {
        item     = _slotsOnInterface.item;
        amount   = _slotsOnInterface.amount;
        location = _slotsOnInterface.location;

        if (MouseData.interfaceMouseIsOver.name == "Top Rack Panel")
        {
            ovenRackTopHeartPanel.SetActive(false);
            var ovenRack = ovenRackTopCookiePanel.GetComponent <OvenRack>();
            ovenRack.SetCookiesOnRack(item, amount, location, currentRotTime, currentRotRate);
        }
        if (MouseData.interfaceMouseIsOver.name == "Bottom Rack Panel")
        {
            ovenRackBottomHeartPanel.SetActive(false);
            var ovenRack = ovenRackBottomCookiePanel.GetComponent <OvenRack>();
            ovenRack.SetCookiesOnRack(item, amount, location, currentRotTime, currentRotRate);
        }
    }
Example #16
0
 /// <summary>
 /// Given a type, return a list of the location type
 /// </summary>
 /// <param name="type">the type of location to return</param>
 /// <returns>a list of tag-locations</returns>
 public List <GameObject> GetLocations(LocationTypes type)
 {
     if (type == LocationTypes.ENTRANCE)
     {
         return(new List <GameObject>(entrances));
     }
     else if (type == LocationTypes.GOAL)
     {
         return(new List <GameObject>(goals));
     }
     else if (type == LocationTypes.EXIT)
     {
         return(new List <GameObject>(exits));
     }
     else
     {
         Debug.Log("Error choosing a location list to return.");
         return(null);
     }
 }
    public bool AddItem(Item _item, int _amount, LocationTypes _location, float _currentRotTime, float _currentRotRate)
    {
        if (EmptySlotCount <= 0 && !database.ItemObjects[_item.Id].stackable)
        {
            return(false);
        }
        InventorySlot slot = FindItemOnInventory(_item);

        if (EmptySlotCount <= 0 && slot == null && database.ItemObjects[_item.Id].stackable)
        {
            return(false);
        }
        if (!database.ItemObjects[_item.Id].stackable || slot == null)
        {
            SetFirstEmptySlot(_item, _amount, _location, _currentRotTime, _currentRotRate);
            return(true);
        }
        //slot.AddAmount(_amount);
        return(true);
    }
    public void UpdateSlot(Item _item, int _amount, LocationTypes _location, float _currentRotTime, float _currentRotRate)
    {
        if (OnBeforeUpdate != null)
        {
            OnBeforeUpdate.Invoke(this);
            Debug.Log(item.Name);
        }

        item           = _item;
        amount         = _amount;
        location       = _location;
        currentRotTime = _currentRotTime;
        currentRotRate = _currentRotRate;


        if (OnAfterUpdate != null)
        {
            OnAfterUpdate.Invoke(this);
            Debug.Log(item.Name);
        }
    }
Example #19
0
    public void OnTriggerEnter2D(Collider2D other)
    {
        HeartItem thisItem = other.GetComponent <HeartItem>();

        if (thisItem)
        {
            LocationTypes location       = thisItem.Location;
            float         currentRotTime = thisItem.currentRotTime;
            float         currentRotRate = thisItem.currentRotRate;

            Item _item = new Item(thisItem.item);

            if (inventory.AddItem(_item, 1, location, currentRotTime, currentRotRate))
            {
                OnAdded?.Invoke(_item, currentRotTime, currentRotRate);
                //RotTimer rotTime = GetComponentInChildren<RotTimer>();
                //rotTime.StartRot(_item, currentRotTime, currentRotRate);
                Destroy(other.gameObject);
            }
        }
    }
Example #20
0
    public bool FindPath(ResourceTypes resource_type, LocationTypes location_type, bool include_off_paths)
    {
        ResourceNode[] resources_to_check = new ResourceNode[m_AllResources.Length];
        int            num_resources      = 0;

        for (int i = 0; i < m_AllResources.Length; i++)
        {
            if (m_AllResources[i].ResourceType == resource_type)
            {
                resources_to_check[num_resources] = m_AllResources[i];
                num_resources++;
            }
        }

        LocationNode[] locations_to_check = new LocationNode[m_AllLocations.Length];
        int            num_locations      = 0;

        for (int i = 0; i < m_AllLocations.Length; i++)
        {
            if (m_AllLocations[i].LocationType == location_type)
            {
                locations_to_check[num_locations] = m_AllLocations[i];
                num_locations++;
            }
        }

        for (int resource_index = 0; resource_index < num_resources; resource_index++)
        {
            for (int location_index = 0; location_index < num_locations; location_index++)
            {
                if (FindPath(resources_to_check[resource_index], locations_to_check[location_index], include_off_paths))
                {
                    return(true);
                }
            }
        }

        return(false);
    }
Example #21
0
    public void SetCookiesOnRack(Item _item, int _amount, LocationTypes _location, float _currentRotTime, float _currentRotRate)
    {
        CookieItem cookieItem = GetComponentInChildren <CookieItem>();

        cookieItem.CovertToCookieType(_item);

        if (cookieItem)
        {
            LocationTypes location       = _location;
            float         currentRotTime = _currentRotTime;
            float         currentRotRate = _currentRotRate;

            Item item = new Item(cookieItem.product);

            for (int i = 0; i < cookieInventory.GetSlots.Length; i++)
            {
                if (cookieInventory.AddItem(item, 1, location, currentRotTime, currentRotRate))
                {
                    CookProduct cook = GetComponentInChildren <CookProduct>();
                    cook.StartTimer(item);
                }
            }
        }
    }
Example #22
0
 public void deleteLocationType(LocationType locationType)
 {
     LocationTypes.Remove(locationType);
 }
Example #23
0
 public void addLocationType(LocationType locationType)
 {
     LocationTypes.Add(locationType);
 }
Example #24
0
 /// <summary>
 /// Creates a new <see cref="Location"/>.
 /// </summary>
 /// <param name="type">A location type of the new <see cref="Location"/>.</param>
 /// <param name="context">A context of the new <see cref="Location"/>.</param>
 public Location(LocationTypes type, object context)
 {
     this.Type    = type;
     this.Context = context;
 }
Example #25
0
			/// <summary>
			/// Creates a new <see cref="Location"/>.
			/// </summary>
			/// <param name="type">A location type of the new <see cref="Location"/>.</param>
			/// <param name="context">A context of the new <see cref="Location"/>.</param>
			public Location(LocationTypes type, object context)
			{
				this.Type = type;
				this.Context = context;
			}
Example #26
0
		/// <summary>
		/// Tries to find an instance of <see cref="DProperty"/> that corresponds to an instance property given by
		/// <paramref name="varObject"/> and <paramref name="fieldName"/>. Currently it is possible only if
		/// <paramref name="varObject"/> represents <B>$this</B> and <paramref name="fieldName"/> is a compile time
		/// known instance property, which is surely accessible from current location.
		/// </summary>
		/// <param name="varObject">Represents the left side of <B>-&gt;</B>.</param>
		/// <param name="fieldName">Represents the right side of <B>-&gt;</B>.</param>
		/// <param name="location">Current location, valid only if the return value is <B>null</B>. Used by the caller to
		/// decide what kind of run time access should be emitted.</param>
		/// <returns>A valid non-<B>null</B> <see cref="PhpField"/> if the field was found, <B>null</B> otherwise.</returns>
		internal DProperty ResolveProperty(VarLikeConstructUse varObject, SimpleVarUse fieldName, out LocationTypes location)
		{
			DirectVarUse direct_var = varObject as DirectVarUse;
			DirectVarUse direct_field_name;

			if (direct_var != null && (direct_field_name = fieldName as DirectVarUse) != null &&
				direct_var.IsMemberOf == null && direct_var.VarName.IsThisVariableName)
			{
				ILEmitter il = codeGenerator.IL;
				location = codeGenerator.LocationStack.LocationType;
				switch (location)
				{
					case LocationTypes.GlobalCode:
						{
							// load $this from one of Main's arguments and check for null
							Label this_non_null = il.DefineLabel();

							codeGenerator.EmitLoadSelf();
							il.Emit(OpCodes.Brtrue_S, this_non_null);
							codeGenerator.EmitPhpException(Methods.PhpException.ThisUsedOutOfObjectContext);
							il.Emit(OpCodes.Br, TopChain.ErrorLabel);
							il.MarkLabel(this_non_null, true);

							return null;
						}

					case LocationTypes.FunctionDecl:
						{
							// always throws error
							codeGenerator.EmitPhpException(Methods.PhpException.ThisUsedOutOfObjectContext);
							il.Emit(OpCodes.Br, TopChain.ErrorLabel);

							return null;
						}

					case LocationTypes.MethodDecl:
						{
							CompilerLocationStack.MethodDeclContext context = codeGenerator.LocationStack.PeekMethodDecl();
							if (context.Method.IsStatic)
							{
								// always throws error
								codeGenerator.EmitPhpException(Methods.PhpException.ThisUsedOutOfObjectContext);
								il.Emit(OpCodes.Br, TopChain.ErrorLabel);

								location = LocationTypes.FunctionDecl;
								return null;
							}
							else
							{
								DProperty property;
								if (context.Type.GetProperty(direct_field_name.VarName, context.Type, out property)
									== GetMemberResult.OK && !property.IsStatic)
								{
									return property;
								}
							}
							break;
						}
				}
			}

			location = LocationTypes.MethodDecl;
			return null;
		}
Example #27
0
 public Location(GeoPoint coordinates, int distance, LocationTypes type = LocationTypes.Unknown)
     : this(string.Empty, string.Empty, string.Empty, coordinates, distance, PredictionSources.NotSpecified, type, null)
 {
 }
Example #28
0
 public void deleteLocationType(int locationTypeId)
 {
     LocationTypes.Remove((from l in LocationTypes where l.ID == locationTypeId select l).FirstOrDefault());
 }
Example #29
0
 //Finds all locations with the passed in tag, then converts the returned array to a list
 private List <GameObject> FindLocations(LocationTypes type)
 {
     return(new List <GameObject>(GameObject.FindGameObjectsWithTag(type.ToString())));
 }
Example #30
0
		/// <summary>
		/// Pushes a new <see cref="Location"/> to the stack.
		/// </summary>
		/// <param name="type">A location type of the new <see cref="Location"/>.</param>
		/// <param name="context">A context of the new <see cref="Location"/>.</param>
		public void Push(LocationTypes type, object context)
		{
			stack.Push(new Location(type, context));
		}
Example #31
0
 public Location(LocationTypes type, string value)
 {
     this.mLocationType = type;
     this.mValue = value;
 }
Example #32
0
 /// <summary>
 /// Pushes a new <see cref="Location"/> to the stack.
 /// </summary>
 /// <param name="type">A location type of the new <see cref="Location"/>.</param>
 /// <param name="context">A context of the new <see cref="Location"/>.</param>
 public void Push(LocationTypes type, object context)
 {
     stack.Push(new Location(type, context));
 }
Example #33
0
        /* This code takes a set of Cartesian coordinates in a fixed frame and converts them into Keplerian orbital elements in an inertial frame
         * without using a satellite object (using conversion utility within STK Engine). The Keplerian elements you would like to return can be specified
         * by changing the enum values near the top of the Main function.
         */
        static void Main(string[] args)
        {
            AgSTKXApplication app = new AgSTKXApplication();

            app.NoGraphics = true;
            AgStkObjectRoot root = new AgStkObjectRoot();

            // Here are some preliminary variables for the classical coordinate elements you would like to obtain
            SizeShapeTypes SizeShapeType = SizeShapeTypes.Altitude;
            AscNodeTypes   AscNodeType   = AscNodeTypes.RAAN;
            LocationTypes  LocationType  = LocationTypes.ArgumentOfLatitude;

            // Here we create a new AgOrbitState object
            IAgConversionUtility ConversionUtility = root.ConversionUtility;
            IAgOrbitState        cartesianOrbit    = ConversionUtility.NewOrbitStateOnEarth();

            // Here is how you display and change the epoch
            Console.WriteLine("Epoch:");
            cartesianOrbit.Epoch = "1 Jun 2003 17:00:00.000";
            Console.WriteLine(cartesianOrbit.Epoch);

            // Here we assign whatever Cartesian coordinates we would like to in a fixed frame
            cartesianOrbit.AssignCartesian(AgECoordinateSystem.eCoordinateSystemFixed, 5598.42, -14988.6, 4.80738, 3.408, 1.27376, 2.60903);

            // Now we convert the orbit to a classical orbit state
            IAgOrbitStateClassical classicalOrbit = cartesianOrbit.ConvertTo(AgEOrbitStateType.eOrbitStateClassical) as IAgOrbitStateClassical;

            Console.WriteLine(classicalOrbit.CoordinateSystemType);

            // Prints out the first two classical orbit elements
            switch (SizeShapeType)
            {
            case SizeShapeTypes.Altitude:
                classicalOrbit.SizeShapeType = AgEClassicalSizeShape.eSizeShapeAltitude;
                IAgClassicalSizeShapeAltitude sizeShapeAltitude = classicalOrbit.SizeShape as IAgClassicalSizeShapeAltitude;
                Console.WriteLine("Apogee Altitude:");
                Console.WriteLine(sizeShapeAltitude.ApogeeAltitude);
                Console.WriteLine("Perigee Altitude:");
                Console.WriteLine(sizeShapeAltitude.PerigeeAltitude);
                break;

            case SizeShapeTypes.MeanMotion:
                classicalOrbit.SizeShapeType = AgEClassicalSizeShape.eSizeShapeMeanMotion;
                IAgClassicalSizeShapeMeanMotion sizeShapeMeanMotion = classicalOrbit.SizeShape as IAgClassicalSizeShapeMeanMotion;
                Console.WriteLine("Mean Motion:");
                Console.WriteLine(sizeShapeMeanMotion.MeanMotion);
                Console.WriteLine("Eccentricity:");
                Console.WriteLine(sizeShapeMeanMotion.Eccentricity);
                break;

            case SizeShapeTypes.Period:
                classicalOrbit.SizeShapeType = AgEClassicalSizeShape.eSizeShapePeriod;
                IAgClassicalSizeShapePeriod sizeShapePeriod = classicalOrbit.SizeShape as IAgClassicalSizeShapePeriod;
                Console.WriteLine("Period:");
                Console.WriteLine(sizeShapePeriod.Period);
                Console.WriteLine("Eccentricity:");
                Console.WriteLine(sizeShapePeriod.Eccentricity);
                break;

            case SizeShapeTypes.Radius:
                classicalOrbit.SizeShapeType = AgEClassicalSizeShape.eSizeShapeRadius;
                IAgClassicalSizeShapeRadius sizeShapeRadius = classicalOrbit.SizeShape as IAgClassicalSizeShapeRadius;
                Console.WriteLine("Apogee Radius:");
                Console.WriteLine(sizeShapeRadius.ApogeeRadius);
                Console.WriteLine("Perigee Radius:");
                Console.WriteLine(sizeShapeRadius.PerigeeRadius);
                break;

            case SizeShapeTypes.SemimajorAxis:
                classicalOrbit.SizeShapeType = AgEClassicalSizeShape.eSizeShapeSemimajorAxis;
                IAgClassicalSizeShapeSemimajorAxis sizeShapeSemimajorAxis = classicalOrbit.SizeShape as IAgClassicalSizeShapeSemimajorAxis;
                Console.WriteLine("Semimajor Axis:");
                Console.WriteLine(sizeShapeSemimajorAxis.SemiMajorAxis);
                Console.WriteLine("Eccentricity:");
                Console.WriteLine(sizeShapeSemimajorAxis.Eccentricity);
                break;
            }

            // Prints the inclination and argument of perigee
            IAgClassicalOrientation orientation = classicalOrbit.Orientation;

            Console.WriteLine("Inclination:");
            Console.WriteLine(orientation.Inclination);
            Console.WriteLine("Argument of Perigee:");
            Console.WriteLine(orientation.ArgOfPerigee);

            // This section prints the ascending node value
            Console.WriteLine("Ascending Node:");
            switch (AscNodeType)
            {
            case AscNodeTypes.RAAN:
                orientation.AscNodeType = AgEOrientationAscNode.eAscNodeRAAN;
                IAgOrientationAscNodeRAAN ascNodeRAAN = orientation.AscNode as IAgOrientationAscNodeRAAN;
                Console.WriteLine(ascNodeRAAN.Value);
                break;

            case AscNodeTypes.LAN:
                orientation.AscNodeType = AgEOrientationAscNode.eAscNodeLAN;
                IAgOrientationAscNodeLAN ascNodeLAN = orientation.AscNode as IAgOrientationAscNodeLAN;
                Console.WriteLine(ascNodeLAN.Value);
                break;
            }

            // This section prints the location of the satellite along the orbit in terms of whatever you would like
            Console.WriteLine("Location:");
            switch (LocationType)
            {
            case LocationTypes.ArgumentOfLatitude:
                classicalOrbit.LocationType = AgEClassicalLocation.eLocationArgumentOfLatitude;
                IAgClassicalLocationArgumentOfLatitude locationArgumentOfLatitude = classicalOrbit.Location as IAgClassicalLocationArgumentOfLatitude;
                Console.WriteLine(locationArgumentOfLatitude.Value);
                break;

            case LocationTypes.EccentricAnomaly:
                classicalOrbit.LocationType = AgEClassicalLocation.eLocationEccentricAnomaly;
                IAgClassicalLocationEccentricAnomaly locationSpecificEccentricAnomaly = classicalOrbit.Location as IAgClassicalLocationEccentricAnomaly;
                Console.WriteLine(locationSpecificEccentricAnomaly.Value);
                break;

            case LocationTypes.MeanAnomaly:
                classicalOrbit.LocationType = AgEClassicalLocation.eLocationMeanAnomaly;
                IAgClassicalLocationMeanAnomaly locationSpecificMeanAnomaly = classicalOrbit.Location as IAgClassicalLocationMeanAnomaly;
                Console.WriteLine(locationSpecificMeanAnomaly.Value);
                break;

            case LocationTypes.TimePastAN:
                classicalOrbit.LocationType = AgEClassicalLocation.eLocationTimePastAN;
                IAgClassicalLocationTimePastAN locationSpecificTimePastAN = classicalOrbit.Location as IAgClassicalLocationTimePastAN;
                Console.WriteLine(locationSpecificTimePastAN.Value);
                break;

            case LocationTypes.TimePastPerigee:
                classicalOrbit.LocationType = AgEClassicalLocation.eLocationTimePastPerigee;
                IAgClassicalLocationTimePastPerigee locationSpecificTimePastPerigee = classicalOrbit.Location as IAgClassicalLocationTimePastPerigee;
                Console.WriteLine(locationSpecificTimePastPerigee.Value);
                break;

            case LocationTypes.TrueAnomaly:
                classicalOrbit.LocationType = AgEClassicalLocation.eLocationTrueAnomaly;
                IAgClassicalLocationTrueAnomaly locationTrueAnomaly = classicalOrbit.Location as IAgClassicalLocationTrueAnomaly;
                Console.WriteLine(locationTrueAnomaly.Value);
                break;
            }

            Console.ReadLine();
        }
 public InventorySlot(Item _item, int _amount, LocationTypes _location, float _currentRotTime, float _currentRotRate)
 {
     UpdateSlot(_item, _amount, _location, _currentRotTime, _currentRotRate);
 }