-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from PhantazmNetwork/timer
added zombies timer mod + phantazm integration
- Loading branch information
Showing
40 changed files
with
1,126 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="Run Velocity" type="JarApplication"> | ||
<option name="JAR_PATH" value="$PROJECT_DIR$/run/velocity/velocity.jar"/> | ||
<option name="VM_PARAMETERS" | ||
value="-Xms512M -Xmx512M -XX:+UseG1GC -XX:G1HeapRegionSize=4M -XX:+UnlockExperimentalVMOptions -XX:+ParallelRefProcEnabled -XX:+AlwaysPreTouch -Dfile.encoding=UTF-8"/> | ||
<option name="WORKING_DIRECTORY" value="$ProjectFileDir$\run\velocity"/> | ||
<option name="ALTERNATIVE_JRE_PATH"/> | ||
<method v="2"> | ||
<option name="Gradle.BeforeRunTask" enabled="false" tasks="setupServer" | ||
externalProjectPath="$PROJECT_DIR$/server" vmOptions="" scriptParameters=""/> | ||
<option name="Gradle.BeforeRunTask" enabled="true" tasks="copyJar" | ||
externalProjectPath="$PROJECT_DIR$/velocity" vmOptions="" scriptParameters=""/> | ||
</method> | ||
</configuration> | ||
</component> | ||
<configuration default="false" name="Run Velocity" type="JarApplication"> | ||
<option name="JAR_PATH" value="$PROJECT_DIR$/run/velocity/velocity.jar" /> | ||
<option name="VM_PARAMETERS" value="-Xms512M -Xmx512M -XX:+UseG1GC -XX:G1HeapRegionSize=4M -XX:+UnlockExperimentalVMOptions -XX:+ParallelRefProcEnabled -XX:+AlwaysPreTouch -Dfile.encoding=UTF-8" /> | ||
<option name="WORKING_DIRECTORY" value="$ProjectFileDir$/run/velocity" /> | ||
<option name="ALTERNATIVE_JRE_PATH" /> | ||
<method v="2"> | ||
<option name="Gradle.BeforeRunTask" enabled="false" tasks="setupServer" externalProjectPath="$PROJECT_DIR$/server" vmOptions="" scriptParameters="" /> | ||
<option name="Gradle.BeforeRunTask" enabled="true" tasks="copyJar" externalProjectPath="$PROJECT_DIR$/velocity" vmOptions="" scriptParameters="" /> | ||
</method> | ||
</configuration> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
messaging/src/main/java/org/phantazm/messaging/packet/c2s/RoundStartPacket.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package org.phantazm.messaging.packet.c2s; | ||
|
||
import org.jetbrains.annotations.NotNull; | ||
import org.phantazm.messaging.packet.Packet; | ||
import org.phantazm.messaging.serialization.DataReader; | ||
import org.phantazm.messaging.serialization.DataWriter; | ||
|
||
import java.util.Objects; | ||
|
||
public record RoundStartPacket() implements Packet { | ||
|
||
public static final byte ID = 0; | ||
|
||
public static @NotNull RoundStartPacket read(@NotNull DataReader reader) { | ||
Objects.requireNonNull(reader, "reader"); | ||
return new RoundStartPacket(); | ||
} | ||
|
||
@Override | ||
public byte getId() { | ||
return ID; | ||
} | ||
|
||
@Override | ||
public void write(@NotNull DataWriter dataWriter) { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...-mapeditor/src/main/java/org/phantazm/zombies/mapeditor/client/packet/PhantazmPacket.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package org.phantazm.zombies.mapeditor.client.packet; | ||
|
||
import net.fabricmc.fabric.api.networking.v1.FabricPacket; | ||
import net.fabricmc.fabric.api.networking.v1.PacketType; | ||
import net.minecraft.network.PacketByteBuf; | ||
import net.minecraft.util.Identifier; | ||
import org.jetbrains.annotations.NotNull; | ||
import org.phantazm.commons.Namespaces; | ||
import org.phantazm.messaging.MessageChannels; | ||
|
||
public record PhantazmPacket(byte @NotNull [] data) implements FabricPacket { | ||
|
||
public static final PacketType<PhantazmPacket> TYPE = | ||
PacketType.create(new Identifier(Namespaces.PHANTAZM, MessageChannels.CLIENT_TO_SERVER), | ||
PhantazmPacket::new); | ||
|
||
public PhantazmPacket(PacketByteBuf buf) { | ||
this(buf.getWrittenBytes()); | ||
} | ||
|
||
@Override | ||
public void write(PacketByteBuf buf) { | ||
buf.writeBytes(data); | ||
} | ||
|
||
@Override | ||
public PacketType<?> getType() { | ||
return TYPE; | ||
} | ||
|
||
} |
Oops, something went wrong.