Differences From Artifact [8949d4cc02]:
- File src/ServerInfo.h — part of check-in [7a98b92af9] at 2025-03-25 23:52:50 on branch trunk — Make use of OF_DIRECT (user: js, size: 544) [annotate] [blame] [check-ins using]
To Artifact [688d346abd]:
- File
src/ServerInfo.h
— part of check-in
[75e920ae30]
at
2025-03-29 14:25:43
on branch trunk
— Switch from clang-format to manual formatting
clang-format does too many weird things. (user: js, size: 546) [annotate] [blame] [check-ins using]
1 2 3 4 5 6 7 8 9 10 11 12 13 | #import <ObjFW/ObjFW.h> #include <enet/enet.h> OF_DIRECT_MEMBERS @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; | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #import <ObjFW/ObjFW.h> #include <enet/enet.h> OF_DIRECT_MEMBERS @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)infoWithName: (OFString *)name; - (instancetype)init OF_UNAVAILABLE; - (instancetype)initWithName: (OFString *)name; @end |