sp00ktober
sp00ktober
Explore posts from servers
CC#
Created by sp00ktober on 3/24/2023 in #help
❔ nested generic interface throws cast exception when added to list
thanks for your input, really helped me! 😄
27 replies
CC#
Created by sp00ktober on 3/24/2023 in #help
❔ nested generic interface throws cast exception when added to list
ye thought so, i'll probably go in a type unsafe way then. still better than patching the games own interface structure and hope for the best
27 replies
CC#
Created by sp00ktober on 3/24/2023 in #help
❔ nested generic interface throws cast exception when added to list
aah well
27 replies
CC#
Created by sp00ktober on 3/24/2023 in #help
❔ nested generic interface throws cast exception when added to list
in does not seem to change anything, out on the other hand tells me The parameter "H" must be contraviniant and valid for "IComponentUpdateHandler<T, H, C>.HandleUpdate(ENetPeerHandle, long, H, C)" "H" is covariant.
27 replies
CC#
Created by sp00ktober on 3/24/2023 in #help
❔ nested generic interface throws cast exception when added to list
27 replies
CC#
Created by sp00ktober on 3/24/2023 in #help
❔ nested generic interface throws cast exception when added to list
just in this case means some more complicated patches for me which will potentially break the whole game that this mod project is about, so if it is really required to do this then im afraid i need to find another way to implement similar functionality :/ would have been too good 😅
27 replies
CC#
Created by sp00ktober on 3/24/2023 in #help
❔ nested generic interface throws cast exception when added to list
i have nearly no control over the Update and Data classes as well as the InventoryModificationState class and the IComponentXXXX interfaces. as i wrote this is part of a modding project and i need to work with these, so i hope its possible to solve this without modifying those mentioned interfaces/classes. gonne look at the in/out part you mentioned, never actually used it
27 replies
CC#
Created by sp00ktober on 3/24/2023 in #help
❔ nested generic interface throws cast exception when added to list
maybe you can elaborate a bit more on this? i've read through the article (and the linked one about interfaces) but this give me even more the feeling that i am doing things correctly here. tho something must be off and im just not seeing it
27 replies