Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OOP Methods #7

Open
gatno opened this issue Aug 23, 2018 · 1 comment
Open

Add OOP Methods #7

gatno opened this issue Aug 23, 2018 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@gatno
Copy link

gatno commented Aug 23, 2018

Object Orientated Programming was introduced in MTA:SA 1.4

@Subtixx Subtixx added the enhancement New feature or request label Aug 23, 2018
@Subtixx
Copy link
Owner

Subtixx commented Aug 24, 2018

For this to work I would need to write a full blown code parser. This means parsing files and determining their types ex:

local position = Vector3(300, -200, 2)
local vehicle = Vehicle(411, position)
vehicle.position = centreOfMap - Vector3(300, -200, 0)

The variable vehicle has to be parsed and set as "Vehicle" type internally. Then when the code completion handler is triggered (By typing "vehicle.") the parser has to lookup the type of vehicle, take the type and list all possible "methods" and "fields".

@Subtixx Subtixx added the help wanted Extra attention is needed label Jan 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants