File: binding-thoughts

package info (click to toggle)
bzflag 2.0.8.20060605
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 29,168 kB
  • ctags: 33,169
  • sloc: cpp: 132,719; ansic: 14,122; sh: 13,441; makefile: 2,330; php: 428; python: 334; perl: 287; objc: 243; xml: 180
file content (26 lines) | stat: -rw-r--r-- 838 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
we should probably expose a dictionary for the slash commands - just
do something like:
	def callback (player, message):
	    # do something
	    pass
	BZFlag.Commands['blarg'] = callback

BZDB can probably also be exposed as a dictionary

I'm not sure this will actually work. Might require making a custom object
that acts like a dictionary
-----------------------------------------
TODO:

* Some events expect data passed back to them - GetSpawnPos, for instance. Need
  to figure out a way to do this, as well as reconcile the results when we have
  multiple scripts running (probably look at how bzfsAPI reconciles multiple
  results)

* Some events don't seem to have data, like ZoneEntryHandler. Bug Jeff about this.

* Add kw support to events

* Docstrings

* Test events, especially those which have complex argument structures