made Net a static class

This commit is contained in:
2023-07-30 15:38:46 +02:00
parent 505d318ffb
commit 97c906e013
15 changed files with 58 additions and 59 deletions

View File

@@ -21,7 +21,7 @@ class ResManager implements Process {
public function run(handle:ProcessHandle) {
this.handle = handle;
Net.instance.registerProto("res",handlePackage);
Net.registerProto("res",handlePackage);
load();
}
@@ -53,7 +53,7 @@ class ResManager implements Process {
}
private function registerName(id: String){
return RessourceNames.register(id, Net.instance.networkID);
return RessourceNames.register(id, Net.networkID);
}
private function persist(){