-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
Upgrade to SpatialOS 13.0.0
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"name": "your_project_name_here", | ||
"project_version": "1.0.0", | ||
"sdk_version": "12.2.1", | ||
"sdk_version": "13.0.0", | ||
"dependencies": [ | ||
{"name": "standard_library", "version": "12.2.1"} | ||
{"name": "standard_library", "version": "13.0.0"} | ||
] | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Copyright (c) Improbable Worlds Ltd, All Rights Reserved | ||
|
||
namespace Improbable.Unity.MinimalBuildSystem.Configuration | ||
{ | ||
public enum BuildEnvironment | ||
{ | ||
Local, | ||
Cloud | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Copyright (c) Improbable Worlds Ltd, All Rights Reserved | ||
|
||
using System; | ||
using UnityEditor; | ||
|
||
namespace Improbable.Unity.MinimalBuildSystem.Configuration | ||
{ | ||
[Serializable] | ||
public class BuildEnvironmentConfig | ||
{ | ||
public SpatialBuildPlatforms BuildPlatforms = SpatialBuildPlatforms.Current; | ||
public BuildOptions BuildOptions = 0; | ||
|
||
[NonSerialized] public bool ShowBuildOptions = true; | ||
[NonSerialized] public bool ShowBuildPlatforms = true; | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copyright (c) Improbable Worlds Ltd, All Rights Reserved | ||
|
||
using System.IO; | ||
using Improbable.Unity.Util; | ||
|
||
namespace Improbable.Unity.MinimalBuildSystem.Configuration | ||
{ | ||
public static class BuildPaths | ||
{ | ||
public static readonly string PrefabResourcesDirectory = | ||
PathUtil.Combine("Assets", "Improbable", "Generated", "Resources", "EntityPrefabs").ToUnityPath(); | ||
|
||
public static readonly string PrefabSourceDirectory = PathUtil.Combine("Assets", "EntityPrefabs").ToUnityPath(); | ||
|
||
public static string BuildScratchDirectory | ||
{ | ||
get { return Path.GetFullPath(Path.Combine("build", "worker")); } | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Copyright (c) Improbable Worlds Ltd, All Rights Reserved | ||
|
||
#if !UNITY_2017_3_OR_NEWER | ||
using System; | ||
using UnityEditor; | ||
|
||
namespace Improbable.Unity.MinimalBuildSystem.Configuration | ||
{ | ||
/// <summary> | ||
/// Fallback for Unity 2017.3f1 feature: EditorGUI.IndentLevelScope | ||
/// </summary> | ||
public class FallbackIndentLevelScope : IDisposable | ||
{ | ||
private readonly int indent; | ||
|
||
public FallbackIndentLevelScope(int increment) | ||
{ | ||
indent = EditorGUI.indentLevel; | ||
EditorGUI.indentLevel += indent; | ||
} | ||
|
||
public void Dispose() | ||
{ | ||
EditorGUI.indentLevel = indent; | ||
} | ||
} | ||
} | ||
#endif |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Copyright (c) Improbable Worlds Ltd, All Rights Reserved | ||
|
||
using System; | ||
using UnityEngine; | ||
|
||
namespace Improbable.Unity.MinimalBuildSystem.Configuration | ||
{ | ||
class GUIColorScope : IDisposable | ||
{ | ||
private readonly Color color; | ||
|
||
public GUIColorScope(Color newColor) | ||
{ | ||
color = GUI.color; | ||
GUI.color = newColor; | ||
} | ||
|
||
public void Dispose() | ||
{ | ||
GUI.color = color; | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Copyright (c) Improbable Worlds Ltd, All Rights Reserved | ||
|
||
namespace Improbable.Unity.MinimalBuildSystem.Configuration | ||
{ | ||
/// <summary> | ||
/// Indicate whether or not built-out players should be compressed. | ||
/// </summary> | ||
public enum PlayerCompression | ||
{ | ||
Enabled, | ||
Disabled | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// Copyright (c) Improbable Worlds Ltd, All Rights Reserved | ||
|
||
using System.Linq; | ||
using UnityEditor; | ||
using UnityEngine; | ||
|
||
namespace Improbable.Unity.MinimalBuildSystem.Configuration | ||
{ | ||
internal class SceneItem | ||
{ | ||
public readonly SceneAsset SceneAsset; | ||
public bool Included; | ||
private readonly bool exists; | ||
|
||
public SceneItem(SceneAsset sceneAsset, bool included, SceneAsset[] inAssetDatabase) | ||
{ | ||
SceneAsset = sceneAsset; | ||
Included = included; | ||
exists = inAssetDatabase.Contains(sceneAsset); | ||
} | ||
|
||
public static SceneItem Drawer(Rect position, SceneItem item) | ||
{ | ||
using (item.exists ? null : new GUIColorScope(Color.red)) | ||
{ | ||
var positionWidth = position.width; | ||
var labelWidth = GUI.skin.toggle.CalcSize(GUIContent.none).x + 5; | ||
|
||
position.width = labelWidth; | ||
item.Included = EditorGUI.Toggle(position, item.Included); | ||
|
||
position.x += labelWidth; | ||
position.width = positionWidth - labelWidth; | ||
|
||
EditorGUI.ObjectField(position, item.SceneAsset, typeof(SceneAsset), false); | ||
} | ||
|
||
return item; | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.