-
-
Save jerstlouis/023e36a394daa0abdfef43873b228be9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "ecere" | |
class GameObject | |
{ | |
int progress; | |
} | |
class Feature : GameObject | |
{ | |
// A different bug if no 'foo' here! | |
int foo; | |
property int progress | |
{ | |
get | |
{ | |
// This is not working!! | |
// return GameObject::progress; | |
return ((GameObject)this).progress; | |
} | |
set | |
{ | |
// This is not working!!! | |
//GameObject::progress = value; | |
((GameObject)this).progress = value; | |
} | |
} | |
// NOTE: You could also make 'progress' a property in GameObject, then use watch(GameObject) within an #ifdef CLIENT in Feature class to add the notification... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment