summaryrefslogtreecommitdiff
path: root/src/main/java/net/transit/packet
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2019-11-20 12:45:16 -0500
committerKyle Gunger <kgunger12@gmail.com>2019-11-20 12:45:16 -0500
commitdf044930bca4252ff6e4814c654a612c6aee2136 (patch)
tree906eddbbfdecb63e3525657cd4e6f75c8ba91bc3 /src/main/java/net/transit/packet
parentebc33c58c8a3669822a0dba99cbfe8a451782813 (diff)
[0.1.7 REWRITE] Codebase overhaul.
~ Codebase split into two sub-packages ~ net.transit.network for transfering between objects ~ net.transit.type for type registering and conversion + Added new interfaces (INode and ISystem) + More documentation + (Kinda) Working build - Removed unnessairy interfaces (IGenerator and IConsumer) - Removed base types ~ Restructured type system
Diffstat (limited to 'src/main/java/net/transit/packet')
-rw-r--r--src/main/java/net/transit/packet/ArrayPacket.java37
-rw-r--r--src/main/java/net/transit/packet/IPacket.java6
-rw-r--r--src/main/java/net/transit/packet/StaticPacket.java16
3 files changed, 0 insertions, 59 deletions
diff --git a/src/main/java/net/transit/packet/ArrayPacket.java b/src/main/java/net/transit/packet/ArrayPacket.java
deleted file mode 100644
index 09ef5f1..0000000
--- a/src/main/java/net/transit/packet/ArrayPacket.java
+++ /dev/null
@@ -1,37 +0,0 @@
-package net.transit.packet;
-
-import java.util.ArrayList;
-
-public class ArrayPacket<D> implements IPacket<D>
-{
- private ArrayList<D> arrayData;
-
- public ArrayPacket(D startValue)
- {
- arrayData = new ArrayList<D>(0);
- arrayData.add(startValue);
- }
-
- public D getData()
- {
- if(arrayData.size() > 0) return arrayData.get(0);
- return null;
- }
-
- public void addData(D data)
- {
- arrayData.add(data);
- }
-
- public D popAndShift()
- {
- D temp = null;
-
- if(arrayData.size() > 0)
- {
- temp = arrayData.remove(0);
- }
-
- return temp;
- }
-} \ No newline at end of file
diff --git a/src/main/java/net/transit/packet/IPacket.java b/src/main/java/net/transit/packet/IPacket.java
deleted file mode 100644
index 2b1753b..0000000
--- a/src/main/java/net/transit/packet/IPacket.java
+++ /dev/null
@@ -1,6 +0,0 @@
-package net.transit.packet;
-
-public interface IPacket<D>
-{
- public D getData();
-} \ No newline at end of file
diff --git a/src/main/java/net/transit/packet/StaticPacket.java b/src/main/java/net/transit/packet/StaticPacket.java
deleted file mode 100644
index fb11dd7..0000000
--- a/src/main/java/net/transit/packet/StaticPacket.java
+++ /dev/null
@@ -1,16 +0,0 @@
-package net.transit.packet;
-
-public class StaticPacket<D> implements IPacket<D>
-{
- private D data;
-
- public StaticPacket(D dat)
- {
- data = dat;
- }
-
- public D getData()
- {
- return data;
- }
-} \ No newline at end of file