Brought up to date with the private repository (feea4c7)

This commit is contained in:
S committed 2026-10-14 20:57:33 +03:00
1 parent 1aa738d692
commit 1b1df1ae48
7925 files changed
+2617237 -20

No files matched your search

@@ -0,0 +1,39 @@
package loader
{
import com.sbi.loader.BaseFileServer;
public class DefPacksFileServer extends BaseFileServer
{
private static var _instance:DefPacksFileServer;
private static const CONTENT_PATH:String = "defPacks/";
public function DefPacksFileServer(lock:Class)
{
super(CONTENT_PATH);
if(lock != SingletonLock)
{
throw new Error("Invalid Singleton access. Use DefPacksFileServer.instance.");
}
}
public static function get instance() : DefPacksFileServer
{
if(!_instance)
{
_instance = new DefPacksFileServer(SingletonLock);
}
return _instance;
}
}
}
class SingletonLock
{
public function SingletonLock()
{
super();
}
}