Added admin commands for everything but abandon and close. Changed selection time weighted payout to a property instead of having different types

This commit is contained in:
barelyprofessional
2025-11-25 00:54:11 -06:00
parent 24db30b789
commit 3c70fea2ba
4 changed files with 392 additions and 4 deletions

View File

@@ -497,4 +497,12 @@ public static class Money
return payout;
}
/// <summary>
/// Generate a short random string based on the first 4 bytes of a GUID for event IDs
/// </summary>
/// <returns>Returns a lowercase hex representation of the 4 bytes. e.g. 7ec79eb2</returns>
public static string GenerateEventId()
{
return Convert.ToHexString(Guid.NewGuid().ToByteArray()[..4]).ToLower();
}
}