@@ -0,0 +1,599 @@
+package com.ezardlabs.dethsquare.multiplayer;%0A%0Aimport com.ezardlabs.dethsquare.Component;%0A%0Aimport java.nio.ByteBuffer;%0A%0Apublic abstract class NetworkBehaviour extends Component %7B%0A%09private static int networkIdCounter = 0;%0A%09int networkId;%0A%09protected int playerId;%0A%0A%09public NetworkBehaviour() %7B%0A%09%09this(networkIdCounter++, Network.getPlayerID());%0A%09%7D%0A%0A%09NetworkBehaviour(int networkId, int playerId) %7B%0A%09%09this.networkId = networkId;%0A%09%09this.playerId = playerId;%0A%09%7D%0A%0A%09protected abstract ByteBuffer onSend();%0A%0A%09protected abstract void onReceive(ByteBuffer data, int index);%0A%0A%09public abstract int getSize();%0A%7D%0A

Add first iteration of NetworkBehaviour component