Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get block contruction/damage level #7

Open
mccorkle opened this issue Aug 12, 2016 · 0 comments
Open

get block contruction/damage level #7

mccorkle opened this issue Aug 12, 2016 · 0 comments
Assignees
Labels

Comments

@mccorkle
Copy link
Collaborator

mccorkle commented Aug 12, 2016

Allow the get for a block to include its build status (component count needed) and by extension, the "damage" level of a block (and perhaps a status for "is Disabled" when it is damaged past the blue/red bar).

This will be used for Notifications in the MVP.

It would be handy, in the case of having BuildPercent < 100% to have another list of "componentsOfBlock" and their current / required count (e.g. if something is 20% damaged, it likely has lost all of its top level components and doesn't just need welding, it needs me to come out with 10 steel plates). Note the obtuse name "componentsOfBlock" to avoid confusion of something thinking this is components stored inside of a container type block.

GET http://sewa.mine.nu/4Cl0xlirgcOOJ7SU/blocks

[
 {
    "name": "Small Cargo Container 12",
    "type": "MyCargoContainer",
    "id": 114136464328695936,
    "properties": {
      "ShowInTerminal": "True",
      "ShowInToolbarConfig": "True",
      "ShowOnHUD": "False",
      "BuildPercent": "94",
      "DamagePercent": "0"
    }
  },
  {
    "name": "Connector 3",
    "type": "MyShipConnector",
    "id": 74273192742834355,
    "properties": {
      "OnOff": "True",
      "ShowInTerminal": "True",
      "ShowInToolbarConfig": "True",
      "ShowOnHUD": "False",
      "ThrowOut": "False",
      "CollectAll": "False",
      "Strength": "0.00015",
      "TotalVolume": "4000",
      "CurrentVolume": "312.21"
      "BuildPercent": "100",
      "DamagePercent": "3"
    },
    "componentsOfBlock": {
      "Steel Plates": {
        "current": "0",
        "required": "10"
      }
    }
  }, ........
@mccorkle mccorkle added this to the Feature Complete milestone Aug 12, 2016
@Jimmacle Jimmacle self-assigned this Oct 6, 2016
@mccorkle mccorkle added the MVP label Jan 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants