blob: bba5b593ca638ef93b20fa6ed3185aa03e2aa04b (
plain)
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
31
32
|
// SDLTouchCoord.m
//
#import "SDLTouchCoord.h"
#import "NSMutableDictionary+Store.h"
#import "SDLNames.h"
NS_ASSUME_NONNULL_BEGIN
@implementation SDLTouchCoord
- (void)setX:(NSNumber<SDLFloat> *)x {
[store sdl_setObject:x forName:SDLNameX];
}
- (NSNumber<SDLFloat> *)x {
return [store sdl_objectForName:SDLNameX];
}
- (void)setY:(NSNumber<SDLFloat> *)y {
[store sdl_setObject:y forName:SDLNameY];
}
- (NSNumber<SDLFloat> *)y {
return [store sdl_objectForName:SDLNameY];
}
@end
NS_ASSUME_NONNULL_END
|