示例#1
0
 internal NFSCurvedPanel(Object a)
 {
     actualNFSCurvedPanel = a;
     TotalEnergyRateField = NFSCurvedsolarPanelType.GetField("TotalEnergyRate");
     EnergyFlowField      = NFSCurvedsolarPanelType.GetField("EnergyFlow");
     StateField           = NFSCurvedsolarPanelType.GetField("State");
     DeployMethod         = NFSCurvedsolarPanelType.GetMethod("Deploy", BindingFlags.Public | BindingFlags.Instance);
     RetractMethod        = NFSCurvedsolarPanelType.GetMethod("Retract", BindingFlags.Public | BindingFlags.Instance);
 }
示例#2
0
            internal NFSCurvedPanel(System.Object a)
            {
                actualNFSCurvedPanel = a;


                DeployMethod  = NFSCurvedsolarPanelType.GetMethod("Deploy", BindingFlags.Public | BindingFlags.Instance);
                RetractMethod = NFSCurvedsolarPanelType.GetMethod("Retract", BindingFlags.Public | BindingFlags.Instance);

                animationName = NFSCurvedsolarPanelType.GetField("DeployAnimation");

                deployState = NFSCurvedsolarPanelType.GetProperty("State");
                Deployable  = NFSCurvedsolarPanelType.GetField("Deployable");
            }