Added RocketAssemblyStation and ReadyRocket

This commit is contained in:
2026-08-18 16:12:00 +03:00
parent 7a0ee6b519
commit 63d2836dc9
85 changed files with 15087 additions and 3562 deletions
@@ -0,0 +1,29 @@
using UnityEngine;
public enum PartProcessingState : byte
{
Raw,
Ready
}
[CreateAssetMenu(
fileName = "PartItemDefinition",
menuName = "FORT-BO/Items/Definitions/Part")]
public sealed class PartItemDefinition : ItemDefinition
{
[Tooltip("Data-driven part family id, for example rocket-engine or rocket-cone-standard.")]
[SerializeField] private string partTypeId;
[SerializeField] private PartProcessingState processingState;
public string PartTypeId => string.IsNullOrWhiteSpace(partTypeId)
? ItemId
: partTypeId;
public PartProcessingState ProcessingState => processingState;
public bool IsReadyForAssembly => processingState == PartProcessingState.Ready;
protected override void OnValidate()
{
base.OnValidate();
partTypeId = NormalizeId(partTypeId);
}
}