public ModuleManager()
        {
            this.BDD = new DBManager();
            this.Rooms = new RoomManager(this.BDD);
            this.auth = new Authentication(ref this.BDD);
            this.profile = new Profile(ref this.BDD);
            handles = new Dictionary<string, Handle>()
            {
                {"MSGP", new Handle(sendPMessage)},
                {"REGU", new Handle(createAccount)},
                {"SGNI", new Handle(signIn)},
                {"SGNO", new Handle(signOut)},
                {"GETU", new Handle(getUser)},
                {"SETU", new Handle(setUser)}

            };
        }
 public Authentication(ref DBManager db)
 {
     Console.WriteLine(db);
     _db = db;
 }
 public RoomManager(DBManager db)
 {
     _db = db;
     _rooms = new Dictionary<int, Room>() { {0, new Room(_db)} };
 }
示例#4
0
 public Profile( ref DBManager db)
 {
     _db = db;
 }
示例#5
0
 public Room(DBManager db)
 {
     _db = db;
     _clients = new Dictionary<int, TcpClient>();
 }