Mercurial > traipse_dev
view plugins/server/examplePlugin.py @ 198:e221cd12b820 alpha
Traipse Alpha 'OpenRPG' {100426-01}
Traipse is a distribution of OpenRPG that is designed to be easy to setup and go. Traipse also makes it easy for
developers to work on code without fear of sacrifice. 'Ornery-Orc' continues the trend of 'Grumpy' and adds fixes to
the code. 'Ornery-Orc's main goal is to offer more advanced features and enhance the productivity of the user.
Update Summary (Patch-2)
New Features:
New Namespace method with two new syntaxes
New Namespace Internal is context sensitive, always!
New Namespace External is 'as narrow as you make it'
New Namespace FutureCheck helps ensure you don't receive an incorrect node
New PluginDB access for URL2Link plugin
New to Forms, they now show their content in Design Mode
Fixes:
Fix to Server GUI startup errors
Fix to Server GUI Rooms tab updating
Fix to Chat and Settings if non existant die roller is picked
Fix to Dieroller and .open() used with .vs(). Successes are correctly calculated
Fix to Alias Lib's Export to Tree, Open, Save features
Fix to alias node, now works properly
Fix to Splitter node, minor GUI cleanup
Fix to Backgrounds not loading through remote loader
Fix to Node name errors
Fix to rolling dice in chat Whispers
Fix to Splitters Sizing issues
Daily:
Fix I had to push this again because I got a little amitions with getiterator, breaking Internal
author | sirebral |
---|---|
date | Mon, 26 Apr 2010 16:15:50 -0500 |
parents | 4385a7d0efd1 |
children |
line wrap: on
line source
import os import sys from base_plugin import BasePluginClass class Plugin(BasePluginClass): def __init__(self): BasePluginClass.__init__(self) self.Name = "examplePlugin" self.File = __file__ self.Author = "Dj Gilcrease" self.Help = "Help" self.InputPriority = -1 # -1 = not used; 99 = priority doesn't matter # Any other number is priority, lowest number # executes first self.OutputPriority = -1# -1 = not used; 99 = priority doesn't matter # Any other number is priority, lowest number # executes first self.PollPriority = -1 # -1 = not used; 99 = priority doesn't matter # Any other number is priority, lowest number # executes first def start(self): #Do you DB connection here pass def stop(self): #Close your DB connection here pass def preParseIncoming(self, xml_dom, data): #Do something with the Data or Dom, and return it return xml_dom, data def postParseIncoming(self, data): #Do something with the Data before it gets sent to the room return data def preParseOutgoing(self): #Fetch messages from somewhere that need to be sent out return []