MCPcopy Create free account
hub / github.com/Tencent/xLua / addObject

Method addObject

Assets/XLua/Src/ObjectTranslator.cs:794–807  ·  view source on GitHub ↗
(object obj, bool is_valuetype, bool is_enum)

Source from the content-addressed store, hash-verified

792 }
793
794 int addObject(object obj, bool is_valuetype, bool is_enum)
795 {
796 int index = objects.Add(obj);
797 if (is_enum)
798 {
799 enumMap[obj] = index;
800 }
801 else if (!is_valuetype)
802 {
803 reverseMap[obj] = index;
804 }
805
806 return index;
807 }
808
809 public object GetObject(RealStatePtr L,int index)
810 {

Callers

nothing calls this directly

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected