Giter Site home page Giter Site logo

cottonenergy's People

Contributors

alexiil avatar ansraer avatar falkreon avatar falseresync avatar juuxel avatar lemmaeof avatar pannoniae avatar strikerrocker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cottonenergy's Issues

Let's Talk: EMP

The EMP system is something we haven't discussed much yet. It's an IC2-style voltage shutdown, but we don't have much of a standard for what it should do, and a few folks think we shouldn't have it. Our options:

  • Keep it as-is. There's no requirement for it to do anything currently, so mods can just ignore it or have config disable it. It's a void, so it can just be empty.
  • Establish a standard for what an EMP should do. This could be divisive, as enforcing a code of conduct on a power API would make people less likely/willing to use it.
  • Remove it entirely. I'm personally against this option, since it would limit a few creative uses for it. EMPs could be used for a lot of different systems, both in magic and tech, so I think it's better to keep around then remove.

Let's Talk: Flavors!?

We've been talking on the discord for a little while and we've decided that we want to try experimenting with flavored packets. I wanna make this for organizing logistics.

  • Do we/how should we register flavors? Should they have namespaced Identifiers?
  • Should WU-capables provide a list of acceptable flavors? What part of the structure should that list go on?
  • What other properties should flavors have built-in? Should they get their own abstract/interface?

Review: Cotton Energy First Draft

I just pushed the first draft of the energy API. It still needs a proper name, but I wanna get people's thoughts:

  • Is the API missing anything major? Is it clear enough what it does?
  • Do any methods need to be renamed? Is anything confusing?
  • Are the packet sizes good? Do they need to be re-adjusted?
  • Do the javadocs make sense? Is there anything missing from them?

List of things I noticed

  • Packet accepts any value, even if it's larger or smaller than the types min/max values. IMO it should be capped to the max value and be set to 0 if the value is smaller than the min value. All unused energy should be returned to whoever tried to set it.

  • Energystorage has a int getCurrentEnergy() method that returns the amount of the blocks primary energy type and a EnergyType getPrimaryEnergyType method. I would suggest that we replace them with a Map<EnergyType, Integer>. This would allow one block to store multiple kinds of energy. (e.g. A battery that can store different Voltages)

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.