Utility

Namespace: uMod

Assembly: uMod.Core.dll

Inheritance Object Utility

Constructors

Name

Summary

Utility ()

Static Fields

Name

Summary

Formatter

Interpolator

Plugins

Random

Time

Static Methods

Name

Summary

AssertSerializable<T> (Type)

CleanPath (String)

Converts all path directory separaters to evironment-specific directory seperators

ConvertFromJson<T> (String)

Converts a string of JSON to a JSON object

ConvertToJson (Object, Boolean)

Converts a JSON object to a string of JSON

FormatBytes (Double)

Returns the formatted bytes from a double

GetDirectoryName (String)

Gets the path only for a directory

GetFileNameWithoutExtension (String)

Gets the filename of a file without the extension

GetLocalIP ()

Gets the local network IP of the machine

GetNumbers (String)

Gets only the numbers from a string

IsLocalIP (String)

Returns if the provided IP address is a local network IP

PrintCallStack ()

Print the call stack to the log file

ReflectedName (String)

Ensures a type or field name does not contain "special" characters

ValidateIPv4 (String)

Returns if the provided IP address is a valid IPv4 address