Implemented cgame playerstate code in C#.
Implemented cgame events code in C#.