Comment: | Convert several files to pure Objective-C |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
eac9e3d9480c641e752bce15f24de48b |
User & Date: | js on 2025-03-20 20:59:25 |
Other Links: | manifest | tags |
2025-03-20
| ||
21:18 | Convert more files to pure Objective-C check-in: b250dfa8d4 user: js tags: trunk | |
20:59 | Convert several files to pure Objective-C check-in: eac9e3d948 user: js tags: trunk | |
20:38 | Remove all default arguments from protos.h check-in: ef1d7e47f7 user: js tags: trunk | |
Name change from src/Command.mm to src/Command.m.
Renamed and modified src/DynamicEntity.mm [412962c92b] to src/DynamicEntity.m [ace0df653e].
︙ | |||
32 33 34 35 36 37 38 | 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | - + | int anger; char name[260], team[260]; }; @implementation DynamicEntity + (size_t)serializedSize { |
︙ | |||
113 114 115 116 117 118 119 | 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | - + | return copy; } - (OFData *)dataBySerializing { // This is frighteningly *TERRIBLE*, but the format used by existing // savegames. |
︙ | |||
171 172 173 174 175 176 177 | 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 | - + | return [OFData dataWithItems:&data count:sizeof(data)]; } - (void)setFromSerializedData:(OFData *)data { struct dynent d; |
︙ |
Renamed and modified src/MD2.mm [3c502ddbf2] to src/MD2.m [9f4a91ba94].
︙ | |||
17 18 19 20 21 22 23 | 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | - + | uchar vertex[3], lightNormalIndex; }; struct md2_frame { float scale[3]; float translate[3]; char name[16]; |
︙ | |||
47 48 49 50 51 52 53 | 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 | - - - - + + + + + + + + - - - + + + + - + - + + + - + - + + - - + - - + + + + + | + (instancetype)md2 { return [[self alloc] init]; } - (void)dealloc { |
︙ | |||
182 183 184 185 186 187 188 | 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 | - - - + | loopi(numVertex) { float tu = *((float *)command++); float tv = *((float *)command++); glTexCoord2f(tu, tv); int vn = *command++; |
︙ |
Name change from src/OFString+Cube.mm to src/OFString+Cube.m.
Name change from src/ResolverResult.mm to src/ResolverResult.m.
Name change from src/ResolverThread.mm to src/ResolverThread.m.
Name change from src/ServerInfo.mm to src/ServerInfo.m.
Name change from src/Variable.mm to src/Variable.m.
Name change from src/Client.mm to src/client.m.
Modified src/cube.h from [6d45041e84] to [3a60f1d5c8].
︙ | |||
239 240 241 242 243 244 245 | 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 | + - - - + + + + + + + + | struct vertex { float u, v, x, y, z; uchar r, g, b, a; }; // globals ooh naughty #ifdef __cplusplus |
︙ |
Modified src/meson.build from [8f9d724584] to [0f5a54e283].
1 2 3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | - - + + - + - + - + - - + + - - + + | executable('client', [ 'Alias.m', |
︙ | |||
65 66 67 68 69 70 71 | 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | - + | include_directories: [enet_includes], link_args: client_link_args, link_with: [enet], win_subsystem: 'windows') executable('server', [ |
︙ |
Modified src/protos.h from [9719c1da0f] to [b7d19818d1].
1 2 3 4 5 6 7 8 | 1 2 3 4 5 6 7 8 9 10 11 12 | + + + + | // protos for ALL external functions in cube... #ifdef __cplusplus extern "C" { #endif // command extern int variable(OFString *name, int min, int cur, int max, int *storage, void (*fun)(), bool persist); extern void setvar(OFString *name, int i); extern int getvar(OFString *name); extern bool identexists(OFString *name); |
︙ | |||
43 44 45 46 47 48 49 | 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | - + + - - + + - - + + - - - - + + + + | // rendergl extern void gl_init(int w, int h); extern void cleangl(); extern void gl_drawframe(int w, int h, float curfps); extern bool installtex(int tnum, OFIRI *IRI, int *xs, int *ys, bool clamp); extern void mipstats(int a, int b, int c); |
︙ | |||
110 111 112 113 114 115 116 | 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 | - - + + - - + + | DynamicEntity *d, bool team, OFString *mdlname, bool hellpig, float scale); void showscores(bool on); extern void renderscores(); // world extern void setupworld(int factor); extern void empty_world(int factor, bool force); |
︙ | |||
150 151 152 153 154 155 156 | 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 | - - - - - + + + + + - + | extern int text_width(OFString *string); extern void draw_envbox(int t, int fogdist); // editing extern void cursorupdate(); extern void toggleedit(); extern void editdrag(bool isdown); |
︙ | |||
266 267 268 269 270 271 272 | 271 272 273 274 275 276 277 278 279 280 281 282 | - + + + + + | extern void renderentities(); extern void resetspawns(); extern void setspawn(uint i, bool on); extern void teleport(int n, DynamicEntity *d); extern void baseammo(int gun); // rndmap |
Modified src/tools.h from [1aee766b5c] to [277ccadbda].
︙ | |||
42 43 44 45 46 47 48 49 50 51 | 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | + + + + + + | #ifndef OF_WINDOWS # define __cdecl #endif #define fast_f2nat(val) ((int)(val)) #ifdef __cplusplus extern "C" { #endif extern void endianswap(void *, int, int); #ifdef __cplusplus } #endif #endif |