Skip to content

Commit 79b02a6

Browse files
committed
entitylist: let's be more clear
1 parent 22c1c8d commit 79b02a6

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ On the next startup the ghostinj will update holylib to use the new file.
5858
\- [+] Added the `HolyLib:PreCheckTransmit`, `HolyLib:OnPlayerGot[On/Off]Ladder`, `HolyLib:OnMoveTypeChange` hook.
5959
\- [+] Added `HolyLib:OnSourceTVStartNewShot`, `HolyLib:OnSourceTVClientDisconnect` hook to `sourcetv` module.
6060
\- [+] Added `CHLTVClient:SetCameraMan` and `sourcetv.SetCameraMan` to `sourcetv` module.
61-
\- [+] Added `INetworkStringTable:GetTable`, `CHLTVClient:GetTable`, `VoiceData:GetTable`, `IGameEvent:GetTable`, `bf_read:GetTable`, `bf_write:GetTable` functions.
61+
\- [+] Added `INetworkStringTable:GetTable`, `CHLTVClient:GetTable`, `VoiceData:GetTable`, `IGameEvent:GetTable`, `bf_read:GetTable`, `bf_write:GetTable`, `IGModAudioChannel:GetTable` functions.
6262
\- [+] Added `pvs.TestPVS`, `pvs.FindInPVS` and `pvs.ForceFullUpdate` functions to `pvs` module.
6363
\- [+] Added `HolyLib.GetRegistry`, `HolyLib.ExitLadder`, `HolyLib.GetLadder` and `HolyLib.Disconnect` to `holylib` module.
6464
\- [+] Added `cvar.Find` to `cvars` module.
@@ -2684,6 +2684,18 @@ Creates a IGMODAudioChannel for the given url.
26842684
Returns `IGModAudioChannel [NULL]` if invalid.
26852685
Else it returns `IGModAudioChannel [FileName/URL]`.
26862686

2687+
#### IGModAudioChannel:\_\_newindex(string key, any value)
2688+
Internally implemented and will set the values into the lua table.
2689+
2690+
#### any IGModAudioChannel:\_\_index(string key)
2691+
Internally seaches first in the metatable table for the key.
2692+
If it fails to find it, it will search in the lua table before returning.
2693+
If you try to get multiple values from the lua table, just use `IGModAudioChannel:GetTable()`.
2694+
2695+
#### table IGModAudioChannel:GetTable()
2696+
Returns the lua table of this object.
2697+
You can store variables into it.
2698+
26872699
#### IGModAudioChannel:\_\_gc()
26882700
ToDo / Doesn nothing yet.
26892701

source/modules/entitylist.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ void EntityList::CreateReference(CBaseEntity* pEntity)
5656
auto it = m_pEntReferences.find(pEntity);
5757
if (it != m_pEntReferences.end())
5858
{
59-
Warning("holylib: fucking shit is leaking references! Report this!\n");
59+
Warning("holylib: entitylist is leaking references! Report this!\n");
6060
m_pLua->ReferenceFree(m_pEntReferences[pEntity]);
6161
}
6262

0 commit comments

Comments
 (0)