Sherbert Lemon
Sherbert Lemon
CC#
Created by Wasabi2320 on 5/7/2023 in #help
Trying to sort top 3 highscores, need help
then get it by descending, and get the values out, either through a loop or slicing the list
14 replies
CC#
Created by Wasabi2320 on 5/7/2023 in #help
Trying to sort top 3 highscores, need help
14 replies
CC#
Created by Wasabi2320 on 5/7/2023 in #help
Trying to sort top 3 highscores, need help
okay well you would first use linq as the person above said
14 replies
CC#
Created by Wasabi2320 on 5/7/2023 in #help
Trying to sort top 3 highscores, need help
and then you just want the first 3 items?
14 replies
CC#
Created by Wasabi2320 on 5/7/2023 in #help
Trying to sort top 3 highscores, need help
highscore.OrderBy(score => score.Points_)
14 replies
CC#
Created by Waffen on 3/28/2023 in #help
❔ Problem with Dictionary<ulong, Image> (Strange work of memory access)
where do itemId and args come from?
13 replies
CC#
Created by Sherbert Lemon on 3/28/2023 in #help
❔ How do I refactor this?
I should have really simplified it to this so it is easier to read
// do a few lines of starter stuff which is always the same

for (;;)
{
// do calculations which are always the same

// do stuff which changes from function to function
}
// do a few lines of starter stuff which is always the same

for (;;)
{
// do calculations which are always the same

// do stuff which changes from function to function
}
4 replies
CC#
Created by Sherbert Lemon on 3/28/2023 in #help
❔ How do I refactor this?
I could pass a func into it, which it runs in there, but I don't know if it would be that clean to do so
4 replies
CC#
Created by Sherbert Lemon on 3/22/2023 in #help
❔ How Would I extract a single byte from an int
that is good though, I can blame you if I ever call it bitfuckery in class and say that is what everyone calls it. At least whenever we finally get to that topic lol, the computer science curriculum moves so slowly in the uk
29 replies
CC#
Created by Sherbert Lemon on 3/22/2023 in #help
❔ How Would I extract a single byte from an int
lol what, that took me a good minute to clock what it was doing, weird ig you have to pin it but is a bit of a pain to do, i'll leave pointerfuckery to cpp
29 replies
CC#
Created by Sherbert Lemon on 3/22/2023 in #help
❔ How Would I extract a single byte from an int
what do you call it?
29 replies
CC#
Created by Sherbert Lemon on 3/22/2023 in #help
❔ How Would I extract a single byte from an int
thanks though, I will defo have a read through the bitfuckery page, he calls it bittwiddling, is that the more normal way of calling it?
29 replies
CC#
Created by Sherbert Lemon on 3/22/2023 in #help
❔ How Would I extract a single byte from an int
ah ok that is nice, not a very c# way of doing it tho lol, and this is in unity so it is a bit of a pain to enable unsafe code
29 replies
CC#
Created by Sherbert Lemon on 3/22/2023 in #help
❔ How Would I extract a single byte from an int
how does the pointer one work then, I will defo just use the first thing but that intrigues me
29 replies
CC#
Created by Sherbert Lemon on 3/22/2023 in #help
❔ How Would I extract a single byte from an int
yep that is quite a nice concise way of doing it thanks
29 replies
CC#
Created by Sherbert Lemon on 3/22/2023 in #help
❔ How Would I extract a single byte from an int
i'm not very good at bitfuckery, i partially did this to get better at it
29 replies
CC#
Created by Sherbert Lemon on 3/22/2023 in #help
❔ How Would I extract a single byte from an int
oh yeah ok i get it now
29 replies
CC#
Created by Sherbert Lemon on 3/22/2023 in #help
❔ How Would I extract a single byte from an int
but yeah defo not the getbytes, the whole point of the bitfuckery was to avoid a few hundred to a few thousand arrays needlessly
29 replies
CC#
Created by Sherbert Lemon on 3/22/2023 in #help
❔ How Would I extract a single byte from an int
does the first one work? how does it just work with an and?
29 replies
CC#
Created by Sherbert Lemon on 3/22/2023 in #help
❔ How Would I extract a single byte from an int
it is the verb form of "bitfuckery"
29 replies