Skip to content

Instantly share code, notes, and snippets.

@Nub
Created October 1, 2011 06:20
Show Gist options
  • Select an option

  • Save Nub/1255679 to your computer and use it in GitHub Desktop.

Select an option

Save Nub/1255679 to your computer and use it in GitHub Desktop.
ContentManager
* Player Object
* Game Center Hook
* ContentProvider (keyPathCoding or acessors/methods)
* Player.Name
* Player.NetWorth
* Player.StockList
* Player.NetWorthOfStocks
* Player.NetWorthOfStock(stock)
* Player.NetPurchasPriceOfStock(stock)
* Player.NumberOfShareInStock(stock)
* Stocks.GetStock(stock) = returns StockObject
* Stocks.NASDAQ() = list of NASDAQ StockObjects
* Stocks.StockDidSplitSinceDate(stock, date)
* Stocks.SearchStocks(searchTerm) = list of matchingStockNames
* ContentPublisher (Updates GC and Pushes data to server)
* Player.PurchaseStocks(stock, count)
* Player.SellStocks(stock, count)
* Player.PurchaseMoney(amount) = called from ContentPurchaser
* Player.Sync() = Merges Pending data to server and GC
*
* ContentPurchaser
* RequestIAPList
* PriceForIAP(IAPIdentifier)
* PurchaseIAP(IAPIdentifier)
* CancelPurchase() //cancel any pending transactions
* RestoreTransactions() //restore any non-consumables
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment