Initial Commit
This commit is contained in:
parent
53eb92e9af
commit
270ab7d11f
15341 changed files with 700234 additions and 0 deletions
|
@ -0,0 +1,16 @@
|
|||
// using UnityEditor;
|
||||
// using UnityEditor.SettingsManagement;
|
||||
// using UnityEngine;
|
||||
//
|
||||
// namespace Unity.Cloud.Collaborate.Settings
|
||||
// {
|
||||
// internal class CollabSetting<T> : UserSetting<T>
|
||||
// {
|
||||
// public CollabSetting(string key, T value, SettingsScope scope = SettingsScope.Project)
|
||||
// : base(CollabSettingsManager.instance, key, value, scope)
|
||||
// {}
|
||||
//
|
||||
// CollabSetting(UnityEditor.SettingsManagement.Settings settings, string key, T value, SettingsScope scope = SettingsScope.Project)
|
||||
// : base(settings, key, value, scope) { }
|
||||
// }
|
||||
// }
|
11
Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Settings/CollabSetting.cs.meta
generated
Normal file
11
Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Settings/CollabSetting.cs.meta
generated
Normal file
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: b08b1fefe61616944ba52cf59275a1b5
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,47 @@
|
|||
using System;
|
||||
using JetBrains.Annotations;
|
||||
// using UnityEditor.SettingsManagement;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Unity.Cloud.Collaborate.Settings
|
||||
{
|
||||
[UsedImplicitly]
|
||||
internal class CollabSettings
|
||||
{
|
||||
public enum DisplayMode
|
||||
{
|
||||
Simple,
|
||||
Advanced
|
||||
}
|
||||
|
||||
public enum OpenLocation
|
||||
{
|
||||
Docked,
|
||||
Window
|
||||
}
|
||||
|
||||
// List of setting keys
|
||||
public const string settingRelativeTimestamp = "general.relativeTimestamps";
|
||||
// public const string settingAutoFetch = "general.autoFetch";
|
||||
// public const string settingDisplayMode = "general.displayMode";
|
||||
public const string settingDefaultOpenLocation = "general.defaultOpenLocation";
|
||||
|
||||
// [UserSetting] attribute registers this setting with the UserSettingsProvider so that it can be automatically
|
||||
// shown in the UI.
|
||||
// [UserSetting("General Settings", "Default Open Location")]
|
||||
// [UsedImplicitly]
|
||||
// static CollabSetting<OpenLocation> s_DefaultOpenLocation = new CollabSetting<OpenLocation>(settingDefaultOpenLocation, OpenLocation.Docked);
|
||||
//
|
||||
// [UserSetting("General Settings", "Relative Timestamps")]
|
||||
// [UsedImplicitly]
|
||||
// static CollabSetting<bool> s_RelativeTimestamps = new CollabSetting<bool>(settingRelativeTimestamp, true);
|
||||
//
|
||||
// [UserSetting("General Settings", "Automatic Fetch")]
|
||||
// [UsedImplicitly]
|
||||
// static CollabSetting<bool> s_AutoFetch = new CollabSetting<bool>(settingAutoFetch, true);
|
||||
//
|
||||
// [UserSetting("General Settings", "Display Mode")]
|
||||
// [UsedImplicitly]
|
||||
// static CollabSetting<DisplayMode> s_DisplayMode = new CollabSetting<DisplayMode>(settingDisplayMode, DisplayMode.Simple);
|
||||
}
|
||||
}
|
11
Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Settings/CollabSettings.cs.meta
generated
Normal file
11
Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Settings/CollabSettings.cs.meta
generated
Normal file
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 7cfdb27dce6c21f4a8da81214650c743
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,41 @@
|
|||
using UnityEditor;
|
||||
|
||||
namespace Unity.Cloud.Collaborate.Settings
|
||||
{
|
||||
/// <summary>
|
||||
/// This class will act as a manager for the <see cref="Settings"/> singleton.
|
||||
/// </summary>
|
||||
internal static class CollabSettingsManager
|
||||
{
|
||||
// Project settings will be stored in a JSON file in a directory matching this name.
|
||||
// const string k_PackageName = "com.unity.collab-proxy";
|
||||
|
||||
// static UnityEditor.SettingsManagement.Settings s_Instance;
|
||||
//
|
||||
// internal static UnityEditor.SettingsManagement.Settings instance =>
|
||||
// s_Instance ?? (s_Instance = new UnityEditor.SettingsManagement.Settings(k_PackageName));
|
||||
|
||||
// The rest of this file is just forwarding the various setting methods to the instance.
|
||||
|
||||
// public static void Save()
|
||||
// {
|
||||
// instance.Save();
|
||||
// }
|
||||
|
||||
public static T Get<T>(string key, SettingsScope scope = SettingsScope.Project, T fallback = default)
|
||||
{
|
||||
return fallback;
|
||||
//return instance.Get(key, scope, fallback);
|
||||
}
|
||||
|
||||
// public static void Set<T>(string key, T value, SettingsScope scope = SettingsScope.Project)
|
||||
// {
|
||||
// instance.Set(key, value, scope);
|
||||
// }
|
||||
//
|
||||
// public static bool ContainsKey<T>(string key, SettingsScope scope = SettingsScope.Project)
|
||||
// {
|
||||
// return instance.ContainsKey<T>(key, scope);
|
||||
// }
|
||||
}
|
||||
}
|
11
Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Settings/CollabSettingsManager.cs.meta
generated
Normal file
11
Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Settings/CollabSettingsManager.cs.meta
generated
Normal file
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 6c9043bf0bb7d8d4aaaf35f58acdc121
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,23 @@
|
|||
// using JetBrains.Annotations;
|
||||
// using UnityEditor;
|
||||
// using UnityEditor.SettingsManagement;
|
||||
//
|
||||
// namespace Unity.Cloud.Collaborate.Settings
|
||||
// {
|
||||
// [UsedImplicitly]
|
||||
// internal class CollabSettingsProvider
|
||||
// {
|
||||
// const string k_PreferencesPath = "Preferences/Collaborate";
|
||||
//
|
||||
// [SettingsProvider]
|
||||
// [UsedImplicitly]
|
||||
// static SettingsProvider CreateSettingsProvider()
|
||||
// {
|
||||
// var provider = new UserSettingsProvider(k_PreferencesPath,
|
||||
// CollabSettingsManager.instance,
|
||||
// new [] { typeof(CollabSettingsProvider).Assembly });
|
||||
//
|
||||
// return provider;
|
||||
// }
|
||||
// }
|
||||
// }
|
11
Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Settings/CollabSettingsProvider.cs.meta
generated
Normal file
11
Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Settings/CollabSettingsProvider.cs.meta
generated
Normal file
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 8eccc858a5846464a908c64673d60cb1
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,2 @@
|
|||
# Unity Collaborate Settings
|
||||
This directory contains implementations and bindings for the Unity Settings package. All settings for the package are managed in this directory.
|
7
Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Settings/README.md.meta
generated
Normal file
7
Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Settings/README.md.meta
generated
Normal file
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 28aca8a26620964449b2d65d819c5414
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Loading…
Add table
Add a link
Reference in a new issue