Loads and loads of small improvements I added while developing on my game
This commit is contained in:
parent
41421b1df9
commit
a7c71e7ea1
107 changed files with 2278 additions and 1023 deletions
15
SMCode/SM.Base/Utility/Util.cs
Normal file
15
SMCode/SM.Base/Utility/Util.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
namespace SM.Utility
|
||||
{
|
||||
public class Util
|
||||
{
|
||||
public static void Activate(IInitializable obj)
|
||||
{
|
||||
if (!obj.IsInitialized)
|
||||
{
|
||||
obj.Initialization();
|
||||
obj.IsInitialized = true;
|
||||
}
|
||||
obj.Activate();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue