View previous topic :: View next topic |
Author |
Message |
fallen
Joined: 08 Feb 2005 Posts: 1 Location: Poland
|
Posted: Tue Feb 08, 2005 18:33 Post subject: New functions |
|
|
Hard coded conversion from string to location in c lang are fastest - i thing.
When database store int in table why NWNX return this value as String? Then i need to convert it back to int...
Is it posible to create in next version of NWNX 2 few hard coded function?
Function such like String SQLGetData() :
int SQLGetIntData(...);
float SQLGetFloatData(...);
location SQLGetLocationData(...);
vector SQLGetVectorData(...);
Edit: ah can't overload functions in nwn ;]
Sorry for my english.
Greets |
|
Back to top |
|
|
Papillon x-man
Joined: 28 Dec 2004 Posts: 1060 Location: Germany
|
Posted: Thu Feb 10, 2005 20:00 Post subject: |
|
|
The original design principle was to hook only one single function in the server - SetLocalString. That is why everything has to be converted to and from the datatype string.
In theory you could hook other functions like Get/SetLocalInt, but then again, the performance gain would probably not be noticeable, so not really worth the effort. _________________ Papillon |
|
Back to top |
|
|
|