This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//The network package | |
[NetworkPackage("Chat")] | |
public class Package | |
{ | |
public string Name { get; set; } | |
public string Message { get; set; } | |
} | |
//The chat client |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private GemGui gui; | |
protected override void LoadContent() | |
{ | |
//initialize a new gui | |
gui = new GemGui(this,800,480); | |
//don't scale | |
gui.Settings.ScaleCalculator = resolution => Vector2.One; | |