Skip to content

Instantly share code, notes, and snippets.

@jerstlouis
Last active July 8, 2017 04:43
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/b866bc0d609769e47b4c639cc76609c1 to your computer and use it in GitHub Desktop.
Save jerstlouis/b866bc0d609769e47b4c639cc76609c1 to your computer and use it in GitHub Desktop.
class ResourceObject
{
int hp;
}
class Unit : ResourceObject
{
property int hp
{
/*
set { *&hp = value; }
get { return *&hp; }
*/
set { ResourceObject::hp = value; }
get { return ResourceObject::hp; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment