public BoxCraftClient(string host, string username, BoxCraftScene scene) { session = new Session(this); user = UserFactyory.CreateUser(username, new Vector3(), new Vector3()); this.scene = scene; scene.dlgt = this; Authenticate(new SocketConnection(host, 11020)); Send(new Join(user).ToString()); }
public BoxCraftServer() { session = new Session(this); var form = new Form1(); // To primary device initializtion scene = form.scene; new SkinLoader().Load(); if (savingService.HasSave()) { world = savingService.Load(); } else { world = new WorldGenarator().Generate(); } }