lib/hackers.rb
def cmdCreateNodeUpdateNet(type, net)
        params = {
          "create_node_and_update_net"  => 1,
          "id_player"                   => @config["id"],
          "id_node"                     => type,
          "net"                         => Serializer.generateNetwork(net),
          "app_version"                 => @config["version"],
        }
        response = @client.request(params, @sid)
        return response.to_i
      end
##
# Creates a node and updates the network structure:
#   type  = Node type
#   net   = Serialize#parseNetwork
#
# Returns the ID of the created node
Creates a node and updates the network structure:
type  = Node type
net   = Serialize#parseNetwork

Returns the ID of the created node
Creates a node and updates the network structure : type = Node type net = Serialize#parseNetwork Returns the ID of the created node
def cmdCreateNodeUpdateNet(type, net)
        params = {
          "create_node_and_update_net"  => 1,
          "id_player"                   => @config["id"],
          "id_node"                     => type,
          "net"                         => Serializer.generateNetwork(net),
          "app_version"                 => @config["version"],
        }
        response = @client.request(params, @sid)
        return response.to_i
      end
def cmdCreateNodeUpdateNet ( type , net ) params = { "create_node_and_update_net" => 1 , "id_player" => @config [ "id" ] , "id_node" => type , "net" => Serializer . generateNetwork ( net ) , "app_version" => @config [ "version" ] , } response = @client . request ( params , @sid ) return response . to_i end
Creates a node and updates the network structure:
type  = Node type
net   = Serialize#parseNetwork
Creates a node and updates the network structure : type = Node type net = Serialize#parseNetwork
type
net