Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AngelScript OO Capabilities - Inheritance
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#2
RE: AngelScript OO Capabilities - Inheritance

Namespaces are not available in the version of AngelScript that Amnesia uses. I wouldn't expect funcdef to work with methods, mostly given the name of the keyword and that methods require an instance of the class to call anyway. I haven't tried to subclass any of the classes i've made, so i'm not sure of how AngelScript handles inheritance. I can provide a bit more insight on the private keyword, though. Private seems to enforce a void return type (at least for me), so using private on a method that returns a value won't work.

HPL3 is bound to use a newer version of AngelScript and inheritance should more practical and less buggy, since HPL3 seems to rely heavily on interfaces and inheritance.

P.S. It wasn't the MapView program, it was the game itself. If you load the map without any scripting errors, then modify the script and try to reload the map, you can receive errors, if any, without the game exiting.

Tutorials: From Noob to Pro
(This post was last modified: 08-16-2012, 05:14 PM by Your Computer.)
08-16-2012, 05:14 PM
Website Find


Messages In This Thread
RE: AngelScript OO Capabilities - Inheritance - by Your Computer - 08-16-2012, 05:14 PM



Users browsing this thread: 3 Guest(s)