mirror of
https://github.com/Cesarus85/ringfall-mjolnir-vr.git
synced 2026-10-23 21:00:31 +02:00
55 lines
1.2 KiB
C
55 lines
1.2 KiB
C
/*
|
|
FOG_DEFINITIONS.H
|
|
|
|
header included in hcex build.
|
|
*/
|
|
|
|
#ifndef __FOG_DEFINITIONS_H
|
|
#define __FOG_DEFINITIONS_H
|
|
#pragma once
|
|
|
|
/* ---------- headers */
|
|
|
|
#include "math/real_math.h"
|
|
#include "tag_files/tag_groups.h"
|
|
|
|
/* ---------- constants */
|
|
|
|
enum
|
|
{
|
|
FOG_TAG = 'fog ',
|
|
};
|
|
|
|
/* ---------- macros */
|
|
|
|
#define fog_definition_get(index) ((struct fog_definition *)tag_get(FOG_TAG, (index)))
|
|
|
|
/* ---------- structures */
|
|
|
|
struct fog_definition
|
|
{
|
|
byte flags;
|
|
byte unused1[0x73];
|
|
real plane_distance;
|
|
byte unused78[0x88];
|
|
long background_sound_index;
|
|
struct tag_reference sound_environment;
|
|
};
|
|
|
|
typedef char fog_definition_size_assert[
|
|
sizeof(struct fog_definition) == 0x114 ? 1 : -1];
|
|
typedef char fog_definition_plane_distance_offset_assert[
|
|
offsetof(struct fog_definition, plane_distance) == 0x74 ? 1 : -1];
|
|
typedef char fog_definition_background_sound_offset_assert[
|
|
offsetof(struct fog_definition, background_sound_index) == 0x100 ? 1 : -1];
|
|
typedef char fog_definition_sound_environment_offset_assert[
|
|
offsetof(struct fog_definition, sound_environment) == 0x104 ? 1 : -1];
|
|
|
|
/* ---------- prototypes/EXAMPLE.C */
|
|
|
|
/* ---------- globals */
|
|
|
|
/* ---------- public code */
|
|
|
|
#endif // __FOG_DEFINITIONS_H
|