Search found 4 matches

by DanielB
Sat Jul 21, 2012 4:40 am
Forum: Module/Package Submissions
Topic: Auth API
Replies: 10
Views: 27804

Here's a simple sqlite3 auth module I wrote a little while ago for ideas. Here's how it works: ⋅ There are users, groups and permissions. ⋅ Permission are created as needed and can be applied to either users or groups. ⋅ Users can join any number of groups ⋅ P...
by DanielB
Tue Jul 10, 2012 10:06 am
Forum: API Design
Topic: Event system discussion
Replies: 22
Views: 25848

As far as having es.addons.registerForEvent functionality, I would say almost definitely. If we went with a system like the decorators system, where the scripter would have to declare a function/method as an event explicitly, and it was built into the C++ side, then I would say no. Otherwise, I wou...
by DanielB
Sun Jul 08, 2012 3:42 pm
Forum: API Design
Topic: Decorators vs the eventscripts way ..
Replies: 12
Views: 12972

I see all 3 of these as highly unnecessary, personally. If one of you wishes, you can make a python-side module that adds these decorators, and we can discuss whether or not we wish to implement it into the code base at a later time. One idea that we have been throwing around is if a file named "ev...
by DanielB
Sun Jul 08, 2012 8:02 am
Forum: API Design
Topic: Decorators vs the eventscripts way ..
Replies: 12
Views: 12972

The current implementation in src/core/addons/es_addon.cpp works more-or-less exactly like ES2 does - checks the global namespace for variable with the same name as the event. Decorators could provide a number of improvements on this model ⋅  Multiple handlers for an event ⋅  Abl...

Go to advanced search