project_files/hwc/rtl/Types.h
author unc0rr
Sat, 27 Dec 2014 22:09:31 +0300
branch0.9.21
changeset 10721 9b789de8e5df
parent 10015 4feced261c68
permissions -rw-r--r--
Workaround bug (each time losing room master status, even when joining mutliple rooms, new instance of NetAmmoSchemeModel created, receiving schemeConfig and modifying its 43rd member, thus the last model which accepts this signal has the string cut down several times, workaround creates copy of qstringlist to avoid modifying shared message instance. Proper fix would delete unneeded instances of NetAmmoSchemeModel, but who cares)

#ifndef _TYPES_H_
#define _TYPES_H_

#include "pas2c.h"

/*
 * Not very useful currently
 */

typedef double TDate;
typedef double TTime;
typedef double TDateTime;
typedef string255 TMonthNameArray[13];
typedef string255 TWeekNameArray[8];

typedef struct {
    Byte CurrencyFormat;
    Byte NegCurrFormat;
    Char ThousandSeparator;
    Char DecimalSeparator;
    Byte CurrencyDecimals;
    Char DateSeparator;
    Char TimeSeparator;
    Char ListSeparator;
    string255 CurrencyString;
    string255 ShortDateFormat;
    string255 LongDateFormat;
    string255 TimeAMString;
    string255 TimePMString;
    string255 ShortTimeFormat;
    string255 LongTimeFormat;
    TMonthNameArray ShortMonthNames;
    TMonthNameArray LongMonthNames;
    TWeekNameArray ShortDayNames;
    TWeekNameArray LongDayNames;
    Word TwoDigitYearCenturyWindow;
}TFormatSettings;

#endif