Skip to content

feat: NetworkConnection extensions#821

Open
michcio15 wants to merge 2 commits into
ExMod-Team:devfrom
michcio15:mirror-extensions
Open

feat: NetworkConnection extensions#821
michcio15 wants to merge 2 commits into
ExMod-Team:devfrom
michcio15:mirror-extensions

Conversation

@michcio15
Copy link
Copy Markdown

Description

Describe the changes
Adds NetworkConnection as target of mirro extensions

What is the current behavior? (You can also link to an open issue here)

What is the new behavior? (if this is a feature change)
Now there are more extension that use NetworkConnection

Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)

Other information:
This is added so devs using LabAPI player (in events for example) / more base game stuff can still use the extensions since they dont require most of the time exileds player just the connection.
Still a WiP however feedback is welome


Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentations

Submission checklist

  • I have checked the project can be compiled
  • I have tested my changes and it worked as expected

Patches (if there are any changes related to Harmony patches)

  • I have checked no IL patching errors in the console

Other

  • Still requires more testing

@github-actions github-actions Bot added the API label May 9, 2026
@michcio15 michcio15 changed the title still a wip feat : NetworkConnection extensions May 9, 2026
@michcio15 michcio15 changed the title feat : NetworkConnection extensions feat: NetworkConnection extensions May 9, 2026
Copy link
Copy Markdown

@VALERA771 VALERA771 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really think that this is necessary. I can agree on people using LabAPI player class in plugin but we have an implicit operator to cast it to EXILED version of player (and tbh I don't really see a reason to use LabAPI and EXILED at the same time)

@michcio15
Copy link
Copy Markdown
Author

For me there is no need to keep it tied only to the Player class since its not even used in it and it uses the connection. Also it could make it easier to write transpilers with faking network

Comment on lines -16 to 59
using System.Text;

using AdminToys;

using AudioPooling;

using Cassie;

using CustomPlayerEffects;

using Exiled.API.Enums;
using Exiled.API.Features.Items;
using Exiled.API.Features.Items.Keycards;
using Exiled.API.Features.Pickups.Keycards;

using Features;
using Features.Pools;

using InventorySystem;
using InventorySystem.Items;
using InventorySystem.Items.Autosync;
using InventorySystem.Items.Firearms;
using InventorySystem.Items.Firearms.Modules;
using InventorySystem.Items.Keycards;

using MEC;

using Mirror;

using PlayerRoles;
using PlayerRoles.Blood;
using PlayerRoles.FirstPersonControl;
using PlayerRoles.PlayableScps.Scp049.Zombies;
using PlayerRoles.PlayableScps.Scp1507;
using PlayerRoles.Spectating;
using PlayerRoles.Voice;

using RelativePositioning;

using Respawning;

using UnityEngine;

using Utils.Networking;
Copy link
Copy Markdown

@louis1706 louis1706 May 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this change please and all other spacing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants