ClassicUO icon indicating copy to clipboard operation
ClassicUO copied to clipboard

Add .Contains() to LinkedObject [Enhancement Request]

Open bittiez opened this issue 1 year ago • 2 comments

https://github.com/ClassicUO/ClassicUO/blob/main/src/ClassicUO.Client/Game/LinkedObject.cs

Being able to see if a container has a specific serial would be a very useful method to add here

bittiez avatar Mar 01 '23 16:03 bittiez

Not the correct place to do the change but anyway, how would it be useful? What would use it?

roxya avatar Mar 01 '23 16:03 roxya

Where would the correct place to add it be? Maybe there is already a way to do this that I'm unaware of.

The use case would be to determine if a container contains a specific item serial, currently I loop over the Items until I find a match(which works, this would just streamline it)

bittiez avatar Mar 01 '23 16:03 bittiez