Cube/src/Entity.h
Jonathan Schleifer cc5cc21aca Make use of OF_DIRECT
FossilOrigin-Name: 7a98b92af94db34093428fc95da00435311c270d74135e69aa94bca16871a023
2025-03-25 23:52:50 +00:00

13 lines
375 B
Objective-C

#import <ObjFW/ObjFW.h>
// map entity
OF_DIRECT_MEMBERS
@interface Entity: OFObject
@property (nonatomic) short x, y, z; // cube aligned position
@property (nonatomic) short attr1;
@property (nonatomic) unsigned char type; // type is one of the above
@property (nonatomic) unsigned char attr2, attr3, attr4;
@property (nonatomic) bool spawned;
+ (instancetype)entity;
@end