Move ServerInfo to separate file
FossilOrigin-Name: 53f10f3320267c06cbe2ba5325fbc8fc3fc652b35a8e2ac0d0fdbcf7e96aa352
This commit is contained in:
parent
a084fb1cab
commit
2c939e6535
4 changed files with 57 additions and 39 deletions
15
src/ServerInfo.h
Normal file
15
src/ServerInfo.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
#import <ObjFW/ObjFW.h>
|
||||
|
||||
#include <enet/enet.h>
|
||||
|
||||
@interface ServerInfo: OFObject <OFComparing>
|
||||
@property (readonly, nonatomic) OFString *name;
|
||||
@property (copy, nonatomic) OFString *full;
|
||||
@property (copy, nonatomic) OFString *map;
|
||||
@property (copy, nonatomic) OFString *sdesc;
|
||||
@property (nonatomic) int mode, numplayers, ping, protocol, minremain;
|
||||
@property (nonatomic) ENetAddress address;
|
||||
|
||||
- (instancetype)init OF_UNAVAILABLE;
|
||||
- (instancetype)initWithName:(OFString *)name;
|
||||
@end
|
Loading…
Add table
Add a link
Reference in a new issue