Menu

Commit [r933]  Maximize  Restore  History

Rewriting the usage of Shield.Intransaction (yes it's far from done and I'm already rewriting :) I think it makes generally more sense to not try to make every single method "atomic" by introducing a transaction. Instead we'll just generally assert a transaction in public methods in "shielded" classes, and the actual transactions will be started on just a few "global" places - generally there where we also handle exceptions. That way the transaction-ness doesn't get out of control and at the same time asserts make sure we have transactions where we need them.

tart 2017-01-24

changed /moriaengine/Common/Localisation/LocManager.cs
changed /moriaengine/GameCore/AbstractDef.cs
changed /moriaengine/GameCore/AbstractScript.cs
changed /moriaengine/GameCore/Constant.cs
changed /moriaengine/GameCore/FieldValue.cs
changed /moriaengine/GameCore/Persistence/WorldSaver.cs
changed /moriaengine/GameCore/ScriptHolder.cs
changed /moriaengine/GameCore/ScriptLoader.cs
changed /moriaengine/GameCore/ThingDef.cs
/moriaengine/Common/Localisation/LocManager.cs Diff Switch to side-by-side view
Loading...
/moriaengine/GameCore/AbstractDef.cs Diff Switch to side-by-side view
Loading...
/moriaengine/GameCore/AbstractScript.cs Diff Switch to side-by-side view
Loading...
/moriaengine/GameCore/Constant.cs Diff Switch to side-by-side view
Loading...
/moriaengine/GameCore/FieldValue.cs Diff Switch to side-by-side view
Loading...
/moriaengine/GameCore/Persistence/WorldSaver.cs Diff Switch to side-by-side view
Loading...
/moriaengine/GameCore/ScriptHolder.cs Diff Switch to side-by-side view
Loading...
/moriaengine/GameCore/ScriptLoader.cs Diff Switch to side-by-side view
Loading...
/moriaengine/GameCore/ThingDef.cs Diff Switch to side-by-side view
Loading...
MongoDB Logo MongoDB