Hello there, I don’t even know if that’s possible, assuming that’s a complexe topic, but I want to create class, that can handle a global getter and setter.
This is an example, but I wish I could generalize it
The [Expression] is the part I’m searching for, I have no idea of what it could be
public class intP
{
public int intValue;
[Expression] { get { return intValue; } set { intValue = value; }
}
public class Test
{
public intP money;
public void AddMoney (int amount) { money += amount; }
}
Because I want to create my custom properties, working like float or int but also with the ability to have level, or utilities x)
I want to use that system to make some item databases, dialog editors etc