forked from Shardstone/trail-into-darkness
factored the character system - not funtional yet
This commit is contained in:
31
Assets/Code/GameState/Entities/ModifiersHandler.cs
Normal file
31
Assets/Code/GameState/Entities/ModifiersHandler.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
|
||||
namespace Nox.Game {
|
||||
|
||||
public enum ModifierType {
|
||||
None,
|
||||
Flat,
|
||||
Addition,
|
||||
Multiplication,
|
||||
Percentage
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public sealed class Modifier {
|
||||
public string id;
|
||||
public ModifierType type;
|
||||
public float value;
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public sealed class ModifiersData {
|
||||
public Modifier[] modifiers;
|
||||
}
|
||||
|
||||
public class ModifiersHandler {
|
||||
private readonly ModifiersData modifiersData;
|
||||
public ModifiersHandler(ModifiersData modifiersData) {
|
||||
this.modifiersData = modifiersData;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user