[Bf-committers] BGE API Proposal
Toni Alatalo
antont at kyperjokki.fi
Thu Feb 19 21:25:52 CET 2009
On Feb 19, 2009, at 12:37 PM, Roger Wickes wrote:
> APIVER=248
> myob=camera.New(type='persp', name='CamData', apiver=APIVER)
I think a better way to do this is to have the different versions of
the API as a different module.
The current BGE module is 'GameLogic' (or however the capitalization
is) - perhaps the new could be .. 'game' or 'bge' or 'blendergame' or
something?
So old scripts could continue working as they are, per Erwin's request
- use 'import GameLogic' and get obnames complete with the 'OB' prefix
etc.
New / ported scripts would do 'import BlenderGame' or something and get
ob references, have .name without 'OB' prefixes etc. and all the other
sane things.
Would be clean - the old api would be just what it is, no mixing of
such diffent behaviours for different versions etc - could be kept
around for possible 2.49 at least as it is (possibly with bugfixes
applied to there too).
~Toni
More information about the Bf-committers
mailing list