C# games framework utils