OfflineServer.Persona.getCompleteGarage C# (CSharp) Метод

getCompleteGarage() публичный Метод

Reads the complete garage of the current active persona.
public getCompleteGarage ( ) : String
Результат String
        public String getCompleteGarage()
        {
            XElement carEntries = new XElement("CarsOwnedByPersona");
            foreach (Car carEntry in cars)
            {
                carEntries.Add(carEntry.getCarEntry());
            }

            XDocument docAllCars = new XDocument(
                new XDeclaration("1.0", Encoding.UTF8.HeaderName, String.Empty),
                new XElement("CarSlotInfoTrans",
                    new XAttribute(XNamespace.Xmlns + "i", ServerAttributes.nilNS),
                    carEntries,
                    new XElement("DefaultOwnedCarIndex", currentCarIndex),
                    new XElement("ObtainableSlots",
                        Economy.Basket.getProductTransactionEntry
                        (
                            Economy.Currency.Boost,
                            "Grants you 1 extra car slot.",
                            0,
                            -1143680669,
                            "128_cash",
                            0,
                            "Only for 100 boost you will get new a car slot instantly!",
                            100,
                            0,
                            "CARSLOT",
                            "Car Slot",
                            Economy.GameItemType.CarSlot,
                            Economy.Special.None
                        )
                    ),
                    new XElement("OwnedCarSlotsCount", "100")
                )
            );
            docAllCars.Root.SetDefaultXmlNamespace(ServerAttributes.srlNS);
            return docAllCars.ToString();
        }
    }