Skip to content

Commit

Permalink
RenderSettings and Color defs
Browse files Browse the repository at this point in the history
  • Loading branch information
SDraw committed Jun 4, 2023
1 parent 66570b5 commit 84c8fea
Show file tree
Hide file tree
Showing 9 changed files with 967 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CVRLua/CVRLua.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
<Compile Include="Lua\LuaDefs\AudioSourceDefs.cs" />
<Compile Include="Lua\LuaDefs\BehaviourDefs.cs" />
<Compile Include="Lua\LuaDefs\BoundsDefs.cs" />
<Compile Include="Lua\LuaDefs\ColorDefs.cs" />
<Compile Include="Lua\LuaDefs\CVRInteractableDefs.cs" />
<Compile Include="Lua\LuaDefs\CVRPickupObjectDefs.cs" />
<Compile Include="Lua\LuaDefs\CVRVideoPlayerDefs.cs" />
Expand All @@ -113,6 +114,7 @@
<Compile Include="Lua\LuaDefs\RandomDefs.cs" />
<Compile Include="Lua\LuaDefs\RaycastHitDefs.cs" />
<Compile Include="Lua\LuaDefs\RayDefs.cs" />
<Compile Include="Lua\LuaDefs\RenderSettingsDefs.cs" />
<Compile Include="Lua\LuaDefs\RigidbodyDefs.cs" />
<Compile Include="Lua\LuaDefs\TerrainColliderDefs.cs" />
<Compile Include="Lua\LuaDefs\UtilityDefs.cs" />
Expand Down Expand Up @@ -150,6 +152,7 @@
<Compile Include="LuaScript.cs" />
<Compile Include="Utils.cs" />
<Compile Include="Wrappers\Bounds.cs" />
<Compile Include="Wrappers\Color.cs" />
<Compile Include="Wrappers\ContactPoint.cs" />
<Compile Include="Players\Player.cs" />
<Compile Include="Wrappers\OffMeshLinkData.cs" />
Expand Down
9 changes: 9 additions & 0 deletions CVRLua/Lua/LuaArgReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,15 @@ public void ReadNextEnum<T>(ref T p_enum) where T : struct
}
}

public void ReadValue(ref object p_obj)
{
if((m_vm != null) && !m_hasErrors && (m_currentArgument <= m_argumentsCount))
{
p_obj = m_vm.ReadValue(m_currentArgument);
m_currentArgument++;
}
}

public void ReadArguments(List<object> p_args)
{
if((m_vm != null) && !m_hasErrors)
Expand Down
Loading

0 comments on commit 84c8fea

Please sign in to comment.