예제 #1
0
    public override void _Ready()
    {
        SessionData.Initialize("165.22.21.208", 25565);
        MatchReadinessHandler.Initialize();
        ReceiveAgent receiveAgent = new ReceiveAgent();

        GetTree().ChangeScene("Scenes/LoginScene.tscn");
    }
예제 #2
0
        public ReceiveAgent GetReceiver(Session session)
        {
            ReceiveAgent       result = null;
            SenderReceiverPair relation;

            if (_Clients.TryGetValue(session, out relation))
            {
                result = relation.Receiver;
            }
            return(result);
        }
예제 #3
0
 public bool Add(Session session, ReceiveAgent receiver, Client sender)
 {
     return(_Clients.TryAdd(session, new SenderReceiverPair(sender, receiver)));
 }
 public SenderReceiverPair(Client sender, ReceiveAgent receiver)
 {
     this._Receiver = receiver;
     this._Sender   = sender;
 }
예제 #5
0
 public void Add(Session session, ReceiveAgent receiver, Client sender)
 {
     _ClientsProcessor.Add(session, receiver, sender);
 }