Files
Cesarus85--ringfall-mjolnir-vr/source/structures/cluster_partitions.h
T
Berthalamewandpunpckhdq eb93ce635e wip objects.c work (#12)
* wip objects.c work

* objects_disconnect_from_structure_bsp

* match more functions

* more objects work

* objects_update work

- 93.42% matching

* match matrix4x3_transform_point

* more objects work

- fix duplicate symbol name at 1870800

* match object_choose_random_change_colors

* match object_update

* objects_garbage_collection work

* match object_set_position

* more object work

* match objects_update

* more object work

* match object_select_random_region_permutations_by_variant

* objects_in_sphere work

99.90% match

* object name list calls

* match objects_in_sphere

* misc matches

* match structure_bsp_definitions object

* match objects_in_clusters_by_indices

* more object work

* match `edit_text_handle_key`

* mark edit_text as matching

* misc changes

- match get_next_character
- match data section in objects.c

* object_export_function_values work

* match object_compute_function_values

* match object_get_orientation

* added functions and adjust formatting

* fix profile macros

* formatting changes

* more formatting

* more formatting

---------

Co-authored-by: punpckhdq <121350336+punpckhdq@users.noreply.github.com>
2026-02-15 01:05:45 +00:00

49 lines
1.6 KiB
C

/*
CLUSTER_PARTITIONS.H
header included in hcex build.
*/
#ifndef __CLUSTER_PARTITIONS_H
#define __CLUSTER_PARTITIONS_H
#pragma once
/* ---------- constants */
/* ---------- macros */
/* ---------- structures */
struct cluster_partition
{
long *cluster_first_data_references;
struct data_array *data_reference_data;
struct data_array *cluster_reference_data;
};
/* ---------- prototypes/CLUSTER_PARTITIONS.C */
void cluster_partition_new(struct cluster_partition *partition, char const *name);
void cluster_partition_make_valid(struct cluster_partition *partition);
void cluster_partition_make_invalid(struct cluster_partition *partition);
void cluster_partition_delete(struct cluster_partition *partition);
void cluster_partition_reconnect(
struct cluster_partition *partition,
long datum_index,
long *first_cluster_reference,
real_point3d const *position,
float radius,
struct location const *location);
void cluster_partition_disconnect(struct cluster_partition *partition, long datum_index, long *first_cluster_reference);
long cluster_partition_get_first_datum(struct cluster_partition const *partition, long *reference_index, short cluster_index);
long cluster_partition_get_next_datum(struct cluster_partition const *partition, long *reference_index);
long cluster_partition_get_first_cluster(struct cluster_partition const *partition, long *reference_index, long first_cluster_reference);
long cluster_partition_get_next_cluster(struct cluster_partition const *partition, long *reference_index);
/* ---------- globals */
/* ---------- public code */
#endif // __CLUSTER_PARTITIONS_H