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

[PLUGIN] Basic plugin setup #9

Open
Skyslycer opened this issue Dec 22, 2021 · 0 comments
Open

[PLUGIN] Basic plugin setup #9

Skyslycer opened this issue Dec 22, 2021 · 0 comments
Labels
description This issue describes a feature size: small An issue that will take almost no time to solve

Comments

@Skyslycer
Copy link
Owner

Skyslycer commented Dec 22, 2021

Needs component structure and config/message structure.

On load it does this:

Load

  1. Load configuration & messages
    • Check if the file exists, if it doesn't, copy it out of the jar
    • Load into a variable via ktx.ser
  2. Load database
    • If the database doesn't exist, copy it out of the jar
    • Load everything into memory to process it later
  3. Send load successful message

Startup Only if the load process didn't fail.

  1. Load conveyor belts
    • Load all conveyor belts from the cache
    • Check if producing component is stopped or doesn't have fuel
    • If it does have fuel and isn't stopped, the plugin starts the moving process (Packets)
  2. Start tick process
    • Start the scheduler and tick every component that needs to be ticked at that tick count
@Skyslycer Skyslycer added the description This issue describes a feature label Dec 22, 2021
@Skyslycer Skyslycer added the size: small An issue that will take almost no time to solve label Dec 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
description This issue describes a feature size: small An issue that will take almost no time to solve
Projects
None yet
Development

No branches or pull requests

1 participant