Forum BigDB RefreshPlayerObject

Discussion and help relating to the PlayerIO database solution, BigDB.

RefreshPlayerObject

Postby aseemgarg321 » August 11th, 2016, 4:21 pm

Hi,

In Server Side code in BasePlayer class we have following function

public void RefreshPlayerObject (Callback callback)

Just Curious - Why this function doesn't has Error callback?

Thanks,
Aseem
aseemgarg321
 
Posts: 104
Joined: March 28th, 2015, 9:54 am

Re: RefreshPlayerObject

Postby ChristianD » August 12th, 2016, 5:05 am

Hi Aseem,

That's a very good question! It looks like an oversight in the API that we should probably fix.

It is a convenience function though, to make usage of the PlayerObjects table as simple as possible. You can always call LoadObject yourself and handle any errors.
Christian
ChristianD
.IO
 
Posts: 63
Joined: May 13th, 2016, 4:44 am

Re: RefreshPlayerObject

Postby aseemgarg321 » August 12th, 2016, 4:15 pm

Hey Chris,

Did think of that, But only issues here is that PlayerObject is read-only variable in BasePlayer class. So Even if we load ir externally, We cant assign new object to it..

Thanks,
Aseem
aseemgarg321
 
Posts: 104
Joined: March 28th, 2015, 9:54 am


Return to BigDB