Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotload: Implement upgrader for interface instances #31

Closed
Tracked by #23
MuffinTastic opened this issue Jan 26, 2023 · 1 comment
Closed
Tracked by #23

Hotload: Implement upgrader for interface instances #31

MuffinTastic opened this issue Jan 26, 2023 · 1 comment
Assignees
Labels
context/managed type/bug Something isn't working

Comments

@MuffinTastic
Copy link
Contributor

Putting this in Game.cs...

public interface ITest
{
	public string TestProperty { get; set; }
}

public class TestImplementation : ITest
{
	public string TestProperty { get; set; }
}

public class Game : BaseGame
{
	// ...

	private ITest _instance;

	public override void Startup()
	{
		// ...

		_instance = new TestImplementation();

		// ...
	}

	// ...
}

... and then triggering a hotload by saving the file again results in this, and leaves the field/property null.
image

@MuffinTastic MuffinTastic changed the title Implement upgrader for interface instances Hotload: Implement upgrader for interface instances Jan 26, 2023
@xezno xezno self-assigned this Jan 26, 2023
@xezno xezno added type/bug Something isn't working context/managed labels Jan 26, 2023
@xezno xezno mentioned this issue Jan 26, 2023
24 tasks
@xezno
Copy link
Member

xezno commented Jan 27, 2023

Fixed with 1cd0ef7

@xezno xezno closed this as completed Jan 27, 2023
@xezno xezno added this to the Initial Release milestone Mar 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
context/managed type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants