private void UnregisterAoPackage(AoPackage aoPackage) { string getRef = "GetRef_" + aoPackage.Name; _luaState.DoString(getRef + "=nil"); _luaState.DoString(aoPackage.Name + "=nil"); }
private void RegisterAoPackage(AoPackage aoPackage) { string getRef = "GetRef_" + aoPackage.Name; _luaState.RegisterFunction(getRef, aoPackage, aoPackage.GetType().GetMethod("GetRef")); _luaState.DoString(aoPackage.Name + "=" + getRef + "()"); }
public void RemoveAoPackage(AoPackage aoPackage) { }
public void AddAoPackage(AoPackage aoPackage) { }