Skip to content

Commit 3884652

Browse files
committed
fixed incomplete merge conflicts
1 parent 46bc2d9 commit 3884652

File tree

4 files changed

+27
-9
lines changed

4 files changed

+27
-9
lines changed

common/src/main/kotlin/com/lambda/event/events/RenderEvent.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import com.lambda.event.Event
2222
import com.lambda.event.callback.Cancellable
2323
import com.lambda.event.callback.ICancellable
2424
import com.lambda.graphics.RenderPipeline
25-
import com.lambda.graphics.renderer.esp.global.StaticESP
2625
import com.lambda.util.math.Vec2d
2726

2827
sealed class RenderEvent {

common/src/main/kotlin/com/lambda/graphics/RenderPipeline.kt

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,39 @@
1515
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

18-
package com.lambda.graphics.renderer.esp.global
18+
package com.lambda.graphics
1919

20+
import com.lambda.core.Loadable
2021
import com.lambda.event.EventFlow.post
2122
import com.lambda.event.events.RenderEvent
2223
import com.lambda.event.events.TickEvent
2324
import com.lambda.event.listener.SafeListener.Companion.listen
2425
import com.lambda.graphics.renderer.esp.impl.DynamicESPRenderer
26+
import com.lambda.graphics.renderer.esp.impl.StaticESPRenderer
27+
28+
object RenderPipeline : Loadable {
29+
// Updates once a tick, stays fixed, uses less memory
30+
val STATIC_ESP = StaticESPRenderer()
31+
32+
// Updates once a tick, interpolates within frames
33+
val DYNAMIC_ESP = DynamicESPRenderer()
2534

26-
object DynamicESP : DynamicESPRenderer() {
2735
init {
36+
// Ticked 3d renderers update
2837
listen<TickEvent.Post> {
29-
clear()
38+
STATIC_ESP.clear()
39+
RenderEvent.StaticESP().post()
40+
STATIC_ESP.upload()
41+
42+
DYNAMIC_ESP.clear()
3043
RenderEvent.DynamicESP().post()
31-
upload()
44+
DYNAMIC_ESP.upload()
45+
}
46+
47+
// 3d renderers drawcall
48+
listen<RenderEvent.World> {
49+
STATIC_ESP.render()
50+
DYNAMIC_ESP.render()
3251
}
3352
}
3453
}

common/src/main/kotlin/com/lambda/module/modules/player/FastBreak.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ package com.lambda.module.modules.player
2020
import com.lambda.context.SafeContext
2121
import com.lambda.event.events.*
2222
import com.lambda.event.listener.SafeListener.Companion.listen
23+
import com.lambda.graphics.RenderPipeline
2324
import com.lambda.graphics.renderer.esp.DynamicAABB
2425
import com.lambda.graphics.renderer.esp.builders.buildFilled
2526
import com.lambda.graphics.renderer.esp.builders.buildOutline
26-
import com.lambda.graphics.renderer.esp.global.DynamicESP
2727
import com.lambda.module.Module
2828
import com.lambda.module.tag.ModuleTag
2929
import com.lambda.util.math.lerp
@@ -60,7 +60,7 @@ object FastBreak : Module(
6060
private val outlineWidth by setting("Outline Width", 1f, 0f..3f, 0.1f, "the thickness of the outline", visibility = { page == Page.Render && renderMode.isEnabled() && renderSetting != RenderSetting.Fill })
6161

6262

63-
private val renderer = DynamicESP
63+
private val renderer = RenderPipeline.DYNAMIC_ESP
6464
private var boxSet = emptySet<Box>()
6565

6666
private enum class Page {

common/src/main/kotlin/com/lambda/module/modules/player/PacketMine.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ import com.lambda.Lambda.mc
2121
import com.lambda.context.SafeContext
2222
import com.lambda.event.events.*
2323
import com.lambda.event.listener.SafeListener.Companion.listen
24+
import com.lambda.graphics.RenderPipeline
2425
import com.lambda.graphics.renderer.esp.DynamicAABB
2526
import com.lambda.graphics.renderer.esp.builders.buildFilled
2627
import com.lambda.graphics.renderer.esp.builders.buildOutline
27-
import com.lambda.graphics.renderer.esp.global.DynamicESP
2828
import com.lambda.interaction.RotationManager
2929
import com.lambda.interaction.rotation.RotationContext
3030
import com.lambda.interaction.visibilty.VisibilityChecker.findRotation
@@ -246,7 +246,7 @@ object PacketMine : Module(
246246
this == Primary
247247
}
248248

249-
val renderer = DynamicESP
249+
val renderer = RenderPipeline.DYNAMIC_ESP
250250
private var currentMiningBlock = Array<BreakingContext?>(2) { null }
251251
private var lastNonEmptyState: BlockState? = null
252252
private val blockQueue = ArrayDeque<BlockPos>()

0 commit comments

Comments
 (0)