2021-11-01 18:55:13 +00:00
|
|
|
#pragma once
|
|
|
|
#include "system.h"
|
|
|
|
|
2022-08-01 09:19:52 +00:00
|
|
|
#define ENTITY_ACTION_VELOCITY_THRESHOLD 0.05f
|
|
|
|
|
2021-11-01 18:55:13 +00:00
|
|
|
uint64_t entity_spawn(uint16_t class_id /* 0 = no streaming */);
|
|
|
|
void entity_batch_despawn(uint64_t *ids, size_t num_ids);
|
|
|
|
void entity_despawn(uint64_t ent_id);
|
2022-08-01 09:28:54 +00:00
|
|
|
void entity_set_position(uint64_t ent_id, float x, float y);
|
2022-08-01 09:19:52 +00:00
|
|
|
|
2022-08-13 06:43:15 +00:00
|
|
|
uint64_t entity_spawn_id(uint16_t id);
|
|
|
|
|
2022-08-01 09:19:52 +00:00
|
|
|
// NOTE(zaklaus): action-based entity stream throttling
|
|
|
|
void entity_wake(uint64_t ent_id);
|
|
|
|
void entity_update_action_timers();
|
|
|
|
bool entity_can_stream(uint64_t ent_id);
|
2022-08-09 14:46:23 +00:00
|
|
|
|