Cozy Wather + buld systeme
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9109adbdc873eed4388aa0aba21ef945
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"name": "DistantLands.Cozy.Link.Editor",
|
||||
"rootNamespace": "",
|
||||
"references": [
|
||||
"GUID:5492a51f516277543a92d676903897bf",
|
||||
"GUID:5706c50feecb01b4cb045870dd1a027e",
|
||||
"GUID:d63360ab401c0fe4cb72fc3371d655bb"
|
||||
],
|
||||
"includePlatforms": [
|
||||
"Editor"
|
||||
],
|
||||
"excludePlatforms": [],
|
||||
"allowUnsafeCode": false,
|
||||
"overrideReferences": false,
|
||||
"precompiledReferences": [],
|
||||
"autoReferenced": true,
|
||||
"defineConstraints": [],
|
||||
"versionDefines": [],
|
||||
"noEngineReferences": false
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 577e0b508379ffd4badaa64bb2a4790a
|
||||
AssemblyDefinitionImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 238669
|
||||
packageName: 'COZY: Link - Multiplayer Module'
|
||||
packageVersion: 1.9.1
|
||||
assetPath: Packages/com.distantlands.cozy.link/Editor/DistantLands.Cozy.Link.Editor.asmdef
|
||||
uploadId: 822162
|
||||
@@ -0,0 +1,128 @@
|
||||
using System.Linq;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
|
||||
namespace DistantLands.Cozy.EditorScripts
|
||||
{
|
||||
public class LinkIntegrations : EditorWindow
|
||||
{
|
||||
|
||||
|
||||
// [MenuItem("Tools/Cozy: Stylized Weather 3/Check Link Integrations", false, 1500)]
|
||||
[MenuItem("Window/Cozy: Stylized Weather 3/Check Link Integrations", false, 1021)]
|
||||
public static void Init()
|
||||
{
|
||||
|
||||
LinkIntegrations window = (LinkIntegrations)EditorWindow.GetWindow(typeof(LinkIntegrations), false, "Setup LINK");
|
||||
window.minSize = new Vector2(400, 500);
|
||||
window.Show();
|
||||
|
||||
}
|
||||
|
||||
private void OnGUI()
|
||||
{
|
||||
|
||||
EditorGUILayout.LabelField("LINK Integrations");
|
||||
EditorGUILayout.HelpBox("Thank you for your purchase of LINK: COZY Multiplayer Module! Select your multiplayer solution from the dropdown and allow your scripts to reload to get started.", MessageType.Info);
|
||||
|
||||
string[] integrations = new string[6] { "None", "PUN", "FishNetworking", "Netcode for Gameobjects", "Mirror", "Purrnet" };
|
||||
|
||||
int i = EditorGUILayout.Popup(new GUIContent("Multiplayer Type"), EditorPrefs.GetInt("LINK_Integration"), integrations);
|
||||
EditorGUILayout.Space();
|
||||
|
||||
if (i != EditorPrefs.GetInt("LINK_Integration"))
|
||||
{
|
||||
|
||||
SetupIntegration(i);
|
||||
EditorPrefs.SetInt("LINK_Integration", i);
|
||||
|
||||
}
|
||||
|
||||
EditorGUILayout.HelpBox("Then in a scene setup for multiplayer, setup your scene for COZY and add the LINK module to the COZY weather sphere in the settings/modules tab. If you are using Mirror, be sure to click the Ensure Setup button.", MessageType.Info);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
void SetupIntegration(int integration)
|
||||
{
|
||||
|
||||
switch (integration)
|
||||
{
|
||||
case (0):
|
||||
RemoveDefine("LINK_PUN");
|
||||
RemoveDefine("LINK_FISHNET");
|
||||
RemoveDefine("LINK_NETCODE");
|
||||
RemoveDefine("LINK_MIRROR");
|
||||
RemoveDefine("LINK_PURRNET");
|
||||
break;
|
||||
case (1):
|
||||
AddDefine("LINK_PUN");
|
||||
RemoveDefine("LINK_FISHNET");
|
||||
RemoveDefine("LINK_NETCODE");
|
||||
RemoveDefine("LINK_MIRROR");
|
||||
RemoveDefine("LINK_PURRNET");
|
||||
break;
|
||||
case (2):
|
||||
RemoveDefine("LINK_PUN");
|
||||
AddDefine("LINK_FISHNET");
|
||||
RemoveDefine("LINK_NETCODE");
|
||||
RemoveDefine("LINK_MIRROR");
|
||||
RemoveDefine("LINK_PURRNET");
|
||||
break;
|
||||
case (3):
|
||||
RemoveDefine("LINK_PUN");
|
||||
RemoveDefine("LINK_FISHNET");
|
||||
AddDefine("LINK_NETCODE");
|
||||
RemoveDefine("LINK_MIRROR");
|
||||
RemoveDefine("LINK_PURRNET");
|
||||
break;
|
||||
case (4):
|
||||
RemoveDefine("LINK_PUN");
|
||||
RemoveDefine("LINK_FISHNET");
|
||||
RemoveDefine("LINK_NETCODE");
|
||||
AddDefine("LINK_MIRROR");
|
||||
RemoveDefine("LINK_PURRNET");
|
||||
break;
|
||||
case (5):
|
||||
RemoveDefine("LINK_PUN");
|
||||
RemoveDefine("LINK_FISHNET");
|
||||
RemoveDefine("LINK_NETCODE");
|
||||
RemoveDefine("LINK_MIRROR");
|
||||
AddDefine("LINK_PURRNET");
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
static void AddDefine(string define)
|
||||
{
|
||||
string definesString = PlayerSettings.GetScriptingDefineSymbolsForGroup(EditorUserBuildSettings.selectedBuildTargetGroup);
|
||||
List<string> allDefines = definesString.Split(';').ToList();
|
||||
allDefines.Add(define);
|
||||
PlayerSettings.SetScriptingDefineSymbolsForGroup(
|
||||
EditorUserBuildSettings.selectedBuildTargetGroup,
|
||||
string.Join(";", allDefines.ToArray()));
|
||||
|
||||
|
||||
}
|
||||
|
||||
static void RemoveDefine(string define)
|
||||
{
|
||||
string definesString = PlayerSettings.GetScriptingDefineSymbolsForGroup(EditorUserBuildSettings.selectedBuildTargetGroup);
|
||||
|
||||
List<string> allDefines = definesString.Split(';').ToList();
|
||||
|
||||
if (allDefines.Contains(define))
|
||||
allDefines.Remove(define);
|
||||
|
||||
PlayerSettings.SetScriptingDefineSymbolsForGroup(EditorUserBuildSettings.selectedBuildTargetGroup, string.Join(";", allDefines.ToArray()));
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ca20af13864c5da439bf1c4442331bcb
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 238669
|
||||
packageName: 'COZY: Link - Multiplayer Module'
|
||||
packageVersion: 1.9.1
|
||||
assetPath: Packages/com.distantlands.cozy.link/Editor/LinkIntegrations.cs
|
||||
uploadId: 822162
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e9e197600f96fbb40beb8ec22042768d
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1060b614add0d874e95a4e2a7cea2d91
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 432ec55c92b99a74dad69715565d88e9
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 6.9 KiB |
@@ -0,0 +1,115 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fdb6073190be90646a9b9f991f36c245
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 11
|
||||
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
|
||||
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: 0
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 1
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
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
|
||||
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
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: 5e97eb03825dee720800000000000000
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 238669
|
||||
packageName: 'COZY: Link - Multiplayer Module'
|
||||
packageVersion: 1.9.1
|
||||
assetPath: Packages/com.distantlands.cozy.link/Editor/Resources/Icons/Modules/Link.png
|
||||
uploadId: 822162
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4fcbebc896b635d41b5aaaf1879c1853
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2b34fa850bf91c349ac30cc46c1ce9dd
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,76 @@
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
using UnityEngine.UIElements;
|
||||
using UnityEditor.UIElements;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using DistantLands.Cozy.Data;
|
||||
|
||||
namespace DistantLands.Cozy.EditorScripts
|
||||
{
|
||||
[CustomEditor(typeof(LinkModule))]
|
||||
public class CozyLinkModuleEditor : CozyModuleEditor
|
||||
{
|
||||
|
||||
LinkModule module;
|
||||
public override ModuleCategory Category => ModuleCategory.integration;
|
||||
public override string ModuleTitle => "Link";
|
||||
public override string ModuleSubtitle => "Multiplayer Module";
|
||||
public override string ModuleTooltip => "Manage multiplayer integrations with a number of server/client multiplayer solutions.";
|
||||
|
||||
public Button IntegrationSelection => root.Q<Button>("integration-selection");
|
||||
public Label SelectedIntegration => root.Q<Label>("selected-integration");
|
||||
|
||||
Button widget;
|
||||
VisualElement root;
|
||||
|
||||
void OnEnable()
|
||||
{
|
||||
if (!target)
|
||||
return;
|
||||
|
||||
module = (LinkModule)target;
|
||||
}
|
||||
|
||||
public override Button DisplayWidget()
|
||||
{
|
||||
widget = SmallWidget();
|
||||
Label status = widget.Q<Label>("dynamic-status");
|
||||
status.style.fontSize = 8;
|
||||
status.text = LinkModule.SelectedIntegrationName;
|
||||
|
||||
return widget;
|
||||
|
||||
}
|
||||
|
||||
public override VisualElement DisplayUI()
|
||||
{
|
||||
root = new VisualElement();
|
||||
|
||||
VisualTreeAsset asset = AssetDatabase.LoadAssetAtPath<VisualTreeAsset>(
|
||||
"Packages/com.distantlands.cozy.link/Editor/UI/UXML/link-module-editor.uxml"
|
||||
);
|
||||
|
||||
root.Bind(serializedObject);
|
||||
|
||||
asset.CloneTree(root);
|
||||
|
||||
SelectedIntegration.text = LinkModule.SelectedIntegrationName;
|
||||
|
||||
IntegrationSelection.RegisterCallback((ClickEvent evt) =>
|
||||
{
|
||||
LinkIntegrations.Init();
|
||||
});
|
||||
|
||||
|
||||
return root;
|
||||
|
||||
}
|
||||
public override void OpenDocumentationURL()
|
||||
{
|
||||
Application.OpenURL("https://distant-lands.gitbook.io/cozy-stylized-weather-documentation/how-it-works/modules/link-module");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 12f52ee919015bc46a3c7f2bf485ead2
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 238669
|
||||
packageName: 'COZY: Link - Multiplayer Module'
|
||||
packageVersion: 1.9.1
|
||||
assetPath: Packages/com.distantlands.cozy.link/Editor/UI/C#/CozyLinkModuleEditor.cs
|
||||
uploadId: 822162
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9ff37e6579ac52b469ad170b31dba42b
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,19 @@
|
||||
<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" xsi="http://www.w3.org/2001/XMLSchema-instance" engine="UnityEngine.UIElements" editor="UnityEditor.UIElements" noNamespaceSchemaLocation="../../../../UIElementsSchema/UIElements.xsd" editor-extension-mode="True">
|
||||
<Style src="project://database/Packages/com.distantlands.cozy.core/Editor/UI/Globals.uss?fileID=7433441132597879392&guid=60b39676bc45100478c0c8a083850788&type=3#Globals" />
|
||||
<ui:Label tabindex="-1" text="Selected Integration" parse-escape-sequences="true" display-tooltip-when-elided="true" class="h1" />
|
||||
<ui:VisualElement name="selection-container" class="section-bg flex-row" style="justify-content: space-between; align-items: center;">
|
||||
<ui:Label tabindex="-1" text="Label" parse-escape-sequences="true" display-tooltip-when-elided="true" name="selected-integration" />
|
||||
<ui:Button text="Swap Integration" parse-escape-sequences="true" display-tooltip-when-elided="true" name="integration-selection" />
|
||||
</ui:VisualElement>
|
||||
<ui:Label tabindex="-1" text="Links" parse-escape-sequences="true" display-tooltip-when-elided="true" class="h1" />
|
||||
<ui:VisualElement name="selection-container" class="section-bg" style="flex-grow: 0;">
|
||||
<uie:PropertyField binding-path="linkTime" />
|
||||
<uie:PropertyField binding-path="linkWeather" />
|
||||
<uie:PropertyField binding-path="linkAmbience" name="PropertyField" />
|
||||
</ui:VisualElement>
|
||||
<ui:Label tabindex="-1" text="Settings" parse-escape-sequences="true" display-tooltip-when-elided="true" class="h1" />
|
||||
<ui:VisualElement name="settings-container" class="section-bg" style="flex-grow: 0;">
|
||||
<uie:PropertyField binding-path="timeSettingSensitivity" />
|
||||
<uie:PropertyField binding-path="updateDelay" />
|
||||
</ui:VisualElement>
|
||||
</ui:UXML>
|
||||
@@ -0,0 +1,17 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6066763499d381147ac7a7ff5a1fba9e
|
||||
ScriptedImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
script: {fileID: 13804, guid: 0000000000000000e000000000000000, type: 0}
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 238669
|
||||
packageName: 'COZY: Link - Multiplayer Module'
|
||||
packageVersion: 1.9.1
|
||||
assetPath: Packages/com.distantlands.cozy.link/Editor/UI/UXML/link-module-editor.uxml
|
||||
uploadId: 822162
|
||||
@@ -0,0 +1,3 @@
|
||||
Licensed under the Unity Asset Store EULA for Unity Asset Store Packages -- see [Unity Asset Store Terms](https://unity.com/legal/as-terms).
|
||||
|
||||
Unless expressly provided otherwise, the Software under this license is made available strictly on an “AS IS” BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. Please review the license for details on these and other terms and conditions.
|
||||
@@ -0,0 +1,14 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 034aea874bcc8c240a2d8041c10ad11d
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 238669
|
||||
packageName: 'COZY: Link - Multiplayer Module'
|
||||
packageVersion: 1.9.1
|
||||
assetPath: Packages/com.distantlands.cozy.link/LICENSE.md
|
||||
uploadId: 822162
|
||||
@@ -0,0 +1,17 @@
|
||||
# ✅ Thank You!
|
||||
Thank you for purchasing COZY: Link - Multiplayer Module!
|
||||
|
||||
**CONNECT WITH US:**<br>
|
||||
[Website](https://distantlands.wixsite.com/distantlands) | [Email](mailto:distantlands.productions@gmail.com) | [Discord](https://discord.gg/HWGU4hj) | [Documentation](https://distant-lands.gitbook.io/cozy-stylized-weather-documentation/how-it-works/modules/link-module) | [Roadmap](https://trello.com/b/hKDB8M7f/cozy-weather)
|
||||
|
||||
# 📖 Overview
|
||||
Connect your players skies across the network.
|
||||
|
||||
Supports the 4 major networking solutions for Unity:
|
||||
- [Photon PUN 2](https://assetstore.unity.com/packages/tools/network/pun-2-free-119922)
|
||||
- [Fish-Net: Networking Evolved](https://assetstore.unity.com/packages/tools/network/fish-net-networking-evolved-207815)
|
||||
- [Netcode for GameObjects](https://docs-multiplayer.unity3d.com/netcode/current/about/index.html)
|
||||
- [Mirror](https://assetstore.unity.com/packages/tools/network/mirror-129321)
|
||||
|
||||
# 📐 Setup Guide
|
||||
For detailed documentation, see the page for Blocks in the [COZY: Stylized Weather documentation](https://distant-lands.gitbook.io/cozy-stylized-weather-documentation/how-it-works/modules/link-module)
|
||||
@@ -0,0 +1,14 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e84c4e9000f6d7c4ca7aaae40465a05c
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 238669
|
||||
packageName: 'COZY: Link - Multiplayer Module'
|
||||
packageVersion: 1.9.1
|
||||
assetPath: Packages/com.distantlands.cozy.link/README.md
|
||||
uploadId: 822162
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ba4d2ee664baa4d46a44b146e3106298
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"name": "DistantLands.Cozy.Link.Runtime",
|
||||
"rootNamespace": "",
|
||||
"references": [
|
||||
"GUID:5492a51f516277543a92d676903897bf",
|
||||
"GUID:30817c1a0e6d646d99c048fc403f5979",
|
||||
"GUID:72872094b21c16e48b631b2224833d49",
|
||||
"GUID:7c88a4a7926ee5145ad2dfa06f454c67",
|
||||
"GUID:57c32fc907df0f54e8e6e8f0d2488336",
|
||||
"GUID:1491147abca9d7d4bb7105af628b223e",
|
||||
"GUID:6e20f757a1bae164fa42750dd2b27dcb"
|
||||
],
|
||||
"includePlatforms": [],
|
||||
"excludePlatforms": [],
|
||||
"allowUnsafeCode": false,
|
||||
"overrideReferences": false,
|
||||
"precompiledReferences": [],
|
||||
"autoReferenced": true,
|
||||
"defineConstraints": [],
|
||||
"versionDefines": [],
|
||||
"noEngineReferences": false
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d63360ab401c0fe4cb72fc3371d655bb
|
||||
AssemblyDefinitionImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 238669
|
||||
packageName: 'COZY: Link - Multiplayer Module'
|
||||
packageVersion: 1.9.1
|
||||
assetPath: Packages/com.distantlands.cozy.link/Runtime/DistantLands.Cozy.Link.Runtime.asmdef
|
||||
uploadId: 822162
|
||||
@@ -0,0 +1,41 @@
|
||||
#if LINK_FISHNET
|
||||
using System.Collections.Generic;
|
||||
using FishNet.CodeGenerating;
|
||||
using FishNet.Object;
|
||||
using FishNet.Object.Synchronizing;
|
||||
using UnityEngine;
|
||||
|
||||
namespace DistantLands.Cozy
|
||||
{
|
||||
|
||||
public class FishnetView : NetworkBehaviour
|
||||
{
|
||||
|
||||
[HideInInspector]
|
||||
[AllowMutableSyncType]
|
||||
public SyncVar<float> time;
|
||||
[HideInInspector]
|
||||
[AllowMutableSyncType]
|
||||
public SyncVar<float> serverTime;
|
||||
[HideInInspector]
|
||||
[AllowMutableSyncType]
|
||||
public SyncVar<int> day;
|
||||
[HideInInspector]
|
||||
[AllowMutableSyncType]
|
||||
public SyncVar<int> year;
|
||||
[HideInInspector]
|
||||
[AllowMutableSyncType]
|
||||
public SyncVar<int> ambience;
|
||||
|
||||
[HideInInspector]
|
||||
[AllowMutableSyncType]
|
||||
public SyncVar<string> weatherCacheString;
|
||||
[HideInInspector]
|
||||
[AllowMutableSyncType]
|
||||
public SyncVar<string> weatherValuesString;
|
||||
|
||||
public bool isMaster { get { return IsHostInitialized || IsServerInitialized; } }
|
||||
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 53f9eddfdde2b0049bbce2a82f025802
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {fileID: 2800000, guid: fdb6073190be90646a9b9f991f36c245, type: 3}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 238669
|
||||
packageName: 'COZY: Link - Multiplayer Module'
|
||||
packageVersion: 1.9.1
|
||||
assetPath: Packages/com.distantlands.cozy.link/Runtime/FishnetView.cs
|
||||
uploadId: 822162
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9f82b4a58d8f17d4bb6dfa6adb1c16d1
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {fileID: 2800000, guid: fdb6073190be90646a9b9f991f36c245, type: 3}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 238669
|
||||
packageName: 'COZY: Link - Multiplayer Module'
|
||||
packageVersion: 1.9.1
|
||||
assetPath: Packages/com.distantlands.cozy.link/Runtime/LinkModule.cs
|
||||
uploadId: 822162
|
||||
@@ -0,0 +1,39 @@
|
||||
#if LINK_MIRROR
|
||||
using System.Collections.Generic;
|
||||
using Mirror;
|
||||
using UnityEngine;
|
||||
|
||||
namespace DistantLands.Cozy
|
||||
{
|
||||
|
||||
public class MirrorView : NetworkBehaviour
|
||||
{
|
||||
|
||||
[SyncVar]
|
||||
[HideInInspector]
|
||||
public float time;
|
||||
[SyncVar]
|
||||
[HideInInspector]
|
||||
public float serverTime;
|
||||
[HideInInspector]
|
||||
[SyncVar]
|
||||
public int day;
|
||||
[HideInInspector]
|
||||
[SyncVar]
|
||||
public int year;
|
||||
[HideInInspector]
|
||||
[SyncVar]
|
||||
public int ambience;
|
||||
|
||||
[HideInInspector]
|
||||
[SyncVar]
|
||||
public string weatherCacheString;
|
||||
[HideInInspector]
|
||||
[SyncVar]
|
||||
public string weatherValuesString;
|
||||
|
||||
public bool isMaster { get { return isServer; } }
|
||||
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 30a9b654bb283ba4fa6353833af0072d
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {fileID: 2800000, guid: fdb6073190be90646a9b9f991f36c245, type: 3}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 238669
|
||||
packageName: 'COZY: Link - Multiplayer Module'
|
||||
packageVersion: 1.9.1
|
||||
assetPath: Packages/com.distantlands.cozy.link/Runtime/MirrorView.cs
|
||||
uploadId: 822162
|
||||
@@ -0,0 +1,36 @@
|
||||
#if LINK_NETCODE
|
||||
using Unity.Netcode;
|
||||
using UnityEngine;
|
||||
|
||||
namespace DistantLands.Cozy
|
||||
{
|
||||
|
||||
public class NetcodeView : NetworkBehaviour
|
||||
{
|
||||
|
||||
[HideInInspector]
|
||||
public NetworkVariable<float> ticks = new NetworkVariable<float>();
|
||||
[HideInInspector]
|
||||
public NetworkVariable<int> day = new NetworkVariable<int>();
|
||||
[HideInInspector]
|
||||
public NetworkVariable<int> year = new NetworkVariable<int>();
|
||||
[HideInInspector]
|
||||
public NetworkVariable<int> ambience = new NetworkVariable<int>();
|
||||
[HideInInspector]
|
||||
public NetworkList<int> weatherCache;
|
||||
[HideInInspector]
|
||||
public NetworkList<float> weatherValues;
|
||||
|
||||
|
||||
void Awake()
|
||||
{
|
||||
|
||||
weatherCache = new NetworkList<int>();
|
||||
weatherValues = new NetworkList<float>();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6c2f12072f7e9f94db0b5862216270a3
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {fileID: 2800000, guid: fdb6073190be90646a9b9f991f36c245, type: 3}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 238669
|
||||
packageName: 'COZY: Link - Multiplayer Module'
|
||||
packageVersion: 1.9.1
|
||||
assetPath: Packages/com.distantlands.cozy.link/Runtime/NetcodeView.cs
|
||||
uploadId: 822162
|
||||
@@ -0,0 +1,28 @@
|
||||
#if LINK_PURRNET
|
||||
using PurrNet;
|
||||
using UnityEngine;
|
||||
|
||||
namespace DistantLands.Cozy
|
||||
{
|
||||
public class PurrNetView : NetworkBehaviour
|
||||
{
|
||||
[HideInInspector]
|
||||
public SyncVar<float> time;
|
||||
[HideInInspector]
|
||||
public SyncVar<float> serverTime;
|
||||
[HideInInspector]
|
||||
public SyncVar<int> day;
|
||||
[HideInInspector]
|
||||
public SyncVar<int> year;
|
||||
[HideInInspector]
|
||||
public SyncVar<int> ambience;
|
||||
|
||||
[HideInInspector]
|
||||
public SyncVar<string> weatherCacheString;
|
||||
[HideInInspector]
|
||||
public SyncVar<string> weatherValuesString;
|
||||
|
||||
public bool isMaster { get { return isHost || isServer; } }
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d4bc163462b056a4bb188374afccb317
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {fileID: 2800000, guid: fdb6073190be90646a9b9f991f36c245, type: 3}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 238669
|
||||
packageName: 'COZY: Link - Multiplayer Module'
|
||||
packageVersion: 1.9.1
|
||||
assetPath: Packages/com.distantlands.cozy.link/Runtime/PurrNetView.cs
|
||||
uploadId: 822162
|
||||
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"name": "com.distantlands.cozy.link",
|
||||
"displayName": "COZY: Link - Multiplayer Module",
|
||||
"version": "1.9.1",
|
||||
"author": {
|
||||
"name": "Distant Lands",
|
||||
"email": "contact@distantlands.space",
|
||||
"discord": "https://discord.gg/eZXxGCp9ww",
|
||||
"url": "https://distantlands.space/"
|
||||
},
|
||||
"unity": "2022.3",
|
||||
"description": "Connect your players' worlds with LINK: Multiplayer Module for COZY! Quickly integrate your project with popular multiplayer solutions and dispense your beautiful weather!",
|
||||
"keywords": [
|
||||
"Cozy Weather 3",
|
||||
"Weather",
|
||||
"Clouds",
|
||||
"Fog",
|
||||
"Sky",
|
||||
"Distant Lands",
|
||||
"Stylized"
|
||||
],
|
||||
"dependencies": {
|
||||
"com.distantlands.cozy.core": "3.5.0"
|
||||
},
|
||||
"documentationUrl": "https://distant-lands.gitbook.io/cozy-stylized-weather-documentation/how-it-works/modules/link-module",
|
||||
"changelogUrl": "https://distant-lands.gitbook.io/cozy-stylized-weather-documentation/welcome/changelog",
|
||||
"hideInEditor": false
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 582400559b36cc34b8276bb378055f2a
|
||||
PackageManifestImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 238669
|
||||
packageName: 'COZY: Link - Multiplayer Module'
|
||||
packageVersion: 1.9.1
|
||||
assetPath: Packages/com.distantlands.cozy.link/package.json
|
||||
uploadId: 822162
|
||||
Reference in New Issue
Block a user