-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMinGame-PrefixHeader.pch
More file actions
33 lines (25 loc) · 1006 Bytes
/
MinGame-PrefixHeader.pch
File metadata and controls
33 lines (25 loc) · 1006 Bytes
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
33
//
// MinGame-PrefixHeader.pch
// mingame
//
// Created by Jason Baker on 8/29/17.
// Copyright © 2017 Jason Baker. All rights reserved.
//
#ifndef MinGame_PrefixHeader_pch
#define MinGame_PrefixHeader_pch
// Include any system framework and library headers here that should be included in all compilation units.
// You will also need to set the Prefix Header build setting of one or more of your targets to reference this file.
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "UIView+TOFrameUtils.h"
#import "GameObject.h"
#import "GameConfig.h"
// from: https://stackoverflow.com/a/3532264
#define UIColorFromHex(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]
/*
const CGPoint CGPointNull = {(CGFloat)NAN, (CGFloat)NAN};
BOOL CGPointIsNull( CGPoint point ){
return isnan(point.x) && isnan(point.y);
}
*/
#endif /* MinGame_PrefixHeader_pch */