Skip to content
This repository has been archived by the owner on Aug 16, 2021. It is now read-only.

Commit

Permalink
you got java, you got classes, and the first thing you do is to have …
Browse files Browse the repository at this point in the history
…*everything* put into the same class. do you have any idea how bad this is, do you have any idea that you are literally not using the main part of java?

(c) FarmerThanos
  • Loading branch information
nekonya3031 committed Jul 8, 2021
1 parent 267962a commit c215165
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 23 deletions.
19 changes: 19 additions & 0 deletions src/main/code/chaos/horny/HentaiEvents.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package chaos.horny;

import arc.Events;
import mindustry.game.EventType;

public class HentaiEvents {
public HentaiEvents(){
Events.on(EventType.WorldLoadEvent.class,r->{
//hornySoundsMap.get("worldLoadEvent").play(1f, 1f, 0f);
});
Events.on(EventType.UnitDestroyEvent.class,e->{
if(e.unit.isPlayer()){
//hornySoundsMap.get("yamete_kudosai").play(1f, 1f, 0f);
}else{
//hornySoundsMap.get("hornyOhNo1").play(1f, 1f, 0f);
}
});
}
}
29 changes: 6 additions & 23 deletions src/main/code/chaos/horny/HentaiMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@

//owned by horny part of cumunity

import arc.Events;
import arc.audio.Sound;
import mindustry.game.EventType;
import chaos.horny.interfaces.HentaiInterfaces;
import mindustry.game.Schematic;

import java.util.HashMap;
import java.util.Map;
import java.util.*;

import static mindustry.Vars.ui;

Expand All @@ -19,34 +17,19 @@ public class HentaiMain{

public HentaiMain(){
if(showHornyConfirm()){
eventsLoader();
interfaceOverride();
loadAssets();
new HentaiEvents();
new HentaiInterfaces();
}
}
//you got java, you got classes, and the first thing you do is to have *everything* put into the same class. do you have any idea how bad this is, do you have any idea that you are literally not using the main part of java?
public void eventsLoader(){
Events.on(EventType.WorldLoadEvent.class,r->{
//hornySoundsMap.get("worldLoadEvent").play(1f, 1f, 0f);
});
Events.on(EventType.UnitDestroyEvent.class,e->{
if(e.unit.isPlayer()){
//hornySoundsMap.get("yamete_kudosai").play(1f, 1f, 0f);
}else{
//hornySoundsMap.get("hornyOhNo1").play(1f, 1f, 0f);
}
});
}
public void interfaceOverride(){
//some custom interfaces and menus should be there
}

public void loadAssets(){
//coming soon, assets in active search. If you can help with search send any content to [email protected] or сестрёнка#8227
}

private boolean showHornyConfirm(){
try{
ui.showConfirm("@confirm", "Is you 18+ older?", () -> {
ui.showConfirm("@confirm", "Are you 18+ older?", () -> {
throw new RuntimeException("Hentai is confirmed");
});
}catch (Exception confirmed){
Expand Down
5 changes: 5 additions & 0 deletions src/main/code/chaos/horny/interfaces/HentaiInterfaces.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package chaos.horny.interfaces;

public class HentaiInterfaces {
//some custom interfaces and menus should be there
}

0 comments on commit c215165

Please sign in to comment.