140 lines
2.5 KiB
C#
140 lines
2.5 KiB
C#
using System;
|
|
using UnityEngine;
|
|
|
|
namespace PygmyMonkey.AdvancedBuilder
|
|
{
|
|
[Serializable]
|
|
public class AppParameters : ScriptableObject
|
|
{
|
|
private static AppParameters mInstance;
|
|
|
|
[SerializeField]
|
|
private string m_releaseType = string.Empty;
|
|
|
|
[SerializeField]
|
|
private string m_platformType = string.Empty;
|
|
|
|
[SerializeField]
|
|
private string m_distributionPlatform = string.Empty;
|
|
|
|
[SerializeField]
|
|
private string m_platformArchitecture = string.Empty;
|
|
|
|
[SerializeField]
|
|
private string m_textureCompression = string.Empty;
|
|
|
|
[SerializeField]
|
|
private string m_productName = string.Empty;
|
|
|
|
[SerializeField]
|
|
private string m_bundleIdentifier = string.Empty;
|
|
|
|
[SerializeField]
|
|
private string m_bundleVersion = string.Empty;
|
|
|
|
[SerializeField]
|
|
private int m_buildNumber;
|
|
|
|
public static AppParameters Get
|
|
{
|
|
get
|
|
{
|
|
if (mInstance == null)
|
|
{
|
|
mInstance = (AppParameters)Resources.Load("AppParameters", typeof(AppParameters));
|
|
if (mInstance == null)
|
|
{
|
|
throw new Exception("We could not find the ScriptableObject AppParameters.asset inside the folder 'PygmyMonkey/AdvancedBuilder/Resources/'");
|
|
}
|
|
}
|
|
return mInstance;
|
|
}
|
|
}
|
|
|
|
public string releaseType
|
|
{
|
|
get
|
|
{
|
|
return m_releaseType;
|
|
}
|
|
}
|
|
|
|
public string platformType
|
|
{
|
|
get
|
|
{
|
|
return m_platformType;
|
|
}
|
|
}
|
|
|
|
public string distributionPlatform
|
|
{
|
|
get
|
|
{
|
|
return m_distributionPlatform;
|
|
}
|
|
}
|
|
|
|
public string platformArchitecture
|
|
{
|
|
get
|
|
{
|
|
return m_platformArchitecture;
|
|
}
|
|
}
|
|
|
|
public string textureCompression
|
|
{
|
|
get
|
|
{
|
|
return m_textureCompression;
|
|
}
|
|
}
|
|
|
|
public string productName
|
|
{
|
|
get
|
|
{
|
|
return m_productName;
|
|
}
|
|
}
|
|
|
|
public string bundleIdentifier
|
|
{
|
|
get
|
|
{
|
|
return m_bundleIdentifier;
|
|
}
|
|
}
|
|
|
|
public string bundleVersion
|
|
{
|
|
get
|
|
{
|
|
return m_bundleVersion;
|
|
}
|
|
}
|
|
|
|
public int buildNumber
|
|
{
|
|
get
|
|
{
|
|
return m_buildNumber;
|
|
}
|
|
}
|
|
|
|
public void updateParameters(string releaseType, string platformType, string distributionPlatform, string platformArchitecture, string textureCompression, string productName, string bundleIdentifier, string bundleVersion, int buildNumber)
|
|
{
|
|
m_releaseType = releaseType;
|
|
m_platformType = platformType;
|
|
m_distributionPlatform = distributionPlatform;
|
|
m_platformArchitecture = platformArchitecture;
|
|
m_textureCompression = textureCompression;
|
|
m_productName = productName;
|
|
m_bundleIdentifier = bundleIdentifier;
|
|
m_bundleVersion = bundleVersion;
|
|
m_buildNumber = buildNumber;
|
|
}
|
|
}
|
|
}
|