diff --git a/Unity Server Project/.classpath b/Unity Server Project/.classpath new file mode 100644 index 0000000..fceb480 --- /dev/null +++ b/Unity Server Project/.classpath @@ -0,0 +1,6 @@ + + + + + + diff --git a/Unity Server Project/.project b/Unity Server Project/.project new file mode 100644 index 0000000..007bd70 --- /dev/null +++ b/Unity Server Project/.project @@ -0,0 +1,17 @@ + + + Unity Server Project + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/Unity Server Project/.settings/org.eclipse.jdt.core.prefs b/Unity Server Project/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..3a21537 --- /dev/null +++ b/Unity Server Project/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,11 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=1.8 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.8 diff --git a/Unity Server Project/data/world/worldList.xml b/Unity Server Project/data/world/worldList.xml new file mode 100644 index 0000000..abc72b0 --- /dev/null +++ b/Unity Server Project/data/world/worldList.xml @@ -0,0 +1,9 @@ + + + + + 10000001 + 10000001.map + + + \ No newline at end of file diff --git a/Unity Server Project/ressources/world/10000001.map b/Unity Server Project/ressources/world/10000001.map new file mode 100644 index 0000000..bcd741b Binary files /dev/null and b/Unity Server Project/ressources/world/10000001.map differ diff --git a/Unity Server Project/settings/network.conf b/Unity Server Project/settings/network.conf new file mode 100644 index 0000000..e69de29 diff --git a/Unity Server Project/src/fr/technicalgames/MainServer.java b/Unity Server Project/src/fr/technicalgames/MainServer.java new file mode 100644 index 0000000..ea058ad --- /dev/null +++ b/Unity Server Project/src/fr/technicalgames/MainServer.java @@ -0,0 +1,22 @@ +package fr.technicalgames; + +import java.io.*; +import java.util.Map.*; + +import javax.xml.bind.*; + +import fr.technicalgames.data.*; +import fr.technicalgames.network.*; +import fr.technicalgames.settings.Settings; + +public class MainServer{ + + public static Server server; + + public static void main(String[] args) throws JAXBException { + Settings.loadSettings(); + World.loadWorlds(); + server = new Server(9999); + } + +} diff --git a/Unity Server Project/src/fr/technicalgames/client/Client.java b/Unity Server Project/src/fr/technicalgames/client/Client.java new file mode 100644 index 0000000..0891d1e --- /dev/null +++ b/Unity Server Project/src/fr/technicalgames/client/Client.java @@ -0,0 +1,61 @@ +package fr.technicalgames.client; + +import java.io.*; +import java.net.*; + +import fr.technicalgames.entity.*; +import fr.technicalgames.entity.player.Player; +import fr.technicalgames.network.*; +import fr.technicalgames.network.common.*; + +public class Client { + + private InetAddress address; + private int port; + private Player player; + + public Client(InetAddress address,int port){ + this.address = address; + this.port = port; + this.player = new Player("Default"); + } + + public void send(DatagramSocket server,IPacket packet){ + try { + DataBuffer data = new DataBuffer(); + data.put(Register.getId(packet.getClass())); + packet.write(data); + Server.up += data.getPointer(); + server.send(new DatagramPacket(data.getData(),data.getPointer(),address,port)); + } catch (IOException e) { + e.printStackTrace(); + } + } + + public InetAddress getAddress() { + return address; + } + + public void setAddress(InetAddress address) { + this.address = address; + } + + public int getPort() { + return port; + } + + public void setPort(int port) { + this.port = port; + } + + public Player getPlayer() { + return player; + } + + public void setPlayer(Player player) { + this.player = player; + } + + + +} diff --git a/Unity Server Project/src/fr/technicalgames/data/World.java b/Unity Server Project/src/fr/technicalgames/data/World.java new file mode 100644 index 0000000..e9d789c --- /dev/null +++ b/Unity Server Project/src/fr/technicalgames/data/World.java @@ -0,0 +1,125 @@ +package fr.technicalgames.data; + +import java.io.*; +import java.nio.file.*; +import java.util.*; +import java.util.Map.*; + +import javax.xml.bind.*; + +import fr.technicalgames.data.xml.WorldList; +import fr.technicalgames.io.*; +import fr.technicalgames.math.*; +import fr.technicalgames.network.common.*; + +public class World { + + private int heightmapWidth,heightmapHeight; + private float mapWidth,mapHeight; + private float[][] heightsMap; + + private static Map worlds = new HashMap(); + + public World(String filename) throws IOException{ + Path path = Paths.get("ressources/world/" + filename); + byte[] data = Files.readAllBytes(path); + + DataBuffer d = new DataBuffer(data); + heightmapWidth = d.getInt(); + heightmapHeight = d.getInt(); + mapWidth = d.getFloat(); + mapHeight = d.getFloat(); + + heightsMap = new float[heightmapWidth][heightmapHeight]; + + for(int x = 0;x < heightmapWidth;x++){ + for(int y = 0;y < heightmapHeight;y++){ + heightsMap[x][y] = d.getFloat(); + } + } + + } + + public float getHeights(float x,float y){ + float rx = (x * (float)heightmapWidth)/mapWidth; + float ry = (y * (float)heightmapHeight)/mapHeight; + + int ix = (int)rx; + int iy = (int)ry; + + float interpolate1 = Mathf.linearInterpolate(heightsMap[ix][iy],heightsMap[ix + 1][iy],rx - ix); + float interpolate2 = Mathf.linearInterpolate(heightsMap[ix][iy + 1],heightsMap[ix + 1][iy + 1],rx - ix); + + return Mathf.linearInterpolate(interpolate1,interpolate2,ry - iy); + } + + public static void loadWorlds(){ + Log.println(Log.INFO, "Loading World ..."); + try { + JAXBContext jc = JAXBContext.newInstance(WorldList.class); + Unmarshaller jaxbUnmarshaller = jc.createUnmarshaller(); + WorldList worldList = (WorldList)jaxbUnmarshaller.unmarshal(new File("data/world/worldList.xml")); + for(Entry s : worldList.getWorlds().entrySet()){ + try { + World w = new World(s.getValue()); + worlds.put(s.getKey(), w); + } catch (IOException e) { + e.printStackTrace(); + } + } + } catch (JAXBException e) { + e.printStackTrace(); + } + Log.println(Log.INFO, "World loaded !"); + } + + public static Map getWorlds() { + return worlds; + } + + public static void setWorlds(Map worlds) { + World.worlds = worlds; + } + + public int getHeightmapWidth() { + return heightmapWidth; + } + + public void setHeightmapWidth(int heightmapWidth) { + this.heightmapWidth = heightmapWidth; + } + + public int getHeightmapHeight() { + return heightmapHeight; + } + + public void setHeightmapHeight(int heightmapHeight) { + this.heightmapHeight = heightmapHeight; + } + + public float getMapWidth() { + return mapWidth; + } + + public void setMapWidth(float mapWidth) { + this.mapWidth = mapWidth; + } + + public float getMapHeight() { + return mapHeight; + } + + public void setMapHeight(float mapHeight) { + this.mapHeight = mapHeight; + } + + public float[][] getHeightsMap() { + return heightsMap; + } + + public void setHeightsMap(float[][] heightsMap) { + this.heightsMap = heightsMap; + } + + +} diff --git a/Unity Server Project/src/fr/technicalgames/data/xml/WorldList.java b/Unity Server Project/src/fr/technicalgames/data/xml/WorldList.java new file mode 100644 index 0000000..1cc7355 --- /dev/null +++ b/Unity Server Project/src/fr/technicalgames/data/xml/WorldList.java @@ -0,0 +1,20 @@ +package fr.technicalgames.data.xml; + +import java.util.*; + +import javax.xml.bind.annotation.*; + +@XmlRootElement +public class WorldList { + + private Map worlds = new HashMap(); + + public Map getWorlds() { + return worlds; + } + + public void setWorlds(Map worlds) { + this.worlds = worlds; + } + +} diff --git a/Unity Server Project/src/fr/technicalgames/entity/Entity.java b/Unity Server Project/src/fr/technicalgames/entity/Entity.java new file mode 100644 index 0000000..2231f14 --- /dev/null +++ b/Unity Server Project/src/fr/technicalgames/entity/Entity.java @@ -0,0 +1,87 @@ +package fr.technicalgames.entity; + +public abstract class Entity { + + private String name = ""; + private int id = 0; + + private float px,py,pz,rx,ry,rz; + + public Entity(String name,int id){ + this.name = name; + px = 0; + py = 0; + pz = 0; + rx = 0; + ry = 0; + rz = 0; + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getId() { + return id; + } + + public void setId(int id) { + this.id = id; + } + + public float getPx() { + return px; + } + + public void setPx(float px) { + this.px = px; + } + + public float getPy() { + return py; + } + + public void setPy(float py) { + this.py = py; + } + + public float getPz() { + return pz; + } + + public void setPz(float pz) { + this.pz = pz; + } + + public float getRx() { + return rx; + } + + public void setRx(float rx) { + this.rx = rx; + } + + public float getRy() { + return ry; + } + + public void setRy(float ry) { + this.ry = ry; + } + + public float getRz() { + return rz; + } + + public void setRz(float rz) { + this.rz = rz; + } + + + +} diff --git a/Unity Server Project/src/fr/technicalgames/entity/player/Player.java b/Unity Server Project/src/fr/technicalgames/entity/player/Player.java new file mode 100644 index 0000000..077209d --- /dev/null +++ b/Unity Server Project/src/fr/technicalgames/entity/player/Player.java @@ -0,0 +1,11 @@ +package fr.technicalgames.entity.player; + +import fr.technicalgames.entity.Entity; + +public class Player extends Entity{ + + public Player(String name) { + super(name,-1); + } + +} diff --git a/Unity Server Project/src/fr/technicalgames/io/Log.java b/Unity Server Project/src/fr/technicalgames/io/Log.java new file mode 100644 index 0000000..134acaa --- /dev/null +++ b/Unity Server Project/src/fr/technicalgames/io/Log.java @@ -0,0 +1,40 @@ +package fr.technicalgames.io; + +import java.io.*; + +public class Log { + + public static final int INFO = 0,WARNING = 1,ERROR = 2; + + private static PrintStream out = System.out; + + public static void println(int type,String a){ + switch(type){ + case INFO: + out.println(a); + break; + case WARNING: + out.println(a); + break; + case ERROR: + out.println(a); + break; + } + } + + public static void print(int type,String a){ + a = "\b" + a; + switch(type){ + case INFO: + out.print(a); + break; + case WARNING: + out.print(a); + break; + case ERROR: + out.print(a); + break; + } + } + +} diff --git a/Unity Server Project/src/fr/technicalgames/math/Mathf.java b/Unity Server Project/src/fr/technicalgames/math/Mathf.java new file mode 100644 index 0000000..a2754b4 --- /dev/null +++ b/Unity Server Project/src/fr/technicalgames/math/Mathf.java @@ -0,0 +1,21 @@ +package fr.technicalgames.math; + +public class Mathf { + + public static final float PI = 3.14159265358979323846f; + + public static float linearInterpolate(float y1,float y2,float b){ + return y1 * (1 - b) + y2 * b; + } + + public static float cos(float angle){ + return (float)Math.cos(angle); + } + + public static float cosineInterpolate(float y1,float y2,float b){ + float ft = b * PI; + float f = (1 - cos(ft)) * .5f; + return y1 * (1-f) + y2*f; + } + +} diff --git a/Unity Server Project/src/fr/technicalgames/network/Server.java b/Unity Server Project/src/fr/technicalgames/network/Server.java new file mode 100644 index 0000000..cf5a647 --- /dev/null +++ b/Unity Server Project/src/fr/technicalgames/network/Server.java @@ -0,0 +1,158 @@ +package fr.technicalgames.network; + +import java.io.*; +import java.net.*; +import java.util.*; + +import fr.technicalgames.client.*; +import fr.technicalgames.io.*; +import fr.technicalgames.network.common.*; +import fr.technicalgames.network.packet.*; + +public class Server extends Thread{ + + private ArrayList clients = new ArrayList(); + + private DatagramSocket server; + private boolean running = false; + private Scanner sc = new Scanner(System.in); + public static int down = 0,up = 0,pup = 0,pdown = 0; + public long previous = System.currentTimeMillis(),prev = System.currentTimeMillis(); + + public Server(int port){ + try { + this.server = new DatagramSocket(port); + Log.println(Log.INFO, "Serveur lance a l'adresse " + server.getLocalAddress().getHostAddress() + ":" + server.getLocalPort()); + running = true; + Register.registerClass(); + this.start(); + (new Thread(new Runnable() { + @Override + public void run() { + while(running){ + String a = sc.nextLine(); + sendToClients(new MessagePacket("Server", a)); + } + } + })).start(); + (new Thread(new Runnable() { + @Override + public void run() { + while(running){ + if(System.currentTimeMillis() - previous > 1000){ + pup = up; + pdown = down; + System.out.print("DOWN: " + pdown/1024.0f + "ko/s UP: " + pup/1024.0f + "ko/s \r"); + up = 0; + down = 0; + previous = System.currentTimeMillis(); + } + } + } + })).start(); + } catch (SocketException e) { + e.printStackTrace(); + } + } + + @Override + public void run(){ + while(running){ + try { + byte[] data = new byte[DataBuffer.getSize()]; + DatagramPacket packet = new DatagramPacket(data,data.length); + server.receive(packet); + int size = packet.getLength(); + down += size; + DataBuffer dataBuffer = new DataBuffer(data); + if(packet.getAddress() != null){ + Client cl = getClient(packet.getAddress(),packet.getPort()); + if(cl != null){ + try{ + IPacket packetObject = (IPacket) Register.instantiate(dataBuffer.getInt()); + packetObject.read(dataBuffer); + packetObject.manage(this,server,cl, packetObject); + }catch(Exception e){ + String log = "Unknown packet : {\n "; + int i = 0; + for(byte d : data){ + log += byteToHex(d) + " "; + i++; + if(i%32 == 0)log += "\n "; + if(i >= size)break; + } + log += "\n}"; + Log.println(Log.WARNING, log); + } + }else{ + try{ + Log.println(Log.INFO, packet.getAddress().getHostAddress() + ":" + packet.getPort() + " s'est connecter !"); + clients.add(cl = new Client(packet.getAddress(),packet.getPort())); + IPacket packetObject = (IPacket) Register.instantiate(dataBuffer.getInt()); + packetObject.read(dataBuffer); + packetObject.manage(this,server,cl, packetObject); + }catch(Exception e){ + String log = "Unknown packet : {\n "; + int i = 0; + for(byte d : data){ + log += byteToHex(d) + " "; + i++; + if(i%32 == 0)log += "\n "; + if(i >= size)break; + } + log += "\n}"; + Log.println(Log.WARNING, log); + } + } + } + } catch (IOException e) { + e.printStackTrace(); + } + } + } + + public Client getClient(InetAddress address,int port){ + for(Client cl : clients){ + if(cl.getAddress().getHostAddress().equals(address.getHostName()) && port == cl.getPort()){ + return cl; + } + } + return null; + } + + public Client getClientByName(String name){ + for(Client cl: clients){ + if(cl.getPlayer().getName().equals(name))return cl; + } + return null; + } + + public void sendToClients(IPacket packet){ + for(Client cl : clients){ + cl.send(server, packet); + } + } + + public static String byteToHex(byte bytes) { + final char[] hexArray = "0123456789ABCDEF".toCharArray(); + char[] hexChars = new char[2]; + int v = bytes & 0xFF; + hexChars[0] = hexArray[v >>> 4]; + hexChars[1] = hexArray[v & 0x0F]; + return new String(hexChars); + } + + public void closeConnection(Client client){ + clients.remove(client); + Log.println(Log.INFO, client.getAddress().getHostName() + ":" + client.getPort() + " s'est deconnecter !"); + } + + public void stopServer(){ + running = false; + this.server.close(); + this.stop(); + } + + + +} diff --git a/Unity Server Project/src/fr/technicalgames/network/common/DataBuffer.java b/Unity Server Project/src/fr/technicalgames/network/common/DataBuffer.java new file mode 100644 index 0000000..676da97 --- /dev/null +++ b/Unity Server Project/src/fr/technicalgames/network/common/DataBuffer.java @@ -0,0 +1,184 @@ +package fr.technicalgames.network.common; + +import java.nio.*; + +import fr.technicalgames.io.*; + +public class DataBuffer { + + public static final int SIZE = 1024; + + private byte[] data; + private int pointer; + + public DataBuffer(){ + data = new byte[SIZE]; + pointer = 0; + } + + public DataBuffer(int size){ + data = new byte[size]; + pointer = 0; + } + + public DataBuffer(byte[] data){ + this.data = data; + pointer = 0; + } + + public void put(byte a){ + if(pointer >= data.length){ + Log.println(Log.ERROR, "Databuffer write overflow"); + return; + } + data[pointer++] = a; + } + + public void put(short a){ + put((byte)((a >> 8) & 0xff)); + put((byte)((a >> 0) & 0xff)); + } + + public void put(int a){ + put((byte)((a >> 24) & 0xff)); + put((byte)((a >> 16) & 0xff)); + put((byte)((a >> 8) & 0xff)); + put((byte)((a >> 0) & 0xff)); + } + + public void put(long a){ + put((byte)((a >> 56) & 0xff)); + put((byte)((a >> 48) & 0xff)); + put((byte)((a >> 40) & 0xff)); + put((byte)((a >> 32) & 0xff)); + put((byte)((a >> 24) & 0xff)); + put((byte)((a >> 16) & 0xff)); + put((byte)((a >> 8) & 0xff)); + put((byte)((a >> 0) & 0xff)); + } + + public void put(float b){ + int a = Float.floatToIntBits(b); + put((byte)((a >> 0) & 0xff)); + put((byte)((a >> 8) & 0xff)); + put((byte)((a >> 16) & 0xff)); + put((byte)((a >> 24) & 0xff)); + } + + public void put(double b){ + long a = Double.doubleToLongBits(b); + put((byte)((a >> 0) & 0xff)); + put((byte)((a >> 8) & 0xff)); + put((byte)((a >> 16) & 0xff)); + put((byte)((a >> 24) & 0xff)); + put((byte)((a >> 32) & 0xff)); + put((byte)((a >> 40) & 0xff)); + put((byte)((a >> 48) & 0xff)); + put((byte)((a >> 56) & 0xff)); + } + + public void put(char a){ + put((byte)a); + } + + public void put(String a){ + char[] b = a.toCharArray(); + put(b.length); + for(int i = 0;i < b.length;i++){ + put(b[i]); + } + } + + public byte getByte(){ + if(pointer >= data.length){ + Log.println(Log.ERROR, "Databuffer write overflow"); + return 0; + } + return data[pointer++]; + } + + public short getShort(){ + return (short) (( + (getByte() << 8) & 0xff00) | + (getByte() & 0xff)); + } + + public int getInt(){ + return (int) (( + (getByte() << 24) & 0xff000000) | + (getByte() << 16 & 0xff0000) | + (getByte() << 8 & 0xff00) | + (getByte() & 0xff)); + } + + public long getLong(){ + return (long) ( + (((long)getByte() << 56) & 0xff00000000000000l) | + (((long)getByte() << 48) & 0xff000000000000l) | + (((long)getByte() << 40) & 0xff0000000000l) | + (((long)getByte() << 32) & 0xff00000000l) | + (((long)getByte() << 24) & 0xff000000l) | + (((long)getByte() << 16) & 0xff0000l) | + (((long)getByte() << 8) & 0xff00l) | + ((long)getByte() & 0xffl)); + } + + public float getFloat(){ + byte[] array = new byte[]{getByte(),getByte(),getByte(),getByte()}; + byte tmp = array[0]; + array[0] = array[3]; + array[3] = tmp; + tmp = array[1]; + array[1] = array[2]; + array[2] = tmp; + tmp = 0; + return Float.intBitsToFloat(ByteBuffer.wrap(array).getInt()); + } + + public double getDouble(){ + byte[] array = new byte[]{getByte(),getByte(),getByte(),getByte(),getByte(),getByte(),getByte(),getByte()}; + byte[] d = new byte[8]; + for(int i = 0;i < 8;i++){ + d[7 - i] = array[i]; + } + array = null; + return Double.longBitsToDouble(ByteBuffer.wrap(d).getLong()); + } + + public char getChar(){ + return (char)getByte(); + } + + public String getString(){ + char[] st = new char[getInt()]; + for(int i = 0;i < st.length;i++){ + st[i] = getChar(); + } + return new String(st); + } + + public byte[] getData() { + return data; + } + + public void setData(byte[] data) { + this.data = data; + } + + public int getPointer() { + return pointer; + } + + public void setPointer(int pointer) { + this.pointer = pointer; + } + + public static int getSize() { + return SIZE; + } + + public void clear(){ + pointer = 0; + } + +} diff --git a/Unity Server Project/src/fr/technicalgames/network/common/IPacket.java b/Unity Server Project/src/fr/technicalgames/network/common/IPacket.java new file mode 100644 index 0000000..b22abf5 --- /dev/null +++ b/Unity Server Project/src/fr/technicalgames/network/common/IPacket.java @@ -0,0 +1,14 @@ +package fr.technicalgames.network.common; + +import java.net.*; + +import fr.technicalgames.client.*; +import fr.technicalgames.network.*; + +public interface IPacket { + + public void read(DataBuffer data); + public void write(DataBuffer data); + public void manage(Server server,DatagramSocket socket,Client client,IPacket packet); + +} diff --git a/Unity Server Project/src/fr/technicalgames/network/common/Register.java b/Unity Server Project/src/fr/technicalgames/network/common/Register.java new file mode 100644 index 0000000..d60cce2 --- /dev/null +++ b/Unity Server Project/src/fr/technicalgames/network/common/Register.java @@ -0,0 +1,44 @@ +package fr.technicalgames.network.common; + +import java.util.*; + +import fr.technicalgames.network.packet.*; + +public class Register { + + public static ArrayList registeredClass = new ArrayList(); + + public static void registerClass(){ + addClass(MessagePacket.class); + addClass(MainState_Connection_Request_Packet.class); + addClass(Disconnect_Client_Packet.class); + } + + public static void addClass(Class cl){ + registeredClass.add(cl); + } + + public static Class getClass(int id){ + return registeredClass.get(id); + } + + public static int getId(Class cl){ + for(int i = 0;i < registeredClass.size();i++){ + if(registeredClass.get(i).equals(cl))return i; + } + return -1; + } + + public static Object instantiate(int id) { + try { + return getClass(id).newInstance(); + } catch (InstantiationException e) { + e.printStackTrace(); + return null; + } catch (IllegalAccessException e) { + e.printStackTrace(); + return null; + } + } + +} diff --git a/Unity Server Project/src/fr/technicalgames/network/packet/Disconnect_Client_Packet.java b/Unity Server Project/src/fr/technicalgames/network/packet/Disconnect_Client_Packet.java new file mode 100644 index 0000000..4542a02 --- /dev/null +++ b/Unity Server Project/src/fr/technicalgames/network/packet/Disconnect_Client_Packet.java @@ -0,0 +1,37 @@ +package fr.technicalgames.network.packet; + +import java.net.*; + +import fr.technicalgames.client.*; +import fr.technicalgames.network.*; +import fr.technicalgames.network.common.*; + +public class Disconnect_Client_Packet implements IPacket{ + + public String pseudo; + + public Disconnect_Client_Packet(){} + + public Disconnect_Client_Packet(String pseudo){ + this.pseudo = pseudo; + } + + @Override + public void read(DataBuffer data) { + this.pseudo = data.getString(); + } + + @Override + public void write(DataBuffer data) { + data.put(this.pseudo); + } + + @Override + public void manage(Server server, DatagramSocket socket, Client client, IPacket packet) { + server.closeConnection(client); + server.sendToClients(packet); + } + + + +} diff --git a/Unity Server Project/src/fr/technicalgames/network/packet/MainState_Connection_Request_Packet.java b/Unity Server Project/src/fr/technicalgames/network/packet/MainState_Connection_Request_Packet.java new file mode 100644 index 0000000..6fb82d8 --- /dev/null +++ b/Unity Server Project/src/fr/technicalgames/network/packet/MainState_Connection_Request_Packet.java @@ -0,0 +1,53 @@ +package fr.technicalgames.network.packet; + +import java.net.*; + +import fr.technicalgames.client.*; +import fr.technicalgames.network.*; +import fr.technicalgames.network.common.*; + +public class MainState_Connection_Request_Packet implements IPacket{ + + public static final int REQUEST = 0, ACCEPTED = 1, REFUSED = 2,TIME_OUT = 3, ALREADY_CONNECTED = 4, PSEUDO_INCORRECT = 5,DISCONNECTED = 6; + + public String pseudo; + public int id; + + public MainState_Connection_Request_Packet() { } + + public MainState_Connection_Request_Packet(String pseudo,int id) + { + this.pseudo = pseudo; + this.id = id; + } + + @Override + public void read(DataBuffer data) { + this.pseudo = data.getString(); + this.id = data.getInt(); + } + + @Override + public void write(DataBuffer data) { + data.put(pseudo); + data.put(id); + } + + @Override + public void manage(Server server,DatagramSocket socket,Client client,IPacket packet) { + if(server.getClientByName(pseudo) == null){ + client.getPlayer().setName(pseudo); + id = ACCEPTED; + }else{ + Client cl = server.getClientByName(pseudo); + while(cl != null){ + server.closeConnection(cl); + cl = server.getClientByName(pseudo); + } + server.closeConnection(client); + id = ALREADY_CONNECTED; + } + client.send(socket, this); + } + +} diff --git a/Unity Server Project/src/fr/technicalgames/network/packet/MessagePacket.java b/Unity Server Project/src/fr/technicalgames/network/packet/MessagePacket.java new file mode 100644 index 0000000..381a0fe --- /dev/null +++ b/Unity Server Project/src/fr/technicalgames/network/packet/MessagePacket.java @@ -0,0 +1,35 @@ +package fr.technicalgames.network.packet; + +import java.net.*; + +import fr.technicalgames.client.*; +import fr.technicalgames.io.*; +import fr.technicalgames.network.*; +import fr.technicalgames.network.common.*; + +public class MessagePacket implements IPacket{ + + private String pseudo, message; + + public MessagePacket() { } + + public MessagePacket(String pseudo, String message){ + this.message = message; + this.pseudo = pseudo; + } + + public void read(DataBuffer data){ + this.pseudo = data.getString(); + this.message = data.getString(); + } + + public void write(DataBuffer data){ + data.put(this.pseudo); + data.put(this.message); + } + + public void manage(Server server,DatagramSocket socket,Client client,IPacket packet){ + Log.println(Log.INFO, pseudo + " : " + message); + } + +} diff --git a/Unity Server Project/src/fr/technicalgames/settings/Settings.java b/Unity Server Project/src/fr/technicalgames/settings/Settings.java new file mode 100644 index 0000000..ac94bf7 --- /dev/null +++ b/Unity Server Project/src/fr/technicalgames/settings/Settings.java @@ -0,0 +1,30 @@ +package fr.technicalgames.settings; + +import java.io.File; +import java.util.HashMap; + +import fr.technicalgames.io.Log; + +public class Settings { + + public static void loadSettings(){ + File t = new File("settings/"); + for(File f : t.listFiles()){ + Log.println(Log.INFO, f.getName()); + } + } + + class SettingsFile{ + + private String filename; + private HashMap data = new HashMap(); + + public SettingsFile(String filename,String path){ + File f = new File(path + filename); + + } + + + } + +} diff --git a/Unity network UDP/.vs/Unity network UDP/v14/.suo b/Unity network UDP/.vs/Unity network UDP/v14/.suo new file mode 100644 index 0000000..ce15ac7 Binary files /dev/null and b/Unity network UDP/.vs/Unity network UDP/v14/.suo differ diff --git a/Unity network UDP/Assembly-CSharp-Editor.csproj b/Unity network UDP/Assembly-CSharp-Editor.csproj new file mode 100644 index 0000000..42f6d2a --- /dev/null +++ b/Unity network UDP/Assembly-CSharp-Editor.csproj @@ -0,0 +1,111 @@ + + + + Debug + AnyCPU + 10.0.20506 + 2.0 + + {9F543762-BF16-744B-B4B2-7D409B8E4AB7} + Library + Properties + Assembly-CSharp-Editor + v3.5 + 512 + Assets + + + true + full + false + Temp\bin\Debug\ + DEBUG;TRACE;UNITY_5_3_2;UNITY_5_3;UNITY_5;ENABLE_NEW_BUGREPORTER;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_DUCK_TYPING;ENABLE_FRAME_DEBUGGER;ENABLE_GENERICS;ENABLE_HOME_SCREEN;ENABLE_IMAGEEFFECTS;ENABLE_LIGHT_PROBES_LEGACY;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_PLUGIN_INSPECTOR;ENABLE_SHADOWS;ENABLE_SINGLE_INSTANCE_BUILD_SETTING;ENABLE_SPRITERENDERER_FLIPPING;ENABLE_SPRITES;ENABLE_SPRITE_POLYGON;ENABLE_TERRAIN;ENABLE_RAKNET;ENABLE_UNET;ENABLE_UNITYEVENTS;ENABLE_VR;ENABLE_WEBCAM;ENABLE_WWW;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_HUB;ENABLE_CLOUD_PROJECT_ID;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_METRICS;ENABLE_EDITOR_METRICS_CACHING;INCLUDE_DYNAMIC_GI;INCLUDE_GI;INCLUDE_IL2CPP;INCLUDE_DIRECTX12;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;ENABLE_LOCALIZATION;ENABLE_ANDROID_ATLAS_ETC1_COMPRESSION;ENABLE_EDITOR_TESTS_RUNNER;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_SUBSTANCE;ENABLE_TEXTUREID_MAP;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_LOG_MIXED_STACKTRACE;ENABLE_UNITYWEBREQUEST;ENABLE_EVENT_QUEUE;ENABLE_CLUSTERINPUT;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;ENABLE_PROFILER;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN + prompt + 4 + 0169 + + + pdbonly + true + Temp\bin\Release\ + prompt + 4 + 0169 + + + + + + + + D:/logiciels/Unity/Editor/Data/Managed/UnityEngine.dll + + + D:/logiciels/Unity/Editor/Data/Managed/UnityEditor.dll + + + + + + D:/fichiers/programmes/moi/unity/Unity network UDP/Library/ScriptAssemblies/Assembly-UnityScript.dll + + + D:/logiciels/Unity/Editor/Data/UnityExtensions/Unity/Advertisements/Editor/UnityEditor.Advertisements.dll + + + D:/logiciels/Unity/Editor/Data/UnityExtensions/Unity/EditorTestsRunner/Editor/nunit.framework.dll + + + D:/logiciels/Unity/Editor/Data/UnityExtensions/Unity/EditorTestsRunner/Editor/UnityEditor.EditorTestsRunner.dll + + + D:/logiciels/Unity/Editor/Data/UnityExtensions/Unity/GUISystem/UnityEngine.UI.dll + + + D:/logiciels/Unity/Editor/Data/UnityExtensions/Unity/GUISystem/Editor/UnityEditor.UI.dll + + + D:/logiciels/Unity/Editor/Data/UnityExtensions/Unity/Networking/UnityEngine.Networking.dll + + + D:/logiciels/Unity/Editor/Data/UnityExtensions/Unity/Networking/Editor/UnityEditor.Networking.dll + + + D:/logiciels/Unity/Editor/Data/UnityExtensions/Unity/TreeEditor/Editor/UnityEditor.TreeEditor.dll + + + D:/logiciels/Unity/Editor/Data/Managed/UnityEditor.Graphs.dll + + + D:/logiciels/Unity/Editor/Data/PlaybackEngines/AndroidPlayer/UnityEditor.Android.Extensions.dll + + + D:/logiciels/Unity/Editor/Data/PlaybackEngines/iOSSupport/UnityEditor.iOS.Extensions.dll + + + D:/logiciels/Unity/Editor/Data/PlaybackEngines/WebGLSupport/UnityEditor.WebGL.Extensions.dll + + + D:/logiciels/Unity/Editor/Data/PlaybackEngines/LinuxStandaloneSupport/UnityEditor.LinuxStandalone.Extensions.dll + + + D:/logiciels/Unity/Editor/Data/PlaybackEngines/WindowsStandaloneSupport/UnityEditor.WindowsStandalone.Extensions.dll + + + D:/logiciels/Unity/Editor/Data/PlaybackEngines/MacStandaloneSupport/UnityEditor.OSXStandalone.Extensions.dll + + + + + {E8AC5320-5607-FFE2-C7E2-3253D342E899} Assembly-CSharp + + + + + diff --git a/Unity network UDP/Assembly-CSharp.csproj b/Unity network UDP/Assembly-CSharp.csproj new file mode 100644 index 0000000..1be1d0f --- /dev/null +++ b/Unity network UDP/Assembly-CSharp.csproj @@ -0,0 +1,75 @@ + + + + Debug + AnyCPU + 10.0.20506 + 2.0 + + {E8AC5320-5607-FFE2-C7E2-3253D342E899} + Library + Properties + Assembly-CSharp + v3.5 + 512 + Assets + + + true + full + false + Temp\bin\Debug\ + DEBUG;TRACE;UNITY_5_3_2;UNITY_5_3;UNITY_5;ENABLE_NEW_BUGREPORTER;ENABLE_AUDIO;ENABLE_CACHING;ENABLE_CLOTH;ENABLE_DUCK_TYPING;ENABLE_FRAME_DEBUGGER;ENABLE_GENERICS;ENABLE_HOME_SCREEN;ENABLE_IMAGEEFFECTS;ENABLE_LIGHT_PROBES_LEGACY;ENABLE_MICROPHONE;ENABLE_MULTIPLE_DISPLAYS;ENABLE_PHYSICS;ENABLE_PLUGIN_INSPECTOR;ENABLE_SHADOWS;ENABLE_SINGLE_INSTANCE_BUILD_SETTING;ENABLE_SPRITERENDERER_FLIPPING;ENABLE_SPRITES;ENABLE_SPRITE_POLYGON;ENABLE_TERRAIN;ENABLE_RAKNET;ENABLE_UNET;ENABLE_UNITYEVENTS;ENABLE_VR;ENABLE_WEBCAM;ENABLE_WWW;ENABLE_CLOUD_SERVICES;ENABLE_CLOUD_SERVICES_ADS;ENABLE_CLOUD_HUB;ENABLE_CLOUD_PROJECT_ID;ENABLE_CLOUD_SERVICES_PURCHASING;ENABLE_CLOUD_SERVICES_ANALYTICS;ENABLE_CLOUD_SERVICES_UNET;ENABLE_CLOUD_SERVICES_BUILD;ENABLE_CLOUD_LICENSE;ENABLE_EDITOR_METRICS;ENABLE_EDITOR_METRICS_CACHING;INCLUDE_DYNAMIC_GI;INCLUDE_GI;INCLUDE_IL2CPP;INCLUDE_DIRECTX12;PLATFORM_SUPPORTS_MONO;RENDER_SOFTWARE_CURSOR;ENABLE_LOCALIZATION;ENABLE_ANDROID_ATLAS_ETC1_COMPRESSION;ENABLE_EDITOR_TESTS_RUNNER;UNITY_STANDALONE_WIN;UNITY_STANDALONE;ENABLE_SUBSTANCE;ENABLE_TEXTUREID_MAP;ENABLE_RUNTIME_GI;ENABLE_MOVIES;ENABLE_NETWORK;ENABLE_CRUNCH_TEXTURE_COMPRESSION;ENABLE_LOG_MIXED_STACKTRACE;ENABLE_UNITYWEBREQUEST;ENABLE_EVENT_QUEUE;ENABLE_CLUSTERINPUT;ENABLE_WEBSOCKET_HOST;ENABLE_MONO;ENABLE_PROFILER;UNITY_ASSERTIONS;UNITY_EDITOR;UNITY_EDITOR_64;UNITY_EDITOR_WIN + prompt + 4 + 0169 + + + pdbonly + true + Temp\bin\Release\ + prompt + 4 + 0169 + + + + + + + + D:/logiciels/Unity/Editor/Data/Managed/UnityEngine.dll + + + D:/logiciels/Unity/Editor/Data/Managed/UnityEditor.dll + + + + + + + + + + + + + + + + D:/logiciels/Unity/Editor/Data/UnityExtensions/Unity/GUISystem/UnityEngine.UI.dll + + + D:/logiciels/Unity/Editor/Data/UnityExtensions/Unity/Networking/UnityEngine.Networking.dll + + + + + + diff --git a/Unity network UDP/Assets/DupeHeightMap.png b/Unity network UDP/Assets/DupeHeightMap.png new file mode 100644 index 0000000..c6c1002 Binary files /dev/null and b/Unity network UDP/Assets/DupeHeightMap.png differ diff --git a/Unity network UDP/Assets/DupeHeightMap.png.meta b/Unity network UDP/Assets/DupeHeightMap.png.meta new file mode 100644 index 0000000..569b8d8 --- /dev/null +++ b/Unity network UDP/Assets/DupeHeightMap.png.meta @@ -0,0 +1,57 @@ +fileFormatVersion: 2 +guid: 0c3a130c5911fb94da97ee37073f4b81 +timeCreated: 1461176781 +licenseType: Free +TextureImporter: + fileIDToRecycleName: {} + serializedVersion: 2 + mipmaps: + mipMapMode: 0 + enableMipMap: 1 + linearTexture: 0 + correctGamma: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + grayScaleToAlpha: 0 + generateCubemap: 0 + cubemapConvolution: 0 + cubemapConvolutionSteps: 7 + cubemapConvolutionExponent: 1.5 + seamlessCubemap: 0 + textureFormat: -1 + maxTextureSize: 2048 + textureSettings: + filterMode: -1 + aniso: -1 + mipBias: -1 + wrapMode: -1 + nPOTScale: 1 + lightmap: 0 + rGBM: 0 + compressionQuality: 50 + allowsAlphaSplitting: 0 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spritePixelsToUnits: 100 + alphaIsTransparency: 0 + textureType: -1 + buildTargetSettings: [] + spriteSheet: + sprites: [] + outline: [] + spritePackingTag: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Unity network UDP/Assets/New Terrain.asset b/Unity network UDP/Assets/New Terrain.asset new file mode 100644 index 0000000..d5fb374 Binary files /dev/null and b/Unity network UDP/Assets/New Terrain.asset differ diff --git a/Unity network UDP/Assets/New Terrain.asset.meta b/Unity network UDP/Assets/New Terrain.asset.meta new file mode 100644 index 0000000..3dde5fd --- /dev/null +++ b/Unity network UDP/Assets/New Terrain.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a650dbd5d579bc8499d32782b7c9104c +timeCreated: 1461172757 +licenseType: Free +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Unity network UDP/Assets/heightmap.map b/Unity network UDP/Assets/heightmap.map new file mode 100644 index 0000000..bcd741b Binary files /dev/null and b/Unity network UDP/Assets/heightmap.map differ diff --git a/Unity network UDP/Assets/heightmap.map.meta b/Unity network UDP/Assets/heightmap.map.meta new file mode 100644 index 0000000..a6b75bb --- /dev/null +++ b/Unity network UDP/Assets/heightmap.map.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 24249e1e07f50b94d823e5b641b07f67 +timeCreated: 1461186732 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Unity network UDP/Assets/scenes.meta b/Unity network UDP/Assets/scenes.meta new file mode 100644 index 0000000..07c1d53 --- /dev/null +++ b/Unity network UDP/Assets/scenes.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: cb3879966b4e9284e8e630de5266c03e +folderAsset: yes +timeCreated: 1461077713 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Unity network UDP/Assets/scenes/GameMenu.unity b/Unity network UDP/Assets/scenes/GameMenu.unity new file mode 100644 index 0000000..e1fa813 Binary files /dev/null and b/Unity network UDP/Assets/scenes/GameMenu.unity differ diff --git a/Unity network UDP/Assets/scenes/GameMenu.unity.meta b/Unity network UDP/Assets/scenes/GameMenu.unity.meta new file mode 100644 index 0000000..505b9eb --- /dev/null +++ b/Unity network UDP/Assets/scenes/GameMenu.unity.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 4f84caedd08afdb4aa9abf11a8f90022 +timeCreated: 1461152442 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Unity network UDP/Assets/scenes/MainMenu.unity b/Unity network UDP/Assets/scenes/MainMenu.unity new file mode 100644 index 0000000..071527a Binary files /dev/null and b/Unity network UDP/Assets/scenes/MainMenu.unity differ diff --git a/Unity network UDP/Assets/scenes/MainMenu.unity.meta b/Unity network UDP/Assets/scenes/MainMenu.unity.meta new file mode 100644 index 0000000..cf83f5d --- /dev/null +++ b/Unity network UDP/Assets/scenes/MainMenu.unity.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 67b343623e0fb7e45af3f4acd9d07b43 +timeCreated: 1461077713 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Unity network UDP/Assets/scripts.meta b/Unity network UDP/Assets/scripts.meta new file mode 100644 index 0000000..cd4bba5 --- /dev/null +++ b/Unity network UDP/Assets/scripts.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 3b4bdb98a5880ed458e0b2db273cbd75 +folderAsset: yes +timeCreated: 1461077658 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Unity network UDP/Assets/scripts/HeightmapExportPNG.js b/Unity network UDP/Assets/scripts/HeightmapExportPNG.js new file mode 100644 index 0000000..629c9e5 --- /dev/null +++ b/Unity network UDP/Assets/scripts/HeightmapExportPNG.js @@ -0,0 +1,57 @@ +import UnityEngine; +import UnityEditor; +import System.Collections; +import System.IO; + +class HeightmapExportPNG extends EditorWindow +{ + static var terraindata : TerrainData; + + @MenuItem ("Terrain/Export Height Map as PNG") + static function Init () { + terraindata = null; + var terrain : Terrain = null; + + if ( Selection.activeGameObject ) + terrain = Selection.activeGameObject.GetComponent( Terrain ); + + if (!terrain) { + terrain = Terrain.activeTerrain; + } + if (terrain) { + terraindata = terrain.terrainData; + } + if (terraindata == null) { + EditorUtility.DisplayDialog("No terrain selected", "Please select a terrain.", "Cancel"); + return; + } + + //// get the terrain heights into an array and apply them to a texture2D + var myBytes : byte[]; + var myIndex : int = 0; + var rawHeights = new Array(0.0,0.0); + var duplicateHeightMap = new Texture2D(terraindata.heightmapWidth, terraindata.heightmapHeight, TextureFormat.ARGB32, false); + rawHeights = terraindata.GetHeights(0, 0, terraindata.heightmapWidth, terraindata.heightmapHeight); + + /// run through the array row by row + for (y=0; y < duplicateHeightMap.height; ++y) + { + for (x=0; x < duplicateHeightMap.width; ++x) + { + /// for wach pixel set RGB to the same so it's gray + var data = rawHeights[myIndex]; + var color = Vector4(data, data,data, 1.0); + duplicateHeightMap.SetPixel (x, y, color); + myIndex++; + } + } + // Apply all SetPixel calls + duplicateHeightMap.Apply(); + + /// make it a PNG and save it to the Assets folder + myBytes = duplicateHeightMap.EncodeToPNG(); + var filename : String = "DupeHeightMap.png"; + File.WriteAllBytes(Application.dataPath + "/" + filename, myBytes); + EditorUtility.DisplayDialog("Heightmap Duplicated", "Saved as PNG in Assets/ as: " + filename, ""); + } + } \ No newline at end of file diff --git a/Unity network UDP/Assets/scripts/HeightmapExportPNG.js.meta b/Unity network UDP/Assets/scripts/HeightmapExportPNG.js.meta new file mode 100644 index 0000000..dc2b5a0 --- /dev/null +++ b/Unity network UDP/Assets/scripts/HeightmapExportPNG.js.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 377b3e4ac5993cb4785ccd432840d615 +timeCreated: 1461176678 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Unity network UDP/Assets/scripts/editor.meta b/Unity network UDP/Assets/scripts/editor.meta new file mode 100644 index 0000000..bef570d --- /dev/null +++ b/Unity network UDP/Assets/scripts/editor.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 948a750a1a0784a4188bf7767a99be0a +folderAsset: yes +timeCreated: 1461178066 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Unity network UDP/Assets/scripts/editor/TerrainExport.cs b/Unity network UDP/Assets/scripts/editor/TerrainExport.cs new file mode 100644 index 0000000..d2aab7b --- /dev/null +++ b/Unity network UDP/Assets/scripts/editor/TerrainExport.cs @@ -0,0 +1,85 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using UnityEngine; +using System.IO; +using UnityEditor; + +class TerrainExport : EditorWindow +{ + + static TerrainData terraindata; + + [MenuItem("Terrain/Export Height Map as MAP")] + static void Init() + { + terraindata = null; + Terrain terrain = null; + + if (Selection.activeGameObject) + terrain = Selection.activeGameObject.GetComponent(); + + if (!terrain) + { + terrain = Terrain.activeTerrain; + } + if (terrain) + { + terraindata = terrain.terrainData; + } + if (terraindata == null) + { + EditorUtility.DisplayDialog("No terrain selected", "Please select a terrain.", "Cancel"); + return; + } + + float[,] rawHeights = terraindata.GetHeights(0, 0, terraindata.heightmapWidth, terraindata.heightmapHeight); + byte[] data = new byte[terraindata.heightmapWidth * terraindata.heightmapHeight * 4 + 16]; + + int a = terraindata.heightmapWidth; + data[0] = (byte)((a >> 24) & 0xff); + data[1] = (byte)((a >> 16) & 0xff); + data[2] = (byte)((a >> 8) & 0xff); + data[3] = (byte)((a >> 0) & 0xff); + + a = terraindata.heightmapHeight; + data[4] = (byte)((a >> 24) & 0xff); + data[5] = (byte)((a >> 16) & 0xff); + data[6] = (byte)((a >> 8) & 0xff); + data[7] = (byte)((a >> 0) & 0xff); + + int pointer = 8; + + byte[] array = BitConverter.GetBytes(terraindata.size.x); + foreach (byte b in array) + { + data[pointer++] = b; + } + + array = BitConverter.GetBytes(terraindata.size.z); + foreach (byte b in array) + { + data[pointer++] = b; + } + + float max = 0; + for (int x = 0; x < terraindata.heightmapWidth; x++) + { + for (int y = 0; y < terraindata.heightmapHeight; y++) + { + float s = rawHeights[y, x] * terraindata.heightmapScale.y; + max = (s > max) ? s : max; + array = BitConverter.GetBytes(s); + foreach (byte b in array) + { + data[pointer++] = b; + } + } + } + File.WriteAllBytes(Application.dataPath + "/" + "heightmap.map", data); + EditorUtility.DisplayDialog("Heightmap Duplicated", "Saved as PNG in Assets/ as: " + "heightmap.map maxheight:" + max + " width:" + terraindata.size.x + " height:" + terraindata.size.z, "Ok"); + + } + +} diff --git a/Unity network UDP/Assets/scripts/editor/TerrainExport.cs.meta b/Unity network UDP/Assets/scripts/editor/TerrainExport.cs.meta new file mode 100644 index 0000000..caf3eb9 --- /dev/null +++ b/Unity network UDP/Assets/scripts/editor/TerrainExport.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e4e69e764e1d0e444886b477010ea874 +timeCreated: 1461178068 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Unity network UDP/Assets/scripts/gamestate.meta b/Unity network UDP/Assets/scripts/gamestate.meta new file mode 100644 index 0000000..054473b --- /dev/null +++ b/Unity network UDP/Assets/scripts/gamestate.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 4433c6aa3dfe38c448fd03c00ae00b54 +folderAsset: yes +timeCreated: 1461099886 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Unity network UDP/Assets/scripts/gamestate/GameState.cs b/Unity network UDP/Assets/scripts/gamestate/GameState.cs new file mode 100644 index 0000000..e84dcb5 --- /dev/null +++ b/Unity network UDP/Assets/scripts/gamestate/GameState.cs @@ -0,0 +1,25 @@ +using System; +using UnityEngine; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +class GameState : MonoBehaviour +{ + + void Start() + { + + } + + void Update() + { + + } + + void OnGUI() + { + + } + +} diff --git a/Unity network UDP/Assets/scripts/gamestate/GameState.cs.meta b/Unity network UDP/Assets/scripts/gamestate/GameState.cs.meta new file mode 100644 index 0000000..f72c744 --- /dev/null +++ b/Unity network UDP/Assets/scripts/gamestate/GameState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7764a314530f3b44686c82db227ddf1e +timeCreated: 1461152479 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Unity network UDP/Assets/scripts/gamestate/MainState.cs b/Unity network UDP/Assets/scripts/gamestate/MainState.cs new file mode 100644 index 0000000..dc0a259 --- /dev/null +++ b/Unity network UDP/Assets/scripts/gamestate/MainState.cs @@ -0,0 +1,192 @@ +using System; +using UnityEngine; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +class MainState : MonoBehaviour +{ + public string stringPseudo = "Pseudo"; + public string stringHost = "IP:PORT"; + private int preStatus = -1; + + public float preTime = 0; + public Boolean windowOpen = false; + public int winID = -1; + public Rect windowRect = new Rect(Screen.width / 2 - 100, Screen.height / 2 - 50, 200, 100); + + void Start() + { + windowRect = new Rect(Screen.width / 2 - 100, Screen.height / 2 - 50, 200, 100); + } + + void Update() + { + if(preStatus != MainClient.connected) + { + if (MainClient.connected == MainState_Connection_Request_Packet.REQUEST) + { + preTime = Time.time; + } + if (MainClient.connected == MainState_Connection_Request_Packet.ACCEPTED) + { + winID = 0; + windowOpen = true; + } + if (MainClient.connected == MainState_Connection_Request_Packet.REFUSED) + { + winID = 5; + windowOpen = true; + } + if (MainClient.connected == MainState_Connection_Request_Packet.TIME_OUT) + { + winID = 4; + windowOpen = true; + MainClient.client.disconnect(); + } + if (MainClient.connected == MainState_Connection_Request_Packet.ALREADY_CONNECTED) + { + winID = 7; + windowOpen = true; + } + if (MainClient.connected == MainState_Connection_Request_Packet.PSEUDO_INCORRECT) + { + winID = 2; + windowOpen = true; + } + preStatus = MainClient.connected; + } + if(preStatus == 0 && preStatus == MainClient.connected) + { + if ((Time.time - preTime) >= 10) + { + MainClient.connected = MainState_Connection_Request_Packet.TIME_OUT; + } + } + } + + void OnGUI() + { + GUILayout.BeginArea(new Rect(Screen.width/2 - 50, Screen.height / 2 - 50, 100, 100)); + stringHost = GUILayout.TextField(stringHost); + stringPseudo = GUILayout.TextField(stringPseudo); + if (GUILayout.Button("Login")) + { + if(stringHost.Length > 0) + { + if(stringPseudo.Length > 0) + { + string[] c = stringHost.Split(':'); + string host = ""; + int port = 9999; + if (c.Length == 1) + { + host = c[0]; + MainClient.connect(host, port, stringPseudo); + winID = 6; + windowOpen = true; + } + else + { + host = c[0]; + if (Int32.TryParse(c[1], out port)) + { + MainClient.connect(host, port, stringPseudo); + winID = 6; + windowOpen = true; + } + else + { + winID = 1; + windowOpen = true; + } + } + } + else + { + winID = 2; + windowOpen = true; + } + + }else + { + winID = 3; + windowOpen = true; + } + } + GUILayout.EndArea(); + if (windowOpen) + { + GUI.Box(windowRect, ""); + GUI.Box(windowRect, ""); + GUI.Box(windowRect, ""); + GUI.Box(windowRect, ""); + windowRect = GUILayout.Window(winID, windowRect, connectedWindow, "Information"); + } + + } + + void connectedWindow(int windowID) + { + if(windowID == 0) + { + GUILayout.Label("Connexion réussi !"); + if (GUILayout.Button("Valider")) + { + windowOpen = false; + } + } + else if (windowID == 1) + { + GUILayout.Label("Le Port entré est incorrect !"); + if (GUILayout.Button("Valider")) + { + windowOpen = false; + } + } + else if (windowID == 2) + { + GUILayout.Label("Pseudo incorrect !"); + if (GUILayout.Button("Valider")) + { + windowOpen = false; + } + } + else if (windowID == 3) + { + GUILayout.Label("Aucune ip entré !"); + if (GUILayout.Button("Valider")) + { + windowOpen = false; + } + } + else if (windowID == 4) + { + GUILayout.Label("Echec de la connexion"); + if (GUILayout.Button("Valider")) + { + windowOpen = false; + } + } + else if (windowID == 5) + { + GUILayout.Label("Connexion refusée !"); + if (GUILayout.Button("Valider")) + { + windowOpen = false; + } + } + else if (windowID == 6) + { + GUILayout.Label("Connexion en cours..."); + } + else if (windowID == 7) + { + GUILayout.Label("Vous etes déja connecté !"); + if (GUILayout.Button("Valider")) + { + windowOpen = false; + } + } + } +} diff --git a/Unity network UDP/Assets/scripts/gamestate/MainState.cs.meta b/Unity network UDP/Assets/scripts/gamestate/MainState.cs.meta new file mode 100644 index 0000000..b3e0744 --- /dev/null +++ b/Unity network UDP/Assets/scripts/gamestate/MainState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: efde826cbfe60a64ebd845c9080b1d6b +timeCreated: 1461099889 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Unity network UDP/Assets/scripts/network.meta b/Unity network UDP/Assets/scripts/network.meta new file mode 100644 index 0000000..5f8f3d9 --- /dev/null +++ b/Unity network UDP/Assets/scripts/network.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: e2fc0e66fe770324a8c90d0be6e109c0 +folderAsset: yes +timeCreated: 1461077665 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Unity network UDP/Assets/scripts/network/Client.cs b/Unity network UDP/Assets/scripts/network/Client.cs new file mode 100644 index 0000000..1c821a3 --- /dev/null +++ b/Unity network UDP/Assets/scripts/network/Client.cs @@ -0,0 +1,60 @@ +using System; +using UnityEngine; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Net; +using System.Net.Sockets; +using System.Threading; + + +class Client +{ + private UdpClient client; + private IPEndPoint ep; + private Thread receiveThread; + + private volatile Boolean connected = false; + + public Client(String ip,int port) + { + ep = new IPEndPoint(IPAddress.Parse(ip), port); + client = new UdpClient(); + receiveThread = new Thread(new ThreadStart(loop)); + Register.registerClass(); + } + + public void connect() + { + client.Connect(ep); + connected = true; + receiveThread.Start(); + } + + public void loop() + { + while (connected) + { + byte[] data = client.Receive(ref ep); + DataBuffer dataBuffer = new DataBuffer(data); + int id = dataBuffer.getInt(); + IPacket packet = (IPacket)Register.instantiate(id); + packet.read(dataBuffer); + packet.manage(data, this); + } + } + + public void send(IPacket packet) + { + DataBuffer data = new DataBuffer(); + packet.write(data); + client.Send(data.getData(), data.getData().Length); + } + + public void disconnect() + { + client.Close(); + connected = false; + } + +} diff --git a/Unity network UDP/Assets/scripts/network/Client.cs.meta b/Unity network UDP/Assets/scripts/network/Client.cs.meta new file mode 100644 index 0000000..c59799d --- /dev/null +++ b/Unity network UDP/Assets/scripts/network/Client.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6ef5ac19c402f2c42a01c3f10df1e3e0 +timeCreated: 1461077674 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Unity network UDP/Assets/scripts/network/MainClient.cs b/Unity network UDP/Assets/scripts/network/MainClient.cs new file mode 100644 index 0000000..a8aedac --- /dev/null +++ b/Unity network UDP/Assets/scripts/network/MainClient.cs @@ -0,0 +1,22 @@ +using UnityEngine; + +class MainClient { + + public static Client client; + public static string pseudo; + public static int connected = -1; + + public static void connect (string host,int port,string pseudo) { + client = new Client(host, port); + client.connect(); + connected = 0; + client.send(new MainState_Connection_Request_Packet(pseudo, 0)); + } + + + public static void OnGUI() + { + + } + +} diff --git a/Unity network UDP/Assets/scripts/network/MainClient.cs.meta b/Unity network UDP/Assets/scripts/network/MainClient.cs.meta new file mode 100644 index 0000000..c7bec39 --- /dev/null +++ b/Unity network UDP/Assets/scripts/network/MainClient.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 353dd1b92e911804cba3e451a2a5aa47 +timeCreated: 1461092835 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Unity network UDP/Assets/scripts/network/common.meta b/Unity network UDP/Assets/scripts/network/common.meta new file mode 100644 index 0000000..d2d80d7 --- /dev/null +++ b/Unity network UDP/Assets/scripts/network/common.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 49ebafc3208dd5e42b7dcba1440f6f45 +folderAsset: yes +timeCreated: 1461077683 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Unity network UDP/Assets/scripts/network/common/DataBuffer.cs b/Unity network UDP/Assets/scripts/network/common/DataBuffer.cs new file mode 100644 index 0000000..4b79f39 --- /dev/null +++ b/Unity network UDP/Assets/scripts/network/common/DataBuffer.cs @@ -0,0 +1,214 @@ +using UnityEngine; +using System.Collections; +using System; + +public class DataBuffer{ + + //readonly constant static -> const non static + public static readonly int SIZE = 1024; + + private byte[] data; + private int pointer; + + public DataBuffer() + { + data = new byte[SIZE]; + pointer = 0; + } + + public DataBuffer(byte[] data) + { + this.data = data; + pointer = 0; + } + + public void put(byte a) + { + if (pointer >= SIZE) + { + Debug.Log( "Databuffer write overflow"); + return; + } + data[pointer++] = a; + } + + public void put(sbyte a) + { + if (pointer >= SIZE) + { + Debug.Log("Databuffer write overflow"); + return; + } + data[pointer++] = (byte)a; + } + + public void put(short a) + { + put((byte)((a >> 8) & 0xff)); + put((byte)((a >> 0) & 0xff)); + } + + public void put(int a) + { + put((byte)((a >> 24) & 0xff)); + put((byte)((a >> 16) & 0xff)); + put((byte)((a >> 8) & 0xff)); + put((byte)((a >> 0) & 0xff)); + } + + public void put(long a) + { + put((byte)((a >> 56) & 0xff)); + put((byte)((a >> 48) & 0xff)); + put((byte)((a >> 40) & 0xff)); + put((byte)((a >> 32) & 0xff)); + put((byte)((a >> 24) & 0xff)); + put((byte)((a >> 16) & 0xff)); + put((byte)((a >> 8) & 0xff)); + put((byte)((a >> 0) & 0xff)); + } + + public void put(float a) + { + byte[] array = BitConverter.GetBytes(a); + foreach(byte b in array) + { + put(b); + } + } + + + public void put(double a) + { + byte[] array = BitConverter.GetBytes(a); + foreach (byte b in array) + { + put(b); + } + } + + public void put(char a) + { + put((byte)a); + } + + public void put(String a) + { + char[] b = a.ToCharArray(); + put(a.Length); + for (int i = 0; i < a.Length; i++) + { + put(b[i]); + } + } + + public byte getByte() + { + if (pointer >= SIZE) + { + Debug.Log("Databuffer write overflow"); + return 0; + } + return data[pointer++]; + } + + public sbyte getSByte() + { + if (pointer >= SIZE) + { + Debug.Log("Databuffer write overflow"); + return 0; + } + return (sbyte)data[pointer++]; + } + + public short getShort() + { + return (short)(( + (getByte() << 8) & 0xff00) | + (getByte() & 0xff)); + } + + public int getInt() + { + return (int)(( + (getByte() << 24) & 0xff000000) | + (getByte() << 16 & 0xff0000) | + (getByte() << 8 & 0xff00) | + (getByte() & 0xff)); + } + + public long getLong() + { + return (long)( + ((ulong)((long)getByte() << 56) & 0xff00000000000000L) | + ((ulong)((long)getByte() << 48) & 0xff000000000000L) | + ((ulong)((long)getByte() << 40) & 0xff0000000000L) | + (ulong)(((long)getByte() << 32) & 0xff00000000L) | + ((ulong)((long)getByte() << 24) & 0xff000000L) | + ((ulong)((long)getByte() << 16) & 0xff0000L) | + ((ulong)((long)getByte() << 8) & 0xff00L) | + ((ulong)(long)getByte() & 0xffL)); + } + + public float getFloat() + { + byte[] array = new byte[4] { getByte(), getByte(), getByte(), getByte() }; + return BitConverter.ToSingle(array, 0); + } + + public double getDouble() + { + byte[] array = new byte[8] { getByte(), getByte(), getByte(), getByte(), getByte(), getByte(), getByte(), getByte() }; + return BitConverter.ToDouble(array, 0); + } + + public char getChar() + { + return (char)getByte(); + } + + public String getString() + { + int size = getInt(); + char[] st = new char[size]; + for (int i = 0; i < size; i++) + { + st[i] = getChar(); + } + return new String(st); + } + + public byte[] getData() + { + return data; + } + + public void setData(byte[] data) + { + this.data = data; + } + + public int getPointer() + { + return pointer; + } + + public void setPointer(int pointer) + { + this.pointer = pointer; + } + + public static int getSize() + { + return SIZE; + } + + public void clear() + { + pointer = 0; + } + + + +} diff --git a/Unity network UDP/Assets/scripts/network/common/DataBuffer.cs.meta b/Unity network UDP/Assets/scripts/network/common/DataBuffer.cs.meta new file mode 100644 index 0000000..37cc3a5 --- /dev/null +++ b/Unity network UDP/Assets/scripts/network/common/DataBuffer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 078e293494940144a9d5d954dc84daed +timeCreated: 1461077692 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Unity network UDP/Assets/scripts/network/common/IPacket.cs b/Unity network UDP/Assets/scripts/network/common/IPacket.cs new file mode 100644 index 0000000..36a0f1d --- /dev/null +++ b/Unity network UDP/Assets/scripts/network/common/IPacket.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +interface IPacket +{ + void read(DataBuffer data); + void write(DataBuffer data); + void manage(byte[] data, Client client); +} diff --git a/Unity network UDP/Assets/scripts/network/common/IPacket.cs.meta b/Unity network UDP/Assets/scripts/network/common/IPacket.cs.meta new file mode 100644 index 0000000..e4476c8 --- /dev/null +++ b/Unity network UDP/Assets/scripts/network/common/IPacket.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c5c6e5983b09e5b45a1c0ff1cb10f177 +timeCreated: 1461092836 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Unity network UDP/Assets/scripts/network/common/Register.cs b/Unity network UDP/Assets/scripts/network/common/Register.cs new file mode 100644 index 0000000..4a89707 --- /dev/null +++ b/Unity network UDP/Assets/scripts/network/common/Register.cs @@ -0,0 +1,36 @@ +using UnityEngine; +using System.Collections; +using System; + +public class Register { + + public static Type[] registeredClass; + + public static void registerClass() + { + registeredClass = new Type[] { + typeof(MessagePacket), + typeof(MainState_Connection_Request_Packet), + typeof(Disconnect_Client_Packet) + }; + } + + public static Type getClass(int id) + { + return registeredClass[id]; + } + + public static int getId(Type cl) + { + for (int i = 0; i < registeredClass.Length; i++) + { + if (cl == registeredClass[i]) return i; + } + return -1; + } + + public static object instantiate(int id) + { + return getClass(id).GetConstructor(Type.EmptyTypes).Invoke(Type.EmptyTypes); + } +} diff --git a/Unity network UDP/Assets/scripts/network/common/Register.cs.meta b/Unity network UDP/Assets/scripts/network/common/Register.cs.meta new file mode 100644 index 0000000..db8e7de --- /dev/null +++ b/Unity network UDP/Assets/scripts/network/common/Register.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7b248295a2003cb4f8f2c02963c4dc69 +timeCreated: 1461091725 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Unity network UDP/Assets/scripts/network/packet.meta b/Unity network UDP/Assets/scripts/network/packet.meta new file mode 100644 index 0000000..12e5b3c --- /dev/null +++ b/Unity network UDP/Assets/scripts/network/packet.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: eafcd88293cff404b855b1726af268b7 +folderAsset: yes +timeCreated: 1461092835 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Unity network UDP/Assets/scripts/network/packet/Disconnect_Client_Packet.cs b/Unity network UDP/Assets/scripts/network/packet/Disconnect_Client_Packet.cs new file mode 100644 index 0000000..afe9d5c --- /dev/null +++ b/Unity network UDP/Assets/scripts/network/packet/Disconnect_Client_Packet.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +class Disconnect_Client_Packet : IPacket +{ + public string pseudo; + + public Disconnect_Client_Packet() { } + + public Disconnect_Client_Packet(string pseudo) { this.pseudo = pseudo; } + + void IPacket.read(DataBuffer data) + { + this.pseudo = data.getString(); + } + + void IPacket.write(DataBuffer data) + { + data.put(Register.getId(typeof(Disconnect_Client_Packet))); + data.put(this.pseudo); + } + + void IPacket.manage(byte[] data, Client client) + { + if (pseudo.Equals(MainClient.pseudo)) + { + MainClient.connected = MainState_Connection_Request_Packet.DISCONNECTED; + MainClient.client.disconnect(); + } + else + { + + } + } + + +} diff --git a/Unity network UDP/Assets/scripts/network/packet/Disconnect_Client_Packet.cs.meta b/Unity network UDP/Assets/scripts/network/packet/Disconnect_Client_Packet.cs.meta new file mode 100644 index 0000000..9e0eaad --- /dev/null +++ b/Unity network UDP/Assets/scripts/network/packet/Disconnect_Client_Packet.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 09c2a6099528c8445b15ffe7adbde542 +timeCreated: 1461172729 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Unity network UDP/Assets/scripts/network/packet/MainState_Connection_Request_Packet.cs b/Unity network UDP/Assets/scripts/network/packet/MainState_Connection_Request_Packet.cs new file mode 100644 index 0000000..242ee59 --- /dev/null +++ b/Unity network UDP/Assets/scripts/network/packet/MainState_Connection_Request_Packet.cs @@ -0,0 +1,57 @@ +using System; +using UnityEngine; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +class MainState_Connection_Request_Packet : IPacket +{ + + public static readonly int REQUEST = 0, ACCEPTED = 1, REFUSED = 2, TIME_OUT = 3, ALREADY_CONNECTED = 4, PSEUDO_INCORRECT = 5,DISCONNECTED = 6; + + public String pseudo; + public int id; + + public MainState_Connection_Request_Packet() { } + + public MainState_Connection_Request_Packet(String pseudo,int id) + { + this.pseudo = pseudo; + this.id = id; + } + + void IPacket.write(DataBuffer data) + { + data.put(Register.getId(typeof(MainState_Connection_Request_Packet))); + data.put(pseudo); + data.put(id); + } + + void IPacket.read(DataBuffer data) + { + this.pseudo = data.getString(); + this.id = data.getInt(); + } + + void IPacket.manage(byte[] data, Client client) + { + if(id == ACCEPTED) + { + MainClient.connected = ACCEPTED; + MainClient.pseudo = this.pseudo; + } + else if(id == REFUSED) + { + MainClient.connected = REFUSED; + } + else if (id == ALREADY_CONNECTED) + { + MainClient.connected = ALREADY_CONNECTED; + } + else if (id == PSEUDO_INCORRECT) + { + MainClient.connected = PSEUDO_INCORRECT; + } + } + +} diff --git a/Unity network UDP/Assets/scripts/network/packet/MainState_Connection_Request_Packet.cs.meta b/Unity network UDP/Assets/scripts/network/packet/MainState_Connection_Request_Packet.cs.meta new file mode 100644 index 0000000..fc200b3 --- /dev/null +++ b/Unity network UDP/Assets/scripts/network/packet/MainState_Connection_Request_Packet.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e632acbe3e907fb42992ec51c2549272 +timeCreated: 1461155199 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Unity network UDP/Assets/scripts/network/packet/MessagePacket.cs b/Unity network UDP/Assets/scripts/network/packet/MessagePacket.cs new file mode 100644 index 0000000..9972fb2 --- /dev/null +++ b/Unity network UDP/Assets/scripts/network/packet/MessagePacket.cs @@ -0,0 +1,38 @@ +using System; +using UnityEngine; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +class MessagePacket : IPacket +{ + + private String pseudo, message; + + public MessagePacket() { } + + public MessagePacket(String pseudo, String message) + { + this.message = message; + this.pseudo = pseudo; + } + + void IPacket.read(DataBuffer data) + { + this.pseudo = data.getString(); + this.message = data.getString(); + } + + void IPacket.write(DataBuffer data) + { + data.put(Register.getId(typeof(MessagePacket))); + data.put(this.pseudo); + data.put(this.message); + } + + void IPacket.manage(byte[] data,Client client) + { + Debug.Log(this.pseudo + " : " + this.message); + } + +} diff --git a/Unity network UDP/Assets/scripts/network/packet/MessagePacket.cs.meta b/Unity network UDP/Assets/scripts/network/packet/MessagePacket.cs.meta new file mode 100644 index 0000000..795d4d2 --- /dev/null +++ b/Unity network UDP/Assets/scripts/network/packet/MessagePacket.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6df0f62eafd1c224ea52a0721bc3e4b1 +timeCreated: 1461092835 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Unity network UDP/Assets/scripts/network/packet/PingPacket.cs b/Unity network UDP/Assets/scripts/network/packet/PingPacket.cs new file mode 100644 index 0000000..bb9c41f --- /dev/null +++ b/Unity network UDP/Assets/scripts/network/packet/PingPacket.cs @@ -0,0 +1,27 @@ +using UnityEngine; +using System.Collections; + +public class PingPacket : IPacket { + + public long current; + + public PingPacket() + { + + } + + void IPacket.read(DataBuffer data) + { + + } + + void IPacket.write(DataBuffer data) + { + + } + + void IPacket.manage(byte[] data, Client client) + { + + } +} diff --git a/Unity network UDP/Assets/scripts/network/packet/PingPacket.cs.meta b/Unity network UDP/Assets/scripts/network/packet/PingPacket.cs.meta new file mode 100644 index 0000000..c3e5a19 --- /dev/null +++ b/Unity network UDP/Assets/scripts/network/packet/PingPacket.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6c3875a60f90ff146950d2ad190f0e09 +timeCreated: 1462518396 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Unity network UDP/Library/AnnotationManager b/Unity network UDP/Library/AnnotationManager new file mode 100644 index 0000000..6412ebb Binary files /dev/null and b/Unity network UDP/Library/AnnotationManager differ diff --git a/Unity network UDP/Library/AssetImportState b/Unity network UDP/Library/AssetImportState new file mode 100644 index 0000000..99e6017 --- /dev/null +++ b/Unity network UDP/Library/AssetImportState @@ -0,0 +1 @@ +5;0;6;-1 \ No newline at end of file diff --git a/Unity network UDP/Library/AssetServerCacheV3 b/Unity network UDP/Library/AssetServerCacheV3 new file mode 100644 index 0000000..1118a8e Binary files /dev/null and b/Unity network UDP/Library/AssetServerCacheV3 differ diff --git a/Unity network UDP/Library/AssetVersioning.db b/Unity network UDP/Library/AssetVersioning.db new file mode 100644 index 0000000..2f50a71 Binary files /dev/null and b/Unity network UDP/Library/AssetVersioning.db differ diff --git a/Unity network UDP/Library/BuildPlayer.prefs b/Unity network UDP/Library/BuildPlayer.prefs new file mode 100644 index 0000000..e69de29 diff --git a/Unity network UDP/Library/BuildSettings.asset b/Unity network UDP/Library/BuildSettings.asset new file mode 100644 index 0000000..522d332 Binary files /dev/null and b/Unity network UDP/Library/BuildSettings.asset differ diff --git a/Unity network UDP/Library/CurrentLayout.dwlt b/Unity network UDP/Library/CurrentLayout.dwlt new file mode 100644 index 0000000..e79b41c Binary files /dev/null and b/Unity network UDP/Library/CurrentLayout.dwlt differ diff --git a/Unity network UDP/Library/EditorUserBuildSettings.asset b/Unity network UDP/Library/EditorUserBuildSettings.asset new file mode 100644 index 0000000..a0c5122 Binary files /dev/null and b/Unity network UDP/Library/EditorUserBuildSettings.asset differ diff --git a/Unity network UDP/Library/EditorUserSettings.asset b/Unity network UDP/Library/EditorUserSettings.asset new file mode 100644 index 0000000..beceece Binary files /dev/null and b/Unity network UDP/Library/EditorUserSettings.asset differ diff --git a/Unity network UDP/Library/InspectorExpandedItems.asset b/Unity network UDP/Library/InspectorExpandedItems.asset new file mode 100644 index 0000000..bcbef11 Binary files /dev/null and b/Unity network UDP/Library/InspectorExpandedItems.asset differ diff --git a/Unity network UDP/Library/LastSceneManagerSetup.txt b/Unity network UDP/Library/LastSceneManagerSetup.txt new file mode 100644 index 0000000..82733db --- /dev/null +++ b/Unity network UDP/Library/LastSceneManagerSetup.txt @@ -0,0 +1,4 @@ +sceneSetups: +- path: Assets/scenes/GameMenu.unity + isLoaded: 1 + isActive: 1 diff --git a/Unity network UDP/Library/LibraryFormatVersion.txt b/Unity network UDP/Library/LibraryFormatVersion.txt new file mode 100644 index 0000000..6185f09 --- /dev/null +++ b/Unity network UDP/Library/LibraryFormatVersion.txt @@ -0,0 +1,2 @@ +unityRebuildLibraryVersion: 11 +unityForwardCompatibleVersion: 40 diff --git a/Unity network UDP/Library/MonoManager.asset b/Unity network UDP/Library/MonoManager.asset new file mode 100644 index 0000000..486afdc Binary files /dev/null and b/Unity network UDP/Library/MonoManager.asset differ diff --git a/Unity network UDP/Library/ProjectSettings.asset b/Unity network UDP/Library/ProjectSettings.asset new file mode 100644 index 0000000..a3d72e1 Binary files /dev/null and b/Unity network UDP/Library/ProjectSettings.asset differ diff --git a/Unity network UDP/Library/ScriptAssemblies/Assembly-CSharp-Editor.dll b/Unity network UDP/Library/ScriptAssemblies/Assembly-CSharp-Editor.dll new file mode 100644 index 0000000..fb720a4 Binary files /dev/null and b/Unity network UDP/Library/ScriptAssemblies/Assembly-CSharp-Editor.dll differ diff --git a/Unity network UDP/Library/ScriptAssemblies/Assembly-CSharp-Editor.dll.mdb b/Unity network UDP/Library/ScriptAssemblies/Assembly-CSharp-Editor.dll.mdb new file mode 100644 index 0000000..2d57ebe Binary files /dev/null and b/Unity network UDP/Library/ScriptAssemblies/Assembly-CSharp-Editor.dll.mdb differ diff --git a/Unity network UDP/Library/ScriptAssemblies/Assembly-CSharp.dll b/Unity network UDP/Library/ScriptAssemblies/Assembly-CSharp.dll new file mode 100644 index 0000000..8d345d9 Binary files /dev/null and b/Unity network UDP/Library/ScriptAssemblies/Assembly-CSharp.dll differ diff --git a/Unity network UDP/Library/ScriptAssemblies/Assembly-CSharp.dll.mdb b/Unity network UDP/Library/ScriptAssemblies/Assembly-CSharp.dll.mdb new file mode 100644 index 0000000..cf5bcaf Binary files /dev/null and b/Unity network UDP/Library/ScriptAssemblies/Assembly-CSharp.dll.mdb differ diff --git a/Unity network UDP/Library/ScriptAssemblies/Assembly-UnityScript.dll b/Unity network UDP/Library/ScriptAssemblies/Assembly-UnityScript.dll new file mode 100644 index 0000000..65e40d2 Binary files /dev/null and b/Unity network UDP/Library/ScriptAssemblies/Assembly-UnityScript.dll differ diff --git a/Unity network UDP/Library/ScriptAssemblies/Assembly-UnityScript.dll.mdb b/Unity network UDP/Library/ScriptAssemblies/Assembly-UnityScript.dll.mdb new file mode 100644 index 0000000..38f9a07 Binary files /dev/null and b/Unity network UDP/Library/ScriptAssemblies/Assembly-UnityScript.dll.mdb differ diff --git a/Unity network UDP/Library/ScriptMapper b/Unity network UDP/Library/ScriptMapper new file mode 100644 index 0000000..0e18a2e Binary files /dev/null and b/Unity network UDP/Library/ScriptMapper differ diff --git a/Unity network UDP/Library/ShaderCache.db b/Unity network UDP/Library/ShaderCache.db new file mode 100644 index 0000000..3941199 Binary files /dev/null and b/Unity network UDP/Library/ShaderCache.db differ diff --git a/Unity network UDP/Library/ShaderCache/0/04d3a9df26e31d3d8ee54c3c9746b57e.bin b/Unity network UDP/Library/ShaderCache/0/04d3a9df26e31d3d8ee54c3c9746b57e.bin new file mode 100644 index 0000000..33c120c Binary files /dev/null and b/Unity network UDP/Library/ShaderCache/0/04d3a9df26e31d3d8ee54c3c9746b57e.bin differ diff --git a/Unity network UDP/Library/ShaderCache/0/0e30af08bdafd9cf2eb7b4e435250e6b.bin b/Unity network UDP/Library/ShaderCache/0/0e30af08bdafd9cf2eb7b4e435250e6b.bin new file mode 100644 index 0000000..114405c Binary files /dev/null and b/Unity network UDP/Library/ShaderCache/0/0e30af08bdafd9cf2eb7b4e435250e6b.bin differ diff --git a/Unity network UDP/Library/ShaderCache/3/3e8cd67a2c832c1735f0be6a96abd8e8.bin b/Unity network UDP/Library/ShaderCache/3/3e8cd67a2c832c1735f0be6a96abd8e8.bin new file mode 100644 index 0000000..6ddce1b Binary files /dev/null and b/Unity network UDP/Library/ShaderCache/3/3e8cd67a2c832c1735f0be6a96abd8e8.bin differ diff --git a/Unity network UDP/Library/ShaderCache/4/46d6af68c44958c7acbb03ceb65fdffe.bin b/Unity network UDP/Library/ShaderCache/4/46d6af68c44958c7acbb03ceb65fdffe.bin new file mode 100644 index 0000000..4718189 Binary files /dev/null and b/Unity network UDP/Library/ShaderCache/4/46d6af68c44958c7acbb03ceb65fdffe.bin differ diff --git a/Unity network UDP/Library/ShaderCache/5/504011ad47f85ebd6e9706aa71c90d7d.bin b/Unity network UDP/Library/ShaderCache/5/504011ad47f85ebd6e9706aa71c90d7d.bin new file mode 100644 index 0000000..43a3586 Binary files /dev/null and b/Unity network UDP/Library/ShaderCache/5/504011ad47f85ebd6e9706aa71c90d7d.bin differ diff --git a/Unity network UDP/Library/ShaderCache/6/60aa83ad98fd2f5c4844fd730e59e106.bin b/Unity network UDP/Library/ShaderCache/6/60aa83ad98fd2f5c4844fd730e59e106.bin new file mode 100644 index 0000000..c9870e7 Binary files /dev/null and b/Unity network UDP/Library/ShaderCache/6/60aa83ad98fd2f5c4844fd730e59e106.bin differ diff --git a/Unity network UDP/Library/ShaderCache/7/71eff87268d2fb40883eefc503cc3ad5.bin b/Unity network UDP/Library/ShaderCache/7/71eff87268d2fb40883eefc503cc3ad5.bin new file mode 100644 index 0000000..1e573d8 Binary files /dev/null and b/Unity network UDP/Library/ShaderCache/7/71eff87268d2fb40883eefc503cc3ad5.bin differ diff --git a/Unity network UDP/Library/ShaderCache/7/7700f35574e553acc6b0cae933134b1a.bin b/Unity network UDP/Library/ShaderCache/7/7700f35574e553acc6b0cae933134b1a.bin new file mode 100644 index 0000000..541bffc Binary files /dev/null and b/Unity network UDP/Library/ShaderCache/7/7700f35574e553acc6b0cae933134b1a.bin differ diff --git a/Unity network UDP/Library/ShaderCache/9/976ea39a8327a247e355958ae498a1cc.bin b/Unity network UDP/Library/ShaderCache/9/976ea39a8327a247e355958ae498a1cc.bin new file mode 100644 index 0000000..3605a51 Binary files /dev/null and b/Unity network UDP/Library/ShaderCache/9/976ea39a8327a247e355958ae498a1cc.bin differ diff --git a/Unity network UDP/Library/ShaderCache/a/a403d809a034755ec9b89a97e95dd7d0.bin b/Unity network UDP/Library/ShaderCache/a/a403d809a034755ec9b89a97e95dd7d0.bin new file mode 100644 index 0000000..0a1d352 Binary files /dev/null and b/Unity network UDP/Library/ShaderCache/a/a403d809a034755ec9b89a97e95dd7d0.bin differ diff --git a/Unity network UDP/Library/ShaderCache/b/b205d73d4889a2f9d426bfe0e39153b0.bin b/Unity network UDP/Library/ShaderCache/b/b205d73d4889a2f9d426bfe0e39153b0.bin new file mode 100644 index 0000000..0a3f865 Binary files /dev/null and b/Unity network UDP/Library/ShaderCache/b/b205d73d4889a2f9d426bfe0e39153b0.bin differ diff --git a/Unity network UDP/Library/ShaderCache/b/bd226a2e8ca352015a7a03c047b0a278.bin b/Unity network UDP/Library/ShaderCache/b/bd226a2e8ca352015a7a03c047b0a278.bin new file mode 100644 index 0000000..3deeaf9 Binary files /dev/null and b/Unity network UDP/Library/ShaderCache/b/bd226a2e8ca352015a7a03c047b0a278.bin differ diff --git a/Unity network UDP/Library/ShaderCache/c/c002bc5beab0809881510db7cfe1f20e.bin b/Unity network UDP/Library/ShaderCache/c/c002bc5beab0809881510db7cfe1f20e.bin new file mode 100644 index 0000000..5b81b9c Binary files /dev/null and b/Unity network UDP/Library/ShaderCache/c/c002bc5beab0809881510db7cfe1f20e.bin differ diff --git a/Unity network UDP/Library/ShaderCache/c/c184128e93f367b1dd7eedb2811a7c81.bin b/Unity network UDP/Library/ShaderCache/c/c184128e93f367b1dd7eedb2811a7c81.bin new file mode 100644 index 0000000..45aaca8 Binary files /dev/null and b/Unity network UDP/Library/ShaderCache/c/c184128e93f367b1dd7eedb2811a7c81.bin differ diff --git a/Unity network UDP/Library/ShaderCache/d/d8d3e4cc4dc99f1b6a3a996455b6aa3e.bin b/Unity network UDP/Library/ShaderCache/d/d8d3e4cc4dc99f1b6a3a996455b6aa3e.bin new file mode 100644 index 0000000..aad5b38 Binary files /dev/null and b/Unity network UDP/Library/ShaderCache/d/d8d3e4cc4dc99f1b6a3a996455b6aa3e.bin differ diff --git a/Unity network UDP/Library/ShaderCache/e/e9b747857b024bc032b0bd5fbdd57fd5.bin b/Unity network UDP/Library/ShaderCache/e/e9b747857b024bc032b0bd5fbdd57fd5.bin new file mode 100644 index 0000000..a5d5d6c Binary files /dev/null and b/Unity network UDP/Library/ShaderCache/e/e9b747857b024bc032b0bd5fbdd57fd5.bin differ diff --git a/Unity network UDP/Library/ShaderCache/e/ebd9a6e0f2ff57a8d4d334e98bfed16d.bin b/Unity network UDP/Library/ShaderCache/e/ebd9a6e0f2ff57a8d4d334e98bfed16d.bin new file mode 100644 index 0000000..9cf00c8 Binary files /dev/null and b/Unity network UDP/Library/ShaderCache/e/ebd9a6e0f2ff57a8d4d334e98bfed16d.bin differ diff --git a/Unity network UDP/Library/ShaderCache/f/f116ebc5a53e4f79218d68fa0b6c7d4d.bin b/Unity network UDP/Library/ShaderCache/f/f116ebc5a53e4f79218d68fa0b6c7d4d.bin new file mode 100644 index 0000000..2491fcc Binary files /dev/null and b/Unity network UDP/Library/ShaderCache/f/f116ebc5a53e4f79218d68fa0b6c7d4d.bin differ diff --git a/Unity network UDP/Library/ShaderCache/f/f5372844ddd998674863285bd3c27d03.bin b/Unity network UDP/Library/ShaderCache/f/f5372844ddd998674863285bd3c27d03.bin new file mode 100644 index 0000000..5f7e674 Binary files /dev/null and b/Unity network UDP/Library/ShaderCache/f/f5372844ddd998674863285bd3c27d03.bin differ diff --git a/Unity network UDP/Library/ShaderCache/f/f6a73cdf0d4d475aae18d962af05f567.bin b/Unity network UDP/Library/ShaderCache/f/f6a73cdf0d4d475aae18d962af05f567.bin new file mode 100644 index 0000000..e64286e Binary files /dev/null and b/Unity network UDP/Library/ShaderCache/f/f6a73cdf0d4d475aae18d962af05f567.bin differ diff --git a/Unity network UDP/Library/ShaderCache/f/f803dd37b5a63c3fbdee9f174da78b81.bin b/Unity network UDP/Library/ShaderCache/f/f803dd37b5a63c3fbdee9f174da78b81.bin new file mode 100644 index 0000000..7e77e85 Binary files /dev/null and b/Unity network UDP/Library/ShaderCache/f/f803dd37b5a63c3fbdee9f174da78b81.bin differ diff --git a/Unity network UDP/Library/ShaderCache/f/fc250f5e6c8b283da5d8081d2d58425c.bin b/Unity network UDP/Library/ShaderCache/f/fc250f5e6c8b283da5d8081d2d58425c.bin new file mode 100644 index 0000000..541bffc Binary files /dev/null and b/Unity network UDP/Library/ShaderCache/f/fc250f5e6c8b283da5d8081d2d58425c.bin differ diff --git a/Unity network UDP/Library/assetDatabase3 b/Unity network UDP/Library/assetDatabase3 new file mode 100644 index 0000000..7ea380f Binary files /dev/null and b/Unity network UDP/Library/assetDatabase3 differ diff --git a/Unity network UDP/Library/expandedItems b/Unity network UDP/Library/expandedItems new file mode 100644 index 0000000..69220f5 Binary files /dev/null and b/Unity network UDP/Library/expandedItems differ diff --git a/Unity network UDP/Library/metadata/00/00000000000000001000000000000000 b/Unity network UDP/Library/metadata/00/00000000000000001000000000000000 new file mode 100644 index 0000000..f8996fa Binary files /dev/null and b/Unity network UDP/Library/metadata/00/00000000000000001000000000000000 differ diff --git a/Unity network UDP/Library/metadata/00/00000000000000001000000000000000.info b/Unity network UDP/Library/metadata/00/00000000000000001000000000000000.info new file mode 100644 index 0000000..c725224 Binary files /dev/null and b/Unity network UDP/Library/metadata/00/00000000000000001000000000000000.info differ diff --git a/Unity network UDP/Library/metadata/00/00000000000000002000000000000000 b/Unity network UDP/Library/metadata/00/00000000000000002000000000000000 new file mode 100644 index 0000000..3a15107 Binary files /dev/null and b/Unity network UDP/Library/metadata/00/00000000000000002000000000000000 differ diff --git a/Unity network UDP/Library/metadata/00/00000000000000002000000000000000.info b/Unity network UDP/Library/metadata/00/00000000000000002000000000000000.info new file mode 100644 index 0000000..82ff5c9 Binary files /dev/null and b/Unity network UDP/Library/metadata/00/00000000000000002000000000000000.info differ diff --git a/Unity network UDP/Library/metadata/00/00000000000000003000000000000000 b/Unity network UDP/Library/metadata/00/00000000000000003000000000000000 new file mode 100644 index 0000000..82e7937 Binary files /dev/null and b/Unity network UDP/Library/metadata/00/00000000000000003000000000000000 differ diff --git a/Unity network UDP/Library/metadata/00/00000000000000003000000000000000.info b/Unity network UDP/Library/metadata/00/00000000000000003000000000000000.info new file mode 100644 index 0000000..e220c12 Binary files /dev/null and b/Unity network UDP/Library/metadata/00/00000000000000003000000000000000.info differ diff --git a/Unity network UDP/Library/metadata/00/00000000000000004000000000000000 b/Unity network UDP/Library/metadata/00/00000000000000004000000000000000 new file mode 100644 index 0000000..682ea34 Binary files /dev/null and b/Unity network UDP/Library/metadata/00/00000000000000004000000000000000 differ diff --git a/Unity network UDP/Library/metadata/00/00000000000000004000000000000000.info b/Unity network UDP/Library/metadata/00/00000000000000004000000000000000.info new file mode 100644 index 0000000..fab67de Binary files /dev/null and b/Unity network UDP/Library/metadata/00/00000000000000004000000000000000.info differ diff --git a/Unity network UDP/Library/metadata/00/00000000000000004100000000000000 b/Unity network UDP/Library/metadata/00/00000000000000004100000000000000 new file mode 100644 index 0000000..013b2e3 Binary files /dev/null and b/Unity network UDP/Library/metadata/00/00000000000000004100000000000000 differ diff --git a/Unity network UDP/Library/metadata/00/00000000000000004100000000000000.info b/Unity network UDP/Library/metadata/00/00000000000000004100000000000000.info new file mode 100644 index 0000000..4ed8d67 Binary files /dev/null and b/Unity network UDP/Library/metadata/00/00000000000000004100000000000000.info differ diff --git a/Unity network UDP/Library/metadata/00/00000000000000005000000000000000 b/Unity network UDP/Library/metadata/00/00000000000000005000000000000000 new file mode 100644 index 0000000..e581690 Binary files /dev/null and b/Unity network UDP/Library/metadata/00/00000000000000005000000000000000 differ diff --git a/Unity network UDP/Library/metadata/00/00000000000000005000000000000000.info b/Unity network UDP/Library/metadata/00/00000000000000005000000000000000.info new file mode 100644 index 0000000..d9df32d Binary files /dev/null and b/Unity network UDP/Library/metadata/00/00000000000000005000000000000000.info differ diff --git a/Unity network UDP/Library/metadata/00/00000000000000005100000000000000 b/Unity network UDP/Library/metadata/00/00000000000000005100000000000000 new file mode 100644 index 0000000..e9cdf56 Binary files /dev/null and b/Unity network UDP/Library/metadata/00/00000000000000005100000000000000 differ diff --git a/Unity network UDP/Library/metadata/00/00000000000000005100000000000000.info b/Unity network UDP/Library/metadata/00/00000000000000005100000000000000.info new file mode 100644 index 0000000..5660ffb Binary files /dev/null and b/Unity network UDP/Library/metadata/00/00000000000000005100000000000000.info differ diff --git a/Unity network UDP/Library/metadata/00/00000000000000006000000000000000 b/Unity network UDP/Library/metadata/00/00000000000000006000000000000000 new file mode 100644 index 0000000..69f7820 Binary files /dev/null and b/Unity network UDP/Library/metadata/00/00000000000000006000000000000000 differ diff --git a/Unity network UDP/Library/metadata/00/00000000000000006000000000000000.info b/Unity network UDP/Library/metadata/00/00000000000000006000000000000000.info new file mode 100644 index 0000000..eec1374 Binary files /dev/null and b/Unity network UDP/Library/metadata/00/00000000000000006000000000000000.info differ diff --git a/Unity network UDP/Library/metadata/00/00000000000000006100000000000000 b/Unity network UDP/Library/metadata/00/00000000000000006100000000000000 new file mode 100644 index 0000000..35e9a09 Binary files /dev/null and b/Unity network UDP/Library/metadata/00/00000000000000006100000000000000 differ diff --git a/Unity network UDP/Library/metadata/00/00000000000000006100000000000000.info b/Unity network UDP/Library/metadata/00/00000000000000006100000000000000.info new file mode 100644 index 0000000..affc8ee Binary files /dev/null and b/Unity network UDP/Library/metadata/00/00000000000000006100000000000000.info differ diff --git a/Unity network UDP/Library/metadata/00/00000000000000007000000000000000 b/Unity network UDP/Library/metadata/00/00000000000000007000000000000000 new file mode 100644 index 0000000..c5cc12f Binary files /dev/null and b/Unity network UDP/Library/metadata/00/00000000000000007000000000000000 differ diff --git a/Unity network UDP/Library/metadata/00/00000000000000007000000000000000.info b/Unity network UDP/Library/metadata/00/00000000000000007000000000000000.info new file mode 100644 index 0000000..6fc5794 Binary files /dev/null and b/Unity network UDP/Library/metadata/00/00000000000000007000000000000000.info differ diff --git a/Unity network UDP/Library/metadata/00/00000000000000007100000000000000 b/Unity network UDP/Library/metadata/00/00000000000000007100000000000000 new file mode 100644 index 0000000..07a1fe9 Binary files /dev/null and b/Unity network UDP/Library/metadata/00/00000000000000007100000000000000 differ diff --git a/Unity network UDP/Library/metadata/00/00000000000000007100000000000000.info b/Unity network UDP/Library/metadata/00/00000000000000007100000000000000.info new file mode 100644 index 0000000..2e75dd7 Binary files /dev/null and b/Unity network UDP/Library/metadata/00/00000000000000007100000000000000.info differ diff --git a/Unity network UDP/Library/metadata/00/00000000000000008000000000000000 b/Unity network UDP/Library/metadata/00/00000000000000008000000000000000 new file mode 100644 index 0000000..2749c71 Binary files /dev/null and b/Unity network UDP/Library/metadata/00/00000000000000008000000000000000 differ diff --git a/Unity network UDP/Library/metadata/00/00000000000000008000000000000000.info b/Unity network UDP/Library/metadata/00/00000000000000008000000000000000.info new file mode 100644 index 0000000..de5d9a3 Binary files /dev/null and b/Unity network UDP/Library/metadata/00/00000000000000008000000000000000.info differ diff --git a/Unity network UDP/Library/metadata/00/00000000000000008100000000000000 b/Unity network UDP/Library/metadata/00/00000000000000008100000000000000 new file mode 100644 index 0000000..b2ae186 Binary files /dev/null and b/Unity network UDP/Library/metadata/00/00000000000000008100000000000000 differ diff --git a/Unity network UDP/Library/metadata/00/00000000000000008100000000000000.info b/Unity network UDP/Library/metadata/00/00000000000000008100000000000000.info new file mode 100644 index 0000000..39b42c9 Binary files /dev/null and b/Unity network UDP/Library/metadata/00/00000000000000008100000000000000.info differ diff --git a/Unity network UDP/Library/metadata/00/00000000000000009000000000000000 b/Unity network UDP/Library/metadata/00/00000000000000009000000000000000 new file mode 100644 index 0000000..5be2d8b Binary files /dev/null and b/Unity network UDP/Library/metadata/00/00000000000000009000000000000000 differ diff --git a/Unity network UDP/Library/metadata/00/00000000000000009000000000000000.info b/Unity network UDP/Library/metadata/00/00000000000000009000000000000000.info new file mode 100644 index 0000000..90cbf24 Binary files /dev/null and b/Unity network UDP/Library/metadata/00/00000000000000009000000000000000.info differ diff --git a/Unity network UDP/Library/metadata/00/0000000000000000a000000000000000 b/Unity network UDP/Library/metadata/00/0000000000000000a000000000000000 new file mode 100644 index 0000000..4010a78 Binary files /dev/null and b/Unity network UDP/Library/metadata/00/0000000000000000a000000000000000 differ diff --git a/Unity network UDP/Library/metadata/00/0000000000000000a000000000000000.info b/Unity network UDP/Library/metadata/00/0000000000000000a000000000000000.info new file mode 100644 index 0000000..917cffe Binary files /dev/null and b/Unity network UDP/Library/metadata/00/0000000000000000a000000000000000.info differ diff --git a/Unity network UDP/Library/metadata/00/0000000000000000a100000000000000 b/Unity network UDP/Library/metadata/00/0000000000000000a100000000000000 new file mode 100644 index 0000000..55a00cb Binary files /dev/null and b/Unity network UDP/Library/metadata/00/0000000000000000a100000000000000 differ diff --git a/Unity network UDP/Library/metadata/00/0000000000000000a100000000000000.info b/Unity network UDP/Library/metadata/00/0000000000000000a100000000000000.info new file mode 100644 index 0000000..e2ae1e7 Binary files /dev/null and b/Unity network UDP/Library/metadata/00/0000000000000000a100000000000000.info differ diff --git a/Unity network UDP/Library/metadata/00/0000000000000000b000000000000000 b/Unity network UDP/Library/metadata/00/0000000000000000b000000000000000 new file mode 100644 index 0000000..5780b51 Binary files /dev/null and b/Unity network UDP/Library/metadata/00/0000000000000000b000000000000000 differ diff --git a/Unity network UDP/Library/metadata/00/0000000000000000b000000000000000.info b/Unity network UDP/Library/metadata/00/0000000000000000b000000000000000.info new file mode 100644 index 0000000..bd903b2 Binary files /dev/null and b/Unity network UDP/Library/metadata/00/0000000000000000b000000000000000.info differ diff --git a/Unity network UDP/Library/metadata/00/0000000000000000c000000000000000 b/Unity network UDP/Library/metadata/00/0000000000000000c000000000000000 new file mode 100644 index 0000000..a1cb8d9 Binary files /dev/null and b/Unity network UDP/Library/metadata/00/0000000000000000c000000000000000 differ diff --git a/Unity network UDP/Library/metadata/00/0000000000000000c000000000000000.info b/Unity network UDP/Library/metadata/00/0000000000000000c000000000000000.info new file mode 100644 index 0000000..36cd403 Binary files /dev/null and b/Unity network UDP/Library/metadata/00/0000000000000000c000000000000000.info differ diff --git a/Unity network UDP/Library/metadata/07/078e293494940144a9d5d954dc84daed b/Unity network UDP/Library/metadata/07/078e293494940144a9d5d954dc84daed new file mode 100644 index 0000000..2aa3fda Binary files /dev/null and b/Unity network UDP/Library/metadata/07/078e293494940144a9d5d954dc84daed differ diff --git a/Unity network UDP/Library/metadata/07/078e293494940144a9d5d954dc84daed.info b/Unity network UDP/Library/metadata/07/078e293494940144a9d5d954dc84daed.info new file mode 100644 index 0000000..5d43447 Binary files /dev/null and b/Unity network UDP/Library/metadata/07/078e293494940144a9d5d954dc84daed.info differ diff --git a/Unity network UDP/Library/metadata/09/09c2a6099528c8445b15ffe7adbde542 b/Unity network UDP/Library/metadata/09/09c2a6099528c8445b15ffe7adbde542 new file mode 100644 index 0000000..73c2c79 Binary files /dev/null and b/Unity network UDP/Library/metadata/09/09c2a6099528c8445b15ffe7adbde542 differ diff --git a/Unity network UDP/Library/metadata/09/09c2a6099528c8445b15ffe7adbde542.info b/Unity network UDP/Library/metadata/09/09c2a6099528c8445b15ffe7adbde542.info new file mode 100644 index 0000000..0557721 Binary files /dev/null and b/Unity network UDP/Library/metadata/09/09c2a6099528c8445b15ffe7adbde542.info differ diff --git a/Unity network UDP/Library/metadata/0c/0c3a130c5911fb94da97ee37073f4b81 b/Unity network UDP/Library/metadata/0c/0c3a130c5911fb94da97ee37073f4b81 new file mode 100644 index 0000000..b3ad844 Binary files /dev/null and b/Unity network UDP/Library/metadata/0c/0c3a130c5911fb94da97ee37073f4b81 differ diff --git a/Unity network UDP/Library/metadata/0c/0c3a130c5911fb94da97ee37073f4b81.info b/Unity network UDP/Library/metadata/0c/0c3a130c5911fb94da97ee37073f4b81.info new file mode 100644 index 0000000..20add5d Binary files /dev/null and b/Unity network UDP/Library/metadata/0c/0c3a130c5911fb94da97ee37073f4b81.info differ diff --git a/Unity network UDP/Library/metadata/24/24249e1e07f50b94d823e5b641b07f67 b/Unity network UDP/Library/metadata/24/24249e1e07f50b94d823e5b641b07f67 new file mode 100644 index 0000000..23c2625 Binary files /dev/null and b/Unity network UDP/Library/metadata/24/24249e1e07f50b94d823e5b641b07f67 differ diff --git a/Unity network UDP/Library/metadata/24/24249e1e07f50b94d823e5b641b07f67.info b/Unity network UDP/Library/metadata/24/24249e1e07f50b94d823e5b641b07f67.info new file mode 100644 index 0000000..91769a2 Binary files /dev/null and b/Unity network UDP/Library/metadata/24/24249e1e07f50b94d823e5b641b07f67.info differ diff --git a/Unity network UDP/Library/metadata/35/353dd1b92e911804cba3e451a2a5aa47 b/Unity network UDP/Library/metadata/35/353dd1b92e911804cba3e451a2a5aa47 new file mode 100644 index 0000000..cfd5806 Binary files /dev/null and b/Unity network UDP/Library/metadata/35/353dd1b92e911804cba3e451a2a5aa47 differ diff --git a/Unity network UDP/Library/metadata/35/353dd1b92e911804cba3e451a2a5aa47.info b/Unity network UDP/Library/metadata/35/353dd1b92e911804cba3e451a2a5aa47.info new file mode 100644 index 0000000..5104694 Binary files /dev/null and b/Unity network UDP/Library/metadata/35/353dd1b92e911804cba3e451a2a5aa47.info differ diff --git a/Unity network UDP/Library/metadata/37/377b3e4ac5993cb4785ccd432840d615 b/Unity network UDP/Library/metadata/37/377b3e4ac5993cb4785ccd432840d615 new file mode 100644 index 0000000..ba60e12 Binary files /dev/null and b/Unity network UDP/Library/metadata/37/377b3e4ac5993cb4785ccd432840d615 differ diff --git a/Unity network UDP/Library/metadata/37/377b3e4ac5993cb4785ccd432840d615.info b/Unity network UDP/Library/metadata/37/377b3e4ac5993cb4785ccd432840d615.info new file mode 100644 index 0000000..353dd31 Binary files /dev/null and b/Unity network UDP/Library/metadata/37/377b3e4ac5993cb4785ccd432840d615.info differ diff --git a/Unity network UDP/Library/metadata/3b/3b4bdb98a5880ed458e0b2db273cbd75 b/Unity network UDP/Library/metadata/3b/3b4bdb98a5880ed458e0b2db273cbd75 new file mode 100644 index 0000000..9fab07f Binary files /dev/null and b/Unity network UDP/Library/metadata/3b/3b4bdb98a5880ed458e0b2db273cbd75 differ diff --git a/Unity network UDP/Library/metadata/3b/3b4bdb98a5880ed458e0b2db273cbd75.info b/Unity network UDP/Library/metadata/3b/3b4bdb98a5880ed458e0b2db273cbd75.info new file mode 100644 index 0000000..53cba79 Binary files /dev/null and b/Unity network UDP/Library/metadata/3b/3b4bdb98a5880ed458e0b2db273cbd75.info differ diff --git a/Unity network UDP/Library/metadata/3c/3c0ad459c1534645b5d603b7cc258f97 b/Unity network UDP/Library/metadata/3c/3c0ad459c1534645b5d603b7cc258f97 new file mode 100644 index 0000000..e629dff Binary files /dev/null and b/Unity network UDP/Library/metadata/3c/3c0ad459c1534645b5d603b7cc258f97 differ diff --git a/Unity network UDP/Library/metadata/3c/3c0ad459c1534645b5d603b7cc258f97.info b/Unity network UDP/Library/metadata/3c/3c0ad459c1534645b5d603b7cc258f97.info new file mode 100644 index 0000000..ed2a6d5 Binary files /dev/null and b/Unity network UDP/Library/metadata/3c/3c0ad459c1534645b5d603b7cc258f97.info differ diff --git a/Unity network UDP/Library/metadata/44/4433c6aa3dfe38c448fd03c00ae00b54 b/Unity network UDP/Library/metadata/44/4433c6aa3dfe38c448fd03c00ae00b54 new file mode 100644 index 0000000..e33d985 Binary files /dev/null and b/Unity network UDP/Library/metadata/44/4433c6aa3dfe38c448fd03c00ae00b54 differ diff --git a/Unity network UDP/Library/metadata/44/4433c6aa3dfe38c448fd03c00ae00b54.info b/Unity network UDP/Library/metadata/44/4433c6aa3dfe38c448fd03c00ae00b54.info new file mode 100644 index 0000000..4031067 Binary files /dev/null and b/Unity network UDP/Library/metadata/44/4433c6aa3dfe38c448fd03c00ae00b54.info differ diff --git a/Unity network UDP/Library/metadata/49/49ebafc3208dd5e42b7dcba1440f6f45 b/Unity network UDP/Library/metadata/49/49ebafc3208dd5e42b7dcba1440f6f45 new file mode 100644 index 0000000..bea5077 Binary files /dev/null and b/Unity network UDP/Library/metadata/49/49ebafc3208dd5e42b7dcba1440f6f45 differ diff --git a/Unity network UDP/Library/metadata/49/49ebafc3208dd5e42b7dcba1440f6f45.info b/Unity network UDP/Library/metadata/49/49ebafc3208dd5e42b7dcba1440f6f45.info new file mode 100644 index 0000000..7542aaf Binary files /dev/null and b/Unity network UDP/Library/metadata/49/49ebafc3208dd5e42b7dcba1440f6f45.info differ diff --git a/Unity network UDP/Library/metadata/4f/4f84caedd08afdb4aa9abf11a8f90022 b/Unity network UDP/Library/metadata/4f/4f84caedd08afdb4aa9abf11a8f90022 new file mode 100644 index 0000000..768f33a Binary files /dev/null and b/Unity network UDP/Library/metadata/4f/4f84caedd08afdb4aa9abf11a8f90022 differ diff --git a/Unity network UDP/Library/metadata/4f/4f84caedd08afdb4aa9abf11a8f90022.info b/Unity network UDP/Library/metadata/4f/4f84caedd08afdb4aa9abf11a8f90022.info new file mode 100644 index 0000000..5031343 Binary files /dev/null and b/Unity network UDP/Library/metadata/4f/4f84caedd08afdb4aa9abf11a8f90022.info differ diff --git a/Unity network UDP/Library/metadata/5f/5f32cd94baa94578a686d4b9d6b660f7 b/Unity network UDP/Library/metadata/5f/5f32cd94baa94578a686d4b9d6b660f7 new file mode 100644 index 0000000..ee1ba0f Binary files /dev/null and b/Unity network UDP/Library/metadata/5f/5f32cd94baa94578a686d4b9d6b660f7 differ diff --git a/Unity network UDP/Library/metadata/5f/5f32cd94baa94578a686d4b9d6b660f7.info b/Unity network UDP/Library/metadata/5f/5f32cd94baa94578a686d4b9d6b660f7.info new file mode 100644 index 0000000..74b22f1 Binary files /dev/null and b/Unity network UDP/Library/metadata/5f/5f32cd94baa94578a686d4b9d6b660f7.info differ diff --git a/Unity network UDP/Library/metadata/67/67b343623e0fb7e45af3f4acd9d07b43 b/Unity network UDP/Library/metadata/67/67b343623e0fb7e45af3f4acd9d07b43 new file mode 100644 index 0000000..821a1d2 Binary files /dev/null and b/Unity network UDP/Library/metadata/67/67b343623e0fb7e45af3f4acd9d07b43 differ diff --git a/Unity network UDP/Library/metadata/67/67b343623e0fb7e45af3f4acd9d07b43.info b/Unity network UDP/Library/metadata/67/67b343623e0fb7e45af3f4acd9d07b43.info new file mode 100644 index 0000000..ee79269 Binary files /dev/null and b/Unity network UDP/Library/metadata/67/67b343623e0fb7e45af3f4acd9d07b43.info differ diff --git a/Unity network UDP/Library/metadata/6c/6c3875a60f90ff146950d2ad190f0e09 b/Unity network UDP/Library/metadata/6c/6c3875a60f90ff146950d2ad190f0e09 new file mode 100644 index 0000000..c331036 Binary files /dev/null and b/Unity network UDP/Library/metadata/6c/6c3875a60f90ff146950d2ad190f0e09 differ diff --git a/Unity network UDP/Library/metadata/6c/6c3875a60f90ff146950d2ad190f0e09.info b/Unity network UDP/Library/metadata/6c/6c3875a60f90ff146950d2ad190f0e09.info new file mode 100644 index 0000000..61f180d Binary files /dev/null and b/Unity network UDP/Library/metadata/6c/6c3875a60f90ff146950d2ad190f0e09.info differ diff --git a/Unity network UDP/Library/metadata/6d/6df0f62eafd1c224ea52a0721bc3e4b1 b/Unity network UDP/Library/metadata/6d/6df0f62eafd1c224ea52a0721bc3e4b1 new file mode 100644 index 0000000..3b63ce1 Binary files /dev/null and b/Unity network UDP/Library/metadata/6d/6df0f62eafd1c224ea52a0721bc3e4b1 differ diff --git a/Unity network UDP/Library/metadata/6d/6df0f62eafd1c224ea52a0721bc3e4b1.info b/Unity network UDP/Library/metadata/6d/6df0f62eafd1c224ea52a0721bc3e4b1.info new file mode 100644 index 0000000..b1a8612 Binary files /dev/null and b/Unity network UDP/Library/metadata/6d/6df0f62eafd1c224ea52a0721bc3e4b1.info differ diff --git a/Unity network UDP/Library/metadata/6e/6ef5ac19c402f2c42a01c3f10df1e3e0 b/Unity network UDP/Library/metadata/6e/6ef5ac19c402f2c42a01c3f10df1e3e0 new file mode 100644 index 0000000..cb064cc Binary files /dev/null and b/Unity network UDP/Library/metadata/6e/6ef5ac19c402f2c42a01c3f10df1e3e0 differ diff --git a/Unity network UDP/Library/metadata/6e/6ef5ac19c402f2c42a01c3f10df1e3e0.info b/Unity network UDP/Library/metadata/6e/6ef5ac19c402f2c42a01c3f10df1e3e0.info new file mode 100644 index 0000000..19a4842 Binary files /dev/null and b/Unity network UDP/Library/metadata/6e/6ef5ac19c402f2c42a01c3f10df1e3e0.info differ diff --git a/Unity network UDP/Library/metadata/73/739bbd9f364b4268874f9fd86ab3beef b/Unity network UDP/Library/metadata/73/739bbd9f364b4268874f9fd86ab3beef new file mode 100644 index 0000000..921bc0c Binary files /dev/null and b/Unity network UDP/Library/metadata/73/739bbd9f364b4268874f9fd86ab3beef differ diff --git a/Unity network UDP/Library/metadata/73/739bbd9f364b4268874f9fd86ab3beef.info b/Unity network UDP/Library/metadata/73/739bbd9f364b4268874f9fd86ab3beef.info new file mode 100644 index 0000000..215c5c8 Binary files /dev/null and b/Unity network UDP/Library/metadata/73/739bbd9f364b4268874f9fd86ab3beef.info differ diff --git a/Unity network UDP/Library/metadata/77/7764a314530f3b44686c82db227ddf1e b/Unity network UDP/Library/metadata/77/7764a314530f3b44686c82db227ddf1e new file mode 100644 index 0000000..9b2ae86 Binary files /dev/null and b/Unity network UDP/Library/metadata/77/7764a314530f3b44686c82db227ddf1e differ diff --git a/Unity network UDP/Library/metadata/77/7764a314530f3b44686c82db227ddf1e.info b/Unity network UDP/Library/metadata/77/7764a314530f3b44686c82db227ddf1e.info new file mode 100644 index 0000000..3db3c48 Binary files /dev/null and b/Unity network UDP/Library/metadata/77/7764a314530f3b44686c82db227ddf1e.info differ diff --git a/Unity network UDP/Library/metadata/7b/7b248295a2003cb4f8f2c02963c4dc69 b/Unity network UDP/Library/metadata/7b/7b248295a2003cb4f8f2c02963c4dc69 new file mode 100644 index 0000000..441542b Binary files /dev/null and b/Unity network UDP/Library/metadata/7b/7b248295a2003cb4f8f2c02963c4dc69 differ diff --git a/Unity network UDP/Library/metadata/7b/7b248295a2003cb4f8f2c02963c4dc69.info b/Unity network UDP/Library/metadata/7b/7b248295a2003cb4f8f2c02963c4dc69.info new file mode 100644 index 0000000..62abdcd Binary files /dev/null and b/Unity network UDP/Library/metadata/7b/7b248295a2003cb4f8f2c02963c4dc69.info differ diff --git a/Unity network UDP/Library/metadata/7c/7cbab2be89b54486bbd23a6fe637d30e b/Unity network UDP/Library/metadata/7c/7cbab2be89b54486bbd23a6fe637d30e new file mode 100644 index 0000000..afb665c Binary files /dev/null and b/Unity network UDP/Library/metadata/7c/7cbab2be89b54486bbd23a6fe637d30e differ diff --git a/Unity network UDP/Library/metadata/7c/7cbab2be89b54486bbd23a6fe637d30e.info b/Unity network UDP/Library/metadata/7c/7cbab2be89b54486bbd23a6fe637d30e.info new file mode 100644 index 0000000..34e8c73 Binary files /dev/null and b/Unity network UDP/Library/metadata/7c/7cbab2be89b54486bbd23a6fe637d30e.info differ diff --git a/Unity network UDP/Library/metadata/80/80a3616ca19596e4da0f10f14d241e9f b/Unity network UDP/Library/metadata/80/80a3616ca19596e4da0f10f14d241e9f new file mode 100644 index 0000000..0ebe45d Binary files /dev/null and b/Unity network UDP/Library/metadata/80/80a3616ca19596e4da0f10f14d241e9f differ diff --git a/Unity network UDP/Library/metadata/80/80a3616ca19596e4da0f10f14d241e9f.info b/Unity network UDP/Library/metadata/80/80a3616ca19596e4da0f10f14d241e9f.info new file mode 100644 index 0000000..f32f6de Binary files /dev/null and b/Unity network UDP/Library/metadata/80/80a3616ca19596e4da0f10f14d241e9f.info differ diff --git a/Unity network UDP/Library/metadata/85/852e56802eb941638acbb491814497b0 b/Unity network UDP/Library/metadata/85/852e56802eb941638acbb491814497b0 new file mode 100644 index 0000000..b2da4c3 Binary files /dev/null and b/Unity network UDP/Library/metadata/85/852e56802eb941638acbb491814497b0 differ diff --git a/Unity network UDP/Library/metadata/85/852e56802eb941638acbb491814497b0.info b/Unity network UDP/Library/metadata/85/852e56802eb941638acbb491814497b0.info new file mode 100644 index 0000000..986d407 Binary files /dev/null and b/Unity network UDP/Library/metadata/85/852e56802eb941638acbb491814497b0.info differ diff --git a/Unity network UDP/Library/metadata/87/870353891bb340e2b2a9c8707e7419ba b/Unity network UDP/Library/metadata/87/870353891bb340e2b2a9c8707e7419ba new file mode 100644 index 0000000..9a976ce Binary files /dev/null and b/Unity network UDP/Library/metadata/87/870353891bb340e2b2a9c8707e7419ba differ diff --git a/Unity network UDP/Library/metadata/87/870353891bb340e2b2a9c8707e7419ba.info b/Unity network UDP/Library/metadata/87/870353891bb340e2b2a9c8707e7419ba.info new file mode 100644 index 0000000..8a64cbb Binary files /dev/null and b/Unity network UDP/Library/metadata/87/870353891bb340e2b2a9c8707e7419ba.info differ diff --git a/Unity network UDP/Library/metadata/8e/8e0cd8ed44d4412cbe0642067abc9e44 b/Unity network UDP/Library/metadata/8e/8e0cd8ed44d4412cbe0642067abc9e44 new file mode 100644 index 0000000..aba89bf Binary files /dev/null and b/Unity network UDP/Library/metadata/8e/8e0cd8ed44d4412cbe0642067abc9e44 differ diff --git a/Unity network UDP/Library/metadata/8e/8e0cd8ed44d4412cbe0642067abc9e44.info b/Unity network UDP/Library/metadata/8e/8e0cd8ed44d4412cbe0642067abc9e44.info new file mode 100644 index 0000000..89be8d9 Binary files /dev/null and b/Unity network UDP/Library/metadata/8e/8e0cd8ed44d4412cbe0642067abc9e44.info differ diff --git a/Unity network UDP/Library/metadata/94/948a750a1a0784a4188bf7767a99be0a b/Unity network UDP/Library/metadata/94/948a750a1a0784a4188bf7767a99be0a new file mode 100644 index 0000000..7959c51 Binary files /dev/null and b/Unity network UDP/Library/metadata/94/948a750a1a0784a4188bf7767a99be0a differ diff --git a/Unity network UDP/Library/metadata/94/948a750a1a0784a4188bf7767a99be0a.info b/Unity network UDP/Library/metadata/94/948a750a1a0784a4188bf7767a99be0a.info new file mode 100644 index 0000000..ce8cde0 Binary files /dev/null and b/Unity network UDP/Library/metadata/94/948a750a1a0784a4188bf7767a99be0a.info differ diff --git a/Unity network UDP/Library/metadata/97/97decbdab0634cdd991f8d23ddf0dead b/Unity network UDP/Library/metadata/97/97decbdab0634cdd991f8d23ddf0dead new file mode 100644 index 0000000..bbbc01f Binary files /dev/null and b/Unity network UDP/Library/metadata/97/97decbdab0634cdd991f8d23ddf0dead differ diff --git a/Unity network UDP/Library/metadata/97/97decbdab0634cdd991f8d23ddf0dead.info b/Unity network UDP/Library/metadata/97/97decbdab0634cdd991f8d23ddf0dead.info new file mode 100644 index 0000000..4cbe3c7 Binary files /dev/null and b/Unity network UDP/Library/metadata/97/97decbdab0634cdd991f8d23ddf0dead.info differ diff --git a/Unity network UDP/Library/metadata/a6/a650dbd5d579bc8499d32782b7c9104c b/Unity network UDP/Library/metadata/a6/a650dbd5d579bc8499d32782b7c9104c new file mode 100644 index 0000000..1cbc833 Binary files /dev/null and b/Unity network UDP/Library/metadata/a6/a650dbd5d579bc8499d32782b7c9104c differ diff --git a/Unity network UDP/Library/metadata/a6/a650dbd5d579bc8499d32782b7c9104c.info b/Unity network UDP/Library/metadata/a6/a650dbd5d579bc8499d32782b7c9104c.info new file mode 100644 index 0000000..d058199 Binary files /dev/null and b/Unity network UDP/Library/metadata/a6/a650dbd5d579bc8499d32782b7c9104c.info differ diff --git a/Unity network UDP/Library/metadata/ad/adebbd281f1a4ef3a30be7f21937e02f b/Unity network UDP/Library/metadata/ad/adebbd281f1a4ef3a30be7f21937e02f new file mode 100644 index 0000000..b301262 Binary files /dev/null and b/Unity network UDP/Library/metadata/ad/adebbd281f1a4ef3a30be7f21937e02f differ diff --git a/Unity network UDP/Library/metadata/ad/adebbd281f1a4ef3a30be7f21937e02f.info b/Unity network UDP/Library/metadata/ad/adebbd281f1a4ef3a30be7f21937e02f.info new file mode 100644 index 0000000..1c132e9 Binary files /dev/null and b/Unity network UDP/Library/metadata/ad/adebbd281f1a4ef3a30be7f21937e02f.info differ diff --git a/Unity network UDP/Library/metadata/c5/c5c6e5983b09e5b45a1c0ff1cb10f177 b/Unity network UDP/Library/metadata/c5/c5c6e5983b09e5b45a1c0ff1cb10f177 new file mode 100644 index 0000000..dece204 Binary files /dev/null and b/Unity network UDP/Library/metadata/c5/c5c6e5983b09e5b45a1c0ff1cb10f177 differ diff --git a/Unity network UDP/Library/metadata/c5/c5c6e5983b09e5b45a1c0ff1cb10f177.info b/Unity network UDP/Library/metadata/c5/c5c6e5983b09e5b45a1c0ff1cb10f177.info new file mode 100644 index 0000000..cd83af6 Binary files /dev/null and b/Unity network UDP/Library/metadata/c5/c5c6e5983b09e5b45a1c0ff1cb10f177.info differ diff --git a/Unity network UDP/Library/metadata/cb/cb3879966b4e9284e8e630de5266c03e b/Unity network UDP/Library/metadata/cb/cb3879966b4e9284e8e630de5266c03e new file mode 100644 index 0000000..a946326 Binary files /dev/null and b/Unity network UDP/Library/metadata/cb/cb3879966b4e9284e8e630de5266c03e differ diff --git a/Unity network UDP/Library/metadata/cb/cb3879966b4e9284e8e630de5266c03e.info b/Unity network UDP/Library/metadata/cb/cb3879966b4e9284e8e630de5266c03e.info new file mode 100644 index 0000000..7e2b68d Binary files /dev/null and b/Unity network UDP/Library/metadata/cb/cb3879966b4e9284e8e630de5266c03e.info differ diff --git a/Unity network UDP/Library/metadata/e2/e2fc0e66fe770324a8c90d0be6e109c0 b/Unity network UDP/Library/metadata/e2/e2fc0e66fe770324a8c90d0be6e109c0 new file mode 100644 index 0000000..544c505 Binary files /dev/null and b/Unity network UDP/Library/metadata/e2/e2fc0e66fe770324a8c90d0be6e109c0 differ diff --git a/Unity network UDP/Library/metadata/e2/e2fc0e66fe770324a8c90d0be6e109c0.info b/Unity network UDP/Library/metadata/e2/e2fc0e66fe770324a8c90d0be6e109c0.info new file mode 100644 index 0000000..129926f Binary files /dev/null and b/Unity network UDP/Library/metadata/e2/e2fc0e66fe770324a8c90d0be6e109c0.info differ diff --git a/Unity network UDP/Library/metadata/e4/e4e69e764e1d0e444886b477010ea874 b/Unity network UDP/Library/metadata/e4/e4e69e764e1d0e444886b477010ea874 new file mode 100644 index 0000000..351723b Binary files /dev/null and b/Unity network UDP/Library/metadata/e4/e4e69e764e1d0e444886b477010ea874 differ diff --git a/Unity network UDP/Library/metadata/e4/e4e69e764e1d0e444886b477010ea874.info b/Unity network UDP/Library/metadata/e4/e4e69e764e1d0e444886b477010ea874.info new file mode 100644 index 0000000..0ae5cae Binary files /dev/null and b/Unity network UDP/Library/metadata/e4/e4e69e764e1d0e444886b477010ea874.info differ diff --git a/Unity network UDP/Library/metadata/e6/e632acbe3e907fb42992ec51c2549272 b/Unity network UDP/Library/metadata/e6/e632acbe3e907fb42992ec51c2549272 new file mode 100644 index 0000000..5473b2a Binary files /dev/null and b/Unity network UDP/Library/metadata/e6/e632acbe3e907fb42992ec51c2549272 differ diff --git a/Unity network UDP/Library/metadata/e6/e632acbe3e907fb42992ec51c2549272.info b/Unity network UDP/Library/metadata/e6/e632acbe3e907fb42992ec51c2549272.info new file mode 100644 index 0000000..943dc95 Binary files /dev/null and b/Unity network UDP/Library/metadata/e6/e632acbe3e907fb42992ec51c2549272.info differ diff --git a/Unity network UDP/Library/metadata/ea/eafcd88293cff404b855b1726af268b7 b/Unity network UDP/Library/metadata/ea/eafcd88293cff404b855b1726af268b7 new file mode 100644 index 0000000..c2a048d Binary files /dev/null and b/Unity network UDP/Library/metadata/ea/eafcd88293cff404b855b1726af268b7 differ diff --git a/Unity network UDP/Library/metadata/ea/eafcd88293cff404b855b1726af268b7.info b/Unity network UDP/Library/metadata/ea/eafcd88293cff404b855b1726af268b7.info new file mode 100644 index 0000000..8867387 Binary files /dev/null and b/Unity network UDP/Library/metadata/ea/eafcd88293cff404b855b1726af268b7.info differ diff --git a/Unity network UDP/Library/metadata/ef/efde826cbfe60a64ebd845c9080b1d6b b/Unity network UDP/Library/metadata/ef/efde826cbfe60a64ebd845c9080b1d6b new file mode 100644 index 0000000..0b1a7a3 Binary files /dev/null and b/Unity network UDP/Library/metadata/ef/efde826cbfe60a64ebd845c9080b1d6b differ diff --git a/Unity network UDP/Library/metadata/ef/efde826cbfe60a64ebd845c9080b1d6b.info b/Unity network UDP/Library/metadata/ef/efde826cbfe60a64ebd845c9080b1d6b.info new file mode 100644 index 0000000..d2c85ad Binary files /dev/null and b/Unity network UDP/Library/metadata/ef/efde826cbfe60a64ebd845c9080b1d6b.info differ diff --git a/Unity network UDP/Library/metadata/f5/f5f67c52d1564df4a8936ccd202a3bd8 b/Unity network UDP/Library/metadata/f5/f5f67c52d1564df4a8936ccd202a3bd8 new file mode 100644 index 0000000..c8afac6 Binary files /dev/null and b/Unity network UDP/Library/metadata/f5/f5f67c52d1564df4a8936ccd202a3bd8 differ diff --git a/Unity network UDP/Library/metadata/f5/f5f67c52d1564df4a8936ccd202a3bd8.info b/Unity network UDP/Library/metadata/f5/f5f67c52d1564df4a8936ccd202a3bd8.info new file mode 100644 index 0000000..7b08f1c Binary files /dev/null and b/Unity network UDP/Library/metadata/f5/f5f67c52d1564df4a8936ccd202a3bd8.info differ diff --git a/Unity network UDP/Library/shadercompiler-UnityShaderCompiler.exe0.log b/Unity network UDP/Library/shadercompiler-UnityShaderCompiler.exe0.log new file mode 100644 index 0000000..f878cd1 --- /dev/null +++ b/Unity network UDP/Library/shadercompiler-UnityShaderCompiler.exe0.log @@ -0,0 +1,2 @@ +Base path: D:/logiciels/Unity/Editor/Data +Cmd: getPlatforms diff --git a/Unity network UDP/ProjectSettings/AudioManager.asset b/Unity network UDP/ProjectSettings/AudioManager.asset new file mode 100644 index 0000000..78ec856 Binary files /dev/null and b/Unity network UDP/ProjectSettings/AudioManager.asset differ diff --git a/Unity network UDP/ProjectSettings/ClusterInputManager.asset b/Unity network UDP/ProjectSettings/ClusterInputManager.asset new file mode 100644 index 0000000..6434631 Binary files /dev/null and b/Unity network UDP/ProjectSettings/ClusterInputManager.asset differ diff --git a/Unity network UDP/ProjectSettings/DynamicsManager.asset b/Unity network UDP/ProjectSettings/DynamicsManager.asset new file mode 100644 index 0000000..6a53c97 Binary files /dev/null and b/Unity network UDP/ProjectSettings/DynamicsManager.asset differ diff --git a/Unity network UDP/ProjectSettings/EditorBuildSettings.asset b/Unity network UDP/ProjectSettings/EditorBuildSettings.asset new file mode 100644 index 0000000..f5d3552 Binary files /dev/null and b/Unity network UDP/ProjectSettings/EditorBuildSettings.asset differ diff --git a/Unity network UDP/ProjectSettings/EditorSettings.asset b/Unity network UDP/ProjectSettings/EditorSettings.asset new file mode 100644 index 0000000..2658243 Binary files /dev/null and b/Unity network UDP/ProjectSettings/EditorSettings.asset differ diff --git a/Unity network UDP/ProjectSettings/GraphicsSettings.asset b/Unity network UDP/ProjectSettings/GraphicsSettings.asset new file mode 100644 index 0000000..7c0ac3c Binary files /dev/null and b/Unity network UDP/ProjectSettings/GraphicsSettings.asset differ diff --git a/Unity network UDP/ProjectSettings/InputManager.asset b/Unity network UDP/ProjectSettings/InputManager.asset new file mode 100644 index 0000000..db2598e Binary files /dev/null and b/Unity network UDP/ProjectSettings/InputManager.asset differ diff --git a/Unity network UDP/ProjectSettings/NavMeshAreas.asset b/Unity network UDP/ProjectSettings/NavMeshAreas.asset new file mode 100644 index 0000000..893a7c0 Binary files /dev/null and b/Unity network UDP/ProjectSettings/NavMeshAreas.asset differ diff --git a/Unity network UDP/ProjectSettings/NetworkManager.asset b/Unity network UDP/ProjectSettings/NetworkManager.asset new file mode 100644 index 0000000..f257cf9 Binary files /dev/null and b/Unity network UDP/ProjectSettings/NetworkManager.asset differ diff --git a/Unity network UDP/ProjectSettings/Physics2DSettings.asset b/Unity network UDP/ProjectSettings/Physics2DSettings.asset new file mode 100644 index 0000000..922cb1e Binary files /dev/null and b/Unity network UDP/ProjectSettings/Physics2DSettings.asset differ diff --git a/Unity network UDP/ProjectSettings/ProjectSettings.asset b/Unity network UDP/ProjectSettings/ProjectSettings.asset new file mode 100644 index 0000000..a3d72e1 Binary files /dev/null and b/Unity network UDP/ProjectSettings/ProjectSettings.asset differ diff --git a/Unity network UDP/ProjectSettings/ProjectVersion.txt b/Unity network UDP/ProjectSettings/ProjectVersion.txt new file mode 100644 index 0000000..bb60c06 --- /dev/null +++ b/Unity network UDP/ProjectSettings/ProjectVersion.txt @@ -0,0 +1,2 @@ +m_EditorVersion: 5.3.2f1 +m_StandardAssetsVersion: 0 diff --git a/Unity network UDP/ProjectSettings/QualitySettings.asset b/Unity network UDP/ProjectSettings/QualitySettings.asset new file mode 100644 index 0000000..ebf9d2f Binary files /dev/null and b/Unity network UDP/ProjectSettings/QualitySettings.asset differ diff --git a/Unity network UDP/ProjectSettings/TagManager.asset b/Unity network UDP/ProjectSettings/TagManager.asset new file mode 100644 index 0000000..ad3b22f Binary files /dev/null and b/Unity network UDP/ProjectSettings/TagManager.asset differ diff --git a/Unity network UDP/ProjectSettings/TimeManager.asset b/Unity network UDP/ProjectSettings/TimeManager.asset new file mode 100644 index 0000000..a22ed40 Binary files /dev/null and b/Unity network UDP/ProjectSettings/TimeManager.asset differ diff --git a/Unity network UDP/ProjectSettings/UnityAdsSettings.asset b/Unity network UDP/ProjectSettings/UnityAdsSettings.asset new file mode 100644 index 0000000..3b0a8f7 Binary files /dev/null and b/Unity network UDP/ProjectSettings/UnityAdsSettings.asset differ diff --git a/Unity network UDP/ProjectSettings/UnityConnectSettings.asset b/Unity network UDP/ProjectSettings/UnityConnectSettings.asset new file mode 100644 index 0000000..87c2de6 Binary files /dev/null and b/Unity network UDP/ProjectSettings/UnityConnectSettings.asset differ diff --git a/Unity network UDP/Temp/ProcessJobs/00000000000000000000000000000000.bakeup b/Unity network UDP/Temp/ProcessJobs/00000000000000000000000000000000.bakeup new file mode 100644 index 0000000..1f37ae9 Binary files /dev/null and b/Unity network UDP/Temp/ProcessJobs/00000000000000000000000000000000.bakeup differ diff --git a/Unity network UDP/Temp/ProcessJobs/215d5a62e25d72478e9ebe0213aeb017.clust b/Unity network UDP/Temp/ProcessJobs/215d5a62e25d72478e9ebe0213aeb017.clust new file mode 100644 index 0000000..172c2d6 Binary files /dev/null and b/Unity network UDP/Temp/ProcessJobs/215d5a62e25d72478e9ebe0213aeb017.clust differ diff --git a/Unity network UDP/Temp/ProcessJobs/5220afda26b2b32a0c5beabc23dba1bb.bakeup b/Unity network UDP/Temp/ProcessJobs/5220afda26b2b32a0c5beabc23dba1bb.bakeup new file mode 100644 index 0000000..a08d66a Binary files /dev/null and b/Unity network UDP/Temp/ProcessJobs/5220afda26b2b32a0c5beabc23dba1bb.bakeup differ diff --git a/Unity network UDP/Temp/ProcessJobs/6628a25b638585f9a85c7f74190edf34.lt b/Unity network UDP/Temp/ProcessJobs/6628a25b638585f9a85c7f74190edf34.lt new file mode 100644 index 0000000..26460bb Binary files /dev/null and b/Unity network UDP/Temp/ProcessJobs/6628a25b638585f9a85c7f74190edf34.lt differ diff --git a/Unity network UDP/Temp/ProcessJobs/6628a25b638585f9a85c7f74190edf34.vis b/Unity network UDP/Temp/ProcessJobs/6628a25b638585f9a85c7f74190edf34.vis new file mode 100644 index 0000000..8fdaff9 Binary files /dev/null and b/Unity network UDP/Temp/ProcessJobs/6628a25b638585f9a85c7f74190edf34.vis differ diff --git a/Unity network UDP/Temp/ProcessJobs/6953dd767ddcf99f099be6486a29d9ce.lt b/Unity network UDP/Temp/ProcessJobs/6953dd767ddcf99f099be6486a29d9ce.lt new file mode 100644 index 0000000..54041b5 Binary files /dev/null and b/Unity network UDP/Temp/ProcessJobs/6953dd767ddcf99f099be6486a29d9ce.lt differ diff --git a/Unity network UDP/Temp/ProcessJobs/6953dd767ddcf99f099be6486a29d9ce.vis b/Unity network UDP/Temp/ProcessJobs/6953dd767ddcf99f099be6486a29d9ce.vis new file mode 100644 index 0000000..514d314 Binary files /dev/null and b/Unity network UDP/Temp/ProcessJobs/6953dd767ddcf99f099be6486a29d9ce.vis differ diff --git a/Unity network UDP/Temp/ProcessJobs/8bba5c4522dedd5b822847762b92f75f.clust b/Unity network UDP/Temp/ProcessJobs/8bba5c4522dedd5b822847762b92f75f.clust new file mode 100644 index 0000000..59eed3e Binary files /dev/null and b/Unity network UDP/Temp/ProcessJobs/8bba5c4522dedd5b822847762b92f75f.clust differ diff --git a/Unity network UDP/Temp/ProcessJobs/a1fc7193b3492d9d35cf4c8cafce61a8.clust b/Unity network UDP/Temp/ProcessJobs/a1fc7193b3492d9d35cf4c8cafce61a8.clust new file mode 100644 index 0000000..ccce7e1 Binary files /dev/null and b/Unity network UDP/Temp/ProcessJobs/a1fc7193b3492d9d35cf4c8cafce61a8.clust differ diff --git a/Unity network UDP/Temp/ProcessJobs/a7831f1cd03f854fccb26e5299b59ba2.clust b/Unity network UDP/Temp/ProcessJobs/a7831f1cd03f854fccb26e5299b59ba2.clust new file mode 100644 index 0000000..5ed1760 Binary files /dev/null and b/Unity network UDP/Temp/ProcessJobs/a7831f1cd03f854fccb26e5299b59ba2.clust differ diff --git a/Unity network UDP/Temp/ProcessJobs/bd371d935e32299a85e92a5f688028fe.lt b/Unity network UDP/Temp/ProcessJobs/bd371d935e32299a85e92a5f688028fe.lt new file mode 100644 index 0000000..2462ae9 Binary files /dev/null and b/Unity network UDP/Temp/ProcessJobs/bd371d935e32299a85e92a5f688028fe.lt differ diff --git a/Unity network UDP/Temp/ProcessJobs/bd371d935e32299a85e92a5f688028fe.vis b/Unity network UDP/Temp/ProcessJobs/bd371d935e32299a85e92a5f688028fe.vis new file mode 100644 index 0000000..8b878f4 Binary files /dev/null and b/Unity network UDP/Temp/ProcessJobs/bd371d935e32299a85e92a5f688028fe.vis differ diff --git a/Unity network UDP/Temp/ProcessJobs/e9a6970f79cd12d8b075e7d72f1b07cb.bakert b/Unity network UDP/Temp/ProcessJobs/e9a6970f79cd12d8b075e7d72f1b07cb.bakert new file mode 100644 index 0000000..ff082ff Binary files /dev/null and b/Unity network UDP/Temp/ProcessJobs/e9a6970f79cd12d8b075e7d72f1b07cb.bakert differ diff --git a/Unity network UDP/Temp/ProcessJobs/f80cc6eabb27543d146e99e1f2e33ca5.lt b/Unity network UDP/Temp/ProcessJobs/f80cc6eabb27543d146e99e1f2e33ca5.lt new file mode 100644 index 0000000..43efecf Binary files /dev/null and b/Unity network UDP/Temp/ProcessJobs/f80cc6eabb27543d146e99e1f2e33ca5.lt differ diff --git a/Unity network UDP/Temp/ProcessJobs/f80cc6eabb27543d146e99e1f2e33ca5.vis b/Unity network UDP/Temp/ProcessJobs/f80cc6eabb27543d146e99e1f2e33ca5.vis new file mode 100644 index 0000000..bf1bbb1 Binary files /dev/null and b/Unity network UDP/Temp/ProcessJobs/f80cc6eabb27543d146e99e1f2e33ca5.vis differ diff --git a/Unity network UDP/Temp/UnityLockfile b/Unity network UDP/Temp/UnityLockfile new file mode 100644 index 0000000..e69de29 diff --git a/Unity network UDP/Temp/UnityTempFile-3240325be5be8f84e8d0b1085f13007e b/Unity network UDP/Temp/UnityTempFile-3240325be5be8f84e8d0b1085f13007e new file mode 100644 index 0000000..e7198d9 --- /dev/null +++ b/Unity network UDP/Temp/UnityTempFile-3240325be5be8f84e8d0b1085f13007e @@ -0,0 +1,98 @@ +-debug +-target:library +-nowarn:0169 +-out:Temp/Assembly-CSharp-Editor.dll +-r:D:/logiciels/Unity/Editor/Data/Managed/UnityEngine.dll +-r:D:/logiciels/Unity/Editor/Data/Managed/UnityEditor.dll +-r:Library/ScriptAssemblies/Assembly-CSharp.dll +-r:Library/ScriptAssemblies/Assembly-UnityScript.dll +-r:D:/logiciels/Unity/Editor/Data/UnityExtensions/Unity/Advertisements/Editor/UnityEditor.Advertisements.dll +-r:D:/logiciels/Unity/Editor/Data/UnityExtensions/Unity/EditorTestsRunner/Editor/nunit.framework.dll +-r:D:/logiciels/Unity/Editor/Data/UnityExtensions/Unity/EditorTestsRunner/Editor/UnityEditor.EditorTestsRunner.dll +-r:D:/logiciels/Unity/Editor/Data/UnityExtensions/Unity/GUISystem/UnityEngine.UI.dll +-r:D:/logiciels/Unity/Editor/Data/UnityExtensions/Unity/GUISystem/Editor/UnityEditor.UI.dll +-r:D:/logiciels/Unity/Editor/Data/UnityExtensions/Unity/Networking/UnityEngine.Networking.dll +-r:D:/logiciels/Unity/Editor/Data/UnityExtensions/Unity/Networking/Editor/UnityEditor.Networking.dll +-r:D:/logiciels/Unity/Editor/Data/UnityExtensions/Unity/TreeEditor/Editor/UnityEditor.TreeEditor.dll +-r:D:/logiciels/Unity/Editor/Data/Managed/UnityEditor.Graphs.dll +-r:D:/logiciels/Unity/Editor/Data/PlaybackEngines/AndroidPlayer/UnityEditor.Android.Extensions.dll +-r:D:/logiciels/Unity/Editor/Data/PlaybackEngines/iOSSupport/UnityEditor.iOS.Extensions.dll +-r:D:/logiciels/Unity/Editor/Data/PlaybackEngines/WebGLSupport/UnityEditor.WebGL.Extensions.dll +-r:D:/logiciels/Unity/Editor/Data/PlaybackEngines/LinuxStandaloneSupport/UnityEditor.LinuxStandalone.Extensions.dll +-r:D:/logiciels/Unity/Editor/Data/PlaybackEngines/WindowsStandaloneSupport/UnityEditor.WindowsStandalone.Extensions.dll +-r:D:/logiciels/Unity/Editor/Data/PlaybackEngines/MacStandaloneSupport/UnityEditor.OSXStandalone.Extensions.dll +-r:D:/logiciels/Unity/Editor/Data/PlaybackEngines/iOSSupport\UnityEditor.iOS.Extensions.Xcode.dll +-r:D:/logiciels/Unity/Editor/Data/PlaybackEngines/iOSSupport\UnityEditor.iOS.Extensions.Common.dll +-define:UNITY_5_3_2 +-define:UNITY_5_3 +-define:UNITY_5 +-define:ENABLE_NEW_BUGREPORTER +-define:ENABLE_AUDIO +-define:ENABLE_CACHING +-define:ENABLE_CLOTH +-define:ENABLE_DUCK_TYPING +-define:ENABLE_FRAME_DEBUGGER +-define:ENABLE_GENERICS +-define:ENABLE_HOME_SCREEN +-define:ENABLE_IMAGEEFFECTS +-define:ENABLE_LIGHT_PROBES_LEGACY +-define:ENABLE_MICROPHONE +-define:ENABLE_MULTIPLE_DISPLAYS +-define:ENABLE_PHYSICS +-define:ENABLE_PLUGIN_INSPECTOR +-define:ENABLE_SHADOWS +-define:ENABLE_SINGLE_INSTANCE_BUILD_SETTING +-define:ENABLE_SPRITERENDERER_FLIPPING +-define:ENABLE_SPRITES +-define:ENABLE_SPRITE_POLYGON +-define:ENABLE_TERRAIN +-define:ENABLE_RAKNET +-define:ENABLE_UNET +-define:ENABLE_UNITYEVENTS +-define:ENABLE_VR +-define:ENABLE_WEBCAM +-define:ENABLE_WWW +-define:ENABLE_CLOUD_SERVICES +-define:ENABLE_CLOUD_SERVICES_ADS +-define:ENABLE_CLOUD_HUB +-define:ENABLE_CLOUD_PROJECT_ID +-define:ENABLE_CLOUD_SERVICES_PURCHASING +-define:ENABLE_CLOUD_SERVICES_ANALYTICS +-define:ENABLE_CLOUD_SERVICES_UNET +-define:ENABLE_CLOUD_SERVICES_BUILD +-define:ENABLE_CLOUD_LICENSE +-define:ENABLE_EDITOR_METRICS +-define:ENABLE_EDITOR_METRICS_CACHING +-define:INCLUDE_DYNAMIC_GI +-define:INCLUDE_GI +-define:INCLUDE_IL2CPP +-define:INCLUDE_DIRECTX12 +-define:PLATFORM_SUPPORTS_MONO +-define:RENDER_SOFTWARE_CURSOR +-define:ENABLE_LOCALIZATION +-define:ENABLE_ANDROID_ATLAS_ETC1_COMPRESSION +-define:ENABLE_EDITOR_TESTS_RUNNER +-define:UNITY_STANDALONE_WIN +-define:UNITY_STANDALONE +-define:ENABLE_SUBSTANCE +-define:ENABLE_TEXTUREID_MAP +-define:ENABLE_RUNTIME_GI +-define:ENABLE_MOVIES +-define:ENABLE_NETWORK +-define:ENABLE_CRUNCH_TEXTURE_COMPRESSION +-define:ENABLE_LOG_MIXED_STACKTRACE +-define:ENABLE_UNITYWEBREQUEST +-define:ENABLE_EVENT_QUEUE +-define:ENABLE_CLUSTERINPUT +-define:ENABLE_WEBSOCKET_HOST +-define:ENABLE_MONO +-define:ENABLE_PROFILER +-define:DEBUG +-define:TRACE +-define:UNITY_ASSERTIONS +-define:UNITY_EDITOR +-define:UNITY_EDITOR_64 +-define:UNITY_EDITOR_WIN +Assets/scripts/editor/TerrainExport.cs +-r:D:\logiciels\Unity\Editor\Data\Mono\lib\mono\2.0\System.Runtime.Serialization.dll +-r:D:\logiciels\Unity\Editor\Data\Mono\lib\mono\2.0\System.Xml.Linq.dll diff --git a/Unity network UDP/Temp/UnityTempFile-3b8eb78e9805ee44ab6bbf6f5317557d b/Unity network UDP/Temp/UnityTempFile-3b8eb78e9805ee44ab6bbf6f5317557d new file mode 100644 index 0000000..49fe0ec --- /dev/null +++ b/Unity network UDP/Temp/UnityTempFile-3b8eb78e9805ee44ab6bbf6f5317557d @@ -0,0 +1,88 @@ +-debug +-target:library +-i:UnityEngine +-i:System.Collections +-base:UnityEngine.MonoBehaviour +-nowarn:BCW0016 +-nowarn:BCW0003 +-method:Main +-out:Temp/Assembly-UnityScript.dll +-x-type-inference-rule-attribute:UnityEngineInternal.TypeInferenceRuleAttribute +-define:UNITY_5_3_2 +-define:UNITY_5_3 +-define:UNITY_5 +-define:ENABLE_NEW_BUGREPORTER +-define:ENABLE_AUDIO +-define:ENABLE_CACHING +-define:ENABLE_CLOTH +-define:ENABLE_DUCK_TYPING +-define:ENABLE_FRAME_DEBUGGER +-define:ENABLE_GENERICS +-define:ENABLE_HOME_SCREEN +-define:ENABLE_IMAGEEFFECTS +-define:ENABLE_LIGHT_PROBES_LEGACY +-define:ENABLE_MICROPHONE +-define:ENABLE_MULTIPLE_DISPLAYS +-define:ENABLE_PHYSICS +-define:ENABLE_PLUGIN_INSPECTOR +-define:ENABLE_SHADOWS +-define:ENABLE_SINGLE_INSTANCE_BUILD_SETTING +-define:ENABLE_SPRITERENDERER_FLIPPING +-define:ENABLE_SPRITES +-define:ENABLE_SPRITE_POLYGON +-define:ENABLE_TERRAIN +-define:ENABLE_RAKNET +-define:ENABLE_UNET +-define:ENABLE_UNITYEVENTS +-define:ENABLE_VR +-define:ENABLE_WEBCAM +-define:ENABLE_WWW +-define:ENABLE_CLOUD_SERVICES +-define:ENABLE_CLOUD_SERVICES_ADS +-define:ENABLE_CLOUD_HUB +-define:ENABLE_CLOUD_PROJECT_ID +-define:ENABLE_CLOUD_SERVICES_PURCHASING +-define:ENABLE_CLOUD_SERVICES_ANALYTICS +-define:ENABLE_CLOUD_SERVICES_UNET +-define:ENABLE_CLOUD_SERVICES_BUILD +-define:ENABLE_CLOUD_LICENSE +-define:ENABLE_EDITOR_METRICS +-define:ENABLE_EDITOR_METRICS_CACHING +-define:INCLUDE_DYNAMIC_GI +-define:INCLUDE_GI +-define:INCLUDE_IL2CPP +-define:INCLUDE_DIRECTX12 +-define:PLATFORM_SUPPORTS_MONO +-define:RENDER_SOFTWARE_CURSOR +-define:ENABLE_LOCALIZATION +-define:ENABLE_ANDROID_ATLAS_ETC1_COMPRESSION +-define:ENABLE_EDITOR_TESTS_RUNNER +-define:UNITY_STANDALONE_WIN +-define:UNITY_STANDALONE +-define:ENABLE_SUBSTANCE +-define:ENABLE_TEXTUREID_MAP +-define:ENABLE_RUNTIME_GI +-define:ENABLE_MOVIES +-define:ENABLE_NETWORK +-define:ENABLE_CRUNCH_TEXTURE_COMPRESSION +-define:ENABLE_LOG_MIXED_STACKTRACE +-define:ENABLE_UNITYWEBREQUEST +-define:ENABLE_EVENT_QUEUE +-define:ENABLE_CLUSTERINPUT +-define:ENABLE_WEBSOCKET_HOST +-define:ENABLE_MONO +-define:ENABLE_PROFILER +-define:DEBUG +-define:TRACE +-define:UNITY_ASSERTIONS +-define:UNITY_EDITOR +-define:UNITY_EDITOR_64 +-define:UNITY_EDITOR_WIN +-r:D:/logiciels/Unity/Editor/Data/Managed/UnityEngine.dll +-r:D:/logiciels/Unity/Editor/Data/UnityExtensions/Unity/GUISystem/UnityEngine.UI.dll +-r:D:/logiciels/Unity/Editor/Data/UnityExtensions/Unity/Networking/UnityEngine.Networking.dll +-r:D:/logiciels/Unity/Editor/Data/Managed/UnityEditor.dll +-r:D:/logiciels/Unity/Editor/Data/PlaybackEngines/iOSSupport\UnityEditor.iOS.Extensions.Xcode.dll +-r:D:/logiciels/Unity/Editor/Data/PlaybackEngines/iOSSupport\UnityEditor.iOS.Extensions.Common.dll +-i:UnityEditor +Assets/scripts/HeightmapExportPNG.js diff --git a/Unity network UDP/Temp/UnityTempFile-f13fd05ac70855d4db1f0dfa19516539 b/Unity network UDP/Temp/UnityTempFile-f13fd05ac70855d4db1f0dfa19516539 new file mode 100644 index 0000000..259e3d2 --- /dev/null +++ b/Unity network UDP/Temp/UnityTempFile-f13fd05ac70855d4db1f0dfa19516539 @@ -0,0 +1,93 @@ +-debug +-target:library +-nowarn:0169 +-out:Temp/Assembly-CSharp.dll +-r:D:/logiciels/Unity/Editor/Data/Managed/UnityEngine.dll +-r:D:/logiciels/Unity/Editor/Data/UnityExtensions/Unity/GUISystem/UnityEngine.UI.dll +-r:D:/logiciels/Unity/Editor/Data/UnityExtensions/Unity/Networking/UnityEngine.Networking.dll +-r:D:/logiciels/Unity/Editor/Data/Managed/UnityEditor.dll +-r:D:/logiciels/Unity/Editor/Data/PlaybackEngines/iOSSupport\UnityEditor.iOS.Extensions.Xcode.dll +-r:D:/logiciels/Unity/Editor/Data/PlaybackEngines/iOSSupport\UnityEditor.iOS.Extensions.Common.dll +-define:UNITY_5_3_2 +-define:UNITY_5_3 +-define:UNITY_5 +-define:ENABLE_NEW_BUGREPORTER +-define:ENABLE_AUDIO +-define:ENABLE_CACHING +-define:ENABLE_CLOTH +-define:ENABLE_DUCK_TYPING +-define:ENABLE_FRAME_DEBUGGER +-define:ENABLE_GENERICS +-define:ENABLE_HOME_SCREEN +-define:ENABLE_IMAGEEFFECTS +-define:ENABLE_LIGHT_PROBES_LEGACY +-define:ENABLE_MICROPHONE +-define:ENABLE_MULTIPLE_DISPLAYS +-define:ENABLE_PHYSICS +-define:ENABLE_PLUGIN_INSPECTOR +-define:ENABLE_SHADOWS +-define:ENABLE_SINGLE_INSTANCE_BUILD_SETTING +-define:ENABLE_SPRITERENDERER_FLIPPING +-define:ENABLE_SPRITES +-define:ENABLE_SPRITE_POLYGON +-define:ENABLE_TERRAIN +-define:ENABLE_RAKNET +-define:ENABLE_UNET +-define:ENABLE_UNITYEVENTS +-define:ENABLE_VR +-define:ENABLE_WEBCAM +-define:ENABLE_WWW +-define:ENABLE_CLOUD_SERVICES +-define:ENABLE_CLOUD_SERVICES_ADS +-define:ENABLE_CLOUD_HUB +-define:ENABLE_CLOUD_PROJECT_ID +-define:ENABLE_CLOUD_SERVICES_PURCHASING +-define:ENABLE_CLOUD_SERVICES_ANALYTICS +-define:ENABLE_CLOUD_SERVICES_UNET +-define:ENABLE_CLOUD_SERVICES_BUILD +-define:ENABLE_CLOUD_LICENSE +-define:ENABLE_EDITOR_METRICS +-define:ENABLE_EDITOR_METRICS_CACHING +-define:INCLUDE_DYNAMIC_GI +-define:INCLUDE_GI +-define:INCLUDE_IL2CPP +-define:INCLUDE_DIRECTX12 +-define:PLATFORM_SUPPORTS_MONO +-define:RENDER_SOFTWARE_CURSOR +-define:ENABLE_LOCALIZATION +-define:ENABLE_ANDROID_ATLAS_ETC1_COMPRESSION +-define:ENABLE_EDITOR_TESTS_RUNNER +-define:UNITY_STANDALONE_WIN +-define:UNITY_STANDALONE +-define:ENABLE_SUBSTANCE +-define:ENABLE_TEXTUREID_MAP +-define:ENABLE_RUNTIME_GI +-define:ENABLE_MOVIES +-define:ENABLE_NETWORK +-define:ENABLE_CRUNCH_TEXTURE_COMPRESSION +-define:ENABLE_LOG_MIXED_STACKTRACE +-define:ENABLE_UNITYWEBREQUEST +-define:ENABLE_EVENT_QUEUE +-define:ENABLE_CLUSTERINPUT +-define:ENABLE_WEBSOCKET_HOST +-define:ENABLE_MONO +-define:ENABLE_PROFILER +-define:DEBUG +-define:TRACE +-define:UNITY_ASSERTIONS +-define:UNITY_EDITOR +-define:UNITY_EDITOR_64 +-define:UNITY_EDITOR_WIN +Assets/scripts/gamestate/GameState.cs +Assets/scripts/gamestate/MainState.cs +Assets/scripts/network/Client.cs +Assets/scripts/network/MainClient.cs +Assets/scripts/network/common/DataBuffer.cs +Assets/scripts/network/common/IPacket.cs +Assets/scripts/network/common/Register.cs +Assets/scripts/network/packet/Disconnect_Client_Packet.cs +Assets/scripts/network/packet/MainState_Connection_Request_Packet.cs +Assets/scripts/network/packet/MessagePacket.cs +Assets/scripts/network/packet/PingPacket.cs +-r:D:\logiciels\Unity\Editor\Data\Mono\lib\mono\unity\System.Runtime.Serialization.dll +-r:D:\logiciels\Unity\Editor\Data\Mono\lib\mono\unity\System.Xml.Linq.dll diff --git a/Unity network UDP/Temp/__Backupscenes/0.backup b/Unity network UDP/Temp/__Backupscenes/0.backup new file mode 100644 index 0000000..a2f5b3e Binary files /dev/null and b/Unity network UDP/Temp/__Backupscenes/0.backup differ diff --git a/Unity network UDP/Unity network UDP.sln b/Unity network UDP/Unity network UDP.sln new file mode 100644 index 0000000..465fedb --- /dev/null +++ b/Unity network UDP/Unity network UDP.sln @@ -0,0 +1,29 @@ +Microsoft Visual Studio Solution File, Format Version 11.00 +# Visual Studio 2008 + +Project("{2E18914F-C1A2-9C78-19DE-A896D8224F09}") = "Unity network UDP", "Assembly-CSharp.csproj", "{E8AC5320-5607-FFE2-C7E2-3253D342E899}" +EndProject +Project("{2E18914F-C1A2-9C78-19DE-A896D8224F09}") = "Unity network UDP", "Assembly-CSharp-Editor.csproj", "{9F543762-BF16-744B-B4B2-7D409B8E4AB7}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {E8AC5320-5607-FFE2-C7E2-3253D342E899}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E8AC5320-5607-FFE2-C7E2-3253D342E899}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E8AC5320-5607-FFE2-C7E2-3253D342E899}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E8AC5320-5607-FFE2-C7E2-3253D342E899}.Release|Any CPU.Build.0 = Release|Any CPU + {9F543762-BF16-744B-B4B2-7D409B8E4AB7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9F543762-BF16-744B-B4B2-7D409B8E4AB7}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9F543762-BF16-744B-B4B2-7D409B8E4AB7}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9F543762-BF16-744B-B4B2-7D409B8E4AB7}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(MonoDevelopProperties) = preSolution + StartupItem = Assembly-CSharp.csproj + EndGlobalSection +EndGlobal diff --git a/Unity network UDP/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/Unity network UDP/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..e61b169 Binary files /dev/null and b/Unity network UDP/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ