Giter Site home page Giter Site logo

Comments (5)

Vexatos avatar Vexatos commented on July 17, 2024

So I just make worksWith return false on anything but the battery buffer, and inside the default driver, I make it return true for anything but the battery buffer, right?

from computronics.

fnuecke avatar fnuecke commented on July 17, 2024

Yes. Unless you want the default driver to also work for battery buffer, then you can always return true there; if multiple drivers work they are merged, after all.

from computronics.

Vexatos avatar Vexatos commented on July 17, 2024

I still don't know: If multiple drivers with differently named environments are wrapped, which name will be chosen for the merge? They seem to merge, in my opinion they should be seperate if they differ in name.

from computronics.

fnuecke avatar fnuecke commented on July 17, 2024

If multiple environments implement NamedBlock, the first of those will get chosen. Order depends on the order they are registered in, IIRC. Since that means the order may depend on the order mods are loaded in (if multiple blocks register drivers with named envs for the same block) I'll probably add some priority system there in the next API update, as you suggested.

As for why they are merged: aside from it being, IMHO, more logical to have the drivers merged into what appears to be one single component, because they apply to the same thing, after all, this is pretty much necessary to avoid the component count exploding (which, as you know, is limited based on the CPU tier) due to interface based drivers (IInventory, fluid stuff, energy stuff, all of which may be present in a single block).

from computronics.

Vexatos avatar Vexatos commented on July 17, 2024

Fair enough. I think I can implement things properly now. Currently testing the changes.

from computronics.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.