CounterStrikeSharp icon indicating copy to clipboard operation
CounterStrikeSharp copied to clipboard

`NetworkedVector` rehaul

Open KillStr3aK opened this issue 2 years ago • 3 comments

As far as I know CUtlVectorEmbeddedNetworkVar<> (NetworkedVector<>) is not supposed to only work with CHandle<> instances, and they can be used/treated like CUtlVector<>

is this a typo? CUtlVector<CEntityHandle>

also there is no point in implementing IReadOnlyCollection<> as we should be able to add new elements to the vector.

KillStr3aK avatar Nov 25 '23 17:11 KillStr3aK

Yeah this requires a full on managed side write I imagine, I did just entity handles on C++ side since the implementation exists in hl2sdk but I think it requires knowledge of the size of the underlying type?

roflmuffin avatar Nov 26 '23 00:11 roflmuffin

When this will be worked on, lets not forget about #613

KillStr3aK avatar Oct 08 '24 11:10 KillStr3aK

I believe if that pr is shipped with that MemAlloc class we could have an implementation for these ˙CUtl*˙ classes on the managed side

KillStr3aK avatar Oct 08 '24 11:10 KillStr3aK