Difference between revisions of "GetCurrentGameTime - Utility"

Jump to navigation Jump to search
Tag: Reverted
Tag: Reverted
Line 23: Line 23:
You must use a rounding function to cast the returned value to an exact integer i.e.
You must use a rounding function to cast the returned value to an exact integer i.e.


         ( (an integer) day == Math.Floor(Utility.GetCurrentGameTime())  )
         ( (an integer value ) day == Math.Floor(Utility.GetCurrentGameTime())  )
or maybe
or maybe
         ( (an integer) day == Math.Ceil(Utility.GetCurrentGameTime())  )
         ( (an integer value ) day == Math.Ceil(Utility.GetCurrentGameTime())  )


== Examples ==
== Examples ==
Anonymous user

Navigation menu