<commit_before><commit_msg>Beginning of CES implementation.<commit_after>// ces.h, Component-Entity-System header

#ifndef __COMPONENT_H
#define __COMPONENT_H

typedef struct ComponentLocation
{
   int Y;
   int X;

} ComponentLocation;

typedef struct ComponentHealth
{
   int Health;

} ComponentHealth

typedef struct ComponentAttack
{
   int Strength;

} ComponentAttack;

typedef struct ComponentAppearance
{
   char Appearance;

} ComponentAppearance;

typedef enum
{
   COMPONENT_NONE       = 0,
   COMPONENT_LOCATION   = 1 << 1,
   COMPONENT_HEALTH     = 1 << 2,
   COMPONENT_ATTACK     = 1 << 3,
   COMPONENT_APPEARANCE = 1 << 4,

} Component;


#define MAX_ENTITIES   30

typedef struct World
{
   int mask[ MAX_ENTITIES ];

   ComponentLocation     location[ MAX_ENTITIES ];
   ComponentHealth       health[ MAX_ENTITIES ];
   ComponentAttack       attack[ MAX_ENTITIES ];
   ComponentAppearance   appearance[ MAX_ENTITIES ];

} World;

#endif // __COMPONENT_H

{'fraction_non_alphanumeric': 0.07613168724279835, 'fraction_numerical': 0.01131687242798354, 'mean_word_length': 3.589622641509434, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5775880', 'n_tokens_mistral': 338, 'n_tokens_neox': 316, 'n_words': 78}