Forest_Client/Forest/Assets/PhxhSDK/Editor/PhxhBuild.cs

41 lines
1.0 KiB
C#

using System;
namespace PhxhSDK.Editor
{
public static class PhxhBuild
{
public static Action beforeBuildPlayer; // handle other things for special game
public static Action beforeBuildContent; // handle other things for special game
public static Action beforeBuildContentAndPlayer; // handle other things for special game
public static void BuildPlayer()
{
EditorUtils.ApplyBuildPlayerSettings();
beforeBuildPlayer?.Invoke();
// build call
}
public static void BuildContent()
{
EditorUtils.ApplyBuildContentSettings();
beforeBuildContent?.Invoke();
// build call
}
public static void BuildContentAndPlayer()
{
EditorUtils.ApplyBuildContentSettings();
beforeBuildContentAndPlayer?.Invoke();
// build call
}
}
}