2017-10-30 23:44:40 +01:00
|
|
|
#ifndef _LIBRW_TYPES_HPP_
|
|
|
|
#define _LIBRW_TYPES_HPP_
|
2013-07-04 07:56:58 +02:00
|
|
|
|
|
|
|
#include <cstdint>
|
2016-09-09 22:13:21 +02:00
|
|
|
#include <map>
|
2014-07-28 03:27:55 +02:00
|
|
|
#include <memory>
|
2018-06-21 16:49:05 +02:00
|
|
|
#include <rw/debug.hpp>
|
2016-09-09 22:13:21 +02:00
|
|
|
#include <string>
|
2013-08-11 22:50:29 +02:00
|
|
|
|
2015-04-12 20:47:47 +02:00
|
|
|
#define RW_USING(feature) 1 == feature
|
|
|
|
|
2014-06-13 22:54:17 +02:00
|
|
|
#define NO_WATER_INDEX 48
|
|
|
|
#define WATER_LQ_DATA_SIZE 64
|
|
|
|
#define WATER_HQ_DATA_SIZE 128
|
|
|
|
#define WATER_WORLD_SIZE 4096.f
|
|
|
|
#define WATER_HQ_DISTANCE 128.f
|
2014-06-14 19:48:14 +02:00
|
|
|
#define WATER_SCALE 0.05f
|
|
|
|
#define WATER_HEIGHT 0.5f
|
2015-01-28 02:55:35 +01:00
|
|
|
#define WATER_BUOYANCY_K 1500.f
|
|
|
|
#define WATER_BUOYANCY_C 1000.f
|
2014-06-13 22:54:17 +02:00
|
|
|
|
2015-04-05 22:35:45 +02:00
|
|
|
/**
|
|
|
|
* These control the size of grid that is applied to
|
|
|
|
* AI Graph and culling.
|
|
|
|
*/
|
|
|
|
#define WORLD_GRID_SIZE (4000l)
|
|
|
|
#define WORLD_CELL_SIZE (100l)
|
2016-09-09 22:13:21 +02:00
|
|
|
#define WORLD_GRID_WIDTH (WORLD_GRID_SIZE / WORLD_CELL_SIZE)
|
|
|
|
#define WORLD_GRID_CELLS (WORLD_GRID_WIDTH * WORLD_GRID_WIDTH)
|
2015-04-05 22:35:45 +02:00
|
|
|
|
2013-08-11 22:50:29 +02:00
|
|
|
#endif
|