Created
September 30, 2015 10:53
-
-
Save SerafimArts/1ef725e72488302044b4 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 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