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,8 +2353,9 @@ void LgStreamLoadInput(const void * data, size_t size) { LgStream::LoadInput(dat
// ================================================================================================
void Register_Official_Stream(HSQUIRRELVM vm)
{
Class< LgStream, NoConstructor< LgStream > > c(vm, "Stream");
c
// --------------------------------------------------------------------------------------------
RootTable(vm).Bind(_SC("Stream"),
Class< LgStream, NoConstructor< LgStream > >(vm, "Stream")
.StaticFunc(_SC("StartWrite"), &LgStream::StartWrite)
.StaticFunc(_SC("SetWritePosition"), &LgStream::SetWritePosition)
.StaticFunc(_SC("GetWritePosition"), &LgStream::GetWritePosition)
@ -2373,7 +2374,7 @@ void Register_Official_Stream(HSQUIRRELVM vm)
.StaticFunc(_SC("ReadInt"), &LgStream::ReadInt)
.StaticFunc(_SC("ReadFloat"), &LgStream::ReadFloat)
.StaticFunc(_SC("ReadString"), &LgStream::ReadString)
;
);
}
} // Namespace:: SqMod