logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
New functions

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Scripts and Modules
View previous topic :: View next topic  
Author Message
fallen



Joined: 08 Feb 2005
Posts: 1
Location: Poland

PostPosted: Tue Feb 08, 2005 18:33    Post subject: New functions Reply with quote

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
View user's profile Send private message
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Thu Feb 10, 2005 20:00    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Scripts and Modules All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group