created asmdefs and project organization

This commit is contained in:
Nilton Constantino 2026-06-25 17:11:09 +01:00
parent 087fb7e87a
commit 24f1549dbd
No known key found for this signature in database
74 changed files with 31636 additions and 31358 deletions

View File

@ -52,10 +52,18 @@ PrefabInstance:
serializedVersion: 3
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 1364872794272454516, guid: fe511f674420741d889f065f493d6917, type: 3}
propertyPath: m_Size.x
value: 2.5
objectReference: {fileID: 0}
- target: {fileID: 1364872794272454516, guid: fe511f674420741d889f065f493d6917, type: 3}
propertyPath: m_Size.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 1364872794272454516, guid: fe511f674420741d889f065f493d6917, type: 3}
propertyPath: m_Size.z
value: 2.5
objectReference: {fileID: 0}
- target: {fileID: 1364872794272454516, guid: fe511f674420741d889f065f493d6917, type: 3}
propertyPath: m_IsTrigger
value: 1
@ -176,11 +184,12 @@ MonoBehaviour:
sizeX: 2
sizeY: 1
sizeZ: 2
offset: 0
offset: 0.5
x: 2
y: 1
z: 2
contact_offset: 0
contact_offset: 0.5
stageManager: {fileID: 0}
--- !u!1 &9075994188305260872 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 7037144193506342921, guid: fe511f674420741d889f065f493d6917, type: 3}
@ -243,7 +252,6 @@ MonoBehaviour:
actionCategory: 0
canBeDropped: 0
shouldDropFromBeltWhenActivated: 1
saveStationProto: {fileID: 3729166946730868368}
gameDataPersistenceService: {fileID: 11400000, guid: 4715554a8f2cb477bbf691096f0903f9, type: 2}
saveStationModelPrototype: {fileID: 3729166946730868368}
actionLocalization: {fileID: 11400000, guid: 218e1b6f0cf274c8195e312760cf82b0, type: 2}
descriptionLocalization: {fileID: 11400000, guid: 677dd73e7449b408590ce7f89865a8d0, type: 2}

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,20 @@
{
"name": "Editor",
"rootNamespace": "",
"references": [
"GUID:fc68fb84cb3c4f229a5b3a1f4a790dc7",
"GUID:0679931e16fd44ced9567e90c5750db7",
"GUID:fdf14d66093a14360809b75b4caf5293",
"GUID:e6bee7290be4e4e0aa31659ba2585e4f",
"GUID:7c583d294993e488c8e389641f9d95f9"
],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: b7b60ccedef9b4a4c96f7921d43e18fa
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using Intrepid.Diagnostics;
using Intrepid.Gameplay.Flooring;
using Intrepid.Gameplay.Journey.Stages;
using Intrepid.Gameplay.Journey;
using Intrepid.Gameplay.Prototyping;
using UnityEditor;
using UnityEngine;

View File

@ -0,0 +1,20 @@
{
"name": "Core",
"rootNamespace": "",
"references": [
"GUID:4307f53044263cf4b835bd812fc161a4",
"GUID:6055be8ebefd69e48b49212b09b47b2f",
"GUID:fc68fb84cb3c4f229a5b3a1f4a790dc7",
"GUID:0679931e16fd44ced9567e90c5750db7",
"GUID:e6bee7290be4e4e0aa31659ba2585e4f"
],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: fdf14d66093a14360809b75b4caf5293
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,3 +1,3 @@
fileFormatVersion: 2
guid: fc25591fe52e495aac7cf356196678e7
timeCreated: 1780997469
guid: e52b30f262fe46099e88482d267cb612
timeCreated: 1782403455

View File

@ -1,18 +0,0 @@
using System;
using UnityEngine;
namespace Intrepid.Core.Themes
{
[Serializable]
public class MechaTheme : AbstractThemeRelated
{
public MechaTheme(Palettes palettes) : base(palettes)
{
}
public Color EnergyFlowIcon => Palettes.Bundle.Contrast.Background;
public UIGaugeTheme EnergyGauge => new(Palettes, Palettes.EnergyGaugeColor, Palettes.CounterFillingColor);
public UIDialogMinimalTheme ReactorIcon => new(Palettes);
public UIPowerDemandedTheme PowerDemanded => new(Palettes);
}
}

View File

@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: 583e771b9df3493d9495374e25b96038
timeCreated: 1746823537

View File

@ -1,16 +0,0 @@
using System;
namespace Intrepid.Core.Themes
{
[Serializable]
public class SpacemanTheme : AbstractThemeRelated
{
public SpacemanTheme(Palettes palettes) : base(palettes)
{
}
public UIGaugeTheme O2Gauge => new(Palettes, Palettes.O2GaugeColor, Palettes.CounterFillingColor);
public UIGaugeTheme EnergyGauge => new(Palettes, Palettes.EnergyGaugeColor, Palettes.CounterFillingColor);
public UIPowerDemandedTheme PowerDemanded => new(Palettes);
}
}

View File

@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: f7d6ed8e65ee4686bec3226c2019e494
timeCreated: 1746823554

View File

@ -1,24 +0,0 @@
using Intrepid.Core.Themes;
using Intrepid.Utilities;
using UnityEngine;
using UnityEngine.UI;
namespace Intrepid.Core.UI.Gauge
{
public class GeneralGaugeUI : SimpleGaugeUI
{
[GroupInjections, SerializeField] private Image borderIn;
[GroupInjections, SerializeField] private Image borderOut;
public UIGaugeTheme Theme { get; set; }
protected override void UpdateComponents()
{
base.UpdateComponents();
Filling.color = Theme?.Filling ?? Color.cyan;
CounterFilling.color = Theme?.CounterFilling ?? Color.magenta;
borderIn.color = Theme?.BorderIn ?? Color.gray;
borderOut.color = Theme?.BorderOut ?? Color.blue;
}
}
}

View File

@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: 338da832e6704cbf89b63137de48490c
timeCreated: 1746720035

View File

@ -1,64 +0,0 @@
using Intrepid.Core.Themes;
using Intrepid.Utilities;
using Sirenix.OdinInspector;
using UnityEngine;
using UnityEngine.UI;
namespace Intrepid.Core.UI.Gauge
{
public class PowerDemandedUI : MonoBehaviour
{
[GroupInjections, SerializeField] private Image pen;
[GroupInjections, SerializeField] private Image[] marks;
[Title("Theme")]
[GroupConfigurations, SerializeField, HideLabel, ReadOnly] private UIPowerDemandedTheme theme;
[GroupDebug, SerializeField, Range(0, 1)] private float value;
private RectTransform RectTransform { get; set; }
public float Value
{
get => value;
set => this.value = value;
}
public UIPowerDemandedTheme Theme
{
get => theme;
set => theme = value;
}
private void OnValidate()
{
RectTransform = GetComponent<RectTransform>();
UpdateComponents(RectTransform);
}
private void Awake()
{
OnValidate();
}
private void Update()
{
UpdateComponents(RectTransform);
}
private void UpdateComponents(RectTransform rectTransform)
{
var quarter = rectTransform.rect.width / 4f;
pen.rectTransform.localScale = new Vector3(Value, 1, 1);
pen.color = Value switch
{
<= 0.25f => Theme.PenMin,
> 0.5f => Theme.PenMax,
_ => Color.Lerp(Theme.PenMin, Theme.PenMax, Value * 4f - 1f)
};
marks[1].rectTransform.localPosition = new Vector3(-quarter, 0, 0);
marks[3].rectTransform.localPosition = new Vector3(quarter, 0, 0);
foreach (var mark in marks)
{
mark.color = Theme.Marks;
}
}
}
}

View File

@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: 80be79055fb242b29960dfec2a6344ba
timeCreated: 1746157988

View File

@ -1,9 +1,9 @@
using System;
using Intrepid.Core.Themes;
using Intrepid.Core.UI;
using Intrepid.Core.UI.Dialog;
using Intrepid.GameManagers;
using Intrepid.Gameplay.Entities.Player.ActionBelt.Events;
using Intrepid.Gameplay.Themes;
using Intrepid.SimpleEvents;
using Intrepid.Utilities;
using Intrepid.Utilities.Sprite;

View File

@ -1,8 +1,8 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Intrepid.Core.Themes;
using Intrepid.Gameplay.Entities.Player.PDA.Inputs;
using Intrepid.Gameplay.Themes;
using Intrepid.Sound;
using Intrepid.Structures;
using Intrepid.Utilities;

View File

@ -1,7 +1,7 @@
using Intrepid.Core.Themes;
using Intrepid.GameManagers;
using Intrepid.Gameplay.Entities.Player.PDA.Events;
using Intrepid.Gameplay.Entities.Player.PDA.Inputs;
using Intrepid.Gameplay.Themes;
using Intrepid.Structures;
using Intrepid.Utilities;
using UnityEngine;

View File

@ -1,7 +1,7 @@
using Intrepid.Core.Themes;
using Intrepid.Core.UI;
using Intrepid.Core.UI.Dialog;
using Intrepid.GameManagers;
using Intrepid.Gameplay.Themes;
using Intrepid.Utilities;
using Sirenix.OdinInspector;
using UnityEngine;

View File

@ -1,4 +1,4 @@
using Intrepid.Core.Themes;
using Intrepid.Gameplay.Themes;
using Intrepid.Structures;
using Intrepid.Utilities;
using UnityEngine;

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 04273749505b4bd6af3db138f7e023e5
timeCreated: 1782402429

View File

@ -1,7 +1,7 @@
using Intrepid.SimpleEvents;
using UnityEngine;
namespace Intrepid.Gameplay.Messages.Events
namespace Intrepid.Gameplay.Entities.Player.Sentinel.Events
{
public class ForceBackOnImpactEvent : IEventBase
{

View File

@ -10,6 +10,7 @@ using Intrepid.Gameplay.Entities.Player.Sentinel.Cadence;
using Intrepid.Gameplay.Entities.Player.Sentinel.StateMachine;
using Intrepid.Gameplay.Flooring.Events;
using Intrepid.Gameplay.Journey.Messages.Events;
using Intrepid.Gameplay.Messages.Events;
using Intrepid.Structures;
using Intrepid.Utilities;
using UnityEngine;
@ -85,6 +86,10 @@ namespace Intrepid.Gameplay.Entities.Player.Sentinel
});
ChangeState(SentinelStateType.Idle);
});
Subscribe<SaveStationActionExecutedEvent>(e =>
{
ChangeState(SentinelStateType.SavingStation, ("SaveStationActionExecutedEvent", e));
});
}
public override void UpdateFromUpdatable()

View File

@ -1,6 +1,7 @@
using Intrepid.Core.Entities;
using Intrepid.Core.Grounding;
using Intrepid.GameManagers;
using Intrepid.Gameplay.Entities.Player.Sentinel.Events;
using Intrepid.Gameplay.Flooring;
using Intrepid.Gameplay.Messages.Events;
using Intrepid.Utilities;
@ -37,10 +38,15 @@ namespace Intrepid.Gameplay.Entities.Player.Sentinel
public bool IsGrounded => MotorTopDown.IsGrounded;
public GroundProfiles CurrentGroundProfiles => MotorTopDown.CurrentGroundProfiles;
public FloorDetection FloorDetection => floorDetection;
public Vector3 Position
{
get => UnityRigidbody.position;
set => UnityRigidbody.position = value;
}
public override void DeployEntity(Vector3 position, Vector2 direction)
{
UnityRigidbody.position = position;
Position = position;
ChangeOrientation(direction);
UnityRigidbody.isKinematic = false;

View File

@ -5,6 +5,7 @@ namespace Intrepid.Gameplay.Entities.Player.Sentinel
Nop = 0,
PDA = 1,
SavingStation = 2,
Idle = 10,

View File

@ -1,3 +1,4 @@
using Intrepid.Gameplay.Entities.Player.Sentinel.Events;
using Intrepid.Gameplay.Messages.Events;
using Intrepid.Structures;
using Intrepid.Utilities;

View File

@ -0,0 +1,84 @@
using Intrepid.Diagnostics;
using Intrepid.GameManagers;
using Intrepid.Gameplay.Messages.Events;
using Intrepid.Integration.Input;
using Intrepid.Integration.Persistence;
using Intrepid.Integration.Persistence.DTOs;
using Intrepid.Integration.Persistence.Events;
using Intrepid.SaveSystem;
using Intrepid.Structures;
using Intrepid.Utilities;
using UnityEngine;
namespace Intrepid.Gameplay.Entities.Player.Sentinel.StateMachine.States
{
public class SentinelStateSavingStation : SentinelState
{
[GroupInjections, SerializeField] private GameDataPersistenceService gameDataPersistenceService;
[GroupInjections, SerializeField] private AnimationClip savingStation;
[GroupInjections, SerializeField, Range(0, 3)] private float minSavingStationDuration = 1f;
private Timer Timer { get; } = new();
public override SentinelStateType GetStateKey()
{
return SentinelStateType.SavingStation;
}
protected override void Subscriptions()
{
Subscribe<SavingGameDataBeginEvent>(e =>
{
DLogger.LogDebug($"Saving started");
});
Subscribe<SavingGameDataEndEvent>(e =>
{
DLogger.LogDebug($"Saving ended");
Timer.Start();
});
}
public override void RunOnFirstFrameOnly()
{
InputService.Instance.ChangeInputSchema(InputSchema.None);
base.RunOnFirstFrameOnly();
}
protected override void RunOnEnter(ParameterStore ps)
{
var e = ps.Get<SaveStationActionExecutedEvent>("SaveStationActionExecutedEvent");
Brain.Entity.DesiredVelocity = Vector2.zero;
Brain.Entity.Position = e.DeploymentPoint;
Brain.Entity.ChangeOrientation(Vector2.down);
Brain.Entity.ModelAnimation.Play(savingStation);
Timer.Stop();
gameDataPersistenceService.SaveCurrentGameData(new SavingCallbacksAggregator<GameDataSaveFileDTO>(
gameData =>
{
gameData.data.SentinelData.LatestSaveStation = new SaveStationDTO
{
StageId = e.StageTag.StageId,
DeploymentPosition = e.DeploymentPoint.ToVector3DTO(),
};
},
_ => { }));
}
protected override void RunOnExit()
{
Timer.Stop();
}
public override void RunOnUpdate()
{
if (Timer.IsNotRunning) return;
Timer.Update(Timer.ScaledTime);
if (Timer.Check(minSavingStationDuration))
{
Timer.Stop();
InputService.Instance.ChangeInputSchema(InputSchema.Sentinel);
Brain.ChangeState(SentinelStateType.Idle);
}
}
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 4ffc6a9df52e4288a5a0f22ac2d34417
timeCreated: 1782397793

View File

@ -0,0 +1,21 @@
{
"name": "Gameplay",
"rootNamespace": "",
"references": [
"GUID:75469ad4d38634e559750d17036d5f7c",
"GUID:6055be8ebefd69e48b49212b09b47b2f",
"GUID:fc68fb84cb3c4f229a5b3a1f4a790dc7",
"GUID:0679931e16fd44ced9567e90c5750db7",
"GUID:fdf14d66093a14360809b75b4caf5293",
"GUID:e6bee7290be4e4e0aa31659ba2585e4f"
],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 7c583d294993e488c8e389641f9d95f9
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -8,11 +8,12 @@ using Intrepid.Utilities;
using Sirenix.OdinInspector;
using UnityEngine;
namespace Intrepid.Gameplay.Journey.Stages
namespace Intrepid.Gameplay.Journey
{
public class StageManager : EventListener
{
[GroupConfigurations, SerializeField] private StageTag stageTag;
[GroupDebug, SerializeField, ReadOnly] private List<InteractableSaveStationModelPrototype> saveStations;
[GroupDebug, SerializeField, ReadOnly] private List<InteractableSocketModelPrototype> sockets;
private Dictionary<string, InteractableSocketModelPrototype> SocketMap { get; } = new();
@ -22,7 +23,7 @@ namespace Intrepid.Gameplay.Journey.Stages
get => stageTag;
set => stageTag = value;
}
protected override void InitializeVariables()
{
Refresh();
@ -54,12 +55,23 @@ namespace Intrepid.Gameplay.Journey.Stages
private void Refresh()
{
sockets.Clear();
saveStations.Clear();
SocketMap.Clear();
foreach (var stageSocket in GetComponentsInChildren<InteractableSocketModelPrototype>())
foreach (var interactable in GetComponentsInChildren<InteractableModelPrototype>())
{
stageSocket.SetStageManager(this);
sockets.Add(stageSocket);
SocketMap.Add(stageSocket.EndpointId, stageSocket);
interactable.SetStageManager(this);
switch (interactable)
{
case InteractableSocketModelPrototype socket:
sockets.Add(socket);
SocketMap.Add(socket.EndpointId, socket);
break;
case InteractableSaveStationModelPrototype saveStation:
saveStations.Add(saveStation);
break;
}
}
}
}

View File

@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: 1f530d09e5cb49ceb525a4ea0b540014
timeCreated: 1782147645

View File

@ -0,0 +1,12 @@
using Intrepid.Gameplay.Journey;
using Intrepid.SimpleEvents;
using UnityEngine;
namespace Intrepid.Gameplay.Messages.Events
{
public class SaveStationActionExecutedEvent : IEventBase
{
public StageTag StageTag { get; set; }
public Vector3 DeploymentPoint { get; set; }
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 10bb1766c6a844f7aeb220d4a1e6adaf
timeCreated: 1782397614

View File

@ -1,8 +1,9 @@
using UnityEngine;
using Intrepid.Gameplay.Journey;
namespace Intrepid.Gameplay.Prototyping
{
public abstract class InteractableModelPrototype : ModelPrototype
{
public abstract void SetStageManager(StageManager stageManager);
}
}

View File

@ -1,4 +1,5 @@
using System.Collections.Generic;
using Intrepid.Gameplay.Journey;
using Intrepid.Gameplay.Prototyping.SaveStations;
using Intrepid.Utilities;
using Sirenix.OdinInspector;
@ -18,8 +19,15 @@ namespace Intrepid.Gameplay.Prototyping
[GroupDebug, SerializeField, Min(1)] private int y = 1;
[GroupDebug, SerializeField, Min(1)] private int z = 1;
[GroupDebug, SerializeField, Range(0f, 1f)] private float contact_offset = 1f;
[GroupDebug, SerializeField, ReadOnly] private StageManager stageManager;
public Vector3 DeploymentPoint => saveStationDeploymentPoint.DeploymentPoint;
public StageTag StageTag => stageManager?.StageTag;
public override void SetStageManager(StageManager sm)
{
stageManager = sm;
}
protected override void ConfigElements()
{

View File

@ -1,6 +1,5 @@
using System.Collections.Generic;
using Intrepid.Gameplay.Journey;
using Intrepid.Gameplay.Journey.Stages;
using Intrepid.Gameplay.Prototyping.Sockets;
using Intrepid.Utilities;
using Sirenix.OdinInspector;
@ -31,7 +30,7 @@ namespace Intrepid.Gameplay.Prototyping
public Vector3 DeploymentPoint => deploymentPoint.DeploymentPoint;
public Vector2 DeploymentDirection => deploymentPoint.DeploymentDirection;
public void SetStageManager(StageManager sm)
public override void SetStageManager(StageManager sm)
{
stageManager = sm;
var stageTag = sm.StageTag;

View File

@ -1,9 +1,7 @@
using Intrepid.Diagnostics;
using Intrepid.GameManagers;
using Intrepid.Gameplay.Entities.Player.ActionBelt;
using Intrepid.Integration.Persistence;
using Intrepid.Integration.Persistence.DTOs;
using Intrepid.Gameplay.Messages.Events;
using Intrepid.Localization;
using Intrepid.SaveSystem;
using Intrepid.Utilities;
using UnityEngine;
@ -11,8 +9,7 @@ namespace Intrepid.Gameplay.Prototyping.SaveStations
{
public class SaveStageActionCallable : ActionCallable
{
[GroupInjections, SerializeField] private InteractableSaveStationModelPrototype saveStationProto;
[GroupInjections, SerializeField] private GameDataPersistenceService gameDataPersistenceService;
[GroupInjections, SerializeField] private InteractableSaveStationModelPrototype saveStationModelPrototype;
[GroupConfigurations, SerializeField] private LocalizationTag actionLocalization;
[GroupConfigurations, SerializeField] private LocalizationTag descriptionLocalization;
@ -21,12 +18,11 @@ namespace Intrepid.Gameplay.Prototyping.SaveStations
protected override void Execute(ActionIdentifier identifier)
{
gameDataPersistenceService.SaveCurrentGameData(new SavingCallbacksAggregator<GameDataSaveFileDTO>(
_ =>
{
DLogger.LogDebug($"Save station: {identifier}, executing save on: {saveStationProto.DeploymentPoint}");
},
_ => { }));
Proxy.Instance.EventBus.Raise(new SaveStationActionExecutedEvent
{
StageTag = saveStationModelPrototype.StageTag,
DeploymentPoint = saveStationModelPrototype.DeploymentPoint
});
}
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: fc25591fe52e495aac7cf356196678e7
timeCreated: 1780997469

View File

@ -1,6 +1,7 @@
using System;
using Intrepid.Core.Themes;
namespace Intrepid.Core.Themes
namespace Intrepid.Gameplay.Themes
{
[Serializable]
public class DiegeticThemes : AbstractThemeRelated

View File

@ -1,6 +1,7 @@
using System;
using Intrepid.Core.Themes;
namespace Intrepid.Core.Themes
namespace Intrepid.Gameplay.Themes
{
[Serializable]
public class PDAThemes : AbstractThemeRelated

View File

@ -1,7 +1,8 @@
using System;
using Intrepid.Core.Themes;
using UnityEngine;
namespace Intrepid.Core.Themes
namespace Intrepid.Gameplay.Themes
{
[Serializable]
public class SignalTheme : AbstractThemeRelated

View File

@ -1,13 +1,14 @@
using System;
using Intrepid.Core.Themes;
using Intrepid.Localization;
using Intrepid.Utilities;
using Sirenix.OdinInspector;
using UnityEngine;
namespace Intrepid.Core.Themes
namespace Intrepid.Gameplay.Themes
{
[Serializable]
[CreateAssetMenu(fileName = "Theme", menuName = "Intrepid/Theme/Theme Collection")]
[CreateAssetMenu(fileName = "Theme", menuName = "GON/Theme/Theme Collection")]
public class Theme : SOIdentification
{
[GroupConfigurations, SerializeField] private LocalizationTag localizationName;
@ -30,7 +31,5 @@ namespace Intrepid.Core.Themes
public UIActionBeltTheme ActionBeltTheme => new(Palettes, actionBeltAlpha);
public DiegeticThemes DiegeticThemes => new(Palettes);
public PDAThemes PDAThemes => new(Palettes);
public MechaTheme MechaTheme => new(Palettes);
public SpacemanTheme SpacemanTheme => new(Palettes);
}
}

View File

@ -2,7 +2,7 @@ using System;
using Intrepid.Utilities;
using UnityEngine;
namespace Intrepid.Core.Themes
namespace Intrepid.Gameplay.Themes
{
[DefaultExecutionOrder(GonConstants.ExecutionOrder.ASAP)]
public class ThemeManager : SingletonMonoBehaviour<ThemeManager>

View File

@ -1,7 +1,8 @@
using System;
using Intrepid.Core.Themes;
using UnityEngine;
namespace Intrepid.Core.Themes
namespace Intrepid.Gameplay.Themes
{
[Serializable]
public class UIActionBeltTheme : AbstractThemeRelated

View File

@ -1,7 +1,8 @@
using System;
using Intrepid.Core.Themes;
using UnityEngine;
namespace Intrepid.Core.Themes
namespace Intrepid.Gameplay.Themes
{
[Serializable]
public class UIGaugeTheme : AbstractThemeRelated

View File

@ -1,7 +1,8 @@
using System;
using Intrepid.Core.Themes;
using UnityEngine;
namespace Intrepid.Core.Themes
namespace Intrepid.Gameplay.Themes
{
[Serializable]
public class UIIconTheme : AbstractThemeRelated

View File

@ -1,7 +1,8 @@
using System;
using Intrepid.Core.Themes;
using UnityEngine;
namespace Intrepid.Core.Themes
namespace Intrepid.Gameplay.Themes
{
[Serializable]
public class UIPowerDemandedTheme : AbstractThemeRelated

View File

@ -1,5 +1,4 @@
using Intrepid.Diagnostics;
using Intrepid.Gameplay.Entities.Player.Sentinel.Inputs;
using Intrepid.Utilities;
using UnityEngine;
using UnityEngine.InputSystem;

View File

@ -0,0 +1,18 @@
{
"name": "Integration",
"rootNamespace": "",
"references": [
"GUID:75469ad4d38634e559750d17036d5f7c",
"GUID:fc68fb84cb3c4f229a5b3a1f4a790dc7",
"GUID:0679931e16fd44ced9567e90c5750db7"
],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: e6bee7290be4e4e0aa31659ba2585e4f
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -5,13 +5,15 @@ namespace Intrepid.Integration.Persistence.DTOs
[Serializable]
public class GameDataDTO
{
public string seed;
public string Seed;
public SentinelDataDTO SentinelData;
public static GameDataDTO WithInitialValues()
{
return new GameDataDTO
{
seed = Guid.NewGuid().ToString("N")
Seed = Guid.NewGuid().ToString("N"),
SentinelData = SentinelDataDTO.WithInitialValues(),
};
}
}

View File

@ -0,0 +1,27 @@
using UnityEngine;
namespace Intrepid.Integration.Persistence.DTOs
{
public static class MappingExtensions
{
public static Vector3DTO ToVector3DTO(this Vector3 vector3)
{
return new Vector3DTO
{
X = vector3.x,
Y = vector3.y,
Z = vector3.z,
};
}
public static Vector3 ToVector3(this Vector3DTO vector3DTO)
{
return new Vector3
{
x = vector3DTO.X,
y = vector3DTO.Y,
z = vector3DTO.Z,
};
}
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 4df2772c805448e3887df8b70fc14d82
timeCreated: 1782400976

View File

@ -0,0 +1,25 @@
using System;
namespace Intrepid.Integration.Persistence.DTOs
{
[Serializable]
public class SaveStationDTO
{
public string StageId;
public Vector3DTO DeploymentPosition;
}
[Serializable]
public class SentinelDataDTO
{
public SaveStationDTO LatestSaveStation;
public static SentinelDataDTO WithInitialValues()
{
return new SentinelDataDTO
{
LatestSaveStation = null,
};
}
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 99682ac2085c4792ae21106fbf4edc98
timeCreated: 1782400569

View File

@ -0,0 +1,12 @@
using System;
namespace Intrepid.Integration.Persistence.DTOs
{
[Serializable]
public class Vector3DTO
{
public float X;
public float Y;
public float Z;
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 7e25ad01b2c74ebab778ec8989c9692d
timeCreated: 1782400520

View File

@ -0,0 +1,3 @@
{
"name": "Intrepid"
}

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: e55d743ec28c44be2b1854cb65870eaf
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,16 @@
{
"name": "Utilities",
"rootNamespace": "",
"references": [
"GUID:fc68fb84cb3c4f229a5b3a1f4a790dc7"
],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 0679931e16fd44ced9567e90c5750db7
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant: