예제 #1
0
        private void UnregisterAoPackage(AoPackage aoPackage)
        {
            string getRef = "GetRef_" + aoPackage.Name;

            _luaState.DoString(getRef + "=nil");
            _luaState.DoString(aoPackage.Name + "=nil");
        }
예제 #2
0
        private void RegisterAoPackage(AoPackage aoPackage)
        {
            string getRef = "GetRef_" + aoPackage.Name;

            _luaState.RegisterFunction(getRef, aoPackage,
                                       aoPackage.GetType().GetMethod("GetRef"));
            _luaState.DoString(aoPackage.Name + "=" + getRef + "()");
        }
예제 #3
0
 public void RemoveAoPackage(AoPackage aoPackage)
 {
 }
예제 #4
0
 public void AddAoPackage(AoPackage aoPackage)
 {
 }