mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-19 09:37:50 -05:00
Brought up to date with the private repository (feea4c7)
This commit is contained in:
1 parent
1aa738d692
commit
1b1df1ae48
7925 files changed
+2617237
-20
No files matched your search
@@ -0,0 +1,50 @@
|
||||
package loader
|
||||
{
|
||||
import com.sbi.loader.BaseFileServer;
|
||||
|
||||
public class JCFileServer extends BaseFileServer
|
||||
{
|
||||
|
||||
private static const CONTENT_PATH:String = "ABSU/";
|
||||
|
||||
private static var _instance:JCFileServer;
|
||||
|
||||
public function JCFileServer(param1:Class)
|
||||
{
|
||||
super("ABSU/");
|
||||
if(param1 != SingletonLock)
|
||||
{
|
||||
throw new Error("Invalid Singleton access. Use JCFileServer.instance.");
|
||||
}
|
||||
}
|
||||
|
||||
public static function get instance() : JCFileServer
|
||||
{
|
||||
if(!_instance)
|
||||
{
|
||||
_instance = new JCFileServer(SingletonLock);
|
||||
}
|
||||
return _instance;
|
||||
}
|
||||
|
||||
public function requestFileWithExtension(param1:uint, param2:Boolean = false, param3:int = 0, param4:String = "") : void
|
||||
{
|
||||
super.updatePath("ABSU/" + param4);
|
||||
super.requestFile(param1,param2,param3,false);
|
||||
}
|
||||
|
||||
override public function clearFromCache(param1:String, param2:int) : void
|
||||
{
|
||||
super.clearFromCache("ABSU/" + param1,param2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class SingletonLock
|
||||
{
|
||||
|
||||
public function SingletonLock()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user