Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 1.64 KB

utilities.md

File metadata and controls

20 lines (15 loc) · 1.64 KB

Utilities

Loader utilities

To cut the process of getting the correct save-data from db and spawning it into the world as easy as possible two utility classes are provided. Check each inline documentation for how to use them.

World entity utility

Scripted state utility - this one can not be used for EPF_PersistentScriptedStateProxys.

Persistence DB context and repository

Note Before trying to access the persistence DB directly, double-check that there is no other intended way to handle the task at hand. Normally all features can be designed through the use of the existing EPF_PersistenceComponent and EPF_PersistentScriptedState.

To use the same EDF_DbContext as the persistence system, any custom logic can access it through EPF_PersistenceManager.GetDbContext(). There are also utility classes to get an EL_DbRepository<T> that is already connected to the persistence DB context: