Browse Source

VectorBuffer, MemoryBuffer: use byte type for data | AS: add bindings for byte type

1vanK 3 years ago
parent
commit
b9c5b1d6cb
59 changed files with 381 additions and 365 deletions
  1. 1 1
      Source/Samples/15_Navigation/Navigation.h
  2. 1 1
      Source/Samples/16_Chat/Chat.cpp
  3. 1 1
      Source/Samples/39_CrowdNavigation/CrowdNavigation.h
  4. 2 2
      Source/Samples/Utilities2D/Mover.cpp
  5. 2 2
      Source/Samples/Utilities2D/Mover.h
  6. 6 0
      Source/Tools/BindingGenerator/ASUtils.cpp
  7. 10 10
      Source/Urho3D/AngelScript/Generated_Classes.cpp
  8. 7 4
      Source/Urho3D/AngelScript/Generated_GlobalFunctions.cpp
  9. 194 192
      Source/Urho3D/AngelScript/Generated_Members.h
  10. 1 0
      Source/Urho3D/AngelScript/Manual.cpp
  11. 2 2
      Source/Urho3D/AngelScript/Manual_IO.cpp
  12. 8 8
      Source/Urho3D/AngelScript/ScriptInstance.cpp
  13. 6 6
      Source/Urho3D/AngelScript/ScriptInstance.h
  14. 4 4
      Source/Urho3D/Core/StringUtils.cpp
  15. 2 2
      Source/Urho3D/Core/StringUtils.h
  16. 11 11
      Source/Urho3D/Core/Variant.cpp
  17. 12 12
      Source/Urho3D/Core/Variant.h
  18. 2 2
      Source/Urho3D/Graphics/AnimatedModel.cpp
  19. 2 2
      Source/Urho3D/Graphics/AnimatedModel.h
  20. 2 2
      Source/Urho3D/Graphics/AnimationController.cpp
  21. 2 2
      Source/Urho3D/Graphics/AnimationController.h
  22. 2 2
      Source/Urho3D/Graphics/BillboardSet.cpp
  23. 2 2
      Source/Urho3D/Graphics/BillboardSet.h
  24. 2 2
      Source/Urho3D/Graphics/CustomGeometry.cpp
  25. 2 2
      Source/Urho3D/Graphics/CustomGeometry.h
  26. 2 2
      Source/Urho3D/Graphics/DecalSet.cpp
  27. 2 2
      Source/Urho3D/Graphics/DecalSet.h
  28. 1 1
      Source/Urho3D/Graphics/Graphics.cpp
  29. 1 1
      Source/Urho3D/Graphics/Material.cpp
  30. 2 2
      Source/Urho3D/IO/Deserializer.cpp
  31. 1 1
      Source/Urho3D/IO/Deserializer.h
  32. 9 9
      Source/Urho3D/IO/MemoryBuffer.cpp
  33. 4 4
      Source/Urho3D/IO/MemoryBuffer.h
  34. 1 1
      Source/Urho3D/IO/Serializer.cpp
  35. 1 1
      Source/Urho3D/IO/Serializer.h
  36. 6 6
      Source/Urho3D/IO/VectorBuffer.cpp
  37. 6 6
      Source/Urho3D/IO/VectorBuffer.h
  38. 4 0
      Source/Urho3D/Math/MathDefs.h
  39. 4 4
      Source/Urho3D/Navigation/DynamicNavigationMesh.cpp
  40. 4 4
      Source/Urho3D/Navigation/DynamicNavigationMesh.h
  41. 4 4
      Source/Urho3D/Navigation/NavigationMesh.cpp
  42. 4 4
      Source/Urho3D/Navigation/NavigationMesh.h
  43. 7 7
      Source/Urho3D/Network/Connection.cpp
  44. 3 3
      Source/Urho3D/Network/Connection.h
  45. 1 1
      Source/Urho3D/Network/Network.cpp
  46. 1 1
      Source/Urho3D/Network/Network.h
  47. 2 2
      Source/Urho3D/Physics/RigidBody.cpp
  48. 2 2
      Source/Urho3D/Physics/RigidBody.h
  49. 2 2
      Source/Urho3D/Physics2D/CollisionChain2D.cpp
  50. 2 2
      Source/Urho3D/Physics2D/CollisionChain2D.h
  51. 2 2
      Source/Urho3D/Physics2D/CollisionPolygon2D.cpp
  52. 2 2
      Source/Urho3D/Physics2D/CollisionPolygon2D.h
  53. 1 1
      Source/Urho3D/Physics2D/PhysicsWorld2D.cpp
  54. 1 1
      Source/Urho3D/Physics2D/PhysicsWorld2D.h
  55. 2 2
      Source/Urho3D/Resource/XMLElement.cpp
  56. 1 1
      Source/Urho3D/Resource/XMLElement.h
  57. 4 4
      Source/Urho3D/Scene/Node.cpp
  58. 4 4
      Source/Urho3D/Scene/Node.h
  59. 2 2
      Source/Urho3D/Scene/Serializable.cpp

+ 1 - 1
Source/Samples/15_Navigation/Navigation.h

@@ -151,7 +151,7 @@ private:
     /// Streaming distance.
     /// Streaming distance.
     int streamingDistance_;
     int streamingDistance_;
     /// Tile data.
     /// Tile data.
-    HashMap<IntVector2, Vector<unsigned char>> tileData_;
+    HashMap<IntVector2, Vector<byte>> tileData_;
     /// Added tiles.
     /// Added tiles.
     HashSet<IntVector2> addedTiles_;
     HashSet<IntVector2> addedTiles_;
 };
 };

+ 1 - 1
Source/Samples/16_Chat/Chat.cpp

@@ -242,7 +242,7 @@ void Chat::HandleNetworkMessage(StringHash /*eventType*/, VariantMap& eventData)
     int msgID = eventData[P_MESSAGEID].GetInt();
     int msgID = eventData[P_MESSAGEID].GetInt();
     if (msgID == MSG_CHAT)
     if (msgID == MSG_CHAT)
     {
     {
-        const Vector<unsigned char>& data = eventData[P_DATA].GetBuffer();
+        const Vector<byte>& data = eventData[P_DATA].GetBuffer();
         // Use a MemoryBuffer to read the message data so that there is no unnecessary copying
         // Use a MemoryBuffer to read the message data so that there is no unnecessary copying
         MemoryBuffer msg(data);
         MemoryBuffer msg(data);
         String text = msg.ReadString();
         String text = msg.ReadString();

+ 1 - 1
Source/Samples/39_CrowdNavigation/CrowdNavigation.h

@@ -155,7 +155,7 @@ private:
     /// Streaming distance.
     /// Streaming distance.
     int streamingDistance_{2};
     int streamingDistance_{2};
     /// Tile data.
     /// Tile data.
-    HashMap<IntVector2, Vector<unsigned char>> tileData_;
+    HashMap<IntVector2, Vector<byte>> tileData_;
     /// Added tiles.
     /// Added tiles.
     HashSet<IntVector2> addedTiles_;
     HashSet<IntVector2> addedTiles_;
     /// Flag for drawing debug geometry.
     /// Flag for drawing debug geometry.

+ 2 - 2
Source/Samples/Utilities2D/Mover.cpp

@@ -38,7 +38,7 @@ void Mover::RegisterObject(Context* context)
     URHO3D_ATTRIBUTE("Flip Animation", flip_, 0.0f, AM_DEFAULT);
     URHO3D_ATTRIBUTE("Flip Animation", flip_, 0.0f, AM_DEFAULT);
 }
 }
 
 
-void Mover::SetPathAttr(const Vector<unsigned char>& value)
+void Mover::SetPathAttr(const Vector<byte>& value)
 {
 {
     if (value.Empty())
     if (value.Empty())
         return;
         return;
@@ -48,7 +48,7 @@ void Mover::SetPathAttr(const Vector<unsigned char>& value)
         path_.Push(buffer.ReadVector2());
         path_.Push(buffer.ReadVector2());
 }
 }
 
 
-Vector<unsigned char> Mover::GetPathAttr() const
+Vector<byte> Mover::GetPathAttr() const
 {
 {
     VectorBuffer buffer;
     VectorBuffer buffer;
 
 

+ 2 - 2
Source/Samples/Utilities2D/Mover.h

@@ -26,9 +26,9 @@ public:
     /// Handle scene update. Called by LogicComponent base class.
     /// Handle scene update. Called by LogicComponent base class.
     void Update(float timeStep) override;
     void Update(float timeStep) override;
     /// Return path attribute.
     /// Return path attribute.
-    Vector<unsigned char> GetPathAttr() const;
+    Vector<byte> GetPathAttr() const;
     /// Set path attribute.
     /// Set path attribute.
-    void SetPathAttr(const Vector<unsigned char>& value);
+    void SetPathAttr(const Vector<byte>& value);
 
 
     /// Path.
     /// Path.
     Vector<Vector2> path_;
     Vector<Vector2> path_;

+ 6 - 0
Source/Tools/BindingGenerator/ASUtils.cpp

@@ -70,6 +70,12 @@ string CppPrimitiveTypeToAS(const string& cppType)
     if (cppType == "c32")
     if (cppType == "c32")
         return "c32";
         return "c32";
 
 
+    if (cppType == "byte")
+        return "byte";
+
+    if (cppType == "hash16")
+        return "hash16";
+
     if (cppType == "hash32")
     if (cppType == "hash32")
         return "hash32";
         return "hash32";
 
 

+ 10 - 10
Source/Urho3D/AngelScript/Generated_Classes.cpp

@@ -2813,10 +2813,10 @@ static void Variant__Variant_constspStringamp(Variant* _ptr, const String& value
     new(_ptr) Variant(value);
     new(_ptr) Variant(value);
 }
 }
 
 
-// Variant::Variant(const Vector<unsigned char>& value)
-static void Variant__Variant_constspVectorlesunsignedspchargreamp(Variant* _ptr, CScriptArray* value_conv)
+// Variant::Variant(const Vector<byte>& value)
+static void Variant__Variant_constspVectorlesbytegreamp(Variant* _ptr, CScriptArray* value_conv)
 {
 {
-    Vector<unsigned char> value = ArrayToVector<unsigned char>(value_conv);
+    Vector<byte> value = ArrayToVector<byte>(value_conv);
     new(_ptr) Variant(value);
     new(_ptr) Variant(value);
 }
 }
 
 
@@ -2963,8 +2963,8 @@ static void Register_Variant(asIScriptEngine* engine)
     engine->RegisterObjectBehaviour("Variant", asBEHAVE_CONSTRUCT, "void f(const Color&in)", AS_FUNCTION_OBJFIRST(Variant__Variant_constspColoramp), AS_CALL_CDECL_OBJFIRST);
     engine->RegisterObjectBehaviour("Variant", asBEHAVE_CONSTRUCT, "void f(const Color&in)", AS_FUNCTION_OBJFIRST(Variant__Variant_constspColoramp), AS_CALL_CDECL_OBJFIRST);
     // Variant::Variant(const String& value)
     // Variant::Variant(const String& value)
     engine->RegisterObjectBehaviour("Variant", asBEHAVE_CONSTRUCT, "void f(const String&in)", AS_FUNCTION_OBJFIRST(Variant__Variant_constspStringamp), AS_CALL_CDECL_OBJFIRST);
     engine->RegisterObjectBehaviour("Variant", asBEHAVE_CONSTRUCT, "void f(const String&in)", AS_FUNCTION_OBJFIRST(Variant__Variant_constspStringamp), AS_CALL_CDECL_OBJFIRST);
-    // Variant::Variant(const Vector<unsigned char>& value)
-    engine->RegisterObjectBehaviour("Variant", asBEHAVE_CONSTRUCT, "void f(Array<uint8>@+)", AS_FUNCTION_OBJFIRST(Variant__Variant_constspVectorlesunsignedspchargreamp), AS_CALL_CDECL_OBJFIRST);
+    // Variant::Variant(const Vector<byte>& value)
+    engine->RegisterObjectBehaviour("Variant", asBEHAVE_CONSTRUCT, "void f(Array<byte>@+)", AS_FUNCTION_OBJFIRST(Variant__Variant_constspVectorlesbytegreamp), AS_CALL_CDECL_OBJFIRST);
     // Variant::Variant(const VectorBuffer& value)
     // Variant::Variant(const VectorBuffer& value)
     engine->RegisterObjectBehaviour("Variant", asBEHAVE_CONSTRUCT, "void f(const VectorBuffer&in)", AS_FUNCTION_OBJFIRST(Variant__Variant_constspVectorBufferamp), AS_CALL_CDECL_OBJFIRST);
     engine->RegisterObjectBehaviour("Variant", asBEHAVE_CONSTRUCT, "void f(const VectorBuffer&in)", AS_FUNCTION_OBJFIRST(Variant__Variant_constspVectorBufferamp), AS_CALL_CDECL_OBJFIRST);
     // Variant::Variant(const ResourceRef& value)
     // Variant::Variant(const ResourceRef& value)
@@ -4847,10 +4847,10 @@ static void Register_UI(asIScriptEngine* engine)
     #endif
     #endif
 }
 }
 
 
-// explicit VectorBuffer::VectorBuffer(const Vector<u8>& data)
-static void VectorBuffer__VectorBuffer_constspVectorlesu8greamp(VectorBuffer* _ptr, CScriptArray* data_conv)
+// explicit VectorBuffer::VectorBuffer(const Vector<byte>& data)
+static void VectorBuffer__VectorBuffer_constspVectorlesbytegreamp(VectorBuffer* _ptr, CScriptArray* data_conv)
 {
 {
-    Vector<u8> data = ArrayToVector<u8>(data_conv);
+    Vector<byte> data = ArrayToVector<byte>(data_conv);
     new(_ptr) VectorBuffer(data);
     new(_ptr) VectorBuffer(data);
 }
 }
 
 
@@ -4866,8 +4866,8 @@ static void Register_VectorBuffer(asIScriptEngine* engine)
     // VectorBuffer::VectorBuffer(const void* data, i32 size)
     // VectorBuffer::VectorBuffer(const void* data, i32 size)
     // Error: type "const void*" can not automatically bind
     // Error: type "const void*" can not automatically bind
 
 
-    // explicit VectorBuffer::VectorBuffer(const Vector<u8>& data)
-    engine->RegisterObjectBehaviour("VectorBuffer", asBEHAVE_CONSTRUCT, "void f(Array<uint8>@+)", AS_FUNCTION_OBJFIRST(VectorBuffer__VectorBuffer_constspVectorlesu8greamp), AS_CALL_CDECL_OBJFIRST);
+    // explicit VectorBuffer::VectorBuffer(const Vector<byte>& data)
+    engine->RegisterObjectBehaviour("VectorBuffer", asBEHAVE_CONSTRUCT, "void f(Array<byte>@+)", AS_FUNCTION_OBJFIRST(VectorBuffer__VectorBuffer_constspVectorlesbytegreamp), AS_CALL_CDECL_OBJFIRST);
     // VectorBuffer::VectorBuffer(Deserializer& source, i32 size)
     // VectorBuffer::VectorBuffer(Deserializer& source, i32 size)
     engine->RegisterObjectBehaviour("VectorBuffer", asBEHAVE_CONSTRUCT, "void f(Deserializer&, int)", AS_FUNCTION_OBJFIRST(VectorBuffer__VectorBuffer_Deserializeramp_i32), AS_CALL_CDECL_OBJFIRST);
     engine->RegisterObjectBehaviour("VectorBuffer", asBEHAVE_CONSTRUCT, "void f(Deserializer&, int)", AS_FUNCTION_OBJFIRST(VectorBuffer__VectorBuffer_Deserializeramp_i32), AS_CALL_CDECL_OBJFIRST);
 
 

+ 7 - 4
Source/Urho3D/AngelScript/Generated_GlobalFunctions.cpp

@@ -376,6 +376,9 @@ void ASRegisterGeneratedGlobalFunctions(asIScriptEngine* engine)
     // template <class T> int RoundToInt(T x) | File: ../Math/MathDefs.h
     // template <class T> int RoundToInt(T x) | File: ../Math/MathDefs.h
     engine->RegisterGlobalFunction("int RoundToInt(float)", AS_FUNCTIONPR(RoundToInt, (float), int), AS_CALL_CDECL);
     engine->RegisterGlobalFunction("int RoundToInt(float)", AS_FUNCTIONPR(RoundToInt, (float), int), AS_CALL_CDECL);
 
 
+    // constexpr hash32 SDBMHash(hash32 hash, byte b) | File: ../Math/MathDefs.h
+    // Not registered because have @nobind mark
+
     // constexpr hash32 SDBMHash(hash32 hash, u8 c) | File: ../Math/MathDefs.h
     // constexpr hash32 SDBMHash(hash32 hash, u8 c) | File: ../Math/MathDefs.h
     engine->RegisterGlobalFunction("hash32 SDBMHash(hash32, uint8)", AS_FUNCTIONPR(SDBMHash, (hash32, u8), hash32), AS_CALL_CDECL);
     engine->RegisterGlobalFunction("hash32 SDBMHash(hash32, uint8)", AS_FUNCTIONPR(SDBMHash, (hash32, u8), hash32), AS_CALL_CDECL);
 
 
@@ -412,11 +415,11 @@ void ASRegisterGeneratedGlobalFunctions(asIScriptEngine* engine)
     // float StableRandom(float seed) | File: ../Math/Vector2.h
     // float StableRandom(float seed) | File: ../Math/Vector2.h
     engine->RegisterGlobalFunction("float StableRandom(float)", AS_FUNCTIONPR(StableRandom, (float), float), AS_CALL_CDECL);
     engine->RegisterGlobalFunction("float StableRandom(float)", AS_FUNCTIONPR(StableRandom, (float), float), AS_CALL_CDECL);
 
 
-    // void StringToBuffer(Vector<unsigned char>& dest, const String& source) | File: ../Core/StringUtils.h
-    // Error: type "Vector<unsigned char>&" can not automatically bind
+    // void StringToBuffer(Vector<byte>& dest, const String& source) | File: ../Core/StringUtils.h
+    // Error: type "Vector<byte>&" can not automatically bind
 
 
-    // void StringToBuffer(Vector<unsigned char>& dest, const char* source) | File: ../Core/StringUtils.h
-    // Error: type "Vector<unsigned char>&" can not automatically bind
+    // void StringToBuffer(Vector<byte>& dest, const char* source) | File: ../Core/StringUtils.h
+    // Error: type "Vector<byte>&" can not automatically bind
 
 
     // template <class T> T Tan(T angle) | File: ../Math/MathDefs.h
     // template <class T> T Tan(T angle) | File: ../Math/MathDefs.h
     engine->RegisterGlobalFunction("float Tan(float)", AS_FUNCTIONPR(Tan, (float), float), AS_CALL_CDECL);
     engine->RegisterGlobalFunction("float Tan(float)", AS_FUNCTIONPR(Tan, (float), float), AS_CALL_CDECL);

+ 194 - 192
Source/Urho3D/AngelScript/Generated_Members.h

@@ -1297,11 +1297,11 @@ template <class T> void RegisterMembers_DepthValue(asIScriptEngine* engine, cons
     #endif
     #endif
 }
 }
 
 
-// Vector<u8> Deserializer::ReadBuffer()
-template <class T> CScriptArray* Deserializer_Vectorlesu8gre_ReadBuffer_void_template(T* _ptr)
+// Vector<byte> Deserializer::ReadBuffer()
+template <class T> CScriptArray* Deserializer_Vectorlesbytegre_ReadBuffer_void_template(T* _ptr)
 {
 {
-    Vector<u8> result = _ptr->ReadBuffer();
-    return VectorToArray(result, "Array<uint8>");
+    Vector<byte> result = _ptr->ReadBuffer();
+    return VectorToArray(result, "Array<byte>");
 }
 }
 
 
 // StringVector Deserializer::ReadStringVector()
 // StringVector Deserializer::ReadStringVector()
@@ -1316,8 +1316,6 @@ template <class T> void RegisterMembers_Deserializer(asIScriptEngine* engine, co
 {
 {
     // virtual i32 Deserializer::Read(void* dest, i32 size) = 0
     // virtual i32 Deserializer::Read(void* dest, i32 size) = 0
     // Error: type "void*" can not automatically bind
     // Error: type "void*" can not automatically bind
-    // byte Deserializer::ReadByte()
-    // Error: type "byte" can not automatically bind
     // VariantVector Deserializer::ReadVariantVector()
     // VariantVector Deserializer::ReadVariantVector()
     // Error: type "VariantVector" can not automatically bind
     // Error: type "VariantVector" can not automatically bind
 
 
@@ -1347,8 +1345,11 @@ template <class T> void RegisterMembers_Deserializer(asIScriptEngine* engine, co
     // BoundingBox Deserializer::ReadBoundingBox()
     // BoundingBox Deserializer::ReadBoundingBox()
     engine->RegisterObjectMethod(className, "BoundingBox ReadBoundingBox()", AS_METHODPR(T, ReadBoundingBox, (), BoundingBox), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "BoundingBox ReadBoundingBox()", AS_METHODPR(T, ReadBoundingBox, (), BoundingBox), AS_CALL_THISCALL);
 
 
-    // Vector<u8> Deserializer::ReadBuffer()
-    engine->RegisterObjectMethod(className, "Array<uint8>@ ReadBuffer()", AS_FUNCTION_OBJFIRST(Deserializer_Vectorlesu8gre_ReadBuffer_void_template<Deserializer>), AS_CALL_CDECL_OBJFIRST);
+    // Vector<byte> Deserializer::ReadBuffer()
+    engine->RegisterObjectMethod(className, "Array<byte>@ ReadBuffer()", AS_FUNCTION_OBJFIRST(Deserializer_Vectorlesbytegre_ReadBuffer_void_template<Deserializer>), AS_CALL_CDECL_OBJFIRST);
+
+    // byte Deserializer::ReadByte()
+    engine->RegisterObjectMethod(className, "byte ReadByte()", AS_METHODPR(T, ReadByte, (), byte), AS_CALL_THISCALL);
 
 
     // Color Deserializer::ReadColor()
     // Color Deserializer::ReadColor()
     engine->RegisterObjectMethod(className, "Color ReadColor()", AS_METHODPR(T, ReadColor, (), Color), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "Color ReadColor()", AS_METHODPR(T, ReadColor, (), Color), AS_CALL_THISCALL);
@@ -4382,10 +4383,10 @@ template <class T> void RegisterMembers_ScreenModeParams(asIScriptEngine* engine
     #endif
     #endif
 }
 }
 
 
-// bool Serializer::WriteBuffer(const Vector<unsigned char>& value)
-template <class T> bool Serializer_bool_WriteBuffer_constspVectorlesunsignedspchargreamp_template(T* _ptr, CScriptArray* value_conv)
+// bool Serializer::WriteBuffer(const Vector<byte>& value)
+template <class T> bool Serializer_bool_WriteBuffer_constspVectorlesbytegreamp_template(T* _ptr, CScriptArray* value_conv)
 {
 {
-    Vector<unsigned char> value = ArrayToVector<unsigned char>(value_conv);
+    Vector<byte> value = ArrayToVector<byte>(value_conv);
     bool result = _ptr->WriteBuffer(value);
     bool result = _ptr->WriteBuffer(value);
     return result;
     return result;
 }
 }
@@ -4403,8 +4404,6 @@ template <class T> void RegisterMembers_Serializer(asIScriptEngine* engine, cons
 {
 {
     // virtual i32 Serializer::Write(const void* data, i32 size) = 0
     // virtual i32 Serializer::Write(const void* data, i32 size) = 0
     // Error: type "const void*" can not automatically bind
     // Error: type "const void*" can not automatically bind
-    // bool Serializer::WriteByte(byte value)
-    // Error: type "byte" can not automatically bind
     // bool Serializer::WriteVariantVector(const VariantVector& value)
     // bool Serializer::WriteVariantVector(const VariantVector& value)
     // Error: type "const VariantVector&" can not automatically bind
     // Error: type "const VariantVector&" can not automatically bind
 
 
@@ -4414,8 +4413,11 @@ template <class T> void RegisterMembers_Serializer(asIScriptEngine* engine, cons
     // bool Serializer::WriteBoundingBox(const BoundingBox& value)
     // bool Serializer::WriteBoundingBox(const BoundingBox& value)
     engine->RegisterObjectMethod(className, "bool WriteBoundingBox(const BoundingBox&in)", AS_METHODPR(T, WriteBoundingBox, (const BoundingBox&), bool), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "bool WriteBoundingBox(const BoundingBox&in)", AS_METHODPR(T, WriteBoundingBox, (const BoundingBox&), bool), AS_CALL_THISCALL);
 
 
-    // bool Serializer::WriteBuffer(const Vector<unsigned char>& value)
-    engine->RegisterObjectMethod(className, "bool WriteBuffer(Array<uint8>@+)", AS_FUNCTION_OBJFIRST(Serializer_bool_WriteBuffer_constspVectorlesunsignedspchargreamp_template<Serializer>), AS_CALL_CDECL_OBJFIRST);
+    // bool Serializer::WriteBuffer(const Vector<byte>& value)
+    engine->RegisterObjectMethod(className, "bool WriteBuffer(Array<byte>@+)", AS_FUNCTION_OBJFIRST(Serializer_bool_WriteBuffer_constspVectorlesbytegreamp_template<Serializer>), AS_CALL_CDECL_OBJFIRST);
+
+    // bool Serializer::WriteByte(byte value)
+    engine->RegisterObjectMethod(className, "bool WriteByte(byte)", AS_METHODPR(T, WriteByte, (byte), bool), AS_CALL_THISCALL);
 
 
     // bool Serializer::WriteColor(const Color& value)
     // bool Serializer::WriteColor(const Color& value)
     engine->RegisterObjectMethod(className, "bool WriteColor(const Color&in)", AS_METHODPR(T, WriteColor, (const Color&), bool), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "bool WriteColor(const Color&in)", AS_METHODPR(T, WriteColor, (const Color&), bool), AS_CALL_THISCALL);
@@ -5552,11 +5554,11 @@ template <class T> void RegisterMembers_VAnimKeyFrame(asIScriptEngine* engine, c
     #endif
     #endif
 }
 }
 
 
-// const Vector<unsigned char>& Variant::GetBuffer() const
-template <class T> CScriptArray* Variant_constspVectorlesunsignedspchargreamp_GetBuffer_void_template(T* _ptr)
+// const Vector<byte>& Variant::GetBuffer() const
+template <class T> CScriptArray* Variant_constspVectorlesbytegreamp_GetBuffer_void_template(T* _ptr)
 {
 {
-    const Vector<unsigned char>& result = _ptr->GetBuffer();
-    return VectorToArray(result, "Array<uint8>");
+    const Vector<byte>& result = _ptr->GetBuffer();
+    return VectorToArray(result, "Array<byte>");
 }
 }
 
 
 // const StringVector& Variant::GetStringVector() const
 // const StringVector& Variant::GetStringVector() const
@@ -5566,10 +5568,10 @@ template <class T> CScriptArray* Variant_constspStringVectoramp_GetStringVector_
     return VectorToArray<String>(result, "Array<String>");
     return VectorToArray<String>(result, "Array<String>");
 }
 }
 
 
-// Variant& Variant::operator =(const Vector<unsigned char>& rhs)
-template <class T> Variant& Variant_Variantamp_operatoreq_constspVectorlesunsignedspchargreamp_template(T* _ptr, CScriptArray* rhs_conv)
+// Variant& Variant::operator =(const Vector<byte>& rhs)
+template <class T> Variant& Variant_Variantamp_operatoreq_constspVectorlesbytegreamp_template(T* _ptr, CScriptArray* rhs_conv)
 {
 {
-    Vector<unsigned char> rhs = ArrayToVector<unsigned char>(rhs_conv);
+    Vector<byte> rhs = ArrayToVector<byte>(rhs_conv);
     Variant& result = _ptr->operator=(rhs);
     Variant& result = _ptr->operator=(rhs);
     return result;
     return result;
 }
 }
@@ -5582,10 +5584,10 @@ template <class T> Variant& Variant_Variantamp_operatoreq_constspStringVectoramp
     return result;
     return result;
 }
 }
 
 
-// bool Variant::operator ==(const Vector<unsigned char>& rhs) const
-template <class T> bool Variant_bool_operatoreqeq_constspVectorlesunsignedspchargreamp_template(T* _ptr, CScriptArray* rhs_conv)
+// bool Variant::operator ==(const Vector<byte>& rhs) const
+template <class T> bool Variant_bool_operatoreqeq_constspVectorlesbytegreamp_template(T* _ptr, CScriptArray* rhs_conv)
 {
 {
-    Vector<unsigned char> rhs = ArrayToVector<unsigned char>(rhs_conv);
+    Vector<byte> rhs = ArrayToVector<byte>(rhs_conv);
     bool result = _ptr->operator==(rhs);
     bool result = _ptr->operator==(rhs);
     return result;
     return result;
 }
 }
@@ -5605,8 +5607,8 @@ template <class T> void RegisterMembers_Variant(asIScriptEngine* engine, const c
     // Error: type "const char*" can not automatically bind
     // Error: type "const char*" can not automatically bind
     // void Variant::FromString(VariantType type, const char* value)
     // void Variant::FromString(VariantType type, const char* value)
     // Error: type "const char*" can not automatically bind
     // Error: type "const char*" can not automatically bind
-    // Vector<unsigned char>* Variant::GetBufferPtr()
-    // Error: type "Vector<unsigned char>*" can not automatically bind
+    // Vector<byte>* Variant::GetBufferPtr()
+    // Error: type "Vector<byte>*" can not automatically bind
     // CustomVariantValue* Variant::GetCustomVariantValuePtr()
     // CustomVariantValue* Variant::GetCustomVariantValuePtr()
     // Error: type "CustomVariantValue" can not automatically bind bacause have @nobind mark
     // Error: type "CustomVariantValue" can not automatically bind bacause have @nobind mark
     // const CustomVariantValue* Variant::GetCustomVariantValuePtr() const
     // const CustomVariantValue* Variant::GetCustomVariantValuePtr() const
@@ -5649,7 +5651,7 @@ template <class T> void RegisterMembers_Variant(asIScriptEngine* engine, const c
     // Only operator == is needed
     // Only operator == is needed
     // bool Variant::operator !=(const String& rhs) const
     // bool Variant::operator !=(const String& rhs) const
     // Only operator == is needed
     // Only operator == is needed
-    // bool Variant::operator !=(const Vector<unsigned char>& rhs) const
+    // bool Variant::operator !=(const Vector<byte>& rhs) const
     // Only operator == is needed
     // Only operator == is needed
     // bool Variant::operator !=(const VectorBuffer& rhs) const
     // bool Variant::operator !=(const VectorBuffer& rhs) const
     // Only operator == is needed
     // Only operator == is needed
@@ -5714,8 +5716,8 @@ template <class T> void RegisterMembers_Variant(asIScriptEngine* engine, const c
     // bool Variant::GetBool() const
     // bool Variant::GetBool() const
     engine->RegisterObjectMethod(className, "bool GetBool() const", AS_METHODPR(T, GetBool, () const, bool), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "bool GetBool() const", AS_METHODPR(T, GetBool, () const, bool), AS_CALL_THISCALL);
 
 
-    // const Vector<unsigned char>& Variant::GetBuffer() const
-    engine->RegisterObjectMethod(className, "Array<uint8>@ GetBuffer() const", AS_FUNCTION_OBJFIRST(Variant_constspVectorlesunsignedspchargreamp_GetBuffer_void_template<Variant>), AS_CALL_CDECL_OBJFIRST);
+    // const Vector<byte>& Variant::GetBuffer() const
+    engine->RegisterObjectMethod(className, "Array<byte>@ GetBuffer() const", AS_FUNCTION_OBJFIRST(Variant_constspVectorlesbytegreamp_GetBuffer_void_template<Variant>), AS_CALL_CDECL_OBJFIRST);
 
 
     // c32 Variant::GetC32() const
     // c32 Variant::GetC32() const
     engine->RegisterObjectMethod(className, "c32 GetC32() const", AS_METHODPR(T, GetC32, () const, c32), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "c32 GetC32() const", AS_METHODPR(T, GetC32, () const, c32), AS_CALL_THISCALL);
@@ -5862,8 +5864,8 @@ template <class T> void RegisterMembers_Variant(asIScriptEngine* engine, const c
     // Variant& Variant::operator =(const String& rhs)
     // Variant& Variant::operator =(const String& rhs)
     engine->RegisterObjectMethod(className, "Variant& opAssign(const String&in)", AS_METHODPR(T, operator=, (const String&), Variant&), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "Variant& opAssign(const String&in)", AS_METHODPR(T, operator=, (const String&), Variant&), AS_CALL_THISCALL);
 
 
-    // Variant& Variant::operator =(const Vector<unsigned char>& rhs)
-    engine->RegisterObjectMethod(className, "Variant& opAssign(Array<uint8>@+)", AS_FUNCTION_OBJFIRST(Variant_Variantamp_operatoreq_constspVectorlesunsignedspchargreamp_template<Variant>), AS_CALL_CDECL_OBJFIRST);
+    // Variant& Variant::operator =(const Vector<byte>& rhs)
+    engine->RegisterObjectMethod(className, "Variant& opAssign(Array<byte>@+)", AS_FUNCTION_OBJFIRST(Variant_Variantamp_operatoreq_constspVectorlesbytegreamp_template<Variant>), AS_CALL_CDECL_OBJFIRST);
 
 
     // Variant& Variant::operator =(const VectorBuffer& rhs)
     // Variant& Variant::operator =(const VectorBuffer& rhs)
     engine->RegisterObjectMethod(className, "Variant& opAssign(const VectorBuffer&in)", AS_METHODPR(T, operator=, (const VectorBuffer&), Variant&), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "Variant& opAssign(const VectorBuffer&in)", AS_METHODPR(T, operator=, (const VectorBuffer&), Variant&), AS_CALL_THISCALL);
@@ -5946,8 +5948,8 @@ template <class T> void RegisterMembers_Variant(asIScriptEngine* engine, const c
     // bool Variant::operator ==(const String& rhs) const
     // bool Variant::operator ==(const String& rhs) const
     engine->RegisterObjectMethod(className, "bool opEquals(const String&in) const", AS_METHODPR(T, operator==, (const String&) const, bool), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "bool opEquals(const String&in) const", AS_METHODPR(T, operator==, (const String&) const, bool), AS_CALL_THISCALL);
 
 
-    // bool Variant::operator ==(const Vector<unsigned char>& rhs) const
-    engine->RegisterObjectMethod(className, "bool opEquals(Array<uint8>@+) const", AS_FUNCTION_OBJFIRST(Variant_bool_operatoreqeq_constspVectorlesunsignedspchargreamp_template<Variant>), AS_CALL_CDECL_OBJFIRST);
+    // bool Variant::operator ==(const Vector<byte>& rhs) const
+    engine->RegisterObjectMethod(className, "bool opEquals(Array<byte>@+) const", AS_FUNCTION_OBJFIRST(Variant_bool_operatoreqeq_constspVectorlesbytegreamp_template<Variant>), AS_CALL_CDECL_OBJFIRST);
 
 
     // bool Variant::operator ==(const VectorBuffer& rhs) const
     // bool Variant::operator ==(const VectorBuffer& rhs) const
     engine->RegisterObjectMethod(className, "bool opEquals(const VectorBuffer&in) const", AS_METHODPR(T, operator==, (const VectorBuffer&) const, bool), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "bool opEquals(const VectorBuffer&in) const", AS_METHODPR(T, operator==, (const VectorBuffer&) const, bool), AS_CALL_THISCALL);
@@ -6034,7 +6036,7 @@ template <class T> void RegisterMembers_Variant(asIScriptEngine* engine, const c
     // Not registered because template
     // Not registered because template
     // template <> const IntVector3& Variant::Get() const
     // template <> const IntVector3& Variant::Get() const
     // Not registered because template
     // Not registered because template
-    // template <> const Vector<unsigned char>& Variant::Get() const
+    // template <> const Vector<byte>& Variant::Get() const
     // Not registered because template
     // Not registered because template
     // template <> void* Variant::Get() const
     // template <> void* Variant::Get() const
     // Not registered because template
     // Not registered because template
@@ -6076,7 +6078,7 @@ template <class T> void RegisterMembers_Variant(asIScriptEngine* engine, const c
     // Not registered because template
     // Not registered because template
     // template <> IntVector3 Variant::Get() const
     // template <> IntVector3 Variant::Get() const
     // Not registered because template
     // Not registered because template
-    // template <> Vector<unsigned char> Variant::Get() const
+    // template <> Vector<byte> Variant::Get() const
     // Not registered because template
     // Not registered because template
     // template <> Matrix3 Variant::Get() const
     // template <> Matrix3 Variant::Get() const
     // Not registered because template
     // Not registered because template
@@ -6103,8 +6105,8 @@ template <class T> void RegisterMembers_Variant(asIScriptEngine* engine, const c
     // static VariantType Variant::GetTypeFromName(const String& typeName)
     // static VariantType Variant::GetTypeFromName(const String& typeName)
     engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("VariantType GetTypeFromName(const String&in)", AS_FUNCTIONPR(T::GetTypeFromName, (const String&), VariantType), AS_CALL_CDECL);engine->SetDefaultNamespace("");
     engine->SetDefaultNamespace(className);engine->RegisterGlobalFunction("VariantType GetTypeFromName(const String&in)", AS_FUNCTIONPR(T::GetTypeFromName, (const String&), VariantType), AS_CALL_CDECL);engine->SetDefaultNamespace("");
 
 
-    // static const Vector<unsigned char> Variant::emptyBuffer
-    // Error: type "const Vector<unsigned char>" can not automatically bind
+    // static const Vector<byte> Variant::emptyBuffer
+    // Error: type "const Vector<byte>" can not automatically bind
     // static const VariantVector Variant::emptyVariantVector
     // static const VariantVector Variant::emptyVariantVector
     // Error: type "const VariantVector" can not automatically bind
     // Error: type "const VariantVector" can not automatically bind
     // static const StringVector Variant::emptyStringVector
     // static const StringVector Variant::emptyStringVector
@@ -6670,11 +6672,11 @@ template <class T> CScriptArray* XMLElement_VectorlesStringgre_GetAttributeNames
     return VectorToArray<String>(result, "Array<String>");
     return VectorToArray<String>(result, "Array<String>");
 }
 }
 
 
-// Vector<unsigned char> XMLElement::GetBuffer(const String& name) const
-template <class T> CScriptArray* XMLElement_Vectorlesunsignedspchargre_GetBuffer_constspStringamp_template(T* _ptr, const String& name)
+// Vector<byte> XMLElement::GetBuffer(const String& name) const
+template <class T> CScriptArray* XMLElement_Vectorlesbytegre_GetBuffer_constspStringamp_template(T* _ptr, const String& name)
 {
 {
-    Vector<unsigned char> result = _ptr->GetBuffer(name);
-    return VectorToArray(result, "Array<uint8>");
+    Vector<byte> result = _ptr->GetBuffer(name);
+    return VectorToArray(result, "Array<byte>");
 }
 }
 
 
 // StringVector XMLElement::GetStringVector() const
 // StringVector XMLElement::GetStringVector() const
@@ -6778,8 +6780,8 @@ template <class T> void RegisterMembers_XMLElement(asIScriptEngine* engine, cons
     // BoundingBox XMLElement::GetBoundingBox() const
     // BoundingBox XMLElement::GetBoundingBox() const
     engine->RegisterObjectMethod(className, "BoundingBox GetBoundingBox() const", AS_METHODPR(T, GetBoundingBox, () const, BoundingBox), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "BoundingBox GetBoundingBox() const", AS_METHODPR(T, GetBoundingBox, () const, BoundingBox), AS_CALL_THISCALL);
 
 
-    // Vector<unsigned char> XMLElement::GetBuffer(const String& name) const
-    engine->RegisterObjectMethod(className, "Array<uint8>@ GetBuffer(const String&in) const", AS_FUNCTION_OBJFIRST(XMLElement_Vectorlesunsignedspchargre_GetBuffer_constspStringamp_template<XMLElement>), AS_CALL_CDECL_OBJFIRST);
+    // Vector<byte> XMLElement::GetBuffer(const String& name) const
+    engine->RegisterObjectMethod(className, "Array<byte>@ GetBuffer(const String&in) const", AS_FUNCTION_OBJFIRST(XMLElement_Vectorlesbytegre_GetBuffer_constspStringamp_template<XMLElement>), AS_CALL_CDECL_OBJFIRST);
 
 
     // XMLElement XMLElement::GetChild(const String& name = String::EMPTY) const
     // XMLElement XMLElement::GetChild(const String& name = String::EMPTY) const
     engine->RegisterObjectMethod(className, "XMLElement GetChild(const String&in = String::EMPTY) const", AS_METHODPR(T, GetChild, (const String&) const, XMLElement), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "XMLElement GetChild(const String&in = String::EMPTY) const", AS_METHODPR(T, GetChild, (const String&) const, XMLElement), AS_CALL_THISCALL);
@@ -11083,8 +11085,8 @@ template <class T> void RegisterMembers_MemoryBuffer(asIScriptEngine* engine, co
 {
 {
     RegisterMembers_AbstractFile<T>(engine, className);
     RegisterMembers_AbstractFile<T>(engine, className);
 
 
-    // u8* MemoryBuffer::GetData()
-    // Error: type "u8*" can not automatically bind
+    // byte* MemoryBuffer::GetData()
+    // Error: type "byte*" can not automatically bind
 
 
     // bool MemoryBuffer::IsReadOnly()
     // bool MemoryBuffer::IsReadOnly()
     engine->RegisterObjectMethod(className, "bool IsReadOnly()", AS_METHODPR(T, IsReadOnly, (), bool), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "bool IsReadOnly()", AS_METHODPR(T, IsReadOnly, (), bool), AS_CALL_THISCALL);
@@ -12442,17 +12444,17 @@ template <class T> void RegisterMembers_UI(asIScriptEngine* engine, const char*
     #endif
     #endif
 }
 }
 
 
-// const Vector<u8>& VectorBuffer::GetBuffer() const
-template <class T> CScriptArray* VectorBuffer_constspVectorlesu8greamp_GetBuffer_void_template(T* _ptr)
+// const Vector<byte>& VectorBuffer::GetBuffer() const
+template <class T> CScriptArray* VectorBuffer_constspVectorlesbytegreamp_GetBuffer_void_template(T* _ptr)
 {
 {
-    const Vector<u8>& result = _ptr->GetBuffer();
-    return VectorToArray(result, "Array<uint8>");
+    const Vector<byte>& result = _ptr->GetBuffer();
+    return VectorToArray(result, "Array<byte>");
 }
 }
 
 
-// void VectorBuffer::SetData(const Vector<u8>& data)
-template <class T> void VectorBuffer_void_SetData_constspVectorlesu8greamp_template(T* _ptr, CScriptArray* data_conv)
+// void VectorBuffer::SetData(const Vector<byte>& data)
+template <class T> void VectorBuffer_void_SetData_constspVectorlesbytegreamp_template(T* _ptr, CScriptArray* data_conv)
 {
 {
-    Vector<u8> data = ArrayToVector<u8>(data_conv);
+    Vector<byte> data = ArrayToVector<byte>(data_conv);
     _ptr->SetData(data);
     _ptr->SetData(data);
 }
 }
 
 
@@ -12461,24 +12463,24 @@ template <class T> void RegisterMembers_VectorBuffer(asIScriptEngine* engine, co
 {
 {
     RegisterMembers_AbstractFile<T>(engine, className);
     RegisterMembers_AbstractFile<T>(engine, className);
 
 
-    // const u8* VectorBuffer::GetData() const
-    // Error: type "const u8*" can not automatically bind
-    // u8* VectorBuffer::GetModifiableData()
-    // Error: type "u8*" can not automatically bind
+    // const byte* VectorBuffer::GetData() const
+    // Error: type "const byte*" can not automatically bind
+    // byte* VectorBuffer::GetModifiableData()
+    // Error: type "byte*" can not automatically bind
     // void VectorBuffer::SetData(const void* data, i32 size)
     // void VectorBuffer::SetData(const void* data, i32 size)
     // Error: type "const void*" can not automatically bind
     // Error: type "const void*" can not automatically bind
 
 
     // void VectorBuffer::Clear()
     // void VectorBuffer::Clear()
     engine->RegisterObjectMethod(className, "void Clear()", AS_METHODPR(T, Clear, (), void), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "void Clear()", AS_METHODPR(T, Clear, (), void), AS_CALL_THISCALL);
 
 
-    // const Vector<u8>& VectorBuffer::GetBuffer() const
-    engine->RegisterObjectMethod(className, "Array<uint8>@ GetBuffer() const", AS_FUNCTION_OBJFIRST(VectorBuffer_constspVectorlesu8greamp_GetBuffer_void_template<VectorBuffer>), AS_CALL_CDECL_OBJFIRST);
+    // const Vector<byte>& VectorBuffer::GetBuffer() const
+    engine->RegisterObjectMethod(className, "Array<byte>@ GetBuffer() const", AS_FUNCTION_OBJFIRST(VectorBuffer_constspVectorlesbytegreamp_GetBuffer_void_template<VectorBuffer>), AS_CALL_CDECL_OBJFIRST);
 
 
     // void VectorBuffer::Resize(i32 size)
     // void VectorBuffer::Resize(i32 size)
     engine->RegisterObjectMethod(className, "void Resize(int)", AS_METHODPR(T, Resize, (i32), void), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "void Resize(int)", AS_METHODPR(T, Resize, (i32), void), AS_CALL_THISCALL);
 
 
-    // void VectorBuffer::SetData(const Vector<u8>& data)
-    engine->RegisterObjectMethod(className, "void SetData(Array<uint8>@+)", AS_FUNCTION_OBJFIRST(VectorBuffer_void_SetData_constspVectorlesu8greamp_template<VectorBuffer>), AS_CALL_CDECL_OBJFIRST);
+    // void VectorBuffer::SetData(const Vector<byte>& data)
+    engine->RegisterObjectMethod(className, "void SetData(Array<byte>@+)", AS_FUNCTION_OBJFIRST(VectorBuffer_void_SetData_constspVectorlesbytegreamp_template<VectorBuffer>), AS_CALL_CDECL_OBJFIRST);
 
 
     // void VectorBuffer::SetData(Deserializer& source, i32 size)
     // void VectorBuffer::SetData(Deserializer& source, i32 size)
     engine->RegisterObjectMethod(className, "void SetData(Deserializer&, int)", AS_METHODPR(T, SetData, (Deserializer&, i32), void), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "void SetData(Deserializer&, int)", AS_METHODPR(T, SetData, (Deserializer&, i32), void), AS_CALL_THISCALL);
@@ -12928,8 +12930,8 @@ template <class T> void RegisterMembers_Connection(asIScriptEngine* engine, cons
     // Error: type "const SLNet::AddressOrGUID&" can not automatically bind
     // Error: type "const SLNet::AddressOrGUID&" can not automatically bind
     // bool Connection::ProcessMessage(int msgID, MemoryBuffer& buffer)
     // bool Connection::ProcessMessage(int msgID, MemoryBuffer& buffer)
     // Error: type "MemoryBuffer" can not automatically bind bacause have @nobind mark
     // Error: type "MemoryBuffer" can not automatically bind bacause have @nobind mark
-    // void Connection::SendMessage(int msgID, bool reliable, bool inOrder, const unsigned char* data, unsigned numBytes, unsigned contentID = 0)
-    // Error: type "const unsigned char*" can not automatically bind
+    // void Connection::SendMessage(int msgID, bool reliable, bool inOrder, const byte* data, unsigned numBytes, unsigned contentID = 0)
+    // Error: type "const byte*" can not automatically bind
     // void Connection::SetAddressOrGUID(const SLNet::AddressOrGUID& addr)
     // void Connection::SetAddressOrGUID(const SLNet::AddressOrGUID& addr)
     // Error: type "const SLNet::AddressOrGUID&" can not automatically bind
     // Error: type "const SLNet::AddressOrGUID&" can not automatically bind
 
 
@@ -13128,8 +13130,8 @@ template <class T> void RegisterMembers_Network(asIScriptEngine* engine, const c
 {
 {
     RegisterMembers_Object<T>(engine, className);
     RegisterMembers_Object<T>(engine, className);
 
 
-    // void Network::BroadcastMessage(int msgID, bool reliable, bool inOrder, const unsigned char* data, unsigned numBytes, unsigned contentID = 0)
-    // Error: type "const unsigned char*" can not automatically bind
+    // void Network::BroadcastMessage(int msgID, bool reliable, bool inOrder, const byte* data, unsigned numBytes, unsigned contentID = 0)
+    // Error: type "const byte*" can not automatically bind
     // void Network::ClientDisconnected(const SLNet::AddressOrGUID& connection)
     // void Network::ClientDisconnected(const SLNet::AddressOrGUID& connection)
     // Error: type "const SLNet::AddressOrGUID&" can not automatically bind
     // Error: type "const SLNet::AddressOrGUID&" can not automatically bind
     // Connection* Network::GetConnection(const SLNet::AddressOrGUID& connection) const
     // Connection* Network::GetConnection(const SLNet::AddressOrGUID& connection) const
@@ -15524,18 +15526,18 @@ template <class T> CScriptArray* Node_constspVectorlesNodestargreamp_GetDependen
     return VectorToHandleArray(result, "Array<Node@>");
     return VectorToHandleArray(result, "Array<Node@>");
 }
 }
 
 
-// const Vector<unsigned char>& Node::GetNetParentAttr() const
-template <class T> CScriptArray* Node_constspVectorlesunsignedspchargreamp_GetNetParentAttr_void_template(T* _ptr)
+// const Vector<byte>& Node::GetNetParentAttr() const
+template <class T> CScriptArray* Node_constspVectorlesbytegreamp_GetNetParentAttr_void_template(T* _ptr)
 {
 {
-    const Vector<unsigned char>& result = _ptr->GetNetParentAttr();
-    return VectorToArray(result, "Array<uint8>");
+    const Vector<byte>& result = _ptr->GetNetParentAttr();
+    return VectorToArray(result, "Array<byte>");
 }
 }
 
 
-// const Vector<unsigned char>& Node::GetNetRotationAttr() const
-template <class T> CScriptArray* Node_constspVectorlesunsignedspchargreamp_GetNetRotationAttr_void_template(T* _ptr)
+// const Vector<byte>& Node::GetNetRotationAttr() const
+template <class T> CScriptArray* Node_constspVectorlesbytegreamp_GetNetRotationAttr_void_template(T* _ptr)
 {
 {
-    const Vector<unsigned char>& result = _ptr->GetNetRotationAttr();
-    return VectorToArray(result, "Array<uint8>");
+    const Vector<byte>& result = _ptr->GetNetRotationAttr();
+    return VectorToArray(result, "Array<byte>");
 }
 }
 
 
 // const StringVector& Node::GetTags() const
 // const StringVector& Node::GetTags() const
@@ -15545,17 +15547,17 @@ template <class T> CScriptArray* Node_constspStringVectoramp_GetTags_void_templa
     return VectorToArray<String>(result, "Array<String>");
     return VectorToArray<String>(result, "Array<String>");
 }
 }
 
 
-// void Node::SetNetParentAttr(const Vector<unsigned char>& value)
-template <class T> void Node_void_SetNetParentAttr_constspVectorlesunsignedspchargreamp_template(T* _ptr, CScriptArray* value_conv)
+// void Node::SetNetParentAttr(const Vector<byte>& value)
+template <class T> void Node_void_SetNetParentAttr_constspVectorlesbytegreamp_template(T* _ptr, CScriptArray* value_conv)
 {
 {
-    Vector<unsigned char> value = ArrayToVector<unsigned char>(value_conv);
+    Vector<byte> value = ArrayToVector<byte>(value_conv);
     _ptr->SetNetParentAttr(value);
     _ptr->SetNetParentAttr(value);
 }
 }
 
 
-// void Node::SetNetRotationAttr(const Vector<unsigned char>& value)
-template <class T> void Node_void_SetNetRotationAttr_constspVectorlesunsignedspchargreamp_template(T* _ptr, CScriptArray* value_conv)
+// void Node::SetNetRotationAttr(const Vector<byte>& value)
+template <class T> void Node_void_SetNetRotationAttr_constspVectorlesbytegreamp_template(T* _ptr, CScriptArray* value_conv)
 {
 {
-    Vector<unsigned char> value = ArrayToVector<unsigned char>(value_conv);
+    Vector<byte> value = ArrayToVector<byte>(value_conv);
     _ptr->SetNetRotationAttr(value);
     _ptr->SetNetRotationAttr(value);
 }
 }
 
 
@@ -15684,14 +15686,14 @@ template <class T> void RegisterMembers_Node(asIScriptEngine* engine, const char
     // StringHash Node::GetNameHash() const
     // StringHash Node::GetNameHash() const
     engine->RegisterObjectMethod(className, "StringHash GetNameHash() const", AS_METHODPR(T, GetNameHash, () const, StringHash), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "StringHash GetNameHash() const", AS_METHODPR(T, GetNameHash, () const, StringHash), AS_CALL_THISCALL);
 
 
-    // const Vector<unsigned char>& Node::GetNetParentAttr() const
-    engine->RegisterObjectMethod(className, "Array<uint8>@ GetNetParentAttr() const", AS_FUNCTION_OBJFIRST(Node_constspVectorlesunsignedspchargreamp_GetNetParentAttr_void_template<Node>), AS_CALL_CDECL_OBJFIRST);
+    // const Vector<byte>& Node::GetNetParentAttr() const
+    engine->RegisterObjectMethod(className, "Array<byte>@ GetNetParentAttr() const", AS_FUNCTION_OBJFIRST(Node_constspVectorlesbytegreamp_GetNetParentAttr_void_template<Node>), AS_CALL_CDECL_OBJFIRST);
 
 
     // const Vector3& Node::GetNetPositionAttr() const
     // const Vector3& Node::GetNetPositionAttr() const
     engine->RegisterObjectMethod(className, "const Vector3& GetNetPositionAttr() const", AS_METHODPR(T, GetNetPositionAttr, () const, const Vector3&), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "const Vector3& GetNetPositionAttr() const", AS_METHODPR(T, GetNetPositionAttr, () const, const Vector3&), AS_CALL_THISCALL);
 
 
-    // const Vector<unsigned char>& Node::GetNetRotationAttr() const
-    engine->RegisterObjectMethod(className, "Array<uint8>@ GetNetRotationAttr() const", AS_FUNCTION_OBJFIRST(Node_constspVectorlesunsignedspchargreamp_GetNetRotationAttr_void_template<Node>), AS_CALL_CDECL_OBJFIRST);
+    // const Vector<byte>& Node::GetNetRotationAttr() const
+    engine->RegisterObjectMethod(className, "Array<byte>@ GetNetRotationAttr() const", AS_FUNCTION_OBJFIRST(Node_constspVectorlesbytegreamp_GetNetRotationAttr_void_template<Node>), AS_CALL_CDECL_OBJFIRST);
 
 
     // i32 Node::GetNumChildren(bool recursive = false) const
     // i32 Node::GetNumChildren(bool recursive = false) const
     engine->RegisterObjectMethod(className, "int GetNumChildren(bool = false) const", AS_METHODPR(T, GetNumChildren, (bool) const, i32), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "int GetNumChildren(bool = false) const", AS_METHODPR(T, GetNumChildren, (bool) const, i32), AS_CALL_THISCALL);
@@ -15955,14 +15957,14 @@ template <class T> void RegisterMembers_Node(asIScriptEngine* engine, const char
     engine->RegisterObjectMethod(className, "void SetName(const String&in)", AS_METHODPR(T, SetName, (const String&), void), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "void SetName(const String&in)", AS_METHODPR(T, SetName, (const String&), void), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "void set_name(const String&in)", AS_METHODPR(T, SetName, (const String&), void), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "void set_name(const String&in)", AS_METHODPR(T, SetName, (const String&), void), AS_CALL_THISCALL);
 
 
-    // void Node::SetNetParentAttr(const Vector<unsigned char>& value)
-    engine->RegisterObjectMethod(className, "void SetNetParentAttr(Array<uint8>@+)", AS_FUNCTION_OBJFIRST(Node_void_SetNetParentAttr_constspVectorlesunsignedspchargreamp_template<Node>), AS_CALL_CDECL_OBJFIRST);
+    // void Node::SetNetParentAttr(const Vector<byte>& value)
+    engine->RegisterObjectMethod(className, "void SetNetParentAttr(Array<byte>@+)", AS_FUNCTION_OBJFIRST(Node_void_SetNetParentAttr_constspVectorlesbytegreamp_template<Node>), AS_CALL_CDECL_OBJFIRST);
 
 
     // void Node::SetNetPositionAttr(const Vector3& value)
     // void Node::SetNetPositionAttr(const Vector3& value)
     engine->RegisterObjectMethod(className, "void SetNetPositionAttr(const Vector3&in)", AS_METHODPR(T, SetNetPositionAttr, (const Vector3&), void), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "void SetNetPositionAttr(const Vector3&in)", AS_METHODPR(T, SetNetPositionAttr, (const Vector3&), void), AS_CALL_THISCALL);
 
 
-    // void Node::SetNetRotationAttr(const Vector<unsigned char>& value)
-    engine->RegisterObjectMethod(className, "void SetNetRotationAttr(Array<uint8>@+)", AS_FUNCTION_OBJFIRST(Node_void_SetNetRotationAttr_constspVectorlesunsignedspchargreamp_template<Node>), AS_CALL_CDECL_OBJFIRST);
+    // void Node::SetNetRotationAttr(const Vector<byte>& value)
+    engine->RegisterObjectMethod(className, "void SetNetRotationAttr(Array<byte>@+)", AS_FUNCTION_OBJFIRST(Node_void_SetNetRotationAttr_constspVectorlesbytegreamp_template<Node>), AS_CALL_CDECL_OBJFIRST);
 
 
     // void Node::SetParent(Node* parent)
     // void Node::SetParent(Node* parent)
     engine->RegisterObjectMethod(className, "void SetParent(Node@+)", AS_METHODPR(T, SetParent, (Node*), void), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "void SetParent(Node@+)", AS_METHODPR(T, SetParent, (Node*), void), AS_CALL_THISCALL);
@@ -17199,17 +17201,17 @@ template <class T> void RegisterMembers_UIElement(asIScriptEngine* engine, const
     #endif
     #endif
 }
 }
 
 
-// const Vector<unsigned char>& AnimationController::GetNetAnimationsAttr() const
-template <class T> CScriptArray* AnimationController_constspVectorlesunsignedspchargreamp_GetNetAnimationsAttr_void_template(T* _ptr)
+// const Vector<byte>& AnimationController::GetNetAnimationsAttr() const
+template <class T> CScriptArray* AnimationController_constspVectorlesbytegreamp_GetNetAnimationsAttr_void_template(T* _ptr)
 {
 {
-    const Vector<unsigned char>& result = _ptr->GetNetAnimationsAttr();
-    return VectorToArray(result, "Array<uint8>");
+    const Vector<byte>& result = _ptr->GetNetAnimationsAttr();
+    return VectorToArray(result, "Array<byte>");
 }
 }
 
 
-// void AnimationController::SetNetAnimationsAttr(const Vector<unsigned char>& value)
-template <class T> void AnimationController_void_SetNetAnimationsAttr_constspVectorlesunsignedspchargreamp_template(T* _ptr, CScriptArray* value_conv)
+// void AnimationController::SetNetAnimationsAttr(const Vector<byte>& value)
+template <class T> void AnimationController_void_SetNetAnimationsAttr_constspVectorlesbytegreamp_template(T* _ptr, CScriptArray* value_conv)
 {
 {
-    Vector<unsigned char> value = ArrayToVector<unsigned char>(value_conv);
+    Vector<byte> value = ArrayToVector<byte>(value_conv);
     _ptr->SetNetAnimationsAttr(value);
     _ptr->SetNetAnimationsAttr(value);
 }
 }
 
 
@@ -17262,8 +17264,8 @@ template <class T> void RegisterMembers_AnimationController(asIScriptEngine* eng
     // float AnimationController::GetLength(const String& name) const
     // float AnimationController::GetLength(const String& name) const
     engine->RegisterObjectMethod(className, "float GetLength(const String&in) const", AS_METHODPR(T, GetLength, (const String&) const, float), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "float GetLength(const String&in) const", AS_METHODPR(T, GetLength, (const String&) const, float), AS_CALL_THISCALL);
 
 
-    // const Vector<unsigned char>& AnimationController::GetNetAnimationsAttr() const
-    engine->RegisterObjectMethod(className, "Array<uint8>@ GetNetAnimationsAttr() const", AS_FUNCTION_OBJFIRST(AnimationController_constspVectorlesunsignedspchargreamp_GetNetAnimationsAttr_void_template<AnimationController>), AS_CALL_CDECL_OBJFIRST);
+    // const Vector<byte>& AnimationController::GetNetAnimationsAttr() const
+    engine->RegisterObjectMethod(className, "Array<byte>@ GetNetAnimationsAttr() const", AS_FUNCTION_OBJFIRST(AnimationController_constspVectorlesbytegreamp_GetNetAnimationsAttr_void_template<AnimationController>), AS_CALL_CDECL_OBJFIRST);
 
 
     // bool AnimationController::GetRemoveOnCompletion(const String& name) const
     // bool AnimationController::GetRemoveOnCompletion(const String& name) const
     engine->RegisterObjectMethod(className, "bool GetRemoveOnCompletion(const String&in) const", AS_METHODPR(T, GetRemoveOnCompletion, (const String&) const, bool), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "bool GetRemoveOnCompletion(const String&in) const", AS_METHODPR(T, GetRemoveOnCompletion, (const String&) const, bool), AS_CALL_THISCALL);
@@ -17319,8 +17321,8 @@ template <class T> void RegisterMembers_AnimationController(asIScriptEngine* eng
     // bool AnimationController::SetLooped(const String& name, bool enable)
     // bool AnimationController::SetLooped(const String& name, bool enable)
     engine->RegisterObjectMethod(className, "bool SetLooped(const String&in, bool)", AS_METHODPR(T, SetLooped, (const String&, bool), bool), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "bool SetLooped(const String&in, bool)", AS_METHODPR(T, SetLooped, (const String&, bool), bool), AS_CALL_THISCALL);
 
 
-    // void AnimationController::SetNetAnimationsAttr(const Vector<unsigned char>& value)
-    engine->RegisterObjectMethod(className, "void SetNetAnimationsAttr(Array<uint8>@+)", AS_FUNCTION_OBJFIRST(AnimationController_void_SetNetAnimationsAttr_constspVectorlesunsignedspchargreamp_template<AnimationController>), AS_CALL_CDECL_OBJFIRST);
+    // void AnimationController::SetNetAnimationsAttr(const Vector<byte>& value)
+    engine->RegisterObjectMethod(className, "void SetNetAnimationsAttr(Array<byte>@+)", AS_FUNCTION_OBJFIRST(AnimationController_void_SetNetAnimationsAttr_constspVectorlesbytegreamp_template<AnimationController>), AS_CALL_CDECL_OBJFIRST);
 
 
     // bool AnimationController::SetRemoveOnCompletion(const String& name, bool removeOnCompletion)
     // bool AnimationController::SetRemoveOnCompletion(const String& name, bool removeOnCompletion)
     engine->RegisterObjectMethod(className, "bool SetRemoveOnCompletion(const String&in, bool)", AS_METHODPR(T, SetRemoveOnCompletion, (const String&, bool), bool), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "bool SetRemoveOnCompletion(const String&in, bool)", AS_METHODPR(T, SetRemoveOnCompletion, (const String&, bool), bool), AS_CALL_THISCALL);
@@ -19984,25 +19986,25 @@ template <class T> void RegisterMembers_Navigable(asIScriptEngine* engine, const
     #endif
     #endif
 }
 }
 
 
-// virtual bool NavigationMesh::AddTile(const Vector<unsigned char>& tileData)
-template <class T> bool NavigationMesh_bool_AddTile_constspVectorlesunsignedspchargreamp_template(T* _ptr, CScriptArray* tileData_conv)
+// virtual bool NavigationMesh::AddTile(const Vector<byte>& tileData)
+template <class T> bool NavigationMesh_bool_AddTile_constspVectorlesbytegreamp_template(T* _ptr, CScriptArray* tileData_conv)
 {
 {
-    Vector<unsigned char> tileData = ArrayToVector<unsigned char>(tileData_conv);
+    Vector<byte> tileData = ArrayToVector<byte>(tileData_conv);
     bool result = _ptr->AddTile(tileData);
     bool result = _ptr->AddTile(tileData);
     return result;
     return result;
 }
 }
 
 
-// virtual Vector<unsigned char> NavigationMesh::GetNavigationDataAttr() const
-template <class T> CScriptArray* NavigationMesh_Vectorlesunsignedspchargre_GetNavigationDataAttr_void_template(T* _ptr)
+// virtual Vector<byte> NavigationMesh::GetNavigationDataAttr() const
+template <class T> CScriptArray* NavigationMesh_Vectorlesbytegre_GetNavigationDataAttr_void_template(T* _ptr)
 {
 {
-    Vector<unsigned char> result = _ptr->GetNavigationDataAttr();
-    return VectorToArray(result, "Array<uint8>");
+    Vector<byte> result = _ptr->GetNavigationDataAttr();
+    return VectorToArray(result, "Array<byte>");
 }
 }
 
 
-// virtual void NavigationMesh::SetNavigationDataAttr(const Vector<unsigned char>& value)
-template <class T> void NavigationMesh_void_SetNavigationDataAttr_constspVectorlesunsignedspchargreamp_template(T* _ptr, CScriptArray* value_conv)
+// virtual void NavigationMesh::SetNavigationDataAttr(const Vector<byte>& value)
+template <class T> void NavigationMesh_void_SetNavigationDataAttr_constspVectorlesbytegreamp_template(T* _ptr, CScriptArray* value_conv)
 {
 {
-    Vector<unsigned char> value = ArrayToVector<unsigned char>(value_conv);
+    Vector<byte> value = ArrayToVector<byte>(value_conv);
     _ptr->SetNavigationDataAttr(value);
     _ptr->SetNavigationDataAttr(value);
 }
 }
 
 
@@ -20023,15 +20025,15 @@ template <class T> void RegisterMembers_NavigationMesh(asIScriptEngine* engine,
     // Error: type "const dtQueryFilter*" can not automatically bind
     // Error: type "const dtQueryFilter*" can not automatically bind
     // Vector3 NavigationMesh::GetRandomPointInCircle(const Vector3& center, float radius, const Vector3& extents = Vector3::ONE, const dtQueryFilter* filter = nullptr, dtPolyRef* randomRef = nullptr)
     // Vector3 NavigationMesh::GetRandomPointInCircle(const Vector3& center, float radius, const Vector3& extents = Vector3::ONE, const dtQueryFilter* filter = nullptr, dtPolyRef* randomRef = nullptr)
     // Error: type "const dtQueryFilter*" can not automatically bind
     // Error: type "const dtQueryFilter*" can not automatically bind
-    // virtual Vector<unsigned char> NavigationMesh::GetTileData(const IntVector2& tile) const
+    // virtual Vector<byte> NavigationMesh::GetTileData(const IntVector2& tile) const
     // Not registered because have @manualbind mark
     // Not registered because have @manualbind mark
     // Vector3 NavigationMesh::MoveAlongSurface(const Vector3& start, const Vector3& end, const Vector3& extents = Vector3::ONE, int maxVisited = 3, const dtQueryFilter* filter = nullptr)
     // Vector3 NavigationMesh::MoveAlongSurface(const Vector3& start, const Vector3& end, const Vector3& extents = Vector3::ONE, int maxVisited = 3, const dtQueryFilter* filter = nullptr)
     // Error: type "const dtQueryFilter*" can not automatically bind
     // Error: type "const dtQueryFilter*" can not automatically bind
     // Vector3 NavigationMesh::Raycast(const Vector3& start, const Vector3& end, const Vector3& extents = Vector3::ONE, const dtQueryFilter* filter = nullptr, Vector3* hitNormal = nullptr)
     // Vector3 NavigationMesh::Raycast(const Vector3& start, const Vector3& end, const Vector3& extents = Vector3::ONE, const dtQueryFilter* filter = nullptr, Vector3* hitNormal = nullptr)
     // Error: type "const dtQueryFilter*" can not automatically bind
     // Error: type "const dtQueryFilter*" can not automatically bind
 
 
-    // virtual bool NavigationMesh::AddTile(const Vector<unsigned char>& tileData)
-    engine->RegisterObjectMethod(className, "bool AddTile(Array<uint8>@+)", AS_FUNCTION_OBJFIRST(NavigationMesh_bool_AddTile_constspVectorlesunsignedspchargreamp_template<NavigationMesh>), AS_CALL_CDECL_OBJFIRST);
+    // virtual bool NavigationMesh::AddTile(const Vector<byte>& tileData)
+    engine->RegisterObjectMethod(className, "bool AddTile(Array<byte>@+)", AS_FUNCTION_OBJFIRST(NavigationMesh_bool_AddTile_constspVectorlesbytegreamp_template<NavigationMesh>), AS_CALL_CDECL_OBJFIRST);
 
 
     // virtual bool NavigationMesh::Allocate(const BoundingBox& boundingBox, unsigned maxTiles)
     // virtual bool NavigationMesh::Allocate(const BoundingBox& boundingBox, unsigned maxTiles)
     engine->RegisterObjectMethod(className, "bool Allocate(const BoundingBox&in, uint)", AS_METHODPR(T, Allocate, (const BoundingBox&, unsigned), bool), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "bool Allocate(const BoundingBox&in, uint)", AS_METHODPR(T, Allocate, (const BoundingBox&, unsigned), bool), AS_CALL_THISCALL);
@@ -20109,8 +20111,8 @@ template <class T> void RegisterMembers_NavigationMesh(asIScriptEngine* engine,
     // String NavigationMesh::GetMeshName() const
     // String NavigationMesh::GetMeshName() const
     engine->RegisterObjectMethod(className, "String GetMeshName() const", AS_METHODPR(T, GetMeshName, () const, String), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "String GetMeshName() const", AS_METHODPR(T, GetMeshName, () const, String), AS_CALL_THISCALL);
 
 
-    // virtual Vector<unsigned char> NavigationMesh::GetNavigationDataAttr() const
-    engine->RegisterObjectMethod(className, "Array<uint8>@ GetNavigationDataAttr() const", AS_FUNCTION_OBJFIRST(NavigationMesh_Vectorlesunsignedspchargre_GetNavigationDataAttr_void_template<NavigationMesh>), AS_CALL_CDECL_OBJFIRST);
+    // virtual Vector<byte> NavigationMesh::GetNavigationDataAttr() const
+    engine->RegisterObjectMethod(className, "Array<byte>@ GetNavigationDataAttr() const", AS_FUNCTION_OBJFIRST(NavigationMesh_Vectorlesbytegre_GetNavigationDataAttr_void_template<NavigationMesh>), AS_CALL_CDECL_OBJFIRST);
 
 
     // IntVector2 NavigationMesh::GetNumTiles() const
     // IntVector2 NavigationMesh::GetNumTiles() const
     engine->RegisterObjectMethod(className, "IntVector2 GetNumTiles() const", AS_METHODPR(T, GetNumTiles, () const, IntVector2), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "IntVector2 GetNumTiles() const", AS_METHODPR(T, GetNumTiles, () const, IntVector2), AS_CALL_THISCALL);
@@ -20213,8 +20215,8 @@ template <class T> void RegisterMembers_NavigationMesh(asIScriptEngine* engine,
     // void NavigationMesh::SetMeshName(const String& newName)
     // void NavigationMesh::SetMeshName(const String& newName)
     engine->RegisterObjectMethod(className, "void SetMeshName(const String&in)", AS_METHODPR(T, SetMeshName, (const String&), void), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "void SetMeshName(const String&in)", AS_METHODPR(T, SetMeshName, (const String&), void), AS_CALL_THISCALL);
 
 
-    // virtual void NavigationMesh::SetNavigationDataAttr(const Vector<unsigned char>& value)
-    engine->RegisterObjectMethod(className, "void SetNavigationDataAttr(Array<uint8>@+)", AS_FUNCTION_OBJFIRST(NavigationMesh_void_SetNavigationDataAttr_constspVectorlesunsignedspchargreamp_template<NavigationMesh>), AS_CALL_CDECL_OBJFIRST);
+    // virtual void NavigationMesh::SetNavigationDataAttr(const Vector<byte>& value)
+    engine->RegisterObjectMethod(className, "void SetNavigationDataAttr(Array<byte>@+)", AS_FUNCTION_OBJFIRST(NavigationMesh_void_SetNavigationDataAttr_constspVectorlesbytegreamp_template<NavigationMesh>), AS_CALL_CDECL_OBJFIRST);
 
 
     // void NavigationMesh::SetPadding(const Vector3& padding)
     // void NavigationMesh::SetPadding(const Vector3& padding)
     engine->RegisterObjectMethod(className, "void SetPadding(const Vector3&in)", AS_METHODPR(T, SetPadding, (const Vector3&), void), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "void SetPadding(const Vector3&in)", AS_METHODPR(T, SetPadding, (const Vector3&), void), AS_CALL_THISCALL);
@@ -20841,17 +20843,17 @@ template <class T> void RegisterMembers_PhysicsWorld(asIScriptEngine* engine, co
     #endif
     #endif
 }
 }
 
 
-// const Vector<unsigned char>& RigidBody::GetNetAngularVelocityAttr() const
-template <class T> CScriptArray* RigidBody_constspVectorlesunsignedspchargreamp_GetNetAngularVelocityAttr_void_template(T* _ptr)
+// const Vector<byte>& RigidBody::GetNetAngularVelocityAttr() const
+template <class T> CScriptArray* RigidBody_constspVectorlesbytegreamp_GetNetAngularVelocityAttr_void_template(T* _ptr)
 {
 {
-    const Vector<unsigned char>& result = _ptr->GetNetAngularVelocityAttr();
-    return VectorToArray(result, "Array<uint8>");
+    const Vector<byte>& result = _ptr->GetNetAngularVelocityAttr();
+    return VectorToArray(result, "Array<byte>");
 }
 }
 
 
-// void RigidBody::SetNetAngularVelocityAttr(const Vector<unsigned char>& value)
-template <class T> void RigidBody_void_SetNetAngularVelocityAttr_constspVectorlesunsignedspchargreamp_template(T* _ptr, CScriptArray* value_conv)
+// void RigidBody::SetNetAngularVelocityAttr(const Vector<byte>& value)
+template <class T> void RigidBody_void_SetNetAngularVelocityAttr_constspVectorlesbytegreamp_template(T* _ptr, CScriptArray* value_conv)
 {
 {
-    Vector<unsigned char> value = ArrayToVector<unsigned char>(value_conv);
+    Vector<byte> value = ArrayToVector<byte>(value_conv);
     _ptr->SetNetAngularVelocityAttr(value);
     _ptr->SetNetAngularVelocityAttr(value);
 }
 }
 
 
@@ -20983,8 +20985,8 @@ template <class T> void RegisterMembers_RigidBody(asIScriptEngine* engine, const
     engine->RegisterObjectMethod(className, "float GetMass() const", AS_METHODPR(T, GetMass, () const, float), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "float GetMass() const", AS_METHODPR(T, GetMass, () const, float), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "float get_mass() const", AS_METHODPR(T, GetMass, () const, float), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "float get_mass() const", AS_METHODPR(T, GetMass, () const, float), AS_CALL_THISCALL);
 
 
-    // const Vector<unsigned char>& RigidBody::GetNetAngularVelocityAttr() const
-    engine->RegisterObjectMethod(className, "Array<uint8>@ GetNetAngularVelocityAttr() const", AS_FUNCTION_OBJFIRST(RigidBody_constspVectorlesunsignedspchargreamp_GetNetAngularVelocityAttr_void_template<RigidBody>), AS_CALL_CDECL_OBJFIRST);
+    // const Vector<byte>& RigidBody::GetNetAngularVelocityAttr() const
+    engine->RegisterObjectMethod(className, "Array<byte>@ GetNetAngularVelocityAttr() const", AS_FUNCTION_OBJFIRST(RigidBody_constspVectorlesbytegreamp_GetNetAngularVelocityAttr_void_template<RigidBody>), AS_CALL_CDECL_OBJFIRST);
 
 
     // PhysicsWorld* RigidBody::GetPhysicsWorld() const
     // PhysicsWorld* RigidBody::GetPhysicsWorld() const
     engine->RegisterObjectMethod(className, "PhysicsWorld@+ GetPhysicsWorld() const", AS_METHODPR(T, GetPhysicsWorld, () const, PhysicsWorld*), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "PhysicsWorld@+ GetPhysicsWorld() const", AS_METHODPR(T, GetPhysicsWorld, () const, PhysicsWorld*), AS_CALL_THISCALL);
@@ -21115,8 +21117,8 @@ template <class T> void RegisterMembers_RigidBody(asIScriptEngine* engine, const
     engine->RegisterObjectMethod(className, "void SetMass(float)", AS_METHODPR(T, SetMass, (float), void), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "void SetMass(float)", AS_METHODPR(T, SetMass, (float), void), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "void set_mass(float)", AS_METHODPR(T, SetMass, (float), void), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "void set_mass(float)", AS_METHODPR(T, SetMass, (float), void), AS_CALL_THISCALL);
 
 
-    // void RigidBody::SetNetAngularVelocityAttr(const Vector<unsigned char>& value)
-    engine->RegisterObjectMethod(className, "void SetNetAngularVelocityAttr(Array<uint8>@+)", AS_FUNCTION_OBJFIRST(RigidBody_void_SetNetAngularVelocityAttr_constspVectorlesunsignedspchargreamp_template<RigidBody>), AS_CALL_CDECL_OBJFIRST);
+    // void RigidBody::SetNetAngularVelocityAttr(const Vector<byte>& value)
+    engine->RegisterObjectMethod(className, "void SetNetAngularVelocityAttr(Array<byte>@+)", AS_FUNCTION_OBJFIRST(RigidBody_void_SetNetAngularVelocityAttr_constspVectorlesbytegreamp_template<RigidBody>), AS_CALL_CDECL_OBJFIRST);
 
 
     // void RigidBody::SetPosition(const Vector3& position)
     // void RigidBody::SetPosition(const Vector3& position)
     engine->RegisterObjectMethod(className, "void SetPosition(const Vector3&in)", AS_METHODPR(T, SetPosition, (const Vector3&), void), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "void SetPosition(const Vector3&in)", AS_METHODPR(T, SetPosition, (const Vector3&), void), AS_CALL_THISCALL);
@@ -21787,17 +21789,17 @@ template <class T> void RegisterMembers_TileMapLayer2D(asIScriptEngine* engine,
 
 
 #endif // def URHO3D_URHO2D
 #endif // def URHO3D_URHO2D
 
 
-// const Vector<u8>& BillboardSet::GetNetBillboardsAttr() const
-template <class T> CScriptArray* BillboardSet_constspVectorlesu8greamp_GetNetBillboardsAttr_void_template(T* _ptr)
+// const Vector<byte>& BillboardSet::GetNetBillboardsAttr() const
+template <class T> CScriptArray* BillboardSet_constspVectorlesbytegreamp_GetNetBillboardsAttr_void_template(T* _ptr)
 {
 {
-    const Vector<u8>& result = _ptr->GetNetBillboardsAttr();
-    return VectorToArray(result, "Array<uint8>");
+    const Vector<byte>& result = _ptr->GetNetBillboardsAttr();
+    return VectorToArray(result, "Array<byte>");
 }
 }
 
 
-// void BillboardSet::SetNetBillboardsAttr(const Vector<u8>& value)
-template <class T> void BillboardSet_void_SetNetBillboardsAttr_constspVectorlesu8greamp_template(T* _ptr, CScriptArray* value_conv)
+// void BillboardSet::SetNetBillboardsAttr(const Vector<byte>& value)
+template <class T> void BillboardSet_void_SetNetBillboardsAttr_constspVectorlesbytegreamp_template(T* _ptr, CScriptArray* value_conv)
 {
 {
-    Vector<u8> value = ArrayToVector<u8>(value_conv);
+    Vector<byte> value = ArrayToVector<byte>(value_conv);
     _ptr->SetNetBillboardsAttr(value);
     _ptr->SetNetBillboardsAttr(value);
 }
 }
 
 
@@ -21839,8 +21841,8 @@ template <class T> void RegisterMembers_BillboardSet(asIScriptEngine* engine, co
     engine->RegisterObjectMethod(className, "float GetMinAngle() const", AS_METHODPR(T, GetMinAngle, () const, float), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "float GetMinAngle() const", AS_METHODPR(T, GetMinAngle, () const, float), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "float get_minAngle() const", AS_METHODPR(T, GetMinAngle, () const, float), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "float get_minAngle() const", AS_METHODPR(T, GetMinAngle, () const, float), AS_CALL_THISCALL);
 
 
-    // const Vector<u8>& BillboardSet::GetNetBillboardsAttr() const
-    engine->RegisterObjectMethod(className, "Array<uint8>@ GetNetBillboardsAttr() const", AS_FUNCTION_OBJFIRST(BillboardSet_constspVectorlesu8greamp_GetNetBillboardsAttr_void_template<BillboardSet>), AS_CALL_CDECL_OBJFIRST);
+    // const Vector<byte>& BillboardSet::GetNetBillboardsAttr() const
+    engine->RegisterObjectMethod(className, "Array<byte>@ GetNetBillboardsAttr() const", AS_FUNCTION_OBJFIRST(BillboardSet_constspVectorlesbytegreamp_GetNetBillboardsAttr_void_template<BillboardSet>), AS_CALL_CDECL_OBJFIRST);
 
 
     // i32 BillboardSet::GetNumBillboards() const
     // i32 BillboardSet::GetNumBillboards() const
     engine->RegisterObjectMethod(className, "int GetNumBillboards() const", AS_METHODPR(T, GetNumBillboards, () const, i32), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "int GetNumBillboards() const", AS_METHODPR(T, GetNumBillboards, () const, i32), AS_CALL_THISCALL);
@@ -21885,8 +21887,8 @@ template <class T> void RegisterMembers_BillboardSet(asIScriptEngine* engine, co
     engine->RegisterObjectMethod(className, "void SetMinAngle(float)", AS_METHODPR(T, SetMinAngle, (float), void), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "void SetMinAngle(float)", AS_METHODPR(T, SetMinAngle, (float), void), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "void set_minAngle(float)", AS_METHODPR(T, SetMinAngle, (float), void), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "void set_minAngle(float)", AS_METHODPR(T, SetMinAngle, (float), void), AS_CALL_THISCALL);
 
 
-    // void BillboardSet::SetNetBillboardsAttr(const Vector<u8>& value)
-    engine->RegisterObjectMethod(className, "void SetNetBillboardsAttr(Array<uint8>@+)", AS_FUNCTION_OBJFIRST(BillboardSet_void_SetNetBillboardsAttr_constspVectorlesu8greamp_template<BillboardSet>), AS_CALL_CDECL_OBJFIRST);
+    // void BillboardSet::SetNetBillboardsAttr(const Vector<byte>& value)
+    engine->RegisterObjectMethod(className, "void SetNetBillboardsAttr(Array<byte>@+)", AS_FUNCTION_OBJFIRST(BillboardSet_void_SetNetBillboardsAttr_constspVectorlesbytegreamp_template<BillboardSet>), AS_CALL_CDECL_OBJFIRST);
 
 
     // void BillboardSet::SetNumBillboards(i32 num)
     // void BillboardSet::SetNumBillboards(i32 num)
     engine->RegisterObjectMethod(className, "void SetNumBillboards(int)", AS_METHODPR(T, SetNumBillboards, (i32), void), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "void SetNumBillboards(int)", AS_METHODPR(T, SetNumBillboards, (i32), void), AS_CALL_THISCALL);
@@ -22039,17 +22041,17 @@ template <class T> void RegisterMembers_Cursor(asIScriptEngine* engine, const ch
     #endif
     #endif
 }
 }
 
 
-// Vector<unsigned char> CustomGeometry::GetGeometryDataAttr() const
-template <class T> CScriptArray* CustomGeometry_Vectorlesunsignedspchargre_GetGeometryDataAttr_void_template(T* _ptr)
+// Vector<byte> CustomGeometry::GetGeometryDataAttr() const
+template <class T> CScriptArray* CustomGeometry_Vectorlesbytegre_GetGeometryDataAttr_void_template(T* _ptr)
 {
 {
-    Vector<unsigned char> result = _ptr->GetGeometryDataAttr();
-    return VectorToArray(result, "Array<uint8>");
+    Vector<byte> result = _ptr->GetGeometryDataAttr();
+    return VectorToArray(result, "Array<byte>");
 }
 }
 
 
-// void CustomGeometry::SetGeometryDataAttr(const Vector<unsigned char>& value)
-template <class T> void CustomGeometry_void_SetGeometryDataAttr_constspVectorlesunsignedspchargreamp_template(T* _ptr, CScriptArray* value_conv)
+// void CustomGeometry::SetGeometryDataAttr(const Vector<byte>& value)
+template <class T> void CustomGeometry_void_SetGeometryDataAttr_constspVectorlesbytegreamp_template(T* _ptr, CScriptArray* value_conv)
 {
 {
-    Vector<unsigned char> value = ArrayToVector<unsigned char>(value_conv);
+    Vector<byte> value = ArrayToVector<byte>(value_conv);
     _ptr->SetGeometryDataAttr(value);
     _ptr->SetGeometryDataAttr(value);
 }
 }
 
 
@@ -22088,8 +22090,8 @@ template <class T> void RegisterMembers_CustomGeometry(asIScriptEngine* engine,
     // void CustomGeometry::DefineVertex(const Vector3& position)
     // void CustomGeometry::DefineVertex(const Vector3& position)
     engine->RegisterObjectMethod(className, "void DefineVertex(const Vector3&in)", AS_METHODPR(T, DefineVertex, (const Vector3&), void), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "void DefineVertex(const Vector3&in)", AS_METHODPR(T, DefineVertex, (const Vector3&), void), AS_CALL_THISCALL);
 
 
-    // Vector<unsigned char> CustomGeometry::GetGeometryDataAttr() const
-    engine->RegisterObjectMethod(className, "Array<uint8>@ GetGeometryDataAttr() const", AS_FUNCTION_OBJFIRST(CustomGeometry_Vectorlesunsignedspchargre_GetGeometryDataAttr_void_template<CustomGeometry>), AS_CALL_CDECL_OBJFIRST);
+    // Vector<byte> CustomGeometry::GetGeometryDataAttr() const
+    engine->RegisterObjectMethod(className, "Array<byte>@ GetGeometryDataAttr() const", AS_FUNCTION_OBJFIRST(CustomGeometry_Vectorlesbytegre_GetGeometryDataAttr_void_template<CustomGeometry>), AS_CALL_CDECL_OBJFIRST);
 
 
     // Material* CustomGeometry::GetMaterial(unsigned index = 0) const
     // Material* CustomGeometry::GetMaterial(unsigned index = 0) const
     engine->RegisterObjectMethod(className, "Material@+ GetMaterial(uint = 0) const", AS_METHODPR(T, GetMaterial, (unsigned) const, Material*), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "Material@+ GetMaterial(uint = 0) const", AS_METHODPR(T, GetMaterial, (unsigned) const, Material*), AS_CALL_THISCALL);
@@ -22117,8 +22119,8 @@ template <class T> void RegisterMembers_CustomGeometry(asIScriptEngine* engine,
     engine->RegisterObjectMethod(className, "void SetDynamic(bool)", AS_METHODPR(T, SetDynamic, (bool), void), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "void SetDynamic(bool)", AS_METHODPR(T, SetDynamic, (bool), void), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "void set_dynamic(bool)", AS_METHODPR(T, SetDynamic, (bool), void), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "void set_dynamic(bool)", AS_METHODPR(T, SetDynamic, (bool), void), AS_CALL_THISCALL);
 
 
-    // void CustomGeometry::SetGeometryDataAttr(const Vector<unsigned char>& value)
-    engine->RegisterObjectMethod(className, "void SetGeometryDataAttr(Array<uint8>@+)", AS_FUNCTION_OBJFIRST(CustomGeometry_void_SetGeometryDataAttr_constspVectorlesunsignedspchargreamp_template<CustomGeometry>), AS_CALL_CDECL_OBJFIRST);
+    // void CustomGeometry::SetGeometryDataAttr(const Vector<byte>& value)
+    engine->RegisterObjectMethod(className, "void SetGeometryDataAttr(Array<byte>@+)", AS_FUNCTION_OBJFIRST(CustomGeometry_void_SetGeometryDataAttr_constspVectorlesbytegreamp_template<CustomGeometry>), AS_CALL_CDECL_OBJFIRST);
 
 
     // void CustomGeometry::SetMaterial(Material* material)
     // void CustomGeometry::SetMaterial(Material* material)
     engine->RegisterObjectMethod(className, "void SetMaterial(Material@+)", AS_METHODPR(T, SetMaterial, (Material*), void), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "void SetMaterial(Material@+)", AS_METHODPR(T, SetMaterial, (Material*), void), AS_CALL_THISCALL);
@@ -22143,17 +22145,17 @@ template <class T> void RegisterMembers_CustomGeometry(asIScriptEngine* engine,
     #endif
     #endif
 }
 }
 
 
-// Vector<unsigned char> DecalSet::GetDecalsAttr() const
-template <class T> CScriptArray* DecalSet_Vectorlesunsignedspchargre_GetDecalsAttr_void_template(T* _ptr)
+// Vector<byte> DecalSet::GetDecalsAttr() const
+template <class T> CScriptArray* DecalSet_Vectorlesbytegre_GetDecalsAttr_void_template(T* _ptr)
 {
 {
-    Vector<unsigned char> result = _ptr->GetDecalsAttr();
-    return VectorToArray(result, "Array<uint8>");
+    Vector<byte> result = _ptr->GetDecalsAttr();
+    return VectorToArray(result, "Array<byte>");
 }
 }
 
 
-// void DecalSet::SetDecalsAttr(const Vector<unsigned char>& value)
-template <class T> void DecalSet_void_SetDecalsAttr_constspVectorlesunsignedspchargreamp_template(T* _ptr, CScriptArray* value_conv)
+// void DecalSet::SetDecalsAttr(const Vector<byte>& value)
+template <class T> void DecalSet_void_SetDecalsAttr_constspVectorlesbytegreamp_template(T* _ptr, CScriptArray* value_conv)
 {
 {
-    Vector<unsigned char> value = ArrayToVector<unsigned char>(value_conv);
+    Vector<byte> value = ArrayToVector<byte>(value_conv);
     _ptr->SetDecalsAttr(value);
     _ptr->SetDecalsAttr(value);
 }
 }
 
 
@@ -22165,8 +22167,8 @@ template <class T> void RegisterMembers_DecalSet(asIScriptEngine* engine, const
     // bool DecalSet::AddDecal(Drawable* target, const Vector3& worldPosition, const Quaternion& worldRotation, float size, float aspectRatio, float depth, const Vector2& topLeftUV, const Vector2& bottomRightUV, float timeToLive = 0.0f, float normalCutoff = 0.1f, unsigned subGeometry = M_MAX_UNSIGNED)
     // bool DecalSet::AddDecal(Drawable* target, const Vector3& worldPosition, const Quaternion& worldRotation, float size, float aspectRatio, float depth, const Vector2& topLeftUV, const Vector2& bottomRightUV, float timeToLive = 0.0f, float normalCutoff = 0.1f, unsigned subGeometry = M_MAX_UNSIGNED)
     engine->RegisterObjectMethod(className, "bool AddDecal(Drawable@+, const Vector3&in, const Quaternion&in, float, float, float, const Vector2&in, const Vector2&in, float = 0.0f, float = 0.1f, uint = M_MAX_UNSIGNED)", AS_METHODPR(T, AddDecal, (Drawable*, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float, float, unsigned), bool), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "bool AddDecal(Drawable@+, const Vector3&in, const Quaternion&in, float, float, float, const Vector2&in, const Vector2&in, float = 0.0f, float = 0.1f, uint = M_MAX_UNSIGNED)", AS_METHODPR(T, AddDecal, (Drawable*, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float, float, unsigned), bool), AS_CALL_THISCALL);
 
 
-    // Vector<unsigned char> DecalSet::GetDecalsAttr() const
-    engine->RegisterObjectMethod(className, "Array<uint8>@ GetDecalsAttr() const", AS_FUNCTION_OBJFIRST(DecalSet_Vectorlesunsignedspchargre_GetDecalsAttr_void_template<DecalSet>), AS_CALL_CDECL_OBJFIRST);
+    // Vector<byte> DecalSet::GetDecalsAttr() const
+    engine->RegisterObjectMethod(className, "Array<byte>@ GetDecalsAttr() const", AS_FUNCTION_OBJFIRST(DecalSet_Vectorlesbytegre_GetDecalsAttr_void_template<DecalSet>), AS_CALL_CDECL_OBJFIRST);
 
 
     // Material* DecalSet::GetMaterial() const
     // Material* DecalSet::GetMaterial() const
     engine->RegisterObjectMethod(className, "Material@+ GetMaterial() const", AS_METHODPR(T, GetMaterial, () const, Material*), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "Material@+ GetMaterial() const", AS_METHODPR(T, GetMaterial, () const, Material*), AS_CALL_THISCALL);
@@ -22205,8 +22207,8 @@ template <class T> void RegisterMembers_DecalSet(asIScriptEngine* engine, const
     // void DecalSet::RemoveDecals(unsigned num)
     // void DecalSet::RemoveDecals(unsigned num)
     engine->RegisterObjectMethod(className, "void RemoveDecals(uint)", AS_METHODPR(T, RemoveDecals, (unsigned), void), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "void RemoveDecals(uint)", AS_METHODPR(T, RemoveDecals, (unsigned), void), AS_CALL_THISCALL);
 
 
-    // void DecalSet::SetDecalsAttr(const Vector<unsigned char>& value)
-    engine->RegisterObjectMethod(className, "void SetDecalsAttr(Array<uint8>@+)", AS_FUNCTION_OBJFIRST(DecalSet_void_SetDecalsAttr_constspVectorlesunsignedspchargreamp_template<DecalSet>), AS_CALL_CDECL_OBJFIRST);
+    // void DecalSet::SetDecalsAttr(const Vector<byte>& value)
+    engine->RegisterObjectMethod(className, "void SetDecalsAttr(Array<byte>@+)", AS_FUNCTION_OBJFIRST(DecalSet_void_SetDecalsAttr_constspVectorlesbytegreamp_template<DecalSet>), AS_CALL_CDECL_OBJFIRST);
 
 
     // void DecalSet::SetMaterial(Material* material)
     // void DecalSet::SetMaterial(Material* material)
     engine->RegisterObjectMethod(className, "void SetMaterial(Material@+)", AS_METHODPR(T, SetMaterial, (Material*), void), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "void SetMaterial(Material@+)", AS_METHODPR(T, SetMaterial, (Material*), void), AS_CALL_THISCALL);
@@ -24176,11 +24178,11 @@ template <class T> CScriptArray* CollisionChain2D_constspVectorlesVector2greamp_
     return VectorToArray(result, "Array<Vector2>");
     return VectorToArray(result, "Array<Vector2>");
 }
 }
 
 
-// Vector<u8> CollisionChain2D::GetVerticesAttr() const
-template <class T> CScriptArray* CollisionChain2D_Vectorlesu8gre_GetVerticesAttr_void_template(T* _ptr)
+// Vector<byte> CollisionChain2D::GetVerticesAttr() const
+template <class T> CScriptArray* CollisionChain2D_Vectorlesbytegre_GetVerticesAttr_void_template(T* _ptr)
 {
 {
-    Vector<u8> result = _ptr->GetVerticesAttr();
-    return VectorToArray(result, "Array<uint8>");
+    Vector<byte> result = _ptr->GetVerticesAttr();
+    return VectorToArray(result, "Array<byte>");
 }
 }
 
 
 // void CollisionChain2D::SetVertices(const Vector<Vector2>& vertices)
 // void CollisionChain2D::SetVertices(const Vector<Vector2>& vertices)
@@ -24190,10 +24192,10 @@ template <class T> void CollisionChain2D_void_SetVertices_constspVectorlesVector
     _ptr->SetVertices(vertices);
     _ptr->SetVertices(vertices);
 }
 }
 
 
-// void CollisionChain2D::SetVerticesAttr(const Vector<u8>& value)
-template <class T> void CollisionChain2D_void_SetVerticesAttr_constspVectorlesu8greamp_template(T* _ptr, CScriptArray* value_conv)
+// void CollisionChain2D::SetVerticesAttr(const Vector<byte>& value)
+template <class T> void CollisionChain2D_void_SetVerticesAttr_constspVectorlesbytegreamp_template(T* _ptr, CScriptArray* value_conv)
 {
 {
-    Vector<u8> value = ArrayToVector<u8>(value_conv);
+    Vector<byte> value = ArrayToVector<byte>(value_conv);
     _ptr->SetVerticesAttr(value);
     _ptr->SetVerticesAttr(value);
 }
 }
 
 
@@ -24216,8 +24218,8 @@ template <class T> void RegisterMembers_CollisionChain2D(asIScriptEngine* engine
     // const Vector<Vector2>& CollisionChain2D::GetVertices() const
     // const Vector<Vector2>& CollisionChain2D::GetVertices() const
     engine->RegisterObjectMethod(className, "Array<Vector2>@ GetVertices() const", AS_FUNCTION_OBJFIRST(CollisionChain2D_constspVectorlesVector2greamp_GetVertices_void_template<CollisionChain2D>), AS_CALL_CDECL_OBJFIRST);
     engine->RegisterObjectMethod(className, "Array<Vector2>@ GetVertices() const", AS_FUNCTION_OBJFIRST(CollisionChain2D_constspVectorlesVector2greamp_GetVertices_void_template<CollisionChain2D>), AS_CALL_CDECL_OBJFIRST);
 
 
-    // Vector<u8> CollisionChain2D::GetVerticesAttr() const
-    engine->RegisterObjectMethod(className, "Array<uint8>@ GetVerticesAttr() const", AS_FUNCTION_OBJFIRST(CollisionChain2D_Vectorlesu8gre_GetVerticesAttr_void_template<CollisionChain2D>), AS_CALL_CDECL_OBJFIRST);
+    // Vector<byte> CollisionChain2D::GetVerticesAttr() const
+    engine->RegisterObjectMethod(className, "Array<byte>@ GetVerticesAttr() const", AS_FUNCTION_OBJFIRST(CollisionChain2D_Vectorlesbytegre_GetVerticesAttr_void_template<CollisionChain2D>), AS_CALL_CDECL_OBJFIRST);
 
 
     // void CollisionChain2D::SetLoop(bool loop)
     // void CollisionChain2D::SetLoop(bool loop)
     engine->RegisterObjectMethod(className, "void SetLoop(bool)", AS_METHODPR(T, SetLoop, (bool), void), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "void SetLoop(bool)", AS_METHODPR(T, SetLoop, (bool), void), AS_CALL_THISCALL);
@@ -24233,8 +24235,8 @@ template <class T> void RegisterMembers_CollisionChain2D(asIScriptEngine* engine
     // void CollisionChain2D::SetVertices(const Vector<Vector2>& vertices)
     // void CollisionChain2D::SetVertices(const Vector<Vector2>& vertices)
     engine->RegisterObjectMethod(className, "void SetVertices(Array<Vector2>@+)", AS_FUNCTION_OBJFIRST(CollisionChain2D_void_SetVertices_constspVectorlesVector2greamp_template<CollisionChain2D>), AS_CALL_CDECL_OBJFIRST);
     engine->RegisterObjectMethod(className, "void SetVertices(Array<Vector2>@+)", AS_FUNCTION_OBJFIRST(CollisionChain2D_void_SetVertices_constspVectorlesVector2greamp_template<CollisionChain2D>), AS_CALL_CDECL_OBJFIRST);
 
 
-    // void CollisionChain2D::SetVerticesAttr(const Vector<u8>& value)
-    engine->RegisterObjectMethod(className, "void SetVerticesAttr(Array<uint8>@+)", AS_FUNCTION_OBJFIRST(CollisionChain2D_void_SetVerticesAttr_constspVectorlesu8greamp_template<CollisionChain2D>), AS_CALL_CDECL_OBJFIRST);
+    // void CollisionChain2D::SetVerticesAttr(const Vector<byte>& value)
+    engine->RegisterObjectMethod(className, "void SetVerticesAttr(Array<byte>@+)", AS_FUNCTION_OBJFIRST(CollisionChain2D_void_SetVerticesAttr_constspVectorlesbytegreamp_template<CollisionChain2D>), AS_CALL_CDECL_OBJFIRST);
 
 
     #ifdef REGISTER_MEMBERS_MANUAL_PART_CollisionChain2D
     #ifdef REGISTER_MEMBERS_MANUAL_PART_CollisionChain2D
         REGISTER_MEMBERS_MANUAL_PART_CollisionChain2D();
         REGISTER_MEMBERS_MANUAL_PART_CollisionChain2D();
@@ -24306,11 +24308,11 @@ template <class T> CScriptArray* CollisionPolygon2D_constspVectorlesVector2gream
     return VectorToArray(result, "Array<Vector2>");
     return VectorToArray(result, "Array<Vector2>");
 }
 }
 
 
-// Vector<u8> CollisionPolygon2D::GetVerticesAttr() const
-template <class T> CScriptArray* CollisionPolygon2D_Vectorlesu8gre_GetVerticesAttr_void_template(T* _ptr)
+// Vector<byte> CollisionPolygon2D::GetVerticesAttr() const
+template <class T> CScriptArray* CollisionPolygon2D_Vectorlesbytegre_GetVerticesAttr_void_template(T* _ptr)
 {
 {
-    Vector<u8> result = _ptr->GetVerticesAttr();
-    return VectorToArray(result, "Array<uint8>");
+    Vector<byte> result = _ptr->GetVerticesAttr();
+    return VectorToArray(result, "Array<byte>");
 }
 }
 
 
 // void CollisionPolygon2D::SetVertices(const Vector<Vector2>& vertices)
 // void CollisionPolygon2D::SetVertices(const Vector<Vector2>& vertices)
@@ -24320,10 +24322,10 @@ template <class T> void CollisionPolygon2D_void_SetVertices_constspVectorlesVect
     _ptr->SetVertices(vertices);
     _ptr->SetVertices(vertices);
 }
 }
 
 
-// void CollisionPolygon2D::SetVerticesAttr(const Vector<u8>& value)
-template <class T> void CollisionPolygon2D_void_SetVerticesAttr_constspVectorlesu8greamp_template(T* _ptr, CScriptArray* value_conv)
+// void CollisionPolygon2D::SetVerticesAttr(const Vector<byte>& value)
+template <class T> void CollisionPolygon2D_void_SetVerticesAttr_constspVectorlesbytegreamp_template(T* _ptr, CScriptArray* value_conv)
 {
 {
-    Vector<u8> value = ArrayToVector<u8>(value_conv);
+    Vector<byte> value = ArrayToVector<byte>(value_conv);
     _ptr->SetVerticesAttr(value);
     _ptr->SetVerticesAttr(value);
 }
 }
 
 
@@ -24342,8 +24344,8 @@ template <class T> void RegisterMembers_CollisionPolygon2D(asIScriptEngine* engi
     // const Vector<Vector2>& CollisionPolygon2D::GetVertices() const
     // const Vector<Vector2>& CollisionPolygon2D::GetVertices() const
     engine->RegisterObjectMethod(className, "Array<Vector2>@ GetVertices() const", AS_FUNCTION_OBJFIRST(CollisionPolygon2D_constspVectorlesVector2greamp_GetVertices_void_template<CollisionPolygon2D>), AS_CALL_CDECL_OBJFIRST);
     engine->RegisterObjectMethod(className, "Array<Vector2>@ GetVertices() const", AS_FUNCTION_OBJFIRST(CollisionPolygon2D_constspVectorlesVector2greamp_GetVertices_void_template<CollisionPolygon2D>), AS_CALL_CDECL_OBJFIRST);
 
 
-    // Vector<u8> CollisionPolygon2D::GetVerticesAttr() const
-    engine->RegisterObjectMethod(className, "Array<uint8>@ GetVerticesAttr() const", AS_FUNCTION_OBJFIRST(CollisionPolygon2D_Vectorlesu8gre_GetVerticesAttr_void_template<CollisionPolygon2D>), AS_CALL_CDECL_OBJFIRST);
+    // Vector<byte> CollisionPolygon2D::GetVerticesAttr() const
+    engine->RegisterObjectMethod(className, "Array<byte>@ GetVerticesAttr() const", AS_FUNCTION_OBJFIRST(CollisionPolygon2D_Vectorlesbytegre_GetVerticesAttr_void_template<CollisionPolygon2D>), AS_CALL_CDECL_OBJFIRST);
 
 
     // void CollisionPolygon2D::SetVertex(i32 index, const Vector2& vertex)
     // void CollisionPolygon2D::SetVertex(i32 index, const Vector2& vertex)
     engine->RegisterObjectMethod(className, "void SetVertex(int, const Vector2&in)", AS_METHODPR(T, SetVertex, (i32, const Vector2&), void), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "void SetVertex(int, const Vector2&in)", AS_METHODPR(T, SetVertex, (i32, const Vector2&), void), AS_CALL_THISCALL);
@@ -24355,8 +24357,8 @@ template <class T> void RegisterMembers_CollisionPolygon2D(asIScriptEngine* engi
     // void CollisionPolygon2D::SetVertices(const Vector<Vector2>& vertices)
     // void CollisionPolygon2D::SetVertices(const Vector<Vector2>& vertices)
     engine->RegisterObjectMethod(className, "void SetVertices(Array<Vector2>@+)", AS_FUNCTION_OBJFIRST(CollisionPolygon2D_void_SetVertices_constspVectorlesVector2greamp_template<CollisionPolygon2D>), AS_CALL_CDECL_OBJFIRST);
     engine->RegisterObjectMethod(className, "void SetVertices(Array<Vector2>@+)", AS_FUNCTION_OBJFIRST(CollisionPolygon2D_void_SetVertices_constspVectorlesVector2greamp_template<CollisionPolygon2D>), AS_CALL_CDECL_OBJFIRST);
 
 
-    // void CollisionPolygon2D::SetVerticesAttr(const Vector<u8>& value)
-    engine->RegisterObjectMethod(className, "void SetVerticesAttr(Array<uint8>@+)", AS_FUNCTION_OBJFIRST(CollisionPolygon2D_void_SetVerticesAttr_constspVectorlesu8greamp_template<CollisionPolygon2D>), AS_CALL_CDECL_OBJFIRST);
+    // void CollisionPolygon2D::SetVerticesAttr(const Vector<byte>& value)
+    engine->RegisterObjectMethod(className, "void SetVerticesAttr(Array<byte>@+)", AS_FUNCTION_OBJFIRST(CollisionPolygon2D_void_SetVerticesAttr_constspVectorlesbytegreamp_template<CollisionPolygon2D>), AS_CALL_CDECL_OBJFIRST);
 
 
     #ifdef REGISTER_MEMBERS_MANUAL_PART_CollisionPolygon2D
     #ifdef REGISTER_MEMBERS_MANUAL_PART_CollisionPolygon2D
         REGISTER_MEMBERS_MANUAL_PART_CollisionPolygon2D();
         REGISTER_MEMBERS_MANUAL_PART_CollisionPolygon2D();
@@ -24996,11 +24998,11 @@ template <class T> CScriptArray* AnimatedModel_constspVectorlesModelMorphgreamp_
     return VectorToArray(result, "Array<ModelMorph>");
     return VectorToArray(result, "Array<ModelMorph>");
 }
 }
 
 
-// const Vector<unsigned char>& AnimatedModel::GetMorphsAttr() const
-template <class T> CScriptArray* AnimatedModel_constspVectorlesunsignedspchargreamp_GetMorphsAttr_void_template(T* _ptr)
+// const Vector<byte>& AnimatedModel::GetMorphsAttr() const
+template <class T> CScriptArray* AnimatedModel_constspVectorlesbytegreamp_GetMorphsAttr_void_template(T* _ptr)
 {
 {
-    const Vector<unsigned char>& result = _ptr->GetMorphsAttr();
-    return VectorToArray(result, "Array<uint8>");
+    const Vector<byte>& result = _ptr->GetMorphsAttr();
+    return VectorToArray(result, "Array<byte>");
 }
 }
 
 
 // const Vector<SharedPtr<VertexBuffer>>& AnimatedModel::GetMorphVertexBuffers() const
 // const Vector<SharedPtr<VertexBuffer>>& AnimatedModel::GetMorphVertexBuffers() const
@@ -25010,10 +25012,10 @@ template <class T> CScriptArray* AnimatedModel_constspVectorlesSharedPtrlesVerte
     return VectorToHandleArray(result, "Array<VertexBuffer@>");
     return VectorToHandleArray(result, "Array<VertexBuffer@>");
 }
 }
 
 
-// void AnimatedModel::SetMorphsAttr(const Vector<unsigned char>& value)
-template <class T> void AnimatedModel_void_SetMorphsAttr_constspVectorlesunsignedspchargreamp_template(T* _ptr, CScriptArray* value_conv)
+// void AnimatedModel::SetMorphsAttr(const Vector<byte>& value)
+template <class T> void AnimatedModel_void_SetMorphsAttr_constspVectorlesbytegreamp_template(T* _ptr, CScriptArray* value_conv)
 {
 {
-    Vector<unsigned char> value = ArrayToVector<unsigned char>(value_conv);
+    Vector<byte> value = ArrayToVector<byte>(value_conv);
     _ptr->SetMorphsAttr(value);
     _ptr->SetMorphsAttr(value);
 }
 }
 
 
@@ -25064,8 +25066,8 @@ template <class T> void RegisterMembers_AnimatedModel(asIScriptEngine* engine, c
     // const Vector<ModelMorph>& AnimatedModel::GetMorphs() const
     // const Vector<ModelMorph>& AnimatedModel::GetMorphs() const
     engine->RegisterObjectMethod(className, "Array<ModelMorph>@ GetMorphs() const", AS_FUNCTION_OBJFIRST(AnimatedModel_constspVectorlesModelMorphgreamp_GetMorphs_void_template<AnimatedModel>), AS_CALL_CDECL_OBJFIRST);
     engine->RegisterObjectMethod(className, "Array<ModelMorph>@ GetMorphs() const", AS_FUNCTION_OBJFIRST(AnimatedModel_constspVectorlesModelMorphgreamp_GetMorphs_void_template<AnimatedModel>), AS_CALL_CDECL_OBJFIRST);
 
 
-    // const Vector<unsigned char>& AnimatedModel::GetMorphsAttr() const
-    engine->RegisterObjectMethod(className, "Array<uint8>@ GetMorphsAttr() const", AS_FUNCTION_OBJFIRST(AnimatedModel_constspVectorlesunsignedspchargreamp_GetMorphsAttr_void_template<AnimatedModel>), AS_CALL_CDECL_OBJFIRST);
+    // const Vector<byte>& AnimatedModel::GetMorphsAttr() const
+    engine->RegisterObjectMethod(className, "Array<byte>@ GetMorphsAttr() const", AS_FUNCTION_OBJFIRST(AnimatedModel_constspVectorlesbytegreamp_GetMorphsAttr_void_template<AnimatedModel>), AS_CALL_CDECL_OBJFIRST);
 
 
     // const Vector<SharedPtr<VertexBuffer>>& AnimatedModel::GetMorphVertexBuffers() const
     // const Vector<SharedPtr<VertexBuffer>>& AnimatedModel::GetMorphVertexBuffers() const
     engine->RegisterObjectMethod(className, "Array<VertexBuffer@>@ GetMorphVertexBuffers() const", AS_FUNCTION_OBJFIRST(AnimatedModel_constspVectorlesSharedPtrlesVertexBuffergregreamp_GetMorphVertexBuffers_void_template<AnimatedModel>), AS_CALL_CDECL_OBJFIRST);
     engine->RegisterObjectMethod(className, "Array<VertexBuffer@>@ GetMorphVertexBuffers() const", AS_FUNCTION_OBJFIRST(AnimatedModel_constspVectorlesSharedPtrlesVertexBuffergregreamp_GetMorphVertexBuffers_void_template<AnimatedModel>), AS_CALL_CDECL_OBJFIRST);
@@ -25127,8 +25129,8 @@ template <class T> void RegisterMembers_AnimatedModel(asIScriptEngine* engine, c
     // void AnimatedModel::SetModel(Model* model, bool createBones = true)
     // void AnimatedModel::SetModel(Model* model, bool createBones = true)
     engine->RegisterObjectMethod(className, "void SetModel(Model@+, bool = true)", AS_METHODPR(T, SetModel, (Model*, bool), void), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "void SetModel(Model@+, bool = true)", AS_METHODPR(T, SetModel, (Model*, bool), void), AS_CALL_THISCALL);
 
 
-    // void AnimatedModel::SetMorphsAttr(const Vector<unsigned char>& value)
-    engine->RegisterObjectMethod(className, "void SetMorphsAttr(Array<uint8>@+)", AS_FUNCTION_OBJFIRST(AnimatedModel_void_SetMorphsAttr_constspVectorlesunsignedspchargreamp_template<AnimatedModel>), AS_CALL_CDECL_OBJFIRST);
+    // void AnimatedModel::SetMorphsAttr(const Vector<byte>& value)
+    engine->RegisterObjectMethod(className, "void SetMorphsAttr(Array<byte>@+)", AS_FUNCTION_OBJFIRST(AnimatedModel_void_SetMorphsAttr_constspVectorlesbytegreamp_template<AnimatedModel>), AS_CALL_CDECL_OBJFIRST);
 
 
     // void AnimatedModel::SetMorphWeight(unsigned index, float weight)
     // void AnimatedModel::SetMorphWeight(unsigned index, float weight)
     engine->RegisterObjectMethod(className, "void SetMorphWeight(uint, float)", AS_METHODPR(T, SetMorphWeight, (unsigned, float), void), AS_CALL_THISCALL);
     engine->RegisterObjectMethod(className, "void SetMorphWeight(uint, float)", AS_METHODPR(T, SetMorphWeight, (unsigned, float), void), AS_CALL_THISCALL);

+ 1 - 0
Source/Urho3D/AngelScript/Manual.cpp

@@ -90,6 +90,7 @@ void ASRegisterManualFirst(asIScriptEngine* engine)
 
 
     engine->RegisterTypedef("SDL_JoystickID", "int");
     engine->RegisterTypedef("SDL_JoystickID", "int");
     engine->RegisterTypedef("c32", "uint");
     engine->RegisterTypedef("c32", "uint");
+    engine->RegisterTypedef("byte", "uint8");
     engine->RegisterTypedef("hash16", "uint16");
     engine->RegisterTypedef("hash16", "uint16");
     engine->RegisterTypedef("hash32", "uint");
     engine->RegisterTypedef("hash32", "uint");
     engine->RegisterTypedef("hash64", "uint64");
     engine->RegisterTypedef("hash64", "uint64");

+ 2 - 2
Source/Urho3D/AngelScript/Manual_IO.cpp

@@ -16,8 +16,8 @@ void ASRegisterManualFirst_IO(asIScriptEngine* engine)
 
 
 // ========================================================================================
 // ========================================================================================
 
 
-// unsigned char* VectorBuffer::GetModifiableData() | File: ../IO/VectorBuffer.h
-static unsigned char* VectorBufferAt(unsigned index, VectorBuffer* ptr)
+// byte* VectorBuffer::GetModifiableData() | File: ../IO/VectorBuffer.h
+static byte* VectorBufferAt(unsigned index, VectorBuffer* ptr)
 {
 {
     if (index >= ptr->GetSize())
     if (index >= ptr->GetSize())
     {
     {

+ 8 - 8
Source/Urho3D/AngelScript/ScriptInstance.cpp

@@ -443,7 +443,7 @@ void ScriptInstance::SetScriptFileAttr(const ResourceRef& value)
     SetScriptFile(cache->GetResource<ScriptFile>(value.name_));
     SetScriptFile(cache->GetResource<ScriptFile>(value.name_));
 }
 }
 
 
-void ScriptInstance::SetDelayedCallsAttr(const Vector<unsigned char>& value)
+void ScriptInstance::SetDelayedCallsAttr(const Vector<byte>& value)
 {
 {
     MemoryBuffer buf(value);
     MemoryBuffer buf(value);
     delayedCalls_.Resize(buf.ReadVLE());
     delayedCalls_.Resize(buf.ReadVLE());
@@ -460,7 +460,7 @@ void ScriptInstance::SetDelayedCallsAttr(const Vector<unsigned char>& value)
         UpdateEventSubscription();
         UpdateEventSubscription();
 }
 }
 
 
-void ScriptInstance::SetScriptDataAttr(const Vector<unsigned char>& data)
+void ScriptInstance::SetScriptDataAttr(const Vector<byte>& data)
 {
 {
     if (scriptObject_ && methods_[METHOD_LOAD])
     if (scriptObject_ && methods_[METHOD_LOAD])
     {
     {
@@ -471,7 +471,7 @@ void ScriptInstance::SetScriptDataAttr(const Vector<unsigned char>& data)
     }
     }
 }
 }
 
 
-void ScriptInstance::SetScriptNetworkDataAttr(const Vector<unsigned char>& data)
+void ScriptInstance::SetScriptNetworkDataAttr(const Vector<byte>& data)
 {
 {
     if (scriptObject_ && methods_[METHOD_READNETWORKUPDATE])
     if (scriptObject_ && methods_[METHOD_READNETWORKUPDATE])
     {
     {
@@ -487,7 +487,7 @@ ResourceRef ScriptInstance::GetScriptFileAttr() const
     return GetResourceRef(scriptFile_, ScriptFile::GetTypeStatic());
     return GetResourceRef(scriptFile_, ScriptFile::GetTypeStatic());
 }
 }
 
 
-Vector<unsigned char> ScriptInstance::GetDelayedCallsAttr() const
+Vector<byte> ScriptInstance::GetDelayedCallsAttr() const
 {
 {
     VectorBuffer buf;
     VectorBuffer buf;
     buf.WriteVLE(delayedCalls_.Size());
     buf.WriteVLE(delayedCalls_.Size());
@@ -502,10 +502,10 @@ Vector<unsigned char> ScriptInstance::GetDelayedCallsAttr() const
     return buf.GetBuffer();
     return buf.GetBuffer();
 }
 }
 
 
-Vector<unsigned char> ScriptInstance::GetScriptDataAttr() const
+Vector<byte> ScriptInstance::GetScriptDataAttr() const
 {
 {
     if (!scriptObject_ || !methods_[METHOD_SAVE])
     if (!scriptObject_ || !methods_[METHOD_SAVE])
-        return Vector<unsigned char>();
+        return Vector<byte>();
     else
     else
     {
     {
         VectorBuffer buf;
         VectorBuffer buf;
@@ -516,10 +516,10 @@ Vector<unsigned char> ScriptInstance::GetScriptDataAttr() const
     }
     }
 }
 }
 
 
-Vector<unsigned char> ScriptInstance::GetScriptNetworkDataAttr() const
+Vector<byte> ScriptInstance::GetScriptNetworkDataAttr() const
 {
 {
     if (!scriptObject_ || !methods_[METHOD_WRITENETWORKUPDATE])
     if (!scriptObject_ || !methods_[METHOD_WRITENETWORKUPDATE])
-        return Vector<unsigned char>();
+        return Vector<byte>();
     else
     else
     {
     {
         VectorBuffer buf;
         VectorBuffer buf;

+ 6 - 6
Source/Urho3D/AngelScript/ScriptInstance.h

@@ -119,19 +119,19 @@ public:
     /// Set script file attribute.
     /// Set script file attribute.
     void SetScriptFileAttr(const ResourceRef& value);
     void SetScriptFileAttr(const ResourceRef& value);
     /// Set delayed method calls attribute.
     /// Set delayed method calls attribute.
-    void SetDelayedCallsAttr(const Vector<unsigned char>& value);
+    void SetDelayedCallsAttr(const Vector<byte>& value);
     /// Set script file serialization attribute by calling a script function.
     /// Set script file serialization attribute by calling a script function.
-    void SetScriptDataAttr(const Vector<unsigned char>& data);
+    void SetScriptDataAttr(const Vector<byte>& data);
     /// Set script network serialization attribute by calling a script function.
     /// Set script network serialization attribute by calling a script function.
-    void SetScriptNetworkDataAttr(const Vector<unsigned char>& data);
+    void SetScriptNetworkDataAttr(const Vector<byte>& data);
     /// Return script file attribute.
     /// Return script file attribute.
     ResourceRef GetScriptFileAttr() const;
     ResourceRef GetScriptFileAttr() const;
     /// Return delayed method calls attribute.
     /// Return delayed method calls attribute.
-    Vector<unsigned char> GetDelayedCallsAttr() const;
+    Vector<byte> GetDelayedCallsAttr() const;
     /// Get script file serialization attribute by calling a script function.
     /// Get script file serialization attribute by calling a script function.
-    Vector<unsigned char> GetScriptDataAttr() const;
+    Vector<byte> GetScriptDataAttr() const;
     /// Get script network serialization attribute by calling a script function.
     /// Get script network serialization attribute by calling a script function.
-    Vector<unsigned char> GetScriptNetworkDataAttr() const;
+    Vector<byte> GetScriptNetworkDataAttr() const;
 
 
 protected:
 protected:
     /// Handle scene being assigned.
     /// Handle scene being assigned.

+ 4 - 4
Source/Urho3D/Core/StringUtils.cpp

@@ -603,12 +603,12 @@ void BufferToString(String& dest, const void* data, unsigned size)
     }
     }
 }
 }
 
 
-void StringToBuffer(Vector<unsigned char>& dest, const String& source)
+void StringToBuffer(Vector<byte>& dest, const String& source)
 {
 {
     StringToBuffer(dest, source.CString());
     StringToBuffer(dest, source.CString());
 }
 }
 
 
-void StringToBuffer(Vector<unsigned char>& dest, const char* source)
+void StringToBuffer(Vector<byte>& dest, const char* source)
 {
 {
     if (!source)
     if (!source)
     {
     {
@@ -639,7 +639,7 @@ void StringToBuffer(Vector<unsigned char>& dest, const char* source)
         }
         }
         else if (!inSpace && *ptr == ' ')
         else if (!inSpace && *ptr == ' ')
         {
         {
-            dest[index++] = (unsigned char)value;
+            dest[index++] = (byte)value;
             inSpace = true;
             inSpace = true;
         }
         }
 
 
@@ -648,7 +648,7 @@ void StringToBuffer(Vector<unsigned char>& dest, const char* source)
 
 
     // Write the final value
     // Write the final value
     if (!inSpace && index < size)
     if (!inSpace && index < size)
-        dest[index] = (unsigned char)value;
+        dest[index] = (byte)value;
 }
 }
 
 
 i32 GetStringListIndex(const String& value, const String* strings, i32 defaultIndex, bool caseSensitive)
 i32 GetStringListIndex(const String& value, const String* strings, i32 defaultIndex, bool caseSensitive)

+ 2 - 2
Source/Urho3D/Core/StringUtils.h

@@ -95,9 +95,9 @@ URHO3D_API String ToStringHex(unsigned value);
 /// Convert a byte buffer to a string.
 /// Convert a byte buffer to a string.
 URHO3D_API void BufferToString(String& dest, const void* data, unsigned size);
 URHO3D_API void BufferToString(String& dest, const void* data, unsigned size);
 /// Convert a string to a byte buffer.
 /// Convert a string to a byte buffer.
-URHO3D_API void StringToBuffer(Vector<unsigned char>& dest, const String& source);
+URHO3D_API void StringToBuffer(Vector<byte>& dest, const String& source);
 /// Convert a C string to a byte buffer.
 /// Convert a C string to a byte buffer.
-URHO3D_API void StringToBuffer(Vector<unsigned char>& dest, const char* source);
+URHO3D_API void StringToBuffer(Vector<byte>& dest, const char* source);
 /// Return an index to a string list corresponding to the given string, or a default value if not found. The string list must be empty-terminated.
 /// Return an index to a string list corresponding to the given string, or a default value if not found. The string list must be empty-terminated.
 URHO3D_API i32 GetStringListIndex(const String& value, const String* strings, i32 defaultIndex, bool caseSensitive = false);
 URHO3D_API i32 GetStringListIndex(const String& value, const String* strings, i32 defaultIndex, bool caseSensitive = false);
 /// Return an index to a string list corresponding to the given C string, or a default value if not found. The string list must be empty-terminated.
 /// Return an index to a string list corresponding to the given C string, or a default value if not found. The string list must be empty-terminated.

+ 11 - 11
Source/Urho3D/Core/Variant.cpp

@@ -12,7 +12,7 @@ namespace Urho3D
 {
 {
 
 
 const Variant Variant::EMPTY { };
 const Variant Variant::EMPTY { };
-const Vector<unsigned char> Variant::emptyBuffer { };
+const Vector<byte> Variant::emptyBuffer { };
 const ResourceRef Variant::emptyResourceRef { };
 const ResourceRef Variant::emptyResourceRef { };
 const ResourceRefList Variant::emptyResourceRefList { };
 const ResourceRefList Variant::emptyResourceRefList { };
 const VariantMap Variant::emptyVariantMap;
 const VariantMap Variant::emptyVariantMap;
@@ -216,10 +216,10 @@ bool Variant::operator ==(const Variant& rhs) const
     }
     }
 }
 }
 
 
-bool Variant::operator ==(const Vector<unsigned char>& rhs) const
+bool Variant::operator ==(const Vector<byte>& rhs) const
 {
 {
-    // Use strncmp() instead of Vector<unsigned char>::operator ==()
-    const Vector<unsigned char>& buffer = value_.buffer_;
+    // Use strncmp() instead of Vector<byte>::operator ==()
+    const Vector<byte>& buffer = value_.buffer_;
     return type_ == VAR_BUFFER && buffer.Size() == rhs.Size() ?
     return type_ == VAR_BUFFER && buffer.Size() == rhs.Size() ?
         strncmp(reinterpret_cast<const char*>(&buffer[0]), reinterpret_cast<const char*>(&rhs[0]), buffer.Size()) == 0 :
         strncmp(reinterpret_cast<const char*>(&buffer[0]), reinterpret_cast<const char*>(&rhs[0]), buffer.Size()) == 0 :
         false;
         false;
@@ -227,7 +227,7 @@ bool Variant::operator ==(const Vector<unsigned char>& rhs) const
 
 
 bool Variant::operator ==(const VectorBuffer& rhs) const
 bool Variant::operator ==(const VectorBuffer& rhs) const
 {
 {
-    const Vector<unsigned char>& buffer = value_.buffer_;
+    const Vector<byte>& buffer = value_.buffer_;
     return type_ == VAR_BUFFER && buffer.Size() == rhs.GetSize() ?
     return type_ == VAR_BUFFER && buffer.Size() == rhs.GetSize() ?
         strncmp(reinterpret_cast<const char*>(&buffer[0]), reinterpret_cast<const char*>(rhs.GetData()), buffer.Size()) == 0 :
         strncmp(reinterpret_cast<const char*>(&buffer[0]), reinterpret_cast<const char*>(rhs.GetData()), buffer.Size()) == 0 :
         false;
         false;
@@ -376,7 +376,7 @@ void Variant::SetBuffer(const void* data, unsigned size)
         size = 0;
         size = 0;
 
 
     SetType(VAR_BUFFER);
     SetType(VAR_BUFFER);
-    Vector<unsigned char>& buffer = value_.buffer_;
+    Vector<byte>& buffer = value_.buffer_;
     buffer.Resize(size);
     buffer.Resize(size);
     if (size)
     if (size)
         memcpy(&buffer[0], data, size);
         memcpy(&buffer[0], data, size);
@@ -454,7 +454,7 @@ String Variant::ToString() const
 
 
     case VAR_BUFFER:
     case VAR_BUFFER:
         {
         {
-            const Vector<unsigned char>& buffer = value_.buffer_;
+            const Vector<byte>& buffer = value_.buffer_;
             String ret;
             String ret;
             BufferToString(ret, buffer.Begin().ptr_, buffer.Size());
             BufferToString(ret, buffer.Begin().ptr_, buffer.Size());
             return ret;
             return ret;
@@ -613,7 +613,7 @@ void Variant::SetType(VariantType newType)
         break;
         break;
 
 
     case VAR_BUFFER:
     case VAR_BUFFER:
-        value_.buffer_.~Vector<unsigned char>();
+        value_.buffer_.~Vector<byte>();
         break;
         break;
 
 
     case VAR_RESOURCEREF:
     case VAR_RESOURCEREF:
@@ -673,7 +673,7 @@ void Variant::SetType(VariantType newType)
         break;
         break;
 
 
     case VAR_BUFFER:
     case VAR_BUFFER:
-        new(&value_.buffer_) Vector<unsigned char>();
+        new(&value_.buffer_) Vector<byte>();
         break;
         break;
 
 
     case VAR_RESOURCEREF:
     case VAR_RESOURCEREF:
@@ -822,7 +822,7 @@ template <> const IntVector3& Variant::Get<const IntVector3&>() const
     return GetIntVector3();
     return GetIntVector3();
 }
 }
 
 
-template <> const Vector<unsigned char>& Variant::Get<const Vector<unsigned char>&>() const
+template <> const Vector<byte>& Variant::Get<const Vector<byte>&>() const
 {
 {
     return GetBuffer();
     return GetBuffer();
 }
 }
@@ -927,7 +927,7 @@ template <> IntVector3 Variant::Get<IntVector3>() const
     return GetIntVector3();
     return GetIntVector3();
 }
 }
 
 
-template <> Vector<unsigned char> Variant::Get<Vector<unsigned char>>() const
+template <> Vector<byte> Variant::Get<Vector<byte>>() const
 {
 {
     return GetBuffer();
     return GetBuffer();
 }
 }

+ 12 - 12
Source/Urho3D/Core/Variant.h

@@ -262,7 +262,7 @@ static const unsigned VARIANT_VALUE_SIZE = sizeof(void*) * 4;
 /// Union for the possible variant values. Objects exceeding the VARIANT_VALUE_SIZE are allocated on the heap.
 /// Union for the possible variant values. Objects exceeding the VARIANT_VALUE_SIZE are allocated on the heap.
 union VariantValue
 union VariantValue
 {
 {
-    unsigned char storage_[VARIANT_VALUE_SIZE];
+    byte storage_[VARIANT_VALUE_SIZE];
     int int_;
     int int_;
     bool bool_;
     bool bool_;
     float float_;
     float float_;
@@ -286,7 +286,7 @@ union VariantValue
     StringVector stringVector_;
     StringVector stringVector_;
     VariantVector variantVector_;
     VariantVector variantVector_;
     VariantMap variantMap_;
     VariantMap variantMap_;
-    Vector<unsigned char> buffer_;
+    Vector<byte> buffer_;
     ResourceRef resourceRef_;
     ResourceRef resourceRef_;
     ResourceRefList resourceRefList_;
     ResourceRefList resourceRefList_;
     CustomVariantValue* customValueHeap_;
     CustomVariantValue* customValueHeap_;
@@ -419,7 +419,7 @@ public:
     }
     }
 
 
     /// Construct from a buffer.
     /// Construct from a buffer.
-    Variant(const Vector<unsigned char>& value)      // NOLINT(google-explicit-constructor)
+    Variant(const Vector<byte>& value)      // NOLINT(google-explicit-constructor)
     {
     {
         *this = value;
         *this = value;
     }
     }
@@ -696,7 +696,7 @@ public:
     }
     }
 
 
     /// Assign from a buffer.
     /// Assign from a buffer.
-    Variant& operator =(const Vector<unsigned char>& rhs)
+    Variant& operator =(const Vector<byte>& rhs)
     {
     {
         SetType(VAR_BUFFER);
         SetType(VAR_BUFFER);
         value_.buffer_ = rhs;
         value_.buffer_ = rhs;
@@ -891,7 +891,7 @@ public:
     }
     }
 
 
     /// Test for equality with a buffer. To return true, both the type and value must match.
     /// Test for equality with a buffer. To return true, both the type and value must match.
-    bool operator ==(const Vector<unsigned char>& rhs) const;
+    bool operator ==(const Vector<byte>& rhs) const;
     /// Test for equality with a %VectorBuffer. To return true, both the type and value must match.
     /// Test for equality with a %VectorBuffer. To return true, both the type and value must match.
     bool operator ==(const VectorBuffer& rhs) const;
     bool operator ==(const VectorBuffer& rhs) const;
 
 
@@ -1035,7 +1035,7 @@ public:
     bool operator !=(const String& rhs) const { return !(*this == rhs); }
     bool operator !=(const String& rhs) const { return !(*this == rhs); }
 
 
     /// Test for inequality with a buffer.
     /// Test for inequality with a buffer.
-    bool operator !=(const Vector<unsigned char>& rhs) const { return !(*this == rhs); }
+    bool operator !=(const Vector<byte>& rhs) const { return !(*this == rhs); }
 
 
     /// Test for inequality with a %VectorBuffer.
     /// Test for inequality with a %VectorBuffer.
     bool operator !=(const VectorBuffer& rhs) const { return !(*this == rhs); }
     bool operator !=(const VectorBuffer& rhs) const { return !(*this == rhs); }
@@ -1223,7 +1223,7 @@ public:
     const String& GetString() const { return type_ == VAR_STRING ? value_.string_ : String::EMPTY; }
     const String& GetString() const { return type_ == VAR_STRING ? value_.string_ : String::EMPTY; }
 
 
     /// Return buffer or empty on type mismatch.
     /// Return buffer or empty on type mismatch.
-    const Vector<unsigned char>& GetBuffer() const
+    const Vector<byte>& GetBuffer() const
     {
     {
         return type_ == VAR_BUFFER ? value_.buffer_ : emptyBuffer;
         return type_ == VAR_BUFFER ? value_.buffer_ : emptyBuffer;
     }
     }
@@ -1375,7 +1375,7 @@ public:
     template <class T> T Get() const;
     template <class T> T Get() const;
 
 
     /// Return a pointer to a modifiable buffer or null on type mismatch.
     /// Return a pointer to a modifiable buffer or null on type mismatch.
-    Vector<unsigned char>* GetBufferPtr()
+    Vector<byte>* GetBufferPtr()
     {
     {
         return type_ == VAR_BUFFER ? &value_.buffer_ : nullptr;
         return type_ == VAR_BUFFER ? &value_.buffer_ : nullptr;
     }
     }
@@ -1410,7 +1410,7 @@ public:
     /// Empty variant.
     /// Empty variant.
     static const Variant EMPTY;
     static const Variant EMPTY;
     /// Empty buffer.
     /// Empty buffer.
-    static const Vector<unsigned char> emptyBuffer;
+    static const Vector<byte> emptyBuffer;
     /// Empty resource reference.
     /// Empty resource reference.
     static const ResourceRef emptyResourceRef;
     static const ResourceRef emptyResourceRef;
     /// Empty resource reference list.
     /// Empty resource reference list.
@@ -1466,7 +1466,7 @@ template <> inline VariantType GetVariantType<String>() { return VAR_STRING; }
 
 
 template <> inline VariantType GetVariantType<StringHash>() { return VAR_INT; }
 template <> inline VariantType GetVariantType<StringHash>() { return VAR_INT; }
 
 
-template <> inline VariantType GetVariantType<Vector<unsigned char>>() { return VAR_BUFFER; }
+template <> inline VariantType GetVariantType<Vector<byte>>() { return VAR_BUFFER; }
 
 
 template <> inline VariantType GetVariantType<ResourceRef>() { return VAR_RESOURCEREF; }
 template <> inline VariantType GetVariantType<ResourceRef>() { return VAR_RESOURCEREF; }
 
 
@@ -1531,7 +1531,7 @@ template <> URHO3D_API const IntVector2& Variant::Get<const IntVector2&>() const
 
 
 template <> URHO3D_API const IntVector3& Variant::Get<const IntVector3&>() const;
 template <> URHO3D_API const IntVector3& Variant::Get<const IntVector3&>() const;
 
 
-template <> URHO3D_API const Vector<unsigned char>& Variant::Get<const Vector<unsigned char>&>() const;
+template <> URHO3D_API const Vector<byte>& Variant::Get<const Vector<byte>&>() const;
 
 
 template <> URHO3D_API void* Variant::Get<void*>() const;
 template <> URHO3D_API void* Variant::Get<void*>() const;
 
 
@@ -1573,7 +1573,7 @@ template <> URHO3D_API IntVector2 Variant::Get<IntVector2>() const;
 
 
 template <> URHO3D_API IntVector3 Variant::Get<IntVector3>() const;
 template <> URHO3D_API IntVector3 Variant::Get<IntVector3>() const;
 
 
-template <> URHO3D_API Vector<unsigned char> Variant::Get<Vector<unsigned char>>() const;
+template <> URHO3D_API Vector<byte> Variant::Get<Vector<byte>>() const;
 
 
 template <> URHO3D_API Matrix3 Variant::Get<Matrix3>() const;
 template <> URHO3D_API Matrix3 Variant::Get<Matrix3>() const;
 
 

+ 2 - 2
Source/Urho3D/Graphics/AnimatedModel.cpp

@@ -836,7 +836,7 @@ void AnimatedModel::SetAnimationStatesAttr(const VariantVector& value)
     }
     }
 }
 }
 
 
-void AnimatedModel::SetMorphsAttr(const Vector<unsigned char>& value)
+void AnimatedModel::SetMorphsAttr(const Vector<byte>& value)
 {
 {
     for (unsigned index = 0; index < value.Size(); ++index)
     for (unsigned index = 0; index < value.Size(); ++index)
         SetMorphWeight(index, (float)value[index] / 255.0f);
         SetMorphWeight(index, (float)value[index] / 255.0f);
@@ -877,7 +877,7 @@ VariantVector AnimatedModel::GetAnimationStatesAttr() const
     return ret;
     return ret;
 }
 }
 
 
-const Vector<unsigned char>& AnimatedModel::GetMorphsAttr() const
+const Vector<byte>& AnimatedModel::GetMorphsAttr() const
 {
 {
     attrBuffer_.Clear();
     attrBuffer_.Clear();
     for (Vector<ModelMorph>::ConstIterator i = morphs_.Begin(); i != morphs_.End(); ++i)
     for (Vector<ModelMorph>::ConstIterator i = morphs_.Begin(); i != morphs_.End(); ++i)

+ 2 - 2
Source/Urho3D/Graphics/AnimatedModel.h

@@ -141,7 +141,7 @@ public:
     /// Set animation states attribute.
     /// Set animation states attribute.
     void SetAnimationStatesAttr(const VariantVector& value);
     void SetAnimationStatesAttr(const VariantVector& value);
     /// Set morphs attribute.
     /// Set morphs attribute.
-    void SetMorphsAttr(const Vector<unsigned char>& value);
+    void SetMorphsAttr(const Vector<byte>& value);
     /// Return model attribute.
     /// Return model attribute.
     ResourceRef GetModelAttr() const;
     ResourceRef GetModelAttr() const;
     /// Return bones' animation enabled attribute.
     /// Return bones' animation enabled attribute.
@@ -149,7 +149,7 @@ public:
     /// Return animation states attribute.
     /// Return animation states attribute.
     VariantVector GetAnimationStatesAttr() const;
     VariantVector GetAnimationStatesAttr() const;
     /// Return morphs attribute.
     /// Return morphs attribute.
-    const Vector<unsigned char>& GetMorphsAttr() const;
+    const Vector<byte>& GetMorphsAttr() const;
 
 
     /// Return per-geometry bone mappings.
     /// Return per-geometry bone mappings.
     const Vector<Vector<unsigned>>& GetGeometryBoneMappings() const { return geometryBoneMappings_; }
     const Vector<Vector<unsigned>>& GetGeometryBoneMappings() const { return geometryBoneMappings_; }

+ 2 - 2
Source/Urho3D/Graphics/AnimationController.cpp

@@ -590,7 +590,7 @@ void AnimationController::SetAnimationsAttr(const VariantVector& value)
     }
     }
 }
 }
 
 
-void AnimationController::SetNetAnimationsAttr(const Vector<unsigned char>& value)
+void AnimationController::SetNetAnimationsAttr(const Vector<byte>& value)
 {
 {
     MemoryBuffer buf(value);
     MemoryBuffer buf(value);
 
 
@@ -739,7 +739,7 @@ VariantVector AnimationController::GetAnimationsAttr() const
     return ret;
     return ret;
 }
 }
 
 
-const Vector<unsigned char>& AnimationController::GetNetAnimationsAttr() const
+const Vector<byte>& AnimationController::GetNetAnimationsAttr() const
 {
 {
     attrBuffer_.Clear();
     attrBuffer_.Clear();
 
 

+ 2 - 2
Source/Urho3D/Graphics/AnimationController.h

@@ -162,13 +162,13 @@ public:
     /// Set animation control structures attribute.
     /// Set animation control structures attribute.
     void SetAnimationsAttr(const VariantVector& value);
     void SetAnimationsAttr(const VariantVector& value);
     /// Set animations attribute for network replication.
     /// Set animations attribute for network replication.
-    void SetNetAnimationsAttr(const Vector<unsigned char>& value);
+    void SetNetAnimationsAttr(const Vector<byte>& value);
     /// Set node animation states attribute.
     /// Set node animation states attribute.
     void SetNodeAnimationStatesAttr(const VariantVector& value);
     void SetNodeAnimationStatesAttr(const VariantVector& value);
     /// Return animation control structures attribute.
     /// Return animation control structures attribute.
     VariantVector GetAnimationsAttr() const;
     VariantVector GetAnimationsAttr() const;
     /// Return animations attribute for network replication.
     /// Return animations attribute for network replication.
-    const Vector<unsigned char>& GetNetAnimationsAttr() const;
+    const Vector<byte>& GetNetAnimationsAttr() const;
     /// Return node animation states attribute.
     /// Return node animation states attribute.
     VariantVector GetNodeAnimationStatesAttr() const;
     VariantVector GetNodeAnimationStatesAttr() const;
 
 

+ 2 - 2
Source/Urho3D/Graphics/BillboardSet.cpp

@@ -396,7 +396,7 @@ void BillboardSet::SetBillboardsAttr(const VariantVector& value)
     Commit();
     Commit();
 }
 }
 
 
-void BillboardSet::SetNetBillboardsAttr(const Vector<u8>& value)
+void BillboardSet::SetNetBillboardsAttr(const Vector<byte>& value)
 {
 {
     MemoryBuffer buf(value);
     MemoryBuffer buf(value);
     i32 numBillboards = buf.ReadVLE();
     i32 numBillboards = buf.ReadVLE();
@@ -441,7 +441,7 @@ VariantVector BillboardSet::GetBillboardsAttr() const
     return ret;
     return ret;
 }
 }
 
 
-const Vector<u8>& BillboardSet::GetNetBillboardsAttr() const
+const Vector<byte>& BillboardSet::GetNetBillboardsAttr() const
 {
 {
     attrBuffer_.Clear();
     attrBuffer_.Clear();
     attrBuffer_.WriteVLE(billboards_.Size());
     attrBuffer_.WriteVLE(billboards_.Size());

+ 2 - 2
Source/Urho3D/Graphics/BillboardSet.h

@@ -140,13 +140,13 @@ public:
     /// Set billboards attribute.
     /// Set billboards attribute.
     void SetBillboardsAttr(const VariantVector& value);
     void SetBillboardsAttr(const VariantVector& value);
     /// Set billboards attribute for network replication.
     /// Set billboards attribute for network replication.
-    void SetNetBillboardsAttr(const Vector<u8>& value);
+    void SetNetBillboardsAttr(const Vector<byte>& value);
     /// Return material attribute.
     /// Return material attribute.
     ResourceRef GetMaterialAttr() const;
     ResourceRef GetMaterialAttr() const;
     /// Return billboards attribute.
     /// Return billboards attribute.
     VariantVector GetBillboardsAttr() const;
     VariantVector GetBillboardsAttr() const;
     /// Return billboards attribute for network replication.
     /// Return billboards attribute for network replication.
-    const Vector<u8>& GetNetBillboardsAttr() const;
+    const Vector<byte>& GetNetBillboardsAttr() const;
 
 
 protected:
 protected:
     /// Recalculate the world-space bounding box.
     /// Recalculate the world-space bounding box.

+ 2 - 2
Source/Urho3D/Graphics/CustomGeometry.cpp

@@ -431,7 +431,7 @@ CustomGeometryVertex* CustomGeometry::GetVertex(unsigned geometryIndex, unsigned
                : nullptr;
                : nullptr;
 }
 }
 
 
-void CustomGeometry::SetGeometryDataAttr(const Vector<unsigned char>& value)
+void CustomGeometry::SetGeometryDataAttr(const Vector<byte>& value)
 {
 {
     if (value.Empty())
     if (value.Empty())
         return;
         return;
@@ -472,7 +472,7 @@ void CustomGeometry::SetMaterialsAttr(const ResourceRefList& value)
         SetMaterial(i, cache->GetResource<Material>(value.names_[i]));
         SetMaterial(i, cache->GetResource<Material>(value.names_[i]));
 }
 }
 
 
-Vector<unsigned char> CustomGeometry::GetGeometryDataAttr() const
+Vector<byte> CustomGeometry::GetGeometryDataAttr() const
 {
 {
     VectorBuffer ret;
     VectorBuffer ret;
 
 

+ 2 - 2
Source/Urho3D/Graphics/CustomGeometry.h

@@ -105,11 +105,11 @@ public:
     CustomGeometryVertex* GetVertex(unsigned geometryIndex, unsigned vertexNum);
     CustomGeometryVertex* GetVertex(unsigned geometryIndex, unsigned vertexNum);
 
 
     /// Set geometry data attribute.
     /// Set geometry data attribute.
-    void SetGeometryDataAttr(const Vector<unsigned char>& value);
+    void SetGeometryDataAttr(const Vector<byte>& value);
     /// Set materials attribute.
     /// Set materials attribute.
     void SetMaterialsAttr(const ResourceRefList& value);
     void SetMaterialsAttr(const ResourceRefList& value);
     /// Return geometry data attribute.
     /// Return geometry data attribute.
-    Vector<unsigned char> GetGeometryDataAttr() const;
+    Vector<byte> GetGeometryDataAttr() const;
     /// Return materials attribute.
     /// Return materials attribute.
     const ResourceRefList& GetMaterialsAttr() const;
     const ResourceRefList& GetMaterialsAttr() const;
 
 

+ 2 - 2
Source/Urho3D/Graphics/DecalSet.cpp

@@ -498,7 +498,7 @@ void DecalSet::SetMaterialAttr(const ResourceRef& value)
     SetMaterial(cache->GetResource<Material>(value.name_));
     SetMaterial(cache->GetResource<Material>(value.name_));
 }
 }
 
 
-void DecalSet::SetDecalsAttr(const Vector<unsigned char>& value)
+void DecalSet::SetDecalsAttr(const Vector<byte>& value)
 {
 {
     RemoveAllDecals();
     RemoveAllDecals();
 
 
@@ -576,7 +576,7 @@ ResourceRef DecalSet::GetMaterialAttr() const
     return GetResourceRef(batches_[0].material_, Material::GetTypeStatic());
     return GetResourceRef(batches_[0].material_, Material::GetTypeStatic());
 }
 }
 
 
-Vector<unsigned char> DecalSet::GetDecalsAttr() const
+Vector<byte> DecalSet::GetDecalsAttr() const
 {
 {
     VectorBuffer ret;
     VectorBuffer ret;
 
 

+ 2 - 2
Source/Urho3D/Graphics/DecalSet.h

@@ -159,11 +159,11 @@ public:
     /// Set material attribute.
     /// Set material attribute.
     void SetMaterialAttr(const ResourceRef& value);
     void SetMaterialAttr(const ResourceRef& value);
     /// Set decals attribute.
     /// Set decals attribute.
-    void SetDecalsAttr(const Vector<unsigned char>& value);
+    void SetDecalsAttr(const Vector<byte>& value);
     /// Return material attribute.
     /// Return material attribute.
     ResourceRef GetMaterialAttr() const;
     ResourceRef GetMaterialAttr() const;
     /// Return decals attribute.
     /// Return decals attribute.
-    Vector<unsigned char> GetDecalsAttr() const;
+    Vector<byte> GetDecalsAttr() const;
 
 
 protected:
 protected:
     /// Recalculate the world-space bounding box.
     /// Recalculate the world-space bounding box.

+ 1 - 1
Source/Urho3D/Graphics/Graphics.cpp

@@ -198,7 +198,7 @@ void Graphics::SetShaderParameter(StringHash param, const Variant& value)
 
 
     case VAR_BUFFER:
     case VAR_BUFFER:
         {
         {
-            const Vector<u8>& buffer = value.GetBuffer();
+            const Vector<byte>& buffer = value.GetBuffer();
             if (buffer.Size() >= sizeof(float))
             if (buffer.Size() >= sizeof(float))
                 SetShaderParameter(param, reinterpret_cast<const float*>(&buffer[0]), buffer.Size() / sizeof(float));
                 SetShaderParameter(param, reinterpret_cast<const float*>(&buffer[0]), buffer.Size() / sizeof(float));
         }
         }

+ 1 - 1
Source/Urho3D/Graphics/Material.cpp

@@ -1279,7 +1279,7 @@ void Material::RefreshShaderParameterHash()
     }
     }
 
 
     shaderParameterHash_ = 0;
     shaderParameterHash_ = 0;
-    const unsigned char* data = temp.GetData();
+    const byte* data = temp.GetData();
     unsigned dataSize = temp.GetSize();
     unsigned dataSize = temp.GetSize();
     for (unsigned i = 0; i < dataSize; ++i)
     for (unsigned i = 0; i < dataSize; ++i)
         shaderParameterHash_ = SDBMHash(shaderParameterHash_, data[i]);
         shaderParameterHash_ = SDBMHash(shaderParameterHash_, data[i]);

+ 2 - 2
Source/Urho3D/IO/Deserializer.cpp

@@ -262,9 +262,9 @@ StringHash Deserializer::ReadStringHash()
     return StringHash(ReadU32());
     return StringHash(ReadU32());
 }
 }
 
 
-Vector<u8> Deserializer::ReadBuffer()
+Vector<byte> Deserializer::ReadBuffer()
 {
 {
-    Vector<u8> ret(ReadVLE());
+    Vector<byte> ret(ReadVLE());
     if (ret.Size())
     if (ret.Size())
         Read(&ret[0], ret.Size());
         Read(&ret[0], ret.Size());
     return ret;
     return ret;

+ 1 - 1
Source/Urho3D/IO/Deserializer.h

@@ -111,7 +111,7 @@ public:
     /// Read a 32-bit StringHash.
     /// Read a 32-bit StringHash.
     StringHash ReadStringHash();
     StringHash ReadStringHash();
     /// Read a buffer with size encoded as VLE.
     /// Read a buffer with size encoded as VLE.
-    Vector<u8> ReadBuffer();
+    Vector<byte> ReadBuffer();
     /// Read a resource reference.
     /// Read a resource reference.
     ResourceRef ReadResourceRef();
     ResourceRef ReadResourceRef();
     /// Read a resource reference list.
     /// Read a resource reference list.

+ 9 - 9
Source/Urho3D/IO/MemoryBuffer.cpp

@@ -10,7 +10,7 @@ namespace Urho3D
 
 
 MemoryBuffer::MemoryBuffer(void* data, i32 size) :
 MemoryBuffer::MemoryBuffer(void* data, i32 size) :
     AbstractFile(size),
     AbstractFile(size),
-    buffer_((u8*)data),
+    buffer_((byte*)data),
     readOnly_(false)
     readOnly_(false)
 {
 {
     assert(size >= 0);
     assert(size >= 0);
@@ -21,7 +21,7 @@ MemoryBuffer::MemoryBuffer(void* data, i32 size) :
 
 
 MemoryBuffer::MemoryBuffer(const void* data, i32 size) :
 MemoryBuffer::MemoryBuffer(const void* data, i32 size) :
     AbstractFile(size),
     AbstractFile(size),
-    buffer_((u8*)data),
+    buffer_((byte*)data),
     readOnly_(true)
     readOnly_(true)
 {
 {
     assert(size >= 0);
     assert(size >= 0);
@@ -30,16 +30,16 @@ MemoryBuffer::MemoryBuffer(const void* data, i32 size) :
         size_ = 0;
         size_ = 0;
 }
 }
 
 
-MemoryBuffer::MemoryBuffer(Vector<u8>& data) :
+MemoryBuffer::MemoryBuffer(Vector<byte>& data) :
     AbstractFile(data.Size()),
     AbstractFile(data.Size()),
     buffer_(data.Begin().ptr_),
     buffer_(data.Begin().ptr_),
     readOnly_(false)
     readOnly_(false)
 {
 {
 }
 }
 
 
-MemoryBuffer::MemoryBuffer(const Vector<u8>& data) :
+MemoryBuffer::MemoryBuffer(const Vector<byte>& data) :
     AbstractFile(data.Size()),
     AbstractFile(data.Size()),
-    buffer_(const_cast<u8*>(data.Begin().ptr_)),
+    buffer_(const_cast<byte*>(data.Begin().ptr_)),
     readOnly_(true)
     readOnly_(true)
 {
 {
 }
 }
@@ -53,8 +53,8 @@ i32 MemoryBuffer::Read(void* dest, i32 size)
     if (!size)
     if (!size)
         return 0;
         return 0;
 
 
-    u8* srcPtr = &buffer_[position_];
-    u8* destPtr = (u8*)dest;
+    byte* srcPtr = &buffer_[position_];
+    byte* destPtr = (byte*)dest;
     position_ += size;
     position_ += size;
 
 
     memcpy(destPtr, srcPtr, size);
     memcpy(destPtr, srcPtr, size);
@@ -82,8 +82,8 @@ i32 MemoryBuffer::Write(const void* data, i32 size)
     if (!size)
     if (!size)
         return 0;
         return 0;
 
 
-    u8* srcPtr = (u8*)data;
-    u8* destPtr = &buffer_[position_];
+    byte* srcPtr = (byte*)data;
+    byte* destPtr = &buffer_[position_];
     position_ += size;
     position_ += size;
 
 
     memcpy(destPtr, srcPtr, size);
     memcpy(destPtr, srcPtr, size);

+ 4 - 4
Source/Urho3D/IO/MemoryBuffer.h

@@ -18,9 +18,9 @@ public:
     /// Construct as read-only with a pointer and size.
     /// Construct as read-only with a pointer and size.
     MemoryBuffer(const void* data, i32 size);
     MemoryBuffer(const void* data, i32 size);
     /// Construct from a vector, which must not go out of scope before MemoryBuffer.
     /// Construct from a vector, which must not go out of scope before MemoryBuffer.
-    explicit MemoryBuffer(Vector<u8>& data);
+    explicit MemoryBuffer(Vector<byte>& data);
     /// Construct from a read-only vector, which must not go out of scope before MemoryBuffer.
     /// Construct from a read-only vector, which must not go out of scope before MemoryBuffer.
-    explicit MemoryBuffer(const Vector<u8>& data);
+    explicit MemoryBuffer(const Vector<byte>& data);
 
 
     /// Read bytes from the memory area. Return number of bytes actually read.
     /// Read bytes from the memory area. Return number of bytes actually read.
     i32 Read(void* dest, i32 size) override;
     i32 Read(void* dest, i32 size) override;
@@ -30,14 +30,14 @@ public:
     i32 Write(const void* data, i32 size) override;
     i32 Write(const void* data, i32 size) override;
 
 
     /// Return memory area.
     /// Return memory area.
-    u8* GetData() { return buffer_; }
+    byte* GetData() { return buffer_; }
 
 
     /// Return whether buffer is read-only.
     /// Return whether buffer is read-only.
     bool IsReadOnly() { return readOnly_; }
     bool IsReadOnly() { return readOnly_; }
 
 
 private:
 private:
     /// Pointer to the memory area.
     /// Pointer to the memory area.
-    u8* buffer_;
+    byte* buffer_;
     /// Read-only flag.
     /// Read-only flag.
     bool readOnly_;
     bool readOnly_;
 };
 };

+ 1 - 1
Source/Urho3D/IO/Serializer.cpp

@@ -189,7 +189,7 @@ bool Serializer::WriteStringHash(const StringHash& value)
     return WriteU32(value.Value());
     return WriteU32(value.Value());
 }
 }
 
 
-bool Serializer::WriteBuffer(const Vector<unsigned char>& value)
+bool Serializer::WriteBuffer(const Vector<byte>& value)
 {
 {
     bool success = true;
     bool success = true;
     unsigned size = value.Size();
     unsigned size = value.Size();

+ 1 - 1
Source/Urho3D/IO/Serializer.h

@@ -95,7 +95,7 @@ public:
     /// Write a 32-bit StringHash.
     /// Write a 32-bit StringHash.
     bool WriteStringHash(const StringHash& value);
     bool WriteStringHash(const StringHash& value);
     /// Write a buffer, with size encoded as VLE.
     /// Write a buffer, with size encoded as VLE.
-    bool WriteBuffer(const Vector<unsigned char>& value);
+    bool WriteBuffer(const Vector<byte>& value);
     /// Write a resource reference.
     /// Write a resource reference.
     bool WriteResourceRef(const ResourceRef& value);
     bool WriteResourceRef(const ResourceRef& value);
     /// Write a resource reference list.
     /// Write a resource reference list.

+ 6 - 6
Source/Urho3D/IO/VectorBuffer.cpp

@@ -10,7 +10,7 @@ namespace Urho3D
 
 
 VectorBuffer::VectorBuffer() = default;
 VectorBuffer::VectorBuffer() = default;
 
 
-VectorBuffer::VectorBuffer(const Vector<u8>& data)
+VectorBuffer::VectorBuffer(const Vector<byte>& data)
 {
 {
     SetData(data);
     SetData(data);
 }
 }
@@ -38,8 +38,8 @@ i32 VectorBuffer::Read(void* dest, i32 size)
     if (!size)
     if (!size)
         return 0;
         return 0;
 
 
-    u8* srcPtr = &buffer_[position_];
-    u8* destPtr = (u8*)dest;
+    byte* srcPtr = &buffer_[position_];
+    byte* destPtr = (byte*)dest;
     position_ += size;
     position_ += size;
 
 
     memcpy(destPtr, srcPtr, size);
     memcpy(destPtr, srcPtr, size);
@@ -71,8 +71,8 @@ i32 VectorBuffer::Write(const void* data, i32 size)
         buffer_.Resize(size_);
         buffer_.Resize(size_);
     }
     }
 
 
-    u8* srcPtr = (u8*)data;
-    u8* destPtr = &buffer_[position_];
+    byte* srcPtr = (byte*)data;
+    byte* destPtr = &buffer_[position_];
     position_ += size;
     position_ += size;
 
 
     memcpy(destPtr, srcPtr, size);
     memcpy(destPtr, srcPtr, size);
@@ -80,7 +80,7 @@ i32 VectorBuffer::Write(const void* data, i32 size)
     return size;
     return size;
 }
 }
 
 
-void VectorBuffer::SetData(const Vector<u8>& data)
+void VectorBuffer::SetData(const Vector<byte>& data)
 {
 {
     buffer_ = data;
     buffer_ = data;
     position_ = 0;
     position_ = 0;

+ 6 - 6
Source/Urho3D/IO/VectorBuffer.h

@@ -15,7 +15,7 @@ public:
     /// Construct an empty buffer.
     /// Construct an empty buffer.
     VectorBuffer();
     VectorBuffer();
     /// Construct from another buffer.
     /// Construct from another buffer.
-    explicit VectorBuffer(const Vector<u8>& data);
+    explicit VectorBuffer(const Vector<byte>& data);
     /// Construct from a memory area.
     /// Construct from a memory area.
     VectorBuffer(const void* data, i32 size);
     VectorBuffer(const void* data, i32 size);
     /// Construct from a stream.
     /// Construct from a stream.
@@ -29,7 +29,7 @@ public:
     i32 Write(const void* data, i32 size) override;
     i32 Write(const void* data, i32 size) override;
 
 
     /// Set data from another buffer.
     /// Set data from another buffer.
-    void SetData(const Vector<u8>& data);
+    void SetData(const Vector<byte>& data);
     /// Set data from a memory area.
     /// Set data from a memory area.
     void SetData(const void* data, i32 size);
     void SetData(const void* data, i32 size);
     /// Set data from a stream.
     /// Set data from a stream.
@@ -40,17 +40,17 @@ public:
     void Resize(i32 size);
     void Resize(i32 size);
 
 
     /// Return data.
     /// Return data.
-    const u8* GetData() const { return size_ ? &buffer_[0] : nullptr; }
+    const byte* GetData() const { return size_ ? &buffer_[0] : nullptr; }
 
 
     /// Return non-const data.
     /// Return non-const data.
-    u8* GetModifiableData() { return size_ ? &buffer_[0] : nullptr; }
+    byte* GetModifiableData() { return size_ ? &buffer_[0] : nullptr; }
 
 
     /// Return the buffer.
     /// Return the buffer.
-    const Vector<u8>& GetBuffer() const { return buffer_; }
+    const Vector<byte>& GetBuffer() const { return buffer_; }
 
 
 private:
 private:
     /// Dynamic data buffer.
     /// Dynamic data buffer.
-    Vector<u8> buffer_;
+    Vector<byte> buffer_;
 };
 };
 
 
 }
 }

+ 4 - 0
Source/Urho3D/Math/MathDefs.h

@@ -315,6 +315,10 @@ inline i32 CountSetBits(u32 value)
 /// Update a hash with the given 8-bit value using the SDBM algorithm.
 /// Update a hash with the given 8-bit value using the SDBM algorithm.
 inline constexpr hash32 SDBMHash(hash32 hash, u8 c) { return c + (hash << 6u) + (hash << 16u) - hash; }
 inline constexpr hash32 SDBMHash(hash32 hash, u8 c) { return c + (hash << 6u) + (hash << 16u) - hash; }
 
 
+/// Update a hash with the given byte value using the SDBM algorithm.
+/// @nobind
+inline constexpr hash32 SDBMHash(hash32 hash, byte b) { return SDBMHash(hash, (u8)b); }
+
 /// Return a random float between 0.0 (inclusive) and 1.0 (exclusive).
 /// Return a random float between 0.0 (inclusive) and 1.0 (exclusive).
 inline float Random() { return Rand() / 32768.0f; }
 inline float Random() { return Rand() / 32768.0f; }
 
 

+ 4 - 4
Source/Urho3D/Navigation/DynamicNavigationMesh.cpp

@@ -521,7 +521,7 @@ bool DynamicNavigationMesh::Build(const IntVector2& from, const IntVector2& to)
     return true;
     return true;
 }
 }
 
 
-Vector<unsigned char> DynamicNavigationMesh::GetTileData(const IntVector2& tile) const
+Vector<byte> DynamicNavigationMesh::GetTileData(const IntVector2& tile) const
 {
 {
     VectorBuffer ret;
     VectorBuffer ret;
     WriteTiles(ret, tile.x_, tile.y_);
     WriteTiles(ret, tile.x_, tile.y_);
@@ -535,7 +535,7 @@ bool DynamicNavigationMesh::IsObstacleInTile(Obstacle* obstacle, const IntVector
     return tileBoundingBox.DistanceToPoint(obstaclePosition) < obstacle->GetRadius();
     return tileBoundingBox.DistanceToPoint(obstaclePosition) < obstacle->GetRadius();
 }
 }
 
 
-bool DynamicNavigationMesh::AddTile(const Vector<unsigned char>& tileData)
+bool DynamicNavigationMesh::AddTile(const Vector<byte>& tileData)
 {
 {
     MemoryBuffer buffer(tileData);
     MemoryBuffer buffer(tileData);
     return ReadTiles(buffer, false);
     return ReadTiles(buffer, false);
@@ -655,7 +655,7 @@ void DynamicNavigationMesh::DrawDebugGeometry(bool depthTest)
     }
     }
 }
 }
 
 
-void DynamicNavigationMesh::SetNavigationDataAttr(const Vector<unsigned char>& value)
+void DynamicNavigationMesh::SetNavigationDataAttr(const Vector<byte>& value)
 {
 {
     ReleaseNavigationMesh();
     ReleaseNavigationMesh();
 
 
@@ -705,7 +705,7 @@ void DynamicNavigationMesh::SetNavigationDataAttr(const Vector<unsigned char>& v
     // \todo Shall we send E_NAVIGATION_MESH_REBUILT here?
     // \todo Shall we send E_NAVIGATION_MESH_REBUILT here?
 }
 }
 
 
-Vector<unsigned char> DynamicNavigationMesh::GetNavigationDataAttr() const
+Vector<byte> DynamicNavigationMesh::GetNavigationDataAttr() const
 {
 {
     VectorBuffer ret;
     VectorBuffer ret;
     if (navMesh_ && tileCache_)
     if (navMesh_ && tileCache_)

+ 4 - 4
Source/Urho3D/Navigation/DynamicNavigationMesh.h

@@ -47,11 +47,11 @@ public:
     /// Rebuild part of the navigation mesh in the rectangular area. Return true if successful.
     /// Rebuild part of the navigation mesh in the rectangular area. Return true if successful.
     bool Build(const IntVector2& from, const IntVector2& to) override;
     bool Build(const IntVector2& from, const IntVector2& to) override;
     /// Return tile data.
     /// Return tile data.
-    Vector<unsigned char> GetTileData(const IntVector2& tile) const override;
+    Vector<byte> GetTileData(const IntVector2& tile) const override;
     /// Return whether the Obstacle is touching the given tile.
     /// Return whether the Obstacle is touching the given tile.
     bool IsObstacleInTile(Obstacle* obstacle, const IntVector2& tile) const;
     bool IsObstacleInTile(Obstacle* obstacle, const IntVector2& tile) const;
     /// Add tile to navigation mesh.
     /// Add tile to navigation mesh.
-    bool AddTile(const Vector<unsigned char>& tileData) override;
+    bool AddTile(const Vector<byte>& tileData) override;
     /// Remove tile from navigation mesh.
     /// Remove tile from navigation mesh.
     void RemoveTile(const IntVector2& tile) override;
     void RemoveTile(const IntVector2& tile) override;
     /// Remove all tiles from navigation mesh.
     /// Remove all tiles from navigation mesh.
@@ -62,9 +62,9 @@ public:
     void DrawDebugGeometry(bool depthTest);
     void DrawDebugGeometry(bool depthTest);
 
 
     /// Set navigation data attribute.
     /// Set navigation data attribute.
-    void SetNavigationDataAttr(const Vector<unsigned char>& value) override;
+    void SetNavigationDataAttr(const Vector<byte>& value) override;
     /// Return navigation data attribute.
     /// Return navigation data attribute.
-    Vector<unsigned char> GetNavigationDataAttr() const override;
+    Vector<byte> GetNavigationDataAttr() const override;
 
 
     /// Set the maximum number of obstacles allowed.
     /// Set the maximum number of obstacles allowed.
     /// @property
     /// @property

+ 4 - 4
Source/Urho3D/Navigation/NavigationMesh.cpp

@@ -501,14 +501,14 @@ bool NavigationMesh::Build(const IntVector2& from, const IntVector2& to)
     return true;
     return true;
 }
 }
 
 
-Vector<unsigned char> NavigationMesh::GetTileData(const IntVector2& tile) const
+Vector<byte> NavigationMesh::GetTileData(const IntVector2& tile) const
 {
 {
     VectorBuffer ret;
     VectorBuffer ret;
     WriteTile(ret, tile.x_, tile.y_);
     WriteTile(ret, tile.x_, tile.y_);
     return ret.GetBuffer();
     return ret.GetBuffer();
 }
 }
 
 
-bool NavigationMesh::AddTile(const Vector<unsigned char>& tileData)
+bool NavigationMesh::AddTile(const Vector<byte>& tileData)
 {
 {
     MemoryBuffer buffer(tileData);
     MemoryBuffer buffer(tileData);
     return ReadTile(buffer, false);
     return ReadTile(buffer, false);
@@ -856,7 +856,7 @@ float NavigationMesh::GetAreaCost(unsigned areaID) const
     return 1.0f;
     return 1.0f;
 }
 }
 
 
-void NavigationMesh::SetNavigationDataAttr(const Vector<unsigned char>& value)
+void NavigationMesh::SetNavigationDataAttr(const Vector<byte>& value)
 {
 {
     ReleaseNavigationMesh();
     ReleaseNavigationMesh();
 
 
@@ -904,7 +904,7 @@ void NavigationMesh::SetNavigationDataAttr(const Vector<unsigned char>& value)
     // \todo Shall we send E_NAVIGATION_MESH_REBUILT here?
     // \todo Shall we send E_NAVIGATION_MESH_REBUILT here?
 }
 }
 
 
-Vector<unsigned char> NavigationMesh::GetNavigationDataAttr() const
+Vector<byte> NavigationMesh::GetNavigationDataAttr() const
 {
 {
     VectorBuffer ret;
     VectorBuffer ret;
 
 

+ 4 - 4
Source/Urho3D/Navigation/NavigationMesh.h

@@ -144,9 +144,9 @@ public:
     virtual bool Build(const IntVector2& from, const IntVector2& to);
     virtual bool Build(const IntVector2& from, const IntVector2& to);
     /// Return tile data.
     /// Return tile data.
     /// @manualbind
     /// @manualbind
-    virtual Vector<unsigned char> GetTileData(const IntVector2& tile) const;
+    virtual Vector<byte> GetTileData(const IntVector2& tile) const;
     /// Add tile to navigation mesh.
     /// Add tile to navigation mesh.
-    virtual bool AddTile(const Vector<unsigned char>& tileData);
+    virtual bool AddTile(const Vector<byte>& tileData);
     /// Remove tile from navigation mesh.
     /// Remove tile from navigation mesh.
     virtual void RemoveTile(const IntVector2& tile);
     virtual void RemoveTile(const IntVector2& tile);
     /// Remove all tiles from navigation mesh.
     /// Remove all tiles from navigation mesh.
@@ -277,9 +277,9 @@ public:
     NavmeshPartitionType GetPartitionType() const { return partitionType_; }
     NavmeshPartitionType GetPartitionType() const { return partitionType_; }
 
 
     /// Set navigation data attribute.
     /// Set navigation data attribute.
-    virtual void SetNavigationDataAttr(const Vector<unsigned char>& value);
+    virtual void SetNavigationDataAttr(const Vector<byte>& value);
     /// Return navigation data attribute.
     /// Return navigation data attribute.
-    virtual Vector<unsigned char> GetNavigationDataAttr() const;
+    virtual Vector<byte> GetNavigationDataAttr() const;
 
 
     /// Draw debug geometry for OffMeshConnection components.
     /// Draw debug geometry for OffMeshConnection components.
     /// @property
     /// @property

+ 7 - 7
Source/Urho3D/Network/Connection.cpp

@@ -94,7 +94,7 @@ void Connection::SendMessage(int msgID, bool reliable, bool inOrder, const Vecto
     SendMessage(msgID, reliable, inOrder, msg.GetData(), msg.GetSize(), contentID);
     SendMessage(msgID, reliable, inOrder, msg.GetData(), msg.GetSize(), contentID);
 }
 }
 
 
-void Connection::SendMessage(int msgID, bool reliable, bool inOrder, const unsigned char* data, unsigned numBytes,
+void Connection::SendMessage(int msgID, bool reliable, bool inOrder, const byte* data, unsigned numBytes,
     unsigned contentID)
     unsigned contentID)
 {
 {
     if (numBytes && !data)
     if (numBytes && !data)
@@ -395,9 +395,9 @@ void Connection::ProcessPendingLatestData()
         return;
         return;
 
 
     // Iterate through pending node data and see if we can find the nodes now
     // Iterate through pending node data and see if we can find the nodes now
-    for (HashMap<unsigned, Vector<unsigned char>>::Iterator i = nodeLatestData_.Begin(); i != nodeLatestData_.End();)
+    for (HashMap<unsigned, Vector<byte>>::Iterator i = nodeLatestData_.Begin(); i != nodeLatestData_.End();)
     {
     {
-        HashMap<unsigned, Vector<unsigned char>>::Iterator current = i++;
+        HashMap<unsigned, Vector<byte>>::Iterator current = i++;
         Node* node = scene_->GetNode(current->first_);
         Node* node = scene_->GetNode(current->first_);
         if (node)
         if (node)
         {
         {
@@ -411,9 +411,9 @@ void Connection::ProcessPendingLatestData()
     }
     }
 
 
     // Iterate through pending component data and see if we can find the components now
     // Iterate through pending component data and see if we can find the components now
-    for (HashMap<unsigned, Vector<unsigned char>>::Iterator i = componentLatestData_.Begin(); i != componentLatestData_.End();)
+    for (HashMap<unsigned, Vector<byte>>::Iterator i = componentLatestData_.Begin(); i != componentLatestData_.End();)
     {
     {
-        HashMap<unsigned, Vector<unsigned char>>::Iterator current = i++;
+        HashMap<unsigned, Vector<byte>>::Iterator current = i++;
         Component* component = scene_->GetComponent(current->first_);
         Component* component = scene_->GetComponent(current->first_);
         if (component)
         if (component)
         {
         {
@@ -676,7 +676,7 @@ void Connection::ProcessSceneUpdate(int msgID, MemoryBuffer& msg)
             else
             else
             {
             {
                 // Latest data messages may be received out-of-order relative to node creation, so cache if necessary
                 // Latest data messages may be received out-of-order relative to node creation, so cache if necessary
-                Vector<unsigned char>& data = nodeLatestData_[nodeID];
+                Vector<byte>& data = nodeLatestData_[nodeID];
                 data.Resize(msg.GetSize());
                 data.Resize(msg.GetSize());
                 memcpy(&data[0], msg.GetData(), msg.GetSize());
                 memcpy(&data[0], msg.GetData(), msg.GetSize());
             }
             }
@@ -753,7 +753,7 @@ void Connection::ProcessSceneUpdate(int msgID, MemoryBuffer& msg)
             else
             else
             {
             {
                 // Latest data messages may be received out-of-order relative to component creation, so cache if necessary
                 // Latest data messages may be received out-of-order relative to component creation, so cache if necessary
-                Vector<unsigned char>& data = componentLatestData_[componentID];
+                Vector<byte>& data = componentLatestData_[componentID];
                 data.Resize(msg.GetSize());
                 data.Resize(msg.GetSize());
                 memcpy(&data[0], msg.GetData(), msg.GetSize());
                 memcpy(&data[0], msg.GetData(), msg.GetSize());
             }
             }

+ 3 - 3
Source/Urho3D/Network/Connection.h

@@ -111,7 +111,7 @@ public:
     /// Send a message.
     /// Send a message.
     void SendMessage(int msgID, bool reliable, bool inOrder, const VectorBuffer& msg, unsigned contentID = 0);
     void SendMessage(int msgID, bool reliable, bool inOrder, const VectorBuffer& msg, unsigned contentID = 0);
     /// Send a message.
     /// Send a message.
-    void SendMessage(int msgID, bool reliable, bool inOrder, const unsigned char* data, unsigned numBytes, unsigned contentID = 0);
+    void SendMessage(int msgID, bool reliable, bool inOrder, const byte* data, unsigned numBytes, unsigned contentID = 0);
     /// Send a remote event.
     /// Send a remote event.
     void SendRemoteEvent(StringHash eventType, bool inOrder, const VariantMap& eventData = Variant::emptyVariantMap);
     void SendRemoteEvent(StringHash eventType, bool inOrder, const VariantMap& eventData = Variant::emptyVariantMap);
     /// Send a remote event with the specified node as sender.
     /// Send a remote event with the specified node as sender.
@@ -308,9 +308,9 @@ private:
     /// Ongoing package send transfers.
     /// Ongoing package send transfers.
     HashMap<StringHash, PackageUpload> uploads_;
     HashMap<StringHash, PackageUpload> uploads_;
     /// Pending latest data for not yet received nodes.
     /// Pending latest data for not yet received nodes.
-    HashMap<unsigned, Vector<unsigned char>> nodeLatestData_;
+    HashMap<unsigned, Vector<byte>> nodeLatestData_;
     /// Pending latest data for not yet received components.
     /// Pending latest data for not yet received components.
-    HashMap<unsigned, Vector<unsigned char>> componentLatestData_;
+    HashMap<unsigned, Vector<byte>> componentLatestData_;
     /// Node ID's to process during a replication update.
     /// Node ID's to process during a replication update.
     HashSet<unsigned> nodesToProcess_;
     HashSet<unsigned> nodesToProcess_;
     /// Reusable message buffer.
     /// Reusable message buffer.

+ 1 - 1
Source/Urho3D/Network/Network.cpp

@@ -496,7 +496,7 @@ void Network::BroadcastMessage(int msgID, bool reliable, bool inOrder, const Vec
     BroadcastMessage(msgID, reliable, inOrder, msg.GetData(), msg.GetSize(), contentID);
     BroadcastMessage(msgID, reliable, inOrder, msg.GetData(), msg.GetSize(), contentID);
 }
 }
 
 
-void Network::BroadcastMessage(int msgID, bool reliable, bool inOrder, const unsigned char* data, unsigned numBytes,
+void Network::BroadcastMessage(int msgID, bool reliable, bool inOrder, const byte* data, unsigned numBytes,
     unsigned contentID)
     unsigned contentID)
 {
 {
     if (!rakPeer_)
     if (!rakPeer_)

+ 1 - 1
Source/Urho3D/Network/Network.h

@@ -59,7 +59,7 @@ public:
     /// Broadcast a message with content ID to all client connections.
     /// Broadcast a message with content ID to all client connections.
     void BroadcastMessage(int msgID, bool reliable, bool inOrder, const VectorBuffer& msg, unsigned contentID = 0);
     void BroadcastMessage(int msgID, bool reliable, bool inOrder, const VectorBuffer& msg, unsigned contentID = 0);
     /// Broadcast a message with content ID to all client connections.
     /// Broadcast a message with content ID to all client connections.
-    void BroadcastMessage(int msgID, bool reliable, bool inOrder, const unsigned char* data, unsigned numBytes, unsigned contentID = 0);
+    void BroadcastMessage(int msgID, bool reliable, bool inOrder, const byte* data, unsigned numBytes, unsigned contentID = 0);
     /// Broadcast a remote event to all client connections.
     /// Broadcast a remote event to all client connections.
     void BroadcastRemoteEvent(StringHash eventType, bool inOrder, const VariantMap& eventData = Variant::emptyVariantMap);
     void BroadcastRemoteEvent(StringHash eventType, bool inOrder, const VariantMap& eventData = Variant::emptyVariantMap);
     /// Broadcast a remote event to all client connections in a specific scene.
     /// Broadcast a remote event to all client connections in a specific scene.

+ 2 - 2
Source/Urho3D/Physics/RigidBody.cpp

@@ -828,14 +828,14 @@ void RigidBody::UpdateGravity()
     }
     }
 }
 }
 
 
-void RigidBody::SetNetAngularVelocityAttr(const Vector<unsigned char>& value)
+void RigidBody::SetNetAngularVelocityAttr(const Vector<byte>& value)
 {
 {
     float maxVelocity = physicsWorld_ ? physicsWorld_->GetMaxNetworkAngularVelocity() : DEFAULT_MAX_NETWORK_ANGULAR_VELOCITY;
     float maxVelocity = physicsWorld_ ? physicsWorld_->GetMaxNetworkAngularVelocity() : DEFAULT_MAX_NETWORK_ANGULAR_VELOCITY;
     MemoryBuffer buf(value);
     MemoryBuffer buf(value);
     SetAngularVelocity(buf.ReadPackedVector3(maxVelocity));
     SetAngularVelocity(buf.ReadPackedVector3(maxVelocity));
 }
 }
 
 
-const Vector<unsigned char>& RigidBody::GetNetAngularVelocityAttr() const
+const Vector<byte>& RigidBody::GetNetAngularVelocityAttr() const
 {
 {
     float maxVelocity = physicsWorld_ ? physicsWorld_->GetMaxNetworkAngularVelocity() : DEFAULT_MAX_NETWORK_ANGULAR_VELOCITY;
     float maxVelocity = physicsWorld_ ? physicsWorld_->GetMaxNetworkAngularVelocity() : DEFAULT_MAX_NETWORK_ANGULAR_VELOCITY;
     attrBuffer_.Clear();
     attrBuffer_.Clear();

+ 2 - 2
Source/Urho3D/Physics/RigidBody.h

@@ -273,9 +273,9 @@ public:
     /// Update gravity parameters to the Bullet rigid body.
     /// Update gravity parameters to the Bullet rigid body.
     void UpdateGravity();
     void UpdateGravity();
     /// Set network angular velocity attribute.
     /// Set network angular velocity attribute.
-    void SetNetAngularVelocityAttr(const Vector<unsigned char>& value);
+    void SetNetAngularVelocityAttr(const Vector<byte>& value);
     /// Return network angular velocity attribute.
     /// Return network angular velocity attribute.
-    const Vector<unsigned char>& GetNetAngularVelocityAttr() const;
+    const Vector<byte>& GetNetAngularVelocityAttr() const;
     /// Add a constraint that refers to this rigid body.
     /// Add a constraint that refers to this rigid body.
     void AddConstraint(Constraint* constraint);
     void AddConstraint(Constraint* constraint);
     /// Remove a constraint that refers to this rigid body.
     /// Remove a constraint that refers to this rigid body.

+ 2 - 2
Source/Urho3D/Physics2D/CollisionChain2D.cpp

@@ -76,7 +76,7 @@ void CollisionChain2D::SetVertices(const Vector<Vector2>& vertices)
     RecreateFixture();
     RecreateFixture();
 }
 }
 
 
-void CollisionChain2D::SetVerticesAttr(const Vector<u8>& value)
+void CollisionChain2D::SetVerticesAttr(const Vector<byte>& value)
 {
 {
     if (value.Empty())
     if (value.Empty())
         return;
         return;
@@ -90,7 +90,7 @@ void CollisionChain2D::SetVerticesAttr(const Vector<u8>& value)
     SetVertices(vertices);
     SetVertices(vertices);
 }
 }
 
 
-Vector<u8> CollisionChain2D::GetVerticesAttr() const
+Vector<byte> CollisionChain2D::GetVerticesAttr() const
 {
 {
     VectorBuffer ret;
     VectorBuffer ret;
 
 

+ 2 - 2
Source/Urho3D/Physics2D/CollisionChain2D.h

@@ -56,10 +56,10 @@ public:
     const Vector<Vector2>& GetVertices() const { return vertices_; }
     const Vector<Vector2>& GetVertices() const { return vertices_; }
 
 
     /// Set vertices attribute. For non loop first and last must be ghost.
     /// Set vertices attribute. For non loop first and last must be ghost.
-    void SetVerticesAttr(const Vector<u8>& value);
+    void SetVerticesAttr(const Vector<byte>& value);
 
 
     /// Return vertices attribute.
     /// Return vertices attribute.
-    Vector<u8> GetVerticesAttr() const;
+    Vector<byte> GetVerticesAttr() const;
 
 
 private:
 private:
     /// Apply node world scale.
     /// Apply node world scale.

+ 2 - 2
Source/Urho3D/Physics2D/CollisionPolygon2D.cpp

@@ -63,7 +63,7 @@ void CollisionPolygon2D::SetVertices(const Vector<Vector2>& vertices)
     RecreateFixture();
     RecreateFixture();
 }
 }
 
 
-void CollisionPolygon2D::SetVerticesAttr(const Vector<u8>& value)
+void CollisionPolygon2D::SetVerticesAttr(const Vector<byte>& value)
 {
 {
     if (value.Empty())
     if (value.Empty())
         return;
         return;
@@ -77,7 +77,7 @@ void CollisionPolygon2D::SetVerticesAttr(const Vector<u8>& value)
     SetVertices(vertices);
     SetVertices(vertices);
 }
 }
 
 
-Vector<u8> CollisionPolygon2D::GetVerticesAttr() const
+Vector<byte> CollisionPolygon2D::GetVerticesAttr() const
 {
 {
     VectorBuffer ret;
     VectorBuffer ret;
 
 

+ 2 - 2
Source/Urho3D/Physics2D/CollisionPolygon2D.h

@@ -45,9 +45,9 @@ public:
     const Vector<Vector2>& GetVertices() const { return vertices_; }
     const Vector<Vector2>& GetVertices() const { return vertices_; }
 
 
     /// Set vertices attribute.
     /// Set vertices attribute.
-    void SetVerticesAttr(const Vector<u8>& value);
+    void SetVerticesAttr(const Vector<byte>& value);
     /// Return vertices attribute.
     /// Return vertices attribute.
-    Vector<u8> GetVerticesAttr() const;
+    Vector<byte> GetVerticesAttr() const;
 
 
 private:
 private:
     /// Apply node world scale.
     /// Apply node world scale.

+ 1 - 1
Source/Urho3D/Physics2D/PhysicsWorld2D.cpp

@@ -829,7 +829,7 @@ PhysicsWorld2D::ContactInfo::ContactInfo(b2Contact* contact)
     }
     }
 }
 }
 
 
-const Urho3D::Vector<unsigned char>& PhysicsWorld2D::ContactInfo::Serialize(VectorBuffer& buffer) const
+const Urho3D::Vector<byte>& PhysicsWorld2D::ContactInfo::Serialize(VectorBuffer& buffer) const
 {
 {
     buffer.Clear();
     buffer.Clear();
     for (int i = 0; i < numPoints_; ++i)
     for (int i = 0; i < numPoints_; ++i)

+ 1 - 1
Source/Urho3D/Physics2D/PhysicsWorld2D.h

@@ -264,7 +264,7 @@ protected:
         /// Construct.
         /// Construct.
         explicit ContactInfo(b2Contact* contact);
         explicit ContactInfo(b2Contact* contact);
         /// Write contact info to buffer.
         /// Write contact info to buffer.
-        const Vector<unsigned char>& Serialize(VectorBuffer& buffer) const;
+        const Vector<byte>& Serialize(VectorBuffer& buffer) const;
 
 
         /// Rigid body A.
         /// Rigid body A.
         SharedPtr<RigidBody2D> bodyA_;
         SharedPtr<RigidBody2D> bodyA_;

+ 2 - 2
Source/Urho3D/Resource/XMLElement.cpp

@@ -750,9 +750,9 @@ BoundingBox XMLElement::GetBoundingBox() const
     return ret;
     return ret;
 }
 }
 
 
-Vector<unsigned char> XMLElement::GetBuffer(const String& name) const
+Vector<byte> XMLElement::GetBuffer(const String& name) const
 {
 {
-    Vector<unsigned char> ret;
+    Vector<byte> ret;
     StringToBuffer(ret, GetAttribute(name));
     StringToBuffer(ret, GetAttribute(name));
     return ret;
     return ret;
 }
 }

+ 1 - 1
Source/Urho3D/Resource/XMLElement.h

@@ -212,7 +212,7 @@ public:
     /// Return bool attribute, or false if missing.
     /// Return bool attribute, or false if missing.
     bool GetBool(const String& name) const;
     bool GetBool(const String& name) const;
     /// Return buffer attribute, or empty if missing.
     /// Return buffer attribute, or empty if missing.
-    Vector<unsigned char> GetBuffer(const String& name) const;
+    Vector<byte> GetBuffer(const String& name) const;
     /// Copy buffer attribute into a supplied buffer. Return true if buffer was large enough.
     /// Copy buffer attribute into a supplied buffer. Return true if buffer was large enough.
     bool GetBuffer(const String& name, void* dest, i32 size) const;
     bool GetBuffer(const String& name, void* dest, i32 size) const;
     /// Return bounding box attribute, or empty if missing.
     /// Return bounding box attribute, or empty if missing.

+ 4 - 4
Source/Urho3D/Scene/Node.cpp

@@ -1447,7 +1447,7 @@ void Node::SetNetPositionAttr(const Vector3& value)
         SetPosition(value);
         SetPosition(value);
 }
 }
 
 
-void Node::SetNetRotationAttr(const Vector<unsigned char>& value)
+void Node::SetNetRotationAttr(const Vector<byte>& value)
 {
 {
     MemoryBuffer buf(value);
     MemoryBuffer buf(value);
     auto* transform = GetComponent<SmoothedTransform>();
     auto* transform = GetComponent<SmoothedTransform>();
@@ -1457,7 +1457,7 @@ void Node::SetNetRotationAttr(const Vector<unsigned char>& value)
         SetRotation(buf.ReadPackedQuaternion());
         SetRotation(buf.ReadPackedQuaternion());
 }
 }
 
 
-void Node::SetNetParentAttr(const Vector<unsigned char>& value)
+void Node::SetNetParentAttr(const Vector<byte>& value)
 {
 {
     Scene* scene = GetScene();
     Scene* scene = GetScene();
     if (!scene)
     if (!scene)
@@ -1499,14 +1499,14 @@ const Vector3& Node::GetNetPositionAttr() const
     return position_;
     return position_;
 }
 }
 
 
-const Vector<unsigned char>& Node::GetNetRotationAttr() const
+const Vector<byte>& Node::GetNetRotationAttr() const
 {
 {
     impl_->attrBuffer_.Clear();
     impl_->attrBuffer_.Clear();
     impl_->attrBuffer_.WritePackedQuaternion(rotation_);
     impl_->attrBuffer_.WritePackedQuaternion(rotation_);
     return impl_->attrBuffer_.GetBuffer();
     return impl_->attrBuffer_.GetBuffer();
 }
 }
 
 
-const Vector<unsigned char>& Node::GetNetParentAttr() const
+const Vector<byte>& Node::GetNetParentAttr() const
 {
 {
     impl_->attrBuffer_.Clear();
     impl_->attrBuffer_.Clear();
     Scene* scene = GetScene();
     Scene* scene = GetScene();

+ 4 - 4
Source/Urho3D/Scene/Node.h

@@ -624,15 +624,15 @@ public:
     /// Set network position attribute.
     /// Set network position attribute.
     void SetNetPositionAttr(const Vector3& value);
     void SetNetPositionAttr(const Vector3& value);
     /// Set network rotation attribute.
     /// Set network rotation attribute.
-    void SetNetRotationAttr(const Vector<unsigned char>& value);
+    void SetNetRotationAttr(const Vector<byte>& value);
     /// Set network parent attribute.
     /// Set network parent attribute.
-    void SetNetParentAttr(const Vector<unsigned char>& value);
+    void SetNetParentAttr(const Vector<byte>& value);
     /// Return network position attribute.
     /// Return network position attribute.
     const Vector3& GetNetPositionAttr() const;
     const Vector3& GetNetPositionAttr() const;
     /// Return network rotation attribute.
     /// Return network rotation attribute.
-    const Vector<unsigned char>& GetNetRotationAttr() const;
+    const Vector<byte>& GetNetRotationAttr() const;
     /// Return network parent attribute.
     /// Return network parent attribute.
-    const Vector<unsigned char>& GetNetParentAttr() const;
+    const Vector<byte>& GetNetParentAttr() const;
     /// Load components and optionally load child nodes.
     /// Load components and optionally load child nodes.
     bool Load(Deserializer& source, SceneResolver& resolver, bool loadChildren = true, bool rewriteIDs = false,
     bool Load(Deserializer& source, SceneResolver& resolver, bool loadChildren = true, bool rewriteIDs = false,
         CreateMode mode = REPLICATED);
         CreateMode mode = REPLICATED);

+ 2 - 2
Source/Urho3D/Scene/Serializable.cpp

@@ -109,7 +109,7 @@ void Serializable::OnSetAttribute(const AttributeInfo& attr, const Variant& src)
         break;
         break;
 
 
     case VAR_BUFFER:
     case VAR_BUFFER:
-        *(reinterpret_cast<Vector<unsigned char>*>(dest)) = src.GetBuffer();
+        *(reinterpret_cast<Vector<byte>*>(dest)) = src.GetBuffer();
         break;
         break;
 
 
     case VAR_RESOURCEREF:
     case VAR_RESOURCEREF:
@@ -218,7 +218,7 @@ void Serializable::OnGetAttribute(const AttributeInfo& attr, Variant& dest) cons
         break;
         break;
 
 
     case VAR_BUFFER:
     case VAR_BUFFER:
-        dest = *(reinterpret_cast<const Vector<unsigned char>*>(src));
+        dest = *(reinterpret_cast<const Vector<byte>*>(src));
         break;
         break;
 
 
     case VAR_RESOURCEREF:
     case VAR_RESOURCEREF: