diff --git a/Netick/Editor/Netick.CodeGen.dll b/Netick/Editor/Netick.CodeGen.dll index 8554ee5..4872dcb 100644 Binary files a/Netick/Editor/Netick.CodeGen.dll and b/Netick/Editor/Netick.CodeGen.dll differ diff --git a/Netick/Editor/Netick.Unity.Editor.dll b/Netick/Editor/Netick.Unity.Editor.dll index 0d5781e..5abe94d 100644 Binary files a/Netick/Editor/Netick.Unity.Editor.dll and b/Netick/Editor/Netick.Unity.Editor.dll differ diff --git a/Netick/Editor/Netick.Unity.Pro.Editor.dll b/Netick/Editor/Netick.Unity.Pro.Editor.dll index 42c4f0f..dbe83c3 100644 Binary files a/Netick/Editor/Netick.Unity.Pro.Editor.dll and b/Netick/Editor/Netick.Unity.Pro.Editor.dll differ diff --git a/Netick/Editor/Unity.Netick.CodeGen.dll b/Netick/Editor/Unity.Netick.CodeGen.dll index e5224a9..b472691 100644 Binary files a/Netick/Editor/Unity.Netick.CodeGen.dll and b/Netick/Editor/Unity.Netick.CodeGen.dll differ diff --git a/Netick/Runtime/Netick.Pro.dll b/Netick/Runtime/Netick.Pro.dll index 6577f6e..e848dcd 100644 Binary files a/Netick/Runtime/Netick.Pro.dll and b/Netick/Runtime/Netick.Pro.dll differ diff --git a/Netick/Runtime/Netick.Pro.xml b/Netick/Runtime/Netick.Pro.xml index 8819e22..e9d7d55 100644 --- a/Netick/Runtime/Netick.Pro.xml +++ b/Netick/Runtime/Netick.Pro.xml @@ -18,6 +18,17 @@ Choose whether you want to include normal unity colliders, or only Netick HitShapes. Returns true if the ray intersects with a Collider/HitShape, otherwise false. + + + Casts a lag compensated ray, from point origin, in direction direction, of length maxDistance, + against all HitShapes and in the Scene, and return all hits. + + The starting point of the ray in world coordinates. + The direction of the ray. + The input source to compensate for. + The max distance the ray should check for collisions. + A that is used to selectively ignore Colliders when casting a ray. + Performs a lag compensated OverlapSphere which computes and stores HitShapes and Colliders (if includeUnityColliders is equal to true) touching or inside the sphere. diff --git a/Netick/Runtime/Netick.Unity.Pro.dll b/Netick/Runtime/Netick.Unity.Pro.dll index 708c161..c025a19 100644 Binary files a/Netick/Runtime/Netick.Unity.Pro.dll and b/Netick/Runtime/Netick.Unity.Pro.dll differ diff --git a/Netick/Runtime/Netick.Unity.Pro.xml b/Netick/Runtime/Netick.Unity.Pro.xml index 33e3040..1f84891 100644 --- a/Netick/Runtime/Netick.Unity.Pro.xml +++ b/Netick/Runtime/Netick.Unity.Pro.xml @@ -32,6 +32,30 @@ Choose whether you want to include normal unity colliders, or only Netick HitShapes. Returns true if the ray intersects with a Collider/HitShape, otherwise false. + + + Casts a lag compensated ray, from point origin, in direction direction, of length maxDistance, + against all HitShapes and Colliders (if includeUnityColliders is equal to true) in the Scene, and returns all the hits. + + The starting point of the ray in world coordinates. + The direction of the ray. + + The input source to compensate for. + The max distance the ray should check for collisions. + A that is used to selectively ignore Colliders when casting a ray. + + + + Casts a lag compensated ray, from point origin, in direction direction, of length maxDistance, + against all HitShapes and Colliders (if includeUnityColliders is equal to true) in the Scene, and returns all the hits. + + The starting point of the ray in world coordinates. + The direction of the ray. + + The input source to compensate for. + The max distance the ray should check for collisions. + A that is used to selectively ignore Colliders when casting a ray. + Performs a lag compensated OverlapSphere which computes and stores HitShapes and Colliders (if includeUnityColliders is equal to true) touching or inside the sphere. diff --git a/Netick/Runtime/Netick.Unity.dll b/Netick/Runtime/Netick.Unity.dll index 0333d98..8961687 100644 Binary files a/Netick/Runtime/Netick.Unity.dll and b/Netick/Runtime/Netick.Unity.dll differ diff --git a/Netick/Runtime/Netick.Unity.xml b/Netick/Runtime/Netick.Unity.xml index 9842c43..dbeea79 100644 --- a/Netick/Runtime/Netick.Unity.xml +++ b/Netick/Runtime/Netick.Unity.xml @@ -18,6 +18,14 @@ How many instances to be preloaded. Pass true to hide inactive pool members. + + + Gets a Network Prefab by name. + Note: this causes GC. + + + The Network Prefab + Instantiates a prefab. This must be called instead of or its variations. @@ -50,6 +58,11 @@ The object to destroy. + + + Use this to enable/disable Physics Prediction in the client at runtime. + + Returns true if this is the server. @@ -105,6 +118,11 @@ [Client Only] Returns true if this client is currently connected to a server. + + + The underlying transport used for low-level networking. + + A list containing all connected clients currently. @@ -256,7 +274,7 @@ IP address of the server. Port of the server. - Data sent with the connection request. Could be used to decide whether or not to allow the connection. + RawValue sent with the connection request. Could be used to decide whether or not to allow the connection. @@ -292,19 +310,21 @@ SceneBuildIndex of the desired scene. - + - Unloads a scene asynchronously. + [Server Only] Loads a scene asynchronously. - + - Gets a Network Prefab by name. - Note: this causes GC. + [Server Only] Unloads a scene asynchronously. + + + + + A networked array. - - The Network Prefab @@ -367,12 +387,41 @@ Returns true if this has been added to the simulation by Netick, and thus has a valid id. + + + Returns the networked state size of this object in bytes. + + + + + Sets the state of this object. Ignores [OnChanged] callbacks when setting the data. + + + [Owner/InputSource Only] Changes the parent of this object. The object which will become the parent of this object. + + + Instantly moves the object. By calling this method, the object won't be interpolated for one tick. + + + + + + Instantly moves the object. By calling this method, the object won't be interpolated for one tick. + + + + + + Instantly moves the object. By calling this method, the object won't be interpolated for one tick. + + + Add this component to a GameObject to ensure only a single instance of it will exist at the same time, across all sandboxes. @@ -471,6 +520,17 @@ input source itself it returns the local . + + + Returns the networked state size of this behavior in bytes. + + + + + Sets the state of this behavior. Ignores [OnChanged] callbacks when setting the data. + + + Fetchs a network input for this tick. Returns false if no input source is currently providing inputs to this Object, or when input loss occurs (in case of a remote input source). @@ -493,13 +553,10 @@ - Manages Netick and its clients, and is used to start and shut down Netick. + Manages Netick and its sandboxes, and is used to start and shut down Netick. - - e - - + Initializes Netick. This is automatically called when you start Netick. If you don't provide a , Netick will use the default config, which can be modified/found in (Netick -> Settings). @@ -508,12 +565,12 @@ - Shuts down Netick and destroys all clients. The shutdown will occur in the next frame. For immediate shutdown, use: + Shuts down Netick and destroys all sandboxes. The shutdown will occur in the next frame. For immediate shutdown, use: - Shuts down Netick and destroys all clients immediately. + Shuts down Netick and destroys all sandboxes immediately. @@ -604,6 +661,24 @@ + + + Called when a sandbox visibility changes. Use Sandbox.IsVisible to find if the sandbox is visible or not. + + + + + + Called on both the client and the server when a scene load/unload operation was started. + + + + + + Called on both the client and the server when a scene load/unload operation finished. + + + Called on both the client and the server when the scene has been loaded. diff --git a/Netick/Runtime/Netick.dll b/Netick/Runtime/Netick.dll index e57098e..b6d4c30 100644 Binary files a/Netick/Runtime/Netick.dll and b/Netick/Runtime/Netick.dll differ diff --git a/Netick/Runtime/Netick.xml b/Netick/Runtime/Netick.xml index 836d05f..2d28b89 100644 --- a/Netick/Runtime/Netick.xml +++ b/Netick/Runtime/Netick.xml @@ -7,12 +7,14 @@ ------------------------------- - + - A rolling sequence counter for ordering values. Repeats indefinitely - with 1022 possible unique values (0 is treated as invalid internally). - - Consumes 10 bits when encoded for transmission. + A snapshot of the state of a collection. Note this must not be used outside the scope of an OnChanged call or a NetworkRender call. + + + + + A networked collection. @@ -120,43 +122,23 @@ - - - Constructs a NotServerException - - - - - Constructs a NotServerException with a message - - The exception message - - - - Constructs a NotServerException with a message and a inner exception - - The exception message - The inner exception - - - - Use this attribute on a method you want to call when a specific property value changes. Example: [OnChanged(nameof(PropertyName)] - - - - - Use this attribute on any method you want to make an RPC. Should have the return type of void, and not be static. - * Use the parameter "source" to specify who is allowed to send this RPC. - * Use the parameter "target" to specify who is allowed to receive and execute this RPC. - * Use the parameter "isReliable" to specify if this Rpc should be reliable or not, meaning it won't be lost (due to packet loss). - * Use the parameter "localInvoke" to specify if this Rpc should be executed on the machine it was called from. - - Returns true if this OnChanged callback is due to a mismatch between the state of this variable before rollback, and the state after rollback and resimulation. + + + Gets a snapshot of the previous state of a NetworkDictionary collection. + + + + + + Gets a snapshot of the previous state of a NetworkHashSet collection. + + + Gets a snapshot of the previous state of a NetworkLinkedList collection. @@ -208,6 +190,16 @@ + + + A snapshot of the state of a collection. Note this must not be used outside the scope of an OnChanged call or a NetworkRender call. + + + + + A networked collection. + + A struct that is used to obtain interpolation data for a network property. @@ -293,6 +285,52 @@ Internal method. Never call this. + + + A rolling sequence counter for ordering values. Repeats indefinitely + with 1022 possible unique values (0 is treated as invalid internally). + + Consumes 10 bits when encoded for transmission. + + + + + A snapshot of the state of a collection. Note this must not be used outside the scope of an OnChanged call or a NetworkRender call. + + + + + A networked collection. + + + + + A snapshot of the state of a collection. Note this must not be used outside the scope of an OnChanged call or a NetworkRender call. + + + + + A networked collection. + + + + + Constructs a NotServerException + + + + + Constructs a NotServerException with a message + + The exception message + + + + Constructs a NotServerException with a message and a inner exception + + The exception message + The inner exception + Constructs a NotClientException @@ -316,14 +354,18 @@ Constructs a BadPacketException - - ---------------------------------------------------- - - A snapshot of the previous state of a NetworkLinkedList collection. Note this must not be used outside the the scope of an OnChanged call. + A snapshot of the state of a collection. Note this must not be used outside the scope of an OnChanged call or a NetworkRender call. - + + + + A networked linked list collection. This is an ordered list meaning that the elements insertion order is maintained when iterating through the collection. + + + + ---------------------------------------------------- @@ -422,11 +464,20 @@ - + - A snapshot of the previous state of a NetworkQueue collection. Note this must not be used outside the the scope of an OnChanged call. + Sends data to this connection. + Note: the low-level transport must implement for this method to have an effect. - + + + + + + -------------------------------------------------------------------------------------------------------------- + -------------------------------------------------------------------------------------------------------------- + -------------------------------------------------------------------------------------------------------------- + -------------------------------------------------------------------------------------------------------------- -------------------------------- -------------------------------- -------------------------------- -------------------------------- @@ -434,11 +485,29 @@ -------------------------------- -------------------------------- -------------------------------- -------------------------------- - + - A snapshot of the previous state of a NetworkStack collection. Note this must not be used outside the the scope of an OnChanged call. + A snapshot of the state of a collection. Note this must not be used outside the scope of an OnChanged call or a NetworkRender call. - + + + + A networked list collection. This is an unordered list meaning that the order of the elements during iteration is undefined. + + + + + Use this attribute on a method you want to call when a specific property value changes. Example: [OnChanged(nameof(PropertyName)] + + + + + Use this attribute on any method you want to make an RPC. Should have the return type of void, and not be static. + * Use the parameter "source" to specify who is allowed to send this RPC. + * Use the parameter "target" to specify who is allowed to receive and execute this RPC. + * Use the parameter "isReliable" to specify if this Rpc should be reliable or not, meaning it won't be lost (due to packet loss). + * Use the parameter "localInvoke" to specify if this Rpc should be executed on the machine it was called from. + diff --git a/package.json b/package.json index 4b7dcb6..103227b 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "com.karrar.netick", - "version": "0.11.98", + "version": "0.12.2", "displayName": "Netick", - "description": "A networking library for unity", + "description": "A networking solution for Unity", "unity": "2021.3", "dependencies": { "com.unity.nuget.mono-cecil": "1.11.4" @@ -30,4 +30,4 @@ "email": "karsoftgames@gmail.com", "url": "https://www.netick.net" } -} \ No newline at end of file +}} \ No newline at end of file