Added some array utils.
This commit is contained in:
@ -45,6 +45,7 @@
|
||||
#include "poker/strings.h"
|
||||
|
||||
// Utility Objects
|
||||
#include "util/array.h"
|
||||
#include "util/list.h"
|
||||
#include "util/math.h"
|
||||
#include "util/rand.h"
|
@ -45,6 +45,7 @@ typedef struct {
|
||||
// Rendering assets
|
||||
texture_t bodyTexture;
|
||||
primitive_t bodyPrimitive;
|
||||
|
||||
texture_t faceTexture;
|
||||
primitive_t facePrimitive;
|
||||
primitive_t facePrimitive;
|
||||
} pokerplayer_t;
|
18
include/dawn/util/array.h
Normal file
18
include/dawn/util/array.h
Normal file
@ -0,0 +1,18 @@
|
||||
/**
|
||||
* Copyright (c) 2021 Dominic Masters
|
||||
*
|
||||
* This software is released under the MIT License.
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "../libs.h"
|
||||
|
||||
/**
|
||||
* Definition of a callback that is used to sort an array.
|
||||
*
|
||||
* @param left The left element in the array.
|
||||
* @param right The right element in the array.
|
||||
* @return -1 for Left priority, 1 for Right and 0 for Equal.
|
||||
*/
|
||||
typedef int32_t *arraysort_t(void const*, void const*);
|
Reference in New Issue
Block a user