public NumberDisplayNode(int id, Graph parent) : base(id, parent) { _textFieldArea = new Rect(10, 0, 80, Config.SocketSize); _inSocket = new InputSocket(this, typeof(INumberConnection)); Sockets.Add(_inSocket); Height = 20 + Config.SocketOffsetTop; }
public StringNode(int id, Assets.GDI.Code.Graph.Graph parent) : base(id, parent) { _textFieldRect = new Rect(3, 0, 100, 20); Sockets.Add(new OutputSocket(this, typeof(IStringConnection))); Height = 45; Width = 50; }
public SaveTextureNode(int id, Graph parent) : base(id, parent) { _inputSocketColorMap = new InputSocket(this, typeof(IColorMapConnection)); Sockets.Add(_inputSocketColorMap); Height = 70; Width = 80; }
public EntitiesNode(int id, Graph parent) : base(id, parent) { _inputSocketGameObject = new InputSocket(this, typeof(IGameObjectsConnection)); _inputSocketPositions = new InputSocket(this, typeof(IVectorConnection)); _inputSocketRotationZ = new InputSocket(this, typeof(INumberConnection)); _inputSocketRotationX = new InputSocket(this, typeof(INumberConnection)); _inputSocketRotationY = new InputSocket(this, typeof(INumberConnection)); _inputSocketScaleZ = new InputSocket(this, typeof(INumberConnection)); _inputSocketScaleZ.SetDirectInputNumber(1, false); _inputSocketScaleX = new InputSocket(this, typeof(INumberConnection)); _inputSocketScaleX.SetDirectInputNumber(1, false); _inputSocketScaleY = new InputSocket(this, typeof(INumberConnection)); _inputSocketScaleY.SetDirectInputNumber(1, false); Sockets.Add(_inputSocketGameObject); Sockets.Add(_inputSocketPositions); Sockets.Add(_inputSocketRotationX); Sockets.Add(_inputSocketRotationY); Sockets.Add(_inputSocketRotationZ); Sockets.Add(_inputSocketScaleX); Sockets.Add(_inputSocketScaleY); Sockets.Add(_inputSocketScaleZ); Sockets.Add(new OutputSocket(this, typeof(IEntitiesConnection))); Height = 180; }
public AbsNode(int id, Graph parent) : base(id, parent) { _inputSocket = new InputSocket(this, typeof(AbstractNumberNode)); Sockets.Add(_inputSocket); Width = 40; Height = 40; }
private async Task InitConnectionAsync(WebSocketConnection ws) { Sockets.Add(ws); initMessageHandler(ws); initErrorHandler(ws); await WriteAsync(ws, "Connected"); }
public TextureFileNode(int id, Graph parent) : base(id, parent) { Sockets.Add(new OutputSocket(this, typeof(ITextureConnection))); Sockets.Add(new OutputSocket(this, typeof(IColorMapConnection))); Width = 200; Height = 221; }
public Multiplexer(int id) : base(id) { Sockets.Add(new Socket(this, Color.red, true)); Sockets.Add(new Socket(this, Color.red, false)); Sockets.Add(new Socket(this, Color.red, false)); Height = 65; }
public void Add(WvsGameClient c) { var character = c.Character; if (c.SentCharData) { c.SendPacket(CPacket.SetField(character, false, c.ChannelId)); } else { c.SentCharData = true; #if DEBUG //So me myself and i all spawn close to eachother <3 character.Stats.nPortal = 0; #else character.Stats.nPortal = Portals.GetRandomSpawn(); #endif c.SendPacket(CPacket.SetField(character, true, c.ChannelId)); } //Send client being added all the existing characters in the map Characters.ForEach(x => c.SendPacket(CPacket.UserEnterField(x))); SendSpawnMobs(c); SendSpawnNpcs(c); Characters.Add(c.Character); Sockets.Add(c.Character, c); //Broadcast everyone already in the map that you have arrived Broadcast(CPacket.UserEnterField(character), c); }
public RangeNode(int id, Graph parent) : base(id, parent) { _inputSocket01 = new InputSocket(this, typeof(AbstractNumberNode)); Sockets.Add(_inputSocket01); Height = 60; Width = 100; }
public StringNode(int id, Graph parent) : base(id, parent) { _textFieldRect = new Rect(3, 0, 100, 20); Sockets.Add(new OutputSocket(this, typeof(AbstractStringNode))); Height = 45; Width = 108; }
public SamplerNode(int id) : base(id) { Sockets.Add(new Socket(this, Color.white, true)); Sockets.Add(new Socket(this, Color.red, true)); Sockets.Add(new Socket(this, Color.cyan, false)); Sockets.Add(new Socket(this, Color.red, false)); }
public AbsNode(int id, Graph parent) : base(id, parent) { _inputSocket = new InputSocket(this, typeof(INumberConnection)); Sockets.Add(_inputSocket); Sockets.Add(new OutputSocket(this, typeof(INumberConnection))); Width = 40; Height = 40; }
public DisplayColorMapNode(int id, Graph parent) : base(id, parent) { _texture = new GUIThreadedTexture(); _inputSocket = new InputSocket(this, typeof(IColorMapConnection)); Sockets.Add(_inputSocket); Width = MinWidth; Height = MinHeight; }
public RepeatColorNode(int id, Graph parent) : base(id, parent) { _inputSocket = new InputSocket(this, typeof(IColorConnection)); Sockets.Add(_inputSocket); Sockets.Add(new OutputSocket(this, typeof(IColorConnection))); Name = ""; Height = 40; }
public MathDisplay(int id) : base(id) { inSocket = new Socket(this, NumberNode.FloatType, SocketDirection.Input); Sockets.Add(inSocket); Sockets.Add(new Socket(this, NumberNode.FloatType, SocketDirection.Output)); Height = 20 + BonConfig.SocketOffsetTop; //errorMessage = NotConnectedMessage; }
public AbstracStateConditionNode(int id, Graph parent) : base(id, parent) { inputSocket01 = new InputSocket(this, typeof(AbstracMonsterAINode)); outSocket = new OutputSocket(this, typeof(AbstracStateConditionNode)); Sockets.Add(outSocket); Sockets.Add(inputSocket01); }
public RangeNode(int id, Graph parent) : base(id, parent) { _inputSocket01 = new InputSocket(this, typeof(INumberConnection)); Sockets.Add(_inputSocket01); Sockets.Add(new OutputSocket(this, typeof(INumberConnection))); Height = 80; Width = 100; }
public InvertColorNode(int id, Graph parent) : base(id, parent) { _inputSocketColor = new InputSocket(this, typeof(IColorConnection)); Sockets.Add(_inputSocketColor); Sockets.Add(new OutputSocket(this, typeof(IColorConnection))); Width = 70; Height = 40; }
public GradientNode(int id, Graph parent) : base(id, parent) { _inputSockets = new List <InputSocket>(); _tmpRect = new Rect(); _addColorButton = new Rect(); _gradient = new Gradient(); Sockets.Add(new OutputSocket(this, typeof(AbstractColorNode))); Width = 156; }
public PowNode(int id, Graph parent) : base(id, parent) { _valueSocket01 = new InputSocket(this, typeof(AbstractNumberNode)); _valueSocket02 = new InputSocket(this, typeof(AbstractNumberNode)); Sockets.Add(_valueSocket01); Sockets.Add(_valueSocket02); Width = 50; Height = 60; }
public NumberMultiNode(int id, Graph parent) : base(id, parent) { _inputSocket = new InputSocket(this, typeof(AbstractNumberNode)); Sockets.Add(_inputSocket); Sockets.Add(new OutputSocket(this, typeof(AbstractNumberNode))); // second output SocketTopOffsetInput = 15; Width = 50; Height = 60; }
public void AddSocket() { if (IsMaximumSocketCount) { throw new MaxSocketCountException(); } Sockets.Add(CreateEmpty()); }
public NumberOperatorNode(int id, Graph parent) : base(id, parent) { _inputSocket01 = new InputSocket(this, typeof(AbstractNumberNode)); Sockets.Add(_inputSocket01); _inputSocket02 = new InputSocket(this, typeof(AbstractNumberNode)); Sockets.Add(_inputSocket02); Height = 95; Width = 65; }
public void StartDecrypting() { IsRunning = true; var interfaces = GetNetworkInterfaces(); foreach (var item in interfaces.Where(x => !String.IsNullOrWhiteSpace(x))) { Sockets.Add(new SocketObject { IPAddress = item }); } UpdateConnectionList(); ValidateNetworkAccess(); if (Config.UseWinPCap) { // ISSUE: method pointer WinPcapWrapper.DataReceived += WinPCapWrapper_DataReceived; } foreach (var stateObject in Sockets) { try { if (Config.UseWinPCap) { var devices = WinPcapWrapper.GetAllDevices(); stateObject.Device = devices.FirstOrDefault(device => device.Addresses.Contains(stateObject.IPAddress)); if (!string.IsNullOrWhiteSpace(stateObject.Device.Name)) { WinPcapWrapper.StartCapture(stateObject); } } else { stateObject.Socket = new Socket(AddressFamily.InterNetwork, SocketType.Raw, ProtocolType.IP); stateObject.Socket.Bind(new IPEndPoint(IPAddress.Parse(stateObject.IPAddress), 0)); stateObject.Socket.SetSocketOption(SocketOptionLevel.IP, SocketOptionName.AcceptConnection, true); var inFlags = new byte[] { 1, 0, 0, 0 }; var outFlags = new byte[4]; stateObject.Socket.IOControl(IOControlCode.ReceiveAll, inFlags, outFlags); stateObject.Socket.ReceiveBufferSize = 0x7D000; stateObject.Socket.BeginReceive(stateObject.Buffer, 0, stateObject.Buffer.Length, SocketFlags.None, Network_DataReceived, stateObject); } } catch (Exception ex) { RaiseException(Logger, ex); } } }
public DisplayProfileNode(int id, Graph parent) : base(id, parent) { _inputSocketValue = new InputSocket(this, typeof(INumberConnection)); Sockets.Add(_inputSocketValue); _inputSocketColor = new InputSocket(this, typeof(IColorConnection)); Sockets.Add(_inputSocketColor); _textures.Add(new GUIThreadedTexture(new ProfileTextureUpdateJob())); Width = 440; Height = 150; }
public MaterialNode(int id, Graph parent) : base(id, parent) { Width = 160; Height = 80; Sockets.Add(new OutputSocket(this, typeof(IMaterialConnection))); _inputSocketColor = new InputSocket(this, typeof(IColorConnection)); Sockets.Add(_inputSocketColor); SocketTopOffsetInput = 28; }
public NumberOperatorNode(int id, Graph parent) : base(id, parent) { _inputSocket01 = new InputSocket(this, typeof(INumberConnection)); Sockets.Add(_inputSocket01); _inputSocket02 = new InputSocket(this, typeof(INumberConnection)); Sockets.Add(_inputSocket02); Sockets.Add(new OutputSocket(this, typeof(INumberConnection))); Height = 95; Width = 65; }
public ReplaceNanNode(int id, Graph parent) : base(id, parent) { _inputSocketNumber = new InputSocket(this, typeof(INumberConnection)); _inputSocketReplacement = new InputSocket(this, typeof(INumberConnection)); Sockets.Add(_inputSocketNumber); Sockets.Add(_inputSocketReplacement); Sockets.Add(new OutputSocket(this, typeof(INumberConnection))); Width = 80; Height = 60; }
public HighestNumberNode(int id, Graph parent) : base(id, parent) { _inputSocketValue01 = new InputSocket(this, typeof(INumberConnection)); _inputSocketValue02 = new InputSocket(this, typeof(INumberConnection)); Sockets.Add(_inputSocketValue01); Sockets.Add(_inputSocketValue02); Sockets.Add(new OutputSocket(this, typeof(INumberConnection))); Height = 60; Width = 60; }