GameMonkey Script

GameMonkey Script Forums
It is currently Thu Jan 24, 2019 4:41 am

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Binding Objects Methods
PostPosted: Mon Feb 13, 2006 5:37 pm 
Offline

Joined: Mon Feb 13, 2006 5:28 pm
Posts: 1
Hello There!

I'mcurrently Binding the GameMonkey Script into my engine.

I've already binded the parameters of a C++ class and I'm using the dot override methods: getDot and SetDot. My problem now is how to bind the methods of that class? I can't figure it out.. :oops: .

Imagine a Vector.

I've already done the stuff like creating a new vector:
global v = Vector();

the get and set of the parameters of the Vector
v.x = 0.9;
and
print(v.x);

Now, How can I do stuff like:

i = v.Length();
?????????????????


I've read already about the RegisterTypeLibrary.. But what I'm suposed to do with that? When I press v.Length() it goes to the getDot function...


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group