You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
76 lines
1.7 KiB
C
76 lines
1.7 KiB
C
//:Header:1, "_font", 3b940006
|
|
//
|
|
// File: llgfx_stilemap.h
|
|
//
|
|
// G A M E.O.N.E - LOW LEVEL LIB V1.0
|
|
// Copyright (C) 2001 LEVEL ONE ENTERTAINMENT,
|
|
// Licensed under the terms of LGPL.
|
|
//:---------------------------------------------------------------------------
|
|
//:Description
|
|
//
|
|
// Beschreibt einen Zeichensatz - Grafikbuffer
|
|
//
|
|
//:-----------------------------------------------------------------------------
|
|
|
|
#if !defined(LLGFX_STILEMAP_INCLUDED)
|
|
#define LLGFX_STILEMAP_INCLUDED
|
|
|
|
|
|
/************************************************************************/
|
|
/* TILEMAP FILE */
|
|
/************************************************************************/
|
|
/*
|
|
|
|
0x00 'M','0' // 2bytes Kennung
|
|
0x02
|
|
{
|
|
short,short,short,short; // x1,y1,x2,y2 position
|
|
|
|
[name] // Optional Name des Tiles
|
|
|
|
char 0x00; // \0 fix
|
|
|
|
[char 0x00]; // gesetzt damit nächster Struct an wortgrenze liegt
|
|
|
|
} * (0-n) // wiederholt sich bis Ende kennung
|
|
|
|
0xXXX
|
|
short 0xFFFF; // Ende Kennung, Minus Werte für position = ungültig
|
|
|
|
|
|
*/
|
|
|
|
|
|
//;------------------[ tilemap file ]---------------------
|
|
struct _tilemap
|
|
{
|
|
TxU16 magic;
|
|
TxU16 start;
|
|
};
|
|
|
|
|
|
|
|
//:Custom
|
|
typedef struct _tilemap s_tilemap;
|
|
typedef struct _tilemap llgfx_sTILEMAP;
|
|
//:End Custom
|
|
|
|
|
|
/************************************************************************/
|
|
/* TILE LIST */
|
|
/************************************************************************/
|
|
//struct _tilelist_entry
|
|
//{
|
|
// llgfx_id id; // gfx_id
|
|
// char * name; // Name des tiles
|
|
//};
|
|
|
|
//:Custom
|
|
//typedef struct _tilelist_entry s_tiles;
|
|
//typedef struct _tilelist_entry llgfx_sTILES;
|
|
//:End Custom
|
|
|
|
|
|
#endif // LLGFX_stilemap_INCLUDED
|
|
|