Old Aetheria Code
Imported and massively refactored a bunch of code from the old Aetheria project
This commit is contained in:
parent
c58ba0b1da
commit
d64d5ab729
69 changed files with 6197 additions and 2458 deletions
298
.idea/.idea.Aetheria-Economy/.idea/contentModel.xml
generated
298
.idea/.idea.Aetheria-Economy/.idea/contentModel.xml
generated
|
|
@ -9,18 +9,32 @@
|
|||
<e p="Assembly-CSharp.csproj" t="IncludeRecursive" />
|
||||
<e p="Assets" t="Include">
|
||||
<e p="Scripts" t="Include">
|
||||
<e p="Behaviors.cs" t="Include" />
|
||||
<e p="ChatComponent.cs" t="Include" />
|
||||
<e p="ColorButton.cs" t="Include" />
|
||||
<e p="Database.cs" t="Include" />
|
||||
<e p="DatabaseItems.cs" t="Include" />
|
||||
<e p="Editor" t="Include">
|
||||
<e p="DatabaseEditor.cs" t="Include" />
|
||||
</e>
|
||||
<e p="Extensions.cs" t="Include" />
|
||||
<e p="Galaxy.cs" t="Include" />
|
||||
<e p="Generated" t="Include">
|
||||
<e p="MagicOnion.Generated.cs" t="Include" />
|
||||
<e p="MessagePack.Generated.cs" t="Include" />
|
||||
</e>
|
||||
<e p="Icons.cs" t="Include" />
|
||||
<e p="InitialSettings.cs" t="Include" />
|
||||
<e p="ItemInstance.cs" t="Include" />
|
||||
<e p="NIH" t="Include">
|
||||
<e p="FastNoise.cs" t="Include" />
|
||||
<e p="GPU Noise" t="Include">
|
||||
<e p="ClassicNoise2D.cginc" t="Include" />
|
||||
<e p="ClassicNoise3D.cginc" t="Include" />
|
||||
<e p="SimplexNoise2D.cginc" t="Include" />
|
||||
<e p="SimplexNoise3D.cginc" t="Include" />
|
||||
<e p="SimplexNoiseGrad2D.cginc" t="Include" />
|
||||
<e p="SimplexNoiseGrad3D.cginc" t="Include" />
|
||||
</e>
|
||||
<e p="LinqFaster" t="Include">
|
||||
<e p="Aggregate.cs" t="Include" />
|
||||
<e p="AnyAll.cs" t="Include" />
|
||||
|
|
@ -672,6 +686,282 @@
|
|||
</e>
|
||||
</e>
|
||||
</e>
|
||||
<e p="unity-ui-extensions" t="Include">
|
||||
<e p="Editor" t="Include">
|
||||
<e p="AccordionElementEditor.cs" t="Include" />
|
||||
<e p="BezierLineRendererEditor.cs" t="Include" />
|
||||
<e p="BoxSliderEditor.cs" t="Include" />
|
||||
<e p="CanvasGroupActivator.cs" t="Include" />
|
||||
<e p="CUIBezierCurveEditor.cs" t="Include" />
|
||||
<e p="CUIGraphicEditor.cs" t="Include" />
|
||||
<e p="CUIImageEditor.cs" t="Include" />
|
||||
<e p="CUITextEditor.cs" t="Include" />
|
||||
<e p="NonDrawingGraphicEditor.cs" t="Include" />
|
||||
<e p="ReadOnlyDrawer.cs" t="Include" />
|
||||
<e p="TextPicEditor.cs" t="Include" />
|
||||
<e p="uGUITools.cs" t="Include" />
|
||||
<e p="UIExtensionsMenuOptions.cs" t="Include" />
|
||||
</e>
|
||||
<e p="Examples" t="Include">
|
||||
<e p="ComboBox" t="Include">
|
||||
<e p="ComboBoxChanged.cs" t="Include" />
|
||||
</e>
|
||||
<e p="Cooldown" t="Include">
|
||||
<e p="CooldownEffect_Image.cs" t="Include" />
|
||||
<e p="CooldownEffect_SAUIM.cs" t="Include" />
|
||||
</e>
|
||||
<e p="FancyScrollView" t="Include">
|
||||
<e p="01_Basic" t="Include">
|
||||
<e p="Example01CellDto.cs" t="Include" />
|
||||
<e p="Example01Scene.cs" t="Include" />
|
||||
<e p="Example01ScrollView.cs" t="Include" />
|
||||
<e p="Example01ScrollViewCell.cs" t="Include" />
|
||||
</e>
|
||||
<e p="02_CellEventHandling" t="Include">
|
||||
<e p="Example02CellDto.cs" t="Include" />
|
||||
<e p="Example02Scene.cs" t="Include" />
|
||||
<e p="Example02ScrollView.cs" t="Include" />
|
||||
<e p="Example02ScrollViewCell.cs" t="Include" />
|
||||
<e p="Example02ScrollViewContext.cs" t="Include" />
|
||||
</e>
|
||||
<e p="03_InfiniteScroll" t="Include">
|
||||
<e p="Example03CellDto.cs" t="Include" />
|
||||
<e p="Example03Scene.cs" t="Include" />
|
||||
<e p="Example03ScrollView.cs" t="Include" />
|
||||
<e p="Example03ScrollViewCell.cs" t="Include" />
|
||||
<e p="Example03ScrollViewContext.cs" t="Include" />
|
||||
</e>
|
||||
</e>
|
||||
<e p="HSS-VSS-ScrollSnap" t="Include">
|
||||
<e p="PaginationScript.cs" t="Include" />
|
||||
<e p="UpdateScrollSnap.cs" t="Include" />
|
||||
</e>
|
||||
<e p="MenuExample" t="Include">
|
||||
<e p="Scripts" t="Include">
|
||||
<e p="Menus" t="Include">
|
||||
<e p="AwesomeMenu.cs" t="Include" />
|
||||
<e p="GameMenu.cs" t="Include" />
|
||||
<e p="MainMenu.cs" t="Include" />
|
||||
<e p="OptionsMenu.cs" t="Include" />
|
||||
<e p="PauseMenu.cs" t="Include" />
|
||||
</e>
|
||||
</e>
|
||||
</e>
|
||||
<e p="RadialSlider" t="Include">
|
||||
<e p="UpdateRadialValue.cs" t="Include" />
|
||||
</e>
|
||||
<e p="TextEffects" t="Include">
|
||||
<e p="AnimateEffects.cs" t="Include" />
|
||||
<e p="testHref.cs" t="Include" />
|
||||
</e>
|
||||
<e p="UILineRenderer" t="Include">
|
||||
<e p="LineRendererOrbit.cs" t="Include" />
|
||||
<e p="TestAddingPoints.cs" t="Include" />
|
||||
</e>
|
||||
<e p="UIVerticalScrollerDemo" t="Include">
|
||||
<e p="Scripts" t="Include">
|
||||
<e p="ScrollingCalendar.cs" t="Include" />
|
||||
</e>
|
||||
</e>
|
||||
</e>
|
||||
<e p="Scripts" t="Include">
|
||||
<e p="Controls" t="Include">
|
||||
<e p="Accordion" t="Include">
|
||||
<e p="Accordion.cs" t="Include" />
|
||||
<e p="AccordionElement.cs" t="Include" />
|
||||
<e p="Tweening" t="Include">
|
||||
<e p="FloatTween.cs" t="Include" />
|
||||
<e p="ITweenValue.cs" t="Include" />
|
||||
<e p="TweenRunner.cs" t="Include" />
|
||||
</e>
|
||||
</e>
|
||||
<e p="BoxSlider.cs" t="Include" />
|
||||
<e p="ColorPicker" t="Include">
|
||||
<e p="ColorImage.cs" t="Include" />
|
||||
<e p="ColorLabel.cs" t="Include" />
|
||||
<e p="ColorPickerControl.cs" t="Include" />
|
||||
<e p="ColorPickerPresets.cs" t="Include" />
|
||||
<e p="ColorPickerTester.cs" t="Include" />
|
||||
<e p="ColorSlider.cs" t="Include" />
|
||||
<e p="ColorSliderImage.cs" t="Include" />
|
||||
<e p="ColorValues.cs" t="Include" />
|
||||
<e p="Events" t="Include">
|
||||
<e p="ColorChangedEvent.cs" t="Include" />
|
||||
<e p="HSVChangedEvent.cs" t="Include" />
|
||||
</e>
|
||||
<e p="HexColorField.cs" t="Include" />
|
||||
<e p="HSVUtil.cs" t="Include" />
|
||||
<e p="SVBoxSlider.cs" t="Include" />
|
||||
<e p="TiltWindow.cs" t="Include" />
|
||||
</e>
|
||||
<e p="ComboBox" t="Include">
|
||||
<e p="AutoCompleteComboBox.cs" t="Include" />
|
||||
<e p="ComboBox.cs" t="Include" />
|
||||
<e p="DropDownList.cs" t="Include" />
|
||||
<e p="DropDownListButton.cs" t="Include" />
|
||||
<e p="DropDownListItem.cs" t="Include" />
|
||||
</e>
|
||||
<e p="CooldownButton.cs" t="Include" />
|
||||
<e p="InputFocus.cs" t="Include" />
|
||||
<e p="MultiTouchScrollRect.cs" t="Include" />
|
||||
<e p="RadialSlider.cs" t="Include" />
|
||||
<e p="ReorderableList" t="Include">
|
||||
<e p="ReorderableList.cs" t="Include" />
|
||||
<e p="ReorderableListContent.cs" t="Include" />
|
||||
<e p="ReorderableListDebug.cs" t="Include" />
|
||||
<e p="ReorderableListElement.cs" t="Include" />
|
||||
</e>
|
||||
<e p="RescalingPanels" t="Include">
|
||||
<e p="RescaleDragPanel.cs" t="Include" />
|
||||
<e p="RescalePanel.cs" t="Include" />
|
||||
<e p="ResizePanel.cs" t="Include" />
|
||||
</e>
|
||||
<e p="SegmentedControl.cs" t="Include" />
|
||||
<e p="SelectionBox" t="Include">
|
||||
<e p="ExampleSelectable.cs" t="Include" />
|
||||
<e p="IBoxSelectable.cs" t="Include" />
|
||||
<e p="SelectionBox.cs" t="Include" />
|
||||
</e>
|
||||
<e p="Stepper.cs" t="Include" />
|
||||
<e p="TextPic.cs" t="Include" />
|
||||
<e p="UI_Knob.cs" t="Include" />
|
||||
</e>
|
||||
<e p="Effects" t="Include">
|
||||
<e p="BestFitOutline.cs" t="Include" />
|
||||
<e p="CurlyUI" t="Include">
|
||||
<e p="CUIBezierCurve.cs" t="Include" />
|
||||
<e p="CUIGraphic.cs" t="Include" />
|
||||
<e p="CUIImage.cs" t="Include" />
|
||||
<e p="CUIMisc.cs" t="Include" />
|
||||
<e p="CUIText.cs" t="Include" />
|
||||
</e>
|
||||
<e p="CurvedText.cs" t="Include" />
|
||||
<e p="CylinderText.cs" t="Include" />
|
||||
<e p="Gradient.cs" t="Include" />
|
||||
<e p="Gradient2.cs" t="Include" />
|
||||
<e p="LetterSpacing.cs" t="Include" />
|
||||
<e p="MonoSpacing.cs" t="Include" />
|
||||
<e p="NicerOutline.cs" t="Include" />
|
||||
<e p="RaycastMask.cs" t="Include" />
|
||||
<e p="ShaderEffects" t="Include">
|
||||
<e p="UIAdditiveEffect.cs" t="Include" />
|
||||
<e p="UIImageCrop.cs" t="Include" />
|
||||
<e p="UILinearDodgeEffect.cs" t="Include" />
|
||||
<e p="UIMultiplyEffect.cs" t="Include" />
|
||||
<e p="UIScreenEffect.cs" t="Include" />
|
||||
<e p="UISoftAdditiveEffect.cs" t="Include" />
|
||||
</e>
|
||||
<e p="ShineEffect.cs" t="Include" />
|
||||
<e p="ShineEffector.cs" t="Include" />
|
||||
<e p="SoftMaskScript.cs" t="Include" />
|
||||
<e p="UIFlippable.cs" t="Include" />
|
||||
<e p="UIParticleSystem.cs" t="Include" />
|
||||
</e>
|
||||
<e p="InputModules" t="Include">
|
||||
<e p="AimerInputModule.cs" t="Include" />
|
||||
<e p="GamePadInputModule.cs" t="Include" />
|
||||
</e>
|
||||
<e p="Layout" t="Include">
|
||||
<e p="CurvedLayout.cs" t="Include" />
|
||||
<e p="FancyScrollView.cs" t="Include" />
|
||||
<e p="FancyScrollViewCell.cs" t="Include" />
|
||||
<e p="FlowLayoutGroup.cs" t="Include" />
|
||||
<e p="HorizontalScrollSnap.cs" t="Include" />
|
||||
<e p="IScrollSnap.cs" t="Include" />
|
||||
<e p="RadialLayout.cs" t="Include" />
|
||||
<e p="ScrollPositionController.cs" t="Include" />
|
||||
<e p="ScrollSnap.cs" t="Include" />
|
||||
<e p="ScrollSnapBase.cs" t="Include" />
|
||||
<e p="ScrollSnapScrollbarHelper.cs" t="Include" />
|
||||
<e p="TableLayoutGroup.cs" t="Include" />
|
||||
<e p="TileSizeFitter.cs" t="Include" />
|
||||
<e p="UIVerticalScroller.cs" t="Include" />
|
||||
<e p="VerticalScrollSnap.cs" t="Include" />
|
||||
</e>
|
||||
<e p="MenuSystem" t="Include">
|
||||
<e p="Menu.cs" t="Include" />
|
||||
<e p="MenuManager.cs" t="Include" />
|
||||
<e p="SimpleMenu.cs" t="Include" />
|
||||
</e>
|
||||
<e p="Primitives" t="Include">
|
||||
<e p="DiamondGraph.cs" t="Include" />
|
||||
<e p="UICircle.cs" t="Include" />
|
||||
<e p="UICornerCut.cs" t="Include" />
|
||||
<e p="UIGridRenderer.cs" t="Include" />
|
||||
<e p="UILineRenderer.cs" t="Include" />
|
||||
<e p="UILineTextureRenderer.cs" t="Include" />
|
||||
<e p="UIPolygon.cs" t="Include" />
|
||||
<e p="UIPrimitiveBase.cs" t="Include" />
|
||||
</e>
|
||||
<e p="TabNavigationHelper.cs" t="Include" />
|
||||
<e p="ToolTips" t="Include">
|
||||
<e p="BoundTooltip" t="Include">
|
||||
<e p="BoundTooltipItem.cs" t="Include" />
|
||||
<e p="BoundTooltipTrigger.cs" t="Include" />
|
||||
</e>
|
||||
<e p="HoverTooltip.cs" t="Include" />
|
||||
<e p="ToolTip.cs" t="Include" />
|
||||
</e>
|
||||
<e p="UIWindowBase.cs" t="Include" />
|
||||
<e p="Utilities" t="Include">
|
||||
<e p="BezierPath.cs" t="Include" />
|
||||
<e p="CableCurve.cs" t="Include" />
|
||||
<e p="Circle.cs" t="Include" />
|
||||
<e p="CLZF2.cs" t="Include" />
|
||||
<e p="DragCorrector.cs" t="Include" />
|
||||
<e p="ExtensionsToggle.cs" t="Include" />
|
||||
<e p="ExtensionsToggleGroup.cs" t="Include" />
|
||||
<e p="InputFieldEnterSubmit.cs" t="Include" />
|
||||
<e p="NonDrawingGraphic.cs" t="Include" />
|
||||
<e p="PaginationManager.cs" t="Include" />
|
||||
<e p="PPIViewer.cs" t="Include" />
|
||||
<e p="ReadOnlyAttribute.cs" t="Include" />
|
||||
<e p="ReturnKeyTriggersButton.cs" t="Include" />
|
||||
<e p="ScrollConflictManager.cs" t="Include" />
|
||||
<e p="ScrollRectEx.cs" t="Include" />
|
||||
<e p="ScrollRectExtensions.cs" t="Include" />
|
||||
<e p="ScrollRectLinker.cs" t="Include" />
|
||||
<e p="ScrollRectTweener.cs" t="Include" />
|
||||
<e p="SelectableScaler.cs" t="Include" />
|
||||
<e p="SetPropertyUtility.cs" t="Include" />
|
||||
<e p="switchToRectTransform.cs" t="Include" />
|
||||
<e p="TestCompression.cs" t="Include" />
|
||||
<e p="UI_InfiniteScroll.cs" t="Include" />
|
||||
<e p="UI_ScrollRectOcclusion.cs" t="Include" />
|
||||
<e p="UI_TweenScale.cs" t="Include" />
|
||||
<e p="UIExtensionMethods.cs" t="Include" />
|
||||
<e p="UIHighlightable.cs" t="Include" />
|
||||
<e p="UILineConnector.cs" t="Include" />
|
||||
<e p="UIScrollToSelection.cs" t="Include" />
|
||||
<e p="UIScrollToSelectionXY.cs" t="Include" />
|
||||
<e p="UISelectableExtension.cs" t="Include" />
|
||||
</e>
|
||||
<e p="VR Extensions" t="Include">
|
||||
<e p="VRCursor.cs" t="Include" />
|
||||
<e p="VRInputModule.cs" t="Include" />
|
||||
</e>
|
||||
</e>
|
||||
<e p="Shaders" t="Include">
|
||||
<e p="SoftMaskShader.shader" t="Include" />
|
||||
<e p="UI Particle Add.shader" t="Include" />
|
||||
<e p="UI Particle AddMultiply.shader" t="Include" />
|
||||
<e p="UI Particle AddSmooth.shader" t="Include" />
|
||||
<e p="UI Particle Alpha Blend.shader" t="Include" />
|
||||
<e p="UI Particle Blend.shader" t="Include" />
|
||||
<e p="UI Particle Multiply.shader" t="Include" />
|
||||
<e p="UI Particle MultiplyDouble.shader" t="Include" />
|
||||
<e p="UI Particle Premultiply Blend.shader" t="Include" />
|
||||
<e p="UI Particle VertexLit Blended.shader" t="Include" />
|
||||
<e p="UIAdditive.shader" t="Include" />
|
||||
<e p="UIImageCrop.shader" t="Include" />
|
||||
<e p="UILinearDodge.shader" t="Include" />
|
||||
<e p="UIMultiply.shader" t="Include" />
|
||||
<e p="UIParticleHidden.shader" t="Include" />
|
||||
<e p="UIScreen.shader" t="Include" />
|
||||
<e p="UISoftAdditive.shader" t="Include" />
|
||||
</e>
|
||||
</e>
|
||||
<e p="XKCDColors.cs" t="Include" />
|
||||
</e>
|
||||
<e p="Orbit.cs" t="Include" />
|
||||
<e p="PropertiesPanel.cs" t="Include" />
|
||||
|
|
@ -690,11 +980,17 @@
|
|||
<e p="IChatService.cs" t="Include" />
|
||||
</e>
|
||||
</e>
|
||||
<e p="Targetable.cs" t="Include" />
|
||||
<e p="UnityFormatters.cs" t="Include" />
|
||||
<e p="ZoneManager.cs" t="Include" />
|
||||
<e p="ZoneRenderer.cs" t="Include" />
|
||||
</e>
|
||||
<e p="Shaders" t="Include">
|
||||
<e p="CubicPulseBrush.shader" t="Include" />
|
||||
<e p="GalaxyMap.shader" t="Include" />
|
||||
<e p="Isolines.shader" t="Include" />
|
||||
<e p="PowerBrush.shader" t="Include" />
|
||||
<e p="SimplexBrush.shader" t="Include" />
|
||||
</e>
|
||||
</e>
|
||||
<e p="Economy.Shared.Unity.csproj" t="IncludeRecursive" />
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
<Path>.idea</Path>
|
||||
<Path>Economy.Server</Path>
|
||||
<Path>Economy.Shared</Path>
|
||||
<Path>GameData</Path>
|
||||
<Path>Library</Path>
|
||||
<Path>Logs</Path>
|
||||
<Path>Server</Path>
|
||||
|
|
|
|||
1
.idea/.idea.Economy/.idea/indexLayout.xml
generated
1
.idea/.idea.Economy/.idea/indexLayout.xml
generated
|
|
@ -13,6 +13,7 @@
|
|||
<explicitExcludes>
|
||||
<Path>.git</Path>
|
||||
<Path>.idea</Path>
|
||||
<Path>GameData</Path>
|
||||
<Path>Library</Path>
|
||||
<Path>Logs</Path>
|
||||
<Path>Server</Path>
|
||||
|
|
|
|||
|
|
@ -60,6 +60,7 @@
|
|||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Assets\Scripts\Editor\DatabaseEditor.cs" />
|
||||
<Compile Include="Assets\Scripts\NIH\NaughtyAttributes\Scripts\Editor\Attributes\BaseAttribute.cs" />
|
||||
<Compile Include="Assets\Scripts\NIH\NaughtyAttributes\Scripts\Editor\Attributes\FieldDrawerAttribute.cs" />
|
||||
<Compile Include="Assets\Scripts\NIH\NaughtyAttributes\Scripts\Editor\Attributes\IAttribute.cs" />
|
||||
|
|
|
|||
|
|
@ -60,15 +60,18 @@
|
|||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Assets\Scripts\Behaviors.cs" />
|
||||
<Compile Include="Assets\Scripts\ChatComponent.cs" />
|
||||
<Compile Include="Assets\Scripts\ColorButton.cs" />
|
||||
<Compile Include="Assets\Scripts\Database.cs" />
|
||||
<Compile Include="Assets\Scripts\DatabaseItems.cs" />
|
||||
<Compile Include="Assets\Scripts\Extensions.cs" />
|
||||
<Compile Include="Assets\Scripts\Galaxy.cs" />
|
||||
<Compile Include="Assets\Scripts\Generated\MagicOnion.Generated.cs" />
|
||||
<Compile Include="Assets\Scripts\Generated\MessagePack.Generated.cs" />
|
||||
<Compile Include="Assets\Scripts\Icons.cs" />
|
||||
<Compile Include="Assets\Scripts\InitialSettings.cs" />
|
||||
<Compile Include="Assets\Scripts\NIH\FastNoise.cs" />
|
||||
<Compile Include="Assets\Scripts\ItemInstance.cs" />
|
||||
<Compile Include="Assets\Scripts\NIH\LinqFaster\Aggregate.cs" />
|
||||
<Compile Include="Assets\Scripts\NIH\LinqFaster\AnyAll.cs" />
|
||||
<Compile Include="Assets\Scripts\NIH\LinqFaster\Average.cs" />
|
||||
|
|
@ -555,30 +558,43 @@
|
|||
<Compile Include="Assets\Scripts\NIH\unity-ui-extensions\Scripts\Utilities\UISelectableExtension.cs" />
|
||||
<Compile Include="Assets\Scripts\NIH\unity-ui-extensions\Scripts\VR Extensions\VRCursor.cs" />
|
||||
<Compile Include="Assets\Scripts\NIH\unity-ui-extensions\Scripts\VR Extensions\VRInputModule.cs" />
|
||||
<Compile Include="Assets\Scripts\NIH\XKCDColors.cs" />
|
||||
<Compile Include="Assets\Scripts\Orbit.cs" />
|
||||
<Compile Include="Assets\Scripts\PropertiesPanel.cs" />
|
||||
<Compile Include="Assets\Scripts\Prototype.cs" />
|
||||
<Compile Include="Assets\Scripts\Targetable.cs" />
|
||||
<Compile Include="Assets\Scripts\UnityFormatters.cs" />
|
||||
<Compile Include="Assets\Scripts\ZoneManager.cs" />
|
||||
<Compile Include="Assets\Scripts\ZoneRenderer.cs" />
|
||||
<None Include="Assets\Scripts\NIH\unity-ui-extensions\Shaders\UIAdditive.shader" />
|
||||
<None Include="Assets\Scripts\NIH\unity-ui-extensions\Shaders\UI Particle AddSmooth.shader" />
|
||||
<None Include="Assets\Scripts\NIH\GPU Noise\ClassicNoise3D.cginc" />
|
||||
<None Include="Assets\Scripts\NIH\unity-ui-extensions\Shaders\UI Particle Premultiply Blend.shader" />
|
||||
<None Include="Assets\Scripts\NIH\unity-ui-extensions\Shaders\UISoftAdditive.shader" />
|
||||
<None Include="Assets\Scripts\NIH\unity-ui-extensions\Shaders\UIParticleHidden.shader" />
|
||||
<None Include="Assets\Scripts\NIH\unity-ui-extensions\Shaders\SoftMaskShader.shader" />
|
||||
<None Include="Assets\Scripts\NIH\unity-ui-extensions\Shaders\UI Particle Add.shader" />
|
||||
<None Include="Assets\Shaders\SimplexBrush.shader" />
|
||||
<None Include="Assets\Scripts\NIH\unity-ui-extensions\Shaders\UI Particle Multiply.shader" />
|
||||
<None Include="Assets\Scripts\NIH\unity-ui-extensions\Shaders\UI Particle Alpha Blend.shader" />
|
||||
<None Include="Assets\Shaders\CubicPulseBrush.shader" />
|
||||
<None Include="Assets\Shaders\PowerBrush.shader" />
|
||||
<None Include="Assets\Scripts\NIH\unity-ui-extensions\Shaders\UIImageCrop.shader" />
|
||||
<None Include="Assets\Scripts\NIH\unity-ui-extensions\Shaders\UILinearDodge.shader" />
|
||||
<None Include="Assets\Scripts\NIH\unity-ui-extensions\Shaders\UI Particle VertexLit Blended.shader" />
|
||||
<None Include="Assets\Scripts\NIH\unity-ui-extensions\Shaders\UI Particle AddMultiply.shader" />
|
||||
<None Include="Assets\Shaders\GalaxyMap.shader" />
|
||||
<None Include="Assets\Scripts\NIH\GPU Noise\SimplexNoiseGrad2D.cginc" />
|
||||
<None Include="Assets\Scripts\NIH\unity-ui-extensions\Shaders\UI Particle Blend.shader" />
|
||||
<None Include="Assets\Scripts\NIH\UniRx\ReadMe.txt" />
|
||||
<None Include="Assets\Scripts\NIH\GPU Noise\SimplexNoise2D.cginc" />
|
||||
<None Include="Assets\Shaders\Isolines.shader" />
|
||||
<None Include="Assets\Scripts\NIH\unity-ui-extensions\Shaders\UIMultiply.shader" />
|
||||
<None Include="Assets\Scripts\NIH\GPU Noise\ClassicNoise2D.cginc" />
|
||||
<None Include="Assets\Scripts\NIH\LinqFaster\readme.txt" />
|
||||
<None Include="Assets\Scripts\NIH\unity-ui-extensions\Shaders\UIScreen.shader" />
|
||||
<None Include="Assets\Scripts\NIH\GPU Noise\SimplexNoise3D.cginc" />
|
||||
<None Include="Assets\Scripts\NIH\GPU Noise\SimplexNoiseGrad3D.cginc" />
|
||||
<None Include="Assets\Scripts\NIH\unity-ui-extensions\Shaders\UI Particle MultiplyDouble.shader" />
|
||||
<Reference Include="Unity.TextMeshPro.Editor">
|
||||
<HintPath>C:/Users/rwvens/Documents/GitHub/Aetheria-Economy/Library/ScriptAssemblies/Unity.TextMeshPro.Editor.dll</HintPath>
|
||||
|
|
|
|||
34
Assets/Gravity.renderTexture
Normal file
34
Assets/Gravity.renderTexture
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!84 &8400000
|
||||
RenderTexture:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: Gravity
|
||||
m_ImageContentsHash:
|
||||
serializedVersion: 2
|
||||
Hash: 00000000000000000000000000000000
|
||||
m_ForcedFallbackFormat: 4
|
||||
m_DownscaleFallback: 0
|
||||
m_Width: 512
|
||||
m_Height: 512
|
||||
m_AntiAliasing: 1
|
||||
m_DepthFormat: 0
|
||||
m_ColorFormat: 14
|
||||
m_MipMap: 1
|
||||
m_GenerateMips: 1
|
||||
m_SRGB: 0
|
||||
m_UseDynamicScale: 0
|
||||
m_BindMS: 0
|
||||
m_TextureSettings:
|
||||
serializedVersion: 2
|
||||
m_FilterMode: 1
|
||||
m_Aniso: 0
|
||||
m_MipBias: 0
|
||||
m_WrapU: 2
|
||||
m_WrapV: 2
|
||||
m_WrapW: 2
|
||||
m_Dimension: 2
|
||||
m_VolumeDepth: 1
|
||||
8
Assets/Gravity.renderTexture.meta
Normal file
8
Assets/Gravity.renderTexture.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 52760f4ab4dd58647b2947db37572725
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 8400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Materials.meta
Normal file
8
Assets/Materials.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 3c50848eb7835204891c6f78524e3710
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
79
Assets/Materials/Gravity Well.mat
Normal file
79
Assets/Materials/Gravity Well.mat
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 6
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: Gravity Well
|
||||
m_Shader: {fileID: 4800000, guid: 105a94389fb66cf4bb41ad040d8c5fdb, type: 3}
|
||||
m_ShaderKeywords:
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap: {}
|
||||
disabledShaderPasses: []
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _BumpMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailAlbedoMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailMask:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailNormalMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _EmissionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MetallicGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _OcclusionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _ParallaxMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Floats:
|
||||
- _BumpScale: 1
|
||||
- _Cutoff: 0.5
|
||||
- _Depth: 100
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DstBlend: 0
|
||||
- _GlossMapScale: 1
|
||||
- _Glossiness: 0.5
|
||||
- _GlossyReflections: 1
|
||||
- _Metallic: 0
|
||||
- _Mode: 0
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.02
|
||||
- _Power: 4
|
||||
- _SmoothnessTextureChannel: 0
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
- _UVSec: 0
|
||||
- _ZWrite: 1
|
||||
m_Colors:
|
||||
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
8
Assets/Materials/Gravity Well.mat.meta
Normal file
8
Assets/Materials/Gravity Well.mat.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 44a8bbb89acb4e34c9f41a9da5842bb4
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 2100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
84
Assets/Materials/Zone Background.mat
Normal file
84
Assets/Materials/Zone Background.mat
Normal file
|
|
@ -0,0 +1,84 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 6
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: Zone Background
|
||||
m_Shader: {fileID: 4800000, guid: 0ec0ecdb30ff1614698ae885ebcd873d, type: 3}
|
||||
m_ShaderKeywords:
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap: {}
|
||||
disabledShaderPasses: []
|
||||
m_SavedProperties:
|
||||
serializedVersion: 3
|
||||
m_TexEnvs:
|
||||
- _BumpMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailAlbedoMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailMask:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailNormalMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _EmissionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MetallicGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _OcclusionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _ParallaxMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Floats:
|
||||
- _AngleFade: 8
|
||||
- _AngleWidth: 0.001
|
||||
- _BumpScale: 1
|
||||
- _Cutoff: 0.5
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DstBlend: 0
|
||||
- _GlossMapScale: 1
|
||||
- _Glossiness: 0.5
|
||||
- _GlossyReflections: 1
|
||||
- _HeightRange: 100
|
||||
- _LineFade: 8
|
||||
- _LineWidth: 0.001
|
||||
- _Metallic: 0
|
||||
- _Mode: 0
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.02
|
||||
- _SmoothnessTextureChannel: 0
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
- _StartHeight: 0
|
||||
- _UVSec: 0
|
||||
- _ZWrite: 1
|
||||
m_Colors:
|
||||
- _AngleColor: {r: 0.053221796, g: 0.49056602, b: 0.29599926, a: 1}
|
||||
- _Color: {r: 0.062299743, g: 0.2874376, b: 0.5283019, a: 1}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
8
Assets/Materials/Zone Background.mat.meta
Normal file
8
Assets/Materials/Zone Background.mat.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 90cead50364300d47bb35194fb52c117
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 2100000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Resources.meta
Normal file
8
Assets/Resources.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 766fda6a352c32f43bd8fa57c06042b0
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Resources/Icons.asset
(Stored with Git LFS)
Normal file
BIN
Assets/Resources/Icons.asset
(Stored with Git LFS)
Normal file
Binary file not shown.
8
Assets/Resources/Icons.asset.meta
Normal file
8
Assets/Resources/Icons.asset.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 50ac72e1e2474804287a2d4f1693f9b8
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Resources/Sprites.meta
Normal file
8
Assets/Resources/Sprites.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: f54a1a9bd4868164c851d251e87b1d73
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Resources/Sprites/add.png
(Stored with Git LFS)
Normal file
BIN
Assets/Resources/Sprites/add.png
(Stored with Git LFS)
Normal file
Binary file not shown.
110
Assets/Resources/Sprites/add.png.meta
Normal file
110
Assets/Resources/Sprites/add.png.meta
Normal file
|
|
@ -0,0 +1,110 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 1d55ddcd5a3c2354faea7e99db862d21
|
||||
TextureImporter:
|
||||
fileIDToRecycleName: {}
|
||||
externalObjects: {}
|
||||
serializedVersion: 9
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
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
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
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: 2
|
||||
alphaIsTransparency: 1
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 8
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 2
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: e0989b2b95dfc1f41a5c3b899d889c0b
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Resources/Sprites/remove.png
(Stored with Git LFS)
Normal file
BIN
Assets/Resources/Sprites/remove.png
(Stored with Git LFS)
Normal file
Binary file not shown.
110
Assets/Resources/Sprites/remove.png.meta
Normal file
110
Assets/Resources/Sprites/remove.png.meta
Normal file
|
|
@ -0,0 +1,110 @@
|
|||
fileFormatVersion: 2
|
||||
guid: f1aad09b4bf42ba4aa13a9fa1d97f01c
|
||||
TextureImporter:
|
||||
fileIDToRecycleName: {}
|
||||
externalObjects: {}
|
||||
serializedVersion: 9
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
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
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
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: 2
|
||||
alphaIsTransparency: 1
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 8
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 2
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: fb43f50872fe9b242b150185ffa5335e
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -50,7 +50,6 @@ LightmapSettings:
|
|||
m_BounceScale: 1
|
||||
m_IndirectOutputScale: 1
|
||||
m_AlbedoBoost: 1
|
||||
m_TemporalCoherenceThreshold: 1
|
||||
m_EnvironmentLightingMode: 0
|
||||
m_EnableBakedLightmaps: 0
|
||||
m_EnableRealtimeLightmaps: 0
|
||||
|
|
@ -113,40 +112,64 @@ NavMeshSettings:
|
|||
debug:
|
||||
m_Flags: 0
|
||||
m_NavMeshData: {fileID: 0}
|
||||
--- !u!1 &519420028
|
||||
--- !u!1 &408552537
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 5
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 519420032}
|
||||
- component: {fileID: 519420031}
|
||||
- component: {fileID: 519420029}
|
||||
- component: {fileID: 408552541}
|
||||
- component: {fileID: 408552540}
|
||||
- component: {fileID: 408552539}
|
||||
- component: {fileID: 408552538}
|
||||
m_Layer: 0
|
||||
m_Name: Main Camera
|
||||
m_TagString: MainCamera
|
||||
m_Name: Gravity Camera
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!81 &519420029
|
||||
--- !u!114 &408552538
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 408552537}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 04277e392af12204397c334ea824f957, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
BackgroundMaterial: {fileID: 2100000, guid: 90cead50364300d47bb35194fb52c117, type: 2}
|
||||
GravityTexture: {fileID: 0}
|
||||
GravityRenderer: {fileID: 1956833085}
|
||||
--- !u!81 &408552539
|
||||
AudioListener:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 519420028}
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 408552537}
|
||||
m_Enabled: 1
|
||||
--- !u!20 &519420031
|
||||
--- !u!20 &408552540
|
||||
Camera:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 519420028}
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 408552537}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 2
|
||||
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
|
||||
m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0}
|
||||
m_projectionMatrixMode: 1
|
||||
m_SensorSize: {x: 36, y: 24}
|
||||
m_LensShift: {x: 0, y: 0}
|
||||
m_GateFitMode: 2
|
||||
m_FocalLength: 50
|
||||
m_NormalizedViewPortRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
|
|
@ -161,7 +184,89 @@ Camera:
|
|||
m_Depth: -1
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_Bits: 256
|
||||
m_RenderingPath: -1
|
||||
m_TargetTexture: {fileID: 0}
|
||||
m_TargetDisplay: 0
|
||||
m_TargetEye: 0
|
||||
m_HDR: 1
|
||||
m_AllowMSAA: 0
|
||||
m_AllowDynamicResolution: 0
|
||||
m_ForceIntoRT: 0
|
||||
m_OcclusionCulling: 0
|
||||
m_StereoConvergence: 10
|
||||
m_StereoSeparation: 0.022
|
||||
--- !u!4 &408552541
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 408552537}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: -10}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &519420028
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 519420032}
|
||||
- component: {fileID: 519420031}
|
||||
- component: {fileID: 519420029}
|
||||
m_Layer: 0
|
||||
m_Name: Main Camera
|
||||
m_TagString: MainCamera
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!81 &519420029
|
||||
AudioListener:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 519420028}
|
||||
m_Enabled: 1
|
||||
--- !u!20 &519420031
|
||||
Camera:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 519420028}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 2
|
||||
m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0}
|
||||
m_projectionMatrixMode: 1
|
||||
m_SensorSize: {x: 36, y: 24}
|
||||
m_LensShift: {x: 0, y: 0}
|
||||
m_GateFitMode: 2
|
||||
m_FocalLength: 50
|
||||
m_NormalizedViewPortRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1
|
||||
height: 1
|
||||
near clip plane: 0.3
|
||||
far clip plane: 1000
|
||||
field of view: 60
|
||||
orthographic: 1
|
||||
orthographic size: 5
|
||||
m_Depth: 0
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 512
|
||||
m_RenderingPath: -1
|
||||
m_TargetTexture: {fileID: 0}
|
||||
m_TargetDisplay: 0
|
||||
|
|
@ -176,8 +281,9 @@ Camera:
|
|||
--- !u!4 &519420032
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 519420028}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: -10}
|
||||
|
|
@ -186,3 +292,187 @@ Transform:
|
|||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &1496237818
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1496237822}
|
||||
- component: {fileID: 1496237821}
|
||||
- component: {fileID: 1496237820}
|
||||
- component: {fileID: 1496237819}
|
||||
m_Layer: 8
|
||||
m_Name: Gravity Well
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!64 &1496237819
|
||||
MeshCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1496237818}
|
||||
m_Material: {fileID: 0}
|
||||
m_IsTrigger: 0
|
||||
m_Enabled: 1
|
||||
serializedVersion: 3
|
||||
m_Convex: 0
|
||||
m_CookingOptions: 14
|
||||
m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0}
|
||||
--- !u!23 &1496237820
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1496237818}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_DynamicOccludee: 1
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_RenderingLayerMask: 1
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
- {fileID: 2100000, guid: 44a8bbb89acb4e34c9f41a9da5842bb4, type: 2}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 0
|
||||
m_SelectedEditorRenderState: 3
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
--- !u!33 &1496237821
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1496237818}
|
||||
m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0}
|
||||
--- !u!4 &1496237822
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1496237818}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 2.5, y: -0.01, z: 0}
|
||||
m_LocalScale: {x: 10, y: 10, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 2
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &1956833083
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1956833087}
|
||||
- component: {fileID: 1956833086}
|
||||
- component: {fileID: 1956833085}
|
||||
- component: {fileID: 1956833084}
|
||||
m_Layer: 9
|
||||
m_Name: Zone BG
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!64 &1956833084
|
||||
MeshCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1956833083}
|
||||
m_Material: {fileID: 0}
|
||||
m_IsTrigger: 0
|
||||
m_Enabled: 1
|
||||
serializedVersion: 3
|
||||
m_Convex: 0
|
||||
m_CookingOptions: 14
|
||||
m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0}
|
||||
--- !u!23 &1956833085
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1956833083}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_DynamicOccludee: 1
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_RenderingLayerMask: 1
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
- {fileID: 2100000, guid: 90cead50364300d47bb35194fb52c117, type: 2}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 0
|
||||
m_SelectedEditorRenderState: 3
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
--- !u!33 &1956833086
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1956833083}
|
||||
m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0}
|
||||
--- !u!4 &1956833087
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1956833083}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: -5.19, y: 0.07, z: 0.00390625}
|
||||
m_LocalScale: {x: 11.261, y: 6.018, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 3
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
|
|
|
|||
494
Assets/Scripts/Behaviors.cs
Normal file
494
Assets/Scripts/Behaviors.cs
Normal file
|
|
@ -0,0 +1,494 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using MessagePack;
|
||||
using UniRx;
|
||||
using Unity.Mathematics;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Audio;
|
||||
using static Unity.Mathematics.math;
|
||||
using static Unity.Mathematics.noise;
|
||||
using Object = UnityEngine.Object;
|
||||
|
||||
public interface IItemBehavior
|
||||
{
|
||||
void Update(float delta);
|
||||
void FixedUpdate(float delta);
|
||||
Ship Ship { get; }
|
||||
Gear Item { get; }
|
||||
IItemBehaviorData Data { get; }
|
||||
}
|
||||
|
||||
public interface IActivatedItemBehavior : IItemBehavior
|
||||
{
|
||||
void Activate();
|
||||
void Deactivate();
|
||||
}
|
||||
|
||||
[Inspectable]
|
||||
[Union(0, typeof(CannonBehaviorData))]
|
||||
[Union(1, typeof(MissileBehaviorData))]
|
||||
[Union(2, typeof(ReactorBehaviorData))]
|
||||
// [Union(3, typeof(PlusUltraBehaviorData))]
|
||||
[Union(4, typeof(AfterburnerBehaviorData))]
|
||||
[Union(5, typeof(SensorBehaviorData))]
|
||||
public interface IItemBehaviorData
|
||||
{
|
||||
IItemBehavior CreateInstance(Ship ship, Gear item);
|
||||
// PerformanceStat[] DynamicStats { get; }
|
||||
//Type ItemType { get; }
|
||||
}
|
||||
|
||||
[Inspectable]
|
||||
[MessagePackObject]
|
||||
public class SensorBehaviorData : IItemBehaviorData
|
||||
{
|
||||
[Inspectable] [Key("radiance")] public PerformanceStat Radiance;
|
||||
[Inspectable] [Key("masking")] public PerformanceStat RadianceMasking;
|
||||
[Inspectable] [Key("sensitivity")] public PerformanceStat Sensitivity;
|
||||
[Inspectable] [Key("range")] public PerformanceStat Range;
|
||||
|
||||
public IItemBehavior CreateInstance(Ship ship, Gear item)
|
||||
{
|
||||
return new SensorBehavior(this, ship, item);
|
||||
}
|
||||
|
||||
[IgnoreMember] public PerformanceStat[] DynamicStats => new[] {Radiance, Sensitivity};
|
||||
}
|
||||
|
||||
public class SensorBehavior : IItemBehavior
|
||||
{
|
||||
private SensorBehaviorData _data;
|
||||
|
||||
public Ship Ship { get; }
|
||||
public Gear Item { get; }
|
||||
|
||||
public IItemBehaviorData Data => _data;
|
||||
|
||||
public SensorBehavior(SensorBehaviorData data, Ship ship, Gear item)
|
||||
{
|
||||
_data = data;
|
||||
Ship = ship;
|
||||
Item = item;
|
||||
}
|
||||
|
||||
public void Update(float delta)
|
||||
{
|
||||
// var ship = Hardpoint.Ship.Ship.transform;
|
||||
// var contacts =
|
||||
// Physics.OverlapSphere(ship.position, _data.Range.Evaluate(Hardpoint)).Where(c=>c.attachedRigidbody?.GetComponent<Targetable>()!=null).Select(c=>c.attachedRigidbody.GetComponent<Targetable>());
|
||||
// foreach (var contact in contacts)
|
||||
// {
|
||||
// var diff = (contact.transform.position - ship.position).Flatland();
|
||||
// var angle = acos(dot(ship.forward.Flatland().normalized,
|
||||
// diff.normalized)) / (float)PI;
|
||||
// var sens = _data.Sensitivity.Evaluate(Hardpoint) *
|
||||
// Hardpoint.Ship.HullData.VisibilityCurve.Evaluate(saturate(angle));
|
||||
// var vis = contact.Visibility / diff.sqrMagnitude;
|
||||
// if(vis > 1/sens)
|
||||
// Hardpoint.Ship.Contacts[contact] = Time.time;
|
||||
// }
|
||||
//
|
||||
// Hardpoint.Ship.VisibilitySources[this] = _data.Radiance.Evaluate(Hardpoint) / _data.RadianceMasking.Evaluate(Hardpoint);
|
||||
// TODO: Handle Active Detection / Visibility From Reflected Radiance
|
||||
}
|
||||
|
||||
public void FixedUpdate(float delta)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
[Inspectable]
|
||||
[MessagePackObject]
|
||||
public class AfterburnerBehaviorData : IItemBehaviorData
|
||||
{
|
||||
[Inspectable] [Key("thrust")] public PerformanceStat ThrustModifier;
|
||||
[Inspectable] [Key("speed")] public PerformanceStat SpeedModifier;
|
||||
[Inspectable] [Key("torque")] public PerformanceStat TorqueModifier;
|
||||
public IItemBehavior CreateInstance(Ship ship, Gear item)
|
||||
{
|
||||
return new AfterburnerBehavior(this, ship, item);
|
||||
}
|
||||
}
|
||||
|
||||
public class AfterburnerBehavior : IActivatedItemBehavior
|
||||
{
|
||||
private List<Dictionary<IItemBehavior,float>> _modifiers = new List<Dictionary<IItemBehavior, float>>();
|
||||
private AfterburnerBehaviorData _data;
|
||||
|
||||
public Ship Ship { get; }
|
||||
public Gear Item { get; }
|
||||
|
||||
public IItemBehaviorData Data => _data;
|
||||
|
||||
public AfterburnerBehavior(AfterburnerBehaviorData data, Ship ship, Gear item)
|
||||
{
|
||||
_data = data;
|
||||
Ship = ship;
|
||||
Item = item;
|
||||
}
|
||||
|
||||
public void Update(float delta)
|
||||
{
|
||||
}
|
||||
|
||||
public void FixedUpdate(float delta)
|
||||
{
|
||||
}
|
||||
|
||||
public void Activate()
|
||||
{
|
||||
var thrustMod = (Ship.GetEquipped(HardpointType.Thruster).EquippedItemData as Thruster).Thrust.GetScaleModifiers(Ship);
|
||||
_modifiers.Add(thrustMod);
|
||||
thrustMod.Add(this,_data.ThrustModifier.Evaluate(Item, Ship));
|
||||
|
||||
var speedMod = (Ship.Hull.EquippedItemData as Hull).TopSpeed.GetScaleModifiers(Ship);
|
||||
_modifiers.Add(speedMod);
|
||||
speedMod.Add(this,_data.SpeedModifier.Evaluate(Item, Ship));
|
||||
|
||||
var torqueMod = (Ship.GetEquipped(HardpointType.Thruster).EquippedItemData as Thruster).Torque.GetScaleModifiers(Ship);
|
||||
_modifiers.Add(torqueMod);
|
||||
torqueMod.Add(this,_data.TorqueModifier.Evaluate(Item, Ship));
|
||||
|
||||
Ship.ForceThrust = true;
|
||||
}
|
||||
|
||||
public void Deactivate()
|
||||
{
|
||||
Ship.ForceThrust = false;
|
||||
foreach (var mod in _modifiers)
|
||||
{
|
||||
mod.Remove(this);
|
||||
}
|
||||
_modifiers.Clear();
|
||||
}
|
||||
}
|
||||
|
||||
[Inspectable]
|
||||
[MessagePackObject]
|
||||
public class CannonBehaviorData : IItemBehaviorData
|
||||
{
|
||||
[MessagePackFormatter(typeof(UnityGameObjectFormatter))]
|
||||
[Inspectable] [Key("bullet")] public GameObject BulletPrefab;
|
||||
// [MessagePackFormatter(typeof(ClipListFormatter))]
|
||||
// [Inspectable] [Key("sounds")] public List<AudioClip> Sounds;
|
||||
[Inspectable] [Key("damageType")] public ProjectileType DamageType;
|
||||
[Inspectable] [Key("burstCount")] public int BurstCount;
|
||||
[Inspectable] [Key("burstTime")] public PerformanceStat BurstTime;
|
||||
[Inspectable] [Key("bulletRange")] public PerformanceStat Range;
|
||||
[Inspectable] [Key("spread")] public PerformanceStat Spread;
|
||||
[Inspectable] [Key("bulletInherit")] public float Inherit;
|
||||
[Inspectable] [Key("deflection")] public float Deflection;
|
||||
[Inspectable] [Key("visibility")] public PerformanceStat Visibility;
|
||||
[Inspectable] [Key("visibilityDecay")]public PerformanceStat VisibilityDecay;
|
||||
[Inspectable] [Key("bulletVelocity")] public PerformanceStat Velocity;
|
||||
[Inspectable] [Key("cooldown")] public PerformanceStat Cooldown;
|
||||
[Inspectable] [Key("damage")] public PerformanceStat Damage;
|
||||
[Inspectable] [Key("heat")] public PerformanceStat Heat;
|
||||
|
||||
public IItemBehavior CreateInstance(Ship ship, Gear item)
|
||||
{
|
||||
return new CannonBehavior(this, ship, item);
|
||||
}
|
||||
|
||||
[IgnoreMember] public PerformanceStat[] DynamicStats => new[] {BurstTime, Range, Spread, Velocity, Cooldown, Damage};
|
||||
}
|
||||
|
||||
public class CannonBehavior : IActivatedItemBehavior
|
||||
{
|
||||
private bool _firing;
|
||||
private float _cooldown; // normalized
|
||||
private CannonBehaviorData _cannon;
|
||||
public Ship Ship { get; }
|
||||
public Gear Item { get; }
|
||||
private float _firingVisibility;
|
||||
|
||||
public CannonBehavior(CannonBehaviorData c, Ship ship, Gear item)
|
||||
{
|
||||
_cannon = c;
|
||||
Ship = ship;
|
||||
Item = item;
|
||||
}
|
||||
|
||||
public void Activate()
|
||||
{
|
||||
// Debug.Log("Activating Cannon");
|
||||
// _firing = true;
|
||||
// Observable.EveryUpdate().TakeWhile(_ => _firing).Subscribe(_ =>
|
||||
// {
|
||||
// // Debug.Log($"Updating Observable {_cooldown}");
|
||||
// if (_cooldown < 0)
|
||||
// {
|
||||
// _cooldown = 1;
|
||||
// Fire(0);
|
||||
// if(_cannon.BurstCount>1)
|
||||
// Observable.Interval(TimeSpan.FromSeconds(_cannon.BurstTime.Evaluate(Hardpoint) / (_cannon.BurstCount-1))).Take(_cannon.BurstCount-1)
|
||||
// .Subscribe(l => Fire(l+1));
|
||||
// }
|
||||
// });
|
||||
}
|
||||
|
||||
private void Fire(long b)
|
||||
{
|
||||
// _firingVisibility += _cannon.Visibility.Evaluate(Hardpoint);
|
||||
// Hardpoint.Temperature += _cannon.Heat.Evaluate(Hardpoint) / Hardpoint.HeatCapacity;
|
||||
// var inst = GameObject.Instantiate(_cannon.BulletPrefab).transform;
|
||||
// Physics.IgnoreCollision(Hardpoint.Ship.Ship.GetComponent<Collider>(), inst.GetComponent<Collider>());
|
||||
// var bullet = inst.GetComponent<Bullet>();
|
||||
// bullet.Target = Hardpoint.Ship.Ship.Target;
|
||||
// bullet.Source = Hardpoint.Ship.Ship.Hitpoints;
|
||||
// bullet.Lifetime = _cannon.Range.Evaluate(Hardpoint) / _cannon.Velocity.Evaluate(Hardpoint);
|
||||
// bullet.Damage = _cannon.Damage.Evaluate(Hardpoint);
|
||||
// inst.position = Hardpoint.Proxy.position;
|
||||
// inst.rotation = Hardpoint.Proxy.rotation;
|
||||
// inst.GetComponent<Rigidbody>().velocity = _cannon.Velocity.Evaluate(Hardpoint) * Vector3.RotateTowards(-inst.forward, Hardpoint.Ship.Ship.Direction, _cannon.Deflection * Mathf.Deg2Rad, 1);
|
||||
// Hardpoint.Ship.Ship.AudioSource.PlayOneShot(_cannon.Sounds.RandomElement());
|
||||
// Debug.Log($"Firing bullet {b}");
|
||||
}
|
||||
|
||||
public void Deactivate()
|
||||
{
|
||||
_firing = false;
|
||||
}
|
||||
|
||||
public void Update(float delta)
|
||||
{
|
||||
_cooldown -= delta / _cannon.Cooldown.Evaluate(Item, Ship);
|
||||
|
||||
if (_firingVisibility < 0.01f)
|
||||
{
|
||||
Ship.VisibilitySources.Remove(this);
|
||||
}
|
||||
}
|
||||
|
||||
public void FixedUpdate(float delta)
|
||||
{
|
||||
_firingVisibility *= _cannon.VisibilityDecay.Evaluate(Item, Ship);
|
||||
}
|
||||
|
||||
public IItemBehaviorData Data => _cannon;
|
||||
}
|
||||
|
||||
[Inspectable]
|
||||
[MessagePackObject]
|
||||
public class MissileBehaviorData : IItemBehaviorData
|
||||
{
|
||||
// [MessagePackFormatter(typeof(UnityGameObjectFormatter))]
|
||||
// [Inspectable] [Key("missile")] public GameObject MissilePrefab;
|
||||
// [MessagePackFormatter(typeof(ClipListFormatter))]
|
||||
// [Inspectable] [Key("sounds")] public List<AudioClip> Sounds;
|
||||
// [MessagePackFormatter(typeof(UnityAudioClipFormatter))]
|
||||
// [Inspectable] [Key("beepSound")] public AudioClip BeepSound;
|
||||
// [Inspectable] [Key("beepCount")] public int Beeps;
|
||||
[Inspectable] [Key("damageType")] public ProjectileType DamageType;
|
||||
[Inspectable] [Key("burstCount")] public int BurstCount;
|
||||
[Inspectable] [Key("burstTime")] public PerformanceStat BurstTime;
|
||||
[Inspectable] [Key("range")] public PerformanceStat Range;
|
||||
[Inspectable] [Key("guidance")] public AnimationCurve GuidanceCurve;
|
||||
[Inspectable] [Key("thrustCurve")] public AnimationCurve ThrustCurve;
|
||||
[Inspectable] [Key("liftCurve")] public AnimationCurve LiftCurve;
|
||||
[Inspectable] [Key("thrust")] public PerformanceStat Thrust;
|
||||
[Inspectable] [Key("deflection")] public float Deflection;
|
||||
[Inspectable] [Key("lockOnBuffer")] public float LockOnDegrees;
|
||||
[Inspectable] [Key("frequency")] public float DodgeFrequency;
|
||||
[Inspectable] [Key("visibility")] public PerformanceStat Visibility;
|
||||
[Inspectable] [Key("launchSpeed")] public PerformanceStat LaunchSpeed;
|
||||
[Inspectable] [Key("missileSpeed")] public PerformanceStat MissileSpeed;
|
||||
[Inspectable] [Key("cooldown")] public PerformanceStat Cooldown;
|
||||
[Inspectable] [Key("lockOnTime")] public PerformanceStat LockOnTime;
|
||||
[Inspectable] [Key("damage")] public PerformanceStat Damage;
|
||||
[Inspectable] [Key("heat")] public PerformanceStat Heat;
|
||||
|
||||
|
||||
public IItemBehavior CreateInstance(Ship ship, Gear item)
|
||||
{
|
||||
return new MissileBehavior(this, ship, item);
|
||||
}
|
||||
|
||||
[IgnoreMember] public PerformanceStat[] DynamicStats => new[] {BurstTime, Range, Thrust, LaunchSpeed, MissileSpeed, Cooldown, Damage};
|
||||
}
|
||||
|
||||
public class MissileBehavior : IActivatedItemBehavior
|
||||
{
|
||||
private bool _locking;
|
||||
private float _lockingTimer;
|
||||
private float _cooldown; // normalized
|
||||
private bool _locked;
|
||||
|
||||
private MissileBehaviorData _missile;
|
||||
public Ship Ship { get; }
|
||||
public Gear Item { get; }
|
||||
private float _firingVisibility;
|
||||
private AudioSource _audio;
|
||||
|
||||
public MissileBehavior(MissileBehaviorData m, Ship ship, Gear item)
|
||||
{
|
||||
_missile = m;
|
||||
Ship = ship;
|
||||
Item = item;
|
||||
// _audio = hp.Proxy.GetComponent<AudioSource>();
|
||||
// if(_audio==null)
|
||||
// _audio = hp.Proxy.gameObject.AddComponent<AudioSource>();
|
||||
// _audio.clip = _missile.BeepSound;
|
||||
// _audio.loop = true;
|
||||
// _audio.volume = .5f;
|
||||
}
|
||||
|
||||
public void Activate()
|
||||
{
|
||||
_locking = true;
|
||||
_lockingTimer = 1;
|
||||
}
|
||||
|
||||
private void Fire(long b)
|
||||
{
|
||||
|
||||
// _firingVisibility += _missile.Visibility.Evaluate(Hardpoint);
|
||||
// Hardpoint.Temperature += _missile.Heat.Evaluate(Hardpoint) / Hardpoint.HeatCapacity;
|
||||
// var inst = GameObject.Instantiate(_missile.MissilePrefab).transform;
|
||||
// var missile = inst.GetComponent<Bullet>();
|
||||
// missile.Target = Hardpoint.Ship.Ship.Target;
|
||||
// missile.Source = Hardpoint.Ship.Ship.Hitpoints;
|
||||
// missile.Lifetime = _missile.Range.Evaluate(Hardpoint) / _missile.MissileSpeed.Evaluate(Hardpoint);
|
||||
// missile.Damage = _missile.Damage.Evaluate(Hardpoint);
|
||||
// inst.position = Hardpoint.Proxy.position;
|
||||
// inst.rotation = Hardpoint.Proxy.rotation;
|
||||
// inst.GetComponent<Rigidbody>().velocity = _missile.LaunchSpeed.Evaluate(Hardpoint) * Hardpoint.Proxy.forward;
|
||||
// Physics.IgnoreCollision(Hardpoint.Ship.Ship.GetComponent<Collider>(), inst.GetComponent<Collider>());
|
||||
// var proj = inst.gameObject.AddComponent<GuidedProjectile>();
|
||||
// proj.GuidanceCurve = _missile.GuidanceCurve;
|
||||
// proj.ThrustCurve = _missile.ThrustCurve;
|
||||
// proj.LiftCurve = _missile.LiftCurve;
|
||||
// proj.TopSpeed = _missile.MissileSpeed.Evaluate(Hardpoint);
|
||||
// proj.Frequency = _missile.DodgeFrequency;
|
||||
// proj.Target = Hardpoint.Ship.Ship.Target;
|
||||
// proj.Source = Hardpoint.Ship.Ship.Hitpoints;
|
||||
// proj.Thrust = _missile.Thrust.Evaluate(Hardpoint);
|
||||
// _audio.PlayOneShot(_missile.Sounds.RandomElement());
|
||||
// Debug.Log($"Firing bullet {b}");
|
||||
}
|
||||
|
||||
public void Deactivate()
|
||||
{
|
||||
// if (_lockingTimer < 0)
|
||||
// {
|
||||
// Fire(0);
|
||||
// if(_missile.BurstCount>1)
|
||||
// Observable.Interval(TimeSpan.FromSeconds(_missile.BurstTime.Evaluate(Hardpoint) / (_missile.BurstCount-1))).Take(_missile.BurstCount-1)
|
||||
// .Subscribe(l => Fire(l+1));
|
||||
// _lockingTimer = _cooldown = 1;
|
||||
// _locking = _locked = false;
|
||||
// _audio.Stop();
|
||||
// }
|
||||
// _locking = false;
|
||||
// _lockingTimer = 1;
|
||||
}
|
||||
|
||||
public void Update(float delta)
|
||||
{
|
||||
// if (Ship.Target == null)
|
||||
// return;
|
||||
//
|
||||
// if (_locking && _cooldown < 0)
|
||||
// {
|
||||
// //if the crosshair stays under a certain LockOnBuffer distance for a certain amount of time (LockOnTime)
|
||||
// if (acos(Vector2.Dot(Ship.Direction, (Ship.Target.transform.position-Ship.transform.position).normalized)) * Mathf.Rad2Deg < _missile.LockOnDegrees)
|
||||
// {
|
||||
// var d = delta / _missile.LockOnTime.Evaluate(Hardpoint);
|
||||
// _lockingTimer -= d;
|
||||
// if (!_locked && _lockingTimer < 0)
|
||||
// {
|
||||
// _locked = true;
|
||||
// _audio.Play();
|
||||
// } else if(Mathf.Repeat(_lockingTimer,1.0f/(_missile.Beeps+1))-d<0)
|
||||
// GameManager.Instance.InterfaceAudio.PlayOneShot(_missile.BeepSound);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// _lockingTimer = 1;
|
||||
// _audio.Stop();
|
||||
// }
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// _cooldown -= delta / _missile.Cooldown.Evaluate(Hardpoint);
|
||||
// }
|
||||
//
|
||||
//
|
||||
// if (_firingVisibility > 0.01f)
|
||||
// {
|
||||
// Hardpoint.Ship.Visibility += _firingVisibility;
|
||||
// _firingVisibility = 0;
|
||||
// }
|
||||
|
||||
|
||||
}
|
||||
|
||||
public void FixedUpdate(float delta)
|
||||
{
|
||||
}
|
||||
|
||||
public IItemBehaviorData Data => _missile;
|
||||
}
|
||||
|
||||
[MessagePackObject]
|
||||
public class ReactorBehaviorData : IItemBehaviorData
|
||||
{
|
||||
[Inspectable] [Key("charge")] public PerformanceStat Charge;
|
||||
[Inspectable] [Key("capacitance")] public PerformanceStat Capacitance;
|
||||
[Inspectable] [Key("efficiency")] public PerformanceStat Efficiency;
|
||||
[Inspectable] [Key("overload")] public PerformanceStat OverloadEfficiency;
|
||||
[Inspectable] [Key("underload")] public PerformanceStat UnderloadRecovery;
|
||||
|
||||
public IItemBehavior CreateInstance(Ship ship, Gear item)
|
||||
{
|
||||
return new ReactorBehavior(this, ship, item);
|
||||
}
|
||||
|
||||
[IgnoreMember] public PerformanceStat[] DynamicStats => new[] {Charge, Efficiency};
|
||||
}
|
||||
|
||||
public class ReactorBehavior : IItemBehavior
|
||||
{
|
||||
private ReactorBehaviorData _data;
|
||||
|
||||
public Ship Ship { get; }
|
||||
public Gear Item { get; }
|
||||
|
||||
public IItemBehaviorData Data => _data;
|
||||
|
||||
public ReactorBehavior(ReactorBehaviorData data, Ship ship, Gear item)
|
||||
{
|
||||
_data = data;
|
||||
Ship = ship;
|
||||
Item = item;
|
||||
}
|
||||
|
||||
public void FixedUpdate(float delta)
|
||||
{
|
||||
var cap = _data.Capacitance.Evaluate(Item, Ship);
|
||||
var charge = _data.Charge.Evaluate(Item, Ship) * delta;
|
||||
var efficiency = _data.Efficiency.Evaluate(Item, Ship);
|
||||
|
||||
Ship.AddHeat(charge / efficiency);
|
||||
Ship.Charge += charge;
|
||||
|
||||
if (Ship.Charge > cap)
|
||||
{
|
||||
Ship.AddHeat(-(Ship.Charge - cap) / efficiency * (1 - 1 / _data.UnderloadRecovery.Evaluate(Item, Ship)));
|
||||
Ship.Charge = cap;
|
||||
}
|
||||
|
||||
if (Ship.Charge < 0)
|
||||
{
|
||||
Ship.AddHeat( -Ship.Charge / (_data.OverloadEfficiency.Evaluate(Item, Ship)));
|
||||
Ship.Charge = 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void Update(float delta)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 53b469b8da6bd4e4bb62cb13d1ce301d
|
||||
guid: c15c37d98e3dc844aafd0dedc16ce0ae
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
|
|
@ -128,18 +128,4 @@ public class Database
|
|||
}, null);
|
||||
watcher.EnableRaisingEvents = true;
|
||||
}
|
||||
}
|
||||
|
||||
public interface IDatabaseEntry
|
||||
{
|
||||
DatabaseEntry Entry { get; }
|
||||
}
|
||||
|
||||
[Inspectable]
|
||||
[MessagePackObject]
|
||||
public class DatabaseEntry
|
||||
{
|
||||
[Key("id")] public Guid ID = Guid.NewGuid();
|
||||
[Inspectable] [Key("name")] public string Name;
|
||||
[Inspectable] [Key("description")] public string Description;
|
||||
}
|
||||
596
Assets/Scripts/DatabaseItems.cs
Normal file
596
Assets/Scripts/DatabaseItems.cs
Normal file
|
|
@ -0,0 +1,596 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using MessagePack;
|
||||
using UnityEngine;
|
||||
using Unity.Mathematics;
|
||||
using UnityEngine.UI.Extensions;
|
||||
// TODO: USE THIS EVERYWHERE
|
||||
using static Unity.Mathematics.math;
|
||||
#if UNITY_EDITOR
|
||||
using UnityEditor;
|
||||
#endif
|
||||
|
||||
public class NameAttribute : Attribute
|
||||
{
|
||||
public string Name;
|
||||
|
||||
public NameAttribute(string name)
|
||||
{
|
||||
Name = name;
|
||||
}
|
||||
}
|
||||
|
||||
public class UpdateOrderAttribute : Attribute
|
||||
{
|
||||
public int Order;
|
||||
|
||||
public UpdateOrderAttribute(int order)
|
||||
{
|
||||
Order = order;
|
||||
}
|
||||
}
|
||||
|
||||
public class GlobalData : IDatabaseEntry
|
||||
{
|
||||
[Inspectable] [Key("entry")] public DatabaseEntry DatabaseEntry = new DatabaseEntry();
|
||||
|
||||
[Inspectable] [Key("targetPersistenceDuration")]
|
||||
public float TargetPersistenceDuration;
|
||||
[Inspectable] [Key("heatRadiationPower")]
|
||||
public float HeatRadiationPower;
|
||||
[Inspectable] [Key("heatRadiationMultiplier")]
|
||||
public float HeatRadiationMultiplier;
|
||||
|
||||
[IgnoreMember] public static GlobalData Instance => Database.GetAll<GlobalData>().FirstOrDefault();
|
||||
[IgnoreMember] public DatabaseEntry Entry => DatabaseEntry;
|
||||
}
|
||||
|
||||
[Union(5, typeof(Hull))]
|
||||
[Union(6, typeof(Shield))]
|
||||
[Union(9, typeof(Thruster))]
|
||||
[Union(12, typeof(EquippableItem))]
|
||||
public interface IEquippable : ICraftable
|
||||
{
|
||||
HardpointType HardpointType { get; }
|
||||
EquippableData Equippable { get; }
|
||||
}
|
||||
|
||||
[Union(5, typeof(Hull))]
|
||||
[Union(6, typeof(Shield))]
|
||||
[Union(9, typeof(Thruster))]
|
||||
[Union(12, typeof(CraftedItem))]
|
||||
[Union(13, typeof(EquippableItem))]
|
||||
public interface ICraftable : IItem
|
||||
{
|
||||
Dictionary<Guid, int> CraftingIngredients { get; }
|
||||
}
|
||||
|
||||
[Union(5, typeof(Hull))]
|
||||
[Union(6, typeof(Shield))]
|
||||
[Union(9, typeof(Thruster))]
|
||||
[Union(12, typeof(ItemData))]
|
||||
[Union(13, typeof(CraftedItem))]
|
||||
[Union(14, typeof(EquippableItem))]
|
||||
public interface IItem : IDatabaseEntry
|
||||
{
|
||||
ItemData Data { get; }
|
||||
}
|
||||
|
||||
[Union(5, typeof(Hull))]
|
||||
[Union(6, typeof(Shield))]
|
||||
[Union(9, typeof(Thruster))]
|
||||
[Union(12, typeof(ItemData))]
|
||||
[Union(13, typeof(CraftedItem))]
|
||||
[Union(14, typeof(LoadoutDefinition))]
|
||||
[Union(15, typeof(ZoneData))]
|
||||
[Union(16, typeof(SimpleCommodity))]
|
||||
[Union(17, typeof(CompoundCommodity))]
|
||||
[Union(18, typeof(Gear))]
|
||||
[Union(19, typeof(EquippableItem))]
|
||||
//[Union(21, typeof(ContractData))]
|
||||
//[Union(22, typeof(Station))]
|
||||
[Union(23, typeof(Corporation))]
|
||||
[Union(24, typeof(Player))]
|
||||
[Union(25, typeof(GlobalData))]
|
||||
public interface IDatabaseEntry
|
||||
{
|
||||
DatabaseEntry Entry { get; }
|
||||
}
|
||||
|
||||
[Union(0, typeof(SimpleCommodity))]
|
||||
[Union(1, typeof(CompoundCommodity))]
|
||||
[Union(2, typeof(Gear))]
|
||||
public interface IItemInstance : IDatabaseEntry
|
||||
{
|
||||
Guid ItemGuid { get; }
|
||||
IItem ItemData { get; }
|
||||
float Mass { get; }
|
||||
}
|
||||
|
||||
[Union(0, typeof(Gear))]
|
||||
[Union(1, typeof(CompoundCommodity))]
|
||||
public interface ICraftedItemInstance : IItemInstance
|
||||
{
|
||||
float CraftedQuality { get; }
|
||||
IEnumerable<IItemInstance> CraftedIngredients { get; }
|
||||
}
|
||||
|
||||
[Inspectable]
|
||||
[MessagePackObject]
|
||||
public class DatabaseEntry
|
||||
{
|
||||
[Key("id")] public Guid ID = Guid.NewGuid();
|
||||
[Inspectable] [Key("name")] public string Name;
|
||||
[Inspectable] [Key("description")] public string Description;
|
||||
}
|
||||
|
||||
[Inspectable]
|
||||
[MessagePackObject]
|
||||
[Name("Simple Commodity")]
|
||||
public class ItemData : IItem
|
||||
{
|
||||
[Inspectable] [Key("entry")] public DatabaseEntry DatabaseEntry = new DatabaseEntry();
|
||||
[Inspectable] [Key("mass")] public float Mass;
|
||||
[Inspectable] [Key("size")] public float Size;
|
||||
|
||||
[RangedIntInspectable(0, 20)] [Key("level")] public int TechLevel;
|
||||
|
||||
[IgnoreMember] public ItemData Data => this;
|
||||
|
||||
[IgnoreMember] public DatabaseEntry Entry => DatabaseEntry;
|
||||
}
|
||||
|
||||
[MessagePackObject]
|
||||
public class EquippableItem : IEquippable
|
||||
{
|
||||
[Inspectable] [Key("hardpointType")] public HardpointType Hardpoint;
|
||||
[Inspectable] [Key("itemData")] public ItemData ItemData = new ItemData();
|
||||
[Inspectable] [Key("equippableData")] public EquippableData EquippableData = new EquippableData();
|
||||
[Inspectable] [Key("ingredients")] public Dictionary<Guid, int> Ingredients = new Dictionary<Guid, int>();
|
||||
|
||||
[IgnoreMember] public HardpointType HardpointType => Hardpoint;
|
||||
[IgnoreMember] public EquippableData Equippable => EquippableData;
|
||||
[IgnoreMember] public ItemData Data => ItemData;
|
||||
[IgnoreMember] public Dictionary<Guid, int> CraftingIngredients => Ingredients;
|
||||
[IgnoreMember] public DatabaseEntry Entry => ItemData.Entry;
|
||||
|
||||
}
|
||||
|
||||
[Inspectable]
|
||||
[MessagePackObject]
|
||||
public class EquippableData
|
||||
{
|
||||
[Inspectable] [Key("draw")] public PerformanceStat EnergyDraw;
|
||||
// [Inspectable] [Key("conductivity")] public float ThermalConductivity;
|
||||
// [Inspectable] [Key("specificHeat")] public float SpecificHeat;
|
||||
[Inspectable] [Key("performance")] public AnimationCurve HeatPerformanceCurve;
|
||||
[TemperatureInspectable] [Key("minTemp")] public float MinimumTemperature;
|
||||
[TemperatureInspectable] [Key("maxTemp")] public float MaximumTemperature;
|
||||
[Inspectable] [Key("ruggedness")] public float Ruggedness;
|
||||
[Inspectable] [Key("durability")] public float Durability;
|
||||
[Inspectable] [Key("durabilityExponent")] public PerformanceStat DurabilityExponent;
|
||||
[Inspectable] [Key("heatExponent")] public PerformanceStat HeatExponent;
|
||||
[Inspectable] [Key("behaviors")] public List<IItemBehaviorData> Behaviors = new List<IItemBehaviorData>();
|
||||
|
||||
[IgnoreMember] private const int STEPS = 64;
|
||||
|
||||
[IgnoreMember] private float? _optimum;
|
||||
[IgnoreMember]
|
||||
public float OptimalTemperature
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_optimum==null)
|
||||
{
|
||||
var samples = Enumerable.Range(0, STEPS).Select(i => (float) i / STEPS).ToArray();
|
||||
float max = 0;
|
||||
_optimum = 0;
|
||||
foreach (var f in samples)
|
||||
{
|
||||
var p = HeatPerformanceCurve?.Evaluate(f)??0;
|
||||
if (p > max)
|
||||
{
|
||||
max = p;
|
||||
_optimum = f;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return (float) (MinimumTemperature + _optimum * (MaximumTemperature - MinimumTemperature));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[MessagePackObject]
|
||||
[Name("Compound Commodity")]
|
||||
public class CraftedItem : ICraftable
|
||||
{
|
||||
[Inspectable] [Key("itemData")] public ItemData ItemData = new ItemData();
|
||||
[Inspectable] [Key("ingredients")] public Dictionary<Guid, int> Ingredients = new Dictionary<Guid, int>();
|
||||
|
||||
[IgnoreMember] public ItemData Data => ItemData;
|
||||
[IgnoreMember] public Dictionary<Guid, int> CraftingIngredients => Ingredients;
|
||||
[IgnoreMember] public DatabaseEntry Entry => ItemData.Entry;
|
||||
}
|
||||
|
||||
[MessagePackObject]
|
||||
public class Hull : IEquippable
|
||||
{
|
||||
[Inspectable] [Key("itemData")] public ItemData ItemData = new ItemData();
|
||||
[Inspectable] [Key("equippableData")] public EquippableData EquippableData = new EquippableData();
|
||||
[Inspectable] [Key("ingredients")] public Dictionary<Guid, int> Ingredients = new Dictionary<Guid, int>();
|
||||
[Inspectable] [Key("hullCapacity")] public PerformanceStat Capacity;
|
||||
[Inspectable] [Key("traction")] public PerformanceStat Traction;
|
||||
[Inspectable] [Key("topSpeed")] public PerformanceStat TopSpeed;
|
||||
[Inspectable] [Key("emissivity")] public PerformanceStat Emissivity;
|
||||
[Inspectable] [Key("crossSection")] public PerformanceStat CrossSection;
|
||||
[Key("schemaSprite")] [MessagePackFormatter(typeof(UnitySpriteFormatter))]
|
||||
public Sprite Schematic;
|
||||
[Inspectable] [Key("hardpoints")] public List<HardpointData> Hardpoints = new List<HardpointData>();
|
||||
[Inspectable] [Key("visibility")] public AnimationCurve VisibilityCurve;
|
||||
[MessagePackFormatter(typeof(UnityGameObjectFormatter))]
|
||||
[Inspectable] [Key("prefab")] public GameObject Prefab;
|
||||
|
||||
[IgnoreMember] public HardpointType HardpointType => HardpointType.Hull;
|
||||
[IgnoreMember] public EquippableData Equippable => EquippableData;
|
||||
[IgnoreMember] public ItemData Data => ItemData;
|
||||
[IgnoreMember] public Dictionary<Guid, int> CraftingIngredients => Ingredients;
|
||||
[IgnoreMember] public DatabaseEntry Entry => ItemData.Entry;
|
||||
}
|
||||
|
||||
//[MessagePackObject]
|
||||
//public class Sensor : IEquippable
|
||||
//{
|
||||
// [Key("itemData")] public ItemData ItemData = new ItemData();
|
||||
// [Key("equippableData")] public EquippableData EquippableData = new EquippableData();
|
||||
// [Key("ingredients")] public Dictionary<Guid, int> Ingredients = new Dictionary<Guid, int>();
|
||||
// [Key("radiance")] public PerformanceStat Radiance;
|
||||
// [Key("masking")] public PerformanceStat RadianceMasking;
|
||||
// [Key("sensitivity")] public PerformanceStat Sensitivity;
|
||||
//
|
||||
// [IgnoreMember] public HardpointType HardpointType => HardpointType.Sensors;
|
||||
// [IgnoreMember] public EquippableData Equippable => EquippableData;
|
||||
// [IgnoreMember] public ItemData Data => ItemData;
|
||||
// [IgnoreMember] public Dictionary<Guid, int> CraftingIngredients => Ingredients;
|
||||
// [IgnoreMember] public DatabaseEntry Entry => ItemData.Entry;
|
||||
//}
|
||||
//
|
||||
[MessagePackObject]
|
||||
public class Shield : IEquippable
|
||||
{
|
||||
[Inspectable] [Key("itemData")]
|
||||
public ItemData ItemData = new ItemData();
|
||||
|
||||
[Inspectable] [Key("equippableData")]
|
||||
public EquippableData EquippableData = new EquippableData();
|
||||
|
||||
[Inspectable] [Key("ingredients")]
|
||||
public Dictionary<Guid, int> Ingredients = new Dictionary<Guid, int>();
|
||||
|
||||
[Inspectable] [Key("efficiency")]
|
||||
public PerformanceStat Efficiency;
|
||||
|
||||
[Inspectable] [Key("shielding")]
|
||||
public PerformanceStat Shielding;
|
||||
|
||||
[IgnoreMember] public HardpointType HardpointType => HardpointType.Shield;
|
||||
[IgnoreMember] public EquippableData Equippable => EquippableData;
|
||||
[IgnoreMember] public ItemData Data => ItemData;
|
||||
[IgnoreMember] public Dictionary<Guid, int> CraftingIngredients => Ingredients;
|
||||
[IgnoreMember] public DatabaseEntry Entry => ItemData.Entry;
|
||||
}
|
||||
|
||||
[MessagePackObject]
|
||||
public class Thruster : IEquippable
|
||||
{
|
||||
[Inspectable] [Key("itemData")] public ItemData ItemData = new ItemData();
|
||||
[Inspectable] [Key("equippableData")] public EquippableData EquippableData = new EquippableData();
|
||||
[Inspectable] [Key("ingredients")] public Dictionary<Guid, int> Ingredients = new Dictionary<Guid, int>();
|
||||
[Inspectable] [Key("thrust")] public PerformanceStat Thrust;
|
||||
[Inspectable] [Key("torque")] public PerformanceStat Torque;
|
||||
[Inspectable] [Key("visibility")] public PerformanceStat Visibility;
|
||||
[Inspectable] [Key("thrusterHeat")] public PerformanceStat Heat;
|
||||
// [Inspectable] [Key("minSound")] public GranularEmitterStats MinSound;
|
||||
// [Inspectable] [Key("maxSound")] public GranularEmitterStats MaxSound;
|
||||
// [Inspectable] [Key("time")] public float SoundTransitionTime;
|
||||
// [Inspectable] [Key("perlin")] public bool OscillatorPerlin;
|
||||
// [MessagePackFormatter(typeof(UnityAudioClipFormatter))]
|
||||
// [Inspectable] [Key("clip")] public AudioClip Clip;
|
||||
|
||||
[IgnoreMember] public HardpointType HardpointType => HardpointType.Thruster;
|
||||
[IgnoreMember] public EquippableData Equippable => EquippableData;
|
||||
[IgnoreMember] public ItemData Data => ItemData;
|
||||
[IgnoreMember] public Dictionary<Guid, int> CraftingIngredients => Ingredients;
|
||||
[IgnoreMember] public DatabaseEntry Entry => ItemData.Entry;
|
||||
}
|
||||
|
||||
//[MessagePackObject]
|
||||
//public class Launcher : IEquippable
|
||||
//{
|
||||
// [Key("itemData")] public ItemData ItemData = new ItemData();
|
||||
// [Key("equippableData")] public EquippableData EquippableData = new EquippableData();
|
||||
//// [Key("weaponData")] public WeaponData WeaponData = new WeaponData();
|
||||
// [Key("ingredients")] public Dictionary<Guid, int> Ingredients = new Dictionary<Guid, int>();
|
||||
// [MessagePackFormatter(typeof(UnityGameObjectFormatter))]
|
||||
// [Key("projectile")] public GameObject ProjectilePrefab;
|
||||
// [Key("launcherCaliber")] public LauncherCaliber Caliber;
|
||||
// [Key("salvoDuration")] public PerformanceStat SalvoDuration;
|
||||
// [Key("salvoSize")] public int SalvoSize;
|
||||
//
|
||||
// [IgnoreMember] public HardpointType HardpointType => HardpointType.Launcher;
|
||||
// [IgnoreMember] public EquippableData Equippable => EquippableData;
|
||||
// [IgnoreMember] public ItemData Data => ItemData;
|
||||
// [IgnoreMember] public Dictionary<Guid, int> CraftingIngredients => Ingredients;
|
||||
//// [IgnoreMember] public WeaponData Weapon => WeaponData;
|
||||
// [IgnoreMember] public DatabaseEntry Entry => ItemData.Entry;
|
||||
//}
|
||||
|
||||
//[MessagePackObject]
|
||||
//public class Beam : IEquippable
|
||||
//{
|
||||
// [Key("itemData")] public ItemData ItemData = new ItemData();
|
||||
// [Key("equippableData")] public EquippableData EquippableData = new EquippableData();
|
||||
//// [Key("weaponData")] public WeaponData WeaponData = new WeaponData();
|
||||
// [Key("ingredients")] public Dictionary<Guid, int> Ingredients = new Dictionary<Guid, int>();
|
||||
// [Key("duration")] public PerformanceStat Duration;
|
||||
// [Key("diameter")] public PerformanceStat Diameter;
|
||||
// [Key("amplitude")] public AnimationCurve Amplitude;
|
||||
// [MessagePackFormatter(typeof(UnityMaterialFormatter))]
|
||||
// [Key("material")] public Material BeamMaterial;
|
||||
// [Key("damageType")] public ProjectileType DamageType;
|
||||
//
|
||||
// [IgnoreMember] public HardpointType HardpointType => DamageType==ProjectileType.Physical?HardpointType.Ballistic:HardpointType.Energy;
|
||||
// [IgnoreMember] public EquippableData Equippable => EquippableData;
|
||||
// [IgnoreMember] public ItemData Data => ItemData;
|
||||
// [IgnoreMember] public Dictionary<Guid, int> CraftingIngredients => Ingredients;
|
||||
//// [IgnoreMember] public WeaponData Weapon => WeaponData;
|
||||
// [IgnoreMember] public DatabaseEntry Entry => ItemData.Entry;
|
||||
//}
|
||||
|
||||
[MessagePackObject]
|
||||
public struct PerformanceStat
|
||||
{
|
||||
[Key("min")]
|
||||
public float Min;
|
||||
[Key("max")]
|
||||
public float Max;
|
||||
[Key("durabilityDependent")]
|
||||
public bool DurabilityDependent;
|
||||
[Key("heatDependent")]
|
||||
public bool HeatDependent;
|
||||
[Key("qualityExponent")]
|
||||
public float QualityExponent;
|
||||
[Key("ingredient")]
|
||||
public Guid Ingredient;
|
||||
|
||||
[IgnoreMember] private Dictionary<Ship,Dictionary<IItemBehavior,float>> _scaleModifiers;
|
||||
[IgnoreMember] private Dictionary<Ship,Dictionary<IItemBehavior,float>> _constantModifiers;
|
||||
|
||||
[IgnoreMember]
|
||||
private Dictionary<Ship,Dictionary<IItemBehavior, float>> ScaleModifiers
|
||||
{
|
||||
get { return _scaleModifiers ?? (_scaleModifiers = new Dictionary<Ship,Dictionary<IItemBehavior, float>>()); }
|
||||
}
|
||||
|
||||
[IgnoreMember]
|
||||
private Dictionary<Ship,Dictionary<IItemBehavior, float>> ConstantModifiers
|
||||
{
|
||||
get { return _constantModifiers ?? (_constantModifiers = new Dictionary<Ship,Dictionary<IItemBehavior, float>>()); }
|
||||
}
|
||||
|
||||
public Dictionary<IItemBehavior, float> GetScaleModifiers(Ship ship)
|
||||
{
|
||||
if(!ScaleModifiers.ContainsKey(ship))
|
||||
ScaleModifiers[ship] = new Dictionary<IItemBehavior, float>();
|
||||
|
||||
return ScaleModifiers[ship];
|
||||
}
|
||||
|
||||
public Dictionary<IItemBehavior, float> GetConstantModifiers(Ship ship)
|
||||
{
|
||||
if(!ConstantModifiers.ContainsKey(ship))
|
||||
ConstantModifiers[ship] = new Dictionary<IItemBehavior, float>();
|
||||
|
||||
return ConstantModifiers[ship];
|
||||
}
|
||||
|
||||
// Determine quality of either the item itself or the specific ingredient this stat depends on
|
||||
public float Quality(Gear item)
|
||||
{
|
||||
Guid ingredientID = Ingredient;
|
||||
float quality;
|
||||
if (ingredientID == Guid.Empty)
|
||||
quality = item.CompoundQuality();
|
||||
else
|
||||
{
|
||||
var ingredientInstance =
|
||||
item.CraftedIngredients.FirstOrDefault(i => i.ItemGuid == ingredientID) as ICraftedItemInstance;
|
||||
if (ingredientInstance == null)
|
||||
throw new InvalidOperationException(
|
||||
$"Item {item.Entry.Name} has invalid crafting ingredient set for performance stat.");
|
||||
quality = ingredientInstance.CompoundQuality();
|
||||
}
|
||||
|
||||
return quality;
|
||||
}
|
||||
|
||||
// Returns stat when not equipped
|
||||
public float Evaluate(Gear item)
|
||||
{
|
||||
var quality = pow(Quality(item), QualityExponent);
|
||||
|
||||
var result = lerp(Min, Max, quality);
|
||||
|
||||
if (float.IsNaN(result))
|
||||
return Min;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
// Returns stat using ship temperature and modifiers
|
||||
public float Evaluate(Gear item, Ship ship)
|
||||
{
|
||||
var itemData = item.EquippedItemData;
|
||||
|
||||
var heat = !HeatDependent ? 1 : pow(itemData.Performance(ship.Temperature), itemData.Equippable.HeatExponent.Evaluate(item));
|
||||
var durability = !DurabilityDependent ? 1 : pow(item.Durability / itemData.Equippable.Durability, itemData.Equippable.DurabilityExponent.Evaluate(item));
|
||||
var quality = pow(Quality(item), QualityExponent);
|
||||
|
||||
var scaleModifier = 1.0f;
|
||||
if (_scaleModifiers != null && _scaleModifiers.ContainsKey(ship))
|
||||
{
|
||||
foreach (var mod in _scaleModifiers[ship].Values)
|
||||
{
|
||||
scaleModifier *= mod;
|
||||
}
|
||||
}
|
||||
|
||||
var constantModifier = 0.0f;
|
||||
if (_constantModifiers != null && _constantModifiers.ContainsKey(ship))
|
||||
{
|
||||
foreach (var mod in _constantModifiers[ship].Values)
|
||||
{
|
||||
scaleModifier += mod;
|
||||
}
|
||||
}
|
||||
|
||||
var result = lerp(Min, Max, heat * durability * quality) * scaleModifier + constantModifier;
|
||||
if (float.IsNaN(result))
|
||||
return Min;
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
[MessagePackObject]
|
||||
public class Hardpoint
|
||||
{
|
||||
[Key("item")] public Gear Item;
|
||||
|
||||
// [IgnoreMember] public Ship Ship;
|
||||
[IgnoreMember] public HardpointData HardpointData;
|
||||
|
||||
// [IgnoreMember]
|
||||
// public float HeatCapacity => Item != null
|
||||
// ? Item.EquippedItemData.Data.Mass * Item.EquippedItemData.Equippable.SpecificHeat
|
||||
// : Ship.Hull.EquippedItemData.Data.Mass * Ship.Hull.EquippedItemData.Equippable.SpecificHeat / Ship.HullHardpointCount;
|
||||
}
|
||||
|
||||
|
||||
[Name("Loadout")]
|
||||
[MessagePackObject]
|
||||
public class LoadoutDefinition : IDatabaseEntry
|
||||
{
|
||||
[Inspectable] [Key("entry")] public DatabaseEntry DatabaseEntry = new DatabaseEntry();
|
||||
[InspectableDatabaseLink(typeof(Hull))] [Key("hull")] public Guid Hull;
|
||||
[Key("items")] public List<Guid> Items = new List<Guid>();
|
||||
|
||||
[IgnoreMember] public DatabaseEntry Entry => DatabaseEntry;
|
||||
}
|
||||
|
||||
[MessagePackObject]
|
||||
public class Player : IDatabaseEntry
|
||||
{
|
||||
[Inspectable] [Key("entry")] public DatabaseEntry DatabaseEntry = new DatabaseEntry();
|
||||
[Key("email")] public string Email;
|
||||
[Key("password")] public string Password;
|
||||
|
||||
[IgnoreMember] public DatabaseEntry Entry => DatabaseEntry;
|
||||
}
|
||||
|
||||
|
||||
[MessagePackObject]
|
||||
public class HardpointData
|
||||
{
|
||||
[Key("type")] public HardpointType Type;
|
||||
}
|
||||
|
||||
[MessagePackObject]
|
||||
public class ZoneData : IDatabaseEntry
|
||||
{
|
||||
[Inspectable] [Key("entry")] public DatabaseEntry DatabaseEntry = new DatabaseEntry();
|
||||
[Inspectable] [Key("radius")] public float Radius = 500;
|
||||
[Inspectable] [Key("radiusPower")] public float RadiusPower = 1.75f;
|
||||
[Inspectable] [Key("mass")] public float Mass = 100000;
|
||||
[Inspectable] [Key("massFloor")] public float MassFloor = 1;
|
||||
[Inspectable] [Key("sunMass")] public float SunMass = 10000;
|
||||
[Inspectable] [Key("gasGiantMass")] public float GasGiantMass = 2000;
|
||||
[Inspectable] [Key("stations")] public List<Station> Stations = new List<Station>();
|
||||
|
||||
[InspectableDatabaseLink(typeof(ZoneData))] [Key("wormholes")]
|
||||
public List<Guid> Wormholes = new List<Guid>();
|
||||
|
||||
[IgnoreMember] public DatabaseEntry Entry => DatabaseEntry;
|
||||
}
|
||||
|
||||
[Inspectable]
|
||||
[MessagePackObject]
|
||||
public class Station
|
||||
{
|
||||
[Inspectable] [Key("name")] public string Name;
|
||||
[InspectableDatabaseLink(typeof(Corporation))] [Key("faction")] public Guid Faction;
|
||||
[Inspectable] [Key("dockingDistance")] public float DockingDistance = 10;
|
||||
[Inspectable] [Key("buying")] public Dictionary<Guid, float> BuyPrices = new Dictionary<Guid, float>();
|
||||
[Inspectable] [Key("selling")] public Dictionary<Guid, float> SellPrices = new Dictionary<Guid, float>();
|
||||
[MessagePackFormatter(typeof(UnityGameObjectFormatter))] [Inspectable] [Key("prefab")] public GameObject Prefab;
|
||||
}
|
||||
|
||||
[MessagePackObject]
|
||||
public class Corporation : IDatabaseEntry
|
||||
{
|
||||
[Inspectable] [Key("entry")] public DatabaseEntry DatabaseEntry = new DatabaseEntry();
|
||||
[InspectableDatabaseLink(typeof(Corporation))] [Key("parent")] public Guid ParentCorporation;
|
||||
[Inspectable] [MessagePackFormatter(typeof(UnitySpriteFormatter))] [Key("logo")] public Sprite Logo;
|
||||
[Inspectable] [Key("livery")] public Skin Livery = new Skin();
|
||||
|
||||
[IgnoreMember] public DatabaseEntry Entry => DatabaseEntry;
|
||||
}
|
||||
|
||||
[Inspectable]
|
||||
[MessagePackObject]
|
||||
public class Skin
|
||||
{
|
||||
[Inspectable] [MessagePackFormatter(typeof(UnityMaterialFormatter))] [Key("primary")] public Material Primary;
|
||||
[Inspectable] [MessagePackFormatter(typeof(UnityMaterialFormatter))] [Key("secondary")] public Material Secondary;
|
||||
[Inspectable] [MessagePackFormatter(typeof(UnityMaterialFormatter))] [Key("trim")] public Material Trim;
|
||||
[Inspectable] [MessagePackFormatter(typeof(UnityMaterialFormatter))] [Key("windshield")] public Material Windshield;
|
||||
}
|
||||
|
||||
|
||||
public enum ProjectileType
|
||||
{
|
||||
Physical,
|
||||
Energy
|
||||
}
|
||||
|
||||
public enum LauncherCaliber
|
||||
{
|
||||
Missile,
|
||||
Torpedo,
|
||||
Fighter
|
||||
}
|
||||
|
||||
public enum HardpointType
|
||||
{
|
||||
Hull,
|
||||
Thruster,
|
||||
WarpThruster,
|
||||
Reactor,
|
||||
Radiator,
|
||||
Shield,
|
||||
Cooler,
|
||||
Sensors,
|
||||
Tool,
|
||||
Energy,
|
||||
Ballistic,
|
||||
Launcher
|
||||
}
|
||||
|
||||
public enum DamageType
|
||||
{
|
||||
Kinetic,
|
||||
Energy,
|
||||
Thermal,
|
||||
Optical,
|
||||
Ionizing
|
||||
}
|
||||
11
Assets/Scripts/DatabaseItems.cs.meta
Normal file
11
Assets/Scripts/DatabaseItems.cs.meta
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 3bb4780bed7bb544dbf6ea2223dd8f06
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Scripts/Editor.meta
Normal file
8
Assets/Scripts/Editor.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: e53b57c0f2cbafc4385bf8cffe68542a
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
1092
Assets/Scripts/Editor/DatabaseEditor.cs
Normal file
1092
Assets/Scripts/Editor/DatabaseEditor.cs
Normal file
File diff suppressed because it is too large
Load diff
11
Assets/Scripts/Editor/DatabaseEditor.cs.meta
Normal file
11
Assets/Scripts/Editor/DatabaseEditor.cs.meta
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: b514fcab25f3b914b89824efbe244591
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -9,6 +9,8 @@ using Unity.Mathematics;
|
|||
using UnityEngine;
|
||||
using Random = UnityEngine.Random;
|
||||
|
||||
using static Unity.Mathematics.math;
|
||||
|
||||
public static class Extensions
|
||||
{
|
||||
public static void BroadcastMessageExt<T>(this GameObject go, string methodName, object value = null, SendMessageOptions options = SendMessageOptions.RequireReceiver)
|
||||
|
|
@ -39,6 +41,15 @@ public static class Extensions
|
|||
}
|
||||
}
|
||||
|
||||
private static Dictionary<Type,Type[]> InterfaceClasses = new Dictionary<Type, Type[]>();
|
||||
public static Type[] GetAllInterfaceClasses(this Type type)
|
||||
{
|
||||
if (InterfaceClasses.ContainsKey(type))
|
||||
return InterfaceClasses[type];
|
||||
return InterfaceClasses[type] = AppDomain.CurrentDomain.GetAssemblies()
|
||||
.SelectMany(ass => ass.GetTypes()).Where(t => t.IsClass && t.GetInterfaces().Contains(type)).ToArray();
|
||||
}
|
||||
|
||||
public static bool IsDefault<T>(this T value) where T : struct
|
||||
{
|
||||
bool isDefault = value.Equals(default(T));
|
||||
|
|
@ -54,16 +65,6 @@ public static class Extensions
|
|||
|
||||
return result;
|
||||
}
|
||||
|
||||
public static Vector2 Flatland(this Vector3 v)
|
||||
{
|
||||
return new Vector2(v.x, v.z);
|
||||
}
|
||||
|
||||
public static Vector3 Flatland(this Vector2 v)
|
||||
{
|
||||
return new Vector3(v.x, 0, v.y);
|
||||
}
|
||||
|
||||
public static string SplitCamelCase( this string str )
|
||||
{
|
||||
|
|
@ -95,5 +96,39 @@ public static class Extensions
|
|||
{
|
||||
return baseType.GetInterfaces().Any(interfaceType.Equals);
|
||||
}
|
||||
|
||||
|
||||
private static readonly Dictionary<ICraftedItemInstance, float> Quality = new Dictionary<ICraftedItemInstance, float>();
|
||||
public static float CompoundQuality(this ICraftedItemInstance item)
|
||||
{
|
||||
if (Quality.ContainsKey(item)) return Quality[item];
|
||||
|
||||
var quality = item.CraftedQuality;
|
||||
|
||||
var craftedIngredients = item.CraftedIngredients.Where(i => i is ICraftedItemInstance).ToArray();
|
||||
if (craftedIngredients.Length > 0)
|
||||
{
|
||||
quality *= craftedIngredients.Cast<ICraftedItemInstance>().Average(CompoundQuality);
|
||||
}
|
||||
|
||||
Quality[item] = quality;
|
||||
|
||||
return Quality[item];
|
||||
}
|
||||
|
||||
private static readonly Dictionary<ICraftable, int> Tier = new Dictionary<ICraftable, int>();
|
||||
public static int ItemTier(this ICraftable item)
|
||||
{
|
||||
if (Tier.ContainsKey(item)) return Tier[item];
|
||||
|
||||
Tier[item] = item.CraftingIngredients.Keys.Max(ci => (Database.Get<IItem>(ci) as ICraftable)?.ItemTier() ?? 0);
|
||||
|
||||
return Tier[item];
|
||||
}
|
||||
|
||||
public static float Performance(this IEquippable item, float temperature)
|
||||
{
|
||||
return saturate(item.Equippable.HeatPerformanceCurve.Evaluate(saturate(
|
||||
(temperature - item.Equippable.MinimumTemperature) /
|
||||
(item.Equippable.MaximumTemperature - item.Equippable.MinimumTemperature))));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,6 +6,10 @@ using System.Linq;
|
|||
using UnityEngine;
|
||||
using NaughtyAttributes;
|
||||
using JM.LinqFaster;
|
||||
using Unity.Mathematics;
|
||||
using static Unity.Mathematics.math;
|
||||
using static Unity.Mathematics.noise;
|
||||
using static NoiseFbm;
|
||||
|
||||
[CreateAssetMenu(menuName = "Aetheria/Galaxy")]
|
||||
public class Galaxy : ScriptableObject
|
||||
|
|
@ -77,12 +81,30 @@ public class StarData
|
|||
public List<string> Names = new List<string>();
|
||||
}
|
||||
|
||||
public static class NoiseFbm
|
||||
{
|
||||
public static float fBm(float2 p, int octaves, float frequency, float offset, float amplitude, float lacunarity, float gain)
|
||||
{
|
||||
float freq = frequency, amp = .5f;
|
||||
float sum = 0;
|
||||
for(int i = 0; i < octaves; i++)
|
||||
{
|
||||
sum += snoise(p * freq) * amp;
|
||||
freq *= lacunarity;
|
||||
amp *= gain;
|
||||
}
|
||||
return (sum + offset)*amplitude;
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class GalaxyMapLayerData
|
||||
{
|
||||
public float CoreBoost = 1.05f;
|
||||
public float CoreBoostOffset = .1f;
|
||||
public float CoreBoostPower = 2.25f;
|
||||
public float SpokeScale = 1;
|
||||
public float SpokeOffset = 0;
|
||||
public float EdgeReduction = 3;
|
||||
public float NoiseOffset = 0;
|
||||
public float NoiseAmplitude = 1.5f;
|
||||
|
|
@ -90,25 +112,21 @@ public class GalaxyMapLayerData
|
|||
public float NoiseLacunarity = 2;
|
||||
public int NoiseOctaves = 7;
|
||||
public float NoiseFrequency = 1;
|
||||
public int NoiseSeed = 1337;
|
||||
|
||||
private FastNoise _noise = new FastNoise();
|
||||
public float NoisePosition = 1337;
|
||||
|
||||
public float Evaluate(Vector2 uv, GalaxyMapData galaxy)
|
||||
public float Evaluate(float2 uv, GalaxyMapData galaxy)
|
||||
{
|
||||
_noise.SetFractalGain(NoiseGain);
|
||||
_noise.SetFractalLacunarity(NoiseLacunarity);
|
||||
_noise.SetFractalOctaves(NoiseOctaves);
|
||||
_noise.SetFrequency(NoiseFrequency);
|
||||
_noise.SetSeed(NoiseSeed);
|
||||
|
||||
Func<Vector2, Vector2> offset = v => Vector2.one / 2 - v;
|
||||
Func<Vector2, float> circle = v => (.5f - v.magnitude) * 2;
|
||||
Func<Vector2, Vector2> twist = v => v.Rotate(Mathf.Pow(v.magnitude*2,galaxy.TwistPower)*galaxy.Twist);
|
||||
Func<Vector2, float> spokes = v => Mathf.Sin(Mathf.Atan2(-v.y,v.x)*galaxy.Arms);
|
||||
var c = circle(offset(uv));
|
||||
return Mathf.Clamp01((Mathf.Lerp(spokes(twist(offset(uv))) - EdgeReduction * offset(uv).magnitude, 1,
|
||||
Mathf.Pow(c + CoreBoostOffset, CoreBoostPower) * CoreBoost) - (_noise.GetPerlin(uv.x,uv.y)+NoiseOffset) * NoiseAmplitude) * Mathf.Clamp01(c));
|
||||
float2 offset = -float2(.5f, .5f)+uv;
|
||||
float circle = (.5f-length(offset))*2;
|
||||
float angle = pow(length(offset)*2,galaxy.TwistPower) * galaxy.Twist;
|
||||
float2 twist = float2(offset.x*cos(angle) - offset.y*sin(angle), offset.x*sin(angle) + offset.y*cos(angle));
|
||||
float atan = atan2(twist.y,twist.x);
|
||||
float spokes = sin(atan*galaxy.Arms) * SpokeScale + SpokeOffset;
|
||||
float noise = fBm(uv + float2(NoisePosition), NoiseOctaves, NoiseFrequency, NoiseOffset, NoiseAmplitude, NoiseLacunarity, NoiseGain);
|
||||
float shape = lerp(spokes - EdgeReduction * length(offset), 1, pow(circle + CoreBoostOffset, CoreBoostPower) * CoreBoost);
|
||||
float gal = max(shape - noise * saturate(circle), 0);
|
||||
|
||||
return gal;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
16
Assets/Scripts/Icons.cs
Normal file
16
Assets/Scripts/Icons.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
[CreateAssetMenu(fileName = "Icons", menuName = "Aetheria/Icons")]
|
||||
public class Icons : ScriptableObject
|
||||
{
|
||||
public Texture2D plus;
|
||||
public Texture2D minus;
|
||||
|
||||
private const string AssetPath = "Icons";
|
||||
private static Icons _instance;
|
||||
public static Icons Instance {
|
||||
get { return _instance ?? (_instance = Resources.Load<Icons>(AssetPath)); }
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/Icons.cs.meta
Normal file
11
Assets/Scripts/Icons.cs.meta
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 32eff58a98b2e4c43a9a375c7db56e25
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
336
Assets/Scripts/ItemInstance.cs
Normal file
336
Assets/Scripts/ItemInstance.cs
Normal file
|
|
@ -0,0 +1,336 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Runtime.Remoting.Messaging;
|
||||
using JM.LinqFaster;
|
||||
using MessagePack;
|
||||
using MessagePack.Formatters;
|
||||
using MIConvexHull;
|
||||
using UniRx;
|
||||
using UnityEngine;
|
||||
using Unity.Mathematics;
|
||||
using UnityEngine.UI.Extensions;
|
||||
using Object = UnityEngine.Object;
|
||||
// TODO: USE THIS EVERYWHERE
|
||||
using static Unity.Mathematics.math;
|
||||
using Random = UnityEngine.Random;
|
||||
#if UNITY_EDITOR
|
||||
using UnityEditor;
|
||||
#endif
|
||||
|
||||
[MessagePackObject]
|
||||
public class Ship
|
||||
{
|
||||
[Key("hull")]
|
||||
public Gear Hull;
|
||||
[Key("hardpoints")]
|
||||
public List<Hardpoint> Hardpoints = new List<Hardpoint>();
|
||||
[Key("cargo")]
|
||||
public List<IItemInstance> Cargo = new List<IItemInstance>();
|
||||
|
||||
// [Key("bindings")] public Dictionary<KeyCode,Guid> Bindings = new Dictionary<KeyCode,Guid>();
|
||||
//[IgnoreMember] public int HullHardpointCount;
|
||||
[IgnoreMember] public Dictionary<Guid, IActivatedItemBehavior[]> ItemBindings;
|
||||
[IgnoreMember] public IItemBehavior[] ItemBehaviors;
|
||||
|
||||
[IgnoreMember] public bool ForceThrust;
|
||||
//[IgnoreMember] public Ship Ship;
|
||||
[IgnoreMember] public Dictionary<Targetable, float> Contacts = new Dictionary<Targetable, float>();
|
||||
[IgnoreMember] public float Temperature;
|
||||
[IgnoreMember] public float Charge;
|
||||
[IgnoreMember] public Targetable Target;
|
||||
[IgnoreMember] public Vector2 Direction;
|
||||
[IgnoreMember] public Dictionary<object, float> VisibilitySources = new Dictionary<object, float>();
|
||||
//[IgnoreMember] public float Visibility;
|
||||
|
||||
private Hull _hullData;
|
||||
private bool _hydrated = false;
|
||||
|
||||
[IgnoreMember] public Hull HullData => _hullData ?? (_hullData = Hull.EquippedItemData as Hull);
|
||||
|
||||
[IgnoreMember] public float Mass { get; private set; }
|
||||
|
||||
//[IgnoreMember] public float Visibility => VisibilitySources.Values.Sum();
|
||||
|
||||
public Gear GetEquipped(HardpointType type)
|
||||
{
|
||||
return Hardpoints.FirstOrDefault(hp => hp.HardpointData.Type == type)?.Item;
|
||||
}
|
||||
|
||||
public T GetEquipped<T>() where T : class, IEquippable
|
||||
{
|
||||
return Hardpoints.FirstOrDefault(hp => hp.Item?.EquippedItemData is T)?.Item.EquippedItemData as T;
|
||||
}
|
||||
|
||||
public void AddHeat(float heat)
|
||||
{
|
||||
Temperature += heat / Mass;
|
||||
}
|
||||
|
||||
public void Hydrate()
|
||||
{
|
||||
GenerateBehaviors();
|
||||
Mass = Hull.Mass + Hardpoints.Sum(hp => hp.Item?.Mass ?? 0) + Cargo.Sum(ii => ii.Mass);
|
||||
//HullHardpointCount = Hardpoints.Count(hp => hp.HardpointData.Type == HardpointType.Hull);
|
||||
_hydrated = true;
|
||||
}
|
||||
|
||||
private void GenerateBehaviors()
|
||||
{
|
||||
ItemBehaviors = Hardpoints.Where(hp=>hp.Item!=null)
|
||||
.Where(hp=>hp.Item.EquippedItemData.Equippable.Behaviors?.Any()??false)
|
||||
.SelectMany(hp => hp.Item.EquippedItemData.Equippable.Behaviors
|
||||
.Select(bd => bd.CreateInstance(this, hp.Item)))
|
||||
.OrderBy(b => b.GetType().GetCustomAttribute<UpdateOrderAttribute>()?.Order ?? 0).ToArray();
|
||||
|
||||
ItemBindings = ItemBehaviors
|
||||
.Where(b => b is IActivatedItemBehavior)
|
||||
.GroupBy(b => b.Item.GetId(), (guid, behaviors) => new {guid, behaviors})
|
||||
.ToDictionary(g => g.guid, g => g.behaviors.Cast<IActivatedItemBehavior>().ToArray());
|
||||
}
|
||||
|
||||
// public void GenerateBindings()
|
||||
// {
|
||||
// Bindings = new Dictionary<KeyCode, Guid>();
|
||||
//
|
||||
// var bindables =
|
||||
// ItemBindings.Select(id => new {id=id.Key, eq = id.Value.First().Hardpoint.Item.EquippedItemData}).ToList();
|
||||
//
|
||||
// var weapons = bindables.Where(i => i.eq.HardpointType.IsWeapon()).ToArray();
|
||||
//
|
||||
// var mouseButtons = Enumerable.Range((int) KeyCode.Mouse0, 3).Cast<KeyCode>();
|
||||
// foreach (var x in weapons.Zip(mouseButtons, (binding, key) => new {binding,key}))
|
||||
// {
|
||||
// Bindings.Add(x.key, x.binding.id);
|
||||
// bindables.Remove(x.binding);
|
||||
// }
|
||||
//
|
||||
// var thruster = bindables.FirstOrDefault(x => x.eq.HardpointType == HardpointType.Thruster);
|
||||
// if (thruster != null)
|
||||
// {
|
||||
// Bindings.Add(KeyCode.LeftShift, thruster.id);
|
||||
// bindables.Remove(thruster);
|
||||
// }
|
||||
//
|
||||
// var utility = bindables.FirstOrDefault(x => !x.eq.HardpointType.IsWeapon());
|
||||
// if (utility != null)
|
||||
// {
|
||||
// Bindings.Add(KeyCode.Space, utility.id);
|
||||
// bindables.Remove(utility);
|
||||
// }
|
||||
//
|
||||
// var numKeys = Enumerable.Range((int) KeyCode.Alpha1, 9).Cast<KeyCode>();
|
||||
// foreach (var x in bindables.Zip(numKeys, (binding, key) => new {binding,key}))
|
||||
// {
|
||||
// Bindings.Add(x.key, x.binding.id);
|
||||
// }
|
||||
//
|
||||
// }
|
||||
|
||||
// public void Activate(KeyCode binding)
|
||||
// {
|
||||
// if (Bindings.ContainsKey(binding))
|
||||
// foreach (var behavior in ItemBindings[Bindings[binding]])
|
||||
// {
|
||||
// behavior.Activate();
|
||||
// if(behavior.Hardpoint.ActionBarButton!=null)
|
||||
// behavior.Hardpoint.ActionBarButton.Background.color = Color.yellow;
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// public void Deactivate(KeyCode binding)
|
||||
// {
|
||||
// if(Bindings.ContainsKey(binding))
|
||||
// foreach (var behavior in ItemBindings[Bindings[binding]])
|
||||
// {
|
||||
// behavior.Deactivate();
|
||||
// if(behavior.Hardpoint.ActionBarButton!=null)
|
||||
// behavior.Hardpoint.ActionBarButton.Background.color = GlobalData.Instance.UnselectedElementColor;
|
||||
// }
|
||||
// }
|
||||
|
||||
public void FixedUpdate(float delta)
|
||||
{
|
||||
foreach (var kvp in Contacts.ToArray())
|
||||
if (kvp.Key == null || Time.time - kvp.Value > GlobalData.Instance.TargetPersistenceDuration)
|
||||
{
|
||||
Contacts.Remove(kvp.Key);
|
||||
if (kvp.Key == Target)
|
||||
Target = null;
|
||||
}
|
||||
|
||||
if (_hydrated)
|
||||
{
|
||||
var hull = Database.Get<Hull>(Hull.Data);
|
||||
|
||||
var rad = pow(Temperature, GlobalData.Instance.HeatRadiationPower) * GlobalData.Instance.HeatRadiationMultiplier;
|
||||
Temperature -= rad * delta;
|
||||
VisibilitySources[this] = rad;
|
||||
|
||||
foreach(var behavior in ItemBehaviors)
|
||||
behavior.FixedUpdate(delta);
|
||||
|
||||
foreach (var hardpoint in Hardpoints)
|
||||
{
|
||||
if (hardpoint.Item.EquippedItemData.Performance(Temperature) < .01f)
|
||||
hardpoint.Item.Durability -= delta;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void Update(float delta)
|
||||
{
|
||||
foreach(var behavior in ItemBehaviors)
|
||||
behavior.Update(delta);
|
||||
}
|
||||
|
||||
// public void UpdateInput(float delta)
|
||||
// {
|
||||
// foreach (var key in Bindings.Keys)
|
||||
// {
|
||||
// if(Input.GetKeyDown(key))
|
||||
// Activate(key);
|
||||
// if(Input.GetKeyUp(key))
|
||||
// Deactivate(key);
|
||||
// }
|
||||
//
|
||||
// }
|
||||
}
|
||||
|
||||
[MessagePackObject]
|
||||
public class SimpleCommodity : IItemInstance
|
||||
{
|
||||
[Key("data")] public Guid Data;
|
||||
[Key("quantity")] public int Quantity;
|
||||
[Key("entry")] public DatabaseEntry DatabaseEntry = new DatabaseEntry();
|
||||
|
||||
[IgnoreMember] private ItemData _item;
|
||||
[IgnoreMember] public Guid ItemGuid => Data;
|
||||
[IgnoreMember] public IItem ItemData => _item ?? (_item = Database.Get<ItemData>(Data));
|
||||
[IgnoreMember] public DatabaseEntry Entry => DatabaseEntry;
|
||||
[IgnoreMember] public float Mass => ItemData.Data.Mass * Quantity;
|
||||
|
||||
public static SimpleCommodity CreateInstance(Guid data, int count)
|
||||
{
|
||||
var item = Database.Get<ItemData>(data);
|
||||
if (item != null)
|
||||
return new SimpleCommodity
|
||||
{
|
||||
Data = data,
|
||||
Quantity = count,
|
||||
DatabaseEntry = new DatabaseEntry
|
||||
{
|
||||
ID = Guid.NewGuid(),
|
||||
Name = item.Entry.Name
|
||||
}
|
||||
};
|
||||
|
||||
Debug.LogError("Attempted to create Simple Commodity instance using missing or incorrect item id");
|
||||
return null;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
[MessagePackObject]
|
||||
public class Gear : ICraftedItemInstance
|
||||
{
|
||||
[Key("data")] public Guid Data;
|
||||
[Key("durability")] public float Durability;
|
||||
[Key("quality")] public float Quality;
|
||||
[Key("ingredients")] public List<IItemInstance> Ingredients = new List<IItemInstance>();
|
||||
[Key("entry")] public DatabaseEntry DatabaseEntry = new DatabaseEntry();
|
||||
|
||||
[IgnoreMember] private IEquippable _equippedItem;
|
||||
|
||||
[IgnoreMember] public Guid ItemGuid => Data;
|
||||
|
||||
[IgnoreMember] public IItem ItemData => EquippedItemData;
|
||||
[IgnoreMember] public DatabaseEntry Entry => DatabaseEntry;
|
||||
|
||||
[IgnoreMember] public float CraftedQuality => Quality;
|
||||
[IgnoreMember] public IEnumerable<IItemInstance> CraftedIngredients => Ingredients;
|
||||
|
||||
[IgnoreMember] public IEquippable EquippedItemData => _equippedItem ?? (_equippedItem = Database.Get<IEquippable>(Data));
|
||||
[IgnoreMember] public float Mass => ItemData.Data.Mass;
|
||||
|
||||
public static Gear CreateInstance(Guid data)
|
||||
{
|
||||
var item = Database.Get<IEquippable>(data);
|
||||
if (item == null)
|
||||
{
|
||||
Debug.LogError("Attempted to create Gear instance using missing or incorrect item id");
|
||||
return null;
|
||||
}
|
||||
|
||||
var equippable = item.Equippable;
|
||||
return new Gear
|
||||
{
|
||||
Data = data,
|
||||
Durability = equippable.Durability,
|
||||
Quality = Random.Range(.5f, 1),
|
||||
Ingredients = item.CraftingIngredients.SelectMany(ci =>
|
||||
{
|
||||
var ingredient = Database.Get(ci.Key);
|
||||
return ingredient is ItemData
|
||||
? (IEnumerable<IItemInstance>) new[] {SimpleCommodity.CreateInstance(ci.Key, ci.Value)}
|
||||
: Enumerable.Range(0, ci.Value).Select(i => CompoundCommodity.CreateInstance(ci.Key));
|
||||
})
|
||||
.ToList(),
|
||||
DatabaseEntry = new DatabaseEntry
|
||||
{
|
||||
ID = Guid.NewGuid(),
|
||||
Name = item.Entry.Name
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
[MessagePackObject]
|
||||
public class CompoundCommodity : ICraftedItemInstance
|
||||
{
|
||||
[Key("data")] public Guid Data;
|
||||
[Key("quality")] public float Quality;
|
||||
[Key("ingredients")] public List<IItemInstance> Ingredients = new List<IItemInstance>();
|
||||
[Key("entry")] public DatabaseEntry DatabaseEntry = new DatabaseEntry();
|
||||
|
||||
[IgnoreMember] private ICraftable _item;
|
||||
|
||||
[IgnoreMember] public Guid ItemGuid => Data;
|
||||
|
||||
[IgnoreMember] public IItem ItemData => _item ?? (_item = Database.Get<ICraftable>(Data));
|
||||
[IgnoreMember] public DatabaseEntry Entry => DatabaseEntry;
|
||||
|
||||
[IgnoreMember] public float CraftedQuality => Quality;
|
||||
[IgnoreMember] public IEnumerable<IItemInstance> CraftedIngredients => Ingredients;
|
||||
[IgnoreMember] public float Mass => ItemData.Data.Mass;
|
||||
|
||||
public static CompoundCommodity CreateInstance(Guid data)
|
||||
{
|
||||
var item = Database.Get<CraftedItem>(data);
|
||||
if (item != null)
|
||||
return new CompoundCommodity
|
||||
{
|
||||
Data = data,
|
||||
Quality = Random.Range(.5f, 1),
|
||||
Ingredients = item.CraftingIngredients.SelectMany(ci =>
|
||||
{
|
||||
var ingredient = Database.Get(ci.Key);
|
||||
return ingredient is ItemData
|
||||
? (IEnumerable<IItemInstance>) new[] {SimpleCommodity.CreateInstance(ci.Key, ci.Value)}
|
||||
: Enumerable.Range(0, ci.Value).Select(i => CreateInstance(ci.Key));
|
||||
})
|
||||
.ToList(),
|
||||
DatabaseEntry = new DatabaseEntry
|
||||
{
|
||||
ID = Guid.NewGuid(),
|
||||
Name = item.Entry.Name
|
||||
}
|
||||
};
|
||||
|
||||
Debug.LogError("Attempted to create Compound Commodity instance using missing or incorrect item id");
|
||||
return null;
|
||||
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/ItemInstance.cs.meta
Normal file
11
Assets/Scripts/ItemInstance.cs.meta
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 99494d40ccacd2d46a84062749ed38aa
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large
Load diff
8
Assets/Scripts/NIH/GPU Noise.meta
Normal file
8
Assets/Scripts/NIH/GPU Noise.meta
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 48b22515742194f478ce494a467011b0
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
129
Assets/Scripts/NIH/GPU Noise/ClassicNoise2D.cginc
Normal file
129
Assets/Scripts/NIH/GPU Noise/ClassicNoise2D.cginc
Normal file
|
|
@ -0,0 +1,129 @@
|
|||
//
|
||||
// Noise Shader Library for Unity - https://github.com/keijiro/NoiseShader
|
||||
//
|
||||
// Original work (webgl-noise) Copyright (C) 2011 Stefan Gustavson
|
||||
// Translation and modification was made by Keijiro Takahashi.
|
||||
//
|
||||
// This shader is based on the webgl-noise GLSL shader. For further details
|
||||
// of the original shader, please see the following description from the
|
||||
// original source code.
|
||||
//
|
||||
|
||||
//
|
||||
// GLSL textureless classic 2D noise "cnoise",
|
||||
// with an RSL-style periodic variant "pnoise".
|
||||
// Author: Stefan Gustavson (stefan.gustavson@liu.se)
|
||||
// Version: 2011-08-22
|
||||
//
|
||||
// Many thanks to Ian McEwan of Ashima Arts for the
|
||||
// ideas for permutation and gradient selection.
|
||||
//
|
||||
// Copyright (c) 2011 Stefan Gustavson. All rights reserved.
|
||||
// Distributed under the MIT license. See LICENSE file.
|
||||
// https://github.com/ashima/webgl-noise
|
||||
//
|
||||
|
||||
float4 mod(float4 x, float4 y)
|
||||
{
|
||||
return x - y * floor(x / y);
|
||||
}
|
||||
|
||||
float4 mod289(float4 x)
|
||||
{
|
||||
return x - floor(x / 289.0) * 289.0;
|
||||
}
|
||||
|
||||
float4 permute(float4 x)
|
||||
{
|
||||
return mod289(((x*34.0)+1.0)*x);
|
||||
}
|
||||
|
||||
float4 taylorInvSqrt(float4 r)
|
||||
{
|
||||
return (float4)1.79284291400159 - r * 0.85373472095314;
|
||||
}
|
||||
|
||||
float2 fade(float2 t) {
|
||||
return t*t*t*(t*(t*6.0-15.0)+10.0);
|
||||
}
|
||||
|
||||
// Classic Perlin noise
|
||||
float cnoise(float2 P)
|
||||
{
|
||||
float4 Pi = floor(P.xyxy) + float4(0.0, 0.0, 1.0, 1.0);
|
||||
float4 Pf = frac (P.xyxy) - float4(0.0, 0.0, 1.0, 1.0);
|
||||
Pi = mod289(Pi); // To avoid truncation effects in permutation
|
||||
float4 ix = Pi.xzxz;
|
||||
float4 iy = Pi.yyww;
|
||||
float4 fx = Pf.xzxz;
|
||||
float4 fy = Pf.yyww;
|
||||
|
||||
float4 i = permute(permute(ix) + iy);
|
||||
|
||||
float4 gx = frac(i / 41.0) * 2.0 - 1.0 ;
|
||||
float4 gy = abs(gx) - 0.5 ;
|
||||
float4 tx = floor(gx + 0.5);
|
||||
gx = gx - tx;
|
||||
|
||||
float2 g00 = float2(gx.x,gy.x);
|
||||
float2 g10 = float2(gx.y,gy.y);
|
||||
float2 g01 = float2(gx.z,gy.z);
|
||||
float2 g11 = float2(gx.w,gy.w);
|
||||
|
||||
float4 norm = taylorInvSqrt(float4(dot(g00, g00), dot(g01, g01), dot(g10, g10), dot(g11, g11)));
|
||||
g00 *= norm.x;
|
||||
g01 *= norm.y;
|
||||
g10 *= norm.z;
|
||||
g11 *= norm.w;
|
||||
|
||||
float n00 = dot(g00, float2(fx.x, fy.x));
|
||||
float n10 = dot(g10, float2(fx.y, fy.y));
|
||||
float n01 = dot(g01, float2(fx.z, fy.z));
|
||||
float n11 = dot(g11, float2(fx.w, fy.w));
|
||||
|
||||
float2 fade_xy = fade(Pf.xy);
|
||||
float2 n_x = lerp(float2(n00, n01), float2(n10, n11), fade_xy.x);
|
||||
float n_xy = lerp(n_x.x, n_x.y, fade_xy.y);
|
||||
return 2.3 * n_xy;
|
||||
}
|
||||
|
||||
// Classic Perlin noise, periodic variant
|
||||
float pnoise(float2 P, float2 rep)
|
||||
{
|
||||
float4 Pi = floor(P.xyxy) + float4(0.0, 0.0, 1.0, 1.0);
|
||||
float4 Pf = frac (P.xyxy) - float4(0.0, 0.0, 1.0, 1.0);
|
||||
Pi = mod(Pi, rep.xyxy); // To create noise with explicit period
|
||||
Pi = mod289(Pi); // To avoid truncation effects in permutation
|
||||
float4 ix = Pi.xzxz;
|
||||
float4 iy = Pi.yyww;
|
||||
float4 fx = Pf.xzxz;
|
||||
float4 fy = Pf.yyww;
|
||||
|
||||
float4 i = permute(permute(ix) + iy);
|
||||
|
||||
float4 gx = frac(i / 41.0) * 2.0 - 1.0 ;
|
||||
float4 gy = abs(gx) - 0.5 ;
|
||||
float4 tx = floor(gx + 0.5);
|
||||
gx = gx - tx;
|
||||
|
||||
float2 g00 = float2(gx.x,gy.x);
|
||||
float2 g10 = float2(gx.y,gy.y);
|
||||
float2 g01 = float2(gx.z,gy.z);
|
||||
float2 g11 = float2(gx.w,gy.w);
|
||||
|
||||
float4 norm = taylorInvSqrt(float4(dot(g00, g00), dot(g01, g01), dot(g10, g10), dot(g11, g11)));
|
||||
g00 *= norm.x;
|
||||
g01 *= norm.y;
|
||||
g10 *= norm.z;
|
||||
g11 *= norm.w;
|
||||
|
||||
float n00 = dot(g00, float2(fx.x, fy.x));
|
||||
float n10 = dot(g10, float2(fx.y, fy.y));
|
||||
float n01 = dot(g01, float2(fx.z, fy.z));
|
||||
float n11 = dot(g11, float2(fx.w, fy.w));
|
||||
|
||||
float2 fade_xy = fade(Pf.xy);
|
||||
float2 n_x = lerp(float2(n00, n01), float2(n10, n11), fade_xy.x);
|
||||
float n_xy = lerp(n_x.x, n_x.y, fade_xy.y);
|
||||
return 2.3 * n_xy;
|
||||
}
|
||||
5
Assets/Scripts/NIH/GPU Noise/ClassicNoise2D.cginc.meta
Normal file
5
Assets/Scripts/NIH/GPU Noise/ClassicNoise2D.cginc.meta
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
fileFormatVersion: 2
|
||||
guid: e1b0b5fd6a4e44923b40d856017562e1
|
||||
ShaderImporter:
|
||||
defaultTextures: []
|
||||
userData:
|
||||
194
Assets/Scripts/NIH/GPU Noise/ClassicNoise3D.cginc
Normal file
194
Assets/Scripts/NIH/GPU Noise/ClassicNoise3D.cginc
Normal file
|
|
@ -0,0 +1,194 @@
|
|||
//
|
||||
// Noise Shader Library for Unity - https://github.com/keijiro/NoiseShader
|
||||
//
|
||||
// Original work (webgl-noise) Copyright (C) 2011 Stefan Gustavson
|
||||
// Translation and modification was made by Keijiro Takahashi.
|
||||
//
|
||||
// This shader is based on the webgl-noise GLSL shader. For further details
|
||||
// of the original shader, please see the following description from the
|
||||
// original source code.
|
||||
//
|
||||
|
||||
//
|
||||
// GLSL textureless classic 3D noise "cnoise",
|
||||
// with an RSL-style periodic variant "pnoise".
|
||||
// Author: Stefan Gustavson (stefan.gustavson@liu.se)
|
||||
// Version: 2011-10-11
|
||||
//
|
||||
// Many thanks to Ian McEwan of Ashima Arts for the
|
||||
// ideas for permutation and gradient selection.
|
||||
//
|
||||
// Copyright (c) 2011 Stefan Gustavson. All rights reserved.
|
||||
// Distributed under the MIT license. See LICENSE file.
|
||||
// https://github.com/ashima/webgl-noise
|
||||
//
|
||||
|
||||
float3 mod(float3 x, float3 y)
|
||||
{
|
||||
return x - y * floor(x / y);
|
||||
}
|
||||
|
||||
float3 mod289(float3 x)
|
||||
{
|
||||
return x - floor(x / 289.0) * 289.0;
|
||||
}
|
||||
|
||||
float4 mod289(float4 x)
|
||||
{
|
||||
return x - floor(x / 289.0) * 289.0;
|
||||
}
|
||||
|
||||
float4 permute(float4 x)
|
||||
{
|
||||
return mod289(((x*34.0)+1.0)*x);
|
||||
}
|
||||
|
||||
float4 taylorInvSqrt(float4 r)
|
||||
{
|
||||
return (float4)1.79284291400159 - r * 0.85373472095314;
|
||||
}
|
||||
|
||||
float3 fade(float3 t) {
|
||||
return t*t*t*(t*(t*6.0-15.0)+10.0);
|
||||
}
|
||||
|
||||
// Classic Perlin noise
|
||||
float cnoise(float3 P)
|
||||
{
|
||||
float3 Pi0 = floor(P); // Integer part for indexing
|
||||
float3 Pi1 = Pi0 + (float3)1.0; // Integer part + 1
|
||||
Pi0 = mod289(Pi0);
|
||||
Pi1 = mod289(Pi1);
|
||||
float3 Pf0 = frac(P); // Fractional part for interpolation
|
||||
float3 Pf1 = Pf0 - (float3)1.0; // Fractional part - 1.0
|
||||
float4 ix = float4(Pi0.x, Pi1.x, Pi0.x, Pi1.x);
|
||||
float4 iy = float4(Pi0.y, Pi0.y, Pi1.y, Pi1.y);
|
||||
float4 iz0 = (float4)Pi0.z;
|
||||
float4 iz1 = (float4)Pi1.z;
|
||||
|
||||
float4 ixy = permute(permute(ix) + iy);
|
||||
float4 ixy0 = permute(ixy + iz0);
|
||||
float4 ixy1 = permute(ixy + iz1);
|
||||
|
||||
float4 gx0 = ixy0 / 7.0;
|
||||
float4 gy0 = frac(floor(gx0) / 7.0) - 0.5;
|
||||
gx0 = frac(gx0);
|
||||
float4 gz0 = (float4)0.5 - abs(gx0) - abs(gy0);
|
||||
float4 sz0 = step(gz0, (float4)0.0);
|
||||
gx0 -= sz0 * (step((float4)0.0, gx0) - 0.5);
|
||||
gy0 -= sz0 * (step((float4)0.0, gy0) - 0.5);
|
||||
|
||||
float4 gx1 = ixy1 / 7.0;
|
||||
float4 gy1 = frac(floor(gx1) / 7.0) - 0.5;
|
||||
gx1 = frac(gx1);
|
||||
float4 gz1 = (float4)0.5 - abs(gx1) - abs(gy1);
|
||||
float4 sz1 = step(gz1, (float4)0.0);
|
||||
gx1 -= sz1 * (step((float4)0.0, gx1) - 0.5);
|
||||
gy1 -= sz1 * (step((float4)0.0, gy1) - 0.5);
|
||||
|
||||
float3 g000 = float3(gx0.x,gy0.x,gz0.x);
|
||||
float3 g100 = float3(gx0.y,gy0.y,gz0.y);
|
||||
float3 g010 = float3(gx0.z,gy0.z,gz0.z);
|
||||
float3 g110 = float3(gx0.w,gy0.w,gz0.w);
|
||||
float3 g001 = float3(gx1.x,gy1.x,gz1.x);
|
||||
float3 g101 = float3(gx1.y,gy1.y,gz1.y);
|
||||
float3 g011 = float3(gx1.z,gy1.z,gz1.z);
|
||||
float3 g111 = float3(gx1.w,gy1.w,gz1.w);
|
||||
|
||||
float4 norm0 = taylorInvSqrt(float4(dot(g000, g000), dot(g010, g010), dot(g100, g100), dot(g110, g110)));
|
||||
g000 *= norm0.x;
|
||||
g010 *= norm0.y;
|
||||
g100 *= norm0.z;
|
||||
g110 *= norm0.w;
|
||||
|
||||
float4 norm1 = taylorInvSqrt(float4(dot(g001, g001), dot(g011, g011), dot(g101, g101), dot(g111, g111)));
|
||||
g001 *= norm1.x;
|
||||
g011 *= norm1.y;
|
||||
g101 *= norm1.z;
|
||||
g111 *= norm1.w;
|
||||
|
||||
float n000 = dot(g000, Pf0);
|
||||
float n100 = dot(g100, float3(Pf1.x, Pf0.y, Pf0.z));
|
||||
float n010 = dot(g010, float3(Pf0.x, Pf1.y, Pf0.z));
|
||||
float n110 = dot(g110, float3(Pf1.x, Pf1.y, Pf0.z));
|
||||
float n001 = dot(g001, float3(Pf0.x, Pf0.y, Pf1.z));
|
||||
float n101 = dot(g101, float3(Pf1.x, Pf0.y, Pf1.z));
|
||||
float n011 = dot(g011, float3(Pf0.x, Pf1.y, Pf1.z));
|
||||
float n111 = dot(g111, Pf1);
|
||||
|
||||
float3 fade_xyz = fade(Pf0);
|
||||
float4 n_z = lerp(float4(n000, n100, n010, n110), float4(n001, n101, n011, n111), fade_xyz.z);
|
||||
float2 n_yz = lerp(n_z.xy, n_z.zw, fade_xyz.y);
|
||||
float n_xyz = lerp(n_yz.x, n_yz.y, fade_xyz.x);
|
||||
return 2.2 * n_xyz;
|
||||
}
|
||||
|
||||
// Classic Perlin noise, periodic variant
|
||||
float pnoise(float3 P, float3 rep)
|
||||
{
|
||||
float3 Pi0 = mod(floor(P), rep); // Integer part, modulo period
|
||||
float3 Pi1 = mod(Pi0 + (float3)1.0, rep); // Integer part + 1, mod period
|
||||
Pi0 = mod289(Pi0);
|
||||
Pi1 = mod289(Pi1);
|
||||
float3 Pf0 = frac(P); // Fractional part for interpolation
|
||||
float3 Pf1 = Pf0 - (float3)1.0; // Fractional part - 1.0
|
||||
float4 ix = float4(Pi0.x, Pi1.x, Pi0.x, Pi1.x);
|
||||
float4 iy = float4(Pi0.y, Pi0.y, Pi1.y, Pi1.y);
|
||||
float4 iz0 = (float4)Pi0.z;
|
||||
float4 iz1 = (float4)Pi1.z;
|
||||
|
||||
float4 ixy = permute(permute(ix) + iy);
|
||||
float4 ixy0 = permute(ixy + iz0);
|
||||
float4 ixy1 = permute(ixy + iz1);
|
||||
|
||||
float4 gx0 = ixy0 / 7.0;
|
||||
float4 gy0 = frac(floor(gx0) / 7.0) - 0.5;
|
||||
gx0 = frac(gx0);
|
||||
float4 gz0 = (float4)0.5 - abs(gx0) - abs(gy0);
|
||||
float4 sz0 = step(gz0, (float4)0.0);
|
||||
gx0 -= sz0 * (step((float4)0.0, gx0) - 0.5);
|
||||
gy0 -= sz0 * (step((float4)0.0, gy0) - 0.5);
|
||||
|
||||
float4 gx1 = ixy1 / 7.0;
|
||||
float4 gy1 = frac(floor(gx1) / 7.0) - 0.5;
|
||||
gx1 = frac(gx1);
|
||||
float4 gz1 = (float4)0.5 - abs(gx1) - abs(gy1);
|
||||
float4 sz1 = step(gz1, (float4)0.0);
|
||||
gx1 -= sz1 * (step((float4)0.0, gx1) - 0.5);
|
||||
gy1 -= sz1 * (step((float4)0.0, gy1) - 0.5);
|
||||
|
||||
float3 g000 = float3(gx0.x,gy0.x,gz0.x);
|
||||
float3 g100 = float3(gx0.y,gy0.y,gz0.y);
|
||||
float3 g010 = float3(gx0.z,gy0.z,gz0.z);
|
||||
float3 g110 = float3(gx0.w,gy0.w,gz0.w);
|
||||
float3 g001 = float3(gx1.x,gy1.x,gz1.x);
|
||||
float3 g101 = float3(gx1.y,gy1.y,gz1.y);
|
||||
float3 g011 = float3(gx1.z,gy1.z,gz1.z);
|
||||
float3 g111 = float3(gx1.w,gy1.w,gz1.w);
|
||||
|
||||
float4 norm0 = taylorInvSqrt(float4(dot(g000, g000), dot(g010, g010), dot(g100, g100), dot(g110, g110)));
|
||||
g000 *= norm0.x;
|
||||
g010 *= norm0.y;
|
||||
g100 *= norm0.z;
|
||||
g110 *= norm0.w;
|
||||
float4 norm1 = taylorInvSqrt(float4(dot(g001, g001), dot(g011, g011), dot(g101, g101), dot(g111, g111)));
|
||||
g001 *= norm1.x;
|
||||
g011 *= norm1.y;
|
||||
g101 *= norm1.z;
|
||||
g111 *= norm1.w;
|
||||
|
||||
float n000 = dot(g000, Pf0);
|
||||
float n100 = dot(g100, float3(Pf1.x, Pf0.y, Pf0.z));
|
||||
float n010 = dot(g010, float3(Pf0.x, Pf1.y, Pf0.z));
|
||||
float n110 = dot(g110, float3(Pf1.x, Pf1.y, Pf0.z));
|
||||
float n001 = dot(g001, float3(Pf0.x, Pf0.y, Pf1.z));
|
||||
float n101 = dot(g101, float3(Pf1.x, Pf0.y, Pf1.z));
|
||||
float n011 = dot(g011, float3(Pf0.x, Pf1.y, Pf1.z));
|
||||
float n111 = dot(g111, Pf1);
|
||||
|
||||
float3 fade_xyz = fade(Pf0);
|
||||
float4 n_z = lerp(float4(n000, n100, n010, n110), float4(n001, n101, n011, n111), fade_xyz.z);
|
||||
float2 n_yz = lerp(n_z.xy, n_z.zw, fade_xyz.y);
|
||||
float n_xyz = lerp(n_yz.x, n_yz.y, fade_xyz.x);
|
||||
return 2.2 * n_xyz;
|
||||
}
|
||||
5
Assets/Scripts/NIH/GPU Noise/ClassicNoise3D.cginc.meta
Normal file
5
Assets/Scripts/NIH/GPU Noise/ClassicNoise3D.cginc.meta
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 3ba1abd1cb44c47b68fbb577c6c4ba3e
|
||||
ShaderImporter:
|
||||
defaultTextures: []
|
||||
userData:
|
||||
88
Assets/Scripts/NIH/GPU Noise/SimplexNoise2D.cginc
Normal file
88
Assets/Scripts/NIH/GPU Noise/SimplexNoise2D.cginc
Normal file
|
|
@ -0,0 +1,88 @@
|
|||
//
|
||||
// Noise Shader Library for Unity - https://github.com/keijiro/NoiseShader
|
||||
//
|
||||
// Original work (webgl-noise) Copyright (C) 2011 Ashima Arts.
|
||||
// Translation and modification was made by Keijiro Takahashi.
|
||||
//
|
||||
// This shader is based on the webgl-noise GLSL shader. For further details
|
||||
// of the original shader, please see the following description from the
|
||||
// original source code.
|
||||
//
|
||||
|
||||
//
|
||||
// Description : Array and textureless GLSL 2D simplex noise function.
|
||||
// Author : Ian McEwan, Ashima Arts.
|
||||
// Maintainer : ijm
|
||||
// Lastmod : 20110822 (ijm)
|
||||
// License : Copyright (C) 2011 Ashima Arts. All rights reserved.
|
||||
// Distributed under the MIT License. See LICENSE file.
|
||||
// https://github.com/ashima/webgl-noise
|
||||
//
|
||||
|
||||
float3 mod289(float3 x)
|
||||
{
|
||||
return x - floor(x / 289.0) * 289.0;
|
||||
}
|
||||
|
||||
float2 mod289(float2 x)
|
||||
{
|
||||
return x - floor(x / 289.0) * 289.0;
|
||||
}
|
||||
|
||||
float3 permute(float3 x)
|
||||
{
|
||||
return mod289((x * 34.0 + 1.0) * x);
|
||||
}
|
||||
|
||||
float3 taylorInvSqrt(float3 r)
|
||||
{
|
||||
return 1.79284291400159 - 0.85373472095314 * r;
|
||||
}
|
||||
|
||||
float snoise(float2 v)
|
||||
{
|
||||
const float4 C = float4( 0.211324865405187, // (3.0-sqrt(3.0))/6.0
|
||||
0.366025403784439, // 0.5*(sqrt(3.0)-1.0)
|
||||
-0.577350269189626, // -1.0 + 2.0 * C.x
|
||||
0.024390243902439); // 1.0 / 41.0
|
||||
// First corner
|
||||
float2 i = floor(v + dot(v, C.yy));
|
||||
float2 x0 = v - i + dot(i, C.xx);
|
||||
|
||||
// Other corners
|
||||
float2 i1;
|
||||
i1.x = step(x0.y, x0.x);
|
||||
i1.y = 1.0 - i1.x;
|
||||
|
||||
// x1 = x0 - i1 + 1.0 * C.xx;
|
||||
// x2 = x0 - 1.0 + 2.0 * C.xx;
|
||||
float2 x1 = x0 + C.xx - i1;
|
||||
float2 x2 = x0 + C.zz;
|
||||
|
||||
// Permutations
|
||||
i = mod289(i); // Avoid truncation effects in permutation
|
||||
float3 p =
|
||||
permute(permute(i.y + float3(0.0, i1.y, 1.0))
|
||||
+ i.x + float3(0.0, i1.x, 1.0));
|
||||
|
||||
float3 m = max(0.5 - float3(dot(x0, x0), dot(x1, x1), dot(x2, x2)), 0.0);
|
||||
m = m * m;
|
||||
m = m * m;
|
||||
|
||||
// Gradients: 41 points uniformly over a line, mapped onto a diamond.
|
||||
// The ring size 17*17 = 289 is close to a multiple of 41 (41*7 = 287)
|
||||
float3 x = 2.0 * frac(p * C.www) - 1.0;
|
||||
float3 h = abs(x) - 0.5;
|
||||
float3 ox = floor(x + 0.5);
|
||||
float3 a0 = x - ox;
|
||||
|
||||
// Normalise gradients implicitly by scaling m
|
||||
m *= taylorInvSqrt(a0 * a0 + h * h);
|
||||
|
||||
// Compute final noise value at P
|
||||
float3 g;
|
||||
g.x = a0.x * x0.x + h.x * x0.y;
|
||||
g.y = a0.y * x1.x + h.y * x1.y;
|
||||
g.z = a0.z * x2.x + h.z * x2.y;
|
||||
return 130.0 * dot(m, g);
|
||||
}
|
||||
9
Assets/Scripts/NIH/GPU Noise/SimplexNoise2D.cginc.meta
Normal file
9
Assets/Scripts/NIH/GPU Noise/SimplexNoise2D.cginc.meta
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 0a38e0bb6f84203469f3e9cb8545ffce
|
||||
timeCreated: 1448775185
|
||||
licenseType: Pro
|
||||
ShaderImporter:
|
||||
defaultTextures: []
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
114
Assets/Scripts/NIH/GPU Noise/SimplexNoise3D.cginc
Normal file
114
Assets/Scripts/NIH/GPU Noise/SimplexNoise3D.cginc
Normal file
|
|
@ -0,0 +1,114 @@
|
|||
//
|
||||
// Noise Shader Library for Unity - https://github.com/keijiro/NoiseShader
|
||||
//
|
||||
// Original work (webgl-noise) Copyright (C) 2011 Ashima Arts.
|
||||
// Translation and modification was made by Keijiro Takahashi.
|
||||
//
|
||||
// This shader is based on the webgl-noise GLSL shader. For further details
|
||||
// of the original shader, please see the following description from the
|
||||
// original source code.
|
||||
//
|
||||
|
||||
//
|
||||
// Description : Array and textureless GLSL 2D/3D/4D simplex
|
||||
// noise functions.
|
||||
// Author : Ian McEwan, Ashima Arts.
|
||||
// Maintainer : ijm
|
||||
// Lastmod : 20110822 (ijm)
|
||||
// License : Copyright (C) 2011 Ashima Arts. All rights reserved.
|
||||
// Distributed under the MIT License. See LICENSE file.
|
||||
// https://github.com/ashima/webgl-noise
|
||||
//
|
||||
|
||||
float3 mod289(float3 x)
|
||||
{
|
||||
return x - floor(x / 289.0) * 289.0;
|
||||
}
|
||||
|
||||
float4 mod289(float4 x)
|
||||
{
|
||||
return x - floor(x / 289.0) * 289.0;
|
||||
}
|
||||
|
||||
float4 permute(float4 x)
|
||||
{
|
||||
return mod289((x * 34.0 + 1.0) * x);
|
||||
}
|
||||
|
||||
float4 taylorInvSqrt(float4 r)
|
||||
{
|
||||
return 1.79284291400159 - r * 0.85373472095314;
|
||||
}
|
||||
|
||||
float snoise(float3 v)
|
||||
{
|
||||
const float2 C = float2(1.0 / 6.0, 1.0 / 3.0);
|
||||
|
||||
// First corner
|
||||
float3 i = floor(v + dot(v, C.yyy));
|
||||
float3 x0 = v - i + dot(i, C.xxx);
|
||||
|
||||
// Other corners
|
||||
float3 g = step(x0.yzx, x0.xyz);
|
||||
float3 l = 1.0 - g;
|
||||
float3 i1 = min(g.xyz, l.zxy);
|
||||
float3 i2 = max(g.xyz, l.zxy);
|
||||
|
||||
// x1 = x0 - i1 + 1.0 * C.xxx;
|
||||
// x2 = x0 - i2 + 2.0 * C.xxx;
|
||||
// x3 = x0 - 1.0 + 3.0 * C.xxx;
|
||||
float3 x1 = x0 - i1 + C.xxx;
|
||||
float3 x2 = x0 - i2 + C.yyy;
|
||||
float3 x3 = x0 - 0.5;
|
||||
|
||||
// Permutations
|
||||
i = mod289(i); // Avoid truncation effects in permutation
|
||||
float4 p =
|
||||
permute(permute(permute(i.z + float4(0.0, i1.z, i2.z, 1.0))
|
||||
+ i.y + float4(0.0, i1.y, i2.y, 1.0))
|
||||
+ i.x + float4(0.0, i1.x, i2.x, 1.0));
|
||||
|
||||
// Gradients: 7x7 points over a square, mapped onto an octahedron.
|
||||
// The ring size 17*17 = 289 is close to a multiple of 49 (49*6 = 294)
|
||||
float4 j = p - 49.0 * floor(p / 49.0); // mod(p,7*7)
|
||||
|
||||
float4 x_ = floor(j / 7.0);
|
||||
float4 y_ = floor(j - 7.0 * x_); // mod(j,N)
|
||||
|
||||
float4 x = (x_ * 2.0 + 0.5) / 7.0 - 1.0;
|
||||
float4 y = (y_ * 2.0 + 0.5) / 7.0 - 1.0;
|
||||
|
||||
float4 h = 1.0 - abs(x) - abs(y);
|
||||
|
||||
float4 b0 = float4(x.xy, y.xy);
|
||||
float4 b1 = float4(x.zw, y.zw);
|
||||
|
||||
//float4 s0 = float4(lessThan(b0, 0.0)) * 2.0 - 1.0;
|
||||
//float4 s1 = float4(lessThan(b1, 0.0)) * 2.0 - 1.0;
|
||||
float4 s0 = floor(b0) * 2.0 + 1.0;
|
||||
float4 s1 = floor(b1) * 2.0 + 1.0;
|
||||
float4 sh = -step(h, 0.0);
|
||||
|
||||
float4 a0 = b0.xzyw + s0.xzyw * sh.xxyy;
|
||||
float4 a1 = b1.xzyw + s1.xzyw * sh.zzww;
|
||||
|
||||
float3 g0 = float3(a0.xy, h.x);
|
||||
float3 g1 = float3(a0.zw, h.y);
|
||||
float3 g2 = float3(a1.xy, h.z);
|
||||
float3 g3 = float3(a1.zw, h.w);
|
||||
|
||||
// Normalise gradients
|
||||
float4 norm = taylorInvSqrt(float4(dot(g0, g0), dot(g1, g1), dot(g2, g2), dot(g3, g3)));
|
||||
g0 *= norm.x;
|
||||
g1 *= norm.y;
|
||||
g2 *= norm.z;
|
||||
g3 *= norm.w;
|
||||
|
||||
// Mix final noise value
|
||||
float4 m = max(0.6 - float4(dot(x0, x0), dot(x1, x1), dot(x2, x2), dot(x3, x3)), 0.0);
|
||||
m = m * m;
|
||||
m = m * m;
|
||||
|
||||
float4 px = float4(dot(x0, g0), dot(x1, g1), dot(x2, g2), dot(x3, g3));
|
||||
return 42.0 * dot(m, px);
|
||||
}
|
||||
9
Assets/Scripts/NIH/GPU Noise/SimplexNoise3D.cginc.meta
Normal file
9
Assets/Scripts/NIH/GPU Noise/SimplexNoise3D.cginc.meta
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
fileFormatVersion: 2
|
||||
guid: b577a94f58a1398409bfcfe9cd5dbf99
|
||||
timeCreated: 1448788105
|
||||
licenseType: Pro
|
||||
ShaderImporter:
|
||||
defaultTextures: []
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
92
Assets/Scripts/NIH/GPU Noise/SimplexNoiseGrad2D.cginc
Normal file
92
Assets/Scripts/NIH/GPU Noise/SimplexNoiseGrad2D.cginc
Normal file
|
|
@ -0,0 +1,92 @@
|
|||
//
|
||||
// Noise Shader Library for Unity - https://github.com/keijiro/NoiseShader
|
||||
//
|
||||
// Original work (webgl-noise) Copyright (C) 2011 Ashima Arts.
|
||||
// Translation and modification was made by Keijiro Takahashi.
|
||||
//
|
||||
// This shader is based on the webgl-noise GLSL shader. For further details
|
||||
// of the original shader, please see the following description from the
|
||||
// original source code.
|
||||
//
|
||||
|
||||
//
|
||||
// Description : Array and textureless GLSL 2D simplex noise function.
|
||||
// Author : Ian McEwan, Ashima Arts.
|
||||
// Maintainer : ijm
|
||||
// Lastmod : 20110822 (ijm)
|
||||
// License : Copyright (C) 2011 Ashima Arts. All rights reserved.
|
||||
// Distributed under the MIT License. See LICENSE file.
|
||||
// https://github.com/ashima/webgl-noise
|
||||
//
|
||||
|
||||
float3 mod289(float3 x)
|
||||
{
|
||||
return x - floor(x / 289.0) * 289.0;
|
||||
}
|
||||
|
||||
float2 mod289(float2 x)
|
||||
{
|
||||
return x - floor(x / 289.0) * 289.0;
|
||||
}
|
||||
|
||||
float3 permute(float3 x)
|
||||
{
|
||||
return mod289((x * 34.0 + 1.0) * x);
|
||||
}
|
||||
|
||||
float3 taylorInvSqrt(float3 r)
|
||||
{
|
||||
return 1.79284291400159 - 0.85373472095314 * r;
|
||||
}
|
||||
|
||||
float2 snoise_grad(float2 v)
|
||||
{
|
||||
const float4 C = float4( 0.211324865405187, // (3.0-sqrt(3.0))/6.0
|
||||
0.366025403784439, // 0.5*(sqrt(3.0)-1.0)
|
||||
-0.577350269189626, // -1.0 + 2.0 * C.x
|
||||
0.024390243902439); // 1.0 / 41.0
|
||||
// First corner
|
||||
float2 i = floor(v + dot(v, C.yy));
|
||||
float2 x0 = v - i + dot(i, C.xx);
|
||||
|
||||
// Other corners
|
||||
float2 i1;
|
||||
i1.x = step(x0.y, x0.x);
|
||||
i1.y = 1.0 - i1.x;
|
||||
|
||||
// x1 = x0 - i1 + 1.0 * C.xx;
|
||||
// x2 = x0 - 1.0 + 2.0 * C.xx;
|
||||
float2 x1 = x0 + C.xx - i1;
|
||||
float2 x2 = x0 + C.zz;
|
||||
|
||||
// Permutations
|
||||
i = mod289(i); // Avoid truncation effects in permutation
|
||||
float3 p =
|
||||
permute(permute(i.y + float3(0.0, i1.y, 1.0))
|
||||
+ i.x + float3(0.0, i1.x, 1.0));
|
||||
|
||||
float3 m = max(0.5 - float3(dot(x0, x0), dot(x1, x1), dot(x2, x2)), 0.0);
|
||||
float3 m2 = m * m;
|
||||
float3 m3 = m2 * m;
|
||||
float3 m4 = m2 * m2;
|
||||
|
||||
// Gradients: 41 points uniformly over a line, mapped onto a diamond.
|
||||
// The ring size 17*17 = 289 is close to a multiple of 41 (41*7 = 287)
|
||||
float3 x = 2.0 * frac(p * C.www) - 1.0;
|
||||
float3 h = abs(x) - 0.5;
|
||||
float3 ox = floor(x + 0.5);
|
||||
float3 a0 = x - ox;
|
||||
|
||||
// Normalise gradients
|
||||
float3 norm = taylorInvSqrt(a0 * a0 + h * h);
|
||||
float2 g0 = float2(a0.x, h.x) * norm.x;
|
||||
float2 g1 = float2(a0.y, h.y) * norm.y;
|
||||
float2 g2 = float2(a0.z, h.z) * norm.z;
|
||||
|
||||
// Compute gradient of noise function at P
|
||||
float2 grad =
|
||||
-6.0 * m3.x * x0 * dot(x0, g0) + m4.x * g0 +
|
||||
-6.0 * m3.y * x1 * dot(x1, g1) + m4.y * g1 +
|
||||
-6.0 * m3.z * x2 * dot(x2, g2) + m4.z * g2;
|
||||
return 130.0 * grad;
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 33c8157a2aca37849bc1f21250315a93
|
||||
timeCreated: 1449292284
|
||||
licenseType: Pro
|
||||
ShaderImporter:
|
||||
defaultTextures: []
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
118
Assets/Scripts/NIH/GPU Noise/SimplexNoiseGrad3D.cginc
Normal file
118
Assets/Scripts/NIH/GPU Noise/SimplexNoiseGrad3D.cginc
Normal file
|
|
@ -0,0 +1,118 @@
|
|||
//
|
||||
// Noise Shader Library for Unity - https://github.com/keijiro/NoiseShader
|
||||
//
|
||||
// Original work (webgl-noise) Copyright (C) 2011 Ashima Arts.
|
||||
// Translation and modification was made by Keijiro Takahashi.
|
||||
//
|
||||
// This shader is based on the webgl-noise GLSL shader. For further details
|
||||
// of the original shader, please see the following description from the
|
||||
// original source code.
|
||||
//
|
||||
|
||||
//
|
||||
// Description : Array and textureless GLSL 2D/3D/4D simplex
|
||||
// noise functions.
|
||||
// Author : Ian McEwan, Ashima Arts.
|
||||
// Maintainer : ijm
|
||||
// Lastmod : 20110822 (ijm)
|
||||
// License : Copyright (C) 2011 Ashima Arts. All rights reserved.
|
||||
// Distributed under the MIT License. See LICENSE file.
|
||||
// https://github.com/ashima/webgl-noise
|
||||
//
|
||||
|
||||
float3 mod289(float3 x)
|
||||
{
|
||||
return x - floor(x / 289.0) * 289.0;
|
||||
}
|
||||
|
||||
float4 mod289(float4 x)
|
||||
{
|
||||
return x - floor(x / 289.0) * 289.0;
|
||||
}
|
||||
|
||||
float4 permute(float4 x)
|
||||
{
|
||||
return mod289((x * 34.0 + 1.0) * x);
|
||||
}
|
||||
|
||||
float4 taylorInvSqrt(float4 r)
|
||||
{
|
||||
return 1.79284291400159 - r * 0.85373472095314;
|
||||
}
|
||||
|
||||
float3 snoise_grad(float3 v)
|
||||
{
|
||||
const float2 C = float2(1.0 / 6.0, 1.0 / 3.0);
|
||||
|
||||
// First corner
|
||||
float3 i = floor(v + dot(v, C.yyy));
|
||||
float3 x0 = v - i + dot(i, C.xxx);
|
||||
|
||||
// Other corners
|
||||
float3 g = step(x0.yzx, x0.xyz);
|
||||
float3 l = 1.0 - g;
|
||||
float3 i1 = min(g.xyz, l.zxy);
|
||||
float3 i2 = max(g.xyz, l.zxy);
|
||||
|
||||
// x1 = x0 - i1 + 1.0 * C.xxx;
|
||||
// x2 = x0 - i2 + 2.0 * C.xxx;
|
||||
// x3 = x0 - 1.0 + 3.0 * C.xxx;
|
||||
float3 x1 = x0 - i1 + C.xxx;
|
||||
float3 x2 = x0 - i2 + C.yyy;
|
||||
float3 x3 = x0 - 0.5;
|
||||
|
||||
// Permutations
|
||||
i = mod289(i); // Avoid truncation effects in permutation
|
||||
float4 p =
|
||||
permute(permute(permute(i.z + float4(0.0, i1.z, i2.z, 1.0))
|
||||
+ i.y + float4(0.0, i1.y, i2.y, 1.0))
|
||||
+ i.x + float4(0.0, i1.x, i2.x, 1.0));
|
||||
|
||||
// Gradients: 7x7 points over a square, mapped onto an octahedron.
|
||||
// The ring size 17*17 = 289 is close to a multiple of 49 (49*6 = 294)
|
||||
float4 j = p - 49.0 * floor(p / 49.0); // mod(p,7*7)
|
||||
|
||||
float4 x_ = floor(j / 7.0);
|
||||
float4 y_ = floor(j - 7.0 * x_); // mod(j,N)
|
||||
|
||||
float4 x = (x_ * 2.0 + 0.5) / 7.0 - 1.0;
|
||||
float4 y = (y_ * 2.0 + 0.5) / 7.0 - 1.0;
|
||||
|
||||
float4 h = 1.0 - abs(x) - abs(y);
|
||||
|
||||
float4 b0 = float4(x.xy, y.xy);
|
||||
float4 b1 = float4(x.zw, y.zw);
|
||||
|
||||
//float4 s0 = float4(lessThan(b0, 0.0)) * 2.0 - 1.0;
|
||||
//float4 s1 = float4(lessThan(b1, 0.0)) * 2.0 - 1.0;
|
||||
float4 s0 = floor(b0) * 2.0 + 1.0;
|
||||
float4 s1 = floor(b1) * 2.0 + 1.0;
|
||||
float4 sh = -step(h, 0.0);
|
||||
|
||||
float4 a0 = b0.xzyw + s0.xzyw * sh.xxyy;
|
||||
float4 a1 = b1.xzyw + s1.xzyw * sh.zzww;
|
||||
|
||||
float3 g0 = float3(a0.xy, h.x);
|
||||
float3 g1 = float3(a0.zw, h.y);
|
||||
float3 g2 = float3(a1.xy, h.z);
|
||||
float3 g3 = float3(a1.zw, h.w);
|
||||
|
||||
// Normalise gradients
|
||||
float4 norm = taylorInvSqrt(float4(dot(g0, g0), dot(g1, g1), dot(g2, g2), dot(g3, g3)));
|
||||
g0 *= norm.x;
|
||||
g1 *= norm.y;
|
||||
g2 *= norm.z;
|
||||
g3 *= norm.w;
|
||||
|
||||
// Compute gradient of noise function at P
|
||||
float4 m = max(0.6 - float4(dot(x0, x0), dot(x1, x1), dot(x2, x2), dot(x3, x3)), 0.0);
|
||||
float4 m2 = m * m;
|
||||
float4 m3 = m2 * m;
|
||||
float4 m4 = m2 * m2;
|
||||
float3 grad =
|
||||
-6.0 * m3.x * x0 * dot(x0, g0) + m4.x * g0 +
|
||||
-6.0 * m3.y * x1 * dot(x1, g1) + m4.y * g1 +
|
||||
-6.0 * m3.z * x2 * dot(x2, g2) + m4.z * g2 +
|
||||
-6.0 * m3.w * x3 * dot(x3, g3) + m4.w * g3;
|
||||
return 42.0 * grad;
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
fileFormatVersion: 2
|
||||
guid: a7111eafc2463224faacf7be3bddb9a4
|
||||
timeCreated: 1449292284
|
||||
licenseType: Pro
|
||||
ShaderImporter:
|
||||
defaultTextures: []
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
966
Assets/Scripts/NIH/XKCDColors.cs
Normal file
966
Assets/Scripts/NIH/XKCDColors.cs
Normal file
|
|
@ -0,0 +1,966 @@
|
|||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
public static class XKCDColors
|
||||
{
|
||||
internal class ColorTranslator
|
||||
{
|
||||
public static Color FromHtml(string hexString)
|
||||
{
|
||||
return new Color(Convert.ToInt32(hexString.Substring(1, 2), 16) / 255f,
|
||||
Convert.ToInt32(hexString.Substring(3, 2), 16) / 255f,
|
||||
Convert.ToInt32(hexString.Substring(5, 2), 16) / 255f);
|
||||
}
|
||||
}
|
||||
|
||||
public static Color CloudyBlue { get { return ColorTranslator.FromHtml("#acc2d9"); } }
|
||||
public static Color DarkPastelGreen { get { return ColorTranslator.FromHtml("#56ae57"); } }
|
||||
public static Color Dust { get { return ColorTranslator.FromHtml("#b2996e"); } }
|
||||
public static Color ElectricLime { get { return ColorTranslator.FromHtml("#a8ff04"); } }
|
||||
public static Color FreshGreen { get { return ColorTranslator.FromHtml("#69d84f"); } }
|
||||
public static Color LightEggplant { get { return ColorTranslator.FromHtml("#894585"); } }
|
||||
public static Color NastyGreen { get { return ColorTranslator.FromHtml("#70b23f"); } }
|
||||
public static Color ReallyLightBlue { get { return ColorTranslator.FromHtml("#d4ffff"); } }
|
||||
public static Color Tea { get { return ColorTranslator.FromHtml("#65ab7c"); } }
|
||||
public static Color WarmPurple { get { return ColorTranslator.FromHtml("#952e8f"); } }
|
||||
public static Color YellowishTan { get { return ColorTranslator.FromHtml("#fcfc81"); } }
|
||||
public static Color Cement { get { return ColorTranslator.FromHtml("#a5a391"); } }
|
||||
public static Color DarkGrassGreen { get { return ColorTranslator.FromHtml("#388004"); } }
|
||||
public static Color DustyTeal { get { return ColorTranslator.FromHtml("#4c9085"); } }
|
||||
public static Color GreyTeal { get { return ColorTranslator.FromHtml("#5e9b8a"); } }
|
||||
public static Color MacaroniAndCheese { get { return ColorTranslator.FromHtml("#efb435"); } }
|
||||
public static Color PinkishTan { get { return ColorTranslator.FromHtml("#d99b82"); } }
|
||||
public static Color Spruce { get { return ColorTranslator.FromHtml("#0a5f38"); } }
|
||||
public static Color StrongBlue { get { return ColorTranslator.FromHtml("#0c06f7"); } }
|
||||
public static Color ToxicGreen { get { return ColorTranslator.FromHtml("#61de2a"); } }
|
||||
public static Color WindowsBlue { get { return ColorTranslator.FromHtml("#3778bf"); } }
|
||||
public static Color BlueBlue { get { return ColorTranslator.FromHtml("#2242c7"); } }
|
||||
public static Color BlueWithAHintOfPurple { get { return ColorTranslator.FromHtml("#533cc6"); } }
|
||||
public static Color Booger { get { return ColorTranslator.FromHtml("#9bb53c"); } }
|
||||
public static Color BrightSeaGreen { get { return ColorTranslator.FromHtml("#05ffa6"); } }
|
||||
public static Color DarkGreenBlue { get { return ColorTranslator.FromHtml("#1f6357"); } }
|
||||
public static Color DeepTurquoise { get { return ColorTranslator.FromHtml("#017374"); } }
|
||||
public static Color GreenTeal { get { return ColorTranslator.FromHtml("#0cb577"); } }
|
||||
public static Color StrongPink { get { return ColorTranslator.FromHtml("#ff0789"); } }
|
||||
public static Color Bland { get { return ColorTranslator.FromHtml("#afa88b"); } }
|
||||
public static Color DeepAqua { get { return ColorTranslator.FromHtml("#08787f"); } }
|
||||
public static Color LavenderPink { get { return ColorTranslator.FromHtml("#dd85d7"); } }
|
||||
public static Color LightMossGreen { get { return ColorTranslator.FromHtml("#a6c875"); } }
|
||||
public static Color LightSeafoamGreen { get { return ColorTranslator.FromHtml("#a7ffb5"); } }
|
||||
public static Color OliveYellow { get { return ColorTranslator.FromHtml("#c2b709"); } }
|
||||
public static Color PigPink { get { return ColorTranslator.FromHtml("#e78ea5"); } }
|
||||
public static Color DeepLilac { get { return ColorTranslator.FromHtml("#966ebd"); } }
|
||||
public static Color Desert { get { return ColorTranslator.FromHtml("#ccad60"); } }
|
||||
public static Color DustyLavender { get { return ColorTranslator.FromHtml("#ac86a8"); } }
|
||||
public static Color PurpleyGrey { get { return ColorTranslator.FromHtml("#947e94"); } }
|
||||
public static Color Purply { get { return ColorTranslator.FromHtml("#983fb2"); } }
|
||||
public static Color CandyPink { get { return ColorTranslator.FromHtml("#ff63e9"); } }
|
||||
public static Color LightPastelGreen { get { return ColorTranslator.FromHtml("#b2fba5"); } }
|
||||
public static Color BoringGreen { get { return ColorTranslator.FromHtml("#63b365"); } }
|
||||
public static Color KiwiGreen { get { return ColorTranslator.FromHtml("#8ee53f"); } }
|
||||
public static Color LightGreyGreen { get { return ColorTranslator.FromHtml("#b7e1a1"); } }
|
||||
public static Color OrangePink { get { return ColorTranslator.FromHtml("#ff6f52"); } }
|
||||
public static Color TeaGreen { get { return ColorTranslator.FromHtml("#bdf8a3"); } }
|
||||
public static Color VeryLightBrown { get { return ColorTranslator.FromHtml("#d3b683"); } }
|
||||
public static Color EggShell { get { return ColorTranslator.FromHtml("#fffcc4"); } }
|
||||
public static Color EggplantPurple { get { return ColorTranslator.FromHtml("#430541"); } }
|
||||
public static Color PowderPink { get { return ColorTranslator.FromHtml("#ffb2d0"); } }
|
||||
public static Color ReddishGrey { get { return ColorTranslator.FromHtml("#997570"); } }
|
||||
public static Color BabyShitBrown { get { return ColorTranslator.FromHtml("#ad900d"); } }
|
||||
public static Color Liliac { get { return ColorTranslator.FromHtml("#c48efd"); } }
|
||||
public static Color StormyBlue { get { return ColorTranslator.FromHtml("#507b9c"); } }
|
||||
public static Color UglyBrown { get { return ColorTranslator.FromHtml("#7d7103"); } }
|
||||
public static Color Custard { get { return ColorTranslator.FromHtml("#fffd78"); } }
|
||||
public static Color DarkishPink { get { return ColorTranslator.FromHtml("#da467d"); } }
|
||||
public static Color DeepBrown { get { return ColorTranslator.FromHtml("#410200"); } }
|
||||
public static Color GreenishBeige { get { return ColorTranslator.FromHtml("#c9d179"); } }
|
||||
public static Color Manilla { get { return ColorTranslator.FromHtml("#fffa86"); } }
|
||||
public static Color OffBlue { get { return ColorTranslator.FromHtml("#5684ae"); } }
|
||||
public static Color BattleshipGrey { get { return ColorTranslator.FromHtml("#6b7c85"); } }
|
||||
public static Color BrownyGreen { get { return ColorTranslator.FromHtml("#6f6c0a"); } }
|
||||
public static Color Bruise { get { return ColorTranslator.FromHtml("#7e4071"); } }
|
||||
public static Color KelleyGreen { get { return ColorTranslator.FromHtml("#009337"); } }
|
||||
public static Color SicklyYellow { get { return ColorTranslator.FromHtml("#d0e429"); } }
|
||||
public static Color SunnyYellow { get { return ColorTranslator.FromHtml("#fff917"); } }
|
||||
public static Color Azul { get { return ColorTranslator.FromHtml("#1d5dec"); } }
|
||||
public static Color Darkgreen { get { return ColorTranslator.FromHtml("#054907"); } }
|
||||
public static Color Green_Yellow { get { return ColorTranslator.FromHtml("#b5ce08"); } }
|
||||
public static Color Lichen { get { return ColorTranslator.FromHtml("#8fb67b"); } }
|
||||
public static Color LightLightGreen { get { return ColorTranslator.FromHtml("#c8ffb0"); } }
|
||||
public static Color PaleGold { get { return ColorTranslator.FromHtml("#fdde6c"); } }
|
||||
public static Color SunYellow { get { return ColorTranslator.FromHtml("#ffdf22"); } }
|
||||
public static Color TanGreen { get { return ColorTranslator.FromHtml("#a9be70"); } }
|
||||
public static Color Burple { get { return ColorTranslator.FromHtml("#6832e3"); } }
|
||||
public static Color Butterscotch { get { return ColorTranslator.FromHtml("#fdb147"); } }
|
||||
public static Color Toupe { get { return ColorTranslator.FromHtml("#c7ac7d"); } }
|
||||
public static Color DarkCream { get { return ColorTranslator.FromHtml("#fff39a"); } }
|
||||
public static Color IndianRed { get { return ColorTranslator.FromHtml("#850e04"); } }
|
||||
public static Color LightLavendar { get { return ColorTranslator.FromHtml("#efc0fe"); } }
|
||||
public static Color PoisonGreen { get { return ColorTranslator.FromHtml("#40fd14"); } }
|
||||
public static Color BabyPukeGreen { get { return ColorTranslator.FromHtml("#b6c406"); } }
|
||||
public static Color BrightYellowGreen { get { return ColorTranslator.FromHtml("#9dff00"); } }
|
||||
public static Color CharcoalGrey { get { return ColorTranslator.FromHtml("#3c4142"); } }
|
||||
public static Color Squash { get { return ColorTranslator.FromHtml("#f2ab15"); } }
|
||||
public static Color Cinnamon { get { return ColorTranslator.FromHtml("#ac4f06"); } }
|
||||
public static Color LightPeaGreen { get { return ColorTranslator.FromHtml("#c4fe82"); } }
|
||||
public static Color RadioactiveGreen { get { return ColorTranslator.FromHtml("#2cfa1f"); } }
|
||||
public static Color RawSienna { get { return ColorTranslator.FromHtml("#9a6200"); } }
|
||||
public static Color BabyPurple { get { return ColorTranslator.FromHtml("#ca9bf7"); } }
|
||||
public static Color Cocoa { get { return ColorTranslator.FromHtml("#875f42"); } }
|
||||
public static Color LightRoyalBlue { get { return ColorTranslator.FromHtml("#3a2efe"); } }
|
||||
public static Color Orangeish { get { return ColorTranslator.FromHtml("#fd8d49"); } }
|
||||
public static Color RustBrown { get { return ColorTranslator.FromHtml("#8b3103"); } }
|
||||
public static Color SandBrown { get { return ColorTranslator.FromHtml("#cba560"); } }
|
||||
public static Color Swamp { get { return ColorTranslator.FromHtml("#698339"); } }
|
||||
public static Color TealishGreen { get { return ColorTranslator.FromHtml("#0cdc73"); } }
|
||||
public static Color BurntSiena { get { return ColorTranslator.FromHtml("#b75203"); } }
|
||||
public static Color Camo { get { return ColorTranslator.FromHtml("#7f8f4e"); } }
|
||||
public static Color DuskBlue { get { return ColorTranslator.FromHtml("#26538d"); } }
|
||||
public static Color Fern { get { return ColorTranslator.FromHtml("#63a950"); } }
|
||||
public static Color OldRose { get { return ColorTranslator.FromHtml("#c87f89"); } }
|
||||
public static Color PaleLightGreen { get { return ColorTranslator.FromHtml("#b1fc99"); } }
|
||||
public static Color PeachyPink { get { return ColorTranslator.FromHtml("#ff9a8a"); } }
|
||||
public static Color RosyPink { get { return ColorTranslator.FromHtml("#f6688e"); } }
|
||||
public static Color LightBluishGreen { get { return ColorTranslator.FromHtml("#76fda8"); } }
|
||||
public static Color LightBrightGreen { get { return ColorTranslator.FromHtml("#53fe5c"); } }
|
||||
public static Color LightNeonGreen { get { return ColorTranslator.FromHtml("#4efd54"); } }
|
||||
public static Color LightSeafoam { get { return ColorTranslator.FromHtml("#a0febf"); } }
|
||||
public static Color TiffanyBlue { get { return ColorTranslator.FromHtml("#7bf2da"); } }
|
||||
public static Color WashedOutGreen { get { return ColorTranslator.FromHtml("#bcf5a6"); } }
|
||||
public static Color BrownyOrange { get { return ColorTranslator.FromHtml("#ca6b02"); } }
|
||||
public static Color NiceBlue { get { return ColorTranslator.FromHtml("#107ab0"); } }
|
||||
public static Color Sapphire { get { return ColorTranslator.FromHtml("#2138ab"); } }
|
||||
public static Color GreyishTeal { get { return ColorTranslator.FromHtml("#719f91"); } }
|
||||
public static Color OrangeyYellow { get { return ColorTranslator.FromHtml("#fdb915"); } }
|
||||
public static Color Parchment { get { return ColorTranslator.FromHtml("#fefcaf"); } }
|
||||
public static Color Straw { get { return ColorTranslator.FromHtml("#fcf679"); } }
|
||||
public static Color VeryDarkBrown { get { return ColorTranslator.FromHtml("#1d0200"); } }
|
||||
public static Color Terracota { get { return ColorTranslator.FromHtml("#cb6843"); } }
|
||||
public static Color UglyBlue { get { return ColorTranslator.FromHtml("#31668a"); } }
|
||||
public static Color ClearBlue { get { return ColorTranslator.FromHtml("#247afd"); } }
|
||||
public static Color Creme { get { return ColorTranslator.FromHtml("#ffffb6"); } }
|
||||
public static Color FoamGreen { get { return ColorTranslator.FromHtml("#90fda9"); } }
|
||||
public static Color Grey_Green { get { return ColorTranslator.FromHtml("#86a17d"); } }
|
||||
public static Color LightGold { get { return ColorTranslator.FromHtml("#fddc5c"); } }
|
||||
public static Color SeafoamBlue { get { return ColorTranslator.FromHtml("#78d1b6"); } }
|
||||
public static Color Topaz { get { return ColorTranslator.FromHtml("#13bbaf"); } }
|
||||
public static Color VioletPink { get { return ColorTranslator.FromHtml("#fb5ffc"); } }
|
||||
public static Color Wintergreen { get { return ColorTranslator.FromHtml("#20f986"); } }
|
||||
public static Color YellowTan { get { return ColorTranslator.FromHtml("#ffe36e"); } }
|
||||
public static Color DarkFuchsia { get { return ColorTranslator.FromHtml("#9d0759"); } }
|
||||
public static Color IndigoBlue { get { return ColorTranslator.FromHtml("#3a18b1"); } }
|
||||
public static Color LightYellowishGreen { get { return ColorTranslator.FromHtml("#c2ff89"); } }
|
||||
public static Color PaleMagenta { get { return ColorTranslator.FromHtml("#d767ad"); } }
|
||||
public static Color RichPurple { get { return ColorTranslator.FromHtml("#720058"); } }
|
||||
public static Color SunflowerYellow { get { return ColorTranslator.FromHtml("#ffda03"); } }
|
||||
public static Color Green_Blue { get { return ColorTranslator.FromHtml("#01c08d"); } }
|
||||
public static Color Leather { get { return ColorTranslator.FromHtml("#ac7434"); } }
|
||||
public static Color RacingGreen { get { return ColorTranslator.FromHtml("#014600"); } }
|
||||
public static Color VividPurple { get { return ColorTranslator.FromHtml("#9900fa"); } }
|
||||
public static Color DarkRoyalBlue { get { return ColorTranslator.FromHtml("#02066f"); } }
|
||||
public static Color Hazel { get { return ColorTranslator.FromHtml("#8e7618"); } }
|
||||
public static Color MutedPink { get { return ColorTranslator.FromHtml("#d1768f"); } }
|
||||
public static Color BoogerGreen { get { return ColorTranslator.FromHtml("#96b403"); } }
|
||||
public static Color Canary { get { return ColorTranslator.FromHtml("#fdff63"); } }
|
||||
public static Color CoolGrey { get { return ColorTranslator.FromHtml("#95a3a6"); } }
|
||||
public static Color DarkTaupe { get { return ColorTranslator.FromHtml("#7f684e"); } }
|
||||
public static Color DarkishPurple { get { return ColorTranslator.FromHtml("#751973"); } }
|
||||
public static Color TrueGreen { get { return ColorTranslator.FromHtml("#089404"); } }
|
||||
public static Color CoralPink { get { return ColorTranslator.FromHtml("#ff6163"); } }
|
||||
public static Color DarkSage { get { return ColorTranslator.FromHtml("#598556"); } }
|
||||
public static Color DarkSlateBlue { get { return ColorTranslator.FromHtml("#214761"); } }
|
||||
public static Color FlatBlue { get { return ColorTranslator.FromHtml("#3c73a8"); } }
|
||||
public static Color Mushroom { get { return ColorTranslator.FromHtml("#ba9e88"); } }
|
||||
public static Color RichBlue { get { return ColorTranslator.FromHtml("#021bf9"); } }
|
||||
public static Color DirtyPurple { get { return ColorTranslator.FromHtml("#734a65"); } }
|
||||
public static Color Greenblue { get { return ColorTranslator.FromHtml("#23c48b"); } }
|
||||
public static Color IckyGreen { get { return ColorTranslator.FromHtml("#8fae22"); } }
|
||||
public static Color LightKhaki { get { return ColorTranslator.FromHtml("#e6f2a2"); } }
|
||||
public static Color WarmBlue { get { return ColorTranslator.FromHtml("#4b57db"); } }
|
||||
public static Color DarkHotPink { get { return ColorTranslator.FromHtml("#d90166"); } }
|
||||
public static Color DeepSeaBlue { get { return ColorTranslator.FromHtml("#015482"); } }
|
||||
public static Color Carmine { get { return ColorTranslator.FromHtml("#9d0216"); } }
|
||||
public static Color DarkYellowGreen { get { return ColorTranslator.FromHtml("#728f02"); } }
|
||||
public static Color PalePeach { get { return ColorTranslator.FromHtml("#ffe5ad"); } }
|
||||
public static Color PlumPurple { get { return ColorTranslator.FromHtml("#4e0550"); } }
|
||||
public static Color GoldenRod { get { return ColorTranslator.FromHtml("#f9bc08"); } }
|
||||
public static Color NeonRed { get { return ColorTranslator.FromHtml("#ff073a"); } }
|
||||
public static Color OldPink { get { return ColorTranslator.FromHtml("#c77986"); } }
|
||||
public static Color VeryPaleBlue { get { return ColorTranslator.FromHtml("#d6fffe"); } }
|
||||
public static Color BloodOrange { get { return ColorTranslator.FromHtml("#fe4b03"); } }
|
||||
public static Color Grapefruit { get { return ColorTranslator.FromHtml("#fd5956"); } }
|
||||
public static Color SandYellow { get { return ColorTranslator.FromHtml("#fce166"); } }
|
||||
public static Color ClayBrown { get { return ColorTranslator.FromHtml("#b2713d"); } }
|
||||
public static Color DarkBlueGrey { get { return ColorTranslator.FromHtml("#1f3b4d"); } }
|
||||
public static Color FlatGreen { get { return ColorTranslator.FromHtml("#699d4c"); } }
|
||||
public static Color LightGreenBlue { get { return ColorTranslator.FromHtml("#56fca2"); } }
|
||||
public static Color WarmPink { get { return ColorTranslator.FromHtml("#fb5581"); } }
|
||||
public static Color DodgerBlue { get { return ColorTranslator.FromHtml("#3e82fc"); } }
|
||||
public static Color GrossGreen { get { return ColorTranslator.FromHtml("#a0bf16"); } }
|
||||
public static Color Ice { get { return ColorTranslator.FromHtml("#d6fffa"); } }
|
||||
public static Color MetallicBlue { get { return ColorTranslator.FromHtml("#4f738e"); } }
|
||||
public static Color PaleSalmon { get { return ColorTranslator.FromHtml("#ffb19a"); } }
|
||||
public static Color SapGreen { get { return ColorTranslator.FromHtml("#5c8b15"); } }
|
||||
public static Color Algae { get { return ColorTranslator.FromHtml("#54ac68"); } }
|
||||
public static Color BlueyGrey { get { return ColorTranslator.FromHtml("#89a0b0"); } }
|
||||
public static Color GreenyGrey { get { return ColorTranslator.FromHtml("#7ea07a"); } }
|
||||
public static Color HighlighterGreen { get { return ColorTranslator.FromHtml("#1bfc06"); } }
|
||||
public static Color LightLightBlue { get { return ColorTranslator.FromHtml("#cafffb"); } }
|
||||
public static Color LightMint { get { return ColorTranslator.FromHtml("#b6ffbb"); } }
|
||||
public static Color RawUmber { get { return ColorTranslator.FromHtml("#a75e09"); } }
|
||||
public static Color VividBlue { get { return ColorTranslator.FromHtml("#152eff"); } }
|
||||
public static Color DeepLavender { get { return ColorTranslator.FromHtml("#8d5eb7"); } }
|
||||
public static Color DullTeal { get { return ColorTranslator.FromHtml("#5f9e8f"); } }
|
||||
public static Color LightGreenishBlue { get { return ColorTranslator.FromHtml("#63f7b4"); } }
|
||||
public static Color MudGreen { get { return ColorTranslator.FromHtml("#606602"); } }
|
||||
public static Color Pinky { get { return ColorTranslator.FromHtml("#fc86aa"); } }
|
||||
public static Color RedWine { get { return ColorTranslator.FromHtml("#8c0034"); } }
|
||||
public static Color ShitGreen { get { return ColorTranslator.FromHtml("#758000"); } }
|
||||
public static Color TanBrown { get { return ColorTranslator.FromHtml("#ab7e4c"); } }
|
||||
public static Color Darkblue { get { return ColorTranslator.FromHtml("#030764"); } }
|
||||
public static Color Rosa { get { return ColorTranslator.FromHtml("#fe86a4"); } }
|
||||
public static Color Lipstick { get { return ColorTranslator.FromHtml("#d5174e"); } }
|
||||
public static Color PaleMauve { get { return ColorTranslator.FromHtml("#fed0fc"); } }
|
||||
public static Color Claret { get { return ColorTranslator.FromHtml("#680018"); } }
|
||||
public static Color Dandelion { get { return ColorTranslator.FromHtml("#fedf08"); } }
|
||||
public static Color Orangered { get { return ColorTranslator.FromHtml("#fe420f"); } }
|
||||
public static Color PoopGreen { get { return ColorTranslator.FromHtml("#6f7c00"); } }
|
||||
public static Color Ruby { get { return ColorTranslator.FromHtml("#ca0147"); } }
|
||||
public static Color Dark { get { return ColorTranslator.FromHtml("#1b2431"); } }
|
||||
public static Color GreenishTurquoise { get { return ColorTranslator.FromHtml("#00fbb0"); } }
|
||||
public static Color PastelRed { get { return ColorTranslator.FromHtml("#db5856"); } }
|
||||
public static Color PissYellow { get { return ColorTranslator.FromHtml("#ddd618"); } }
|
||||
public static Color BrightCyan { get { return ColorTranslator.FromHtml("#41fdfe"); } }
|
||||
public static Color DarkCoral { get { return ColorTranslator.FromHtml("#cf524e"); } }
|
||||
public static Color AlgaeGreen { get { return ColorTranslator.FromHtml("#21c36f"); } }
|
||||
public static Color DarkishRed { get { return ColorTranslator.FromHtml("#a90308"); } }
|
||||
public static Color ReddyBrown { get { return ColorTranslator.FromHtml("#6e1005"); } }
|
||||
public static Color BlushPink { get { return ColorTranslator.FromHtml("#fe828c"); } }
|
||||
public static Color CamouflageGreen { get { return ColorTranslator.FromHtml("#4b6113"); } }
|
||||
public static Color LawnGreen { get { return ColorTranslator.FromHtml("#4da409"); } }
|
||||
public static Color Putty { get { return ColorTranslator.FromHtml("#beae8a"); } }
|
||||
public static Color VibrantBlue { get { return ColorTranslator.FromHtml("#0339f8"); } }
|
||||
public static Color DarkSand { get { return ColorTranslator.FromHtml("#a88f59"); } }
|
||||
public static Color Purple_Blue { get { return ColorTranslator.FromHtml("#5d21d0"); } }
|
||||
public static Color Saffron { get { return ColorTranslator.FromHtml("#feb209"); } }
|
||||
public static Color Twilight { get { return ColorTranslator.FromHtml("#4e518b"); } }
|
||||
public static Color WarmBrown { get { return ColorTranslator.FromHtml("#964e02"); } }
|
||||
public static Color Bluegrey { get { return ColorTranslator.FromHtml("#85a3b2"); } }
|
||||
public static Color BubbleGumPink { get { return ColorTranslator.FromHtml("#ff69af"); } }
|
||||
public static Color DuckEggBlue { get { return ColorTranslator.FromHtml("#c3fbf4"); } }
|
||||
public static Color GreenishCyan { get { return ColorTranslator.FromHtml("#2afeb7"); } }
|
||||
public static Color Petrol { get { return ColorTranslator.FromHtml("#005f6a"); } }
|
||||
public static Color Royal { get { return ColorTranslator.FromHtml("#0c1793"); } }
|
||||
public static Color Butter { get { return ColorTranslator.FromHtml("#ffff81"); } }
|
||||
public static Color DustyOrange { get { return ColorTranslator.FromHtml("#f0833a"); } }
|
||||
public static Color OffYellow { get { return ColorTranslator.FromHtml("#f1f33f"); } }
|
||||
public static Color PaleOliveGreen { get { return ColorTranslator.FromHtml("#b1d27b"); } }
|
||||
public static Color Orangish { get { return ColorTranslator.FromHtml("#fc824a"); } }
|
||||
public static Color Leaf { get { return ColorTranslator.FromHtml("#71aa34"); } }
|
||||
public static Color LightBlueGrey { get { return ColorTranslator.FromHtml("#b7c9e2"); } }
|
||||
public static Color DriedBlood { get { return ColorTranslator.FromHtml("#4b0101"); } }
|
||||
public static Color LightishPurple { get { return ColorTranslator.FromHtml("#a552e6"); } }
|
||||
public static Color RustyRed { get { return ColorTranslator.FromHtml("#af2f0d"); } }
|
||||
public static Color LavenderBlue { get { return ColorTranslator.FromHtml("#8b88f8"); } }
|
||||
public static Color LightGrassGreen { get { return ColorTranslator.FromHtml("#9af764"); } }
|
||||
public static Color LightMintGreen { get { return ColorTranslator.FromHtml("#a6fbb2"); } }
|
||||
public static Color Sunflower { get { return ColorTranslator.FromHtml("#ffc512"); } }
|
||||
public static Color Velvet { get { return ColorTranslator.FromHtml("#750851"); } }
|
||||
public static Color BrickOrange { get { return ColorTranslator.FromHtml("#c14a09"); } }
|
||||
public static Color LightishRed { get { return ColorTranslator.FromHtml("#fe2f4a"); } }
|
||||
public static Color PureBlue { get { return ColorTranslator.FromHtml("#0203e2"); } }
|
||||
public static Color TwilightBlue { get { return ColorTranslator.FromHtml("#0a437a"); } }
|
||||
public static Color VioletRed { get { return ColorTranslator.FromHtml("#a50055"); } }
|
||||
public static Color YellowyBrown { get { return ColorTranslator.FromHtml("#ae8b0c"); } }
|
||||
public static Color Carnation { get { return ColorTranslator.FromHtml("#fd798f"); } }
|
||||
public static Color MuddyYellow { get { return ColorTranslator.FromHtml("#bfac05"); } }
|
||||
public static Color DarkSeafoamGreen { get { return ColorTranslator.FromHtml("#3eaf76"); } }
|
||||
public static Color DeepRose { get { return ColorTranslator.FromHtml("#c74767"); } }
|
||||
public static Color DustyRed { get { return ColorTranslator.FromHtml("#b9484e"); } }
|
||||
public static Color Grey_Blue { get { return ColorTranslator.FromHtml("#647d8e"); } }
|
||||
public static Color LemonLime { get { return ColorTranslator.FromHtml("#bffe28"); } }
|
||||
public static Color Purple_Pink { get { return ColorTranslator.FromHtml("#d725de"); } }
|
||||
public static Color BrownYellow { get { return ColorTranslator.FromHtml("#b29705"); } }
|
||||
public static Color PurpleBrown { get { return ColorTranslator.FromHtml("#673a3f"); } }
|
||||
public static Color Wisteria { get { return ColorTranslator.FromHtml("#a87dc2"); } }
|
||||
public static Color BananaYellow { get { return ColorTranslator.FromHtml("#fafe4b"); } }
|
||||
public static Color LipstickRed { get { return ColorTranslator.FromHtml("#c0022f"); } }
|
||||
public static Color WaterBlue { get { return ColorTranslator.FromHtml("#0e87cc"); } }
|
||||
public static Color BrownGrey { get { return ColorTranslator.FromHtml("#8d8468"); } }
|
||||
public static Color VibrantPurple { get { return ColorTranslator.FromHtml("#ad03de"); } }
|
||||
public static Color BabyGreen { get { return ColorTranslator.FromHtml("#8cff9e"); } }
|
||||
public static Color BarfGreen { get { return ColorTranslator.FromHtml("#94ac02"); } }
|
||||
public static Color EggshellBlue { get { return ColorTranslator.FromHtml("#c4fff7"); } }
|
||||
public static Color SandyYellow { get { return ColorTranslator.FromHtml("#fdee73"); } }
|
||||
public static Color CoolGreen { get { return ColorTranslator.FromHtml("#33b864"); } }
|
||||
public static Color Pale { get { return ColorTranslator.FromHtml("#fff9d0"); } }
|
||||
public static Color Blue_Grey { get { return ColorTranslator.FromHtml("#758da3"); } }
|
||||
public static Color HotMagenta { get { return ColorTranslator.FromHtml("#f504c9"); } }
|
||||
public static Color Greyblue { get { return ColorTranslator.FromHtml("#77a1b5"); } }
|
||||
public static Color Purpley { get { return ColorTranslator.FromHtml("#8756e4"); } }
|
||||
public static Color BabyShitGreen { get { return ColorTranslator.FromHtml("#889717"); } }
|
||||
public static Color BrownishPink { get { return ColorTranslator.FromHtml("#c27e79"); } }
|
||||
public static Color DarkAquamarine { get { return ColorTranslator.FromHtml("#017371"); } }
|
||||
public static Color Diarrhea { get { return ColorTranslator.FromHtml("#9f8303"); } }
|
||||
public static Color LightMustard { get { return ColorTranslator.FromHtml("#f7d560"); } }
|
||||
public static Color PaleSkyBlue { get { return ColorTranslator.FromHtml("#bdf6fe"); } }
|
||||
public static Color TurtleGreen { get { return ColorTranslator.FromHtml("#75b84f"); } }
|
||||
public static Color BrightOlive { get { return ColorTranslator.FromHtml("#9cbb04"); } }
|
||||
public static Color DarkGreyBlue { get { return ColorTranslator.FromHtml("#29465b"); } }
|
||||
public static Color GreenyBrown { get { return ColorTranslator.FromHtml("#696006"); } }
|
||||
public static Color LemonGreen { get { return ColorTranslator.FromHtml("#adf802"); } }
|
||||
public static Color LightPeriwinkle { get { return ColorTranslator.FromHtml("#c1c6fc"); } }
|
||||
public static Color SeaweedGreen { get { return ColorTranslator.FromHtml("#35ad6b"); } }
|
||||
public static Color SunshineYellow { get { return ColorTranslator.FromHtml("#fffd37"); } }
|
||||
public static Color UglyPurple { get { return ColorTranslator.FromHtml("#a442a0"); } }
|
||||
public static Color MediumPink { get { return ColorTranslator.FromHtml("#f36196"); } }
|
||||
public static Color PukeBrown { get { return ColorTranslator.FromHtml("#947706"); } }
|
||||
public static Color VeryLightPink { get { return ColorTranslator.FromHtml("#fff4f2"); } }
|
||||
public static Color Viridian { get { return ColorTranslator.FromHtml("#1e9167"); } }
|
||||
public static Color Bile { get { return ColorTranslator.FromHtml("#b5c306"); } }
|
||||
public static Color FadedYellow { get { return ColorTranslator.FromHtml("#feff7f"); } }
|
||||
public static Color VeryPaleGreen { get { return ColorTranslator.FromHtml("#cffdbc"); } }
|
||||
public static Color VibrantGreen { get { return ColorTranslator.FromHtml("#0add08"); } }
|
||||
public static Color BrightLime { get { return ColorTranslator.FromHtml("#87fd05"); } }
|
||||
public static Color Spearmint { get { return ColorTranslator.FromHtml("#1ef876"); } }
|
||||
public static Color LightAquamarine { get { return ColorTranslator.FromHtml("#7bfdc7"); } }
|
||||
public static Color LightSage { get { return ColorTranslator.FromHtml("#bcecac"); } }
|
||||
public static Color Yellowgreen { get { return ColorTranslator.FromHtml("#bbf90f"); } }
|
||||
public static Color BabyPoo { get { return ColorTranslator.FromHtml("#ab9004"); } }
|
||||
public static Color DarkSeafoam { get { return ColorTranslator.FromHtml("#1fb57a"); } }
|
||||
public static Color DeepTeal { get { return ColorTranslator.FromHtml("#00555a"); } }
|
||||
public static Color Heather { get { return ColorTranslator.FromHtml("#a484ac"); } }
|
||||
public static Color RustOrange { get { return ColorTranslator.FromHtml("#c45508"); } }
|
||||
public static Color DirtyBlue { get { return ColorTranslator.FromHtml("#3f829d"); } }
|
||||
public static Color FernGreen { get { return ColorTranslator.FromHtml("#548d44"); } }
|
||||
public static Color BrightLilac { get { return ColorTranslator.FromHtml("#c95efb"); } }
|
||||
public static Color WeirdGreen { get { return ColorTranslator.FromHtml("#3ae57f"); } }
|
||||
public static Color PeacockBlue { get { return ColorTranslator.FromHtml("#016795"); } }
|
||||
public static Color AvocadoGreen { get { return ColorTranslator.FromHtml("#87a922"); } }
|
||||
public static Color FadedOrange { get { return ColorTranslator.FromHtml("#f0944d"); } }
|
||||
public static Color GrapePurple { get { return ColorTranslator.FromHtml("#5d1451"); } }
|
||||
public static Color HotGreen { get { return ColorTranslator.FromHtml("#25ff29"); } }
|
||||
public static Color LimeYellow { get { return ColorTranslator.FromHtml("#d0fe1d"); } }
|
||||
public static Color Mango { get { return ColorTranslator.FromHtml("#ffa62b"); } }
|
||||
public static Color Shamrock { get { return ColorTranslator.FromHtml("#01b44c"); } }
|
||||
public static Color Bubblegum { get { return ColorTranslator.FromHtml("#ff6cb5"); } }
|
||||
public static Color PurplishBrown { get { return ColorTranslator.FromHtml("#6b4247"); } }
|
||||
public static Color VomitYellow { get { return ColorTranslator.FromHtml("#c7c10c"); } }
|
||||
public static Color PaleCyan { get { return ColorTranslator.FromHtml("#b7fffa"); } }
|
||||
public static Color KeyLime { get { return ColorTranslator.FromHtml("#aeff6e"); } }
|
||||
public static Color TomatoRed { get { return ColorTranslator.FromHtml("#ec2d01"); } }
|
||||
public static Color Lightgreen { get { return ColorTranslator.FromHtml("#76ff7b"); } }
|
||||
public static Color Merlot { get { return ColorTranslator.FromHtml("#730039"); } }
|
||||
public static Color NightBlue { get { return ColorTranslator.FromHtml("#040348"); } }
|
||||
public static Color PurpleishPink { get { return ColorTranslator.FromHtml("#df4ec8"); } }
|
||||
public static Color Apple { get { return ColorTranslator.FromHtml("#6ecb3c"); } }
|
||||
public static Color BabyPoopGreen { get { return ColorTranslator.FromHtml("#8f9805"); } }
|
||||
public static Color GreenApple { get { return ColorTranslator.FromHtml("#5edc1f"); } }
|
||||
public static Color Heliotrope { get { return ColorTranslator.FromHtml("#d94ff5"); } }
|
||||
public static Color Yellow_Green { get { return ColorTranslator.FromHtml("#c8fd3d"); } }
|
||||
public static Color AlmostBlack { get { return ColorTranslator.FromHtml("#070d0d"); } }
|
||||
public static Color CoolBlue { get { return ColorTranslator.FromHtml("#4984b8"); } }
|
||||
public static Color LeafyGreen { get { return ColorTranslator.FromHtml("#51b73b"); } }
|
||||
public static Color MustardBrown { get { return ColorTranslator.FromHtml("#ac7e04"); } }
|
||||
public static Color Dusk { get { return ColorTranslator.FromHtml("#4e5481"); } }
|
||||
public static Color DullBrown { get { return ColorTranslator.FromHtml("#876e4b"); } }
|
||||
public static Color FrogGreen { get { return ColorTranslator.FromHtml("#58bc08"); } }
|
||||
public static Color VividGreen { get { return ColorTranslator.FromHtml("#2fef10"); } }
|
||||
public static Color BrightLightGreen { get { return ColorTranslator.FromHtml("#2dfe54"); } }
|
||||
public static Color FluroGreen { get { return ColorTranslator.FromHtml("#0aff02"); } }
|
||||
public static Color Kiwi { get { return ColorTranslator.FromHtml("#9cef43"); } }
|
||||
public static Color Seaweed { get { return ColorTranslator.FromHtml("#18d17b"); } }
|
||||
public static Color NavyGreen { get { return ColorTranslator.FromHtml("#35530a"); } }
|
||||
public static Color UltramarineBlue { get { return ColorTranslator.FromHtml("#1805db"); } }
|
||||
public static Color Iris { get { return ColorTranslator.FromHtml("#6258c4"); } }
|
||||
public static Color PastelOrange { get { return ColorTranslator.FromHtml("#ff964f"); } }
|
||||
public static Color YellowishOrange { get { return ColorTranslator.FromHtml("#ffab0f"); } }
|
||||
public static Color Perrywinkle { get { return ColorTranslator.FromHtml("#8f8ce7"); } }
|
||||
public static Color Tealish { get { return ColorTranslator.FromHtml("#24bca8"); } }
|
||||
public static Color DarkPlum { get { return ColorTranslator.FromHtml("#3f012c"); } }
|
||||
public static Color Pear { get { return ColorTranslator.FromHtml("#cbf85f"); } }
|
||||
public static Color PinkishOrange { get { return ColorTranslator.FromHtml("#ff724c"); } }
|
||||
public static Color MidnightPurple { get { return ColorTranslator.FromHtml("#280137"); } }
|
||||
public static Color LightUrple { get { return ColorTranslator.FromHtml("#b36ff6"); } }
|
||||
public static Color DarkMint { get { return ColorTranslator.FromHtml("#48c072"); } }
|
||||
public static Color GreenishTan { get { return ColorTranslator.FromHtml("#bccb7a"); } }
|
||||
public static Color LightBurgundy { get { return ColorTranslator.FromHtml("#a8415b"); } }
|
||||
public static Color TurquoiseBlue { get { return ColorTranslator.FromHtml("#06b1c4"); } }
|
||||
public static Color UglyPink { get { return ColorTranslator.FromHtml("#cd7584"); } }
|
||||
public static Color Sandy { get { return ColorTranslator.FromHtml("#f1da7a"); } }
|
||||
public static Color ElectricPink { get { return ColorTranslator.FromHtml("#ff0490"); } }
|
||||
public static Color MutedPurple { get { return ColorTranslator.FromHtml("#805b87"); } }
|
||||
public static Color MidGreen { get { return ColorTranslator.FromHtml("#50a747"); } }
|
||||
public static Color Greyish { get { return ColorTranslator.FromHtml("#a8a495"); } }
|
||||
public static Color NeonYellow { get { return ColorTranslator.FromHtml("#cfff04"); } }
|
||||
public static Color Banana { get { return ColorTranslator.FromHtml("#ffff7e"); } }
|
||||
public static Color CarnationPink { get { return ColorTranslator.FromHtml("#ff7fa7"); } }
|
||||
public static Color Tomato { get { return ColorTranslator.FromHtml("#ef4026"); } }
|
||||
public static Color Sea { get { return ColorTranslator.FromHtml("#3c9992"); } }
|
||||
public static Color MuddyBrown { get { return ColorTranslator.FromHtml("#886806"); } }
|
||||
public static Color TurquoiseGreen { get { return ColorTranslator.FromHtml("#04f489"); } }
|
||||
public static Color Buff { get { return ColorTranslator.FromHtml("#fef69e"); } }
|
||||
public static Color Fawn { get { return ColorTranslator.FromHtml("#cfaf7b"); } }
|
||||
public static Color MutedBlue { get { return ColorTranslator.FromHtml("#3b719f"); } }
|
||||
public static Color PaleRose { get { return ColorTranslator.FromHtml("#fdc1c5"); } }
|
||||
public static Color DarkMintGreen { get { return ColorTranslator.FromHtml("#20c073"); } }
|
||||
public static Color Amethyst { get { return ColorTranslator.FromHtml("#9b5fc0"); } }
|
||||
public static Color Blue_Green { get { return ColorTranslator.FromHtml("#0f9b8e"); } }
|
||||
public static Color Chestnut { get { return ColorTranslator.FromHtml("#742802"); } }
|
||||
public static Color SickGreen { get { return ColorTranslator.FromHtml("#9db92c"); } }
|
||||
public static Color Pea { get { return ColorTranslator.FromHtml("#a4bf20"); } }
|
||||
public static Color RustyOrange { get { return ColorTranslator.FromHtml("#cd5909"); } }
|
||||
public static Color Stone { get { return ColorTranslator.FromHtml("#ada587"); } }
|
||||
public static Color RoseRed { get { return ColorTranslator.FromHtml("#be013c"); } }
|
||||
public static Color PaleAqua { get { return ColorTranslator.FromHtml("#b8ffeb"); } }
|
||||
public static Color DeepOrange { get { return ColorTranslator.FromHtml("#dc4d01"); } }
|
||||
public static Color Earth { get { return ColorTranslator.FromHtml("#a2653e"); } }
|
||||
public static Color MossyGreen { get { return ColorTranslator.FromHtml("#638b27"); } }
|
||||
public static Color GrassyGreen { get { return ColorTranslator.FromHtml("#419c03"); } }
|
||||
public static Color PaleLimeGreen { get { return ColorTranslator.FromHtml("#b1ff65"); } }
|
||||
public static Color LightGreyBlue { get { return ColorTranslator.FromHtml("#9dbcd4"); } }
|
||||
public static Color PaleGrey { get { return ColorTranslator.FromHtml("#fdfdfe"); } }
|
||||
public static Color Asparagus { get { return ColorTranslator.FromHtml("#77ab56"); } }
|
||||
public static Color Blueberry { get { return ColorTranslator.FromHtml("#464196"); } }
|
||||
public static Color PurpleRed { get { return ColorTranslator.FromHtml("#990147"); } }
|
||||
public static Color PaleLime { get { return ColorTranslator.FromHtml("#befd73"); } }
|
||||
public static Color GreenishTeal { get { return ColorTranslator.FromHtml("#32bf84"); } }
|
||||
public static Color Caramel { get { return ColorTranslator.FromHtml("#af6f09"); } }
|
||||
public static Color DeepMagenta { get { return ColorTranslator.FromHtml("#a0025c"); } }
|
||||
public static Color LightPeach { get { return ColorTranslator.FromHtml("#ffd8b1"); } }
|
||||
public static Color MilkChocolate { get { return ColorTranslator.FromHtml("#7f4e1e"); } }
|
||||
public static Color Ocher { get { return ColorTranslator.FromHtml("#bf9b0c"); } }
|
||||
public static Color OffGreen { get { return ColorTranslator.FromHtml("#6ba353"); } }
|
||||
public static Color PurplyPink { get { return ColorTranslator.FromHtml("#f075e6"); } }
|
||||
public static Color Lightblue { get { return ColorTranslator.FromHtml("#7bc8f6"); } }
|
||||
public static Color DuskyBlue { get { return ColorTranslator.FromHtml("#475f94"); } }
|
||||
public static Color Golden { get { return ColorTranslator.FromHtml("#f5bf03"); } }
|
||||
public static Color LightBeige { get { return ColorTranslator.FromHtml("#fffeb6"); } }
|
||||
public static Color ButterYellow { get { return ColorTranslator.FromHtml("#fffd74"); } }
|
||||
public static Color DuskyPurple { get { return ColorTranslator.FromHtml("#895b7b"); } }
|
||||
public static Color FrenchBlue { get { return ColorTranslator.FromHtml("#436bad"); } }
|
||||
public static Color UglyYellow { get { return ColorTranslator.FromHtml("#d0c101"); } }
|
||||
public static Color GreenyYellow { get { return ColorTranslator.FromHtml("#c6f808"); } }
|
||||
public static Color OrangishRed { get { return ColorTranslator.FromHtml("#f43605"); } }
|
||||
public static Color ShamrockGreen { get { return ColorTranslator.FromHtml("#02c14d"); } }
|
||||
public static Color OrangishBrown { get { return ColorTranslator.FromHtml("#b25f03"); } }
|
||||
public static Color TreeGreen { get { return ColorTranslator.FromHtml("#2a7e19"); } }
|
||||
public static Color DeepViolet { get { return ColorTranslator.FromHtml("#490648"); } }
|
||||
public static Color Gunmetal { get { return ColorTranslator.FromHtml("#536267"); } }
|
||||
public static Color Blue_Purple { get { return ColorTranslator.FromHtml("#5a06ef"); } }
|
||||
public static Color Cherry { get { return ColorTranslator.FromHtml("#cf0234"); } }
|
||||
public static Color SandyBrown { get { return ColorTranslator.FromHtml("#c4a661"); } }
|
||||
public static Color WarmGrey { get { return ColorTranslator.FromHtml("#978a84"); } }
|
||||
public static Color DarkIndigo { get { return ColorTranslator.FromHtml("#1f0954"); } }
|
||||
public static Color Midnight { get { return ColorTranslator.FromHtml("#03012d"); } }
|
||||
public static Color BlueyGreen { get { return ColorTranslator.FromHtml("#2bb179"); } }
|
||||
public static Color GreyPink { get { return ColorTranslator.FromHtml("#c3909b"); } }
|
||||
public static Color SoftPurple { get { return ColorTranslator.FromHtml("#a66fb5"); } }
|
||||
public static Color Blood { get { return ColorTranslator.FromHtml("#770001"); } }
|
||||
public static Color BrownRed { get { return ColorTranslator.FromHtml("#922b05"); } }
|
||||
public static Color MediumGrey { get { return ColorTranslator.FromHtml("#7d7f7c"); } }
|
||||
public static Color Berry { get { return ColorTranslator.FromHtml("#990f4b"); } }
|
||||
public static Color Poo { get { return ColorTranslator.FromHtml("#8f7303"); } }
|
||||
public static Color PurpleyPink { get { return ColorTranslator.FromHtml("#c83cb9"); } }
|
||||
public static Color LightSalmon { get { return ColorTranslator.FromHtml("#fea993"); } }
|
||||
public static Color Snot { get { return ColorTranslator.FromHtml("#acbb0d"); } }
|
||||
public static Color EasterPurple { get { return ColorTranslator.FromHtml("#c071fe"); } }
|
||||
public static Color LightYellowGreen { get { return ColorTranslator.FromHtml("#ccfd7f"); } }
|
||||
public static Color DarkNavyBlue { get { return ColorTranslator.FromHtml("#00022e"); } }
|
||||
public static Color Drab { get { return ColorTranslator.FromHtml("#828344"); } }
|
||||
public static Color LightRose { get { return ColorTranslator.FromHtml("#ffc5cb"); } }
|
||||
public static Color Rouge { get { return ColorTranslator.FromHtml("#ab1239"); } }
|
||||
public static Color PurplishRed { get { return ColorTranslator.FromHtml("#b0054b"); } }
|
||||
public static Color SlimeGreen { get { return ColorTranslator.FromHtml("#99cc04"); } }
|
||||
public static Color BabyPoop { get { return ColorTranslator.FromHtml("#937c00"); } }
|
||||
public static Color IrishGreen { get { return ColorTranslator.FromHtml("#019529"); } }
|
||||
public static Color Pink_Purple { get { return ColorTranslator.FromHtml("#ef1de7"); } }
|
||||
public static Color DarkNavy { get { return ColorTranslator.FromHtml("#000435"); } }
|
||||
public static Color GreenyBlue { get { return ColorTranslator.FromHtml("#42b395"); } }
|
||||
public static Color LightPlum { get { return ColorTranslator.FromHtml("#9d5783"); } }
|
||||
public static Color PinkishGrey { get { return ColorTranslator.FromHtml("#c8aca9"); } }
|
||||
public static Color DirtyOrange { get { return ColorTranslator.FromHtml("#c87606"); } }
|
||||
public static Color RustRed { get { return ColorTranslator.FromHtml("#aa2704"); } }
|
||||
public static Color PaleLilac { get { return ColorTranslator.FromHtml("#e4cbff"); } }
|
||||
public static Color OrangeyRed { get { return ColorTranslator.FromHtml("#fa4224"); } }
|
||||
public static Color PrimaryBlue { get { return ColorTranslator.FromHtml("#0804f9"); } }
|
||||
public static Color KermitGreen { get { return ColorTranslator.FromHtml("#5cb200"); } }
|
||||
public static Color BrownishPurple { get { return ColorTranslator.FromHtml("#76424e"); } }
|
||||
public static Color MurkyGreen { get { return ColorTranslator.FromHtml("#6c7a0e"); } }
|
||||
public static Color Wheat { get { return ColorTranslator.FromHtml("#fbdd7e"); } }
|
||||
public static Color VeryDarkPurple { get { return ColorTranslator.FromHtml("#2a0134"); } }
|
||||
public static Color BottleGreen { get { return ColorTranslator.FromHtml("#044a05"); } }
|
||||
public static Color Watermelon { get { return ColorTranslator.FromHtml("#fd4659"); } }
|
||||
public static Color DeepSkyBlue { get { return ColorTranslator.FromHtml("#0d75f8"); } }
|
||||
public static Color FireEngineRed { get { return ColorTranslator.FromHtml("#fe0002"); } }
|
||||
public static Color YellowOchre { get { return ColorTranslator.FromHtml("#cb9d06"); } }
|
||||
public static Color PumpkinOrange { get { return ColorTranslator.FromHtml("#fb7d07"); } }
|
||||
public static Color PaleOlive { get { return ColorTranslator.FromHtml("#b9cc81"); } }
|
||||
public static Color LightLilac { get { return ColorTranslator.FromHtml("#edc8ff"); } }
|
||||
public static Color LightishGreen { get { return ColorTranslator.FromHtml("#61e160"); } }
|
||||
public static Color CarolinaBlue { get { return ColorTranslator.FromHtml("#8ab8fe"); } }
|
||||
public static Color Mulberry { get { return ColorTranslator.FromHtml("#920a4e"); } }
|
||||
public static Color ShockingPink { get { return ColorTranslator.FromHtml("#fe02a2"); } }
|
||||
public static Color Auburn { get { return ColorTranslator.FromHtml("#9a3001"); } }
|
||||
public static Color BrightLimeGreen { get { return ColorTranslator.FromHtml("#65fe08"); } }
|
||||
public static Color Celadon { get { return ColorTranslator.FromHtml("#befdb7"); } }
|
||||
public static Color PinkishBrown { get { return ColorTranslator.FromHtml("#b17261"); } }
|
||||
public static Color PooBrown { get { return ColorTranslator.FromHtml("#885f01"); } }
|
||||
public static Color BrightSkyBlue { get { return ColorTranslator.FromHtml("#02ccfe"); } }
|
||||
public static Color Celery { get { return ColorTranslator.FromHtml("#c1fd95"); } }
|
||||
public static Color DirtBrown { get { return ColorTranslator.FromHtml("#836539"); } }
|
||||
public static Color Strawberry { get { return ColorTranslator.FromHtml("#fb2943"); } }
|
||||
public static Color DarkLime { get { return ColorTranslator.FromHtml("#84b701"); } }
|
||||
public static Color Copper { get { return ColorTranslator.FromHtml("#b66325"); } }
|
||||
public static Color MediumBrown { get { return ColorTranslator.FromHtml("#7f5112"); } }
|
||||
public static Color MutedGreen { get { return ColorTranslator.FromHtml("#5fa052"); } }
|
||||
public static Color RobinSEgg { get { return ColorTranslator.FromHtml("#6dedfd"); } }
|
||||
public static Color BrightAqua { get { return ColorTranslator.FromHtml("#0bf9ea"); } }
|
||||
public static Color BrightLavender { get { return ColorTranslator.FromHtml("#c760ff"); } }
|
||||
public static Color Ivory { get { return ColorTranslator.FromHtml("#ffffcb"); } }
|
||||
public static Color VeryLightPurple { get { return ColorTranslator.FromHtml("#f6cefc"); } }
|
||||
public static Color LightNavy { get { return ColorTranslator.FromHtml("#155084"); } }
|
||||
public static Color PinkRed { get { return ColorTranslator.FromHtml("#f5054f"); } }
|
||||
public static Color OliveBrown { get { return ColorTranslator.FromHtml("#645403"); } }
|
||||
public static Color PoopBrown { get { return ColorTranslator.FromHtml("#7a5901"); } }
|
||||
public static Color MustardGreen { get { return ColorTranslator.FromHtml("#a8b504"); } }
|
||||
public static Color OceanGreen { get { return ColorTranslator.FromHtml("#3d9973"); } }
|
||||
public static Color VeryDarkBlue { get { return ColorTranslator.FromHtml("#000133"); } }
|
||||
public static Color DustyGreen { get { return ColorTranslator.FromHtml("#76a973"); } }
|
||||
public static Color LightNavyBlue { get { return ColorTranslator.FromHtml("#2e5a88"); } }
|
||||
public static Color MintyGreen { get { return ColorTranslator.FromHtml("#0bf77d"); } }
|
||||
public static Color Adobe { get { return ColorTranslator.FromHtml("#bd6c48"); } }
|
||||
public static Color Barney { get { return ColorTranslator.FromHtml("#ac1db8"); } }
|
||||
public static Color JadeGreen { get { return ColorTranslator.FromHtml("#2baf6a"); } }
|
||||
public static Color BrightLightBlue { get { return ColorTranslator.FromHtml("#26f7fd"); } }
|
||||
public static Color LightLime { get { return ColorTranslator.FromHtml("#aefd6c"); } }
|
||||
public static Color DarkKhaki { get { return ColorTranslator.FromHtml("#9b8f55"); } }
|
||||
public static Color OrangeYellow { get { return ColorTranslator.FromHtml("#ffad01"); } }
|
||||
public static Color Ocre { get { return ColorTranslator.FromHtml("#c69c04"); } }
|
||||
public static Color Maize { get { return ColorTranslator.FromHtml("#f4d054"); } }
|
||||
public static Color FadedPink { get { return ColorTranslator.FromHtml("#de9dac"); } }
|
||||
public static Color BritishRacingGreen { get { return ColorTranslator.FromHtml("#05480d"); } }
|
||||
public static Color Sandstone { get { return ColorTranslator.FromHtml("#c9ae74"); } }
|
||||
public static Color MudBrown { get { return ColorTranslator.FromHtml("#60460f"); } }
|
||||
public static Color LightSeaGreen { get { return ColorTranslator.FromHtml("#98f6b0"); } }
|
||||
public static Color RobinEggBlue { get { return ColorTranslator.FromHtml("#8af1fe"); } }
|
||||
public static Color AquaMarine { get { return ColorTranslator.FromHtml("#2ee8bb"); } }
|
||||
public static Color DarkSeaGreen { get { return ColorTranslator.FromHtml("#11875d"); } }
|
||||
public static Color SoftPink { get { return ColorTranslator.FromHtml("#fdb0c0"); } }
|
||||
public static Color OrangeyBrown { get { return ColorTranslator.FromHtml("#b16002"); } }
|
||||
public static Color CherryRed { get { return ColorTranslator.FromHtml("#f7022a"); } }
|
||||
public static Color BurntYellow { get { return ColorTranslator.FromHtml("#d5ab09"); } }
|
||||
public static Color BrownishGrey { get { return ColorTranslator.FromHtml("#86775f"); } }
|
||||
public static Color Camel { get { return ColorTranslator.FromHtml("#c69f59"); } }
|
||||
public static Color PurplishGrey { get { return ColorTranslator.FromHtml("#7a687f"); } }
|
||||
public static Color Marine { get { return ColorTranslator.FromHtml("#042e60"); } }
|
||||
public static Color GreyishPink { get { return ColorTranslator.FromHtml("#c88d94"); } }
|
||||
public static Color PaleTurquoise { get { return ColorTranslator.FromHtml("#a5fbd5"); } }
|
||||
public static Color PastelYellow { get { return ColorTranslator.FromHtml("#fffe71"); } }
|
||||
public static Color BlueyPurple { get { return ColorTranslator.FromHtml("#6241c7"); } }
|
||||
public static Color CanaryYellow { get { return ColorTranslator.FromHtml("#fffe40"); } }
|
||||
public static Color FadedRed { get { return ColorTranslator.FromHtml("#d3494e"); } }
|
||||
public static Color Sepia { get { return ColorTranslator.FromHtml("#985e2b"); } }
|
||||
public static Color Coffee { get { return ColorTranslator.FromHtml("#a6814c"); } }
|
||||
public static Color BrightMagenta { get { return ColorTranslator.FromHtml("#ff08e8"); } }
|
||||
public static Color Mocha { get { return ColorTranslator.FromHtml("#9d7651"); } }
|
||||
public static Color Ecru { get { return ColorTranslator.FromHtml("#feffca"); } }
|
||||
public static Color Purpleish { get { return ColorTranslator.FromHtml("#98568d"); } }
|
||||
public static Color Cranberry { get { return ColorTranslator.FromHtml("#9e003a"); } }
|
||||
public static Color DarkishGreen { get { return ColorTranslator.FromHtml("#287c37"); } }
|
||||
public static Color BrownOrange { get { return ColorTranslator.FromHtml("#b96902"); } }
|
||||
public static Color DuskyRose { get { return ColorTranslator.FromHtml("#ba6873"); } }
|
||||
public static Color Melon { get { return ColorTranslator.FromHtml("#ff7855"); } }
|
||||
public static Color SicklyGreen { get { return ColorTranslator.FromHtml("#94b21c"); } }
|
||||
public static Color Silver { get { return ColorTranslator.FromHtml("#c5c9c7"); } }
|
||||
public static Color PurplyBlue { get { return ColorTranslator.FromHtml("#661aee"); } }
|
||||
public static Color PurpleishBlue { get { return ColorTranslator.FromHtml("#6140ef"); } }
|
||||
public static Color HospitalGreen { get { return ColorTranslator.FromHtml("#9be5aa"); } }
|
||||
public static Color ShitBrown { get { return ColorTranslator.FromHtml("#7b5804"); } }
|
||||
public static Color MidBlue { get { return ColorTranslator.FromHtml("#276ab3"); } }
|
||||
public static Color Amber { get { return ColorTranslator.FromHtml("#feb308"); } }
|
||||
public static Color EasterGreen { get { return ColorTranslator.FromHtml("#8cfd7e"); } }
|
||||
public static Color SoftBlue { get { return ColorTranslator.FromHtml("#6488ea"); } }
|
||||
public static Color CeruleanBlue { get { return ColorTranslator.FromHtml("#056eee"); } }
|
||||
public static Color GoldenBrown { get { return ColorTranslator.FromHtml("#b27a01"); } }
|
||||
public static Color BrightTurquoise { get { return ColorTranslator.FromHtml("#0ffef9"); } }
|
||||
public static Color RedPink { get { return ColorTranslator.FromHtml("#fa2a55"); } }
|
||||
public static Color RedPurple { get { return ColorTranslator.FromHtml("#820747"); } }
|
||||
public static Color GreyishBrown { get { return ColorTranslator.FromHtml("#7a6a4f"); } }
|
||||
public static Color Vermillion { get { return ColorTranslator.FromHtml("#f4320c"); } }
|
||||
public static Color Russet { get { return ColorTranslator.FromHtml("#a13905"); } }
|
||||
public static Color SteelGrey { get { return ColorTranslator.FromHtml("#6f828a"); } }
|
||||
public static Color LighterPurple { get { return ColorTranslator.FromHtml("#a55af4"); } }
|
||||
public static Color BrightViolet { get { return ColorTranslator.FromHtml("#ad0afd"); } }
|
||||
public static Color PrussianBlue { get { return ColorTranslator.FromHtml("#004577"); } }
|
||||
public static Color SlateGreen { get { return ColorTranslator.FromHtml("#658d6d"); } }
|
||||
public static Color DirtyPink { get { return ColorTranslator.FromHtml("#ca7b80"); } }
|
||||
public static Color DarkBlueGreen { get { return ColorTranslator.FromHtml("#005249"); } }
|
||||
public static Color Pine { get { return ColorTranslator.FromHtml("#2b5d34"); } }
|
||||
public static Color YellowyGreen { get { return ColorTranslator.FromHtml("#bff128"); } }
|
||||
public static Color DarkGold { get { return ColorTranslator.FromHtml("#b59410"); } }
|
||||
public static Color Bluish { get { return ColorTranslator.FromHtml("#2976bb"); } }
|
||||
public static Color DarkishBlue { get { return ColorTranslator.FromHtml("#014182"); } }
|
||||
public static Color DullRed { get { return ColorTranslator.FromHtml("#bb3f3f"); } }
|
||||
public static Color PinkyRed { get { return ColorTranslator.FromHtml("#fc2647"); } }
|
||||
public static Color Bronze { get { return ColorTranslator.FromHtml("#a87900"); } }
|
||||
public static Color PaleTeal { get { return ColorTranslator.FromHtml("#82cbb2"); } }
|
||||
public static Color MilitaryGreen { get { return ColorTranslator.FromHtml("#667c3e"); } }
|
||||
public static Color BarbiePink { get { return ColorTranslator.FromHtml("#fe46a5"); } }
|
||||
public static Color BubblegumPink { get { return ColorTranslator.FromHtml("#fe83cc"); } }
|
||||
public static Color PeaSoupGreen { get { return ColorTranslator.FromHtml("#94a617"); } }
|
||||
public static Color DarkMustard { get { return ColorTranslator.FromHtml("#a88905"); } }
|
||||
public static Color Shit { get { return ColorTranslator.FromHtml("#7f5f00"); } }
|
||||
public static Color MediumPurple { get { return ColorTranslator.FromHtml("#9e43a2"); } }
|
||||
public static Color VeryDarkGreen { get { return ColorTranslator.FromHtml("#062e03"); } }
|
||||
public static Color Dirt { get { return ColorTranslator.FromHtml("#8a6e45"); } }
|
||||
public static Color DuskyPink { get { return ColorTranslator.FromHtml("#cc7a8b"); } }
|
||||
public static Color RedViolet { get { return ColorTranslator.FromHtml("#9e0168"); } }
|
||||
public static Color LemonYellow { get { return ColorTranslator.FromHtml("#fdff38"); } }
|
||||
public static Color Pistachio { get { return ColorTranslator.FromHtml("#c0fa8b"); } }
|
||||
public static Color DullYellow { get { return ColorTranslator.FromHtml("#eedc5b"); } }
|
||||
public static Color DarkLimeGreen { get { return ColorTranslator.FromHtml("#7ebd01"); } }
|
||||
public static Color DenimBlue { get { return ColorTranslator.FromHtml("#3b5b92"); } }
|
||||
public static Color TealBlue { get { return ColorTranslator.FromHtml("#01889f"); } }
|
||||
public static Color LightishBlue { get { return ColorTranslator.FromHtml("#3d7afd"); } }
|
||||
public static Color PurpleyBlue { get { return ColorTranslator.FromHtml("#5f34e7"); } }
|
||||
public static Color LightIndigo { get { return ColorTranslator.FromHtml("#6d5acf"); } }
|
||||
public static Color SwampGreen { get { return ColorTranslator.FromHtml("#748500"); } }
|
||||
public static Color BrownGreen { get { return ColorTranslator.FromHtml("#706c11"); } }
|
||||
public static Color DarkMaroon { get { return ColorTranslator.FromHtml("#3c0008"); } }
|
||||
public static Color HotPurple { get { return ColorTranslator.FromHtml("#cb00f5"); } }
|
||||
public static Color DarkForestGreen { get { return ColorTranslator.FromHtml("#002d04"); } }
|
||||
public static Color FadedBlue { get { return ColorTranslator.FromHtml("#658cbb"); } }
|
||||
public static Color DrabGreen { get { return ColorTranslator.FromHtml("#749551"); } }
|
||||
public static Color LightLimeGreen { get { return ColorTranslator.FromHtml("#b9ff66"); } }
|
||||
public static Color SnotGreen { get { return ColorTranslator.FromHtml("#9dc100"); } }
|
||||
public static Color Yellowish { get { return ColorTranslator.FromHtml("#faee66"); } }
|
||||
public static Color LightBlueGreen { get { return ColorTranslator.FromHtml("#7efbb3"); } }
|
||||
public static Color Bordeaux { get { return ColorTranslator.FromHtml("#7b002c"); } }
|
||||
public static Color LightMauve { get { return ColorTranslator.FromHtml("#c292a1"); } }
|
||||
public static Color Ocean { get { return ColorTranslator.FromHtml("#017b92"); } }
|
||||
public static Color Marigold { get { return ColorTranslator.FromHtml("#fcc006"); } }
|
||||
public static Color MuddyGreen { get { return ColorTranslator.FromHtml("#657432"); } }
|
||||
public static Color DullOrange { get { return ColorTranslator.FromHtml("#d8863b"); } }
|
||||
public static Color Steel { get { return ColorTranslator.FromHtml("#738595"); } }
|
||||
public static Color ElectricPurple { get { return ColorTranslator.FromHtml("#aa23ff"); } }
|
||||
public static Color FluorescentGreen { get { return ColorTranslator.FromHtml("#08ff08"); } }
|
||||
public static Color YellowishBrown { get { return ColorTranslator.FromHtml("#9b7a01"); } }
|
||||
public static Color Blush { get { return ColorTranslator.FromHtml("#f29e8e"); } }
|
||||
public static Color SoftGreen { get { return ColorTranslator.FromHtml("#6fc276"); } }
|
||||
public static Color BrightOrange { get { return ColorTranslator.FromHtml("#ff5b00"); } }
|
||||
public static Color Lemon { get { return ColorTranslator.FromHtml("#fdff52"); } }
|
||||
public static Color PurpleGrey { get { return ColorTranslator.FromHtml("#866f85"); } }
|
||||
public static Color AcidGreen { get { return ColorTranslator.FromHtml("#8ffe09"); } }
|
||||
public static Color PaleLavender { get { return ColorTranslator.FromHtml("#eecffe"); } }
|
||||
public static Color VioletBlue { get { return ColorTranslator.FromHtml("#510ac9"); } }
|
||||
public static Color LightForestGreen { get { return ColorTranslator.FromHtml("#4f9153"); } }
|
||||
public static Color BurntRed { get { return ColorTranslator.FromHtml("#9f2305"); } }
|
||||
public static Color KhakiGreen { get { return ColorTranslator.FromHtml("#728639"); } }
|
||||
public static Color Cerise { get { return ColorTranslator.FromHtml("#de0c62"); } }
|
||||
public static Color FadedPurple { get { return ColorTranslator.FromHtml("#916e99"); } }
|
||||
public static Color Apricot { get { return ColorTranslator.FromHtml("#ffb16d"); } }
|
||||
public static Color DarkOliveGreen { get { return ColorTranslator.FromHtml("#3c4d03"); } }
|
||||
public static Color GreyBrown { get { return ColorTranslator.FromHtml("#7f7053"); } }
|
||||
public static Color GreenGrey { get { return ColorTranslator.FromHtml("#77926f"); } }
|
||||
public static Color TrueBlue { get { return ColorTranslator.FromHtml("#010fcc"); } }
|
||||
public static Color PaleViolet { get { return ColorTranslator.FromHtml("#ceaefa"); } }
|
||||
public static Color PeriwinkleBlue { get { return ColorTranslator.FromHtml("#8f99fb"); } }
|
||||
public static Color LightSkyBlue { get { return ColorTranslator.FromHtml("#c6fcff"); } }
|
||||
public static Color Blurple { get { return ColorTranslator.FromHtml("#5539cc"); } }
|
||||
public static Color GreenBrown { get { return ColorTranslator.FromHtml("#544e03"); } }
|
||||
public static Color Bluegreen { get { return ColorTranslator.FromHtml("#017a79"); } }
|
||||
public static Color BrightTeal { get { return ColorTranslator.FromHtml("#01f9c6"); } }
|
||||
public static Color BrownishYellow { get { return ColorTranslator.FromHtml("#c9b003"); } }
|
||||
public static Color PeaSoup { get { return ColorTranslator.FromHtml("#929901"); } }
|
||||
public static Color Forest { get { return ColorTranslator.FromHtml("#0b5509"); } }
|
||||
public static Color BarneyPurple { get { return ColorTranslator.FromHtml("#a00498"); } }
|
||||
public static Color Ultramarine { get { return ColorTranslator.FromHtml("#2000b1"); } }
|
||||
public static Color Purplish { get { return ColorTranslator.FromHtml("#94568c"); } }
|
||||
public static Color PukeYellow { get { return ColorTranslator.FromHtml("#c2be0e"); } }
|
||||
public static Color BluishGrey { get { return ColorTranslator.FromHtml("#748b97"); } }
|
||||
public static Color DarkPeriwinkle { get { return ColorTranslator.FromHtml("#665fd1"); } }
|
||||
public static Color DarkLilac { get { return ColorTranslator.FromHtml("#9c6da5"); } }
|
||||
public static Color Reddish { get { return ColorTranslator.FromHtml("#c44240"); } }
|
||||
public static Color LightMaroon { get { return ColorTranslator.FromHtml("#a24857"); } }
|
||||
public static Color DustyPurple { get { return ColorTranslator.FromHtml("#825f87"); } }
|
||||
public static Color TerraCotta { get { return ColorTranslator.FromHtml("#c9643b"); } }
|
||||
public static Color Avocado { get { return ColorTranslator.FromHtml("#90b134"); } }
|
||||
public static Color MarineBlue { get { return ColorTranslator.FromHtml("#01386a"); } }
|
||||
public static Color TealGreen { get { return ColorTranslator.FromHtml("#25a36f"); } }
|
||||
public static Color SlateGrey { get { return ColorTranslator.FromHtml("#59656d"); } }
|
||||
public static Color LighterGreen { get { return ColorTranslator.FromHtml("#75fd63"); } }
|
||||
public static Color ElectricGreen { get { return ColorTranslator.FromHtml("#21fc0d"); } }
|
||||
public static Color DustyBlue { get { return ColorTranslator.FromHtml("#5a86ad"); } }
|
||||
public static Color GoldenYellow { get { return ColorTranslator.FromHtml("#fec615"); } }
|
||||
public static Color BrightYellow { get { return ColorTranslator.FromHtml("#fffd01"); } }
|
||||
public static Color LightLavender { get { return ColorTranslator.FromHtml("#dfc5fe"); } }
|
||||
public static Color Umber { get { return ColorTranslator.FromHtml("#b26400"); } }
|
||||
public static Color Poop { get { return ColorTranslator.FromHtml("#7f5e00"); } }
|
||||
public static Color DarkPeach { get { return ColorTranslator.FromHtml("#de7e5d"); } }
|
||||
public static Color JungleGreen { get { return ColorTranslator.FromHtml("#048243"); } }
|
||||
public static Color Eggshell { get { return ColorTranslator.FromHtml("#ffffd4"); } }
|
||||
public static Color Denim { get { return ColorTranslator.FromHtml("#3b638c"); } }
|
||||
public static Color YellowBrown { get { return ColorTranslator.FromHtml("#b79400"); } }
|
||||
public static Color DullPurple { get { return ColorTranslator.FromHtml("#84597e"); } }
|
||||
public static Color ChocolateBrown { get { return ColorTranslator.FromHtml("#411900"); } }
|
||||
public static Color WineRed { get { return ColorTranslator.FromHtml("#7b0323"); } }
|
||||
public static Color NeonBlue { get { return ColorTranslator.FromHtml("#04d9ff"); } }
|
||||
public static Color DirtyGreen { get { return ColorTranslator.FromHtml("#667e2c"); } }
|
||||
public static Color LightTan { get { return ColorTranslator.FromHtml("#fbeeac"); } }
|
||||
public static Color IceBlue { get { return ColorTranslator.FromHtml("#d7fffe"); } }
|
||||
public static Color CadetBlue { get { return ColorTranslator.FromHtml("#4e7496"); } }
|
||||
public static Color DarkMauve { get { return ColorTranslator.FromHtml("#874c62"); } }
|
||||
public static Color VeryLightBlue { get { return ColorTranslator.FromHtml("#d5ffff"); } }
|
||||
public static Color GreyPurple { get { return ColorTranslator.FromHtml("#826d8c"); } }
|
||||
public static Color PastelPink { get { return ColorTranslator.FromHtml("#ffbacd"); } }
|
||||
public static Color VeryLightGreen { get { return ColorTranslator.FromHtml("#d1ffbd"); } }
|
||||
public static Color DarkSkyBlue { get { return ColorTranslator.FromHtml("#448ee4"); } }
|
||||
public static Color Evergreen { get { return ColorTranslator.FromHtml("#05472a"); } }
|
||||
public static Color DullPink { get { return ColorTranslator.FromHtml("#d5869d"); } }
|
||||
public static Color Aubergine { get { return ColorTranslator.FromHtml("#3d0734"); } }
|
||||
public static Color Mahogany { get { return ColorTranslator.FromHtml("#4a0100"); } }
|
||||
public static Color ReddishOrange { get { return ColorTranslator.FromHtml("#f8481c"); } }
|
||||
public static Color DeepGreen { get { return ColorTranslator.FromHtml("#02590f"); } }
|
||||
public static Color VomitGreen { get { return ColorTranslator.FromHtml("#89a203"); } }
|
||||
public static Color PurplePink { get { return ColorTranslator.FromHtml("#e03fd8"); } }
|
||||
public static Color DustyPink { get { return ColorTranslator.FromHtml("#d58a94"); } }
|
||||
public static Color FadedGreen { get { return ColorTranslator.FromHtml("#7bb274"); } }
|
||||
public static Color CamoGreen { get { return ColorTranslator.FromHtml("#526525"); } }
|
||||
public static Color PinkyPurple { get { return ColorTranslator.FromHtml("#c94cbe"); } }
|
||||
public static Color PinkPurple { get { return ColorTranslator.FromHtml("#db4bda"); } }
|
||||
public static Color BrownishRed { get { return ColorTranslator.FromHtml("#9e3623"); } }
|
||||
public static Color DarkRose { get { return ColorTranslator.FromHtml("#b5485d"); } }
|
||||
public static Color Mud { get { return ColorTranslator.FromHtml("#735c12"); } }
|
||||
public static Color Brownish { get { return ColorTranslator.FromHtml("#9c6d57"); } }
|
||||
public static Color EmeraldGreen { get { return ColorTranslator.FromHtml("#028f1e"); } }
|
||||
public static Color PaleBrown { get { return ColorTranslator.FromHtml("#b1916e"); } }
|
||||
public static Color DullBlue { get { return ColorTranslator.FromHtml("#49759c"); } }
|
||||
public static Color BurntUmber { get { return ColorTranslator.FromHtml("#a0450e"); } }
|
||||
public static Color MediumGreen { get { return ColorTranslator.FromHtml("#39ad48"); } }
|
||||
public static Color Clay { get { return ColorTranslator.FromHtml("#b66a50"); } }
|
||||
public static Color LightAqua { get { return ColorTranslator.FromHtml("#8cffdb"); } }
|
||||
public static Color LightOliveGreen { get { return ColorTranslator.FromHtml("#a4be5c"); } }
|
||||
public static Color BrownishOrange { get { return ColorTranslator.FromHtml("#cb7723"); } }
|
||||
public static Color DarkAqua { get { return ColorTranslator.FromHtml("#05696b"); } }
|
||||
public static Color PurplishPink { get { return ColorTranslator.FromHtml("#ce5dae"); } }
|
||||
public static Color DarkSalmon { get { return ColorTranslator.FromHtml("#c85a53"); } }
|
||||
public static Color GreenishGrey { get { return ColorTranslator.FromHtml("#96ae8d"); } }
|
||||
public static Color Jade { get { return ColorTranslator.FromHtml("#1fa774"); } }
|
||||
public static Color UglyGreen { get { return ColorTranslator.FromHtml("#7a9703"); } }
|
||||
public static Color DarkBeige { get { return ColorTranslator.FromHtml("#ac9362"); } }
|
||||
public static Color Emerald { get { return ColorTranslator.FromHtml("#01a049"); } }
|
||||
public static Color PaleRed { get { return ColorTranslator.FromHtml("#d9544d"); } }
|
||||
public static Color LightMagenta { get { return ColorTranslator.FromHtml("#fa5ff7"); } }
|
||||
public static Color Sky { get { return ColorTranslator.FromHtml("#82cafc"); } }
|
||||
public static Color LightCyan { get { return ColorTranslator.FromHtml("#acfffc"); } }
|
||||
public static Color YellowOrange { get { return ColorTranslator.FromHtml("#fcb001"); } }
|
||||
public static Color ReddishPurple { get { return ColorTranslator.FromHtml("#910951"); } }
|
||||
public static Color ReddishPink { get { return ColorTranslator.FromHtml("#fe2c54"); } }
|
||||
public static Color Orchid { get { return ColorTranslator.FromHtml("#c875c4"); } }
|
||||
public static Color DirtyYellow { get { return ColorTranslator.FromHtml("#cdc50a"); } }
|
||||
public static Color OrangeRed { get { return ColorTranslator.FromHtml("#fd411e"); } }
|
||||
public static Color DeepRed { get { return ColorTranslator.FromHtml("#9a0200"); } }
|
||||
public static Color OrangeBrown { get { return ColorTranslator.FromHtml("#be6400"); } }
|
||||
public static Color CobaltBlue { get { return ColorTranslator.FromHtml("#030aa7"); } }
|
||||
public static Color NeonPink { get { return ColorTranslator.FromHtml("#fe019a"); } }
|
||||
public static Color RosePink { get { return ColorTranslator.FromHtml("#f7879a"); } }
|
||||
public static Color GreyishPurple { get { return ColorTranslator.FromHtml("#887191"); } }
|
||||
public static Color Raspberry { get { return ColorTranslator.FromHtml("#b00149"); } }
|
||||
public static Color AquaGreen { get { return ColorTranslator.FromHtml("#12e193"); } }
|
||||
public static Color SalmonPink { get { return ColorTranslator.FromHtml("#fe7b7c"); } }
|
||||
public static Color Tangerine { get { return ColorTranslator.FromHtml("#ff9408"); } }
|
||||
public static Color BrownishGreen { get { return ColorTranslator.FromHtml("#6a6e09"); } }
|
||||
public static Color RedBrown { get { return ColorTranslator.FromHtml("#8b2e16"); } }
|
||||
public static Color GreenishBrown { get { return ColorTranslator.FromHtml("#696112"); } }
|
||||
public static Color Pumpkin { get { return ColorTranslator.FromHtml("#e17701"); } }
|
||||
public static Color PineGreen { get { return ColorTranslator.FromHtml("#0a481e"); } }
|
||||
public static Color Charcoal { get { return ColorTranslator.FromHtml("#343837"); } }
|
||||
public static Color BabyPink { get { return ColorTranslator.FromHtml("#ffb7ce"); } }
|
||||
public static Color Cornflower { get { return ColorTranslator.FromHtml("#6a79f7"); } }
|
||||
public static Color BlueViolet { get { return ColorTranslator.FromHtml("#5d06e9"); } }
|
||||
public static Color Chocolate { get { return ColorTranslator.FromHtml("#3d1c02"); } }
|
||||
public static Color GreyishGreen { get { return ColorTranslator.FromHtml("#82a67d"); } }
|
||||
public static Color Scarlet { get { return ColorTranslator.FromHtml("#be0119"); } }
|
||||
public static Color GreenYellow { get { return ColorTranslator.FromHtml("#c9ff27"); } }
|
||||
public static Color DarkOlive { get { return ColorTranslator.FromHtml("#373e02"); } }
|
||||
public static Color Sienna { get { return ColorTranslator.FromHtml("#a9561e"); } }
|
||||
public static Color PastelPurple { get { return ColorTranslator.FromHtml("#caa0ff"); } }
|
||||
public static Color Terracotta { get { return ColorTranslator.FromHtml("#ca6641"); } }
|
||||
public static Color AquaBlue { get { return ColorTranslator.FromHtml("#02d8e9"); } }
|
||||
public static Color SageGreen { get { return ColorTranslator.FromHtml("#88b378"); } }
|
||||
public static Color BloodRed { get { return ColorTranslator.FromHtml("#980002"); } }
|
||||
public static Color DeepPink { get { return ColorTranslator.FromHtml("#cb0162"); } }
|
||||
public static Color Grass { get { return ColorTranslator.FromHtml("#5cac2d"); } }
|
||||
public static Color Moss { get { return ColorTranslator.FromHtml("#769958"); } }
|
||||
public static Color PastelBlue { get { return ColorTranslator.FromHtml("#a2bffe"); } }
|
||||
public static Color BluishGreen { get { return ColorTranslator.FromHtml("#10a674"); } }
|
||||
public static Color GreenBlue { get { return ColorTranslator.FromHtml("#06b48b"); } }
|
||||
public static Color DarkTan { get { return ColorTranslator.FromHtml("#af884a"); } }
|
||||
public static Color GreenishBlue { get { return ColorTranslator.FromHtml("#0b8b87"); } }
|
||||
public static Color PaleOrange { get { return ColorTranslator.FromHtml("#ffa756"); } }
|
||||
public static Color Vomit { get { return ColorTranslator.FromHtml("#a2a415"); } }
|
||||
public static Color ForrestGreen { get { return ColorTranslator.FromHtml("#154406"); } }
|
||||
public static Color DarkLavender { get { return ColorTranslator.FromHtml("#856798"); } }
|
||||
public static Color DarkViolet { get { return ColorTranslator.FromHtml("#34013f"); } }
|
||||
public static Color PurpleBlue { get { return ColorTranslator.FromHtml("#632de9"); } }
|
||||
public static Color DarkCyan { get { return ColorTranslator.FromHtml("#0a888a"); } }
|
||||
public static Color OliveDrab { get { return ColorTranslator.FromHtml("#6f7632"); } }
|
||||
public static Color Pinkish { get { return ColorTranslator.FromHtml("#d46a7e"); } }
|
||||
public static Color Cobalt { get { return ColorTranslator.FromHtml("#1e488f"); } }
|
||||
public static Color NeonPurple { get { return ColorTranslator.FromHtml("#bc13fe"); } }
|
||||
public static Color LightTurquoise { get { return ColorTranslator.FromHtml("#7ef4cc"); } }
|
||||
public static Color AppleGreen { get { return ColorTranslator.FromHtml("#76cd26"); } }
|
||||
public static Color DullGreen { get { return ColorTranslator.FromHtml("#74a662"); } }
|
||||
public static Color Wine { get { return ColorTranslator.FromHtml("#80013f"); } }
|
||||
public static Color PowderBlue { get { return ColorTranslator.FromHtml("#b1d1fc"); } }
|
||||
public static Color OffWhite { get { return ColorTranslator.FromHtml("#ffffe4"); } }
|
||||
public static Color ElectricBlue { get { return ColorTranslator.FromHtml("#0652ff"); } }
|
||||
public static Color DarkTurquoise { get { return ColorTranslator.FromHtml("#045c5a"); } }
|
||||
public static Color BluePurple { get { return ColorTranslator.FromHtml("#5729ce"); } }
|
||||
public static Color Azure { get { return ColorTranslator.FromHtml("#069af3"); } }
|
||||
public static Color BrightRed { get { return ColorTranslator.FromHtml("#ff000d"); } }
|
||||
public static Color PinkishRed { get { return ColorTranslator.FromHtml("#f10c45"); } }
|
||||
public static Color CornflowerBlue { get { return ColorTranslator.FromHtml("#5170d7"); } }
|
||||
public static Color LightOlive { get { return ColorTranslator.FromHtml("#acbf69"); } }
|
||||
public static Color Grape { get { return ColorTranslator.FromHtml("#6c3461"); } }
|
||||
public static Color GreyishBlue { get { return ColorTranslator.FromHtml("#5e819d"); } }
|
||||
public static Color PurplishBlue { get { return ColorTranslator.FromHtml("#601ef9"); } }
|
||||
public static Color YellowishGreen { get { return ColorTranslator.FromHtml("#b0dd16"); } }
|
||||
public static Color GreenishYellow { get { return ColorTranslator.FromHtml("#cdfd02"); } }
|
||||
public static Color MediumBlue { get { return ColorTranslator.FromHtml("#2c6fbb"); } }
|
||||
public static Color DustyRose { get { return ColorTranslator.FromHtml("#c0737a"); } }
|
||||
public static Color LightViolet { get { return ColorTranslator.FromHtml("#d6b4fc"); } }
|
||||
public static Color MidnightBlue { get { return ColorTranslator.FromHtml("#020035"); } }
|
||||
public static Color BluishPurple { get { return ColorTranslator.FromHtml("#703be7"); } }
|
||||
public static Color RedOrange { get { return ColorTranslator.FromHtml("#fd3c06"); } }
|
||||
public static Color DarkMagenta { get { return ColorTranslator.FromHtml("#960056"); } }
|
||||
public static Color Greenish { get { return ColorTranslator.FromHtml("#40a368"); } }
|
||||
public static Color OceanBlue { get { return ColorTranslator.FromHtml("#03719c"); } }
|
||||
public static Color Coral { get { return ColorTranslator.FromHtml("#fc5a50"); } }
|
||||
public static Color Cream { get { return ColorTranslator.FromHtml("#ffffc2"); } }
|
||||
public static Color ReddishBrown { get { return ColorTranslator.FromHtml("#7f2b0a"); } }
|
||||
public static Color BurntSienna { get { return ColorTranslator.FromHtml("#b04e0f"); } }
|
||||
public static Color Brick { get { return ColorTranslator.FromHtml("#a03623"); } }
|
||||
public static Color Sage { get { return ColorTranslator.FromHtml("#87ae73"); } }
|
||||
public static Color GreyGreen { get { return ColorTranslator.FromHtml("#789b73"); } }
|
||||
public static Color White { get { return ColorTranslator.FromHtml("#ffffff"); } }
|
||||
public static Color RobinSEggBlue { get { return ColorTranslator.FromHtml("#98eff9"); } }
|
||||
public static Color MossGreen { get { return ColorTranslator.FromHtml("#658b38"); } }
|
||||
public static Color SteelBlue { get { return ColorTranslator.FromHtml("#5a7d9a"); } }
|
||||
public static Color Eggplant { get { return ColorTranslator.FromHtml("#380835"); } }
|
||||
public static Color LightYellow { get { return ColorTranslator.FromHtml("#fffe7a"); } }
|
||||
public static Color LeafGreen { get { return ColorTranslator.FromHtml("#5ca904"); } }
|
||||
public static Color LightGrey { get { return ColorTranslator.FromHtml("#d8dcd6"); } }
|
||||
public static Color Puke { get { return ColorTranslator.FromHtml("#a5a502"); } }
|
||||
public static Color PinkishPurple { get { return ColorTranslator.FromHtml("#d648d7"); } }
|
||||
public static Color SeaBlue { get { return ColorTranslator.FromHtml("#047495"); } }
|
||||
public static Color PalePurple { get { return ColorTranslator.FromHtml("#b790d4"); } }
|
||||
public static Color SlateBlue { get { return ColorTranslator.FromHtml("#5b7c99"); } }
|
||||
public static Color BlueGrey { get { return ColorTranslator.FromHtml("#607c8e"); } }
|
||||
public static Color HunterGreen { get { return ColorTranslator.FromHtml("#0b4008"); } }
|
||||
public static Color Fuchsia { get { return ColorTranslator.FromHtml("#ed0dd9"); } }
|
||||
public static Color Crimson { get { return ColorTranslator.FromHtml("#8c000f"); } }
|
||||
public static Color PaleYellow { get { return ColorTranslator.FromHtml("#ffff84"); } }
|
||||
public static Color Ochre { get { return ColorTranslator.FromHtml("#bf9005"); } }
|
||||
public static Color MustardYellow { get { return ColorTranslator.FromHtml("#d2bd0a"); } }
|
||||
public static Color LightRed { get { return ColorTranslator.FromHtml("#ff474c"); } }
|
||||
public static Color Cerulean { get { return ColorTranslator.FromHtml("#0485d1"); } }
|
||||
public static Color PalePink { get { return ColorTranslator.FromHtml("#ffcfdc"); } }
|
||||
public static Color DeepBlue { get { return ColorTranslator.FromHtml("#040273"); } }
|
||||
public static Color Rust { get { return ColorTranslator.FromHtml("#a83c09"); } }
|
||||
public static Color LightTeal { get { return ColorTranslator.FromHtml("#90e4c1"); } }
|
||||
public static Color Slate { get { return ColorTranslator.FromHtml("#516572"); } }
|
||||
public static Color Goldenrod { get { return ColorTranslator.FromHtml("#fac205"); } }
|
||||
public static Color DarkYellow { get { return ColorTranslator.FromHtml("#d5b60a"); } }
|
||||
public static Color DarkGrey { get { return ColorTranslator.FromHtml("#363737"); } }
|
||||
public static Color ArmyGreen { get { return ColorTranslator.FromHtml("#4b5d16"); } }
|
||||
public static Color GreyBlue { get { return ColorTranslator.FromHtml("#6b8ba4"); } }
|
||||
public static Color Seafoam { get { return ColorTranslator.FromHtml("#80f9ad"); } }
|
||||
public static Color Puce { get { return ColorTranslator.FromHtml("#a57e52"); } }
|
||||
public static Color SpringGreen { get { return ColorTranslator.FromHtml("#a9f971"); } }
|
||||
public static Color DarkOrange { get { return ColorTranslator.FromHtml("#c65102"); } }
|
||||
public static Color Sand { get { return ColorTranslator.FromHtml("#e2ca76"); } }
|
||||
public static Color PastelGreen { get { return ColorTranslator.FromHtml("#b0ff9d"); } }
|
||||
public static Color Mint { get { return ColorTranslator.FromHtml("#9ffeb0"); } }
|
||||
public static Color LightOrange { get { return ColorTranslator.FromHtml("#fdaa48"); } }
|
||||
public static Color BrightPink { get { return ColorTranslator.FromHtml("#fe01b1"); } }
|
||||
public static Color Chartreuse { get { return ColorTranslator.FromHtml("#c1f80a"); } }
|
||||
public static Color DeepPurple { get { return ColorTranslator.FromHtml("#36013f"); } }
|
||||
public static Color DarkBrown { get { return ColorTranslator.FromHtml("#341c02"); } }
|
||||
public static Color Taupe { get { return ColorTranslator.FromHtml("#b9a281"); } }
|
||||
public static Color PeaGreen { get { return ColorTranslator.FromHtml("#8eab12"); } }
|
||||
public static Color PukeGreen { get { return ColorTranslator.FromHtml("#9aae07"); } }
|
||||
public static Color KellyGreen { get { return ColorTranslator.FromHtml("#02ab2e"); } }
|
||||
public static Color SeafoamGreen { get { return ColorTranslator.FromHtml("#7af9ab"); } }
|
||||
public static Color BlueGreen { get { return ColorTranslator.FromHtml("#137e6d"); } }
|
||||
public static Color Khaki { get { return ColorTranslator.FromHtml("#aaa662"); } }
|
||||
public static Color Burgundy { get { return ColorTranslator.FromHtml("#610023"); } }
|
||||
public static Color DarkTeal { get { return ColorTranslator.FromHtml("#014d4e"); } }
|
||||
public static Color BrickRed { get { return ColorTranslator.FromHtml("#8f1402"); } }
|
||||
public static Color RoyalPurple { get { return ColorTranslator.FromHtml("#4b006e"); } }
|
||||
public static Color Plum { get { return ColorTranslator.FromHtml("#580f41"); } }
|
||||
public static Color MintGreen { get { return ColorTranslator.FromHtml("#8fff9f"); } }
|
||||
public static Color Gold { get { return ColorTranslator.FromHtml("#dbb40c"); } }
|
||||
public static Color BabyBlue { get { return ColorTranslator.FromHtml("#a2cffe"); } }
|
||||
public static Color YellowGreen { get { return ColorTranslator.FromHtml("#c0fb2d"); } }
|
||||
public static Color BrightPurple { get { return ColorTranslator.FromHtml("#be03fd"); } }
|
||||
public static Color DarkRed { get { return ColorTranslator.FromHtml("#840000"); } }
|
||||
public static Color PaleBlue { get { return ColorTranslator.FromHtml("#d0fefe"); } }
|
||||
public static Color GrassGreen { get { return ColorTranslator.FromHtml("#3f9b0b"); } }
|
||||
public static Color Navy { get { return ColorTranslator.FromHtml("#01153e"); } }
|
||||
public static Color Aquamarine { get { return ColorTranslator.FromHtml("#04d8b2"); } }
|
||||
public static Color BurntOrange { get { return ColorTranslator.FromHtml("#c04e01"); } }
|
||||
public static Color NeonGreen { get { return ColorTranslator.FromHtml("#0cff0c"); } }
|
||||
public static Color BrightBlue { get { return ColorTranslator.FromHtml("#0165fc"); } }
|
||||
public static Color Rose { get { return ColorTranslator.FromHtml("#cf6275"); } }
|
||||
public static Color LightPink { get { return ColorTranslator.FromHtml("#ffd1df"); } }
|
||||
public static Color Mustard { get { return ColorTranslator.FromHtml("#ceb301"); } }
|
||||
public static Color Indigo { get { return ColorTranslator.FromHtml("#380282"); } }
|
||||
public static Color Lime { get { return ColorTranslator.FromHtml("#aaff32"); } }
|
||||
public static Color SeaGreen { get { return ColorTranslator.FromHtml("#53fca1"); } }
|
||||
public static Color Periwinkle { get { return ColorTranslator.FromHtml("#8e82fe"); } }
|
||||
public static Color DarkPink { get { return ColorTranslator.FromHtml("#cb416b"); } }
|
||||
public static Color OliveGreen { get { return ColorTranslator.FromHtml("#677a04"); } }
|
||||
public static Color Peach { get { return ColorTranslator.FromHtml("#ffb07c"); } }
|
||||
public static Color PaleGreen { get { return ColorTranslator.FromHtml("#c7fdb5"); } }
|
||||
public static Color LightBrown { get { return ColorTranslator.FromHtml("#ad8150"); } }
|
||||
public static Color HotPink { get { return ColorTranslator.FromHtml("#ff028d"); } }
|
||||
public static Color Black { get { return ColorTranslator.FromHtml("#000000"); } }
|
||||
public static Color Lilac { get { return ColorTranslator.FromHtml("#cea2fd"); } }
|
||||
public static Color NavyBlue { get { return ColorTranslator.FromHtml("#001146"); } }
|
||||
public static Color RoyalBlue { get { return ColorTranslator.FromHtml("#0504aa"); } }
|
||||
public static Color Beige { get { return ColorTranslator.FromHtml("#e6daa6"); } }
|
||||
public static Color Salmon { get { return ColorTranslator.FromHtml("#ff796c"); } }
|
||||
public static Color Olive { get { return ColorTranslator.FromHtml("#6e750e"); } }
|
||||
public static Color Maroon { get { return ColorTranslator.FromHtml("#650021"); } }
|
||||
public static Color BrightGreen { get { return ColorTranslator.FromHtml("#01ff07"); } }
|
||||
public static Color DarkPurple { get { return ColorTranslator.FromHtml("#35063e"); } }
|
||||
public static Color Mauve { get { return ColorTranslator.FromHtml("#ae7181"); } }
|
||||
public static Color ForestGreen { get { return ColorTranslator.FromHtml("#06470c"); } }
|
||||
public static Color Aqua { get { return ColorTranslator.FromHtml("#13eac9"); } }
|
||||
public static Color Cyan { get { return ColorTranslator.FromHtml("#00ffff"); } }
|
||||
public static Color Tan { get { return ColorTranslator.FromHtml("#d1b26f"); } }
|
||||
public static Color DarkBlue { get { return ColorTranslator.FromHtml("#00035b"); } }
|
||||
public static Color Lavender { get { return ColorTranslator.FromHtml("#c79fef"); } }
|
||||
public static Color Turquoise { get { return ColorTranslator.FromHtml("#06c2ac"); } }
|
||||
public static Color DarkGreen { get { return ColorTranslator.FromHtml("#033500"); } }
|
||||
public static Color Violet { get { return ColorTranslator.FromHtml("#9a0eea"); } }
|
||||
public static Color LightPurple { get { return ColorTranslator.FromHtml("#bf77f6"); } }
|
||||
public static Color LimeGreen { get { return ColorTranslator.FromHtml("#89fe05"); } }
|
||||
public static Color Grey { get { return ColorTranslator.FromHtml("#929591"); } }
|
||||
public static Color SkyBlue { get { return ColorTranslator.FromHtml("#75bbfd"); } }
|
||||
public static Color Yellow { get { return ColorTranslator.FromHtml("#ffff14"); } }
|
||||
public static Color Magenta { get { return ColorTranslator.FromHtml("#c20078"); } }
|
||||
public static Color LightGreen { get { return ColorTranslator.FromHtml("#96f97b"); } }
|
||||
public static Color Orange { get { return ColorTranslator.FromHtml("#f97306"); } }
|
||||
public static Color Teal { get { return ColorTranslator.FromHtml("#029386"); } }
|
||||
public static Color LightBlue { get { return ColorTranslator.FromHtml("#95d0fc"); } }
|
||||
public static Color Red { get { return ColorTranslator.FromHtml("#e50000"); } }
|
||||
public static Color Brown { get { return ColorTranslator.FromHtml("#653700"); } }
|
||||
public static Color Pink { get { return ColorTranslator.FromHtml("#ff81c0"); } }
|
||||
public static Color Blue { get { return ColorTranslator.FromHtml("#0343df"); } }
|
||||
public static Color Green { get { return ColorTranslator.FromHtml("#15b01a"); } }
|
||||
public static Color Purple { get { return ColorTranslator.FromHtml("#7e1e9c"); } }
|
||||
}
|
||||
|
||||
11
Assets/Scripts/NIH/XKCDColors.cs.meta
Normal file
11
Assets/Scripts/NIH/XKCDColors.cs.meta
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 8ef7eeddb3a8c914193bbb946c482943
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
101
Assets/Scripts/Targetable.cs
Normal file
101
Assets/Scripts/Targetable.cs
Normal file
|
|
@ -0,0 +1,101 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
using static Unity.Mathematics.math;
|
||||
|
||||
public class Targetable : MonoBehaviour
|
||||
{
|
||||
public float Points = 100;
|
||||
public float Visibility;
|
||||
public Transform ReplaceWithPrefab;
|
||||
public Ship Ship;
|
||||
|
||||
public IsFriendlyFoeStatus DefaultIsFriendlyFoeStatus = IsFriendlyFoeStatus.None;
|
||||
|
||||
public readonly Dictionary<Targetable, IsFriendlyFoeStatus> IFF = new Dictionary<Targetable, IsFriendlyFoeStatus>();
|
||||
private Vector3 _lastPosition;
|
||||
|
||||
public IsFriendlyFoeStatus IsFriendlyFoe(Targetable target)
|
||||
{
|
||||
if (!IFF.ContainsKey(target))
|
||||
IFF[target] = DefaultIsFriendlyFoeStatus;
|
||||
|
||||
return IFF[target];
|
||||
}
|
||||
|
||||
void Start()
|
||||
{
|
||||
Ship = GetComponent<Ship>();
|
||||
}
|
||||
|
||||
void Health(float health)
|
||||
{
|
||||
Points = health;
|
||||
}
|
||||
|
||||
public void Damage(float points)
|
||||
{
|
||||
if (Ship != null)
|
||||
{
|
||||
var shield = Ship.GetEquipped(HardpointType.Shield);
|
||||
if (shield != null)
|
||||
{
|
||||
var shieldData = shield.ItemData as Shield;
|
||||
var shieldedDamage = points * saturate(shieldData.Shielding.Evaluate(shield, Ship));
|
||||
Ship.AddHeat(shieldedDamage / shieldData.Efficiency.Evaluate(shield, Ship));
|
||||
Ship.Hull.Durability -= points - shieldedDamage;
|
||||
}
|
||||
else Ship.Hull.Durability -= points;
|
||||
}
|
||||
else
|
||||
{
|
||||
Points -= points;
|
||||
|
||||
if (Points > 0) return;
|
||||
|
||||
KillLocal();
|
||||
}
|
||||
/*
|
||||
var ent = GameManager.Instance.Entities.FirstOrDefault(kv => kv.Value == transform).Key;
|
||||
if(ent>0)
|
||||
GameManager.Instance.Send("Destroy", ent);*/
|
||||
|
||||
}
|
||||
|
||||
public void KillLocal()
|
||||
{
|
||||
//GameManager.Instance.Kill(this);
|
||||
// if (GetComponent<PlayerShip>())
|
||||
// {
|
||||
// GameManager.Instance.KillPlayer();
|
||||
// }
|
||||
|
||||
Destroy(gameObject);
|
||||
|
||||
if (ReplaceWithPrefab != null)
|
||||
Instantiate(ReplaceWithPrefab, transform.position, transform.rotation);
|
||||
}
|
||||
|
||||
private void LateUpdate()
|
||||
{
|
||||
_lastPosition = transform.position;
|
||||
}
|
||||
|
||||
void kill(string[] args)
|
||||
{
|
||||
if(args[0]==gameObject.name)
|
||||
KillLocal();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public enum IsFriendlyFoeStatus
|
||||
{
|
||||
None,
|
||||
Friendly,
|
||||
Hostile,
|
||||
Mayday,
|
||||
Body,
|
||||
Wormhole
|
||||
}
|
||||
11
Assets/Scripts/Targetable.cs.meta
Normal file
11
Assets/Scripts/Targetable.cs.meta
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: ae4eaa5cad8b4c744a0740b1eb2e8548
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
149
Assets/Scripts/UnityFormatters.cs
Normal file
149
Assets/Scripts/UnityFormatters.cs
Normal file
|
|
@ -0,0 +1,149 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using MessagePack;
|
||||
using MessagePack.Formatters;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Audio;
|
||||
|
||||
public class UnityGameObjectFormatter : IMessagePackFormatter<GameObject>
|
||||
{
|
||||
#if !UNITY_EDITOR
|
||||
private static Dictionary<GameObject,string> _paths = new Dictionary<GameObject, string>();
|
||||
#endif
|
||||
|
||||
public void Serialize(ref MessagePackWriter writer, GameObject value, MessagePackSerializerOptions options)
|
||||
{
|
||||
if(value==null)
|
||||
writer.WriteNil();
|
||||
|
||||
#if UNITY_EDITOR
|
||||
writer.Write(AssetDatabase.GetAssetPath(value));
|
||||
#else
|
||||
string path;
|
||||
if (!_paths.TryGetValue(value, out path))
|
||||
path = "RUNTIME_SERIALIZER_UNKNOWN_RESOURCE";
|
||||
return writer.Write(path);
|
||||
#endif
|
||||
}
|
||||
|
||||
public GameObject Deserialize(ref MessagePackReader reader, MessagePackSerializerOptions options)
|
||||
{
|
||||
var path = reader.ReadString();
|
||||
if (string.IsNullOrEmpty(path)) return null;
|
||||
#if UNITY_EDITOR
|
||||
return AssetDatabase.LoadAssetAtPath<GameObject>(path);
|
||||
#else
|
||||
var resource = Resources.Load<GameObject>(path.Substring("Assets/Resources/".Length).Split('.').First());
|
||||
_paths[resource] = path;
|
||||
return resource;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
public class UnityMaterialFormatter : IMessagePackFormatter<Material>
|
||||
{
|
||||
#if !UNITY_EDITOR
|
||||
private static Dictionary<Material,string> _paths = new Dictionary<Material, string>();
|
||||
#endif
|
||||
|
||||
public void Serialize(ref MessagePackWriter writer, Material value, MessagePackSerializerOptions options)
|
||||
{
|
||||
if(value==null)
|
||||
writer.WriteNil();
|
||||
|
||||
#if UNITY_EDITOR
|
||||
writer.Write(AssetDatabase.GetAssetPath(value));
|
||||
#else
|
||||
string path;
|
||||
if (!_paths.TryGetValue(value, out path))
|
||||
path = "RUNTIME_SERIALIZER_UNKNOWN_RESOURCE";
|
||||
return writer.Write(path);
|
||||
#endif
|
||||
}
|
||||
|
||||
public Material Deserialize(ref MessagePackReader reader, MessagePackSerializerOptions options)
|
||||
{
|
||||
var path = reader.ReadString();
|
||||
if (string.IsNullOrEmpty(path)) return null;
|
||||
#if UNITY_EDITOR
|
||||
return AssetDatabase.LoadAssetAtPath<Material>(path);
|
||||
#else
|
||||
var resource = Resources.Load<Material>(path.Substring("Assets/Resources/".Length).Split('.').First());
|
||||
_paths[resource] = path;
|
||||
return resource;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
public class UnitySpriteFormatter : IMessagePackFormatter<Sprite>
|
||||
{
|
||||
#if !UNITY_EDITOR
|
||||
private static Dictionary<Sprite,string> _paths = new Dictionary<Sprite, string>();
|
||||
#endif
|
||||
|
||||
public void Serialize(ref MessagePackWriter writer, Sprite value, MessagePackSerializerOptions options)
|
||||
{
|
||||
if(value==null)
|
||||
writer.WriteNil();
|
||||
|
||||
#if UNITY_EDITOR
|
||||
writer.Write(AssetDatabase.GetAssetPath(value));
|
||||
#else
|
||||
string path;
|
||||
if (!_paths.TryGetValue(value, out path))
|
||||
path = "RUNTIME_SERIALIZER_UNKNOWN_RESOURCE";
|
||||
return writer.Write(path);
|
||||
#endif
|
||||
}
|
||||
|
||||
public Sprite Deserialize(ref MessagePackReader reader, MessagePackSerializerOptions options)
|
||||
{
|
||||
var path = reader.ReadString();
|
||||
if (string.IsNullOrEmpty(path)) return null;
|
||||
#if UNITY_EDITOR
|
||||
return AssetDatabase.LoadAssetAtPath<Sprite>(path);
|
||||
#else
|
||||
var resource = Resources.Load<Sprite>(path.Substring("Assets/Resources/".Length).Split('.').First());
|
||||
_paths[resource] = path;
|
||||
return resource;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
public class UnityTexture2DFormatter : IMessagePackFormatter<Texture2D>
|
||||
{
|
||||
#if !UNITY_EDITOR
|
||||
private static Dictionary<Texture2D,string> _paths = new Dictionary<Texture2D, string>();
|
||||
#endif
|
||||
|
||||
public void Serialize(ref MessagePackWriter writer, Texture2D value, MessagePackSerializerOptions options)
|
||||
{
|
||||
if(value==null)
|
||||
writer.WriteNil();
|
||||
|
||||
#if UNITY_EDITOR
|
||||
writer.Write(AssetDatabase.GetAssetPath(value));
|
||||
#else
|
||||
string path;
|
||||
if (!_paths.TryGetValue(value, out path))
|
||||
path = "RUNTIME_SERIALIZER_UNKNOWN_RESOURCE";
|
||||
return writer.Write(path);
|
||||
#endif
|
||||
}
|
||||
|
||||
public Texture2D Deserialize(ref MessagePackReader reader, MessagePackSerializerOptions options)
|
||||
{
|
||||
var path = reader.ReadString();
|
||||
if (string.IsNullOrEmpty(path)) return null;
|
||||
#if UNITY_EDITOR
|
||||
return AssetDatabase.LoadAssetAtPath<Texture2D>(path);
|
||||
#else
|
||||
var resource = Resources.Load<Texture2D>(path.Substring("Assets/Resources/".Length).Split('.').First());
|
||||
_paths[resource] = path;
|
||||
return resource;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/UnityFormatters.cs.meta
Normal file
11
Assets/Scripts/UnityFormatters.cs.meta
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 0592fb576747e3443949d779d01068aa
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -217,20 +217,3 @@ public enum ExpansionType
|
|||
Solar,
|
||||
Binary
|
||||
}
|
||||
|
||||
[MessagePackObject]
|
||||
public class ZoneData : IDatabaseEntry
|
||||
{
|
||||
[Inspectable] [Key("entry")] public DatabaseEntry DatabaseEntry = new DatabaseEntry();
|
||||
[Inspectable] [Key("radius")] public float Radius = 500;
|
||||
[Inspectable] [Key("radiusPower")] public float RadiusPower = 1.75f;
|
||||
[Inspectable] [Key("mass")] public float Mass = 100000;
|
||||
[Inspectable] [Key("massFloor")] public float MassFloor = 1;
|
||||
[Inspectable] [Key("sunMass")] public float SunMass = 10000;
|
||||
[Inspectable] [Key("gasGiantMass")] public float GasGiantMass = 2000;
|
||||
|
||||
[InspectableDatabaseLink(typeof(ZoneData))] [Key("wormholes")]
|
||||
public List<Guid> Wormholes = new List<Guid>();
|
||||
|
||||
[IgnoreMember] public DatabaseEntry Entry => DatabaseEntry;
|
||||
}
|
||||
|
|
|
|||
43
Assets/Scripts/ZoneRenderer.cs
Normal file
43
Assets/Scripts/ZoneRenderer.cs
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class ZoneRenderer : MonoBehaviour
|
||||
{
|
||||
public Material BackgroundMaterial;
|
||||
public RenderTexture GravityTexture;
|
||||
public MeshRenderer GravityRenderer;
|
||||
|
||||
private int _resX, _resY;
|
||||
private float _ratio;
|
||||
private Camera _camera;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
_camera = GetComponent<Camera>();
|
||||
}
|
||||
|
||||
private void OnPreRender()
|
||||
{
|
||||
if (Screen.width != _resX || Screen.height != _resY)
|
||||
{
|
||||
_resX = Screen.width;
|
||||
_resY = Screen.height;
|
||||
_ratio = (float) _resY / _resX;
|
||||
if (GravityTexture != null)
|
||||
{
|
||||
GravityTexture?.Release();
|
||||
}
|
||||
GravityTexture = new RenderTexture(_resX, _resY, 0, RenderTextureFormat.RFloat);
|
||||
}
|
||||
|
||||
BackgroundMaterial.mainTexture = GravityTexture;
|
||||
|
||||
GravityRenderer.transform.position = new Vector3(transform.position.x, transform.position.y, 0);
|
||||
var size = _camera.orthographicSize;
|
||||
GravityRenderer.transform.localScale = new Vector3(size * 4, size * 4 * _ratio, 1);
|
||||
|
||||
_camera.targetTexture = GravityTexture;
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/ZoneRenderer.cs.meta
Normal file
11
Assets/Scripts/ZoneRenderer.cs.meta
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 04277e392af12204397c334ea824f957
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
142
Assets/Shaders/GalaxyMap.shader
Normal file
142
Assets/Shaders/GalaxyMap.shader
Normal file
|
|
@ -0,0 +1,142 @@
|
|||
Shader "Unlit/GalaxyMap"
|
||||
{
|
||||
Properties
|
||||
{
|
||||
_MainTex ("Texture", 2D) = "white" {}
|
||||
_CloudColor ("CloudColor", Color) = (1,1,1,1)
|
||||
_GlowColor ("GlowColor", Color) = (1,1,1,1)
|
||||
Arms("Arms", Float) = 4
|
||||
Twist("Twist", Float) = 180
|
||||
TwistPower("TwistPower", Float) = 1
|
||||
SpokeOffset("SpokeOffset", Float) = 1
|
||||
SpokeScale("SpokeScale", Float) = 1
|
||||
CoreBoost("CoreBoost", Float) = 1
|
||||
CoreBoostOffset("CoreBoostOffset", Float) = 0
|
||||
CoreBoostPower("CoreBoostPower", Float) = 1
|
||||
EdgeReduction("EdgeReduction", Float) = 1
|
||||
NoisePosition("NoisePosition", Float) = 0.5
|
||||
NoiseAmplitude("NoiseAmplitude", Float) = 0.5
|
||||
NoiseOffset("NoiseOffset", Float) = 0.5
|
||||
NoiseGain("NoiseGain", Float) = 1
|
||||
NoiseLacunarity("NoiseLacunarity", Float) = 2
|
||||
NoiseFrequency("NoiseFrequency", Float) = 1
|
||||
GlowOffset("GlowOffset", Float) = 1
|
||||
GlowAmount("GlowAmount", Float) = 1
|
||||
GlowPower("GlowPower", Float) = 1
|
||||
StarBoost("StarBoost", Float) = 1
|
||||
|
||||
// required for UI.Mask
|
||||
_StencilComp ("Stencil Comparison", Float) = 8
|
||||
_Stencil ("Stencil ID", Float) = 0
|
||||
_StencilOp ("Stencil Operation", Float) = 0
|
||||
_StencilWriteMask ("Stencil Write Mask", Float) = 255
|
||||
_StencilReadMask ("Stencil Read Mask", Float) = 255
|
||||
_ColorMask ("Color Mask", Float) = 15
|
||||
}
|
||||
SubShader
|
||||
{
|
||||
Tags { "RenderType"="Opaque" }
|
||||
LOD 100
|
||||
|
||||
// required for UI.Mask
|
||||
Stencil
|
||||
{
|
||||
Ref [_Stencil]
|
||||
Comp [_StencilComp]
|
||||
Pass [_StencilOp]
|
||||
ReadMask [_StencilReadMask]
|
||||
WriteMask [_StencilWriteMask]
|
||||
}
|
||||
ColorMask [_ColorMask]
|
||||
|
||||
Pass
|
||||
{
|
||||
CGPROGRAM
|
||||
#pragma vertex vert
|
||||
#pragma fragment frag
|
||||
|
||||
#include "UnityCG.cginc"
|
||||
#include "Assets/Scripts/NIH/GPU Noise/SimplexNoise2D.cginc"
|
||||
|
||||
struct appdata
|
||||
{
|
||||
float4 vertex : POSITION;
|
||||
float2 uv : TEXCOORD0;
|
||||
};
|
||||
|
||||
struct v2f
|
||||
{
|
||||
float2 uv : TEXCOORD0;
|
||||
float2 uv2 : TEXCOORD1;
|
||||
float4 vertex : SV_POSITION;
|
||||
};
|
||||
|
||||
sampler2D _MainTex;
|
||||
float4 _MainTex_ST;
|
||||
fixed4 _CloudColor;
|
||||
fixed4 _GlowColor;
|
||||
float Arms;
|
||||
float Twist;
|
||||
float TwistPower;
|
||||
float SpokeOffset;
|
||||
float SpokeScale;
|
||||
|
||||
float CoreBoost;
|
||||
float CoreBoostOffset;
|
||||
float CoreBoostPower;
|
||||
float EdgeReduction;
|
||||
float NoisePosition;
|
||||
float NoiseAmplitude;
|
||||
float NoiseOffset;
|
||||
float NoiseGain;
|
||||
float NoiseLacunarity;
|
||||
//int NoiseOctaves = 7;
|
||||
float NoiseFrequency;
|
||||
float GlowOffset;
|
||||
float GlowAmount;
|
||||
float GlowPower;
|
||||
float StarBoost;
|
||||
|
||||
v2f vert (appdata v)
|
||||
{
|
||||
v2f o;
|
||||
o.vertex = UnityObjectToClipPos(v.vertex);
|
||||
o.uv = v.uv;
|
||||
o.uv2 = TRANSFORM_TEX(v.uv, _MainTex);
|
||||
return o;
|
||||
}
|
||||
|
||||
// fractal sum, range -1.0 - 1.0
|
||||
float fBm(float2 p, int octaves)
|
||||
{
|
||||
float freq = NoiseFrequency, amp = .5;
|
||||
float sum = 0;
|
||||
for(int i = 0; i < octaves; i++)
|
||||
{
|
||||
sum += snoise(p * freq) * amp;
|
||||
freq *= NoiseLacunarity;
|
||||
amp *= NoiseGain;
|
||||
}
|
||||
return (sum + NoiseOffset)*NoiseAmplitude;
|
||||
}
|
||||
|
||||
fixed4 frag (v2f i) : SV_Target
|
||||
{
|
||||
float2 offset = -(.5).xx+i.uv;
|
||||
float circle = (.5-length(offset))*2;
|
||||
float angle = pow(length(offset)*2,TwistPower) * Twist;
|
||||
float2 twist = float2(offset.x*cos(angle) - offset.y*sin(angle), offset.x*sin(angle) + offset.y*cos(angle));
|
||||
float atan = atan2(twist.y,twist.x);
|
||||
float spokes = sin(atan*Arms) * SpokeScale + SpokeOffset;
|
||||
float noise = fBm(i.uv + NoisePosition.xx, 7);
|
||||
float shape = lerp(spokes - EdgeReduction * length(offset), 1, pow(circle + CoreBoostOffset, CoreBoostPower) * CoreBoost);
|
||||
float gal = max(shape - noise * clamp(circle,0,1), 0);
|
||||
float glow = (pow(circle,GlowPower) + GlowOffset) * GlowAmount;
|
||||
float stars = tex2D(_MainTex, i.uv2) * clamp(shape*StarBoost, 0, 1);
|
||||
fixed4 col = fixed4(gal*_CloudColor.rgb + glow*_GlowColor.rgb + stars.xxx,1);
|
||||
return col;
|
||||
}
|
||||
ENDCG
|
||||
}
|
||||
}
|
||||
}
|
||||
9
Assets/Shaders/GalaxyMap.shader.meta
Normal file
9
Assets/Shaders/GalaxyMap.shader.meta
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 73bb08f97646de94f864b995369f37c2
|
||||
ShaderImporter:
|
||||
externalObjects: {}
|
||||
defaultTextures: []
|
||||
nonModifiableTextures: []
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -72,31 +72,41 @@
|
|||
// sample the texture
|
||||
half h = -tex2D(_MainTex, IN.uv).r;
|
||||
float4 col = float4(0,0,0,0);
|
||||
float blend = smoothstep(_StartHeight, _StartHeight + _HeightRange / 32, -h);
|
||||
|
||||
// Calculate the direction in which the surface is facing
|
||||
float2 plan = calcGrad(IN.uv, h);
|
||||
|
||||
float planmag = length(plan);
|
||||
|
||||
// Loop over isolines, computing a pseudo distance field for a number of height values
|
||||
float spacing = _HeightRange / 20;
|
||||
for (int i = 0; i < 20; i++) {
|
||||
float isoline = abs(h - _StartHeight + (i*spacing));
|
||||
float2 isograd = float2(ddx_fine(isoline), ddy_fine(isoline));
|
||||
float isomag = length(isograd);
|
||||
col += (1-smoothstep(_LineWidth * _ScreenParams.y, _LineWidth * _ScreenParams.y * _LineFade, isoline / (isomag))) * _Color; // Isoline
|
||||
//float2 isograd = float2(ddx(isoline), ddy(isoline));
|
||||
//float isomag = length(isograd);
|
||||
col += (1-smoothstep(_LineWidth * _ScreenParams.y, _LineWidth * _ScreenParams.y * _LineFade, isoline / planmag)) * _Color * blend; // Isoline
|
||||
}
|
||||
|
||||
// Calculate the direction in which the surface is facing
|
||||
float2 plan = normalize(calcGrad(IN.uv, h));
|
||||
|
||||
//
|
||||
float angle = atan2(plan.y,plan.x) / 3.1415926536 + 1;
|
||||
|
||||
float2 plannorm = normalize(plan);
|
||||
float2 plan2uv = IN.uv + float2(-plannorm.y * _MainTex_TexelSize.x, plannorm.x * _MainTex_TexelSize.y);
|
||||
float2 plan2 = calcGrad(plan2uv, -tex2D(_MainTex, plan2uv).r);
|
||||
float angle2 = atan2(plan2.y,plan2.x) / 3.1415926536 + 1;
|
||||
float angmag = abs(angle-angle2);
|
||||
angmag = min(angmag,0.05);
|
||||
//angmag = clamp(angmag,0.005,0.05);
|
||||
|
||||
// Loop over isoangles
|
||||
for (float i = 0.5; i < 13; i++) {
|
||||
float isoline = abs(angle - i / 6.0);// ;
|
||||
float2 isograd = float2(ddx_fine(isoline), ddy_fine(isoline));
|
||||
float isomag = length(isograd);
|
||||
float blend = smoothstep(-2,-10,h)*smoothstep(0.04,0.083333,angle)*smoothstep(1.96,1.916667,angle);
|
||||
col += (1-smoothstep(_AngleWidth * _ScreenParams.y, _AngleWidth * _ScreenParams.y * _AngleFade, isoline / (isomag))) * _AngleColor * blend; // Isoline
|
||||
//float2 isograd = float2(ddx_fine(isoline), ddy_fine(isoline));
|
||||
//float isomag = min(length(isograd),0.025); // isomag is huge over atan2 boundary so clamp it to avoid false positives
|
||||
col += (1-smoothstep(_AngleWidth * _ScreenParams.y, _AngleWidth * _ScreenParams.y * _AngleFade, isoline / (angmag))) * _AngleColor * blend; // Isoline
|
||||
}
|
||||
|
||||
//return float4(1,0,0,1);
|
||||
return col;
|
||||
}
|
||||
ENDCG
|
||||
|
|
|
|||
63
Assets/Shaders/PowerBrush.shader
Normal file
63
Assets/Shaders/PowerBrush.shader
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
Shader "Brushes/Power Brush" {
|
||||
Properties {
|
||||
_Depth ("Depth", Float) = 0.5
|
||||
_Power("Power", Float) = 2
|
||||
}
|
||||
|
||||
Category {
|
||||
Tags { "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" "PreviewType"="Plane" }
|
||||
Blend One One
|
||||
ColorMask RGB
|
||||
Cull Off Lighting Off ZWrite Off
|
||||
|
||||
SubShader {
|
||||
Pass {
|
||||
|
||||
CGPROGRAM
|
||||
#pragma vertex vert
|
||||
#pragma fragment frag
|
||||
#pragma target 2.0
|
||||
|
||||
#include "UnityCG.cginc"
|
||||
|
||||
float _Depth;
|
||||
float _Power;
|
||||
|
||||
struct appdata_t {
|
||||
float4 vertex : POSITION;
|
||||
fixed4 color : COLOR;
|
||||
float2 texcoord : TEXCOORD0;
|
||||
};
|
||||
|
||||
struct v2f {
|
||||
float4 vertex : SV_POSITION;
|
||||
fixed4 color : COLOR;
|
||||
float2 texcoord : TEXCOORD0;
|
||||
};
|
||||
|
||||
float4 _MainTex_ST;
|
||||
|
||||
v2f vert (appdata_t v)
|
||||
{
|
||||
v2f o;
|
||||
o.vertex = UnityObjectToClipPos(v.vertex);
|
||||
o.color = v.color;
|
||||
o.texcoord = v.texcoord;
|
||||
return o;
|
||||
}
|
||||
|
||||
float powerPulse( float x, float power )
|
||||
{
|
||||
x = saturate(abs(x));
|
||||
return pow((x + 1.0f) * (1.0f - x), power);
|
||||
}
|
||||
|
||||
fixed4 frag (v2f i) : SV_Target
|
||||
{
|
||||
return _Depth * powerPulse(length(i.texcoord-float2(.5,.5))*2,_Power);
|
||||
}
|
||||
ENDCG
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
9
Assets/Shaders/PowerBrush.shader.meta
Normal file
9
Assets/Shaders/PowerBrush.shader.meta
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 105a94389fb66cf4bb41ad040d8c5fdb
|
||||
ShaderImporter:
|
||||
externalObjects: {}
|
||||
defaultTextures: []
|
||||
nonModifiableTextures: []
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
78
Assets/Shaders/SimplexBrush.shader
Normal file
78
Assets/Shaders/SimplexBrush.shader
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
// Upgrade NOTE: replaced '_Object2World' with 'unity_ObjectToWorld'
|
||||
|
||||
Shader "Brushes/Simplex Brush"
|
||||
{
|
||||
Properties {
|
||||
_Depth ("Depth", Float) = 0.5
|
||||
_Power("Envelope Power", Float) = 1.25
|
||||
_Frequency("Frequency", Float) = 2
|
||||
_Speed("Speed", Float) = 1
|
||||
_Constant ("Constant", Float) = 0.5
|
||||
}
|
||||
|
||||
Category {
|
||||
Tags { "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" "PreviewType"="Plane" }
|
||||
Blend One One
|
||||
ColorMask RGB
|
||||
Cull Off Lighting Off ZWrite Off
|
||||
|
||||
SubShader {
|
||||
Pass {
|
||||
|
||||
CGPROGRAM
|
||||
#pragma vertex vert
|
||||
#pragma fragment frag
|
||||
#pragma target 2.0
|
||||
|
||||
#include "UnityCG.cginc"
|
||||
#include "Assets/Scripts/NIH/GPU Noise/SimplexNoise3D.cginc"
|
||||
|
||||
float _Depth;
|
||||
float _Power;
|
||||
float _Frequency;
|
||||
float _Speed;
|
||||
float _Constant;
|
||||
|
||||
struct appdata_t {
|
||||
float4 vertex : POSITION;
|
||||
fixed4 color : COLOR;
|
||||
float2 texcoord : TEXCOORD0;
|
||||
};
|
||||
|
||||
struct v2f {
|
||||
float4 vertex : SV_POSITION;
|
||||
fixed4 color : COLOR;
|
||||
float2 texcoord : TEXCOORD0;
|
||||
float2 texcoord1 : TEXCOORD1;
|
||||
};
|
||||
|
||||
float4 _MainTex_ST;
|
||||
|
||||
v2f vert (appdata_t v)
|
||||
{
|
||||
v2f o;
|
||||
o.vertex = UnityObjectToClipPos(v.vertex);
|
||||
o.color = v.color;
|
||||
o.texcoord = v.texcoord;
|
||||
o.texcoord1 = mul(unity_ObjectToWorld, v.vertex).xz;
|
||||
return o;
|
||||
}
|
||||
|
||||
|
||||
float powerPulse( float x, float power )
|
||||
{
|
||||
x = saturate(abs(x));
|
||||
return pow((x + 1.0f) * (1.0f - x), power);
|
||||
}
|
||||
|
||||
fixed4 frag (v2f i) : SV_Target
|
||||
{
|
||||
float dist = length(i.texcoord - float2(.5,.5));
|
||||
return _Depth * powerPulse(dist * 2,_Power) * (abs(snoise(float3(i.texcoord1.xy*_Frequency,_Time.y*_Speed)))+_Constant);
|
||||
}
|
||||
ENDCG
|
||||
}
|
||||
}
|
||||
}
|
||||
CustomEditor "CellBrushEditor"
|
||||
}
|
||||
9
Assets/Shaders/SimplexBrush.shader.meta
Normal file
9
Assets/Shaders/SimplexBrush.shader.meta
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
fileFormatVersion: 2
|
||||
guid: ccdbaf77577994d46b0e61c53d5dc4a9
|
||||
ShaderImporter:
|
||||
externalObjects: {}
|
||||
defaultTextures: []
|
||||
nonModifiableTextures: []
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
Binary file not shown.
BIN
ProjectSettings/EditorSettings.asset
(Stored with Git LFS)
BIN
ProjectSettings/EditorSettings.asset
(Stored with Git LFS)
Binary file not shown.
BIN
ProjectSettings/TagManager.asset
(Stored with Git LFS)
BIN
ProjectSettings/TagManager.asset
(Stored with Git LFS)
Binary file not shown.
Loading…
Reference in a new issue