Artifact 4b0e6a03e925bc0943f16b911db126c8eca63311065dadb2e53cd290f9f05f6c:
- File src/Entity.h — part of check-in [7a98b92af9] at 2025-03-25 23:52:50 on branch trunk — Make use of OF_DIRECT (user: js, size: 375) [annotate] [blame] [check-ins using]
#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