diff --git a/Assets/scenes/minimal.scene b/Assets/scenes/minimal.scene index b8f9c98..bcf89cf 100644 --- a/Assets/scenes/minimal.scene +++ b/Assets/scenes/minimal.scene @@ -40,393 +40,426 @@ "StartServer": true } ] + }, + { + "__guid": "dfa16bb7-9cb1-458e-b937-be4f99326367", + "Flags": 0, + "Name": "Network Manager", + "Enabled": true, + "Components": [ + { + "__type": "LuckerParty.NetworkManager", + "__guid": "66cfc3ad-f9a2-49fa-b72b-cf0498aadfad", + "ClientGroup": { + "_type": "gameobject", + "go": "3a8c9a1d-2623-4041-bb55-40bce397cd02" + } + } + ] } ] }, { - "__guid": "9668fc88-5656-4310-af66-0661227c3907", + "__guid": "3a8c9a1d-2623-4041-bb55-40bce397cd02", "Flags": 0, - "Name": "Spawn Points", + "Name": "Clients", + "Enabled": true + }, + { + "__guid": "97cb86cc-36d4-46cf-8506-c1bc373ed142", + "Flags": 0, + "Name": "Minigame Scene", "Position": "-206.6027,-210.4366,0.00000005960464", "Enabled": true, "Children": [ { - "__guid": "15c44ba2-0e41-4b18-a7fa-6aeeca6b546b", + "__guid": "9668fc88-5656-4310-af66-0661227c3907", "Flags": 0, - "Name": "Spawn Point", + "Name": "Spawn Points", "Enabled": true, - "__Prefab": "prefabs/spawn_point.prefab", - "__PrefabVariables": {} - }, - { - "__guid": "ea77f192-3b42-4d0b-b813-6b759160e87c", - "Flags": 0, - "Name": "Spawn Point", - "Position": "69.43365,-3.252777,2", - "Enabled": true, - "__Prefab": "prefabs/spawn_point.prefab", - "__PrefabVariables": {} - }, - { - "__guid": "b328ee26-4504-4864-9706-df2cf726a037", - "Flags": 0, - "Name": "Spawn Point", - "Position": "2.916519,58.33823,2", - "Enabled": true, - "__Prefab": "prefabs/spawn_point.prefab", - "__PrefabVariables": {} - }, - { - "__guid": "6cbfc9ab-a520-4683-88f9-e30a460fc421", - "Flags": 0, - "Name": "Spawn Point", - "Position": "67.744,59.85857,2", - "Enabled": true, - "__Prefab": "prefabs/spawn_point.prefab", - "__PrefabVariables": {} - } - ] - }, - { - "__guid": "bfc59c12-1ed2-4f91-8956-a95a315eac3c", - "Flags": 0, - "Name": "Sun", - "Rotation": "-0.0729315,0.4822396,0.1305433,0.8631827", - "Tags": "light_directional,light", - "Enabled": true, - "Components": [ - { - "__type": "Sandbox.DirectionalLight", - "__guid": "d3659344-a90d-48fa-927a-095f70fe041f", - "FogMode": "Enabled", - "FogStrength": 1, - "LightColor": "0.94419,0.97767,1,1", - "Shadows": true, - "SkyColor": "0.2532,0.32006,0.35349,1" - } - ] - }, - { - "__guid": "00344a8c-fa5e-45ae-b12a-10bb781a1dc3", - "Flags": 0, - "Name": "2D Skybox", - "Tags": "skybox", - "Enabled": true, - "Components": [ - { - "__type": "Sandbox.SkyBox2D", - "__guid": "de79e9e0-5c37-4c54-ac67-bfcdb1d5483b", - "SkyIndirectLighting": true, - "SkyMaterial": "materials/skybox/skybox_day_01.vmat", - "Tint": "1,1,1,1" - }, - { - "__type": "Sandbox.EnvmapProbe", - "__guid": "f3e304db-baab-4c1a-a4ec-8442585c2d62", - "Bounds": { - "Mins": "-512,-512,-512", - "Maxs": "512,512,512" - }, - "DelayBetweenUpdates": 0.1, - "Feathering": 0.02, - "FrameInterval": 5, - "MaxDistance": 512, - "MultiBounce": false, - "Projection": "Sphere", - "RenderDynamically": false, - "Texture": "textures/cubemaps/default2.vtex", - "TintColor": "1,1,1,1", - "UpdateStrategy": "OnEnabled", - "ZFar": 4096, - "ZNear": 16 - } - ] - }, - { - "__guid": "6ad70641-3c6c-4402-9c85-9a4969af4764", - "Flags": 0, - "Name": "Plane", - "Scale": "5,5,5", - "Enabled": true, - "Components": [ - { - "__type": "Sandbox.ModelRenderer", - "__guid": "0b6a18bf-fdb8-4661-970e-ef635bfa9baa", - "BodyGroups": 18446744073709551615, - "CreateAttachments": false, - "MaterialOverride": "materials/default.vmat", - "Model": "models/dev/plane.vmdl", - "RenderOptions": { - "GameLayer": true, - "OverlayLayer": false, - "BloomLayer": false, - "AfterUILayer": false - }, - "RenderType": "On", - "Tint": "0.39546,0.51163,0.27128,1" - }, - { - "__type": "Sandbox.BoxCollider", - "__guid": "0715cb55-1733-4f5e-8560-c288b8695631", - "Center": "0,0,-5", - "IsTrigger": false, - "Scale": "100,100,10", - "Static": false, - "SurfaceVelocity": "0,0,0" - } - ] - }, - { - "__guid": "3c2490ef-54a0-49bb-8f13-490e40aa51d1", - "Flags": 0, - "Name": "Cube", - "Position": "21.41682,74.1244,14.40159", - "Rotation": "0.00000001819328,-0.00000000000000008235059,0.3052325,0.952278", - "Scale": "0.5632889,0.5632889,0.5632889", - "Enabled": true, - "Components": [ - { - "__type": "Sandbox.ModelRenderer", - "__guid": "b9121ffa-617c-4ccc-a2aa-8acc98727590", - "BodyGroups": 18446744073709551615, - "CreateAttachments": false, - "MaterialOverride": "materials/default.vmat", - "Model": "models/dev/box.vmdl", - "RenderOptions": { - "GameLayer": true, - "OverlayLayer": false, - "BloomLayer": false, - "AfterUILayer": false - }, - "RenderType": "On", - "Tint": "1,0,0.93333,1" - }, - { - "__type": "Sandbox.BoxCollider", - "__guid": "8bb3ebcf-1ec9-4b20-bf31-4aece0950008", - "Center": "0,0,0", - "IsTrigger": false, - "Scale": "50,50,50", - "Static": false, - "SurfaceVelocity": "0,0,0" - }, - { - "__type": "Sandbox.Rigidbody", - "__guid": "4aaa0334-6785-4716-9bae-869559ea6e10", - "AngularDamping": 0, - "Gravity": true, - "LinearDamping": 0, - "Locking": { - "X": false, - "Y": false, - "Z": false, - "Pitch": false, - "Yaw": false, - "Roll": false - }, - "MassCenterOverride": "0,0,0", - "MassOverride": 0, - "MotionEnabled": true, - "OverrideMassCenter": false, - "RigidbodyFlags": 0, - "StartAsleep": false - } - ] - }, - { - "__guid": "523e3e8f-a4ec-4ec1-af9a-d86ffc9c17e1", - "Flags": 0, - "Name": "Cube (1)", - "Position": "40.81348,46.97572,14.40159", - "Rotation": "0.00000001819328,-0.00000000000000008235059,0.3052325,0.952278", - "Scale": "0.5632889,0.5632889,0.5632889", - "Enabled": true, - "Components": [ - { - "__type": "Sandbox.ModelRenderer", - "__guid": "9e8a546d-a41d-44b5-9906-22cea00e1066", - "BodyGroups": 18446744073709551615, - "CreateAttachments": false, - "MaterialOverride": "materials/default.vmat", - "Model": "models/dev/box.vmdl", - "RenderOptions": { - "GameLayer": true, - "OverlayLayer": false, - "BloomLayer": false, - "AfterUILayer": false - }, - "RenderType": "On", - "Tint": "1,0,0.93333,1" - }, - { - "__type": "Sandbox.BoxCollider", - "__guid": "adf22580-7a25-4d7f-b1c3-3fb8fabf1612", - "Center": "0,0,0", - "IsTrigger": false, - "Scale": "50,50,50", - "Static": false, - "SurfaceVelocity": "0,0,0" - }, - { - "__type": "Sandbox.Rigidbody", - "__guid": "e53bfcb0-7f44-41d0-8d51-263bdc173a57", - "AngularDamping": 0, - "Gravity": true, - "LinearDamping": 0, - "Locking": { - "X": false, - "Y": false, - "Z": false, - "Pitch": false, - "Yaw": false, - "Roll": false - }, - "MassCenterOverride": "0,0,0", - "MassOverride": 0, - "MotionEnabled": true, - "OverrideMassCenter": false, - "RigidbodyFlags": 0, - "StartAsleep": false - } - ] - }, - { - "__guid": "5b483a09-bbf2-4949-98c7-a73b789d0ee7", - "Flags": 0, - "Name": "Cube (2)", - "Position": "49.53707,34.08896,43.67614", - "Rotation": "0.00000001819328,-0.00000000000000008235059,0.3052325,0.952278", - "Scale": "0.5632889,0.5632889,0.5632889", - "Enabled": true, - "Components": [ - { - "__type": "Sandbox.ModelRenderer", - "__guid": "ac284ab8-cdb7-4ba6-92de-d9be36088b1b", - "BodyGroups": 18446744073709551615, - "CreateAttachments": false, - "MaterialOverride": "materials/default.vmat", - "Model": "models/dev/box.vmdl", - "RenderOptions": { - "GameLayer": true, - "OverlayLayer": false, - "BloomLayer": false, - "AfterUILayer": false - }, - "RenderType": "On", - "Tint": "1,0,0.93333,1" - }, - { - "__type": "Sandbox.BoxCollider", - "__guid": "ca4eb284-231e-4c84-9bc4-7ba89962f307", - "Center": "0,0,0", - "IsTrigger": false, - "Scale": "50,50,50", - "Static": false, - "SurfaceVelocity": "0,0,0" - }, - { - "__type": "Sandbox.Rigidbody", - "__guid": "61ef15dd-3eb2-4f52-8b9a-315f477f79b7", - "AngularDamping": 0, - "Gravity": true, - "LinearDamping": 0, - "Locking": { - "X": false, - "Y": false, - "Z": false, - "Pitch": false, - "Yaw": false, - "Roll": false - }, - "MassCenterOverride": "0,0,0", - "MassOverride": 0, - "MotionEnabled": true, - "OverrideMassCenter": false, - "RigidbodyFlags": 0, - "StartAsleep": false - } - ] - }, - { - "__guid": "3ee1c9f4-07be-4e0b-8b23-67bee2d8ec8a", - "Flags": 0, - "Name": "Camera", - "Position": "-267.452,-379.653,297.7903", - "Rotation": "-0.1448582,0.2860239,0.4279631,0.8450171", - "Enabled": true, - "Components": [ - { - "__type": "Sandbox.CameraComponent", - "__guid": "cf3cbf96-22b6-4be4-a5d0-672a96c17f9f", - "BackgroundColor": "0.33333,0.46275,0.52157,1", - "ClearFlags": "All", - "FieldOfView": 60, - "IsMainCamera": true, - "Orthographic": false, - "OrthographicHeight": 1204, - "Priority": 1, - "RenderExcludeTags": "", - "RenderTags": "", - "TargetEye": "None", - "Viewport": "0,0,1,1", - "ZFar": 10000, - "ZNear": 10 - }, - { - "__type": "Sandbox.Bloom", - "__guid": "d73ef723-c888-41d4-802e-f797c79318be", - "BloomColor": { - "blend": "Linear", - "color": [ - { - "t": 0, - "c": "1,1,1,1" - }, - { - "t": 1, - "c": "1,1,1,1" - } - ], - "alpha": [] - }, - "BloomCurve": [ + "Children": [ { - "x": 0, - "y": 0.5, - "in": 0, - "out": 0, - "mode": "Mirrored" + "__guid": "15c44ba2-0e41-4b18-a7fa-6aeeca6b546b", + "Flags": 0, + "Name": "Spawn Point", + "Enabled": true, + "__Prefab": "prefabs/spawn_point.prefab", + "__PrefabVariables": {} }, { - "x": 1, - "y": 1, - "in": 0, - "out": 0, - "mode": "Mirrored" + "__guid": "ea77f192-3b42-4d0b-b813-6b759160e87c", + "Flags": 0, + "Name": "Spawn Point", + "Position": "69.43365,-3.252777,2", + "Enabled": true, + "__Prefab": "prefabs/spawn_point.prefab", + "__PrefabVariables": {} + }, + { + "__guid": "b328ee26-4504-4864-9706-df2cf726a037", + "Flags": 0, + "Name": "Spawn Point", + "Position": "2.916519,58.33823,2", + "Enabled": true, + "__Prefab": "prefabs/spawn_point.prefab", + "__PrefabVariables": {} + }, + { + "__guid": "6cbfc9ab-a520-4683-88f9-e30a460fc421", + "Flags": 0, + "Name": "Spawn Point", + "Position": "67.744,59.85857,2", + "Enabled": true, + "__Prefab": "prefabs/spawn_point.prefab", + "__PrefabVariables": {} } - ], - "Mode": "Additive", - "Strength": 0.5, - "Threshold": 0.5, - "ThresholdWidth": 0.5 + ] }, { - "__type": "Sandbox.Tonemapping", - "__guid": "9d76f362-7227-40eb-a189-69353c780c46", - "__version": 1, - "AutoExposureEnabled": true, - "ExposureBias": 2, - "ExposureCompensation": 0, - "ExposureMethod": "RGB", - "MaximumExposure": 2, - "MinimumExposure": 1, - "Mode": "Legacy", - "Rate": 1 + "__guid": "bfc59c12-1ed2-4f91-8956-a95a315eac3c", + "Flags": 0, + "Name": "Sun", + "Position": "206.6027,210.4366,-0.00000005960464", + "Rotation": "-0.0729315,0.4822396,0.1305433,0.8631827", + "Tags": "light_directional,light", + "Enabled": true, + "Components": [ + { + "__type": "Sandbox.DirectionalLight", + "__guid": "d3659344-a90d-48fa-927a-095f70fe041f", + "FogMode": "Enabled", + "FogStrength": 1, + "LightColor": "0.94419,0.97767,1,1", + "Shadows": true, + "SkyColor": "0.2532,0.32006,0.35349,1" + } + ] }, { - "__type": "Sandbox.Sharpen", - "__guid": "0bffee5e-19f2-41c4-88f9-faefbcce6bf4", - "Scale": 0.2 + "__guid": "00344a8c-fa5e-45ae-b12a-10bb781a1dc3", + "Flags": 0, + "Name": "2D Skybox", + "Position": "206.6027,210.4366,-0.00000005960464", + "Tags": "skybox", + "Enabled": true, + "Components": [ + { + "__type": "Sandbox.SkyBox2D", + "__guid": "de79e9e0-5c37-4c54-ac67-bfcdb1d5483b", + "SkyIndirectLighting": true, + "SkyMaterial": "materials/skybox/skybox_day_01.vmat", + "Tint": "1,1,1,1" + }, + { + "__type": "Sandbox.EnvmapProbe", + "__guid": "f3e304db-baab-4c1a-a4ec-8442585c2d62", + "Bounds": { + "Mins": "-512,-512,-512", + "Maxs": "512,512,512" + }, + "DelayBetweenUpdates": 0.1, + "Feathering": 0.02, + "FrameInterval": 5, + "MaxDistance": 512, + "MultiBounce": false, + "Projection": "Sphere", + "RenderDynamically": false, + "Texture": "textures/cubemaps/default2.vtex", + "TintColor": "1,1,1,1", + "UpdateStrategy": "OnEnabled", + "ZFar": 4096, + "ZNear": 16 + } + ] + }, + { + "__guid": "6ad70641-3c6c-4402-9c85-9a4969af4764", + "Flags": 0, + "Name": "Plane", + "Position": "206.6027,210.4366,-0.00000005960464", + "Scale": "5,5,5", + "Enabled": true, + "Components": [ + { + "__type": "Sandbox.ModelRenderer", + "__guid": "0b6a18bf-fdb8-4661-970e-ef635bfa9baa", + "BodyGroups": 18446744073709551615, + "CreateAttachments": false, + "MaterialOverride": "materials/default.vmat", + "Model": "models/dev/plane.vmdl", + "RenderOptions": { + "GameLayer": true, + "OverlayLayer": false, + "BloomLayer": false, + "AfterUILayer": false + }, + "RenderType": "On", + "Tint": "0.39546,0.51163,0.27128,1" + }, + { + "__type": "Sandbox.BoxCollider", + "__guid": "0715cb55-1733-4f5e-8560-c288b8695631", + "Center": "0,0,-5", + "IsTrigger": false, + "Scale": "100,100,10", + "Static": false, + "SurfaceVelocity": "0,0,0" + } + ] + }, + { + "__guid": "3c2490ef-54a0-49bb-8f13-490e40aa51d1", + "Flags": 0, + "Name": "Cube", + "Position": "228.0195,284.561,14.40159", + "Rotation": "0.00000001819328,-0.00000000000000008235059,0.3052325,0.952278", + "Scale": "0.5632889,0.5632889,0.5632889", + "Enabled": true, + "Components": [ + { + "__type": "Sandbox.ModelRenderer", + "__guid": "b9121ffa-617c-4ccc-a2aa-8acc98727590", + "BodyGroups": 18446744073709551615, + "CreateAttachments": false, + "MaterialOverride": "materials/default.vmat", + "Model": "models/dev/box.vmdl", + "RenderOptions": { + "GameLayer": true, + "OverlayLayer": false, + "BloomLayer": false, + "AfterUILayer": false + }, + "RenderType": "On", + "Tint": "1,0,0.93333,1" + }, + { + "__type": "Sandbox.BoxCollider", + "__guid": "8bb3ebcf-1ec9-4b20-bf31-4aece0950008", + "Center": "0,0,0", + "IsTrigger": false, + "Scale": "50,50,50", + "Static": false, + "SurfaceVelocity": "0,0,0" + }, + { + "__type": "Sandbox.Rigidbody", + "__guid": "4aaa0334-6785-4716-9bae-869559ea6e10", + "AngularDamping": 0, + "Gravity": true, + "LinearDamping": 0, + "Locking": { + "X": false, + "Y": false, + "Z": false, + "Pitch": false, + "Yaw": false, + "Roll": false + }, + "MassCenterOverride": "0,0,0", + "MassOverride": 0, + "MotionEnabled": true, + "OverrideMassCenter": false, + "RigidbodyFlags": 0, + "StartAsleep": false + } + ] + }, + { + "__guid": "523e3e8f-a4ec-4ec1-af9a-d86ffc9c17e1", + "Flags": 0, + "Name": "Cube (1)", + "Position": "247.4162,257.4123,14.40159", + "Rotation": "0.00000001819328,-0.00000000000000008235059,0.3052325,0.952278", + "Scale": "0.5632889,0.5632889,0.5632889", + "Enabled": true, + "Components": [ + { + "__type": "Sandbox.ModelRenderer", + "__guid": "9e8a546d-a41d-44b5-9906-22cea00e1066", + "BodyGroups": 18446744073709551615, + "CreateAttachments": false, + "MaterialOverride": "materials/default.vmat", + "Model": "models/dev/box.vmdl", + "RenderOptions": { + "GameLayer": true, + "OverlayLayer": false, + "BloomLayer": false, + "AfterUILayer": false + }, + "RenderType": "On", + "Tint": "1,0,0.93333,1" + }, + { + "__type": "Sandbox.BoxCollider", + "__guid": "adf22580-7a25-4d7f-b1c3-3fb8fabf1612", + "Center": "0,0,0", + "IsTrigger": false, + "Scale": "50,50,50", + "Static": false, + "SurfaceVelocity": "0,0,0" + }, + { + "__type": "Sandbox.Rigidbody", + "__guid": "e53bfcb0-7f44-41d0-8d51-263bdc173a57", + "AngularDamping": 0, + "Gravity": true, + "LinearDamping": 0, + "Locking": { + "X": false, + "Y": false, + "Z": false, + "Pitch": false, + "Yaw": false, + "Roll": false + }, + "MassCenterOverride": "0,0,0", + "MassOverride": 0, + "MotionEnabled": true, + "OverrideMassCenter": false, + "RigidbodyFlags": 0, + "StartAsleep": false + } + ] + }, + { + "__guid": "5b483a09-bbf2-4949-98c7-a73b789d0ee7", + "Flags": 0, + "Name": "Cube (2)", + "Position": "256.1398,244.5256,43.67614", + "Rotation": "0.00000001819328,-0.00000000000000008235059,0.3052325,0.952278", + "Scale": "0.5632889,0.5632889,0.5632889", + "Enabled": true, + "Components": [ + { + "__type": "Sandbox.ModelRenderer", + "__guid": "ac284ab8-cdb7-4ba6-92de-d9be36088b1b", + "BodyGroups": 18446744073709551615, + "CreateAttachments": false, + "MaterialOverride": "materials/default.vmat", + "Model": "models/dev/box.vmdl", + "RenderOptions": { + "GameLayer": true, + "OverlayLayer": false, + "BloomLayer": false, + "AfterUILayer": false + }, + "RenderType": "On", + "Tint": "1,0,0.93333,1" + }, + { + "__type": "Sandbox.BoxCollider", + "__guid": "ca4eb284-231e-4c84-9bc4-7ba89962f307", + "Center": "0,0,0", + "IsTrigger": false, + "Scale": "50,50,50", + "Static": false, + "SurfaceVelocity": "0,0,0" + }, + { + "__type": "Sandbox.Rigidbody", + "__guid": "61ef15dd-3eb2-4f52-8b9a-315f477f79b7", + "AngularDamping": 0, + "Gravity": true, + "LinearDamping": 0, + "Locking": { + "X": false, + "Y": false, + "Z": false, + "Pitch": false, + "Yaw": false, + "Roll": false + }, + "MassCenterOverride": "0,0,0", + "MassOverride": 0, + "MotionEnabled": true, + "OverrideMassCenter": false, + "RigidbodyFlags": 0, + "StartAsleep": false + } + ] + }, + { + "__guid": "3ee1c9f4-07be-4e0b-8b23-67bee2d8ec8a", + "Flags": 0, + "Name": "Camera", + "Position": "-60.84929,-169.2164,297.7903", + "Rotation": "-0.1448582,0.2860239,0.4279631,0.8450171", + "Enabled": true, + "Components": [ + { + "__type": "Sandbox.CameraComponent", + "__guid": "cf3cbf96-22b6-4be4-a5d0-672a96c17f9f", + "BackgroundColor": "0.33333,0.46275,0.52157,1", + "ClearFlags": "All", + "FieldOfView": 60, + "IsMainCamera": true, + "Orthographic": false, + "OrthographicHeight": 1204, + "Priority": 1, + "RenderExcludeTags": "", + "RenderTags": "", + "TargetEye": "None", + "Viewport": "0,0,1,1", + "ZFar": 10000, + "ZNear": 10 + }, + { + "__type": "Sandbox.Bloom", + "__guid": "d73ef723-c888-41d4-802e-f797c79318be", + "BloomColor": { + "blend": "Linear", + "color": [ + { + "t": 0, + "c": "1,1,1,1" + }, + { + "t": 1, + "c": "1,1,1,1" + } + ], + "alpha": [] + }, + "BloomCurve": [ + { + "x": 0, + "y": 0.5, + "in": 0, + "out": 0, + "mode": "Mirrored" + }, + { + "x": 1, + "y": 1, + "in": 0, + "out": 0, + "mode": "Mirrored" + } + ], + "Mode": "Additive", + "Strength": 0.5, + "Threshold": 0.5, + "ThresholdWidth": 0.5 + }, + { + "__type": "Sandbox.Tonemapping", + "__guid": "9d76f362-7227-40eb-a189-69353c780c46", + "__version": 1, + "AutoExposureEnabled": true, + "ExposureBias": 2, + "ExposureCompensation": 0, + "ExposureMethod": "RGB", + "MaximumExposure": 2, + "MinimumExposure": 1, + "Mode": "Legacy", + "Rate": 1 + }, + { + "__type": "Sandbox.Sharpen", + "__guid": "0bffee5e-19f2-41c4-88f9-faefbcce6bf4", + "Scale": 0.2 + } + ] } ] } diff --git a/code/NetworkManager.cs b/code/NetworkManager.cs index 5422802..f9649d0 100644 --- a/code/NetworkManager.cs +++ b/code/NetworkManager.cs @@ -5,10 +5,16 @@ namespace LuckerParty; /// public sealed class NetworkManager : Component, Component.INetworkListener { - [Property] private GameObject ClientGroup { get; set; } + /// + /// A GameObject used for organizational grouping of Clients + /// + [Property] + private GameObject ClientGroup { get; set; } public void OnActive( Connection channel ) { + ClientGroup ??= new GameObject( Scene.Root ); + var gameObject = new GameObject( ClientGroup ) { Name = $"{channel.DisplayName} ({channel.SteamId})" }; gameObject.NetworkSpawn( channel ); diff --git a/lucker_party.sln.DotSettings.user b/lucker_party.sln.DotSettings.user index ff392ab..81f1856 100644 --- a/lucker_party.sln.DotSettings.user +++ b/lucker_party.sln.DotSettings.user @@ -1,11 +1,17 @@  + ForceIncluded ForceIncluded + ForceIncluded + ForceIncluded ForceIncluded ForceIncluded ForceIncluded ForceIncluded ForceIncluded + ForceIncluded + ForceIncluded ForceIncluded + ForceIncluded ForceIncluded <AssemblyExplorer> <Assembly Path="D:\SteamLibrary\steamapps\common\sbox\bin\managed\Sandbox.Game.dll" />