Skip to content

Commit f5777f5

Browse files
committed
feat: Add methods to get the platform type and set the deployment for PlatformConfigEditor and it's interface.
1 parent 6a99b61 commit f5777f5

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

Assets/Plugins/Source/Editor/ConfigEditors/IPlatformConfigEditor.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ public interface IPlatformConfigEditor : IConfigEditor
3636
/// </returns>
3737
bool IsPlatformAvailable();
3838

39+
void SetDeployment(Deployment deployment);
40+
41+
PlatformManager.Platform GetPlatform();
42+
3943
Texture GetPlatformIconTexture();
4044
}
4145
}

Assets/Plugins/Source/Editor/ConfigEditors/PlatformConfigEditor.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,16 @@ public Texture GetPlatformIconTexture()
5454
return PlatformManager.GetPlatformIcon(config.Platform);
5555
}
5656

57+
public void SetDeployment(Deployment deployment)
58+
{
59+
config.deployment = deployment;
60+
}
61+
62+
public PlatformManager.Platform GetPlatform()
63+
{
64+
return config.Platform;
65+
}
66+
5767
public override sealed void RenderContents()
5868
{
5969
GUIEditorUtility.RenderInputs(ref config);

0 commit comments

Comments
 (0)