Hi.

As mentioned earlier on IRC, parameter blocks don't seem to behave as
they should. I wrote a little test case:

    def pccommandinput_testmsg1(self,celEntity,args):
        params = parblock({"string": "foo", "int": 23, "vector":
csVector3(1,2,3)})
        print("parameter object             : ", params)
        print("parameterCount               : ", params.GetParameterCount())
        print("parameter ID index 0         : ",
params.GetParameterIDByIndex(0))
        print("parameter value index 0 val 0: ", params.GetParameterValue(0))
        print("parameter.keys()             : ", params.keys())
        print("params[\"string\"]             : ", params["string"])

Its output is this:

('parameter object             : ', <blcelc.celGenericParameterBlock;
proxy of <Swig Object of type 'celGenericParameterBlock *' at
0x7f1d258b8f88> >)
('parameterCount               : ', 3)
('parameter ID index 0         : ', 232L)
('parameter value index 0 val 0: ', None)
('parameter.keys()             : ', [232L, 233L, 234L])
('params["string"]             : ', None)

What I'd expect would be something like:

('parameter ID index 0         : ', "string")
('parameter value index 0 val 0: ', "foo")
('parameter.keys()             : ', ["string", "int", "vector")
('params["string"]             : ', "foo")

Anything else I can help to shed some light on this?

Liebe Grüße,
Sebastian Hoffmann

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Cel-main mailing list
Cel-main@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cel-main

Reply via email to