//constructor public GameLoop(EventManagerWin eventManager, ObjectManager mObjMgr) { this.ReceivedKeys = new List <ushort>(); this.SentKeys = new List <ushort>(); this.eventMgr = eventManager; this.gameLoop = new Timer(); this.objMgr = mObjMgr; StartGameLoopTimer(); }
public Form1() { objMgr = new ObjectManager(portNum, false); proccInput = new ProccessInput(); peerDiscovery = new PeerDiscovery(objMgr); KnownPeers = new List <string>(); eventManager = new EventManagerWin(); gameLoop = new GameLoop(eventManager, objMgr); InitializeComponent(); }