Convert server_entity to a class

FossilOrigin-Name: 21584a40b686945f20e078af058c7f2ad2f4be197cc4a67335a18329c6fd085b
This commit is contained in:
Jonathan Schleifer 2025-03-20 16:36:34 +00:00
parent d42f82f1ec
commit 7162807acd
4 changed files with 45 additions and 26 deletions

9
src/ServerEntity.h Normal file
View file

@ -0,0 +1,9 @@
#import <ObjFW/ObjFW.h>
// server side version of "entity" type
@interface ServerEntity: OFObject
@property (nonatomic) bool spawned;
@property (nonatomic) int spawnsecs;
+ (instancetype)entity;
@end