Skip to content

Commit

Permalink
fixed MonoScript export error
Browse files Browse the repository at this point in the history
  • Loading branch information
mafaca committed Aug 7, 2018
1 parent ba5b834 commit 0b78809
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -187,6 +187,7 @@ private ScriptExportType CreateType(TypeReference type)
ScriptExportType exportType = new ScriptExportMonoType(type);
m_types.Add(type.FullName, exportType);
exportType.Init(this);
exportType.GetTopmostContainer(this);
return exportType;
}

Expand All @@ -195,6 +196,7 @@ private ScriptExportEnum CreateEnum(TypeReference @enum)
ScriptExportMonoEnum exportEnum = new ScriptExportMonoEnum(@enum);
m_enums.Add(@enum.FullName, exportEnum);
exportEnum.Init(this);
exportEnum.GetTopmostContainer(this);
return exportEnum;
}

Expand All @@ -203,6 +205,7 @@ private ScriptExportDelegate CreateDelegate(TypeDefinition @delegate)
ScriptExportMonoDelegate exportDelegate = new ScriptExportMonoDelegate(@delegate);
m_delegates.Add(@delegate.FullName, exportDelegate);
exportDelegate.Init(this);
exportDelegate.GetTopmostContainer(this);
return exportDelegate;
}

Expand Down

0 comments on commit 0b78809

Please sign in to comment.