Hnxml Standard
    Preparing search index...

    Interface HXComputer

    interface HXComputer {
        allowsDefaultBootModule?: boolean;
        children: " " | ComputerChildren | ComputerChildren[];
        icon?: ComputerIcon;
        id: string;
        ip?: string;
        name: string;
        security?: string;
        type?: number | "empty";
    }
    Index

    Properties

    allowsDefaultBootModule?: boolean

    AllowsDefaultBootModule is default to true and means that when you connect to a node it will automatically launch it's program (the last daemon defined in this file) and put it up on the display module.

    AllowsDefaultBootModule 默认为 true,意味着当你连接到一个节点时,它会自动打开节点中定义的最后一个守护进程页面,并将其显示在 display 上。

    icon: not including this uses the default set by security level: laptop, chip, kellis, tablet, ePhone, ePhone2

    LABYRINTHS ONLY: Psylance, PacificAir, Alchemist, DLCLaptop, DLCPC1, DLCPC2, DLCServer

    没主动声明的话会根据安全等级设置图标。

    id: string
    ip?: string
    name: string
    security?: string

    Security is a number from 0 to 5 that represents how hard it is to hack From 1-4 it will need that many ports to open, 4 and above will automatically add other security to scale it up easily, you can overwrite specifics below (recommended)

    安全性是一个从0到5的数字,代表被入侵的难度。

    默认情况下:

    安全等级 需要破解端口数 代理 防火墙 追踪
    1-3 总端口数 - 1 不启用 不启用 不启用
    4 总端口数 - 1 不启用 不启用 启用
    ≥5 总端口数 - 2 启用 启用 启用

    参考:https://github.com/Modern-School/OpenHacknet/blob/main/Computer.cs#L109-L140

    type?: number | "empty"

    for the type flag: 1= corporate, 2 = Home, 3 = server 4 = empty

    you can also use the word "empty" to make sure it launches without generating junk files and IRC.

    上述内容有误,实际情况是只有 3 种处理方式:

    type 处理方式
    4, 特例 "empty" 不生成垃圾文件
    5 生成 eos 设备的文件
    其他 number 随机生成垃圾文件,且逻辑一致

    参考:https://github.com/Modern-School/OpenHacknet/blob/main/ComputerLoader.cs#L73-L81 https://github.com/Modern-School/OpenHacknet/blob/main/Computer.cs#L51-L106