Public class attributes in AngelScript
up vote
0
down vote
favorite
Is there no way of getting public class attributes in AngelScript?
What I want to do is
class A {
int number = 1;
A() {}
}
//...
A a = A();
print(a.number);
Is the only option to use getter and setter?
oop public angelscript
add a comment |
up vote
0
down vote
favorite
Is there no way of getting public class attributes in AngelScript?
What I want to do is
class A {
int number = 1;
A() {}
}
//...
A a = A();
print(a.number);
Is the only option to use getter and setter?
oop public angelscript
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Is there no way of getting public class attributes in AngelScript?
What I want to do is
class A {
int number = 1;
A() {}
}
//...
A a = A();
print(a.number);
Is the only option to use getter and setter?
oop public angelscript
Is there no way of getting public class attributes in AngelScript?
What I want to do is
class A {
int number = 1;
A() {}
}
//...
A a = A();
print(a.number);
Is the only option to use getter and setter?
oop public angelscript
oop public angelscript
asked Nov 10 at 15:05
Michael Dorner
6,34194166
6,34194166
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53240238%2fpublic-class-attributes-in-angelscript%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown