Page MenuHomeFeedback Tracker

Request for Information on Link<Class T> / OLinkT
Feedback, UrgentPublic

Description

Enfusion contains the following class:

class Link<Class T>
{
	proto private native void Init(T init);
	proto private native Object Get();	

	void Release()
	{
		T obj = Get();
		if(obj)
			obj.Release();
	}	 
	void Link(T init)
	{
		Init(init);
	}
	
	T Ptr()
	{
		return Get();
	}

	bool IsNull()
	{
		if(!Get())
			return true;
		
		return false;
	}
};

Could we get some documentation or even brief feedback from the team on the limitations of and usage of this class?

Details

Severity
Minor
Resolution
Open
Reproducibility
N/A
Operating System
Windows 11 x64
Category
General

Event Timeline

mdc created this task.Sat, May 4, 6:35 PM
Geez changed the task status from New to Feedback.Mon, May 6, 10:51 AM

Hi, please see Class Template Example (for Arma Reforger though, but it would still give you a good idea)
Cheers

mdc added a comment.Mon, May 13, 6:05 PM

Hi, please see Class Template Example (for Arma Reforger though, but it would still give you a good idea)
Cheers

I appreciate the response, but I wasn't asking about templating, but instead the Link class specifically. I've had a few things clarified by MarioE so happy for this to be closed personally, but in case anyone else needs the information in future it'd be nice to have it documented somewhere.

oh, apologies then - well, this mistake made me create that page at least ;-) it seems to "just" be a "pointer keeper" but I unfortunately do not know DayZ code so I cannot help on this matter. Hope you find out everything you need!