Skip to content

Instantly share code, notes, and snippets.

@jerstlouis
Created April 16, 2018 03:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jerstlouis/023e36a394daa0abdfef43873b228be9 to your computer and use it in GitHub Desktop.
Save jerstlouis/023e36a394daa0abdfef43873b228be9 to your computer and use it in GitHub Desktop.
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