Guest User

Untitled

a guest
Jan 21st, 2018
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. interface packethandler {
  2.  
  3. int[] handledids();
  4.  
  5. void handle();
  6.  
  7. }
  8.  
  9. packethandler[] handlers = new packethandler[255];
  10.  
  11. loadpackets() {
  12. for(packethandler p : howeverthefuckyouaregettingpacketsuatomatically) {
  13. for(int i : p.handledids()) {
  14. handlers[i] = p;
  15. }
  16. }
  17. }
Add Comment
Please, Sign In to add comment