Facepunch / sbox-issues

176 stars 12 forks source link

GameManager seems to be a forbidden name for those inheriting PanelComponent #5842

Open Retroeer opened 3 months ago

Retroeer commented 3 months ago

Describe the bug

I have a Component that implements the PanelComponent (dont ask), it takes the name of GameManager, as it manages my game, If I try to make a reference to this component, I get a Cannot declare a variable of static type 'GameManager' If I rename this component to "GameHandler" or something else of the sort, this issue goes away

To Reproduce

Create a panel component, call it GameManager, attempt to reference it Cannot declare a variable of static type 'GameManager' moment

Expected behavior

Much like a regular component GameManager should be unrestricted

Media/Files

No response

Additional context

No response

DevulTj commented 3 months ago

GameManger exists in the Sandbox namespace as an Obsolete class, it existed before we moved it all to Game.