Quantcast
Channel: Programming (In-game)
Viewing all articles
Browse latest Browse all 903

IMyInventory.GetItems() Returning MyInventoryItem instead of IMyInventoryItem

$
0
0
I've got a few sections of code in a couple automatic drill miners, all of the code was written by a user called Pennywise, that use the GetItems method to perform different tasks. One section I've managed to convert over to the new MyInventoryItem way, but the second section, specifically where the Content method is called. According to the compilation log, the Content method is non-existent for the type MyInventoryItem, and I cannot cast an IMyInventoryItem to a MyInventoryItem.

Is there...

IMyInventory.GetItems() Returning MyInventoryItem instead of IMyInventoryItem

Viewing all articles
Browse latest Browse all 903

Trending Articles