Sign In Register

How can we help you today?

Start a new topic
Answered

GetInt nullable and GetIntList not?

At least in the Unity SDK, GSData.GetIntList returns a list of non-nullable ints, unlike GetInt which is a nullable int.  I would prefer to have a list of nullable ints.  I can see why changing that would mess up existing Unity implementations, but, are there any plans of changing that in the future?


Best Answer

Hi Rich,


Apologies for the late response, at present their are no plans to implement a GetIntList() Method that can return non-nullable ints, this may change in later releases in the Unity SDK.

Can I ask what you are trying to do?


Thanks,

- Tony.


I have a grid with 9 slots, like a card hand in a card game.  The cards in this case are numbers, and any number is usable (to an extent).  Some card slots need to be empty, but the length of the card hand needs to stay the same, thus where I would use a null in place of a number.  In my case, there is a limit on how big a number can be, so I am fudging by just treating 999 as if it were null.  It's icky but it works. ;-)

Answer

Hi Rich,


Apologies for the late response, at present their are no plans to implement a GetIntList() Method that can return non-nullable ints, this may change in later releases in the Unity SDK.

Can I ask what you are trying to do?


Thanks,

- Tony.

Login to post a comment