C# 클래스 RemoteTech.FlightComputer.Commands.ExternalAPICommand

상속: AbstractCommand
파일 보기 프로젝트 열기: RemoteTechnologiesGroup/RemoteTech 1 사용 예제들

공개 메소드들

메소드 설명
Abort ( ) : void

Aborts the active external command and invokes the ReflectionAbortMethod on the ReflectionType.

Execute ( FlightComputer computer, FlightCtrlState ctrlState ) : bool

Executes this command and invokes the ReflectionExecuteMethod on the ReflectionType. When this command is aborted the fallback commnd is "KillRot".

FromExternal ( ConfigNode externalData ) : ExternalAPICommand

Configures an ExternalAPICommand.

Load ( ConfigNode node, FlightComputer computer ) : bool

Loads the ExternalAPICommand from the persistent file. If the loading can't find the ReflectionType we'll notify a ScreenMessage and remove the command.

Pop ( FlightComputer computer ) : bool

Pops the command and invokes the ReflectionPopMethod on the ReflectionType.

Save ( ConfigNode node, FlightComputer computer ) : void

Saves the original configNode externalData passed from the api to the persistent

비공개 메소드들

메소드 설명
ConfigNodeToObject ( ExternalAPICommand command, ConfigNode data ) : void

Maps the ConfigNode object passed from the api or loading to an ExternalAPICommand.

callReflectionMember ( string reflectionMember ) : object

Calls the rflection method.

getReflectionType ( string reflectionType ) : Type

Trys to load the reflectionType. Throws an exception if we can't find the type.

prepareDataForExternalMod ( ) : ConfigNode

Prepare the data to pass back to the mod.

메소드 상세

Abort() 공개 메소드

Aborts the active external command and invokes the ReflectionAbortMethod on the ReflectionType.
public Abort ( ) : void
리턴 void

Execute() 공개 메소드

Executes this command and invokes the ReflectionExecuteMethod on the ReflectionType. When this command is aborted the fallback commnd is "KillRot".
public Execute ( FlightComputer computer, FlightCtrlState ctrlState ) : bool
computer FlightComputer Current flightcomputer
ctrlState FlightCtrlState Current FlightCtrlState
리턴 bool

FromExternal() 공개 정적인 메소드

Configures an ExternalAPICommand.
public static FromExternal ( ConfigNode externalData ) : ExternalAPICommand
externalData System.ConfigNode Data passed by the Api.QueueCommandToFlightComputer
리턴 ExternalAPICommand

Load() 공개 메소드

Loads the ExternalAPICommand from the persistent file. If the loading can't find the ReflectionType we'll notify a ScreenMessage and remove the command.
public Load ( ConfigNode node, FlightComputer computer ) : bool
node System.ConfigNode Node with the command infos to load
computer FlightComputer Current flightcomputer
리턴 bool

Pop() 공개 메소드

Pops the command and invokes the ReflectionPopMethod on the ReflectionType.
public Pop ( FlightComputer computer ) : bool
computer FlightComputer Current flightcomputer
리턴 bool

Save() 공개 메소드

Saves the original configNode externalData passed from the api to the persistent
public Save ( ConfigNode node, FlightComputer computer ) : void
node System.ConfigNode Node with the command infos to save in
computer FlightComputer Current flightcomputer
리턴 void