[MUD-Dev] Persistent Worlds

J C Lawrence claw at kanga.nu
Fri Feb 23 10:53:25 CET 2001


On Fri, 23 Feb 2001 03:06:06 -0800 
Ryan Rhodes <ryanshaerhodes at hotmail.com> wrote:

> For it to be really decoupled from the game though, you would need
> a way to count the object accesses in a generic fashion.  I've
> never really understood this about "write your own" caching.  Is
> there some generic, low-level way to "Trap" an object access?  

I do it by intercepting the ObjectID->CacheEntry call.  Objects only
store ObjectID's internally (that is how the DB and DB cache are
indexed), so every outside call or message is addressed to an
ObjectID, which then allows interception on dereferencing.

--
J C Lawrence                                       claw at kanga.nu
---------(*)                          http://www.kanga.nu/~claw/
--=| A man is as sane as he is dangerous to his environment |=--
_______________________________________________
MUD-Dev mailing list
MUD-Dev at kanga.nu
https://www.kanga.nu/lists/listinfo/mud-dev



More information about the mud-dev-archive mailing list