Tiberian Technologies Scripts Reference Revision: 9000
Loading...
Searching...
No Matches
engine_def.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 SCRIPTS_INCLUDE__ENGINE_DEF_H
13#define SCRIPTS_INCLUDE__ENGINE_DEF_H
14#include "scripts.h"
15
16class DefinitionClass;
17const char SCRIPTS_API *Get_Definition_Name(unsigned long id); //Convert a definition/preset ID into a name
18int SCRIPTS_API Get_Definition_ID(const char *name); //Convert a definition/preset name into an ID
19DefinitionClass SCRIPTS_API *Find_Named_Definition(const char *name); //Find a DefinitionClass given its name
20DefinitionClass SCRIPTS_API *Find_Definition(unsigned long id); //Find a DefinitionClass given its ID
21unsigned long SCRIPTS_API Get_Definition_Class_ID(const char *name); //get the class ID of a definition (matches the #defines above)
22DefinitionClass SCRIPTS_API *Get_Phys_Definition(GameObject *obj); //Get a DefinitionClass for the physics class given a PhysicalGameObj
23bool SCRIPTS_API Is_Valid_Preset_ID(unsigned long ID); //Is this a valid preset id
24bool SCRIPTS_API Is_Valid_Preset(const char *Preset); //Is this a valid preset name
25
26#endif