Project Red Bundled Cable Support.
#1
Posted 14 November 2013 - 05:18 PM
https://github.com/M...omment-28524270
#2
Posted 14 November 2013 - 05:31 PM
#3
Posted 15 November 2013 - 12:39 AM
Lyqyd, on 14 November 2013 - 05:31 PM, said:
Is there a difference in APIs or something between the two? I have MFR installed, so I use that, but It'd be good for both, in case someone doesn't have MFR.
#6
#7
Posted 15 November 2013 - 10:21 AM
#8
Posted 15 November 2013 - 12:45 PM
#9
#10
Posted 15 November 2013 - 04:01 PM
#11
Posted 15 November 2013 - 07:27 PM
CCJJSax, on 15 November 2013 - 03:58 PM, said:
#12
Posted 15 November 2013 - 11:05 PM
#13
Posted 15 November 2013 - 11:14 PM
ElvishJerricco, on 15 November 2013 - 11:05 PM, said:
#14
Posted 16 November 2013 - 12:53 AM
#16
Posted 17 November 2013 - 02:31 AM
theoriginalbit, on 15 November 2013 - 11:14 PM, said:
Not sure why you said this. You know very well that CC isn't open source. My point was that the issue isn't one of difficulty. It's a simple API, so the devs could adopt it easily if they actually chose to do so (which is the actual issue).
#17
Posted 17 November 2013 - 02:55 PM
/**
* Register with ComputerCraftAPI.registerBundledSignalHandler(Class<T> clazz, IBundledSignalHandler<T> handler);
*
* @param <T>
* Generics for fun and less casting
*/
public interface IBundledSignalHandler<T extends TileEntity> {
/**
*
* @param tile
* @return
* Does the given tile contain a signal to be read or set?
*/
public boolean tileHasSignal(T tile);
/**
*
* @param tile
* @return
* Signal in tile
*/
public int getSignal(T tile);
/**
* Set the signal in tile
* @param tile
*/
public void setSignal(T tile);
}
Obviously this is fairly incomplete but it gets the idea across.
Edited by ElvishJerricco, 17 November 2013 - 03:15 PM.
#18
Posted 17 November 2013 - 07:09 PM
#19
Posted 17 November 2013 - 09:07 PM
#20
Posted 17 November 2013 - 09:44 PM
Lyqyd, on 17 November 2013 - 09:07 PM, said:
How does it make no sense? CC adds API for any mod to hook in bundled cables, so any mod that so desires can add theirs. PR keeps its API for interfacing with bundled cable, but chooses to also add in CC support because they wanted to. It makes sense. It works. It's probably not ideal, so I'm on the fence about whether it's actually worth implementing, but it makes sense.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











