Example #1
0
    public void encodeAll () {
        var result = new Dictionary<string, object>();
		foreach (PurchasableItem item in remapper.db.AllPurchasableItems) {
            result[remapper.mapItemIdToPlatformSpecificId (item)] = purchasableDetailsToHashtable (item);
        }

        var json = result.nJson();
		using (StreamWriter o = new StreamWriter("Assets/Plugins/unibill/resources/amazon.sdktester.json.txt")) {
			o.Write(json);
		}
    }
    public void encodeAll()
    {
        var result = new Dictionary<string, object>();
        foreach (PurchasableItem item in config.AllPurchasableItems) {
            var localId = item.LocalIds [BillingPlatform.AmazonAppstore];
            result[localId] = purchasableDetailsToHashtable (item);
        }

        var json = result.nJson();
        using (StreamWriter o = new StreamWriter("Assets/Plugins/unibill/resources/amazon.sdktester.json.txt")) {
            o.Write(json);
        }
    }