Pyrogenesis
13997
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
source
simulation2
serialization
SerializedScriptTypes.h
Go to the documentation of this file.
1
/* Copyright (C) 2013 Wildfire Games.
2
* This file is part of 0 A.D.
3
*
4
* 0 A.D. is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation, either version 2 of the License, or
7
* (at your option) any later version.
8
*
9
* 0 A.D. is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with 0 A.D. If not, see <http://www.gnu.org/licenses/>.
16
*/
17
18
#ifndef INCLUDED_SERIALIZEDSCRIPTTYPES
19
#define INCLUDED_SERIALIZEDSCRIPTTYPES
20
21
enum
22
{
23
SCRIPT_TYPE_VOID
= 0,
24
SCRIPT_TYPE_NULL
= 1,
25
SCRIPT_TYPE_ARRAY
= 2,
26
SCRIPT_TYPE_OBJECT
= 3,
// standard Object prototype
27
SCRIPT_TYPE_STRING
= 4,
28
SCRIPT_TYPE_INT
= 5,
29
SCRIPT_TYPE_DOUBLE
= 6,
30
SCRIPT_TYPE_BOOLEAN
= 7,
31
SCRIPT_TYPE_BACKREF
= 8,
32
SCRIPT_TYPE_TYPED_ARRAY
= 9,
// ArrayBufferView subclasses - see below
33
SCRIPT_TYPE_ARRAY_BUFFER
= 10,
// ArrayBuffer containing actual typed array data (may be shared by multiple views)
34
SCRIPT_TYPE_OBJECT_PROTOTYPE
= 11,
// user-defined prototype
35
SCRIPT_TYPE_OBJECT_NUMBER
= 12,
// standard Number class
36
SCRIPT_TYPE_OBJECT_STRING
= 13,
// standard String class
37
SCRIPT_TYPE_OBJECT_BOOLEAN
= 14
// standard Boolean class
38
};
39
40
// ArrayBufferView subclasses (to avoid relying directly on the JSAPI enums)
41
enum
42
{
43
SCRIPT_TYPED_ARRAY_INT8
= 0,
44
SCRIPT_TYPED_ARRAY_UINT8
= 1,
45
SCRIPT_TYPED_ARRAY_INT16
= 2,
46
SCRIPT_TYPED_ARRAY_UINT16
= 3,
47
SCRIPT_TYPED_ARRAY_INT32
= 4,
48
SCRIPT_TYPED_ARRAY_UINT32
= 5,
49
SCRIPT_TYPED_ARRAY_FLOAT32
= 6,
50
SCRIPT_TYPED_ARRAY_FLOAT64
= 7,
51
SCRIPT_TYPED_ARRAY_UINT8_CLAMPED
= 8
52
};
53
54
#endif // INCLUDED_SERIALIZEDSCRIPTTYPES
SCRIPT_TYPED_ARRAY_UINT8_CLAMPED
Definition:
SerializedScriptTypes.h:51
SCRIPT_TYPE_OBJECT_PROTOTYPE
Definition:
SerializedScriptTypes.h:34
SCRIPT_TYPED_ARRAY_FLOAT64
Definition:
SerializedScriptTypes.h:50
SCRIPT_TYPE_OBJECT_BOOLEAN
Definition:
SerializedScriptTypes.h:37
SCRIPT_TYPE_OBJECT_STRING
Definition:
SerializedScriptTypes.h:36
SCRIPT_TYPE_ARRAY
Definition:
SerializedScriptTypes.h:25
SCRIPT_TYPE_VOID
Definition:
SerializedScriptTypes.h:23
SCRIPT_TYPED_ARRAY_UINT8
Definition:
SerializedScriptTypes.h:44
SCRIPT_TYPE_BACKREF
Definition:
SerializedScriptTypes.h:31
SCRIPT_TYPED_ARRAY_INT32
Definition:
SerializedScriptTypes.h:47
SCRIPT_TYPED_ARRAY_UINT16
Definition:
SerializedScriptTypes.h:46
SCRIPT_TYPED_ARRAY_UINT32
Definition:
SerializedScriptTypes.h:48
SCRIPT_TYPE_NULL
Definition:
SerializedScriptTypes.h:24
SCRIPT_TYPE_ARRAY_BUFFER
Definition:
SerializedScriptTypes.h:33
SCRIPT_TYPE_OBJECT_NUMBER
Definition:
SerializedScriptTypes.h:35
SCRIPT_TYPE_INT
Definition:
SerializedScriptTypes.h:28
SCRIPT_TYPE_STRING
Definition:
SerializedScriptTypes.h:27
SCRIPT_TYPED_ARRAY_INT16
Definition:
SerializedScriptTypes.h:45
SCRIPT_TYPED_ARRAY_INT8
Definition:
SerializedScriptTypes.h:43
SCRIPT_TYPE_OBJECT
Definition:
SerializedScriptTypes.h:26
SCRIPT_TYPE_DOUBLE
Definition:
SerializedScriptTypes.h:29
SCRIPT_TYPED_ARRAY_FLOAT32
Definition:
SerializedScriptTypes.h:49
SCRIPT_TYPE_TYPED_ARRAY
Definition:
SerializedScriptTypes.h:32
SCRIPT_TYPE_BOOLEAN
Definition:
SerializedScriptTypes.h:30
Generated on Mon Oct 14 2013 00:58:09 for Pyrogenesis by
1.8.5