In the live game, every API call that affected the player’s inventory triggered a write to the corresponding record in our Azure Cosmos database. From a player’s perspective, the game is constantly saving their progress. To achieve parity in the offline game, we exposed two functions in the AOT DLL for getting and setting a player’s inventory (equivalent to the Cosmos DB inventory document). When the game first starts up, the local save file on disk is read and the inventory is loaded into the DLL’s memory. As the various serverless HTTP operations occur throughout gameplay the DLL’s in-memory inventory state gets updated. After these operations, if the inventory was changed, the client fetches the new full inventory state from the DLL and saves it back to disk.
Discussing the project with just a few of the developers, it’s immediately clear how current work will inform future efforts.
Latest in Venture,详情可参考谷歌浏览器【最新下载地址】
#欢迎关注爱范儿官方微信公众号:爱范儿(微信号:ifanr),更多精彩内容第一时间为您奉上。。关于这个话题,快连下载-Letsvpn下载提供了深入分析
Related internet linksMind
Дания захотела отказать в убежище украинцам призывного возраста09:44。下载安装 谷歌浏览器 开启极速安全的 上网之旅。对此有专业解读