Skip to content

Commit

Permalink
add missing files
Browse files Browse the repository at this point in the history
  • Loading branch information
bdunderscore committed Aug 22, 2023
1 parent 49844ba commit 27dfa06
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
using System;
using nadena.dev.build_framework;
using nadena.dev.modular_avatar.editor.ErrorReporting;

namespace nadena.dev.modular_avatar.core.editor
{
internal class ModularAvatarContext : IExtensionContext
{
private IDisposable toDispose;
internal BuildContext BuildContext { get; private set; }

public void OnActivate(build_framework.BuildContext context)
{
if (BuildContext == null)
{
BuildContext = new BuildContext(context);
}

toDispose = BuildReport.CurrentReport.ReportingOnAvatar(context.AvatarDescriptor);
}

public void OnDeactivate(build_framework.BuildContext context)
{
toDispose?.Dispose();
toDispose = null;
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 27dfa06

Please sign in to comment.