added logger to character creation, default character setup, gameplay flow and textmeshpro stuff

This commit is contained in:
Sebastian Bularca
2026-04-05 21:48:06 +02:00
parent bb75524cd8
commit c2bbf30a73
300 changed files with 73925 additions and 184 deletions

View File

@@ -1,6 +1,7 @@
using Jovian.Logger;
using System;
using System.Collections.Generic;
using System.Linq;
using ZLinq;
using UnityEngine;
@@ -32,16 +33,21 @@ namespace Nox.Game {
[Serializable]
public sealed class ModifierDefinition : IModifier {
[field: SerializeField] public string Name { get; set; }
public Guid Id { get; set; }
public Guid Id { get; set; } = Guid.NewGuid();
[field: SerializeField] public StatType StatType { get; set; }
[field: SerializeField] public AttributeType AttributeType { get; set; }
[field: SerializeField] public ModifierOperation Operation { get; set; }
[field: SerializeField] public CombatScoreType CombatScoreType { get; set; }
[field: SerializeField] public float Value { get; set; }
}
[Serializable]
public sealed class ModifiersData {
public List<ModifierDefinition> modifiers = new ();
public override string ToString() {
return $"Modifiers: {string.Join(", ", modifiers.Select(modifier => $"{modifier.Name}"))}";
}
}
public class ModifiersFactory : IModifiersFactory {