root
JVM
root
/
org.magiclib.util
/
MagicMisc
Magic
Misc
open
class
MagicMisc
Miscellaneous utility methods.
Members
Constructors
Magic
Misc
Link copied to clipboard
constructor
(
)
Functions
get
Elapsed
Days
Since
Game
Start
Link copied to clipboard
open
fun
getElapsedDaysSinceGameStart
(
)
:
Float
take
First
Link copied to clipboard
open
fun
takeFirst
(
str
:
String
,
count
:
Int
)
:
String
Returns the first
count
characters of the given string.
to
List
Link copied to clipboard
open
fun
toList
(
array
:
JSONArray
)
:
List
<
Any
>
Converts a JSONArray to a
List
.
to
Map
Link copied to clipboard
open
fun
toMap
(
jsonObj
:
JSONObject
)
:
Map
<
String
,
Any
>
Converts a JSONObject to a
Map
.