Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/simulation2/serialization/SerializedScriptTypes.h
/* Copyright (C) 2015 Wildfire Games. | /* Copyright (C) 2020 Wildfire Games. | ||||
* This file is part of 0 A.D. | * This file is part of 0 A.D. | ||||
* | * | ||||
* 0 A.D. is free software: you can redistribute it and/or modify | * 0 A.D. is free software: you can redistribute it and/or modify | ||||
* it under the terms of the GNU General Public License as published by | * it under the terms of the GNU General Public License as published by | ||||
* the Free Software Foundation, either version 2 of the License, or | * the Free Software Foundation, either version 2 of the License, or | ||||
* (at your option) any later version. | * (at your option) any later version. | ||||
* | * | ||||
* 0 A.D. is distributed in the hope that it will be useful, | * 0 A.D. is distributed in the hope that it will be useful, | ||||
Show All 16 Lines | enum | ||||
SCRIPT_TYPE_OBJECT = 3, // standard Object prototype | SCRIPT_TYPE_OBJECT = 3, // standard Object prototype | ||||
SCRIPT_TYPE_STRING = 4, | SCRIPT_TYPE_STRING = 4, | ||||
SCRIPT_TYPE_INT = 5, | SCRIPT_TYPE_INT = 5, | ||||
SCRIPT_TYPE_DOUBLE = 6, | SCRIPT_TYPE_DOUBLE = 6, | ||||
SCRIPT_TYPE_BOOLEAN = 7, | SCRIPT_TYPE_BOOLEAN = 7, | ||||
SCRIPT_TYPE_BACKREF = 8, | SCRIPT_TYPE_BACKREF = 8, | ||||
SCRIPT_TYPE_TYPED_ARRAY = 9, // ArrayBufferView subclasses - see below | SCRIPT_TYPE_TYPED_ARRAY = 9, // ArrayBufferView subclasses - see below | ||||
SCRIPT_TYPE_ARRAY_BUFFER = 10, // ArrayBuffer containing actual typed array data (may be shared by multiple views) | SCRIPT_TYPE_ARRAY_BUFFER = 10, // ArrayBuffer containing actual typed array data (may be shared by multiple views) | ||||
SCRIPT_TYPE_OBJECT_PROTOTYPE = 11, // user-defined prototype | SCRIPT_TYPE_OBJECT_PROTOTYPE = 11, // user-defined prototype - currently unused | ||||
SCRIPT_TYPE_OBJECT_NUMBER = 12, // standard Number class | SCRIPT_TYPE_OBJECT_NUMBER = 12, // standard Number class | ||||
SCRIPT_TYPE_OBJECT_STRING = 13, // standard String class | SCRIPT_TYPE_OBJECT_STRING = 13, // standard String class | ||||
SCRIPT_TYPE_OBJECT_BOOLEAN = 14, // standard Boolean class | SCRIPT_TYPE_OBJECT_BOOLEAN = 14, // standard Boolean class | ||||
SCRIPT_TYPE_OBJECT_MAP = 15, // Map class | SCRIPT_TYPE_OBJECT_MAP = 15, // Map class | ||||
SCRIPT_TYPE_OBJECT_SET = 16 // Set class | SCRIPT_TYPE_OBJECT_SET = 16 // Set class | ||||
}; | }; | ||||
// ArrayBufferView subclasses (to avoid relying directly on the JSAPI enums) | // ArrayBufferView subclasses (to avoid relying directly on the JSAPI enums) | ||||
Show All 14 Lines |
Wildfire Games · Phabricator