New Blocks
#6
I see three ways of providing support for handlers

Lua way one:
Create a new blockhandler cUnknownBlock with hooks for all the calls.

This is the most expensive in performance but fits the existing apis.

Lua way two:
Create a new blockhandler cUnknownBlock which wraps a lua table of functions. Then provide a function to register this blockhandler in a cache kept by cBlockhandler.

This is less expensive as we only call one plugin but is more complicated.

C++ way:
Use dynamic loaders to load user provided shared objects that register a factory with cBlockhandler then behave like any other handler.

Most performant but most complicated to use.

I think we should go for the second lua way as we dont want to be calling hooks for every tick.
Reply
Thanks given by:


Messages In This Thread
New Blocks - by jimmis98 - 03-12-2014, 01:54 AM
RE: New Blocks - by NiLSPACE - 03-12-2014, 02:02 AM
RE: New Blocks - by xoft - 03-12-2014, 02:38 AM
RE: New Blocks - by bearbin - 03-12-2014, 03:55 AM
RE: New Blocks - by xoft - 03-12-2014, 04:05 AM
RE: New Blocks - by worktycho - 03-12-2014, 04:14 AM
RE: New Blocks - by jimmis98 - 03-12-2014, 05:24 AM
RE: New Blocks - by worktycho - 03-12-2014, 05:45 AM
RE: New Blocks - by jimmis98 - 03-12-2014, 07:58 AM
RE: New Blocks - by worktycho - 03-12-2014, 08:08 AM
RE: New Blocks - by ThuGie - 03-12-2014, 09:19 AM
RE: New Blocks - by xoft - 03-12-2014, 06:48 PM



Users browsing this thread: 1 Guest(s)