Skip to content

Commit 6c09055

Browse files
feat: distributed authority sample - adding assembly definitions [MTT-8945] (#207)
* asmdefs generated with dependencies mapped * one unnecessary dependency removed * renaming asmdefs & adding input assemblyinfo * adding explicitly inputsystem to player assembly
1 parent 2c28e2b commit 6c09055

14 files changed

+115
-15
lines changed

Experimental/DistributedAuthoritySample/Assets/Prefabs/Avatar.prefab

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,6 @@ MonoBehaviour:
290290
InLocalSpace: 0
291291
Interpolate: 1
292292
SlerpPosition: 0
293-
PropertiesVisible: 1
294293
m_Rigidbody: {fileID: 4745766379562620470}
295294
m_PlayerInput: {fileID: 4903152183366241606}
296295
m_AvatarInputs: {fileID: 8197190117666738524}
@@ -382,15 +381,15 @@ MonoBehaviour:
382381
m_PrefabInstance: {fileID: 0}
383382
m_PrefabAsset: {fileID: 0}
384383
m_GameObject: {fileID: 5478015027486214707}
385-
m_Enabled: 1
384+
m_Enabled: 0
386385
m_EditorHideFlags: 0
387386
m_Script: {fileID: 11500000, guid: 7e9f71718dd134b14b300e378e98c718, type: 3}
388387
m_Name:
389388
m_EditorClassIdentifier:
390-
move: {x: 0, y: 0}
391-
look: {x: 0, y: 0}
392-
jump: 0
393-
sprint: 0
394-
analogMovement: 0
395-
cursorLocked: 1
396-
cursorInputForLook: 1
389+
Move: {x: 0, y: 0}
390+
Look: {x: 0, y: 0}
391+
Jump: 0
392+
Sprint: 0
393+
AnalogMovement: 0
394+
CursorLocked: 1
395+
CursorInputForLook: 1

Experimental/DistributedAuthoritySample/Assets/Scripts/Editor/AvatarTransformEditor.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
using com.unity.multiplayer.samples.distributed_authority.gameplay;
1+
using Unity.Multiplayer.Samples.SocialHub.Player;
22
using UnityEditor;
33
using UnityEditor.UIElements;
44
using UnityEngine;
55
using UnityEngine.UIElements;
66

7-
namespace com.unity.multiplayer.samples.distributed_authority.editor
7+
namespace Unity.Multiplayer.Samples.SocialHub.Editor
88
{
99
[CustomEditor(typeof(AvatarTransform))]
10-
class DerivedComponentEditor : Editor
10+
class DerivedComponentEditor : UnityEditor.Editor
1111
{
1212
public override VisualElement CreateInspectorGUI()
1313
{
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "Unity.Multiplayer.Samples.SocialHub.Editor",
3+
"rootNamespace": "Unity.Multiplayer.Samples.SocialHub",
4+
"references": [
5+
"GUID:8314b31eee3cc495ca4a4f078575802d"
6+
],
7+
"includePlatforms": [],
8+
"excludePlatforms": [],
9+
"allowUnsafeCode": false,
10+
"overrideReferences": false,
11+
"precompiledReferences": [],
12+
"autoReferenced": true,
13+
"defineConstraints": [],
14+
"versionDefines": [],
15+
"noEngineReferences": false
16+
}

Experimental/DistributedAuthoritySample/Assets/Scripts/Editor/Unity.Multiplayer.Samples.SocialHub.Editor.asmdef.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "Unity.Multiplayer.Samples.SocialHub.Gameplay",
3+
"rootNamespace": "Unity.Multiplayer.Samples.SocialHub",
4+
"references": [
5+
"GUID:1491147abca9d7d4bb7105af628b223e"
6+
],
7+
"includePlatforms": [],
8+
"excludePlatforms": [],
9+
"allowUnsafeCode": false,
10+
"overrideReferences": false,
11+
"precompiledReferences": [],
12+
"autoReferenced": true,
13+
"defineConstraints": [],
14+
"versionDefines": [],
15+
"noEngineReferences": false
16+
}

Experimental/DistributedAuthoritySample/Assets/Scripts/Gameplay/Unity.Multiplayer.Samples.SocialHub.Gameplay.asmdef.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
using System.Runtime.CompilerServices;
2+
[assembly: InternalsVisibleTo("Unity.Multiplayer.Samples.SocialHub.Player")]

Experimental/DistributedAuthoritySample/Assets/Scripts/Input/AssemblyInfo.cs.meta

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Experimental/DistributedAuthoritySample/Assets/Scripts/Input/AvatarInputs.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
using System.Runtime.CompilerServices;
12
using UnityEngine;
23
using UnityEngine.InputSystem;
34

4-
namespace com.unity.multiplayer.samples.distributed_authority.input
5+
namespace Unity.Multiplayer.Samples.SocialHub.Input
56
{
67
class AvatarInputs : MonoBehaviour
78
{
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "Unity.Multiplayer.Samples.SocialHub.Input",
3+
"rootNamespace": "Unity.Multiplayer.Samples.SocialHub",
4+
"references": [
5+
"GUID:75469ad4d38634e559750d17036d5f7c"
6+
],
7+
"includePlatforms": [],
8+
"excludePlatforms": [],
9+
"allowUnsafeCode": false,
10+
"overrideReferences": false,
11+
"precompiledReferences": [],
12+
"autoReferenced": true,
13+
"defineConstraints": [],
14+
"versionDefines": [],
15+
"noEngineReferences": false
16+
}

0 commit comments

Comments
 (0)