From: <pa...@us...> - 2008-10-23 22:13:40
|
Revision: 922 http://opde.svn.sourceforge.net/opde/?rev=922&view=rev Author: patryn Date: 2008-10-23 22:13:36 +0000 (Thu, 23 Oct 2008) Log Message: ----------- Fixed a couple of typos in the comments. Modified Paths: -------------- trunk/scripts/python/tree.py Modified: trunk/scripts/python/tree.py =================================================================== --- trunk/scripts/python/tree.py 2008-10-23 03:54:37 UTC (rev 921) +++ trunk/scripts/python/tree.py 2008-10-23 22:13:36 UTC (rev 922) @@ -39,6 +39,9 @@ Sort-of-a-Disclamer: No guarantee is made about the function of this, and also note it might make your PC burn if something goes wrong, or anything like that;) + +$Id$ + """ import getopt, sys, Opde @@ -94,7 +97,7 @@ -# tell Opde.Root to only create CORE services (those which are sufficient for tools, no renderer, etc) +# Tell Opde.Root to only create CORE services (those which are sufficient for tools, no renderer, etc) opderoot = Opde.createRoot(Opde.Services.SERVICE_CORE) # Logging - defaults to none. the line below would enable logging to opde.log in the current directory @@ -122,7 +125,7 @@ if (cfgsrv.hasParam("script_path_extra") == True): opderoot.addResourceLocation(cfgsrv.getParam("script_path_extra"), "Dir", "General", False) -# Load the dype scripts (this varies depending on the game type) +# Load the dtype scripts (this varies depending on the game type) opderoot.loadDTypeScript(gametype + "-types.dtype", "General") opderoot.loadPLDefScript(gametype + "-links.pldef", "General") opderoot.loadPLDefScript(gametype + "-props.pldef", "General") @@ -138,10 +141,10 @@ psrv = Opde.Services.getPropertyService() # Load the gamesys (note: dbsrv.load("miss1.mis") would load both mission-2 and gamesys-1) -# ogre is case sensitive on linux. Will have to resolve this +# Ogre is case sensitive on linux. Will have to resolve this dbsrv.loadGameSys(gamesys) -# an example (not used here): Query which properties the given object owns, and which it inherits +# An example (not used here): Query which properties the given object owns, and which it inherits def objectInfo(oid): name = objsrv.getName(oid) print "Object Info for object " + str(oid) + " named '" + name + "':" @@ -261,12 +264,12 @@ dtypestr = " "; dtype = 0; - # does the object have DonorType property? All gamesys object should! + # does the object have DonorType property? All gamesys objects should! if (psrv.has(oid, "DonorType")): # get DonorType property value dtype = psrv.get(oid, "DonorType", "") - # if the donor type is nonzero, we encountered a MetaProperty! + # if the donor type is nonzero, we have encountered a MetaProperty! if (dtype == 1): dtypestr = "[M] " This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |