File: binding-thoughts

package info (click to toggle)
bzflag 2.0.13.20080902-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 27,564 kB
  • ctags: 34,716
  • sloc: cpp: 139,842; ansic: 14,510; sh: 10,715; makefile: 2,454; perl: 477; php: 428; python: 345; objc: 243; xml: 24
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