-
July 14th, 2022, 14:50 #1
- Join Date
- Jul 2010
- Location
- Germany, Frankfurt
- Posts
- 156
ActorManager.getActorRecordTypeFromPath return sType instead of vType
I am just trying to understand how to use the ActorManager.
I noticed that in the function "getActorRecordTypeFromPath" probably the correct parameter is not returned (i would expect vType instead of sType):
Code:-- Internal use only function getActorRecordTypeFromPath(sActorNodePath) if StringManager.startsWith(sActorNodePath, CombatManager.CT_MAIN_PATH .. ".") then return "ct"; end local sType = LibraryData.getRecordTypeFromRecordPath(sActorNodePath); if _tActorRecordTypes[sType] then return sType; end for sTypePath, vType in pairs(_tActorTypePathHandlers) do if UtilityManager.isDataBaseNodePathMatch(sActorNodePath, sTypePath) then if type(vType) == "function" then return vType(sActorNodePath); else return sType; end end end return nil; end
Code:function registerActorRecordType(sRecordType) if sType == "ct" then return; end _tActorRecordTypes[sRecordType] = true; end
-
July 14th, 2022, 17:51 #2
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,639
Thanks for pointing these out. I'll take a look.
Regards,
JPG
-
July 15th, 2022, 01:49 #3
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,639
This is addressed in the hot fix pushed today.
Regards,
JPG
-
July 15th, 2022, 05:52 #4
- Join Date
- Jul 2010
- Location
- Germany, Frankfurt
- Posts
- 156
i just checked the hotfix, looks good
But I noticed another "sType" condition, where I think it has no effect:
Code:function registerActorTypePathHandler(sPath, v) if sType == "ct" then return; end _tActorTypePathHandlers[sPath] = v; end
-
July 15th, 2022, 06:32 #5
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,639
Bah, even I get caught up in copy/paste frenzy; I'll smash that on the next CoreRPG update, whenever it is.
Thanks,
JPG
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks