Skip to content

Instantly share code, notes, and snippets.

@SerafimArts
Created September 30, 2015 10:53
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 SerafimArts/1ef725e72488302044b4 to your computer and use it in GitHub Desktop.
Save SerafimArts/1ef725e72488302044b4 to your computer and use it in GitHub Desktop.
import Vector2 from "/Core/Math/Vector2";
import Rotation from "/Core/Math/Rotation";
import {AClass, AProperty} from "/Core/Annotations/Meta";
@AClass('Basic Actor')
export default class Actor {
/**
* @type {boolean}
*/
@AProperty({name: 'Visibility', save: false})
visible = true;
/**
* @type {Vector2}
*/
@AProperty('Actor position')
position = new Vector2;
/**
* @type {Vector2}
*/
@AProperty('Actor width and height')
size = new Vector2;
/**
* @type {Rotation}
*/
@AProperty('Actor rotation angle and position')
rotation = new Rotation;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment