Compare commits
10 Commits
830d014bf0
...
b749cf0221
Author | SHA1 | Date | |
---|---|---|---|
b749cf0221 | |||
5b3a51150c | |||
02fc481993 | |||
1d619391c9 | |||
dad7e703e6 | |||
a1f6c4ef94 | |||
a0ded872b3 | |||
35b77b044c | |||
70f4d0ffc3 | |||
6ead7aa5ce |
160
Assets/Cryville.Common/Unity/UI/RecyclerView.cs
Normal file
160
Assets/Cryville.Common/Unity/UI/RecyclerView.cs
Normal file
@@ -0,0 +1,160 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.EventSystems;
|
||||||
|
using UnityEngine.UI;
|
||||||
|
|
||||||
|
namespace Cryville.Common.Unity.UI {
|
||||||
|
public delegate void LoadItemHandler(int index, GameObject gameObject);
|
||||||
|
[RequireComponent(typeof(RectTransform))]
|
||||||
|
public class RecyclerView : UIBehaviour {
|
||||||
|
[SerializeField]
|
||||||
|
private GameObject m_itemTemplate;
|
||||||
|
public GameObject ItemTemplate {
|
||||||
|
get { return m_itemTemplate; }
|
||||||
|
set { m_itemTemplate = value; /*OnTemplateUpdate();*/ }
|
||||||
|
}
|
||||||
|
public LoadItemHandler LoadItem { private get; set; }
|
||||||
|
|
||||||
|
public enum Axis {
|
||||||
|
Horizontal = 0,
|
||||||
|
Vertical = 1,
|
||||||
|
}
|
||||||
|
[SerializeField]
|
||||||
|
private Axis m_direction;
|
||||||
|
public Axis Direction {
|
||||||
|
get { return m_direction; }
|
||||||
|
set { m_direction = value; /*OnFrameUpdate();*/ }
|
||||||
|
}
|
||||||
|
|
||||||
|
[SerializeField]
|
||||||
|
RectOffset m_padding;
|
||||||
|
public RectOffset Padding {
|
||||||
|
get => m_padding;
|
||||||
|
set => m_padding = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
[SerializeField]
|
||||||
|
float m_spacing;
|
||||||
|
public float Spacing {
|
||||||
|
get => m_spacing;
|
||||||
|
set => m_spacing = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
[SerializeField]
|
||||||
|
private int m_itemCount = 3;
|
||||||
|
public int ItemCount {
|
||||||
|
get { return m_itemCount; }
|
||||||
|
set { m_itemCount = value; /*OnRefresh();*/ }
|
||||||
|
}
|
||||||
|
|
||||||
|
RectTransform _rectTransform;
|
||||||
|
protected override void Awake() {
|
||||||
|
_rectTransform = GetComponent<RectTransform>();
|
||||||
|
}
|
||||||
|
|
||||||
|
const float _placeholderLength = 100;
|
||||||
|
int _firstIndex, _lastIndex;
|
||||||
|
readonly Stack<GameObject> _pool = new();
|
||||||
|
void Update() {
|
||||||
|
int axis = (int)m_direction;
|
||||||
|
int sign = m_direction == 0 ? 1 : -1;
|
||||||
|
float padding = axis == 0 ? m_padding.left : m_padding.top;
|
||||||
|
if (_rectTransform.parent is not RectTransform parentTransform)
|
||||||
|
throw new InvalidOperationException("Parent transform is not RectTransform");
|
||||||
|
|
||||||
|
Vector2 apos = _rectTransform.anchoredPosition;
|
||||||
|
float pos = apos[axis] + padding;
|
||||||
|
float childPos = _firstIndex * _placeholderLength + padding;
|
||||||
|
float visibleLength = parentTransform.rect.size[axis];
|
||||||
|
|
||||||
|
//// Add preceding
|
||||||
|
//while (_firstIndex > 0 && childPos > pos) {
|
||||||
|
// var child = Rent();
|
||||||
|
// child.transform.SetAsFirstSibling();
|
||||||
|
// LoadItem(--_firstIndex, child);
|
||||||
|
// pos += GetLength(axis, child.transform) - _placeholderLength;
|
||||||
|
// childPos -= _placeholderLength;
|
||||||
|
//}
|
||||||
|
|
||||||
|
//// Remove preceding
|
||||||
|
//while (_firstIndex < _lastIndex) {
|
||||||
|
// var child = transform.GetChild(0);
|
||||||
|
// float len = GetLength(axis, child.transform);
|
||||||
|
// if (childPos + len > pos) break;
|
||||||
|
// Return(child.gameObject);
|
||||||
|
// _firstIndex++;
|
||||||
|
// pos += _placeholderLength - len;
|
||||||
|
// childPos += _placeholderLength;
|
||||||
|
//}
|
||||||
|
|
||||||
|
//apos[axis] = pos;
|
||||||
|
//_rectTransform.anchoredPosition = apos;
|
||||||
|
|
||||||
|
// Layout existing
|
||||||
|
int index = _firstIndex;
|
||||||
|
float layoutToPos = pos + visibleLength;
|
||||||
|
for (; index < _lastIndex && childPos < layoutToPos; index++) {
|
||||||
|
var child = (RectTransform)transform.GetChild(index - _firstIndex);
|
||||||
|
LayoutChild(axis, sign, ref childPos, child);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Remove following
|
||||||
|
for (; _lastIndex > index; --_lastIndex) {
|
||||||
|
var child = (RectTransform)transform.GetChild(index - _firstIndex);
|
||||||
|
Return(child.gameObject);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Add following (and layout)
|
||||||
|
while (_lastIndex < m_itemCount && childPos < layoutToPos) {
|
||||||
|
var child = Rent();
|
||||||
|
if (child.transform is not RectTransform childTransform)
|
||||||
|
throw new InvalidOperationException("Child transform is not RectTransform");
|
||||||
|
childTransform.SetSiblingIndex(_lastIndex - _firstIndex);
|
||||||
|
LoadItem(_lastIndex++, child);
|
||||||
|
LayoutChild(axis, sign, ref childPos, childTransform);
|
||||||
|
}
|
||||||
|
|
||||||
|
Vector2 gsize = _rectTransform.sizeDelta;
|
||||||
|
gsize[axis] = childPos + (m_itemCount - _lastIndex) * _placeholderLength + (axis == 0 ? m_padding.horizontal : m_padding.vertical);
|
||||||
|
_rectTransform.sizeDelta = gsize;
|
||||||
|
}
|
||||||
|
static float GetLength(int axis, Transform child) {
|
||||||
|
if (child is not RectTransform childTransform)
|
||||||
|
throw new InvalidOperationException("Child transform is not RectTransform");
|
||||||
|
return LayoutUtility.GetPreferredSize(childTransform, axis);
|
||||||
|
}
|
||||||
|
void LayoutChild(int axis, int sign, ref float childPos, RectTransform childTransform) {
|
||||||
|
Vector2 cpos = childTransform.anchoredPosition;
|
||||||
|
cpos[axis] = childPos * sign;
|
||||||
|
cpos[axis ^ 1] = axis == 1 ? m_padding.left : m_padding.top;
|
||||||
|
childTransform.anchoredPosition = cpos;
|
||||||
|
|
||||||
|
Vector2 size = childTransform.sizeDelta;
|
||||||
|
size[axis ^ 1] = _rectTransform.rect.size[axis ^ 1] - (axis == 1 ? m_padding.horizontal : m_padding.vertical);
|
||||||
|
childTransform.sizeDelta = size;
|
||||||
|
|
||||||
|
childPos += GetLength(axis, childTransform) + m_spacing;
|
||||||
|
}
|
||||||
|
|
||||||
|
GameObject Rent() {
|
||||||
|
if (_pool.TryPop(out var ret)) {
|
||||||
|
ret.SetActive(true);
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
return Instantiate(m_itemTemplate, transform, false);
|
||||||
|
}
|
||||||
|
void Return(GameObject child) {
|
||||||
|
child.transform.SetAsLastSibling();
|
||||||
|
child.SetActive(false);
|
||||||
|
_pool.Push(child);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void InvalidateAll() {
|
||||||
|
for (; _lastIndex > _firstIndex; --_lastIndex) {
|
||||||
|
var child = (RectTransform)transform.GetChild(0);
|
||||||
|
Return(child.gameObject);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
11
Assets/Cryville.Common/Unity/UI/RecyclerView.cs.meta
Normal file
11
Assets/Cryville.Common/Unity/UI/RecyclerView.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 1257c1f4490f1d64bb8fc52a9abed1ae
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@@ -1,11 +1,10 @@
|
|||||||
using Cryville.Common.Font;
|
using Cryville.Common.Font;
|
||||||
using Cryville.Common.Unity.UI;
|
using Cryville.Common.Unity.UI;
|
||||||
using Cryville.Crtr;
|
|
||||||
using Cryville.Culture;
|
using Cryville.Culture;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Xml.Linq;
|
|
||||||
using System.Xml;
|
using System.Xml;
|
||||||
|
using System.Xml.Linq;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace Cryville.EEW.Unity {
|
namespace Cryville.EEW.Unity {
|
||||||
|
57
Assets/Cryville.EEW.Unity/Config.cs
Normal file
57
Assets/Cryville.EEW.Unity/Config.cs
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
|
namespace Cryville.EEW.Unity {
|
||||||
|
record Config(
|
||||||
|
string SeverityScheme,
|
||||||
|
string SeverityColorMapping,
|
||||||
|
float SeverityColorMappingLuminanceMultiplier,
|
||||||
|
bool UseContinuousColor,
|
||||||
|
string ColorScheme,
|
||||||
|
|
||||||
|
string OverrideTimeZone,
|
||||||
|
bool DoDisplayTimeZone,
|
||||||
|
bool DoSwitchBackToHistory,
|
||||||
|
|
||||||
|
IReadOnlyCollection<EventSourceConfig> EventSources
|
||||||
|
) {
|
||||||
|
public static Config Default => new(
|
||||||
|
"Default",
|
||||||
|
"Default",
|
||||||
|
1f,
|
||||||
|
false,
|
||||||
|
"Default",
|
||||||
|
|
||||||
|
null,
|
||||||
|
true,
|
||||||
|
true,
|
||||||
|
|
||||||
|
new List<EventSourceConfig> {
|
||||||
|
new JMAAtomEventSourceConfig(),
|
||||||
|
new UpdateCheckerEventSourceConfig(),
|
||||||
|
new WolfxEventSourceConfig(),
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
[JsonPolymorphic(TypeDiscriminatorPropertyName = "Type", UnknownDerivedTypeHandling = JsonUnknownDerivedTypeHandling.FallBackToBaseType)]
|
||||||
|
[JsonDerivedType(typeof(CWAOpenDataEventSourceConfig), "CWAOpenData")]
|
||||||
|
[JsonDerivedType(typeof(GlobalQuakeServerEventSourceConfig), "GlobalQuakeServer")]
|
||||||
|
[JsonDerivedType(typeof(GlobalQuakeServer15EventSourceConfig), "GlobalQuakeServer15")]
|
||||||
|
[JsonDerivedType(typeof(JMAAtomEventSourceConfig), "JMAAtom")]
|
||||||
|
[JsonDerivedType(typeof(NOAAEventSourceConfig), "NOAA")]
|
||||||
|
[JsonDerivedType(typeof(UpdateCheckerEventSourceConfig), "UpdateChecker")]
|
||||||
|
[JsonDerivedType(typeof(WolfxEventSourceConfig), "Wolfx")]
|
||||||
|
abstract record EventSourceConfig();
|
||||||
|
record CWAOpenDataEventSourceConfig([property: JsonRequired] string Subtype, [property: JsonRequired] string Token) : EventSourceConfig;
|
||||||
|
record GlobalQuakeServerEventSourceConfig([property: JsonRequired] string Host, int Port = 38000) : EventSourceConfig;
|
||||||
|
record GlobalQuakeServer15EventSourceConfig(string Host, int Port = 38000) : GlobalQuakeServerEventSourceConfig(Host, Port);
|
||||||
|
record JMAAtomEventSourceConfig(IReadOnlyCollection<string> Filter = null, bool IsFilterWhitelist = false) : EventSourceConfig;
|
||||||
|
record NOAAEventSourceConfig([property: JsonRequired] string Subtype) : EventSourceConfig;
|
||||||
|
record UpdateCheckerEventSourceConfig : EventSourceConfig;
|
||||||
|
record WolfxEventSourceConfig(IReadOnlyCollection<string> Filter = null, bool IsFilterWhitelist = false) : EventSourceConfig;
|
||||||
|
|
||||||
|
[JsonSerializable(typeof(Config))]
|
||||||
|
[JsonSourceGenerationOptions(WriteIndented = true)]
|
||||||
|
sealed partial class ConfigSerializationContext : JsonSerializerContext { }
|
||||||
|
}
|
11
Assets/Cryville.EEW.Unity/Config.cs.meta
Normal file
11
Assets/Cryville.EEW.Unity/Config.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: b478a322f8c49a247b6761de7b5c0e0a
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@@ -21,7 +21,7 @@ namespace Cryville.EEW.Unity.Map {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sealed class MapTileCacheManager : IDisposable {
|
sealed class MapTileCacheManager : IDisposable {
|
||||||
public int ExtraCachedZoomLevel { get; set; } = 2;
|
public int ExtraCachedZoomLevel { get; set; } = 20;
|
||||||
|
|
||||||
GameObject m_prefabTile;
|
GameObject m_prefabTile;
|
||||||
public GameObject PrefabTile {
|
public GameObject PrefabTile {
|
||||||
|
@@ -1,7 +1,8 @@
|
|||||||
using Cryville.Common.Font;
|
using Cryville.Common.Font;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
namespace Cryville.Crtr {
|
namespace Cryville.EEW.Unity {
|
||||||
internal static class PlatformConfig {
|
internal static class PlatformConfig {
|
||||||
#if UNITY_STANDALONE_WIN
|
#if UNITY_STANDALONE_WIN
|
||||||
public static readonly string Name = "windows";
|
public static readonly string Name = "windows";
|
||||||
@@ -11,11 +12,17 @@ namespace Cryville.Crtr {
|
|||||||
#error Unknown platform.
|
#error Unknown platform.
|
||||||
#endif
|
#endif
|
||||||
#if UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN
|
#if UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN
|
||||||
|
#if UNITY_EDITOR_WIN
|
||||||
|
public static readonly string ConfigPath = Application.persistentDataPath;
|
||||||
|
#else
|
||||||
|
public static readonly string ConfigPath = Application.dataPath;
|
||||||
|
#endif
|
||||||
public static readonly string FileProtocolPrefix = "file:///";
|
public static readonly string FileProtocolPrefix = "file:///";
|
||||||
public static readonly FontManager FontManager = new FontManagerWindows();
|
public static readonly FontManager FontManager = new FontManagerWindows();
|
||||||
public static Dictionary<string, List<string>> ScriptFontMap => FallbackListFontMatcher.GetDefaultWindowsFallbackMap();
|
public static Dictionary<string, List<string>> ScriptFontMap => FallbackListFontMatcher.GetDefaultWindowsFallbackMap();
|
||||||
public static readonly string TextShader = "TextMesh Pro/Shaders/TMP_SDF SSD";
|
public static readonly string TextShader = "TextMesh Pro/Shaders/TMP_SDF SSD";
|
||||||
#elif UNITY_ANDROID
|
#elif UNITY_ANDROID
|
||||||
|
public static readonly string ConfigPath = Application.persistentDataPath;
|
||||||
public static readonly string FileProtocolPrefix = "file://";
|
public static readonly string FileProtocolPrefix = "file://";
|
||||||
public static readonly FontManager FontManager = new FontManagerAndroid();
|
public static readonly FontManager FontManager = new FontManagerAndroid();
|
||||||
public static Dictionary<string, List<string>> ScriptFontMap => FallbackListFontMatcher.GetDefaultAndroidFallbackMap();
|
public static Dictionary<string, List<string>> ScriptFontMap => FallbackListFontMatcher.GetDefaultAndroidFallbackMap();
|
||||||
|
@@ -5,7 +5,12 @@ using Cryville.EEW.Map;
|
|||||||
using Cryville.EEW.Report;
|
using Cryville.EEW.Report;
|
||||||
using Cryville.EEW.TTS;
|
using Cryville.EEW.TTS;
|
||||||
using System;
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Globalization;
|
||||||
|
using System.IO;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
using System.Security.Cryptography;
|
using System.Security.Cryptography;
|
||||||
|
using System.Text.Json;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using Color = System.Drawing.Color;
|
using Color = System.Drawing.Color;
|
||||||
|
|
||||||
@@ -14,19 +19,95 @@ namespace Cryville.EEW.Unity {
|
|||||||
static SharedSettings s_instance;
|
static SharedSettings s_instance;
|
||||||
public static SharedSettings Instance => s_instance ??= new();
|
public static SharedSettings Instance => s_instance ??= new();
|
||||||
|
|
||||||
public ISeverityScheme SeverityScheme => DefaultSeverityScheme.Instance;
|
public ISeverityScheme SeverityScheme { get; private set; } = DefaultSeverityScheme.Instance;
|
||||||
public ISeverityColorMapping SeverityColorMapping => DefaultSeverityColorMapping.Instance;
|
public ISeverityColorMapping SeverityColorMapping { get; private set; } = DefaultSeverityColorMapping.Instance;
|
||||||
public bool UseContinuousColor => true;
|
public bool UseContinuousColor { get; private set; } = true;
|
||||||
public IColorScheme ColorScheme => new SeverityBasedColorScheme(SeverityScheme, DefaultSeverityColorMapping.Instance);
|
public IColorScheme ColorScheme { get; private set; } = new SeverityBasedColorScheme(DefaultSeverityScheme.Instance, DefaultSeverityColorMapping.Instance);
|
||||||
public ISubColorScheme BorderColorScheme => new WrappedColorScheme(new SeverityBasedColorScheme(SeverityScheme, DefaultSeverityColorMapping.SecondaryInstance));
|
public ISubColorScheme BorderColorScheme { get; private set; } = new WrappedColorScheme(new SeverityBasedColorScheme(DefaultSeverityScheme.Instance, DefaultSeverityColorMapping.SecondaryInstance));
|
||||||
public ISubColorScheme TextColorScheme => new DefaultTextColorScheme(Color.White, Color.Black);
|
public ISubColorScheme TextColorScheme { get; private set; } = new DefaultTextColorScheme(Color.White, Color.Black);
|
||||||
public ILocationConverter LocationConverter => new FERegionLongConverter();
|
public ILocationConverter LocationConverter => new FERegionLongConverter(); // TODO TTS
|
||||||
public TimeSpan NowcastWarningDelayTolerance => TimeSpan.MaxValue;
|
public TimeSpan NowcastWarningDelayTolerance => TimeSpan.FromMinutes(60); // TODO TTS
|
||||||
|
|
||||||
|
public TimeZoneInfo OverrideTimeZone { get; private set; }
|
||||||
|
public bool DoDisplayTimeZone { get; private set; } = true;
|
||||||
|
public bool DoSwitchBackToHistory { get; private set; } = true;
|
||||||
|
|
||||||
|
public IReadOnlyCollection<EventSourceConfig> EventSources { get; private set; }
|
||||||
|
|
||||||
|
public string Id { get; private set; }
|
||||||
public byte[] IdBytes { get; } = new byte[32];
|
public byte[] IdBytes { get; } = new byte[32];
|
||||||
|
public string UnityUserAgent { get; private set; }
|
||||||
|
|
||||||
public void Init() {
|
public void Init() {
|
||||||
|
Id = SystemInfo.deviceUniqueIdentifier;
|
||||||
using var hash = SHA256.Create();
|
using var hash = SHA256.Create();
|
||||||
hash.ComputeHash(EEW.SharedSettings.Encoding.GetBytes(SystemInfo.deviceUniqueIdentifier)).CopyTo(IdBytes, 0);
|
hash.ComputeHash(EEW.SharedSettings.Encoding.GetBytes(Id)).CopyTo(IdBytes, 0);
|
||||||
|
#if UNITY_STANDALONE_WIN
|
||||||
|
UnityUserAgent = string.Format(
|
||||||
|
CultureInfo.InvariantCulture,
|
||||||
|
"{0} CysTerraUnity/{1} (Windows NT {2}; {3})",
|
||||||
|
EEW.SharedSettings.UserAgent,
|
||||||
|
Application.version,
|
||||||
|
Environment.OSVersion.Version,
|
||||||
|
RuntimeInformation.OSArchitecture.ToString().ToLowerInvariant()
|
||||||
|
);
|
||||||
|
#else
|
||||||
|
#error No Unity User Agent
|
||||||
|
#endif
|
||||||
|
|
||||||
|
var file = new FileInfo(Path.Combine(PlatformConfig.ConfigPath, "config.json"));
|
||||||
|
if (!file.Exists) {
|
||||||
|
using var stream1 = file.OpenWrite();
|
||||||
|
using var writer = new StreamWriter(stream1, EEW.SharedSettings.Encoding);
|
||||||
|
writer.Write(JsonSerializer.Serialize(Config.Default, ConfigSerializationContext.Default.Config));
|
||||||
|
}
|
||||||
|
using var stream = file.OpenRead();
|
||||||
|
var config = JsonSerializer.Deserialize(stream, ConfigSerializationContext.Default.Config) ?? throw new InvalidOperationException("Null config.");
|
||||||
|
|
||||||
|
SeverityScheme = config.SeverityScheme switch {
|
||||||
|
"Default" => new DefaultSeverityScheme(),
|
||||||
|
"Legacy" => new LegacySeverityScheme(),
|
||||||
|
_ => throw new InvalidOperationException("Unknown severity scheme."),
|
||||||
|
};
|
||||||
|
SeverityColorMapping = config.SeverityColorMapping switch {
|
||||||
|
"Default" => new DefaultSeverityColorMapping(config.SeverityColorMappingLuminanceMultiplier),
|
||||||
|
"SREV" => new SREVSeverityColorMapping(config.SeverityColorMappingLuminanceMultiplier),
|
||||||
|
"SREVBorder" => new SREVBorderSeverityColorMapping(config.SeverityColorMappingLuminanceMultiplier),
|
||||||
|
_ => throw new InvalidOperationException("Unknown severity color mapping."),
|
||||||
|
};
|
||||||
|
UseContinuousColor = config.UseContinuousColor;
|
||||||
|
ColorScheme = config.ColorScheme switch {
|
||||||
|
"Default" => new SeverityBasedColorScheme(SeverityScheme, DefaultSeverityColorMapping.Instance),
|
||||||
|
"SREV" => new SREVColorScheme(),
|
||||||
|
"DichromaticYB" => new SeverityBasedColorScheme(SeverityScheme, new DichromaticSeverityColorMapping(0.62f, 0.20f, 90)),
|
||||||
|
"DichromaticRC" => new SeverityBasedColorScheme(SeverityScheme, new DichromaticSeverityColorMapping(0.62f, 0.25f, 30)),
|
||||||
|
"DichromaticPG" => new SeverityBasedColorScheme(SeverityScheme, new DichromaticSeverityColorMapping(0.62f, 0.30f, -30)),
|
||||||
|
"Monochromatic" => new SeverityBasedColorScheme(SeverityScheme, new MonochromaticSeverityColorMapping()),
|
||||||
|
_ => throw new InvalidOperationException("Unknown color scheme."),
|
||||||
|
};
|
||||||
|
BorderColorScheme = config.ColorScheme switch {
|
||||||
|
"Default" => new WrappedColorScheme(new SeverityBasedColorScheme(SeverityScheme, DefaultSeverityColorMapping.SecondaryInstance)),
|
||||||
|
"SREV" => new WrappedColorScheme(new SREVBorderColorScheme()),
|
||||||
|
"DichromaticYB" => new WrappedColorScheme(new SeverityBasedColorScheme(SeverityScheme, new DichromaticSeverityColorMapping(0.62f, 0.20f, 90, 0.75f))),
|
||||||
|
"DichromaticRC" => new WrappedColorScheme(new SeverityBasedColorScheme(SeverityScheme, new DichromaticSeverityColorMapping(0.62f, 0.25f, 30, 0.75f))),
|
||||||
|
"DichromaticPG" => new WrappedColorScheme(new SeverityBasedColorScheme(SeverityScheme, new DichromaticSeverityColorMapping(0.62f, 0.30f, -30, 0.75f))),
|
||||||
|
"Monochromatic" => new WrappedColorScheme(new SeverityBasedColorScheme(SeverityScheme, new MonochromaticSeverityColorMapping(0.75f))),
|
||||||
|
_ => throw new InvalidOperationException("Unknown color scheme."),
|
||||||
|
};
|
||||||
|
TextColorScheme = config.ColorScheme switch {
|
||||||
|
"SREV" => new DefaultTextColorScheme(Color.White, Color.FromArgb(28, 28, 28), 0.555f),
|
||||||
|
_ => new DefaultTextColorScheme(Color.White, Color.Black),
|
||||||
|
};
|
||||||
|
OverrideTimeZone = ParseTimeZone(config.OverrideTimeZone);
|
||||||
|
DoDisplayTimeZone = config.DoDisplayTimeZone;
|
||||||
|
DoSwitchBackToHistory = config.DoSwitchBackToHistory;
|
||||||
|
EventSources = config.EventSources;
|
||||||
|
}
|
||||||
|
|
||||||
|
TimeZoneInfo ParseTimeZone(string timeZone) {
|
||||||
|
if (timeZone == null) return null;
|
||||||
|
if (timeZone == "") return TimeZoneInfo.Local;
|
||||||
|
return TimeZoneInfo.CreateCustomTimeZone("Custom", TimeSpan.Parse(timeZone, CultureInfo.InvariantCulture), null, null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -39,18 +39,15 @@ namespace Cryville.EEW.Unity.UI {
|
|||||||
SetText(m_locationView, location.Value, location.Culture);
|
SetText(m_locationView, location.Value, location.Culture);
|
||||||
SetText(m_predicateView, predicate.Value, predicate.Culture);
|
SetText(m_predicateView, predicate.Value, predicate.Culture);
|
||||||
if (time.Value is DateTime ttime) {
|
if (time.Value is DateTime ttime) {
|
||||||
// TODO
|
if (SharedSettings.Instance.OverrideTimeZone is TimeZoneInfo tTimeZone)
|
||||||
//if (SharedSettings.Instance.OverrideTimeZone is TimeZoneInfo tTimeZone)
|
ttime = TimeZoneInfo.ConvertTime(ttime, timeZone, tTimeZone);
|
||||||
// ttime = TimeZoneInfo.ConvertTime(ttime, timeZone, tTimeZone);
|
else
|
||||||
//else
|
tTimeZone = timeZone;
|
||||||
// tTimeZone = timeZone;
|
|
||||||
TimeZoneInfo tTimeZone = timeZone;
|
|
||||||
if (UseShortTimeFormat) {
|
if (UseShortTimeFormat) {
|
||||||
SetText(m_timeView, ttime.ToString("G", time.Culture), time.Culture);
|
SetText(m_timeView, ttime.ToString("G", time.Culture), time.Culture);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// TODO SetText(m_timeView, SharedSettings.Instance.DoDisplayTimeZone ? string.Format(time.Culture, "{0:G} ({1})", ttime, tTimeZone.ToTimeZoneString()) : ttime.ToString(time.Culture), time.Culture);
|
SetText(m_timeView, SharedSettings.Instance.DoDisplayTimeZone ? string.Format(time.Culture, "{0:G} ({1})", ttime, tTimeZone.ToTimeZoneString()) : ttime.ToString(time.Culture), time.Culture);
|
||||||
SetText(m_timeView, string.Format(time.Culture, "{0:G} ({1})", ttime, tTimeZone.ToTimeZoneString()), time.Culture);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@@ -1,11 +1,19 @@
|
|||||||
|
using Cryville.Common.Unity.UI;
|
||||||
using Cryville.EEW.Core;
|
using Cryville.EEW.Core;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace Cryville.EEW.Unity.UI {
|
namespace Cryville.EEW.Unity.UI {
|
||||||
|
[RequireComponent(typeof(RecyclerView))]
|
||||||
class EventGroupListView : MonoBehaviour {
|
class EventGroupListView : MonoBehaviour {
|
||||||
[SerializeField]
|
RecyclerView _recyclerView;
|
||||||
EventGroupView m_prefabEventGroupView;
|
void Awake() {
|
||||||
|
_recyclerView = GetComponent<RecyclerView>();
|
||||||
|
_recyclerView.LoadItem = LoadItem;
|
||||||
|
}
|
||||||
|
void LoadItem(int index, GameObject gameObject) {
|
||||||
|
gameObject.GetComponent<EventGroupView>().Set(_groups[^(index + 1)]);
|
||||||
|
}
|
||||||
|
|
||||||
readonly List<ReportGroup> _groups = new();
|
readonly List<ReportGroup> _groups = new();
|
||||||
public void UpdateGroup(ReportGroup e) {
|
public void UpdateGroup(ReportGroup e) {
|
||||||
@@ -17,19 +25,16 @@ namespace Cryville.EEW.Unity.UI {
|
|||||||
}
|
}
|
||||||
void Add(ReportGroup group) {
|
void Add(ReportGroup group) {
|
||||||
_groups.Add(group);
|
_groups.Add(group);
|
||||||
var child = Instantiate(m_prefabEventGroupView);
|
_recyclerView.ItemCount++;
|
||||||
child.Set(group);
|
_recyclerView.InvalidateAll();
|
||||||
child.transform.SetParent(transform, false);
|
|
||||||
child.transform.SetSiblingIndex(0);
|
|
||||||
}
|
}
|
||||||
void Remove(ReportGroup group) {
|
void Remove(ReportGroup group) {
|
||||||
int index = _groups.LastIndexOf(group);
|
int index = _groups.LastIndexOf(group);
|
||||||
if (index == -1) return;
|
if (index == -1) return;
|
||||||
_groups.RemoveAt(index);
|
_groups.RemoveAt(index);
|
||||||
|
|
||||||
var child = transform.GetChild(_groups.Count - index);
|
--_recyclerView.ItemCount;
|
||||||
child.SetParent(null, false);
|
_recyclerView.InvalidateAll();
|
||||||
Destroy(child.gameObject);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -16,6 +16,8 @@ namespace Cryville.EEW.Unity.UI {
|
|||||||
readonly List<ReportViewModel> _displayingReports = new();
|
readonly List<ReportViewModel> _displayingReports = new();
|
||||||
readonly List<EventOngoingView> _displayingViews = new();
|
readonly List<EventOngoingView> _displayingViews = new();
|
||||||
|
|
||||||
|
public int Count => _displayingReports.Count;
|
||||||
|
|
||||||
public void Add(ReportViewModel e) {
|
public void Add(ReportViewModel e) {
|
||||||
_displayingReports.Add(e);
|
_displayingReports.Add(e);
|
||||||
|
|
||||||
|
@@ -8,7 +8,6 @@ namespace Cryville.EEW.Unity.UI {
|
|||||||
|
|
||||||
public void Set(ReportGroup group) {
|
public void Set(ReportGroup group) {
|
||||||
foreach (Transform child in transform) {
|
foreach (Transform child in transform) {
|
||||||
child.SetParent(null, false);
|
|
||||||
Destroy(child.gameObject);
|
Destroy(child.gameObject);
|
||||||
}
|
}
|
||||||
foreach (var unit in group) {
|
foreach (var unit in group) {
|
||||||
|
@@ -13,7 +13,13 @@ namespace Cryville.EEW.Unity.UI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Update() {
|
void Update() {
|
||||||
_textView.text = string.Format(CultureInfo.CurrentCulture, "{0:G} ({1})", DateTime.Now, TimeZoneInfo.Local.ToTimeZoneString());
|
var time = DateTime.Now;
|
||||||
|
var timeZone = TimeZoneInfo.Local;
|
||||||
|
if (SharedSettings.Instance.OverrideTimeZone is TimeZoneInfo tTimeZone)
|
||||||
|
time = TimeZoneInfo.ConvertTime(time, timeZone, tTimeZone);
|
||||||
|
else
|
||||||
|
tTimeZone = timeZone;
|
||||||
|
_textView.text = SharedSettings.Instance.DoDisplayTimeZone ? string.Format(CultureInfo.CurrentCulture, "{0:G} ({1})", time, tTimeZone.ToTimeZoneString()) : time.ToString(CultureInfo.CurrentCulture);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -15,6 +15,8 @@ using Cryville.EEW.Wolfx;
|
|||||||
using Cryville.EEW.Wolfx.TTS;
|
using Cryville.EEW.Wolfx.TTS;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Concurrent;
|
using System.Collections.Concurrent;
|
||||||
|
using System.Net;
|
||||||
|
using System.Net.Http;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
@@ -27,6 +29,7 @@ namespace Cryville.EEW.Unity {
|
|||||||
[SerializeField] MapElementManager m_mapElementManager;
|
[SerializeField] MapElementManager m_mapElementManager;
|
||||||
[SerializeField] EventOngoingListView m_ongoingEventList;
|
[SerializeField] EventOngoingListView m_ongoingEventList;
|
||||||
[SerializeField] EventGroupListView m_historyEventGroupList;
|
[SerializeField] EventGroupListView m_historyEventGroupList;
|
||||||
|
[SerializeField] GameObject m_connectingHint;
|
||||||
|
|
||||||
GroupingCoreWorker _worker;
|
GroupingCoreWorker _worker;
|
||||||
CancellationTokenSource _cancellationTokenSource;
|
CancellationTokenSource _cancellationTokenSource;
|
||||||
@@ -55,8 +58,17 @@ namespace Cryville.EEW.Unity {
|
|||||||
_worker.Reported += OnReported;
|
_worker.Reported += OnReported;
|
||||||
_worker.GroupUpdated += OnGroupUpdated;
|
_worker.GroupUpdated += OnGroupUpdated;
|
||||||
_worker.GroupRemoved += OnGroupRemoved;
|
_worker.GroupRemoved += OnGroupRemoved;
|
||||||
|
Task.Run(() => GatewayVerify(_cancellationTokenSource.Token)).ContinueWith(task => {
|
||||||
|
if (task.IsFaulted) {
|
||||||
|
OnReported(this, new() { Title = task.Exception.Message });
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
_verified = true;
|
||||||
|
_uiActionQueue.Enqueue(() => m_connectingHint.SetActive(false));
|
||||||
|
Task.Run(() => ScheduledGatewayVerify(_cancellationTokenSource, _cancellationTokenSource.Token));
|
||||||
Task.Run(() => _worker.RunAsync(_cancellationTokenSource.Token));
|
Task.Run(() => _worker.RunAsync(_cancellationTokenSource.Token));
|
||||||
Task.Run(() => _ongoingReportManager.RunAsync(_cancellationTokenSource.Token));
|
Task.Run(() => _ongoingReportManager.RunAsync(_cancellationTokenSource.Token));
|
||||||
|
}, TaskScheduler.Current);
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnDestroy() {
|
void OnDestroy() {
|
||||||
@@ -92,48 +104,91 @@ namespace Cryville.EEW.Unity {
|
|||||||
worker.RegisterTTSMessageGenerator(new SichuanEEWTTSMessageGenerator());
|
worker.RegisterTTSMessageGenerator(new SichuanEEWTTSMessageGenerator());
|
||||||
}
|
}
|
||||||
|
|
||||||
WolfxWorker _wolfxWorker;
|
bool _verified;
|
||||||
JMAAtomWorker _jmaWorker;
|
|
||||||
CWAReportWorker<Tsunami> _cwa14Worker;
|
|
||||||
CWAReportWorker<Earthquake> _cwa15Worker;
|
|
||||||
CWAReportWorker<Earthquake> _cwa16Worker;
|
|
||||||
GlobalQuakeWorker _gqWorker;
|
|
||||||
NOAAAtomWorker _ntwcWorker;
|
|
||||||
NOAAAtomWorker _ptwcWorker;
|
|
||||||
UpdateCheckerWorker _updateChecker;
|
|
||||||
void BuildWorkers() {
|
void BuildWorkers() {
|
||||||
#if UNITY_EDITOR
|
#if UNITY_EDITOR
|
||||||
_worker.AddWorker(_wolfxWorker = new WolfxWorker(new Uri("ws://localhost:9995/wolfx")));
|
_worker.AddWorker(new WolfxWorker(new Uri("ws://localhost:9995/wolfx")));
|
||||||
_worker.AddWorker(_jmaWorker = new JMAAtomWorker(new Uri("http://localhost:9095/eqvol.xml")));
|
_worker.AddWorker(new JMAAtomWorker(new Uri("http://localhost:9095/eqvol.xml")));
|
||||||
_worker.AddWorker(_cwa14Worker = new CWAReportWorker<Tsunami>(new Uri("http://localhost:9095/E-A0014-001.json"), "1"));
|
_worker.AddWorker(new CWAReportWorker<Tsunami>(new Uri("http://localhost:9095/E-A0014-001.json"), "1"));
|
||||||
_worker.AddWorker(_cwa15Worker = new CWAReportWorker<Earthquake>(new Uri("http://localhost:9095/E-A0015-001.json"), "1"));
|
_worker.AddWorker(new CWAReportWorker<Earthquake>(new Uri("http://localhost:9095/E-A0015-001.json"), "1"));
|
||||||
_worker.AddWorker(_cwa16Worker = new CWAReportWorker<Earthquake>(new Uri("http://localhost:9095/E-A0016-001.json"), "1"));
|
_worker.AddWorker(new CWAReportWorker<Earthquake>(new Uri("http://localhost:9095/E-A0016-001.json"), "1"));
|
||||||
_worker.AddWorker(_ntwcWorker = new NOAAAtomWorker(new("http://localhost:9095/PAAQAtom.xml")));
|
_worker.AddWorker(new NOAAAtomWorker(new("http://localhost:9095/PAAQAtom.xml")));
|
||||||
// _worker.AddWorker(_gqWorker = new GlobalQuakeWorker("localhost", 38000));
|
_worker.AddWorker(new UpdateCheckerWorker(typeof(Worker).Assembly.GetName().Version?.ToString(3) ?? "", "unity"));
|
||||||
#else
|
#else
|
||||||
// TODO
|
foreach (var source in SharedSettings.Instance.EventSources) {
|
||||||
#endif
|
_worker.AddWorker(source switch {
|
||||||
if (_updateChecker == null) _worker.AddWorker(_updateChecker = new(typeof(Worker).Assembly.GetName().Version?.ToString(3) ?? "", "unity"));
|
CWAOpenDataEventSourceConfig cwaOpenData => cwaOpenData.Subtype switch {
|
||||||
|
"E-A0014-001" => new CWAReportWorker<Tsunami>(new Uri("https://opendata.cwa.gov.tw/api/v1/rest/datastore/E-A0014-001"), cwaOpenData.Token, 1440, 17280),
|
||||||
|
"E-A0015-001" => new CWAReportWorker<Earthquake>(new Uri("https://opendata.cwa.gov.tw/api/v1/rest/datastore/E-A0015-001"), cwaOpenData.Token),
|
||||||
|
"E-A0016-001" => new CWAReportWorker<Earthquake>(new Uri("https://opendata.cwa.gov.tw/api/v1/rest/datastore/E-A0016-001"), cwaOpenData.Token),
|
||||||
|
_ => throw new InvalidOperationException("Unknown CWA open data sub-type."),
|
||||||
|
},
|
||||||
|
GlobalQuakeServer15EventSourceConfig gq => new GlobalQuakeWorker15(gq.Host, gq.Port),
|
||||||
|
GlobalQuakeServerEventSourceConfig gq => new GlobalQuakeWorker(gq.Host, gq.Port),
|
||||||
|
JMAAtomEventSourceConfig jmaAtom => BuildJMAAtomWorkerFilter(new JMAAtomWorker(new("https://www.data.jma.go.jp/developer/xml/feed/eqvol.xml")), jmaAtom),
|
||||||
|
NOAAEventSourceConfig noaaAtom => noaaAtom.Subtype switch {
|
||||||
|
"PAAQ" => new NOAAAtomWorker(new("https://www.tsunami.gov/events/xml/PAAQAtom.xml"), new("https://www.tsunami.gov/"), new("/php/esri.php?e=t", UriKind.Relative), "PAAQ"),
|
||||||
|
"PHEB" => new NOAAAtomWorker(new("https://www.tsunami.gov/events/xml/PHEBAtom.xml"), new("https://www.tsunami.gov/"), new("/php/esri.php?e=t", UriKind.Relative), "PHEB"),
|
||||||
|
_ => throw new InvalidOperationException("Unknown NOAA sub-type."),
|
||||||
|
},
|
||||||
|
UpdateCheckerEventSourceConfig => new UpdateCheckerWorker(typeof(Worker).Assembly.GetName().Version?.ToString(3) ?? "", "unity"),
|
||||||
|
WolfxEventSourceConfig wolfx => BuildWolfxWorkerFilter(new WolfxWorker(new Uri("wss://ws-api.wolfx.jp/all_eew")), wolfx),
|
||||||
|
_ => throw new InvalidOperationException("Unknown event source type."),
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
#if !UNITY_EDITOR
|
||||||
|
JMAAtomWorker BuildJMAAtomWorkerFilter(JMAAtomWorker worker, JMAAtomEventSourceConfig config) {
|
||||||
|
if (config.Filter != null) worker.SetFilter(config.Filter);
|
||||||
|
worker.IsFilterWhitelist = config.IsFilterWhitelist;
|
||||||
|
return worker;
|
||||||
|
}
|
||||||
|
WolfxWorker BuildWolfxWorkerFilter(WolfxWorker worker, WolfxEventSourceConfig config) {
|
||||||
|
if (config.Filter != null) worker.SetFilter(config.Filter.Select(i => i switch {
|
||||||
|
"cenc_eew" => typeof(CENCEEW),
|
||||||
|
"cenc_eqlist" => typeof(WolfxEarthquakeList<CENCEarthquake>),
|
||||||
|
"cwa_eew" => typeof(CWAEEW),
|
||||||
|
"fj_eew" => typeof(FujianEEW),
|
||||||
|
"jma_eew" => typeof(JMAEEW),
|
||||||
|
"sc_eew" => typeof(SichuanEEW),
|
||||||
|
_ => throw new InvalidOperationException("Unknown Wolfx event type."),
|
||||||
|
}));
|
||||||
|
worker.IsFilterWhitelist = config.IsFilterWhitelist;
|
||||||
|
return worker;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
readonly OngoingReportManager _ongoingReportManager = new();
|
readonly OngoingReportManager _ongoingReportManager = new();
|
||||||
readonly ConcurrentQueue<Action> _uiActionQueue = new();
|
readonly ConcurrentQueue<Action> _uiActionQueue = new();
|
||||||
|
ReportViewModel _latestHistoryReport;
|
||||||
void OnReported(object sender, ReportViewModel e) {
|
void OnReported(object sender, ReportViewModel e) {
|
||||||
Debug.Log(e);
|
Debug.Log(e);
|
||||||
_ongoingReportManager.Report(e);
|
_ongoingReportManager.Report(e);
|
||||||
_uiActionQueue.Enqueue(() => m_mapElementManager.SetSelected(e));
|
_uiActionQueue.Enqueue(() => {
|
||||||
|
m_mapElementManager.SetSelected(e);
|
||||||
|
if (e.InvalidatedTime == null && (!(e.RevisionKey?.IsCancellation ?? false))) {
|
||||||
|
_latestHistoryReport = e;
|
||||||
|
}
|
||||||
|
m_cameraController.OnMapElementUpdated();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
void OnOngoingReported(ReportViewModel item, CollectionChangeAction action) {
|
void OnOngoingReported(ReportViewModel item, CollectionChangeAction action) {
|
||||||
if (action == CollectionChangeAction.Add) {
|
if (action == CollectionChangeAction.Add) {
|
||||||
_uiActionQueue.Enqueue(() => {
|
_uiActionQueue.Enqueue(() => {
|
||||||
m_mapElementManager.AddOngoing(item);
|
m_mapElementManager.AddOngoing(item);
|
||||||
m_ongoingEventList.Add(item);
|
m_ongoingEventList.Add(item);
|
||||||
|
m_cameraController.OnMapElementUpdated();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else if (action == CollectionChangeAction.Remove) {
|
else if (action == CollectionChangeAction.Remove) {
|
||||||
_uiActionQueue.Enqueue(() => {
|
_uiActionQueue.Enqueue(() => {
|
||||||
m_mapElementManager.RemoveOngoing(item);
|
m_mapElementManager.RemoveOngoing(item);
|
||||||
m_ongoingEventList.Remove(item);
|
m_ongoingEventList.Remove(item);
|
||||||
|
if (m_ongoingEventList.Count == 0 && SharedSettings.Instance.DoSwitchBackToHistory && _latestHistoryReport is not null) {
|
||||||
|
m_mapElementManager.SetSelected(_latestHistoryReport);
|
||||||
|
}
|
||||||
|
m_cameraController.OnMapElementUpdated();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -155,8 +210,50 @@ namespace Cryville.EEW.Unity {
|
|||||||
void Update() {
|
void Update() {
|
||||||
while (_uiActionQueue.TryDequeue(out var action)) {
|
while (_uiActionQueue.TryDequeue(out var action)) {
|
||||||
action();
|
action();
|
||||||
m_cameraController.OnMapElementUpdated();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async Task ScheduledGatewayVerify(CancellationTokenSource source, CancellationToken cancellationToken) {
|
||||||
|
Exception lastEx = null;
|
||||||
|
for (int i = 0; i < 8; i++) {
|
||||||
|
await Task.Delay(TimeSpan.FromHours(3), cancellationToken).ConfigureAwait(true);
|
||||||
|
try {
|
||||||
|
await GatewayVerify(cancellationToken).ConfigureAwait(true);
|
||||||
|
i = -1;
|
||||||
|
}
|
||||||
|
catch (HttpRequestException ex) {
|
||||||
|
lastEx = ex;
|
||||||
|
}
|
||||||
|
catch (WebException ex) {
|
||||||
|
lastEx = ex;
|
||||||
|
}
|
||||||
|
catch (InvalidOperationException ex) {
|
||||||
|
lastEx = ex;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (lastEx != null) {
|
||||||
|
OnReported(this, new() { Title = lastEx.Message });
|
||||||
|
_verified = false;
|
||||||
|
}
|
||||||
|
source.Cancel();
|
||||||
|
}
|
||||||
|
#if UNITY_EDITOR
|
||||||
|
#pragma warning disable CS1998
|
||||||
|
#endif
|
||||||
|
static async Task GatewayVerify(CancellationToken cancellationToken) {
|
||||||
|
#if !UNITY_EDITOR
|
||||||
|
using var client = new HttpClient();
|
||||||
|
client.DefaultRequestHeaders.UserAgent.ParseAdd(SharedSettings.Instance.UnityUserAgent);
|
||||||
|
using var response = await client.GetAsync(new Uri("https://gateway.cryville.world/?rin=" + SharedSettings.Instance.Id), cancellationToken).ConfigureAwait(true);
|
||||||
|
if (response.StatusCode is >= ((HttpStatusCode)400) and < ((HttpStatusCode)500)) {
|
||||||
|
throw new InvalidOperationException(response.ReasonPhrase);
|
||||||
|
}
|
||||||
|
response.EnsureSuccessStatusCode();
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
#if UNITY_EDITOR
|
||||||
|
#pragma warning restore CS1998
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -149,16 +149,16 @@ RectTransform:
|
|||||||
m_PrefabInstance: {fileID: 0}
|
m_PrefabInstance: {fileID: 0}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 123805240}
|
m_GameObject: {fileID: 123805240}
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_ConstrainProportionsScale: 0
|
m_ConstrainProportionsScale: 0
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 1431650511}
|
m_Father: {fileID: 408286581}
|
||||||
m_RootOrder: 2
|
m_RootOrder: 0
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0, y: 0}
|
m_AnchorMin: {x: 0, y: 0}
|
||||||
m_AnchorMax: {x: 0.75, y: 0}
|
m_AnchorMax: {x: 1, y: 0}
|
||||||
m_AnchoredPosition: {x: 0, y: 0}
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
m_SizeDelta: {x: 0, y: 0}
|
m_SizeDelta: {x: 0, y: 0}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
@@ -468,9 +468,8 @@ GameObject:
|
|||||||
serializedVersion: 6
|
serializedVersion: 6
|
||||||
m_Component:
|
m_Component:
|
||||||
- component: {fileID: 249202787}
|
- component: {fileID: 249202787}
|
||||||
- component: {fileID: 249202790}
|
- component: {fileID: 249202789}
|
||||||
- component: {fileID: 249202791}
|
- component: {fileID: 249202788}
|
||||||
- component: {fileID: 249202792}
|
|
||||||
m_Layer: 5
|
m_Layer: 5
|
||||||
m_Name: _content
|
m_Name: _content
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
@@ -493,52 +492,12 @@ RectTransform:
|
|||||||
m_Father: {fileID: 800505390}
|
m_Father: {fileID: 800505390}
|
||||||
m_RootOrder: 0
|
m_RootOrder: 0
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0, y: 0}
|
m_AnchorMin: {x: 0, y: 1}
|
||||||
m_AnchorMax: {x: 1, y: 1}
|
m_AnchorMax: {x: 1, y: 1}
|
||||||
m_AnchoredPosition: {x: 0, y: 0}
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
m_SizeDelta: {x: 0, y: 0}
|
m_SizeDelta: {x: 0, y: 0}
|
||||||
m_Pivot: {x: 0.5, y: 1}
|
m_Pivot: {x: 0.5, y: 1}
|
||||||
--- !u!114 &249202790
|
--- !u!114 &249202788
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 249202786}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 59f8146938fff824cb5fd77236b75775, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
m_Padding:
|
|
||||||
m_Left: 6
|
|
||||||
m_Right: 6
|
|
||||||
m_Top: 6
|
|
||||||
m_Bottom: 6
|
|
||||||
m_ChildAlignment: 0
|
|
||||||
m_Spacing: 8
|
|
||||||
m_ChildForceExpandWidth: 1
|
|
||||||
m_ChildForceExpandHeight: 0
|
|
||||||
m_ChildControlWidth: 1
|
|
||||||
m_ChildControlHeight: 1
|
|
||||||
m_ChildScaleWidth: 0
|
|
||||||
m_ChildScaleHeight: 1
|
|
||||||
m_ReverseArrangement: 0
|
|
||||||
--- !u!114 &249202791
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 249202786}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
m_HorizontalFit: 0
|
|
||||||
m_VerticalFit: 2
|
|
||||||
--- !u!114 &249202792
|
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
@@ -550,7 +509,27 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: 2426bd244f51fed429d955beee52e91d, type: 3}
|
m_Script: {fileID: 11500000, guid: 2426bd244f51fed429d955beee52e91d, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
m_prefabEventGroupView: {fileID: 1040273476696300640, guid: 5d21267de716a844c92260bad4d20b0a, type: 3}
|
--- !u!114 &249202789
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 249202786}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 1257c1f4490f1d64bb8fc52a9abed1ae, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_itemTemplate: {fileID: 5834406092508179350, guid: 5d21267de716a844c92260bad4d20b0a, type: 3}
|
||||||
|
m_direction: 1
|
||||||
|
m_padding:
|
||||||
|
m_Left: 6
|
||||||
|
m_Right: 6
|
||||||
|
m_Top: 6
|
||||||
|
m_Bottom: 6
|
||||||
|
m_spacing: 6
|
||||||
|
m_itemCount: 0
|
||||||
--- !u!1 &303098820
|
--- !u!1 &303098820
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -634,7 +613,7 @@ Camera:
|
|||||||
m_Enabled: 1
|
m_Enabled: 1
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
m_ClearFlags: 2
|
m_ClearFlags: 2
|
||||||
m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0}
|
m_BackGroundColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
|
||||||
m_projectionMatrixMode: 1
|
m_projectionMatrixMode: 1
|
||||||
m_GateFitMode: 2
|
m_GateFitMode: 2
|
||||||
m_FOVAxisMode: 0
|
m_FOVAxisMode: 0
|
||||||
@@ -698,6 +677,44 @@ MonoBehaviour:
|
|||||||
m_layerElement: {fileID: 1602500234}
|
m_layerElement: {fileID: 1602500234}
|
||||||
m_layerElementSub: {fileID: 303098821}
|
m_layerElementSub: {fileID: 303098821}
|
||||||
m_prefabTile: {fileID: 7683017549812261837, guid: e090edd328c6750478f5849a43a9d278, type: 3}
|
m_prefabTile: {fileID: 7683017549812261837, guid: e090edd328c6750478f5849a43a9d278, type: 3}
|
||||||
|
--- !u!1 &408286580
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 408286581}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: Overlay
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &408286581
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 408286580}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 123805241}
|
||||||
|
- {fileID: 1925427751}
|
||||||
|
m_Father: {fileID: 1431650511}
|
||||||
|
m_RootOrder: 2
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0, y: 0}
|
||||||
|
m_AnchorMax: {x: 0.75, y: 1}
|
||||||
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
|
m_SizeDelta: {x: 0, y: 0}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!1 &719162186
|
--- !u!1 &719162186
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -947,7 +964,8 @@ MonoBehaviour:
|
|||||||
m_cameraController: {fileID: 376792590}
|
m_cameraController: {fileID: 376792590}
|
||||||
m_mapElementManager: {fileID: 1602500234}
|
m_mapElementManager: {fileID: 1602500234}
|
||||||
m_ongoingEventList: {fileID: 719162189}
|
m_ongoingEventList: {fileID: 719162189}
|
||||||
m_historyEventGroupList: {fileID: 249202792}
|
m_historyEventGroupList: {fileID: 249202788}
|
||||||
|
m_connectingHint: {fileID: 1925427750}
|
||||||
--- !u!1 &1349222218
|
--- !u!1 &1349222218
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -959,7 +977,7 @@ GameObject:
|
|||||||
- component: {fileID: 1349222219}
|
- component: {fileID: 1349222219}
|
||||||
- component: {fileID: 1349222222}
|
- component: {fileID: 1349222222}
|
||||||
- component: {fileID: 1349222221}
|
- component: {fileID: 1349222221}
|
||||||
- component: {fileID: 1349222220}
|
- component: {fileID: 1349222223}
|
||||||
m_Layer: 5
|
m_Layer: 5
|
||||||
m_Name: History Panel
|
m_Name: History Panel
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
@@ -988,36 +1006,6 @@ RectTransform:
|
|||||||
m_AnchoredPosition: {x: 0, y: 0}
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
m_SizeDelta: {x: 0, y: 0}
|
m_SizeDelta: {x: 0, y: 0}
|
||||||
m_Pivot: {x: 1, y: 0.5}
|
m_Pivot: {x: 1, y: 0.5}
|
||||||
--- !u!114 &1349222220
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1349222218}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 1aa08ab6e0800fa44ae55d278d1423e3, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
m_Content: {fileID: 249202787}
|
|
||||||
m_Horizontal: 0
|
|
||||||
m_Vertical: 1
|
|
||||||
m_MovementType: 1
|
|
||||||
m_Elasticity: 0.1
|
|
||||||
m_Inertia: 1
|
|
||||||
m_DecelerationRate: 0.135
|
|
||||||
m_ScrollSensitivity: 32
|
|
||||||
m_Viewport: {fileID: 800505390}
|
|
||||||
m_HorizontalScrollbar: {fileID: 0}
|
|
||||||
m_VerticalScrollbar: {fileID: 0}
|
|
||||||
m_HorizontalScrollbarVisibility: 0
|
|
||||||
m_VerticalScrollbarVisibility: 0
|
|
||||||
m_HorizontalScrollbarSpacing: 0
|
|
||||||
m_VerticalScrollbarSpacing: 0
|
|
||||||
m_OnValueChanged:
|
|
||||||
m_PersistentCalls:
|
|
||||||
m_Calls: []
|
|
||||||
--- !u!114 &1349222221
|
--- !u!114 &1349222221
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -1056,6 +1044,36 @@ CanvasRenderer:
|
|||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 1349222218}
|
m_GameObject: {fileID: 1349222218}
|
||||||
m_CullTransparentMesh: 1
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!114 &1349222223
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1349222218}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 1aa08ab6e0800fa44ae55d278d1423e3, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Content: {fileID: 249202787}
|
||||||
|
m_Horizontal: 0
|
||||||
|
m_Vertical: 1
|
||||||
|
m_MovementType: 1
|
||||||
|
m_Elasticity: 0.1
|
||||||
|
m_Inertia: 1
|
||||||
|
m_DecelerationRate: 0.135
|
||||||
|
m_ScrollSensitivity: 32
|
||||||
|
m_Viewport: {fileID: 800505390}
|
||||||
|
m_HorizontalScrollbar: {fileID: 0}
|
||||||
|
m_VerticalScrollbar: {fileID: 0}
|
||||||
|
m_HorizontalScrollbarVisibility: 0
|
||||||
|
m_VerticalScrollbarVisibility: 0
|
||||||
|
m_HorizontalScrollbarSpacing: 0
|
||||||
|
m_VerticalScrollbarSpacing: 0
|
||||||
|
m_OnValueChanged:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
--- !u!1 &1412061071
|
--- !u!1 &1412061071
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -1181,7 +1199,7 @@ RectTransform:
|
|||||||
m_Children:
|
m_Children:
|
||||||
- {fileID: 719162187}
|
- {fileID: 719162187}
|
||||||
- {fileID: 1349222219}
|
- {fileID: 1349222219}
|
||||||
- {fileID: 123805241}
|
- {fileID: 408286581}
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_RootOrder: 5
|
m_RootOrder: 5
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
@@ -1313,6 +1331,141 @@ Transform:
|
|||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_RootOrder: 6
|
m_RootOrder: 6
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!1 &1925427750
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 1925427751}
|
||||||
|
- component: {fileID: 1925427754}
|
||||||
|
- component: {fileID: 1925427753}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: Connecting
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &1925427751
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1925427750}
|
||||||
|
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 408286581}
|
||||||
|
m_RootOrder: 1
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0, y: 0}
|
||||||
|
m_AnchorMax: {x: 1, y: 1}
|
||||||
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
|
m_SizeDelta: {x: 1180, y: 620}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!114 &1925427753
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1925427750}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 83e7715acbfae1d4b84414c13d03ed3f, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_RaycastTarget: 0
|
||||||
|
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
m_Maskable: 1
|
||||||
|
m_OnCullStateChanged:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_text: Connecting...
|
||||||
|
m_isRightToLeft: 0
|
||||||
|
m_fontAsset: {fileID: 11400000, guid: 2b12354fb2d86744887c3e4bfee63986, type: 2}
|
||||||
|
m_sharedMaterial: {fileID: -3021868053195457599, guid: 2b12354fb2d86744887c3e4bfee63986, type: 2}
|
||||||
|
m_fontSharedMaterials: []
|
||||||
|
m_fontMaterial: {fileID: 0}
|
||||||
|
m_fontMaterials: []
|
||||||
|
m_fontColor32:
|
||||||
|
serializedVersion: 2
|
||||||
|
rgba: 4279769379
|
||||||
|
m_fontColor: {r: 0.13725491, g: 0.09803922, b: 0.09411765, a: 1}
|
||||||
|
m_enableVertexGradient: 0
|
||||||
|
m_colorMode: 3
|
||||||
|
m_fontColorGradient:
|
||||||
|
topLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
topRight: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
bottomRight: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_fontColorGradientPreset: {fileID: 0}
|
||||||
|
m_spriteAsset: {fileID: 0}
|
||||||
|
m_tintAllSprites: 0
|
||||||
|
m_StyleSheet: {fileID: 0}
|
||||||
|
m_TextStyleHashCode: -1183493901
|
||||||
|
m_overrideHtmlColors: 0
|
||||||
|
m_faceColor:
|
||||||
|
serializedVersion: 2
|
||||||
|
rgba: 4294967295
|
||||||
|
m_fontSize: 20
|
||||||
|
m_fontSizeBase: 20
|
||||||
|
m_fontWeight: 400
|
||||||
|
m_enableAutoSizing: 0
|
||||||
|
m_fontSizeMin: 0
|
||||||
|
m_fontSizeMax: 0
|
||||||
|
m_fontStyle: 0
|
||||||
|
m_HorizontalAlignment: 2
|
||||||
|
m_VerticalAlignment: 512
|
||||||
|
m_textAlignment: 65535
|
||||||
|
m_characterSpacing: 0
|
||||||
|
m_wordSpacing: 0
|
||||||
|
m_lineSpacing: 0
|
||||||
|
m_lineSpacingMax: 0
|
||||||
|
m_paragraphSpacing: 0
|
||||||
|
m_charWidthMaxAdj: 0
|
||||||
|
m_TextWrappingMode: 1
|
||||||
|
m_wordWrappingRatios: 0.4
|
||||||
|
m_overflowMode: 0
|
||||||
|
m_linkedTextComponent: {fileID: 0}
|
||||||
|
parentLinkedComponent: {fileID: 0}
|
||||||
|
m_enableKerning: 1
|
||||||
|
m_enableExtraPadding: 0
|
||||||
|
checkPaddingRequired: 0
|
||||||
|
m_isRichText: 1
|
||||||
|
m_parseCtrlCharacters: 0
|
||||||
|
m_isOrthographic: 1
|
||||||
|
m_isCullingEnabled: 0
|
||||||
|
m_horizontalMapping: 0
|
||||||
|
m_verticalMapping: 0
|
||||||
|
m_uvLineOffset: 0
|
||||||
|
m_geometrySortingOrder: 0
|
||||||
|
m_IsTextObjectScaleStatic: 0
|
||||||
|
m_VertexBufferAutoSizeReduction: 0
|
||||||
|
m_useMaxVisibleDescender: 1
|
||||||
|
m_pageToDisplay: 1
|
||||||
|
m_margin: {x: 8, y: 4, z: 8, w: 4}
|
||||||
|
m_isUsingLegacyAnimationComponent: 0
|
||||||
|
m_isVolumetricText: 0
|
||||||
|
m_hasFontAssetChanged: 0
|
||||||
|
m_baseMaterial: {fileID: 0}
|
||||||
|
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
--- !u!222 &1925427754
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1925427750}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
--- !u!114 &79416137231161493
|
--- !u!114 &79416137231161493
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
8
Assets/Plugins/Analyzers.meta
Normal file
8
Assets/Plugins/Analyzers.meta
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 6430b56ba6977f04291fbf3b0a464655
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
BIN
Assets/Plugins/Analyzers/System.Text.Json.SourceGeneration.dll
Normal file
BIN
Assets/Plugins/Analyzers/System.Text.Json.SourceGeneration.dll
Normal file
Binary file not shown.
@@ -0,0 +1,78 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 15569127b9ff7604198a55092602f59a
|
||||||
|
labels:
|
||||||
|
- RoslynAnalyzer
|
||||||
|
PluginImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
iconMap: {}
|
||||||
|
executionOrder: {}
|
||||||
|
defineConstraints: []
|
||||||
|
isPreloaded: 0
|
||||||
|
isOverridable: 0
|
||||||
|
isExplicitlyReferenced: 0
|
||||||
|
validateReferences: 1
|
||||||
|
platformData:
|
||||||
|
- first:
|
||||||
|
: Any
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings:
|
||||||
|
Exclude Android: 1
|
||||||
|
Exclude Editor: 1
|
||||||
|
Exclude Linux64: 1
|
||||||
|
Exclude OSXUniversal: 1
|
||||||
|
Exclude Win: 1
|
||||||
|
Exclude Win64: 1
|
||||||
|
- first:
|
||||||
|
Android: Android
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings:
|
||||||
|
CPU: ARMv7
|
||||||
|
- first:
|
||||||
|
Any:
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings: {}
|
||||||
|
- first:
|
||||||
|
Editor: Editor
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings:
|
||||||
|
CPU: AnyCPU
|
||||||
|
DefaultValueInitialized: true
|
||||||
|
OS: AnyOS
|
||||||
|
- first:
|
||||||
|
Standalone: Linux64
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings:
|
||||||
|
CPU: None
|
||||||
|
- first:
|
||||||
|
Standalone: OSXUniversal
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings:
|
||||||
|
CPU: None
|
||||||
|
- first:
|
||||||
|
Standalone: Win
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings:
|
||||||
|
CPU: None
|
||||||
|
- first:
|
||||||
|
Standalone: Win64
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings:
|
||||||
|
CPU: None
|
||||||
|
- first:
|
||||||
|
Windows Store Apps: WindowsStoreApps
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings:
|
||||||
|
CPU: AnyCPU
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@@ -1271,6 +1271,7 @@ GameObject:
|
|||||||
m_Component:
|
m_Component:
|
||||||
- component: {fileID: 5834406092508179349}
|
- component: {fileID: 5834406092508179349}
|
||||||
- component: {fileID: 5834406092508179348}
|
- component: {fileID: 5834406092508179348}
|
||||||
|
- component: {fileID: 3674434324840772959}
|
||||||
- component: {fileID: 1040273476696300640}
|
- component: {fileID: 1040273476696300640}
|
||||||
m_Layer: 5
|
m_Layer: 5
|
||||||
m_Name: Event Group
|
m_Name: Event Group
|
||||||
@@ -1300,7 +1301,7 @@ RectTransform:
|
|||||||
m_AnchorMin: {x: 0, y: 1}
|
m_AnchorMin: {x: 0, y: 1}
|
||||||
m_AnchorMax: {x: 0, y: 1}
|
m_AnchorMax: {x: 0, y: 1}
|
||||||
m_AnchoredPosition: {x: 0, y: 0}
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
m_SizeDelta: {x: 320, y: 160}
|
m_SizeDelta: {x: 320, y: 0}
|
||||||
m_Pivot: {x: 0, y: 1}
|
m_Pivot: {x: 0, y: 1}
|
||||||
--- !u!114 &5834406092508179348
|
--- !u!114 &5834406092508179348
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
@@ -1328,6 +1329,20 @@ MonoBehaviour:
|
|||||||
m_ChildScaleWidth: 0
|
m_ChildScaleWidth: 0
|
||||||
m_ChildScaleHeight: 0
|
m_ChildScaleHeight: 0
|
||||||
m_ReverseArrangement: 0
|
m_ReverseArrangement: 0
|
||||||
|
--- !u!114 &3674434324840772959
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5834406092508179350}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_HorizontalFit: 0
|
||||||
|
m_VerticalFit: 2
|
||||||
--- !u!114 &1040273476696300640
|
--- !u!114 &1040273476696300640
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
File diff suppressed because one or more lines are too long
BIN
Assets/Sprites/appicon.png
Normal file
BIN
Assets/Sprites/appicon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.3 KiB |
135
Assets/Sprites/appicon.png.meta
Normal file
135
Assets/Sprites/appicon.png.meta
Normal file
@@ -0,0 +1,135 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 419b00c31d31d234d93476f8b2e04653
|
||||||
|
TextureImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 12
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 0
|
||||||
|
sRGBTexture: 1
|
||||||
|
linearTexture: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapsPreserveCoverage: 0
|
||||||
|
alphaTestReferenceValue: 0.5
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
isReadable: 0
|
||||||
|
streamingMipmaps: 0
|
||||||
|
streamingMipmapsPriority: 0
|
||||||
|
vTOnly: 0
|
||||||
|
ignoreMasterTextureLimit: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 6
|
||||||
|
cubemapConvolution: 0
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: 1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
filterMode: 1
|
||||||
|
aniso: 1
|
||||||
|
mipBias: 0
|
||||||
|
wrapU: 1
|
||||||
|
wrapV: 1
|
||||||
|
wrapW: 1
|
||||||
|
nPOTScale: 0
|
||||||
|
lightmap: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
spriteMode: 1
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 0
|
||||||
|
alignment: 0
|
||||||
|
spritePivot: {x: 0.5, y: 0.5}
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
spriteGenerateFallbackPhysicsShape: 0
|
||||||
|
alphaUsage: 1
|
||||||
|
alphaIsTransparency: 1
|
||||||
|
spriteTessellationDetail: -1
|
||||||
|
textureType: 8
|
||||||
|
textureShape: 1
|
||||||
|
singleChannelComponent: 0
|
||||||
|
flipbookRows: 1
|
||||||
|
flipbookColumns: 1
|
||||||
|
maxTextureSizeSet: 0
|
||||||
|
compressionQualitySet: 0
|
||||||
|
textureFormatSet: 0
|
||||||
|
ignorePngGamma: 0
|
||||||
|
applyGammaDecoding: 0
|
||||||
|
cookieLightType: 0
|
||||||
|
platformSettings:
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: DefaultTexturePlatform
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: Standalone
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: Server
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: Android
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
physicsShape: []
|
||||||
|
bones: []
|
||||||
|
spriteID: 5e97eb03825dee720800000000000000
|
||||||
|
internalID: 0
|
||||||
|
vertices: []
|
||||||
|
indices:
|
||||||
|
edges: []
|
||||||
|
weights: []
|
||||||
|
secondaryTextures: []
|
||||||
|
nameFileIdTable: {}
|
||||||
|
spritePackingTag:
|
||||||
|
pSDRemoveMatte: 0
|
||||||
|
pSDShowRemoveMatteOption: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
36
Assets/StreamingAssets/Messages/LICENSE.txt
Normal file
36
Assets/StreamingAssets/Messages/LICENSE.txt
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
# License
|
||||||
|
The following files are licensed under [CC-BY-4.0](https://creativecommons.org/licenses/by/4.0/) © Cryville and translation contributors.
|
||||||
|
|
||||||
|
- Cryville.EEW.Core/*
|
||||||
|
- Cryville.EEW.CWA/*
|
||||||
|
- Cryville.EEW.CWAOpenData/*
|
||||||
|
- Cryville.EEW.CWAOpenData.TTS/*
|
||||||
|
- Cryville.EEW.FERegion/yue.json
|
||||||
|
- Cryville.EEW.FERegion/zh.json
|
||||||
|
- Cryville.EEW.FERegion/zh-Hant.json
|
||||||
|
- Cryville.EEW.GlobalQuake/*
|
||||||
|
- Cryville.EEW.JMA/*
|
||||||
|
- Cryville.EEW.JMA/PointTsunami/en.json
|
||||||
|
- Cryville.EEW.JMA/PointTsunami/yue.json
|
||||||
|
- Cryville.EEW.JMA/PointTsunami/zh.json
|
||||||
|
- Cryville.EEW.JMA/PointTsunami/zh-Hant.json
|
||||||
|
- Cryville.EEW.JMAAtom/*
|
||||||
|
- Cryville.EEW.JMAAtom.TTS/*
|
||||||
|
- Cryville.EEW.NOAA/*
|
||||||
|
- Cryville.EEW.NOAA.TTS/*
|
||||||
|
- Cryville.EEW.UpdateChecker/*
|
||||||
|
- Cryville.EEW.Wolfx/*
|
||||||
|
- Cryville.EEW.Wolfx.TTS/**/*
|
||||||
|
|
||||||
|
The following files are copyrighted by [Japan Meteorological Agency](https://www.jma.go.jp/jma/index.html):
|
||||||
|
|
||||||
|
- Cryville.EEW.FERegion/ja.json (modified)
|
||||||
|
- Cryville.EEW.JMA/AreaEpicenter/* (modified)
|
||||||
|
- Cryville.EEW.JMA/AreaForecastEEW/* (modified)
|
||||||
|
- Cryville.EEW.JMA/AreaTsunami/* (modified)
|
||||||
|
- Cryville.EEW.JMA/PointTsunami/und.json
|
||||||
|
- Cryville.EEW.JMA/PointVolcano/* (modified)
|
||||||
|
|
||||||
|
The following files are from [Wikipedia](https://en.wikipedia.org/wiki/Flinn-Engdahl_regionalization#/map/0), licensed under [CC-BY-SA-4.0](https://creativecommons.org/licenses/by-sa/4.0/deed.en):
|
||||||
|
|
||||||
|
- Cryville.EEW.FERegion/und.json (modified)
|
7
Assets/StreamingAssets/Messages/LICENSE.txt.meta
Normal file
7
Assets/StreamingAssets/Messages/LICENSE.txt.meta
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: b40f6faea5e03b341ac43a4c5e3cda0c
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
1
Assets/StreamingAssets/README.txt
Normal file
1
Assets/StreamingAssets/README.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
Warning: Modifying the files in this directory is NOT SUPPORTED
|
7
Assets/StreamingAssets/README.txt.meta
Normal file
7
Assets/StreamingAssets/README.txt.meta
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 3dba70030f98adf42bfc460e3b812a53
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
28
Assets/StreamingAssets/Sounds/LICENSE.txt
Normal file
28
Assets/StreamingAssets/Sounds/LICENSE.txt
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
# License
|
||||||
|
The following files are licensed under [CC BY-SA 2.0](https://creativecommons.org/licenses/by-sa/2.0/) © kotoho7
|
||||||
|
|
||||||
|
- jp/
|
||||||
|
- eew0.ogg
|
||||||
|
- eew3.ogg
|
||||||
|
- eew5.ogg
|
||||||
|
- eewC.ogg
|
||||||
|
- koushin.ogg
|
||||||
|
- koushinE.ogg
|
||||||
|
|
||||||
|
The following files are licensed under [CC BY-SA 2.0](https://creativecommons.org/licenses/by-sa/2.0/) © kotoho7, [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) © OtoLogic
|
||||||
|
|
||||||
|
- jp/
|
||||||
|
- VTSE5.ogg
|
||||||
|
- VXSE5C.ogg
|
||||||
|
- VXSE51.ogg
|
||||||
|
- VXSE52.ogg
|
||||||
|
- VXSE53.ogg
|
||||||
|
|
||||||
|
The following files are licensed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) © OtoLogic
|
||||||
|
|
||||||
|
- jp/
|
||||||
|
- Emergency_Alert01-1-C.ogg
|
||||||
|
- News-Alert02-2-C.ogg
|
||||||
|
- News-Alert04-1-C.ogg
|
||||||
|
|
||||||
|
All other files in this directory are licensed under [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/) © Cryville
|
7
Assets/StreamingAssets/Sounds/LICENSE.txt.meta
Normal file
7
Assets/StreamingAssets/Sounds/LICENSE.txt.meta
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: cce14345d934e7043b46f8c1f4174941
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@@ -270,7 +270,14 @@ PlayerSettings:
|
|||||||
AndroidMinifyDebug: 0
|
AndroidMinifyDebug: 0
|
||||||
AndroidValidateAppBundleSize: 1
|
AndroidValidateAppBundleSize: 1
|
||||||
AndroidAppBundleSizeToValidate: 150
|
AndroidAppBundleSizeToValidate: 150
|
||||||
m_BuildTargetIcons: []
|
m_BuildTargetIcons:
|
||||||
|
- m_BuildTarget:
|
||||||
|
m_Icons:
|
||||||
|
- serializedVersion: 2
|
||||||
|
m_Icon: {fileID: 2800000, guid: 419b00c31d31d234d93476f8b2e04653, type: 3}
|
||||||
|
m_Width: 128
|
||||||
|
m_Height: 128
|
||||||
|
m_Kind: 0
|
||||||
m_BuildTargetPlatformIcons:
|
m_BuildTargetPlatformIcons:
|
||||||
- m_BuildTarget: Android
|
- m_BuildTarget: Android
|
||||||
m_Icons:
|
m_Icons:
|
||||||
@@ -647,7 +654,7 @@ PlayerSettings:
|
|||||||
allowUnsafeCode: 1
|
allowUnsafeCode: 1
|
||||||
useDeterministicCompilation: 1
|
useDeterministicCompilation: 1
|
||||||
enableRoslynAnalyzers: 1
|
enableRoslynAnalyzers: 1
|
||||||
selectedPlatform: 2
|
selectedPlatform: 0
|
||||||
additionalIl2CppArgs:
|
additionalIl2CppArgs:
|
||||||
scriptingRuntimeVersion: 1
|
scriptingRuntimeVersion: 1
|
||||||
gcIncremental: 1
|
gcIncremental: 1
|
||||||
|
Reference in New Issue
Block a user