HOCO Unity SDK 0.0.15-Alpha
A Web3 SDK provided by HoneyComb
|
/** * \brief Create new <see cref="PlayerData"/> which will wrap the <see cref="PlayerData"/> into a <see cref="LivePlayerData"/> and store it in the Cloud Database. * \details This is how you would <see cref="Create(PlayerData)"/> new <see cref="PlayerData"/> in your Mongo Database. * \code{.cs} * var success = await Cloud.CloudBase<bool>.Create<PlayerData>(newPlayerData, k_storageKey); * if(success) //Data was created and stored in Database, you can now invoke <see cref="GetFromPlayerAddress(string)"/> * Debug.Log("PlayerData Created!"); //using the same <see cref="PlayerData.PlayerAddress"/> you just pushed to the Database * else //Creating Failed, No WAN, or bad config * Debug.Log("PlayerData Failed to Create :("); * YourClass.YourMethod(); * \endcode */