Inheritance: IFixedUpdateObserver
コード例 #1
0
ファイル: ResourceTransferValue.cs プロジェクト: KSP-KOS/KOS
        public ResourceTransferValue(TransferManager transferManager, PartResourceDefinition resourceInfo, object transferTo, object transferFrom)
        {
            this.transferManager = transferManager;
            this.resourceInfo = resourceInfo;
            this.transferTo = transferTo;
            this.transferFrom = transferFrom;

            DetermineTypes();
            InitializeSuffixes();

            Status = TransferManager.TransferStatus.Inactive; // Last because the setter for Status prints some of the values calculated above to the log
        }
コード例 #2
0
ファイル: ResourceTransferValue.cs プロジェクト: KSP-KOS/KOS
 public ResourceTransferValue(TransferManager transferManager, PartResourceDefinition resourceInfo, object transferTo, object transferFrom, double amount)
     : this(transferManager, resourceInfo, transferTo, transferFrom)
 {
     this.amount = amount;
 }