Tiberian Technologies Scripts Reference Revision: 9000
Loading...
Searching...
No Matches
cScTextObj.h
1/* Renegade Scripts.dll
2 Copyright 2013 Tiberian Technologies
3
4 This file is part of the Renegade scripts.dll
5 The Renegade scripts.dll is free software; you can redistribute it and/or modify it under
6 the terms of the GNU General Public License as published by the Free
7 Software Foundation; either version 2, or (at your option) any later
8 version. See the file COPYING for more details.
9 In addition, an exemption is given to allow Run Time Dynamic Linking of this code with any closed source module that does not contain code covered by this licence.
10 Only the source code to the module(s) containing the licenced code has to be released.
11*/
12#ifndef TT_INCLUDE__CSCTEXTOBJ_H
13#define TT_INCLUDE__CSCTEXTOBJ_H
14
15
16
17#include "cNetEvent.h"
18
19#include "engine_string.h"
20#include "engine_ttdef.h"
21
22
23
24class cScTextObj :
25 public cNetEvent
26{
27
28public:
29
30 int senderId; // 06B4
31 int receiverId; // 06B8
32 TextMessageEnum type; // 06BC
33 WideStringClass message; // 06C0
34 bool popup; // 06C4
35
36
37public:
38
39 cScTextObj();
40 ~cScTextObj();
41 void Init(const WideStringClass& message, TextMessageEnum type, bool popup, int senderId, int receiverId, bool dodirtybit = true, bool doact = true);
42 SCRIPTS_API void Set_Dirty_Bit_For_Team(DIRTY_BIT dirtyBits, int teamId);
43
44 virtual uint Get_Network_Class_ID() const;
45 virtual void Import_Creation(BitStreamClass& stream);
46 virtual void Export_Creation(BitStreamClass& stream);
47 virtual void Act();
48
49}; // 06C8
50
51#endif