Project

General

Profile

Feedback #13757

Modder request on CommNet.CommNetNetwork class

Added by TaxiService about 7 years ago. Updated about 7 years ago.

Status:
New
Severity:
Low
Assignee:
-
Category:
-
Target version:
-
Version:
Platform:
Linux, OSX, Windows
Expansion:
Language:
English (US)
Mod Related:
No
Votes:
Arrow u r green
Arrow d r red

Description

Hi,

I would like to request an amendment of the Instance variable in the CommNet.CommNetNetwork class. Currently, the Instance variable's set property is protected and here're the relevant codes:

public static CommNetNetwork Instance
{
    get;
    protected set;
}

Thus, I am unable to assign a subclass of CommNetNetwork to the CommNetNetwork.Instance easily. Moreover, the CommNetNetwork class contains variable virtual methods to be overrode in subclasses, leading me to believe that the protected set property may be a mistake.

Thanks.

History

#1 Updated by TaxiService about 7 years ago

To expand the context of this modder request, my own issue with the CommNetNetwork class is that its ResetNetwork() method contains the stock CommNetwork instance. I am unable to subclass this class in order to replace the instance class in the method with my own CommNetwork subclass.

Moreover, the ResetNetwork() method is only invoked when reverting to launch (quickload does not cause). Reverting to launch will result in using the stock CommNetwork instance and hence whole CommNet-component conflict instead of my own CommNetwork subclass.

Also available in: Atom PDF