diff --git a/TestVelGameServer/Assets/Samples/VelNetUnity/1.0.0/Dissonance Integration/VelCommsNetwork.cs b/TestVelGameServer/Assets/Samples/VelNetUnity/1.0.0/Dissonance Integration/VelCommsNetwork.cs
index 5633ee4..d3358c8 100644
--- a/TestVelGameServer/Assets/Samples/VelNetUnity/1.0.0/Dissonance Integration/VelCommsNetwork.cs
+++ b/TestVelGameServer/Assets/Samples/VelNetUnity/1.0.0/Dissonance Integration/VelCommsNetwork.cs
@@ -5,13 +5,13 @@ using UnityEngine;
using UnityEngine.Serialization;
-namespace VelNetUnity
+namespace VelNet
{
///
/// Added to the same object as DissonanceComms component. Only one in the scene.
///
[RequireComponent(typeof(DissonanceComms))]
- [AddComponentMenu("VelNetUnity/Dissonance/VelNet Comms Network")]
+ [AddComponentMenu("VelNet/Dissonance/VelNet Comms Network")]
public class VelCommsNetwork : MonoBehaviour, ICommsNetwork
{
public ConnectionStatus Status => manager.connected ? ConnectionStatus.Connected : ConnectionStatus.Disconnected;
diff --git a/TestVelGameServer/Assets/Samples/VelNetUnity/1.0.0/Dissonance Integration/VelNetDissonancePlayer.cs b/TestVelGameServer/Assets/Samples/VelNetUnity/1.0.0/Dissonance Integration/VelNetDissonancePlayer.cs
index 0ea2dba..8835c76 100644
--- a/TestVelGameServer/Assets/Samples/VelNetUnity/1.0.0/Dissonance Integration/VelNetDissonancePlayer.cs
+++ b/TestVelGameServer/Assets/Samples/VelNetUnity/1.0.0/Dissonance Integration/VelNetDissonancePlayer.cs
@@ -5,12 +5,12 @@ using System.Linq;
using Dissonance;
using UnityEngine;
-namespace VelNetUnity
+namespace VelNet
{
///
/// This should be added to your player object
///
- [AddComponentMenu("VelNetUnity/Dissonance/VelNet Dissonance Player")]
+ [AddComponentMenu("VelNet/Dissonance/VelNet Dissonance Player")]
public class VelNetDissonancePlayer : NetworkComponent, IDissonancePlayer
{
private VelCommsNetwork comms;
@@ -28,6 +28,10 @@ namespace VelNetUnity
public bool IsTracking => true;
private static readonly List allPlayers = new List();
+
+ ///
+ /// Only sends voice data to players in this list
+ ///
public List closePlayers = new List();
[Tooltip("Maximum distance to transmit voice data. 0 to always send voice to all players.")]
@@ -50,12 +54,30 @@ namespace VelNetUnity
return;
}
+
+ }
+
+ private void OnEnable()
+ {
// add ourselves to the global list of all players in the scene
if (!allPlayers.Contains(this))
{
allPlayers.Add(this);
}
+ else
+ {
+ Debug.LogError("We're already in the player list 🐭", this);
+ }
+ }
+ private void OnDisable()
+ {
+ // remove ourselves from the global list of all players in the scene
+ allPlayers.Remove(this);
+ }
+
+ private void Start()
+ {
if (IsMine)
{
SetDissonanceID(comms.dissonanceId);
@@ -71,7 +93,7 @@ namespace VelNetUnity
writer.Write(dissonanceID);
SendBytes(mem.ToArray());
};
- VelNetManager.instance.SetupMessageGroup("close", closePlayers.ToArray());
+ VelNetManager.instance.SetupMessageGroup("voice", closePlayers);
}
}
@@ -83,10 +105,12 @@ namespace VelNetUnity
using MemoryStream mem = new MemoryStream();
using BinaryWriter writer = new BinaryWriter(mem);
writer.Write((byte)MessageType.AudioData);
- writer.Write(BitConverter.GetBytes(lastAudioId++));
+ writer.Write(lastAudioId++);
writer.Write(data.ToArray());
// send voice data unreliably
- SendBytesToGroup("close", mem.ToArray(), false);
+ SendBytes(mem.ToArray(), false);
+ // SendBytesToGroup("voice", mem.ToArray());
+
}
///
@@ -147,12 +171,16 @@ namespace VelNetUnity
if (closePlayerListChanged)
{
- VelNetManager.instance.SetupMessageGroup("close", closePlayers);
+ VelNetManager.instance.SetupMessageGroup("voice", closePlayers);
}
}
+ else
+ {
+ closePlayers = allPlayers.Select(p => p.Owner.userid).ToList();
+ }
- //handle dissonance comms
+ // handle dissonance comms
//if we're not speaking, and the comms say we are, send a speaking event, which will be received on other network players and sent to their comms accordingly
if (comms.dissonanceComms.FindPlayer(dissonanceID)?.IsSpeaking != isSpeaking) //unfortunately, there does not seem to be an event for this
@@ -194,6 +222,7 @@ namespace VelNetUnity
if (dissonanceID == "") // I don't have this yet
{
dissonanceID = reader.ReadString();
+
// tell the comms network that this player joined the channel
comms.SetPlayerJoined(dissonanceID); // tell dissonance
comms.dissonanceComms.TrackPlayerPosition(this); // tell dissonance to track the remote player
diff --git a/TestVelGameServer/Assets/Samples/VelNetUnity/1.0.0/Example/NetworkGUI.cs b/TestVelGameServer/Assets/Samples/VelNetUnity/1.0.0/Example/NetworkGUI.cs
index 034466f..d8ca255 100644
--- a/TestVelGameServer/Assets/Samples/VelNetUnity/1.0.0/Example/NetworkGUI.cs
+++ b/TestVelGameServer/Assets/Samples/VelNetUnity/1.0.0/Example/NetworkGUI.cs
@@ -3,7 +3,7 @@ using UnityEngine;
using UnityEngine.Serialization;
using UnityEngine.UI;
-namespace VelNetUnity
+namespace VelNet
{
public class NetworkGUI : MonoBehaviour
{
diff --git a/TestVelGameServer/Assets/Samples/VelNetUnity/1.0.0/Example/PlayerController.cs b/TestVelGameServer/Assets/Samples/VelNetUnity/1.0.0/Example/PlayerController.cs
index aebafb5..b33a15f 100644
--- a/TestVelGameServer/Assets/Samples/VelNetUnity/1.0.0/Example/PlayerController.cs
+++ b/TestVelGameServer/Assets/Samples/VelNetUnity/1.0.0/Example/PlayerController.cs
@@ -2,9 +2,9 @@ using System.Collections.Generic;
using System.IO;
using UnityEngine;
-namespace VelNetUnity
+namespace VelNet
{
- public class PlayerController : NetworkSerializedObject
+ public class PlayerController : NetworkComponent
{
public Vector3 targetPosition;
public Quaternion targetRotation;
@@ -13,12 +13,13 @@ namespace VelNetUnity
// Update is called once per frame
private void Update()
{
- if (!IsMine)
- {
- transform.position = Vector3.Lerp(transform.position, targetPosition, .1f);
- transform.rotation = Quaternion.Slerp(transform.rotation, targetRotation, .1f);
- }
- else
+ // if (!IsMine)
+ // {
+ // transform.position = Vector3.Lerp(transform.position, targetPosition, .1f);
+ // transform.rotation = Quaternion.Slerp(transform.rotation, targetRotation, .1f);
+ // }
+ // else
+ if (IsMine)
{
Vector3 movement = new Vector3();
movement.x += Input.GetAxis("Horizontal");
@@ -53,25 +54,29 @@ namespace VelNetUnity
}
}
-
- protected override byte[] SendState()
+ //
+ // protected override byte[] SendState()
+ // {
+ // using MemoryStream mem = new MemoryStream();
+ // using BinaryWriter writer = new BinaryWriter(mem);
+ //
+ // writer.Write(transform.position);
+ // writer.Write(transform.rotation);
+ //
+ // return mem.ToArray();
+ // }
+ //
+ // protected override void ReceiveState(byte[] message)
+ // {
+ // using MemoryStream mem = new MemoryStream(message);
+ // using BinaryReader reader = new BinaryReader(mem);
+ //
+ // targetPosition = reader.ReadVector3();
+ // targetRotation = reader.ReadQuaternion();
+ // }
+ public override void ReceiveBytes(byte[] message)
{
- using MemoryStream mem = new MemoryStream();
- using BinaryWriter writer = new BinaryWriter(mem);
-
- writer.Write(transform.position);
- writer.Write(transform.rotation);
-
- return mem.ToArray();
- }
-
- protected override void ReceiveState(byte[] message)
- {
- using MemoryStream mem = new MemoryStream(message);
- using BinaryReader reader = new BinaryReader(mem);
-
- targetPosition = reader.ReadVector3();
- targetRotation = reader.ReadQuaternion();
+ throw new System.NotImplementedException();
}
}
}
\ No newline at end of file
diff --git a/TestVelGameServer/Assets/Samples/VelNetUnity/1.0.0/Example/PlayerPrefab.prefab b/TestVelGameServer/Assets/Samples/VelNetUnity/1.0.0/Example/PlayerPrefab.prefab
index e4b77af..9749fe3 100644
--- a/TestVelGameServer/Assets/Samples/VelNetUnity/1.0.0/Example/PlayerPrefab.prefab
+++ b/TestVelGameServer/Assets/Samples/VelNetUnity/1.0.0/Example/PlayerPrefab.prefab
@@ -31,7 +31,7 @@ Transform:
m_GameObject: {fileID: 6139051692386484099}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
- m_LocalScale: {x: 1, y: 1, z: 1}
+ m_LocalScale: {x: 0.1, y: 0.1, z: 0.1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
@@ -130,7 +130,6 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
networkObject: {fileID: 9102273340480352682}
- serializationRateHz: 30
targetPosition: {x: 0, y: 0, z: 0}
targetRotation: {x: 0, y: 0, z: 0, w: 0}
--- !u!114 &1181612843795795320
@@ -147,7 +146,5 @@ MonoBehaviour:
m_EditorClassIdentifier:
networkObject: {fileID: 9102273340480352682}
dissonanceID:
- targetPosition: {x: 0, y: 0, z: 0}
- targetRotation: {x: 0, y: 0, z: 0, w: 0}
closePlayers:
maxDistance: 0
diff --git a/TestVelGameServer/Assets/Samples/VelNetUnity/1.0.0/Example/TestNetworkedGameObject.prefab b/TestVelGameServer/Assets/Samples/VelNetUnity/1.0.0/Example/TestNetworkedGameObject.prefab
index e08d947..d2a16a9 100644
--- a/TestVelGameServer/Assets/Samples/VelNetUnity/1.0.0/Example/TestNetworkedGameObject.prefab
+++ b/TestVelGameServer/Assets/Samples/VelNetUnity/1.0.0/Example/TestNetworkedGameObject.prefab
@@ -58,7 +58,7 @@ MonoBehaviour:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8565720275311462453}
- m_Enabled: 1
+ m_Enabled: 0
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 3f1f9b0bbd93a484a987c51f1107ebe5, type: 3}
m_Name:
diff --git a/TestVelGameServer/Assets/Samples/VelNetUnity/1.0.0/Example/VelNetMan.cs b/TestVelGameServer/Assets/Samples/VelNetUnity/1.0.0/Example/VelNetMan.cs
index 00bf9e7..6988c1d 100644
--- a/TestVelGameServer/Assets/Samples/VelNetUnity/1.0.0/Example/VelNetMan.cs
+++ b/TestVelGameServer/Assets/Samples/VelNetUnity/1.0.0/Example/VelNetMan.cs
@@ -1,7 +1,7 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
-using VelNetUnity;
+using VelNet;
public class VelNetMan : MonoBehaviour
{
diff --git a/TestVelGameServer/Assets/Samples/VelNetUnity/1.0.0/Example/test.unity b/TestVelGameServer/Assets/Samples/VelNetUnity/1.0.0/Example/test.unity
index bda34bd..4ef181e 100644
--- a/TestVelGameServer/Assets/Samples/VelNetUnity/1.0.0/Example/test.unity
+++ b/TestVelGameServer/Assets/Samples/VelNetUnity/1.0.0/Example/test.unity
@@ -1834,7 +1834,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 03a4d4e1a7fd74c7ab2eccca4ce168db, type: 3}
m_Name:
m_EditorClassIdentifier:
- host: neko.ugavel.com
+ host: 129.159.107.234
port: 3290
udpConnected: 0
userid: -1
@@ -3406,7 +3406,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 8565720275311462455, guid: 6e4a023f70e01405e8b249a4488fe319, type: 3}
propertyPath: m_LocalPosition.y
- value: 0
+ value: 2
objectReference: {fileID: 0}
- target: {fileID: 8565720275311462455, guid: 6e4a023f70e01405e8b249a4488fe319, type: 3}
propertyPath: m_LocalPosition.z
diff --git a/TestVelGameServer/Packages/VelNetUnity/Runtime/NetworkComponent.cs b/TestVelGameServer/Packages/VelNetUnity/Runtime/NetworkComponent.cs
index 0dead22..9b859bf 100644
--- a/TestVelGameServer/Packages/VelNetUnity/Runtime/NetworkComponent.cs
+++ b/TestVelGameServer/Packages/VelNetUnity/Runtime/NetworkComponent.cs
@@ -1,6 +1,6 @@
using UnityEngine;
-namespace VelNetUnity
+namespace VelNet
{
public abstract class NetworkComponent : MonoBehaviour
{
@@ -24,7 +24,6 @@ namespace VelNetUnity
networkObject.SendBytesToGroup(this, group, message, reliable);
}
- //
///
/// This is called by when messages are received for this component
///
diff --git a/TestVelGameServer/Packages/VelNetUnity/Runtime/NetworkObject.cs b/TestVelGameServer/Packages/VelNetUnity/Runtime/NetworkObject.cs
index e4139db..1193745 100644
--- a/TestVelGameServer/Packages/VelNetUnity/Runtime/NetworkObject.cs
+++ b/TestVelGameServer/Packages/VelNetUnity/Runtime/NetworkObject.cs
@@ -2,7 +2,7 @@ using System.Collections.Generic;
using System.Linq;
using UnityEngine;
-namespace VelNetUnity
+namespace VelNet
{
///
/// This is a base class for all objects that a player can instantiated/owned
@@ -43,7 +43,7 @@ namespace VelNetUnity
public void SendBytesToGroup(NetworkComponent component, string group, byte[] message, bool reliable = true)
{
- if (owner == null || !owner.isLocal)
+ if (!IsMine)
{
Debug.LogError("Can't send message if owner is null or not local", this);
return;
diff --git a/TestVelGameServer/Packages/VelNetUnity/Runtime/NetworkPlayer.cs b/TestVelGameServer/Packages/VelNetUnity/Runtime/NetworkPlayer.cs
index 448c6b2..f84dafe 100644
--- a/TestVelGameServer/Packages/VelNetUnity/Runtime/NetworkPlayer.cs
+++ b/TestVelGameServer/Packages/VelNetUnity/Runtime/NetworkPlayer.cs
@@ -1,7 +1,7 @@
using System.Collections.Generic;
using System;
-namespace VelNetUnity
+namespace VelNet
{
///
/// Represents a network player
@@ -53,10 +53,11 @@ namespace VelNetUnity
}
}
-
+ ///
+ /// These are generally things that come from the "owner" and should be enacted locally, where appropriate
+ ///
public void HandleMessage(VelNetManager.Message m)
{
- //these are generally things that come from the "owner" and should be enacted locally, where appropriate
//we need to parse the message
//types of messages
@@ -104,7 +105,7 @@ namespace VelNetUnity
break; //we already have this one, ignore
}
- VelNetManager.InstantiateNetworkObject(networkId, prefabName, this);
+ VelNetManager.SomebodyInstantiatedNetworkObject(networkId, prefabName, this);
break;
}
diff --git a/TestVelGameServer/Packages/VelNetUnity/Runtime/NetworkSerializedObject.cs b/TestVelGameServer/Packages/VelNetUnity/Runtime/NetworkSerializedObject.cs
index 162ced2..ef1aa14 100644
--- a/TestVelGameServer/Packages/VelNetUnity/Runtime/NetworkSerializedObject.cs
+++ b/TestVelGameServer/Packages/VelNetUnity/Runtime/NetworkSerializedObject.cs
@@ -2,7 +2,7 @@
using UnityEngine;
using UnityEngine.Serialization;
-namespace VelNetUnity
+namespace VelNet
{
public abstract class NetworkSerializedObject : NetworkComponent
{
diff --git a/TestVelGameServer/Packages/VelNetUnity/Runtime/Util/BinaryWriterExtensions.cs b/TestVelGameServer/Packages/VelNetUnity/Runtime/Util/BinaryWriterExtensions.cs
index a07fc60..f122745 100644
--- a/TestVelGameServer/Packages/VelNetUnity/Runtime/Util/BinaryWriterExtensions.cs
+++ b/TestVelGameServer/Packages/VelNetUnity/Runtime/Util/BinaryWriterExtensions.cs
@@ -1,7 +1,7 @@
using System.IO;
using UnityEngine;
-namespace VelNetUnity
+namespace VelNet
{
public static class BinaryWriterExtensions
{
diff --git a/TestVelGameServer/Packages/VelNetUnity/Runtime/Util/SyncTransform.cs b/TestVelGameServer/Packages/VelNetUnity/Runtime/Util/SyncTransform.cs
index 5cb2b50..231a0eb 100644
--- a/TestVelGameServer/Packages/VelNetUnity/Runtime/Util/SyncTransform.cs
+++ b/TestVelGameServer/Packages/VelNetUnity/Runtime/Util/SyncTransform.cs
@@ -2,12 +2,12 @@ using System.IO;
using UnityEngine;
-namespace VelNetUnity
+namespace VelNet
{
///
/// A simple class that will sync the position and rotation of a network object
///
- [AddComponentMenu("VelNetUnity/VelNet Sync Transform")]
+ [AddComponentMenu("VelNet/VelNet Sync Transform")]
public class SyncTransform : NetworkSerializedObject
{
public Vector3 targetPosition;
diff --git a/TestVelGameServer/Packages/VelNetUnity/Runtime/VelNetManager.cs b/TestVelGameServer/Packages/VelNetUnity/Runtime/VelNetManager.cs
index 140d231..b46ee81 100644
--- a/TestVelGameServer/Packages/VelNetUnity/Runtime/VelNetManager.cs
+++ b/TestVelGameServer/Packages/VelNetUnity/Runtime/VelNetManager.cs
@@ -7,9 +7,9 @@ using System.Threading;
using UnityEngine;
using System.Net;
-namespace VelNetUnity
+namespace VelNet
{
- [AddComponentMenu("VelNetUnity/VelNet Manager")]
+ [AddComponentMenu("VelNet/VelNet Manager")]
public class VelNetManager : MonoBehaviour
{
public enum MessageType
@@ -332,38 +332,36 @@ namespace VelNetUnity
while (true)
{
// Get a stream object for reading
- using (NetworkStream stream = socketConnection.GetStream())
+ using NetworkStream stream = socketConnection.GetStream();
+ int length;
+ // Read incomming stream into byte arrary.
+ while ((length = stream.Read(bytes, 0, bytes.Length)) != 0)
{
- int length;
- // Read incomming stream into byte arrary.
- while ((length = stream.Read(bytes, 0, bytes.Length)) != 0)
+ byte[] incommingData = new byte[length];
+ Array.Copy(bytes, 0, incommingData, 0, length);
+ // Convert byte array to string message.
+ string serverMessage = Encoding.ASCII.GetString(incommingData);
+ string[] sections = serverMessage.Split('\n');
+ if (sections.Length > 1)
{
- byte[] incommingData = new byte[length];
- Array.Copy(bytes, 0, incommingData, 0, length);
- // Convert byte array to string message.
- string serverMessage = Encoding.ASCII.GetString(incommingData);
- string[] sections = serverMessage.Split('\n');
- if (sections.Length > 1)
+ lock (receivedMessages)
{
- lock (receivedMessages)
+ for (int i = 0; i < sections.Length - 1; i++)
{
- for (int i = 0; i < sections.Length - 1; i++)
+ if (i == 0)
{
- if (i == 0)
- {
- HandleMessage(partialMessage + sections[0]);
- partialMessage = "";
- }
- else
- {
- HandleMessage(sections[i]);
- }
+ HandleMessage(partialMessage + sections[0]);
+ partialMessage = "";
+ }
+ else
+ {
+ HandleMessage(sections[i]);
}
}
}
-
- partialMessage = partialMessage + sections[sections.Length - 1];
}
+
+ partialMessage = partialMessage + sections[sections.Length - 1];
}
}
}
@@ -464,7 +462,7 @@ namespace VelNetUnity
if (stream.CanWrite)
{
// Convert string message to byte array.
- clientMessage = clientMessage + "\n"; //append a new line to delineate the message
+ clientMessage += "\n"; // append a new line to delineate the message
byte[] clientMessageAsByteArray = Encoding.ASCII.GetBytes(clientMessage);
// Write byte array to socketConnection stream.
stream.Write(clientMessageAsByteArray, 0, clientMessageAsByteArray.Length);
@@ -538,9 +536,12 @@ namespace VelNetUnity
newObject.prefabName = prefabName;
newObject.owner = localPlayer;
instance.objects.Add(newObject.networkId, newObject);
+
+ // only sent to others, as I already instantiated this. Nice that it happens immediately.
+ instance.SendTo(MessageType.OTHERS, "7," + newObject.networkId + "," + prefabName);
}
- public static void InstantiateNetworkObject(string networkId, string prefabName, NetworkPlayer owner)
+ public static void SomebodyInstantiatedNetworkObject(string networkId, string prefabName, NetworkPlayer owner)
{
NetworkObject prefab = instance.prefabs.Find(p => p.name == prefabName);
if (prefab == null) return;
diff --git a/TestVelGameServer/Packages/VelNetUnity/Samples~/DissonanceIntegration/VelCommsNetwork.cs b/TestVelGameServer/Packages/VelNetUnity/Samples~/DissonanceIntegration/VelCommsNetwork.cs
index 5633ee4..d3358c8 100644
--- a/TestVelGameServer/Packages/VelNetUnity/Samples~/DissonanceIntegration/VelCommsNetwork.cs
+++ b/TestVelGameServer/Packages/VelNetUnity/Samples~/DissonanceIntegration/VelCommsNetwork.cs
@@ -5,13 +5,13 @@ using UnityEngine;
using UnityEngine.Serialization;
-namespace VelNetUnity
+namespace VelNet
{
///
/// Added to the same object as DissonanceComms component. Only one in the scene.
///
[RequireComponent(typeof(DissonanceComms))]
- [AddComponentMenu("VelNetUnity/Dissonance/VelNet Comms Network")]
+ [AddComponentMenu("VelNet/Dissonance/VelNet Comms Network")]
public class VelCommsNetwork : MonoBehaviour, ICommsNetwork
{
public ConnectionStatus Status => manager.connected ? ConnectionStatus.Connected : ConnectionStatus.Disconnected;
diff --git a/TestVelGameServer/Packages/VelNetUnity/Samples~/DissonanceIntegration/VelNetDissonancePlayer.cs b/TestVelGameServer/Packages/VelNetUnity/Samples~/DissonanceIntegration/VelNetDissonancePlayer.cs
index 0ea2dba..72b9a38 100644
--- a/TestVelGameServer/Packages/VelNetUnity/Samples~/DissonanceIntegration/VelNetDissonancePlayer.cs
+++ b/TestVelGameServer/Packages/VelNetUnity/Samples~/DissonanceIntegration/VelNetDissonancePlayer.cs
@@ -5,12 +5,12 @@ using System.Linq;
using Dissonance;
using UnityEngine;
-namespace VelNetUnity
+namespace VelNet
{
///
/// This should be added to your player object
///
- [AddComponentMenu("VelNetUnity/Dissonance/VelNet Dissonance Player")]
+ [AddComponentMenu("VelNet/Dissonance/VelNet Dissonance Player")]
public class VelNetDissonancePlayer : NetworkComponent, IDissonancePlayer
{
private VelCommsNetwork comms;
diff --git a/TestVelGameServer/Packages/VelNetUnity/Samples~/Example/NetworkGUI.cs b/TestVelGameServer/Packages/VelNetUnity/Samples~/Example/NetworkGUI.cs
index 034466f..d8ca255 100644
--- a/TestVelGameServer/Packages/VelNetUnity/Samples~/Example/NetworkGUI.cs
+++ b/TestVelGameServer/Packages/VelNetUnity/Samples~/Example/NetworkGUI.cs
@@ -3,7 +3,7 @@ using UnityEngine;
using UnityEngine.Serialization;
using UnityEngine.UI;
-namespace VelNetUnity
+namespace VelNet
{
public class NetworkGUI : MonoBehaviour
{
diff --git a/TestVelGameServer/Packages/VelNetUnity/Samples~/Example/PlayerController.cs b/TestVelGameServer/Packages/VelNetUnity/Samples~/Example/PlayerController.cs
index aebafb5..f1886ba 100644
--- a/TestVelGameServer/Packages/VelNetUnity/Samples~/Example/PlayerController.cs
+++ b/TestVelGameServer/Packages/VelNetUnity/Samples~/Example/PlayerController.cs
@@ -2,7 +2,7 @@ using System.Collections.Generic;
using System.IO;
using UnityEngine;
-namespace VelNetUnity
+namespace VelNet
{
public class PlayerController : NetworkSerializedObject
{
diff --git a/TestVelGameServer/Packages/VelNetUnity/Samples~/Example/VelNetMan.cs b/TestVelGameServer/Packages/VelNetUnity/Samples~/Example/VelNetMan.cs
index 00bf9e7..6988c1d 100644
--- a/TestVelGameServer/Packages/VelNetUnity/Samples~/Example/VelNetMan.cs
+++ b/TestVelGameServer/Packages/VelNetUnity/Samples~/Example/VelNetMan.cs
@@ -1,7 +1,7 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
-using VelNetUnity;
+using VelNet;
public class VelNetMan : MonoBehaviour
{
diff --git a/TestVelGameServer/Packages/VelNetUnity/VelNetUnity.asmdef b/TestVelGameServer/Packages/VelNetUnity/VelNet.asmdef
similarity index 81%
rename from TestVelGameServer/Packages/VelNetUnity/VelNetUnity.asmdef
rename to TestVelGameServer/Packages/VelNetUnity/VelNet.asmdef
index 3422459..4a6f011 100644
--- a/TestVelGameServer/Packages/VelNetUnity/VelNetUnity.asmdef
+++ b/TestVelGameServer/Packages/VelNetUnity/VelNet.asmdef
@@ -1,6 +1,6 @@
{
- "name": "VelNetUnity",
- "rootNamespace": "VelNetUnity",
+ "name": "VelNet",
+ "rootNamespace": "VelNet",
"references": [],
"includePlatforms": [],
"excludePlatforms": [],
diff --git a/TestVelGameServer/Packages/VelNetUnity/VelNetUnity.asmdef.meta b/TestVelGameServer/Packages/VelNetUnity/VelNet.asmdef.meta
similarity index 100%
rename from TestVelGameServer/Packages/VelNetUnity/VelNetUnity.asmdef.meta
rename to TestVelGameServer/Packages/VelNetUnity/VelNet.asmdef.meta
diff --git a/TestVelGameServer/Packages/VelNetUnity/package.json b/TestVelGameServer/Packages/VelNetUnity/package.json
index fcdbec8..9e4bd8d 100644
--- a/TestVelGameServer/Packages/VelNetUnity/package.json
+++ b/TestVelGameServer/Packages/VelNetUnity/package.json
@@ -1,6 +1,6 @@
{
- "name": "edu.uga.engr.vel.velnetunity",
- "displayName": "VelNetUnity",
+ "name": "edu.uga.engr.vel.velnet",
+ "displayName": "VelNet",
"version": "1.0.3",
"unity": "2019.1",
"description": "A custom networking library for Unity.",
diff --git a/TestVelGameServer/Packages/packages-lock.json b/TestVelGameServer/Packages/packages-lock.json
index 29bc8f6..9b8e184 100644
--- a/TestVelGameServer/Packages/packages-lock.json
+++ b/TestVelGameServer/Packages/packages-lock.json
@@ -99,7 +99,7 @@
"com.unity.modules.imgui": "1.0.0"
}
},
- "edu.uga.engr.vel.velnetunity": {
+ "edu.uga.engr.vel.velnet": {
"version": "file:VelNetUnity",
"depth": 0,
"source": "embedded",
diff --git a/TestVelGameServer/ProjectSettings/ProjectSettings.asset b/TestVelGameServer/ProjectSettings/ProjectSettings.asset
index 2d3bc76..798752b 100644
--- a/TestVelGameServer/ProjectSettings/ProjectSettings.asset
+++ b/TestVelGameServer/ProjectSettings/ProjectSettings.asset
@@ -68,6 +68,12 @@ PlayerSettings:
androidRenderOutsideSafeArea: 1
androidUseSwappy: 1
androidBlitType: 0
+ androidResizableWindow: 0
+ androidDefaultWindowWidth: 1920
+ androidDefaultWindowHeight: 1080
+ androidMinimumWindowWidth: 400
+ androidMinimumWindowHeight: 300
+ androidFullscreenMode: 1
defaultIsNativeResolution: 0
macRetinaSupport: 1
runInBackground: 1
@@ -121,6 +127,7 @@ PlayerSettings:
vulkanEnableSetSRGBWrite: 0
vulkanEnablePreTransform: 0
vulkanEnableLateAcquireNextImage: 0
+ vulkanEnableCommandBufferRecycling: 1
m_SupportedAspectRatios:
4:3: 1
5:4: 1
@@ -236,6 +243,7 @@ PlayerSettings:
useCustomGradlePropertiesTemplate: 0
useCustomProguardFile: 0
AndroidTargetArchitectures: 1
+ AndroidTargetDevices: 0
AndroidSplashScreenScale: 0
androidSplashScreen: {fileID: 0}
AndroidKeystoreName:
@@ -252,13 +260,106 @@ PlayerSettings:
height: 180
banner: {fileID: 0}
androidGamepadSupportLevel: 0
+ chromeosInputEmulation: 1
AndroidMinifyWithR8: 0
AndroidMinifyRelease: 0
AndroidMinifyDebug: 0
AndroidValidateAppBundleSize: 1
AndroidAppBundleSizeToValidate: 150
m_BuildTargetIcons: []
- m_BuildTargetPlatformIcons: []
+ m_BuildTargetPlatformIcons:
+ - m_BuildTarget: Android
+ m_Icons:
+ - m_Textures: []
+ m_Width: 432
+ m_Height: 432
+ m_Kind: 2
+ m_SubKind:
+ - m_Textures: []
+ m_Width: 324
+ m_Height: 324
+ m_Kind: 2
+ m_SubKind:
+ - m_Textures: []
+ m_Width: 216
+ m_Height: 216
+ m_Kind: 2
+ m_SubKind:
+ - m_Textures: []
+ m_Width: 162
+ m_Height: 162
+ m_Kind: 2
+ m_SubKind:
+ - m_Textures: []
+ m_Width: 108
+ m_Height: 108
+ m_Kind: 2
+ m_SubKind:
+ - m_Textures: []
+ m_Width: 81
+ m_Height: 81
+ m_Kind: 2
+ m_SubKind:
+ - m_Textures: []
+ m_Width: 192
+ m_Height: 192
+ m_Kind: 0
+ m_SubKind:
+ - m_Textures: []
+ m_Width: 144
+ m_Height: 144
+ m_Kind: 0
+ m_SubKind:
+ - m_Textures: []
+ m_Width: 96
+ m_Height: 96
+ m_Kind: 0
+ m_SubKind:
+ - m_Textures: []
+ m_Width: 72
+ m_Height: 72
+ m_Kind: 0
+ m_SubKind:
+ - m_Textures: []
+ m_Width: 48
+ m_Height: 48
+ m_Kind: 0
+ m_SubKind:
+ - m_Textures: []
+ m_Width: 36
+ m_Height: 36
+ m_Kind: 0
+ m_SubKind:
+ - m_Textures: []
+ m_Width: 192
+ m_Height: 192
+ m_Kind: 1
+ m_SubKind:
+ - m_Textures: []
+ m_Width: 144
+ m_Height: 144
+ m_Kind: 1
+ m_SubKind:
+ - m_Textures: []
+ m_Width: 96
+ m_Height: 96
+ m_Kind: 1
+ m_SubKind:
+ - m_Textures: []
+ m_Width: 72
+ m_Height: 72
+ m_Kind: 1
+ m_SubKind:
+ - m_Textures: []
+ m_Width: 48
+ m_Height: 48
+ m_Kind: 1
+ m_SubKind:
+ - m_Textures: []
+ m_Width: 36
+ m_Height: 36
+ m_Kind: 1
+ m_SubKind:
m_BuildTargetBatching:
- m_BuildTarget: Standalone
m_StaticBatching: 1
@@ -346,6 +447,7 @@ PlayerSettings:
cameraUsageDescription:
locationUsageDescription:
microphoneUsageDescription: Allow voice communications
+ bluetoothUsageDescription:
switchNMETAOverride:
switchNetLibKey:
switchSocketMemoryPoolSize: 6144
diff --git a/TestVelGameServer/ProjectSettings/ProjectVersion.txt b/TestVelGameServer/ProjectSettings/ProjectVersion.txt
index 35d8282..24993f7 100644
--- a/TestVelGameServer/ProjectSettings/ProjectVersion.txt
+++ b/TestVelGameServer/ProjectSettings/ProjectVersion.txt
@@ -1,2 +1,2 @@
-m_EditorVersion: 2020.3.16f1
-m_EditorVersionWithRevision: 2020.3.16f1 (049d6eca3c44)
+m_EditorVersion: 2020.3.23f1
+m_EditorVersionWithRevision: 2020.3.23f1 (c5d91304a876)