These are chat archives for ikkentim/SampSharp

31st
Oct 2016
Florian van Dillen
@fvandillen
Oct 31 2016 21:55
@ikkentim imagine a class which you've mapped with Nhibernate. Would it be advisable to have methods that this class uses in the class itself or somewhere else?
Tim Potze
@ikkentim
Oct 31 2016 22:39
To some extend it's just fine to put methods in there, as long as they're about the model: either updating the model values, computing a value based on the model(and maybe other values passed into the method) or use the model data(but nothing too complex)
Florian van Dillen
@fvandillen
Oct 31 2016 22:39
In this case, it's an ATM class and a method that does Spawn()
Just creates the object whenever the class is called and disposes the object when it needs to disappear