Stargate Rewritten

Stargate Rewritten

241 Downloads

API: Interact With `.gate` files.

Pheotis opened this issue ยท 3 comments

commented

Ability to get, add, alter, etc gate designs.

Might be worth delaying until 1.0.2.0 and lumping the features required for this in with the gate format rework / gatepack implementation.

commented

I have some questions regarding this

  • altering or deliting a gateformat might mess up already existing portals with said format. Should we really support that?
  • What does getting formats mean? Getting them from a portal or getting it by name?
    I can see the add gateFormat being used though. I think this part of the api needs some more thought
commented

Getting gates can be for the purpose of checking if a given design exists. It can also be used for some kind of visualizer which displays gate designs in the chat.

If we delete a gate format using the API, we should require that no portals are using the gate format, and throw an error, or something, if it's in use. Altering the open and closed materials shouldn't be as much of a problem, but altering the frame shouldn't be allowed if the gate format is in use and gate verification is enabled.

Being able to add gate formats through the API makes it possible to simply build a Stargate, and make it into a .gate file through commands. I'm pretty sure I saw some code in the legacy SG-Command which did exactly this.

commented

What has been implemented so far:

  • Add gate formats
  • Remove gate formats with check