public PropertyBag(MineWorldClient gamein,GameStateManager gameManagerin) { Game = gamein; GameManager = gameManagerin; NetPeerConfiguration netconfig = new NetPeerConfiguration("MineWorld"); netconfig.EnableMessageType(NetIncomingMessageType.DiscoveryResponse); Client = new NetClient(netconfig); Client.Start(); Player = new Player(this); WorldManager = new WorldManager(GameManager, Player); ClientListener = new ClientListener(Client, this); ClientSender = new ClientSender(Client, this); Debugger = new Debug(this); }
public WorldManager(GameStateManager manager,Player player) { _gamemanager = manager; Player = player; }