From a630e6d02020c8dd1a14a201320bbe6088174a80 Mon Sep 17 00:00:00 2001 From: Griatch Date: Thu, 10 Sep 2015 21:56:17 +0200 Subject: [PATCH] Some first ideas around search optimizations. --- evennia/contrib/rpsystem.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/evennia/contrib/rpsystem.py b/evennia/contrib/rpsystem.py index ba5ceb82b..8998c9c23 100644 --- a/evennia/contrib/rpsystem.py +++ b/evennia/contrib/rpsystem.py @@ -255,6 +255,7 @@ def parse_language(speaker, emote): return emote, mapping + def parse_sdescs_and_recogs(sender, candidates, emote, map_obj=False): """ Read a textraw emote and parse it into an intermediary @@ -739,6 +740,17 @@ class RPObject(DefaultObject): """ return self.db.recog_objmap.get(obj, (None, None))[1] +# def search(self, searchdata, **kwargs): +# """ +# This version of search will pre-parse searchdata +# for eventual matches against sdescs in candidates. +# """ +# if isinstance(searchdata, basestring): +# pass +# if not candidates: + + + def get_display_name(self, looker, **kwargs): """ Displays the name of the object in a viewer-aware manner.