1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 00:37:15 +01:00

Update Official.cpp

This commit is contained in:
Sandu Liviu Catalin 2021-03-20 20:38:25 +02:00
parent 2ca0af51cb
commit a746bf0075

View File

@ -2353,27 +2353,28 @@ void LgStreamLoadInput(const void * data, size_t size) { LgStream::LoadInput(dat
// ================================================================================================ // ================================================================================================
void Register_Official_Stream(HSQUIRRELVM vm) void Register_Official_Stream(HSQUIRRELVM vm)
{ {
Class< LgStream, NoConstructor< LgStream > > c(vm, "Stream"); // --------------------------------------------------------------------------------------------
c RootTable(vm).Bind(_SC("Stream"),
.StaticFunc(_SC("StartWrite"), &LgStream::StartWrite) Class< LgStream, NoConstructor< LgStream > >(vm, "Stream")
.StaticFunc(_SC("SetWritePosition"), &LgStream::SetWritePosition) .StaticFunc(_SC("StartWrite"), &LgStream::StartWrite)
.StaticFunc(_SC("GetWritePosition"), &LgStream::GetWritePosition) .StaticFunc(_SC("SetWritePosition"), &LgStream::SetWritePosition)
.StaticFunc(_SC("GetWriteSize"), &LgStream::GetWriteSize) .StaticFunc(_SC("GetWritePosition"), &LgStream::GetWritePosition)
.StaticFunc(_SC("HasWriteError"), &LgStream::HasWriteError) .StaticFunc(_SC("GetWriteSize"), &LgStream::GetWriteSize)
.StaticFunc(_SC("WriteByte"), &LgStream::WriteByte) .StaticFunc(_SC("HasWriteError"), &LgStream::HasWriteError)
.StaticFunc(_SC("WriteInt"), &LgStream::WriteInt) .StaticFunc(_SC("WriteByte"), &LgStream::WriteByte)
.StaticFunc(_SC("WriteFloat"), &LgStream::WriteFloat) .StaticFunc(_SC("WriteInt"), &LgStream::WriteInt)
.StaticFunc(_SC("WriteString"), &LgStream::WriteString) .StaticFunc(_SC("WriteFloat"), &LgStream::WriteFloat)
.StaticFunc(_SC("SendStream"), &LgStream::SendStream) .StaticFunc(_SC("WriteString"), &LgStream::WriteString)
.StaticFunc(_SC("SetReadPosition"), &LgStream::SetReadPosition) .StaticFunc(_SC("SendStream"), &LgStream::SendStream)
.StaticFunc(_SC("GetReadPosition"), &LgStream::GetReadPosition) .StaticFunc(_SC("SetReadPosition"), &LgStream::SetReadPosition)
.StaticFunc(_SC("GetReadSize"), &LgStream::GetReadSize) .StaticFunc(_SC("GetReadPosition"), &LgStream::GetReadPosition)
.StaticFunc(_SC("HasReadError"), &LgStream::HasReadError) .StaticFunc(_SC("GetReadSize"), &LgStream::GetReadSize)
.StaticFunc(_SC("ReadByte"), &LgStream::ReadByte) .StaticFunc(_SC("HasReadError"), &LgStream::HasReadError)
.StaticFunc(_SC("ReadInt"), &LgStream::ReadInt) .StaticFunc(_SC("ReadByte"), &LgStream::ReadByte)
.StaticFunc(_SC("ReadFloat"), &LgStream::ReadFloat) .StaticFunc(_SC("ReadInt"), &LgStream::ReadInt)
.StaticFunc(_SC("ReadString"), &LgStream::ReadString) .StaticFunc(_SC("ReadFloat"), &LgStream::ReadFloat)
; .StaticFunc(_SC("ReadString"), &LgStream::ReadString)
);
} }
} // Namespace:: SqMod } // Namespace:: SqMod