Enhanced Plugin System: Difference between revisions

From Arianne
Jump to navigation Jump to search
Content deleted Content added
imported>Javydreamercsw
Created page with "== Proposal == *Move the plugin system from Stendhal into Marauroa core. *Provide hook system for the plugins to interact with Marauroa life cycle == Identified hook points == *..."
imported>Javydreamercsw
No edit summary
Line 20: Line 20:
Of course the names of the Interface and class needs to be updated.
Of course the names of the Interface and class needs to be updated.
[http://simple-marauroa.svn.sourceforge.net/viewvc/simple-marauroa/trunk/Simple-Server/src/simple/server/extension/SimpleServerExtension.java?revision=101&view=markup Proposed Interface]
[http://simple-marauroa.svn.sourceforge.net/viewvc/simple-marauroa/trunk/Simple-Server/src/simple/server/extension/SimpleServerExtension.java?revision=101&view=markup Proposed Interface]

This interfaced has been already ported in git branch server_extenstions for further testing/evaluation.

Revision as of 20:15, 1 May 2011

Proposal

  • Move the plugin system from Stendhal into Marauroa core.
  • Provide hook system for the plugins to interact with Marauroa life cycle

Identified hook points

  • Object added to Zone
    • Query the extension to plug in any action when an object is added to a zone
  • Object removed from Zone
    • Query the extension to plug in any action when an object is removed from a zone
  • Perception Generation
    • Query the extension to plug in any changes to the perception of an object
  • Client Object definition
    • Plug into the definition of the client class
  • After RPWorld is initialized
    • Action to perform after the world is initialized (all classes are defined)
  • Database Update/Creation
    • Update the database. Register/Update DAO's here as well

Proposed Interface

Of course the names of the Interface and class needs to be updated. Proposed Interface

This interfaced has been already ported in git branch server_extenstions for further testing/evaluation.