Score, PinbalTable, PinballComponent v1

Placeholders for T piball component classes.
This commit is contained in:
oz committed 2020-11-01 18:45:29 +03:00
1 parent c55f6e5b98
commit 5e94b5b513
78 files changed
+1239 -41

No files matched your search

+12 -10
View File
@@ -1,12 +1,12 @@
#pragma once
struct __declspec(align(4)) objlist_struct1
struct objlist_struct1
{
int Size;
int Count;
int Array[1];
void* Array[1];
};
static_assert(sizeof(objlist_struct1) == 12, "Wrong size of objlist_struct1");
class objlist_class
{
@@ -15,13 +15,15 @@ public:
~objlist_class();
void Add(void* value);
void Grow();
int Delete(int value);
int Delete(void* value);
void* Get(int index);
int Count() const { return !ListPtr ? 0 : ListPtr->Count; }
int Size() const { return !ListPtr ? 0 : ListPtr->Size; }
private:
objlist_struct1* ListPtr;
int GrowSize;
objlist_struct1* objlist_new(int sizeInt);
int objlist_add_object(objlist_struct1 *ptrToStruct, int value);
objlist_struct1* objlist_grow(objlist_struct1 *ptrToStruct, int growSize);
int objlist_delete_object(objlist_struct1 *ptrToStruct, int value);
};
static objlist_struct1* objlist_new(int sizeInt);
static int objlist_add_object(objlist_struct1* ptrToStruct, void* value);
static objlist_struct1* objlist_grow(objlist_struct1* ptrToStruct, int growSize);
static int objlist_delete_object(objlist_struct1* ptrToStruct, void* value);
};