コード例 #1
0
 public static PartActionFieldCommand FromField(UIPartActionFieldItem fieldItem)
 {
     return new PartActionFieldCommand()
     {
         FieldItem = fieldItem,
         TimeStamp = RTUtil.GameTime,
     };
 }
コード例 #2
0
 public static PartActionFieldCommand FromField(UIPartActionFieldItem fieldItem)
 {
     return(new PartActionFieldCommand()
     {
         FieldItem = fieldItem,
         TimeStamp = RTUtil.GameTime,
     });
 }
コード例 #3
0
            public FieldWrapper(UIPartActionFieldItem uiPartAction, Action <BaseField, bool> passthrough, bool ignoreDelay)
            {
                _uiPartAction = uiPartAction;
                SetDefaultListener();

                _passthrough  = passthrough;
                _ignoreDelay  = ignoreDelay;
                _wrappedField = new WrappedField(uiPartAction.Field, WrappedField.KspFieldFromBaseField(uiPartAction.Field));
            }
コード例 #4
0
            public FieldWrapper(UIPartActionFieldItem uiPartAction, Action<BaseField, bool> passthrough, bool ignoreDelay)
            {
                _uiPartAction = uiPartAction;
                SetDefaultListener();

                _passthrough = passthrough;
                _ignoreDelay = ignoreDelay;
                _wrappedField = new WrappedField(uiPartAction.Field, WrappedField.KspFieldFromBaseField(uiPartAction.Field));
            }