comparison SpriteObject.h @ 810:f5156b8c61ad

savegame refactoring
author Gloval
date Tue, 26 Mar 2013 00:57:54 +0400
parents cb0ad52d6a26
children c232f160e6f3
comparison
equal deleted inserted replaced
796:14beae4f1723 810:f5156b8c61ad
5 enum 5 enum
6 { 6 {
7 OBJECT_ATTACHED_TO_ACTOR = 0x80, 7 OBJECT_ATTACHED_TO_ACTOR = 0x80,
8 }; 8 };
9 9
10 10 #define MAX_SPRITE_OBJECTS 1000
11 /* 72 */ 11 /* 72 */
12 #pragma pack(push, 1) 12 #pragma pack(push, 1)
13 struct SpriteObject 13 struct SpriteObject
14 { 14 {
15 inline bool AttachedToActor() const {return uAttributes & OBJECT_ATTACHED_TO_ACTOR;} 15 inline bool AttachedToActor() const {return uAttributes & OBJECT_ATTACHED_TO_ACTOR;}
50 #pragma pack(pop) 50 #pragma pack(pop)
51 51
52 52
53 53
54 extern size_t uNumSpriteObjects; 54 extern size_t uNumSpriteObjects;
55 extern SpriteObject pSpriteObjects[1000]; 55 extern SpriteObject pSpriteObjects[MAX_SPRITE_OBJECTS];