Method
Add
(RealStatePtr L, ObjectTranslator translator)
Source from the content-addressed store, hash-verified
| 49 | } |
| 50 | |
| 51 | public void Add (RealStatePtr L, ObjectTranslator translator) |
| 52 | { |
| 53 | #if THREAD_SAFE || HOTFIX_ENABLE |
| 54 | lock (this) |
| 55 | #endif |
| 56 | { |
| 57 | lastTranslator = translator; |
| 58 | #if !SINGLE_ENV |
| 59 | var ptr = LuaAPI.xlua_gl(L); |
| 60 | lastPtr = ptr; |
| 61 | translators.Add(ptr , new WeakReference(translator)); |
| 62 | #endif |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | public ObjectTranslator Find (RealStatePtr L) |
| 67 | { |
Callers
nothing calls this directly
Tested by
no test coverage detected