Jump to content
  • Advertisement
Sign in to follow this  
_Sigma

RegisterScriptString

This topic is 4252 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I feel like a fool. Been trying to sort this out myself to no avail so back I come! Is it necessary to call RegisterScriptString on your engine? The tutorial says "// Register the script string type" but I was not able to find any information on this in the docs. Any guidance would be awesome. Cheers

Share this post


Link to post
Share on other sites
Advertisement
I'm just starting out myself, but it is my understanding that if you want to use string literals or the "string" data type in a script you need to register some type that acts like a string with the ScriptEngine object before building the script (or registering any types or functions that use the "string" type). The included asCScriptString class seems pretty good for most needs.

Hope that helps a bit,
~Andy

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!