mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-19 01:27:51 -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,39 @@
|
||||
package loader
|
||||
{
|
||||
import com.sbi.loader.BaseFileServer;
|
||||
|
||||
public class DenItemServer extends BaseFileServer
|
||||
{
|
||||
|
||||
private static const CONTENT_PATH:String = "items/";
|
||||
|
||||
private static var _instance:DenItemServer;
|
||||
|
||||
public function DenItemServer(param1:Class)
|
||||
{
|
||||
super("items/");
|
||||
if(param1 != SingletonLock)
|
||||
{
|
||||
throw new Error("Invalid Singleton access. Use DenItemServer.instance.");
|
||||
}
|
||||
}
|
||||
|
||||
public static function get instance() : DenItemServer
|
||||
{
|
||||
if(!_instance)
|
||||
{
|
||||
_instance = new DenItemServer(SingletonLock);
|
||||
}
|
||||
return _instance;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class SingletonLock
|
||||
{
|
||||
|
||||
public function SingletonLock()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user