mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-19 01:27:51 -05:00
40 lines
874 B
ActionScript
40 lines
874 B
ActionScript
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(param1:Class)
|
|
{
|
|
super(CONTENT_PATH);
|
|
if(param1 != 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();
|
|
}
|
|
}
|