mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-25 03:29:58 -07:00
Rename plugins to external
This commit is contained in:
22
applications/external/game_2048/array_utils.h
vendored
Normal file
22
applications/external/game_2048/array_utils.h
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
void reverse_array(int length, uint8_t arr[length]);
|
||||
|
||||
bool shift_array_to_left(int length, uint8_t arr[length], uint8_t from_index, uint8_t offset);
|
||||
|
||||
void get_column_from_array(
|
||||
int rows,
|
||||
int cols,
|
||||
uint8_t arr[rows][cols],
|
||||
uint8_t column_index,
|
||||
uint8_t* out);
|
||||
|
||||
void set_column_to_array(
|
||||
int rows,
|
||||
int cols,
|
||||
uint8_t arr[rows][cols],
|
||||
uint8_t column_index,
|
||||
uint8_t* src);
|
||||
Reference in New Issue
Block a user