| Prev | Next |
Probably many of you have heard both about toolkits abd frameworks. What are they and thats the different?
Toolkit is set of routines (functions, classes, objects, variables etc.) defined and oriented for some problem. However toolkit provides only particular mechanisms. For example POT contains classes for many different resources of OTServ but it just gives you some abstraction for them, without defining any detailed way you should handle them. Framework, on the other hand, gives you entire enviroment. It defines connections between some parts of system and defines particular way you should follow developing software with given framework.
If you plan to use POT in your framework you should initialise it and load all required resources so it would be fully functional within your framework scope.
First of all your POT should be function - most important part is database handle. You should pre-load main POT file to make POT interface available and also make it's instance connected to database.
After that you should load all data/ directory resource handlers to make your POT enviroment complete - many features can't be used before all resources won't be loaded:
Last thing is to provide full features by creating drivers that implements interfaces for POT classes. Those are cache drivers, guild action drivers and display drivers. Display drivers are assigned to POT instance so you can somehow hide it since they will just reside inside POT class object.
| Prev | Up | Next |
| Deprecations | Additional info | AAC scripts |