mirror of
https://github.com/MapMakersAndProgrammers/TankiOnline2.0DemoClient.git
synced 2025-10-26 09:59:07 -07:00
Initial commit
This commit is contained in:
12
src/package_31/class_6.as
Normal file
12
src/package_31/class_6.as
Normal file
@@ -0,0 +1,12 @@
|
||||
package package_31
|
||||
{
|
||||
import package_5.name_3;
|
||||
|
||||
public interface class_6
|
||||
{
|
||||
function start(param1:name_3) : void;
|
||||
|
||||
function stop(param1:name_3) : void;
|
||||
}
|
||||
}
|
||||
|
||||
14
src/package_31/name_202.as
Normal file
14
src/package_31/name_202.as
Normal file
@@ -0,0 +1,14 @@
|
||||
package package_31
|
||||
{
|
||||
import package_15.name_19;
|
||||
|
||||
public interface name_202
|
||||
{
|
||||
function get name() : String;
|
||||
|
||||
function get activators() : Vector.<class_6>;
|
||||
|
||||
function get properties() : name_19;
|
||||
}
|
||||
}
|
||||
|
||||
67
src/package_31/name_366.as
Normal file
67
src/package_31/name_366.as
Normal file
@@ -0,0 +1,67 @@
|
||||
package package_31
|
||||
{
|
||||
import flash.system.ApplicationDomain;
|
||||
import package_15.name_19;
|
||||
import package_39.name_160;
|
||||
import package_5.name_3;
|
||||
|
||||
public class name_366 implements name_202
|
||||
{
|
||||
private static var LOG_CHANNEL:String = "osgi";
|
||||
|
||||
private static var clientLog:name_160 = name_160(name_3.name_8().name_30(name_160));
|
||||
|
||||
private var _name:String;
|
||||
|
||||
private var var_566:Vector.<class_6>;
|
||||
|
||||
private var var_567:name_19;
|
||||
|
||||
public function name_366(properties:name_19)
|
||||
{
|
||||
var activatorClassName:String = null;
|
||||
var isActivatorExists:Boolean = false;
|
||||
var activatorClass:Class = null;
|
||||
super();
|
||||
this.var_567 = properties || new name_19();
|
||||
this._name = properties.method_24("Bundle-Name");
|
||||
clientLog.log(LOG_CHANNEL,"BundleDescriptor: Bundle name: %1",this._name);
|
||||
var activatorClassNames:Array = [properties.method_24("Bundle-Activator")];
|
||||
if(Boolean(this._name))
|
||||
{
|
||||
activatorClassNames.push(this._name.toLowerCase() + ".Activator");
|
||||
}
|
||||
this.var_566 = new Vector.<class_6>();
|
||||
for each(activatorClassName in activatorClassNames)
|
||||
{
|
||||
isActivatorExists = Boolean(ApplicationDomain.currentDomain.hasDefinition(activatorClassName));
|
||||
if(isActivatorExists)
|
||||
{
|
||||
activatorClass = Class(ApplicationDomain.currentDomain.getDefinition(activatorClassName));
|
||||
this.var_566.push(class_6(new activatorClass()));
|
||||
clientLog.log(LOG_CHANNEL,"BundleDescriptor: Activator has been created: %1",activatorClassName);
|
||||
}
|
||||
else
|
||||
{
|
||||
clientLog.log(LOG_CHANNEL,"BundleDescriptor: Activator NOT FOUND: %1 ",activatorClassName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function get name() : String
|
||||
{
|
||||
return this._name;
|
||||
}
|
||||
|
||||
public function get activators() : Vector.<class_6>
|
||||
{
|
||||
return this.var_566;
|
||||
}
|
||||
|
||||
public function get properties() : name_19
|
||||
{
|
||||
return this.var_567;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user