forked from Unity-Technologies/UnityCsReference
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBaseBuildTarget.cs
More file actions
45 lines (36 loc) · 1.84 KB
/
Copy pathBaseBuildTarget.cs
File metadata and controls
45 lines (36 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// Unity C# reference source
// Copyright (c) Unity Technologies. For terms of use, see
// https://unity3d.com/legal/licenses/Unity_Reference_Only_License
using UnityEditor.Build;
using UnityEngine;
namespace UnityEditor;
internal abstract class BaseBuildTarget : IBuildTarget
{
public virtual string DisplayName => TargetName;
// linux is the default, no need to explicitly specify it
public const string kRootSystemTypeWin = "win32";
public const string kRootSystemTypeMac = "macos";
public virtual string RootSystemType => "linux";
public abstract RuntimePlatform RuntimePlatform { get; }
public abstract string TargetName { get; }
public abstract GUID Guid { get; }
public abstract int GetLegacyId { get; }
public virtual IBuildPlatformProperties BuildPlatformProperties => Properties as IBuildPlatformProperties;
public virtual IGraphicsPlatformProperties GraphicsPlatformProperties => Properties as IGraphicsPlatformProperties;
public virtual IPlayerConnectionPlatformProperties PlayerConnectionPlatformProperties => Properties as IPlayerConnectionPlatformProperties;
public virtual IIconPlatformProperties IconPlatformProperties => Properties as IIconPlatformProperties;
public virtual IUIPlatformProperties UIPlatformProperties => Properties as IUIPlatformProperties;
public virtual IAudioPlatformProperties AudioPlatformProperties => Properties as IAudioPlatformProperties;
public virtual IVRPlatformProperties VRPlatformProperties => Properties as IVRPlatformProperties;
protected virtual IPlatformProperties Properties => null;
public bool TryGetProperties<T>(out T properties) where T: IPlatformProperties
{
if (Properties is T)
{
properties = (T)Properties;
return true;
}
properties = default(T);
return false;
}
}