Skip to content

Files

Latest commit

f7b6999 · Jul 1, 2017

History

History
33 lines (25 loc) · 665 Bytes

roomneeds.md

File metadata and controls

33 lines (25 loc) · 665 Bytes

roomneeds protocol

This protocol lets AIs advertise their individual room needs.

Serialization Method

This protocol uses json for serialization.

Format

The protocol message is an object with room names as the keys that point to another object which contains resources as a key with the amount needed as a value. The value may be replaced with a simple true boolean to show that the reseource is needed.

Example

{
  "E23N43": {
    "power": 10000,
    "H": 10000,
    "K": 10000,
    "XGHO2": true,
    "XKH2O": true,
  },
  "E37N36": {
    "power": 10000,
    "L": 10000,
    "U": 10000,
    "XGHO2": true,
    "XKH2O": true,
  }
}