Tiberian Technologies Scripts Reference Revision: 9000
Loading...
Searching...
No Matches
TransitionGameObjDef.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_TRANSITIONGAMEOBJDEF_H
13#define TT_INCLUDE_TRANSITIONGAMEOBJDEF_H
14#include "OBBoxClass.h"
15#include "BaseGameObjDef.h"
16class TransitionDataClass
17{
18public:
19 enum StyleType {
20 LADDER_EXIT_TOP,
21 LADDER_EXIT_BOTTOM,
22 LADDER_ENTER_TOP,
23 LADDER_ENTER_BOTTOM,
24 LEGACY_VEHICLE_ENTER_0,
25 LEGACY_VEHICLE_ENTER_1,
26 LEGACY_VEHICLE_EXIT_0,
27 LEGACY_VEHICLE_EXIT_1,
28 VEHICLE_ENTER,
29 VEHICLE_EXIT,
30 };
31 StyleType Type; // 0000
32 OBBoxClass TriggerZone; // 0004
33 StringClass AnimationName; // 0040
34 Matrix3D CharacterTransform; // 0044
35 TransitionDataClass() : Type(LADDER_EXIT_TOP)
36 {
37 }
38 bool Save(ChunkSaveClass &csave);
39 bool Load(ChunkLoadClass &cload);
40 StyleType Get_Type() const {return Type;}
41}; // 0074
42
43class TransitionGameObjDef : public BaseGameObjDef {
44public:
45 TransitionGameObjDef() {};
46 ~TransitionGameObjDef();
47 const PersistFactoryClass &Get_Factory() const;
48 bool Save(ChunkSaveClass &csave);
49 bool Load(ChunkLoadClass &cload);
50 uint32 Get_Class_ID() const;
51 PersistClass *Create() const;
52 void Free_Transition_List();
53 DynamicVectorClass<TransitionDataClass *> &Get_Transitions() {return Transitions;}
54 const DynamicVectorClass<TransitionDataClass *> &Get_Transitions() const {return Transitions;}
55#ifdef DDBEDIT
56 virtual void Dump (FileClass &file);
57#endif
58private:
59 DynamicVectorClass<TransitionDataClass *> Transitions;
60 friend class PresetDump;
61};
62
63#endif