public override void _Ready() { SessionData.Initialize("165.22.21.208", 25565); MatchReadinessHandler.Initialize(); ReceiveAgent receiveAgent = new ReceiveAgent(); GetTree().ChangeScene("Scenes/LoginScene.tscn"); }
public ReceiveAgent GetReceiver(Session session) { ReceiveAgent result = null; SenderReceiverPair relation; if (_Clients.TryGetValue(session, out relation)) { result = relation.Receiver; } return(result); }
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; }
public void Add(Session session, ReceiveAgent receiver, Client sender) { _ClientsProcessor.Add(session, receiver, sender); }