0
Fixed (Unreleased)

Bolt 2a10 Code generation errors related to 'ToGenerated' method

TowerCrow 1 month ago updated by Lazlo Bonin (Lead Developer) 2 weeks ago 1 2 duplicates

Graph: https://imgur.com/SmPWLie

Works in Live mode, throws errors after switching to Generated mode.

Assets\Ludiq.Generated\Transient\Scripts\InventoryManager.cs(146,79): error CS1929: 'item' does not contain a definition for 'ToGenerated' and the best extension method overload 'XBoltTypeShell.ToGenerated(IBoltTypeShell)' requires a receiver of type 'IBoltTypeShell'

Assets\Ludiq.Generated\Transient\Scripts\InventoryManager.cs(150,66): error CS1929: 'item' does not contain a definition for 'ToGenerated' and the best extension method overload 'XBoltTypeShell.ToGenerated(IBoltTypeShell)' requires a receiver of type 'IBoltTypeShell'

Assets\Ludiq.Generated\Transient\Scripts\InventoryManager.cs(154,70): error CS1929: 'item' does not contain a definition for 'ToGenerated' and the best extension method overload 'XBoltTypeShell.ToGenerated(IBoltTypeShell)' requires a receiver of type 'IBoltTypeShell'

Assets\Ludiq.Generated\Transient\Scripts\InventoryManager.cs(158,42): error CS1929: 'Inventory' does not contain a definition for 'ToGenerated' and the best extension method overload 'XBoltTypeShell.ToGenerated(IBoltTypeShell)' requires a receiver of type 'IBoltTypeShell'

Assets\Ludiq.Generated\Transient\Scripts\InventoryManager.cs(158,112): error CS1929: 'item' does not contain a definition for 'ToGenerated' and the best extension method overload 'XBoltTypeShell.ToGenerated(IBoltTypeShell)' requires a receiver of type 'IBoltTypeShell'

Assets\Ludiq.Generated\Transient\Scripts\InventoryManager.cs(169,83): error CS1929: 'item' does not contain a definition for 'ToGenerated' and the best extension method overload 'XBoltTypeShell.ToGenerated(IBoltTypeShell)' requires a receiver of type 'IBoltTypeShell'

Assets\Ludiq.Generated\Transient\Scripts\InventoryManager.cs(173,78): error CS1929: 'item' does not contain a definition for 'ToGenerated' and the best extension method overload 'XBoltTypeShell.ToGenerated(IBoltTypeShell)' requires a receiver of type 'IBoltTypeShell'

Assets\Ludiq.Generated\Transient\Scripts\InventoryManager.cs(179,49): error CS1929: 'item' does not contain a definition for 'ToGenerated' and the best extension method overload 'XBoltTypeShell.ToGenerated(IBoltTypeShell)' requires a receiver of type 'IBoltTypeShell'

InventoryManager.cs

Bolt Version:
2.0.0a10
Unity Version:
2019.3.2f1
Platform(s):
PC
Scripting Backend:
Mono
.NET Version (API Compatibility Level):
.NET 4.x
Bolt 2

Duplicates 2

Fixed (Unreleased)

Hi TowerCrow,

Thanks for the report.

I believe this is already fixed in my working revision for the next version, as I did lots of fixes related to generated-to-shell and shell-to-generated conversions. I'll mark this as "Fixed (Unreleased)" on this assumption, but let me know if the issue reappears in Alpha 11+.