Esempio n. 1
0
        public override virtualNodeBase createNode(int newId, string newName)
        {
            CSharpNode newNode = new CSharpNode(newId, newName);
            addEventsToNode(newNode);

            return newNode;
        }
Esempio n. 2
0
        public override virtualNodeBase createNode(int newId, string newName, IEnumerable<virtualNodeSensor> newSensors)
        {
            CSharpNode newNode = new CSharpNode(newId, newName, newSensors);
            addEventsToNode(newNode);

            return newNode;
        }
Esempio n. 3
0
 private void addEventsToNode(CSharpNode newNode)
 {
     newNode.onLog += log;
     newNode.onSendPacket += sendPacket;
     newNode.onStateChange += nodeStateChange;
     newNode.onCryptoError += cryptoError;
     nodes.Add(newNode.id, newNode);
 }