CORECORECORE
  • Home
  • Events
  • Wiki
  • Changelog
  • About Us

Wiki

README
Basics
FaQ
Lore
My First Core Bot
Tips and Tricks

Action Execution Order
Action Position Limits
Bombs
Configs
Cooldowns
Getter Filtering
Playing Against Others
Website Setup

⚙️ startGame()
🧩 s_game

⚙️ action_attack()
⚙️ action_build()
⚙️ action_createUnit()
⚙️ action_move()
⚙️ action_pathfind()
⚙️ action_transferGems()

⚙️ get_unitConfig()
⚙️ print_config_game()
⚙️ print_config_unit()
⚙️ print_config()
🧩 s_config
🧩 s_unit_config

⚙️ get_obj_filter_nearest()
⚙️ get_obj_from_id()
⚙️ get_obj_from_pos()
⚙️ get_objs_filter_count()
⚙️ get_objs_filter()

⚙️ print_obj()
⚙️ print_objs()
🔢 e_build_type
🔢 e_obj_type
🔢 e_unit_type
🧩 s_obj
🧩 s_pos

⚙️ function core_get_unitConfig(...)

Last updated: 11/17/2025

URL

https://github.com/42core-team/monorepo/blob/dev/client_lib/src/public/get.c#L23

Description

Get the unit config for a specific unit type.

More Info on configs

Signature

t_unit_config *core_get_unitConfig(t_unit_type type);

Parameters

  • t_unit_type type: The type of unit to get the config for

Return

  • t_unit_config *: The unit config or NULL if no such unit type or unit config exists.

Examples

t_unit_config *uconf = core_get_unitConfig(UNIT_MINER);
if (ft_get_core_own()->s_core.gems >= uconf->cost)
{
	core_action_createUnit(UNIT_MINER);
}

Related

  • 🧩 struct s_unit_config
  • 🔢 enum e_unit_type
  • Configs Documentation
CORECORE

CORE Game is a competitive coding challenge where you design and program your own bots to battle it out in a dynamic 2D arena.

Quick Links

HomeEventsWikiChangelogAbout Us

Connect

Status PageGitHubReport an issue

© 2025 CORE Game. All rights reserved.

ImpressumDatenschutz