naev 0.12.6
dev_uniedit.h
1/*
2 * See Licensing and Copyright notice in naev.h
3 */
4#pragma once
5
6#include "space.h"
7#include "unidiff.h"
8
9#define HIDE_DEFAULT_JUMP 1.0
10#define RADIUS_DEFAULT 15e3
11#define DUST_DENSITY_DEFAULT \
12 400
14
15void uniedit_open( unsigned int wid_unused, const char *unused );
16void uniedit_saveError( void );
17void uniedit_selectText( void );
18char *uniedit_nameFilter( const char *name );
19void uniedit_options( unsigned int wid_unused, const char *unused );
20
21void uniedit_renderMap( double bx, double by, double w, double h, double x,
22 double y, double zoom, double r );
23
24/* For when working in diff mode. */
25extern int uniedit_diffMode;
26void uniedit_diffAdd( UniHunk_t *hunk );
27void uniedit_diffCreateSysNone( const StarSystem *sys, UniHunkType_t type );
28void uniedit_diffCreateSysStr( const StarSystem *sys, UniHunkType_t type,
29 char *str );
30void uniedit_diffCreateSysStrAttr( const StarSystem *sys, UniHunkType_t type,
31 char *str, UniAttribute_t *attr );
32void uniedit_diffCreateSysInt( const StarSystem *sys, UniHunkType_t type,
33 int data );
34void uniedit_diffCreateSysIntAttr( const StarSystem *sys, UniHunkType_t type,
35 int data, UniAttribute_t *attr );
36void uniedit_diffCreateSysFloat( const StarSystem *sys, UniHunkType_t type,
37 double fdata );
38void uniedit_diffCreateSysFloatAttr( const StarSystem *sys, UniHunkType_t type,
39 double fdata, UniAttribute_t *attr );
void uniedit_open(unsigned int wid_unused, const char *unused)
Opens the system editor interface.
void uniedit_selectText(void)
Sets the selected system text.
Represents a single hunk in the diff.
Definition unidiff.h:162