blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
264
content_id
stringlengths
40
40
detected_licenses
listlengths
0
85
license_type
stringclasses
2 values
repo_name
stringlengths
5
140
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
905 values
visit_date
timestamp[us]date
2015-08-09 11:21:18
2023-09-06 10:45:07
revision_date
timestamp[us]date
1997-09-14 05:04:47
2023-09-17 19:19:19
committer_date
timestamp[us]date
1997-09-14 05:04:47
2023-09-06 06:22:19
github_id
int64
3.89k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-07 00:51:45
2023-09-14 21:58:39
gha_created_at
timestamp[us]date
2008-03-27 23:40:48
2023-08-21 23:17:38
gha_language
stringclasses
141 values
src_encoding
stringclasses
34 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
3
10.4M
extension
stringclasses
115 values
content
stringlengths
3
10.4M
authors
listlengths
1
1
author_id
stringlengths
0
158
6e2990971c1d02e528de5998113e72aa3cb58820
7d5074e124e8144c57c136b1e1ad6ab94304017a
/src/graphic/core/framebuffer.hpp
e155021341433740329d8dc87555cbdf5e785add
[]
no_license
Thanduriel/wimp_s
3ced5abf3b989ce1752713a3d12107123a086a15
adb27d2777c6a98bd19370379ea9dc672613e7cc
refs/heads/master
2021-06-26T06:37:38.877709
2020-07-06T16:57:33
2020-07-06T16:57:33
90,191,659
1
0
null
null
null
null
UTF-8
C++
false
false
2,119
hpp
#pragma once #include <vector> namespace Graphic { class Texture; /// Abstraction for rendertarget objects /// \remarks Not yet supported: /// - Bind cubemap faces /// - Some MSAA functionality? /// - Blit multiple Targets at once /// - Clear multiple Targets at once /// - ... class Framebuffer { public: struct Attachment { /// \param[in] _mipLevel /// Used miplevel of this attachment. /// \param[in] _layer /// Used array or cubemap depth level of this texture. Attachment(Texture* _pTexture, unsigned int _mipLevel = 0, unsigned int _layer = 0); Texture* pTexture; unsigned int mipLevel; unsigned int layer; }; /// \brief Creates a new framebuffer with the given attachments. /// Will perform several sanity checks if _DEBUG is defined. /// /// \param [in] depthWithStencil /// If true the depthStencilAttachment is expected to contain a stencil buffer. Framebuffer(const Attachment& _colorAttachment, const Attachment& _depthStencilAttachment = Attachment(NULL), bool _depthWithStencil = false); /// \brief Creates a new framebuffer with the given attachments. /// Will perform several sanity checks if _DEBUG is defined. /// /// \param [in] depthWithStencil /// If true the depthStencilAttachment is expected to contain a stencil buffer. Framebuffer(const std::vector<Attachment>& _colorAttachments, const Attachment& _depthStencilAttachment = Attachment(NULL), bool _depthWithStencil = false); ~Framebuffer(); const std::vector<Attachment>& GetColorAttachments() const { return m_colorAttachments; } const Attachment& GetDepthStencilAttachment() const { return m_depthStencil; } private: friend class Device; /// Internal initialization function, since we lack C++11 delegating constructors -.- /// Note that m_depthStencil is already filled by the constructors initializer list. void Initialize(const std::vector<Attachment>& _colorAttachments, bool _depthWithStencil); unsigned int m_framebuffer; Attachment m_depthStencil; std::vector<Attachment> m_colorAttachments; }; } // namespace Graphic
[ "rojendersie@alice.de" ]
rojendersie@alice.de
3cfc2e4b78d4bcb3de11053026961dccf13de641
d4c6151c86413dfd0881706a08aff5953a4aa28b
/src/ui/bin/root_presenter/tests/fakes/fake_session.cc
e1cdae51c293644d2d05b60f3894bfe785da2a90
[ "BSD-3-Clause" ]
permissive
opensource-assist/fuschia
64e0494fe0c299cf19a500925e115a75d6347a10
66646c55b3d0b36aae90a4b6706b87f1a6261935
refs/heads/master
2022-11-02T02:11:41.392221
2019-12-27T00:43:47
2019-12-27T00:43:47
230,425,920
0
1
BSD-3-Clause
2022-10-03T10:28:51
2019-12-27T10:43:28
C++
UTF-8
C++
false
false
1,459
cc
// Copyright 2019 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "src/ui/bin/root_presenter/tests/fakes/fake_session.h" #include "src/lib/fxl/logging.h" namespace root_presenter { namespace testing { FakeSession::FakeSession() : binding_(this) {} FakeSession::~FakeSession() {} void FakeSession::Bind(fidl::InterfaceRequest<fuchsia::ui::scenic::Session> request, fuchsia::ui::scenic::SessionListenerPtr listener) { binding_.Bind(std::move(request)); listener_ = std::move(listener); } void FakeSession::Enqueue(std::vector<fuchsia::ui::scenic::Command> cmds) { for (auto it = cmds.begin(); it != cmds.end(); ++it) { last_cmds_.push_back(std::move(*it)); } } void FakeSession::Present(uint64_t presentation_time, std::vector<zx::event> acquire_fences, std::vector<zx::event> release_fences, PresentCallback callback) { present_called_ = true; } void FakeSession::Present(uint64_t presentation_time, PresentCallback callback) { present_called_ = true; } void FakeSession::RequestPresentationTimes(zx_duration_t request_prediction_span, RequestPresentationTimesCallback callback) {} void FakeSession::Present2(fuchsia::ui::scenic::Present2Args args, Present2Callback callback) {} } // namespace testing } // namespace root_presenter
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
81ff8fc5963acdb5e30b28ee788b7839482220b0
3cf6bb62295c532fc0bbe83892035a73798288b7
/camera/lib/QCamera2/HAL/QCamera2HWI.h
5ec40a8460956ef854d78ce8a68bda06e545c853
[]
no_license
qiangzai00001/QuectelShare
4698c270fde9b2a3fb88f9633302553582a34a8c
92fbb0f6117219f63b3a83887e16e4f8335ab493
refs/heads/master
2022-12-14T20:21:13.450593
2020-01-14T04:56:44
2020-01-14T04:56:44
null
0
0
null
null
null
null
UTF-8
C++
false
false
34,275
h
/* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the following * disclaimer in the documentation and/or other materials provided * with the distribution. * * Neither the name of The Linux Foundation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * */ #ifndef __QCAMERA2HARDWAREINTERFACE_H__ #define __QCAMERA2HARDWAREINTERFACE_H__ // System dependencies #include <utils/Mutex.h> #include <utils/Condition.h> // Camera dependencies #include "camera.h" #include "QCameraAllocator.h" #include "QCameraChannel.h" #include "QCameraCmdThread.h" #include "QCameraDisplay.h" #include "QCameraMem.h" #include "QCameraParameters.h" #include "QCameraParametersIntf.h" #include "QCameraPerf.h" #include "QCameraPostProc.h" #include "QCameraQueue.h" #include "QCameraStream.h" #include "QCameraStateMachine.h" #include "QCameraThermalAdapter.h" #include "QCameraFOVControl.h" #include "QCameraDualCamSettings.h" #ifdef TARGET_TS_MAKEUP #include "ts_makeup_engine.h" #include "ts_detectface_engine.h" #endif extern "C" { #include "mm_camera_interface.h" #include "mm_jpeg_interface.h" } #include "QCameraTrace.h" namespace qcamera { #ifndef TRUE #define TRUE 1 #endif #ifndef FALSE #define FALSE 0 #endif typedef enum { QCAMERA_CH_TYPE_ZSL, QCAMERA_CH_TYPE_CAPTURE, QCAMERA_CH_TYPE_PREVIEW, QCAMERA_CH_TYPE_VIDEO, QCAMERA_CH_TYPE_SNAPSHOT, QCAMERA_CH_TYPE_RAW, QCAMERA_CH_TYPE_METADATA, QCAMERA_CH_TYPE_ANALYSIS, QCAMERA_CH_TYPE_CALLBACK, QCAMERA_CH_TYPE_REPROCESSING, QCAMERA_CH_TYPE_MAX } qcamera_ch_type_enum_t; typedef struct { int32_t msg_type; int32_t ext1; int32_t ext2; } qcamera_evt_argm_t; #define QCAMERA_DUMP_FRM_PREVIEW 1 #define QCAMERA_DUMP_FRM_VIDEO (1<<1) #define QCAMERA_DUMP_FRM_INPUT_JPEG (1<<2) #define QCAMERA_DUMP_FRM_THUMBNAIL (1<<3) #define QCAMERA_DUMP_FRM_RAW (1<<4) #define QCAMERA_DUMP_FRM_OUTPUT_JPEG (1<<5) #define QCAMERA_DUMP_FRM_INPUT_REPROCESS (1<<6) #define QCAMERA_DUMP_FRM_MASK_ALL 0x000000ff #define QCAMERA_ION_USE_CACHE true #define QCAMERA_ION_USE_NOCACHE false #define MAX_ONGOING_JOBS 25 #define MAX(a, b) ((a) > (b) ? (a) : (b)) #define EXIF_ASCII_PREFIX_SIZE 8 //(sizeof(ExifAsciiPrefix)) typedef enum { QCAMERA_NOTIFY_CALLBACK, QCAMERA_DATA_CALLBACK, QCAMERA_DATA_TIMESTAMP_CALLBACK, QCAMERA_DATA_SNAPSHOT_CALLBACK } qcamera_callback_type_m; /* meta data type and value in CameraMetaDataCallback */ typedef enum { QCAMERA_METADATA_ASD = 0x001, QCAMERA_METADATA_FD, QCAMERA_METADATA_HDR, QCAMERA_METADATA_LED_CALIB } cam_manual_capture_type; typedef void (*camera_release_callback)(void *user_data, void *cookie, int32_t cb_status); typedef void (*jpeg_data_callback)(int32_t msg_type, const camera_memory_t *data, unsigned int index, camera_frame_metadata_t *metadata, void *user, uint32_t frame_idx, camera_release_callback release_cb, void *release_cookie, void *release_data); typedef struct { qcamera_callback_type_m cb_type; // event type int32_t msg_type; // msg type int32_t ext1; // extended parameter int32_t ext2; // extended parameter camera_memory_t * data; // ptr to data memory struct unsigned int index; // index of the buf in the whole buffer int64_t timestamp; // buffer timestamp camera_frame_metadata_t *metadata; // meta data void *user_data; // any data needs to be released after callback void *cookie; // release callback cookie camera_release_callback release_cb; // release callback uint32_t frame_index; // frame index for the buffer } qcamera_callback_argm_t; class QCameraCbNotifier { public: QCameraCbNotifier(QCamera2HardwareInterface *parent) : mNotifyCb (NULL), mDataCb (NULL), mDataCbTimestamp (NULL), mCallbackCookie (NULL), mJpegCb(NULL), mJpegCallbackCookie(NULL), mParent (parent), mDataQ(releaseNotifications, this), mActive(false){} virtual ~QCameraCbNotifier(); virtual int32_t notifyCallback(qcamera_callback_argm_t &cbArgs); virtual void setCallbacks(camera_notify_callback notifyCb, camera_data_callback dataCb, camera_data_timestamp_callback dataCbTimestamp, void *callbackCookie); virtual void setJpegCallBacks( jpeg_data_callback jpegCb, void *callbackCookie); virtual int32_t startSnapshots(); virtual void stopSnapshots(); virtual void exit(); static void * cbNotifyRoutine(void * data); static void releaseNotifications(void *data, void *user_data); static bool matchSnapshotNotifications(void *data, void *user_data); static bool matchPreviewNotifications(void *data, void *user_data); static bool matchTimestampNotifications(void *data, void *user_data); virtual int32_t flushPreviewNotifications(); virtual int32_t flushVideoNotifications(); private: camera_notify_callback mNotifyCb; camera_data_callback mDataCb; camera_data_timestamp_callback mDataCbTimestamp; void *mCallbackCookie; jpeg_data_callback mJpegCb; void *mJpegCallbackCookie; QCamera2HardwareInterface *mParent; QCameraQueue mDataQ; QCameraCmdThread mProcTh; bool mActive; }; class QCamera2HardwareInterface : public QCameraAllocator, public QCameraThermalCallback, public QCameraAdjustFPS { public: /* static variable and functions accessed by camera service */ static camera_device_ops_t mCameraOps; static int set_preview_window(struct camera_device *, struct preview_stream_ops *window); static void set_CallBacks(struct camera_device *, camera_notify_callback notify_cb, camera_data_callback data_cb, camera_data_timestamp_callback data_cb_timestamp, camera_request_memory get_memory, void *user); static void enable_msg_type(struct camera_device *, int32_t msg_type); static void disable_msg_type(struct camera_device *, int32_t msg_type); static int msg_type_enabled(struct camera_device *, int32_t msg_type); static int start_preview(struct camera_device *); static void stop_preview(struct camera_device *); static int preview_enabled(struct camera_device *); static int store_meta_data_in_buffers(struct camera_device *, int enable); static int restart_start_preview(struct camera_device *); static int restart_stop_preview(struct camera_device *); static int pre_start_recording(struct camera_device *); static int start_recording(struct camera_device *); static void stop_recording(struct camera_device *); static int recording_enabled(struct camera_device *); static void release_recording_frame(struct camera_device *, const void *opaque); static int auto_focus(struct camera_device *); static int cancel_auto_focus(struct camera_device *); static int pre_take_picture(struct camera_device *); static int take_picture(struct camera_device *); int takeLiveSnapshot_internal(); int cancelLiveSnapshot_internal(); int takeBackendPic_internal(bool *JpegMemOpt, char *raw_format); void clearIntPendingEvents(); void checkIntPicPending(bool JpegMemOpt, char *raw_format); static int cancel_picture(struct camera_device *); static int set_parameters(struct camera_device *, const char *parms); static int stop_after_set_params(struct camera_device *); static int commit_params(struct camera_device *); static int restart_after_set_params(struct camera_device *); static char* get_parameters(struct camera_device *); static void put_parameters(struct camera_device *, char *); static int send_command(struct camera_device *, int32_t cmd, int32_t arg1, int32_t arg2); static int send_command_restart(struct camera_device *, int32_t cmd, int32_t arg1, int32_t arg2); static void release(struct camera_device *); static int dump(struct camera_device *, int fd); static int close_camera_device(hw_device_t *); static int register_face_image(struct camera_device *, void *img_ptr, cam_pp_offline_src_config_t *config); static int prepare_preview(struct camera_device *); static int prepare_snapshot(struct camera_device *device); public: QCamera2HardwareInterface(uint32_t cameraId); virtual ~QCamera2HardwareInterface(); int openCamera(struct hw_device_t **hw_device); // Dual camera specific oprations int bundleRelatedCameras(bool syncOn); int getCameraSessionId(uint32_t* session_id); const cam_sync_related_sensors_event_info_t* getRelatedCamSyncInfo( void); int32_t setRelatedCamSyncInfo( cam_sync_related_sensors_event_info_t* info); bool isFrameSyncEnabled(void); int32_t setFrameSyncEnabled(bool enable); int32_t setMpoComposition(bool enable); bool getMpoComposition(void); bool getRecordingHintValue(void); int32_t setRecordingHintValue(int32_t value); bool isPreviewRestartNeeded(void) { return mPreviewRestartNeeded; }; static int getCapabilities(uint32_t cameraId, struct camera_info *info, cam_sync_type_t *cam_type); static int initCapabilities(uint32_t cameraId, mm_camera_vtbl_t *cameraHandle); static cam_capability_t *getCapabilities(mm_camera_ops_t *ops, uint32_t cam_handle); cam_capability_t *getCamHalCapabilities(); // Implementation of QCameraAllocator virtual QCameraMemory *allocateStreamBuf(cam_stream_type_t stream_type, size_t size, int stride, int scanline, uint8_t &bufferCnt); virtual int32_t allocateMoreStreamBuf(QCameraMemory *mem_obj, size_t size, uint8_t &bufferCnt); virtual QCameraHeapMemory *allocateStreamInfoBuf( cam_stream_type_t stream_type, uint8_t bufCount = 1, uint32_t cam_type = MM_CAMERA_TYPE_MAIN); virtual QCameraHeapMemory *allocateMiscBuf(cam_stream_info_t *streamInfo); virtual QCameraMemory *allocateStreamUserBuf(cam_stream_info_t *streamInfo); virtual void waitForDeferredAlloc(cam_stream_type_t stream_type); // Implementation of QCameraThermalCallback virtual int thermalEvtHandle(qcamera_thermal_level_enum_t *level, void *userdata, void *data); virtual int recalcFPSRange(int &minFPS, int &maxFPS, const float &minVideoFPS, const float &maxVideoFPS, cam_fps_range_t &adjustedRange, bool bRecordingHint); friend class QCameraStateMachine; friend class QCameraPostProcessor; friend class QCameraCbNotifier; friend class QCameraMuxer; int32_t initStreamInfoBuf(cam_stream_type_t stream_type, cam_stream_info_t *streamInfo, uint32_t cam_type = MM_CAMERA_TYPE_MAIN); void setJpegCallBacks(jpeg_data_callback jpegCb, void *callbackCookie); int32_t initJpegHandle(); int32_t deinitJpegHandle(); int32_t setJpegHandleInfo(mm_jpeg_ops_t *ops, mm_jpeg_mpo_ops_t *mpo_ops, uint32_t pJpegClientHandle); int32_t getJpegHandleInfo(mm_jpeg_ops_t *ops, mm_jpeg_mpo_ops_t *mpo_ops, uint32_t *pJpegClientHandle); uint32_t getCameraId() { return mCameraId; }; bool bLiveSnapshot; private: int setPreviewWindow(struct preview_stream_ops *window); int setCallBacks( camera_notify_callback notify_cb, camera_data_callback data_cb, camera_data_timestamp_callback data_cb_timestamp, camera_request_memory get_memory, void *user); int enableMsgType(int32_t msg_type); int disableMsgType(int32_t msg_type); int msgTypeEnabled(int32_t msg_type); int msgTypeEnabledWithLock(int32_t msg_type); int startPreview(); int stopPreview(); int storeMetaDataInBuffers(int enable); int preStartRecording(); int startRecording(); int stopRecording(); int releaseRecordingFrame(const void *opaque); int autoFocus(); int cancelAutoFocus(); int preTakePicture(); int takePicture(); int stopCaptureChannel(bool destroy); int cancelPicture(); int takeLiveSnapshot(); int takePictureInternal(); int cancelLiveSnapshot(); char* getParameters() {return mParameters.getParameters(); } int putParameters(char *); int sendCommand(int32_t cmd, int32_t &arg1, int32_t &arg2); int release(); int dump(int fd); int registerFaceImage(void *img_ptr, cam_pp_offline_src_config_t *config, int32_t &faceID); int32_t longShot(); uint32_t deferPPInit(); int openCamera(); int closeCamera(); int processAPI(qcamera_sm_evt_enum_t api, void *api_payload); int processEvt(qcamera_sm_evt_enum_t evt, void *evt_payload); int processSyncEvt(qcamera_sm_evt_enum_t evt, void *evt_payload); void lockAPI(); void waitAPIResult(qcamera_sm_evt_enum_t api_evt, qcamera_api_result_t *apiResult); void unlockAPI(); void signalAPIResult(qcamera_api_result_t *result); void signalEvtResult(qcamera_api_result_t *result); int calcThermalLevel(qcamera_thermal_level_enum_t level, const int minFPSi, const int maxFPSi, const float &minVideoFPS, const float &maxVideoFPS, cam_fps_range_t &adjustedRange, enum msm_vfe_frame_skip_pattern &skipPattern, bool bRecordingHint); int updateThermalLevel(void *level); // update entris to set parameters and check if restart is needed int updateParameters(const char *parms, bool &needRestart); // send request to server to set parameters int commitParameterChanges(); bool isCaptureShutterEnabled(); bool needDebugFps(); bool isRegularCapture(); bool needOfflineReprocessing(); bool isCACEnabled(); bool is4k2kResolution(cam_dimension_t* resolution); bool isPreviewRestartEnabled(); bool needReprocess(); bool needHALPP() {return m_bNeedHalPP;} bool needRotationReprocess(); void debugShowVideoFPS(); void debugShowPreviewFPS(); void dumpJpegToFile(const void *data, size_t size, uint32_t index); void dumpFrameToFile(QCameraStream *stream, mm_camera_buf_def_t *frame, uint32_t dump_type, const char *misc = NULL); void dumpMetadataToFile(QCameraStream *stream, mm_camera_buf_def_t *frame,char *type); void releaseSuperBuf(mm_camera_super_buf_t *super_buf); void playShutter(); void getThumbnailSize(cam_dimension_t &dim); uint32_t getJpegQuality(); QCameraExif *getExifData(); cam_sensor_t getSensorType(); bool isLowPowerMode(); nsecs_t getBootToMonoTimeOffset(); int32_t processAutoFocusEvent(cam_auto_focus_data_t &focus_data); int32_t processZoomEvent(cam_crop_data_t &crop_info); int32_t processPrepSnapshotDoneEvent(cam_prep_snapshot_state_t prep_snapshot_state); int32_t processASDUpdate(cam_asd_decision_t asd_decision); int32_t processJpegNotify(qcamera_jpeg_evt_payload_t *jpeg_job); int32_t processHDRData(cam_asd_hdr_scene_data_t hdr_scene); int32_t processLEDCalibration(int32_t value); int32_t processRetroAECUnlock(); int32_t processZSLCaptureDone(); int32_t processSceneData(cam_scene_mode_type scene); int32_t transAwbMetaToParams(cam_awb_params_t &awb_params); int32_t processFocusPositionInfo(cam_focus_pos_info_t &cur_pos_info); int32_t processAEInfo(cam_3a_params_t &ae_params); void processDualCamFovControl(); int32_t sendEvtNotify(int32_t msg_type, int32_t ext1, int32_t ext2); int32_t sendDataNotify(int32_t msg_type, camera_memory_t *data, uint8_t index, camera_frame_metadata_t *metadata, uint32_t frame_idx); int32_t sendPreviewCallback(QCameraStream *stream, QCameraMemory *memory, uint32_t idx); int32_t selectScene(QCameraChannel *pChannel, mm_camera_super_buf_t *recvd_frame); int32_t addChannel(qcamera_ch_type_enum_t ch_type); int32_t startChannel(qcamera_ch_type_enum_t ch_type); int32_t stopChannel(qcamera_ch_type_enum_t ch_type); int32_t delChannel(qcamera_ch_type_enum_t ch_type, bool destroy = true); int32_t addPreviewChannel(); int32_t addSnapshotChannel(); int32_t addVideoChannel(); int32_t addZSLChannel(); int32_t addCaptureChannel(); int32_t addRawChannel(); int32_t addMetaDataChannel(); int32_t addAnalysisChannel(); QCameraReprocessChannel *addReprocChannel(QCameraChannel *pInputChannel, int8_t cur_channel_index = 0); QCameraReprocessChannel *addOfflineReprocChannel( cam_pp_offline_src_config_t &img_config, cam_pp_feature_config_t &pp_feature, stream_cb_routine stream_cb, void *userdata); int32_t addCallbackChannel(); int32_t addStreamToChannel(QCameraChannel *pChannel, cam_stream_type_t streamType, stream_cb_routine streamCB, void *userData); int32_t preparePreview(); void unpreparePreview(); int32_t prepareRawStream(QCameraChannel *pChannel); QCameraChannel *getChannelByHandle(uint32_t channelHandle); mm_camera_buf_def_t *getSnapshotFrame(mm_camera_super_buf_t *recvd_frame); int32_t processFaceDetectionResult(cam_faces_data_t *fd_data); bool needPreviewFDCallback(uint8_t num_faces); int32_t processHistogramStats(cam_hist_stats_t &stats_data); int32_t setHistogram(bool histogram_en); int32_t setFaceDetection(bool enabled); int32_t prepareHardwareForSnapshot(int32_t afNeeded); bool needProcessPreviewFrame(uint32_t frameID); bool needSendPreviewCallback(); bool isNoDisplayMode() {return mParameters.isNoDisplayMode();}; bool isZSLMode() {return mParameters.isZSLMode();}; bool isRdiMode() {return mParameters.isRdiMode();}; uint8_t numOfSnapshotsExpected() { return mParameters.getNumOfSnapshots();}; bool isSecureMode() {return mParameters.isSecureMode();}; bool isLongshotEnabled() { return mLongshotEnabled; }; bool isHFRMode() {return mParameters.isHfrMode();}; bool isLiveSnapshot() {return m_stateMachine.isRecording();}; void setRetroPicture(bool enable) { bRetroPicture = enable; }; bool isRetroPicture() {return bRetroPicture; }; bool isHDRMode() {return mParameters.isHDREnabled();}; uint8_t getBufNumRequired(cam_stream_type_t stream_type); uint8_t getBufNumForAux(cam_stream_type_t stream_type); bool needFDMetadata(qcamera_ch_type_enum_t channel_type); int32_t getPaddingInfo(cam_stream_type_t streamType, cam_padding_info_t *padding_info); int32_t configureOnlineRotation(QCameraChannel &ch); int32_t declareSnapshotStreams(); int32_t unconfigureAdvancedCapture(); int32_t configureAdvancedCapture(); int32_t configureAFBracketing(bool enable = true); int32_t configureHDRBracketing(); int32_t configureHalPostProcess(); int32_t stopAdvancedCapture(QCameraPicChannel *pChannel); int32_t startAdvancedCapture(QCameraPicChannel *pChannel); int32_t configureOptiZoom(); int32_t configureStillMore(); int32_t configureAEBracketing(); int32_t updatePostPreviewParameters(); inline void setOutputImageCount(uint32_t aCount) {mOutputCount = aCount;} inline uint32_t getOutputImageCount() {return mOutputCount;} bool processUFDumps(qcamera_jpeg_evt_payload_t *evt); void captureDone(); int32_t updateMetadata(metadata_buffer_t *pMetaData); void fillFacesData(cam_faces_data_t &faces_data, metadata_buffer_t *metadata); int32_t getPPConfig(cam_pp_feature_config_t &pp_config, int8_t curIndex = 0, bool multipass = FALSE); virtual uint32_t scheduleBackgroundTask(BackgroundTask* bgTask); virtual int32_t waitForBackgroundTask(uint32_t &taskId); bool needDeferred(cam_stream_type_t stream_type); static void camEvtHandle(uint32_t camera_handle, mm_camera_event_t *evt, void *user_data); static void jpegEvtHandle(jpeg_job_status_t status, uint32_t client_hdl, uint32_t jobId, mm_jpeg_output_t *p_buf, void *userdata); static void *evtNotifyRoutine(void *data); // functions for different data notify cb static void zsl_channel_cb(mm_camera_super_buf_t *recvd_frame, void *userdata); static void capture_channel_cb_routine(mm_camera_super_buf_t *recvd_frame, void *userdata); static void postproc_channel_cb_routine(mm_camera_super_buf_t *recvd_frame, void *userdata); static void rdi_mode_stream_cb_routine(mm_camera_super_buf_t *frame, QCameraStream *stream, void *userdata); static void nodisplay_preview_stream_cb_routine(mm_camera_super_buf_t *frame, QCameraStream *stream, void *userdata); static void preview_stream_cb_routine(mm_camera_super_buf_t *frame, QCameraStream *stream, void *userdata); static void synchronous_stream_cb_routine(mm_camera_super_buf_t *frame, QCameraStream *stream, void *userdata); static void postview_stream_cb_routine(mm_camera_super_buf_t *frame, QCameraStream *stream, void *userdata); static void video_stream_cb_routine(mm_camera_super_buf_t *frame, QCameraStream *stream, void *userdata); static void snapshot_channel_cb_routine(mm_camera_super_buf_t *frame, void *userdata); static void raw_channel_cb_routine(mm_camera_super_buf_t *frame, void *userdata); static void raw_stream_cb_routine(mm_camera_super_buf_t *frame, QCameraStream *stream, void *userdata); static void preview_raw_stream_cb_routine(mm_camera_super_buf_t * super_frame, QCameraStream * stream, void * userdata); static void snapshot_raw_stream_cb_routine(mm_camera_super_buf_t * super_frame, QCameraStream * stream, void * userdata); static void metadata_stream_cb_routine(mm_camera_super_buf_t *frame, QCameraStream *stream, void *userdata); static void callback_stream_cb_routine(mm_camera_super_buf_t *frame, QCameraStream *stream, void *userdata); static void reprocess_stream_cb_routine(mm_camera_super_buf_t *frame, QCameraStream *stream, void *userdata); static void secure_stream_cb_routine(mm_camera_super_buf_t *frame, QCameraStream *stream, void *userdata); static void releaseCameraMemory(void *data, void *cookie, int32_t cbStatus); static void returnStreamBuffer(void *data, void *cookie, int32_t cbStatus); static void getLogLevel(); int32_t startRAWChannel(QCameraChannel *pChannel); int32_t stopRAWChannel(); inline bool getNeedRestart() {return m_bNeedRestart;} inline void setNeedRestart(bool needRestart) {m_bNeedRestart = needRestart;} /*Start display skip. Skip starts after skipCnt number of frames from current frame*/ void setDisplaySkip(bool enabled, uint8_t skipCnt = 0); /*Caller can specify range frameID to skip. if end is 0, all the frames after start will be skipped*/ void setDisplayFrameSkip(uint32_t start = 0, uint32_t end = 0); /*Verifies if frameId is valid to skip*/ bool isDisplayFrameToSkip(uint32_t frameId); bool isDualCamera() { return mDualCamera; }; void fillDualCameraFOVControl(); uint8_t getStreamRefCount(cam_stream_type_t stream_type, uint32_t cam_type = MM_CAMERA_TYPE_MAIN); uint32_t getCamHandleForChannel(qcamera_ch_type_enum_t ch_type); int32_t switchCameraCb(uint32_t camMaster); int32_t processCameraControl(uint32_t camState, bool bundledSnapshot); bool needSyncCB(cam_stream_type_t stream_type); uint32_t getSnapshotHandle(); private: camera_device_t mCameraDevice; uint32_t mCameraId; mm_camera_vtbl_t *mCameraHandle; uint32_t mActiveCameras; uint32_t mMasterCamera; bool mBundledSnapshot; bool mCameraOpened; bool mDualCamera; QCameraFOVControl *m_pFovControl; cam_jpeg_metadata_t mJpegMetadata; bool m_bRelCamCalibValid; preview_stream_ops_t *mPreviewWindow; QCameraParametersIntf mParameters; int32_t mMsgEnabled; int mStoreMetaDataInFrame; camera_notify_callback mNotifyCb; camera_data_callback mDataCb; camera_data_timestamp_callback mDataCbTimestamp; camera_request_memory mGetMemory; jpeg_data_callback mJpegCb; void *mCallbackCookie; void *mJpegCallbackCookie; bool m_bMpoEnabled; QCameraStateMachine m_stateMachine; // state machine bool m_smThreadActive; QCameraPostProcessor m_postprocessor; // post processor QCameraThermalAdapter &m_thermalAdapter; QCameraCbNotifier m_cbNotifier; QCameraPerfLockMgr m_perfLockMgr; pthread_mutex_t m_lock; pthread_cond_t m_cond; api_result_list *m_apiResultList; QCameraMemoryPool m_memoryPool; pthread_mutex_t m_evtLock; pthread_cond_t m_evtCond; qcamera_api_result_t m_evtResult; QCameraChannel *m_channels[QCAMERA_CH_TYPE_MAX]; // array holding channel ptr bool m_bPreviewStarted; //flag indicates first preview frame callback is received bool m_bRecordStarted; //flag indicates Recording is started for first time // Signifies if ZSL Retro Snapshots are enabled bool bRetroPicture; // Signifies AEC locked during zsl snapshots bool m_bLedAfAecLock; cam_af_state_t m_currentFocusState; uint32_t mDumpFrmCnt; // frame dump count uint32_t mDumpSkipCnt; // frame skip count mm_jpeg_exif_params_t mExifParams; qcamera_thermal_level_enum_t mThermalLevel; bool mActiveAF; bool m_HDRSceneEnabled; bool mLongshotEnabled; pthread_t mLiveSnapshotThread; pthread_t mIntPicThread; bool mFlashNeeded; bool mFlashConfigured; uint32_t mDeviceRotation; uint32_t mCaptureRotation; uint32_t mJpegExifRotation; bool mUseJpegExifRotation; bool mIs3ALocked; bool mPrepSnapRun; int32_t mZoomLevel; // Flag to indicate whether preview restart needed (for dual camera mode) bool mPreviewRestartNeeded; int mVFrameCount; int mVLastFrameCount; nsecs_t mVLastFpsTime; double mVFps; int mPFrameCount; int mPLastFrameCount; nsecs_t mPLastFpsTime; double mPFps; bool mLowLightConfigured; uint8_t mInstantAecFrameCount; //eztune variables for communication with eztune server at backend bool m_bIntJpegEvtPending; bool m_bIntRawEvtPending; char m_BackendFileName[QCAMERA_MAX_FILEPATH_LENGTH]; size_t mBackendFileSize; pthread_mutex_t m_int_lock; pthread_cond_t m_int_cond; enum DeferredWorkCmd { CMD_DEF_ALLOCATE_BUFF, CMD_DEF_PPROC_START, CMD_DEF_PPROC_INIT, CMD_DEF_METADATA_ALLOC, CMD_DEF_CREATE_JPEG_SESSION, CMD_DEF_PARAM_ALLOC, CMD_DEF_PARAM_INIT, CMD_DEF_GENERIC, CMD_DEF_MAX }; typedef struct { QCameraChannel *ch; cam_stream_type_t type; } DeferAllocBuffArgs; typedef struct { uint8_t bufferCnt; size_t size; } DeferMetadataAllocArgs; typedef struct { jpeg_encode_callback_t jpeg_cb; void *user_data; } DeferPProcInitArgs; typedef union { DeferAllocBuffArgs allocArgs; QCameraChannel *pprocArgs; DeferMetadataAllocArgs metadataAllocArgs; DeferPProcInitArgs pprocInitArgs; BackgroundTask *genericArgs; } DeferWorkArgs; typedef struct { uint32_t mDefJobId; //Job status is needed to check job was successful or failed //Error code when job was not sucessful and there is error //0 when is initialized. //for sucessfull job, do not need to maintain job status int32_t mDefJobStatus; } DefOngoingJob; DefOngoingJob mDefOngoingJobs[MAX_ONGOING_JOBS]; struct DefWork { DefWork(DeferredWorkCmd cmd_, uint32_t id_, DeferWorkArgs args_) : cmd(cmd_), id(id_), args(args_){}; DeferredWorkCmd cmd; uint32_t id; DeferWorkArgs args; }; QCameraCmdThread mDeferredWorkThread; QCameraQueue mCmdQueue; Mutex mDefLock; Condition mDefCond; uint32_t queueDeferredWork(DeferredWorkCmd cmd, DeferWorkArgs args); uint32_t dequeueDeferredWork(DefWork* dw, int32_t jobStatus); int32_t waitDeferredWork(uint32_t &job_id); static void *deferredWorkRoutine(void *obj); bool checkDeferredWork(uint32_t &job_id); int32_t getDefJobStatus(uint32_t &job_id); uint32_t mReprocJob; uint32_t mJpegJob; uint32_t mMetadataAllocJob; uint32_t mInitPProcJob; uint32_t mParamAllocJob; uint32_t mParamInitJob; uint32_t mOutputCount; uint32_t mInputCount; bool mAdvancedCaptureConfigured; bool mHDRBracketingEnabled; int32_t mNumPreviewFaces; // Jpeg Handle shared between HWI instances mm_jpeg_ops_t mJpegHandle; // MPO handle shared between HWI instances // this is needed for MPO composition of related // cam images mm_jpeg_mpo_ops_t mJpegMpoHandle; uint32_t mJpegClientHandle; bool mJpegHandleOwner; //ts add for makeup #ifdef TARGET_TS_MAKEUP TSRect mFaceRect; bool TsMakeupProcess_Preview(mm_camera_buf_def_t *pFrame,QCameraStream * pStream); bool TsMakeupProcess_Snapshot(mm_camera_buf_def_t *pFrame,QCameraStream * pStream); bool TsMakeupProcess(mm_camera_buf_def_t *frame,QCameraStream * stream,TSRect& faceRect); #endif QCameraMemory *mMetadataMem; static uint32_t sNextJobId; //Gralloc memory details pthread_mutex_t mGrallocLock; uint8_t mEnqueuedBuffers; bool mCACDoneReceived; //GPU library to read buffer padding details. void *lib_surface_utils; int (*LINK_get_surface_pixel_alignment)(); uint32_t mSurfaceStridePadding; //QCamera Display Object QCameraDisplay mCameraDisplay; bool m_bNeedRestart; Mutex mMapLock; Condition mMapCond; //Used to decide the next frameID to be skipped uint32_t mLastPreviewFrameID; //FrameID to start frame skip. uint32_t mFrameSkipStart; /*FrameID to stop frameskip. If this is not set, all frames are skipped till we set this*/ uint32_t mFrameSkipEnd; //The offset between BOOTTIME and MONOTONIC timestamps nsecs_t mBootToMonoTimestampOffset; bool bDepthAFCallbacks; bool m_bOptimizeCacheOps; bool m_bNeedHalPP; }; }; // namespace qcamera #endif /* __QCAMERA2HARDWAREINTERFACE_H__ */
[ "tommy.zhang@quectel.com" ]
tommy.zhang@quectel.com
e747b4e2a095046680b5dd63b913a3348b7b6bd1
244d361c0c7bf84d24eb2cfb64cd65221bc59861
/SCI/src/tests/LWA/LWAmain.cc
b0aecf8f98d5e45ee979aea02847561604f007b2
[]
no_license
sanbee/capps
bc35582671208a18ca59a565d190a03195b2aab8
495a05115f96d272f87751c814e4c10ae45cf70f
refs/heads/master
2021-07-10T04:21:20.762101
2019-03-01T22:44:00
2019-03-01T22:44:00
38,459,579
0
0
null
null
null
null
UTF-8
C++
false
false
17,572
cc
#include "LWAStation.h" #include <iostream> #include <fstream> using namespace std; int main() { //Beam Center (Greenwich standard) // int source_h = 0; // int source_m = 0; // double source_s = 0; // double dec = (40.0 + 44.0/60.0 + 0.189/3600.0)*M_PI/180.0; //Observatory1(El) setting // double Obs1_Lati = 32.89*M_PI/180.0; // int Obs1_Long_h = 0; // int Obs1_Long_m = 0; // double Obs1_Long_s = 0.0; // int H1_h = Obs1_Long_h - source_h; // int H1_m = Obs1_Long_m - source_m; // double H1_s = Obs1_Long_s - source_s; //Observatory2(ST) setting // double Obs2_Lati = 31.81*M_PI/180.0; // int Obs2_Long_h = 1; // int Obs2_Long_m = 0; // double Obs2_Long_s = 0.0; // int H2_h = Obs2_Long_h - source_h; // int H2_m = Obs2_Long_m - source_m; // double H2_s = Obs2_Long_s - source_s; //observing Frequency, Width, Ch, Dipole Primary Beam, Noise Setting // double Freq= 20.0 * powl(10.0, 6.0); // double FW = 4.0 * powl(10.0, 6.0); // unsigned int ch = 2; // bool DPB = 1; // bool NS = 0; //l,m,lm step // const double lm_max = 50; //Dipole Primary Beam file, Dipole Configuration file // string DPBfile = "bbl_3mx3mGS_30MHzbp.txt.cln"; // string Dconfile = "LWA_strawman_station_ellipse.txt"; //LWA station1, LWA station2: constractor1 // LWAs LWA1(Freq,FW,ch,DPB,NS,lm_max,Obs1_Lati,dec,H1_h,H1_m,H1_s, // DPBfile,Dconfile); // LWAs LWA2(Freq,FW,ch,DPB,NS,lm_max,Obs2_Lati,dec,H2_h,H2_m,H2_s, // DPBfile,Dconfile); /////////////////////////////////////////////////////////////// ofstream fo7("logfile.txt"); //Observatory1(EL) setting constractor2 double LWAObs1_Lati = 32.89*M_PI/180.0; double LWAObs1_Long = -105.16*M_PI/180.0; //Observatory2(SM) setting constractor2 double LWAObs2_Lati = 32.89*M_PI/180.0; double LWAObs2_Long = -105.16*M_PI/180.0; //double LWAObs2_Lati = 33.48*M_PI/180.0; //double LWAObs2_Long = -108.93*M_PI/180.0; //constractor2 //Beam Center (Greenwich standard) longtitude double delta_H = 90.0; double BeamCenter = (LWAObs1_Long + LWAObs2_Long)/2.0 + (delta_H*M_PI/180.0); double dec2 = ((40.0 + 44.0/60.0 + 0.189/3600.0)-0.0)*M_PI/180.0; fo7 << "Beam Center (Hour angle) = " << BeamCenter*180.0/M_PI << "(deg)" <<endl; fo7 << "Angle from Beam Center = " << delta_H << "(deg)" << endl; fo7 << "Dec = " << dec2*180.0/M_PI << endl; //H1:station1, H2:station2 double H1 = BeamCenter - LWAObs1_Long; double H2 = BeamCenter - LWAObs2_Long; //observing Frequency, Width, Ch, Dipole Primary Beam, Noise Setting double Freq2 = 20.0 * powl(10.0, 6.0); double FW2 = 4.0 * powl(10.0, 6.0); unsigned int ch2 = 40; bool DPB2 = 1; bool NS2 = 0; //l,m,lm step double lm_max2 = 50.0; //Dipole Primary Beam file, Dipole Configuration file string DPBfile2 = "bbl_3mx3mGS_20MHzbp.txt.cln"; string Dconfile2 = "LWA_strawman_station.txt"; //LWA station1, LWA station2: constractor2 LWAs LWA1c2(Freq2,FW2,ch2,DPB2,NS2,lm_max2,LWAObs1_Lati,dec2,H1, DPBfile2,Dconfile2); LWAs LWA2c2(Freq2,FW2,ch2,DPB2,NS2,lm_max2,LWAObs2_Lati,dec2,H2, DPBfile2,Dconfile2); cout << "ch = " << LWA1c2.get_Ch() << endl; cout << "Psize = "<< LWA1c2.get_LWAs_Powersize() << endl; cout << "Esize = "<< LWA1c2.get_LWAs_Erealsize() << endl; fo7 << "Freqency = " << Freq2 << endl; fo7 << "Freqency Width = " << FW2 << endl; fo7 << "ch = " << LWA1c2.get_Ch() << endl; fo7 << "Dipole Primary Beam = " << DPBfile2.c_str() << endl; fo7 << "Dipole Configuration = " << Dconfile2.c_str() << endl; fo7 << endl; /* cout << "***LWA Station1 constractor1***" << endl; cout << "Obs1Lati = " << LWA1.Convert_HDtoAE::get_Obs_Lati()*180.0/M_PI << "(deg)" << endl; cout << "Dec = " << LWA1.Convert_HDtoAE::get_Dec()*180.0/M_PI << "(deg)" << endl; cout << "Hour = " << LWA1.Convert_HDtoAE::get_Hour()*180.0/M_PI << "(deg)" << endl; cout << "Hour_h = " << LWA1.Convert_HDtoAE::get_Hour_h() << "(h)" << endl; cout << "Hour_m = " << LWA1.Convert_HDtoAE::get_Hour_m() << "(m)" << endl; cout << "Hour_s = " << LWA1.Convert_HDtoAE::get_Hour_s() << "(s)" << endl; cout << "Az = " << LWA1.Convert_HDtoAE::get_Az()*180.0/M_PI << "(deg)" << endl; cout << "El = " << LWA1.Convert_HDtoAE::get_El()*180.0/M_PI << "(deg)" << endl; cout << "Beam-Center Direction Cos (X_south,Y_east,Z_zenith)" << endl; cout << "X_south = " << LWA1.Convert_HDtoAE::get_x_south() << endl; cout << "Y_east = " << LWA1.Convert_HDtoAE::get_y_east() << endl; cout << "Z_zenith = " << LWA1.Convert_HDtoAE::get_z_zenith() << endl; cout << " " << endl; */ cout << "***LWA Station1 constractor2***" << endl; cout << "Obs1Lati = " << LWA1c2.Convert_HDtoAE::get_Obs_Lati()*180.0/M_PI << "(deg)" << endl; cout << "Obs1Long = " << LWAObs1_Long*180.0/M_PI << endl; cout << "Dec = " << LWA1c2.Convert_HDtoAE::get_Dec()*180.0/M_PI << "(deg)" << endl; cout << "Hour = " << LWA1c2.Convert_HDtoAE::get_Hour()*180.0/M_PI << "(deg)" << endl; cout << "Hour_h = " << LWA1c2.Convert_HDtoAE::get_Hour_h() << "(h)" << endl; cout << "Hour_m = " << LWA1c2.Convert_HDtoAE::get_Hour_m() << "(m)" << endl; cout << "Hour_s = " << LWA1c2.Convert_HDtoAE::get_Hour_s() << "(s)" << endl; cout << "Az = " << LWA1c2.Convert_HDtoAE::get_Az()*180.0/M_PI << "(deg)" << endl; cout << "El = " << LWA1c2.Convert_HDtoAE::get_El()*180.0/M_PI << "(deg)" << endl; cout << "Beam-Center Direction Cos (X_south,Y_east,Z_zenith)" << endl; cout << "X_south = " << LWA1c2.Convert_HDtoAE::get_x_south() << endl; cout << "Y_east = " << LWA1c2.Convert_HDtoAE::get_y_east() << endl; cout << "Z_zenith = " << LWA1c2.Convert_HDtoAE::get_z_zenith() << endl; cout << " " << endl; fo7 << "***LWA Station1 constractor2***" << endl; fo7 << "Obs1Lati = " << LWA1c2.Convert_HDtoAE::get_Obs_Lati()*180.0/M_PI << "(deg)" << endl; fo7 << "Obs1Long = " << LWAObs1_Long*180.0/M_PI << endl; fo7 << "Dec = " << LWA1c2.Convert_HDtoAE::get_Dec()*180.0/M_PI << "(deg)" << endl; fo7 << "Hour = " << LWA1c2.Convert_HDtoAE::get_Hour()*180.0/M_PI << "(deg)" << endl; fo7 << "Hour_h = " << LWA1c2.Convert_HDtoAE::get_Hour_h() << "(h)" << endl; fo7 << "Hour_m = " << LWA1c2.Convert_HDtoAE::get_Hour_m() << "(m)" << endl; fo7 << "Hour_s = " << LWA1c2.Convert_HDtoAE::get_Hour_s() << "(s)" << endl; fo7 << "Az = " << LWA1c2.Convert_HDtoAE::get_Az()*180.0/M_PI << "(deg)" << endl; fo7 << "El = " << LWA1c2.Convert_HDtoAE::get_El()*180.0/M_PI << "(deg)" << endl; fo7 << "Beam-Center Direction Cos (X_south,Y_east,Z_zenith)" << endl; fo7 << "X_south = " << LWA1c2.Convert_HDtoAE::get_x_south() << endl; fo7 << "Y_east = " << LWA1c2.Convert_HDtoAE::get_y_east() << endl; fo7 << "Z_zenith = " << LWA1c2.Convert_HDtoAE::get_z_zenith() << endl; fo7 << " " << endl; /* cout << "***LWA Station2 constractor1***" << endl; cout << "Obs2Lati = " << LWA2.Convert_HDtoAE::get_Obs_Lati()*180.0/M_PI << "(deg)" << endl; cout << "Dec = " << LWA2.Convert_HDtoAE::get_Dec()*180.0/M_PI << "(deg)" << endl; cout << "Hour = " << LWA2.Convert_HDtoAE::get_Hour()*180.0/M_PI << "(deg)" << endl; cout << "Hour_h = " << LWA2.Convert_HDtoAE::get_Hour_h() << "(h)" << endl; cout << "Hour_m = " << LWA2.Convert_HDtoAE::get_Hour_m() << "(m)" << endl; cout << "Hour_s = " << LWA2.Convert_HDtoAE::get_Hour_s() << "(s)" << endl; cout << "Az = " << LWA2.Convert_HDtoAE::get_Az()*180.0/M_PI << "(deg)" << endl; cout << "El = " << LWA2.Convert_HDtoAE::get_El()*180.0/M_PI << "(deg)" << endl; cout << "Beam-Center Direction Cos (X_south,Y_east,Z_zenith)" << endl; cout << "X_south = " << LWA2.Convert_HDtoAE::get_x_south() << endl; cout << "Y_east = " << LWA2.Convert_HDtoAE::get_y_east() << endl; cout << "Z_zenith = " << LWA2.Convert_HDtoAE::get_z_zenith() << endl; cout << " " << endl; */ cout << "***LWA Station2 constractor2***" << endl; cout << "Obs2Lati = " << LWA2c2.Convert_HDtoAE::get_Obs_Lati()*180.0/M_PI << "(deg)" << endl; cout << "Obs2Long = " << LWAObs2_Long*180.0/M_PI << endl; cout << "Dec = " << LWA2c2.Convert_HDtoAE::get_Dec()*180.0/M_PI << "(deg)" << endl; cout << "Hour = " << LWA2c2.Convert_HDtoAE::get_Hour()*180.0/M_PI << "(deg)" << endl; cout << "Hour_h = " << LWA2c2.Convert_HDtoAE::get_Hour_h() << "(h)" << endl; cout << "Hour_m = " << LWA2c2.Convert_HDtoAE::get_Hour_m() << "(m)" << endl; cout << "Hour_s = " << LWA2c2.Convert_HDtoAE::get_Hour_s() << "(s)" << endl; cout << "Az = " << LWA2c2.Convert_HDtoAE::get_Az()*180.0/M_PI << "(deg)" << endl; cout << "El = " << LWA2c2.Convert_HDtoAE::get_El()*180.0/M_PI << "(deg)" << endl; cout << "Beam-Center Direction Cos (X_south,Y_east,Z_zenith)" << endl; cout << "X_south = " << LWA2c2.Convert_HDtoAE::get_x_south() << endl; cout << "Y_east = " << LWA2c2.Convert_HDtoAE::get_y_east() << endl; cout << "Z_zenith = " << LWA2c2.Convert_HDtoAE::get_z_zenith() << endl; cout << " " << endl; fo7 << "***LWA Station2 constractor2***" << endl; fo7 << "Obs2Lati = " << LWA2c2.Convert_HDtoAE::get_Obs_Lati()*180.0/M_PI << "(deg)" << endl; fo7 << "Obs2Long = " << LWAObs2_Long*180.0/M_PI << endl; fo7 << "Dec = " << LWA2c2.Convert_HDtoAE::get_Dec()*180.0/M_PI << "(deg)" << endl; fo7 << "Hour = " << LWA2c2.Convert_HDtoAE::get_Hour()*180.0/M_PI << "(deg)" << endl; fo7 << "Hour_h = " << LWA2c2.Convert_HDtoAE::get_Hour_h() << "(h)" << endl; fo7 << "Hour_m = " << LWA2c2.Convert_HDtoAE::get_Hour_m() << "(m)" << endl; fo7 << "Hour_s = " << LWA2c2.Convert_HDtoAE::get_Hour_s() << "(s)" << endl; fo7 << "Az = " << LWA2c2.Convert_HDtoAE::get_Az()*180.0/M_PI << "(deg)" << endl; fo7 << "El = " << LWA2c2.Convert_HDtoAE::get_El()*180.0/M_PI << "(deg)" << endl; fo7 << "Beam-Center Direction Cos (X_south,Y_east,Z_zenith)" << endl; fo7 << "X_south = " << LWA2c2.Convert_HDtoAE::get_x_south() << endl; fo7 << "Y_east = " << LWA2c2.Convert_HDtoAE::get_y_east() << endl; fo7 << "Z_zenith = " << LWA2c2.Convert_HDtoAE::get_z_zenith() << endl; fo7 << " " << endl; /* cout << "***LWAs1 Dipole Configuration***" << endl; cout << "Filename = " << LWA1.LWAs_Dipole_Conf::get_fname() << endl; cout << "Number = " << LWA1.LWAs_Dipole_Conf::get_number(255) << endl; cout << "East = " << LWA1.LWAs_Dipole_Conf::get_East(255) << endl; cout << "North = " << LWA1.LWAs_Dipole_Conf::get_North(255) << endl; cout << "Zenith = " << LWA1.LWAs_Dipole_Conf::get_Zenith() << endl; cout << LWA1.LWAs_Dipole_Conf::get_size() << endl; cout << " " << endl; cout << "***LWAs2 Dipole Configuration***" << endl; cout << "Filename = " << LWA2.LWAs_Dipole_Conf::get_fname() << endl; cout << "Number = " << LWA2.LWAs_Dipole_Conf::get_number(255) << endl; cout << "East = " << LWA2.LWAs_Dipole_Conf::get_East(255) << endl; cout << "North = " << LWA2.LWAs_Dipole_Conf::get_North(255) << endl; cout << "Zenith = " << LWA2.LWAs_Dipole_Conf::get_Zenith() << endl; cout << LWA2.LWAs_Dipole_Conf::get_size() << endl; cout << " " << endl; cout << "***LWAs1 Dipole PB***"<< endl; cout << LWA1.LWAs_Dipole_PB::get_elevation(255) << endl; cout << LWA1.LWAs_Dipole_PB::get_azimuth(255) << endl; cout << LWA1.LWAs_Dipole_PB::get_power(255) << endl; cout << LWA1.LWAs_Dipole_PB::get_size() << endl; cout << " " << endl; cout << "***LWAs2 Dipole PB***"<< endl; cout << LWA2.LWAs_Dipole_PB::get_elevation(255) << endl; cout << LWA2.LWAs_Dipole_PB::get_azimuth(255) << endl; cout << LWA2.LWAs_Dipole_PB::get_power(255) << endl; cout << LWA2.LWAs_Dipole_PB::get_size() << endl; cout << " " << endl; */ /* cout << "Frequency = " << LWA1.get_Freq() << endl; cout << "Frequency Width = " << LWA1.get_FreqW() << endl; cout << "light velocity = " << LWA1.get_C() << endl; cout << "Delta_Frequency = " << LWA1.get_DeltaFreq() << endl; cout << "Channel = " << LWA1.get_Ch() << endl; */ /* cout << "rotation_W_size = " << LWA.get_rotation_W_size() << endl; for(int i = 0; i < LWA.get_rotation_W_size(); i++ ){ cout << i << ' ' << LWA.get_rotation_W(i) << endl; } */ //File out (Station1:Power) ofstream fo1; fo1.open("test_LWAs1_Power.txt"); for(long int i = 0; i < LWA1c2.get_LWAs_Powersize(); i++){ fo1 << LWA1c2.get_LWAs_L(i) << ' ' << LWA1c2.get_LWAs_M(i) << ' ' << LWA1c2.get_LWAs_Power(i) << endl; } fo1.close(); //File out (Station2:Power) ofstream fo2; fo2.open("test_LWAs2_Power.txt"); for(long int i = 0; i < LWA2c2.get_LWAs_Powersize(); i++){ fo2 << LWA2c2.get_LWAs_L(i) << ' ' << LWA2c2.get_LWAs_M(i) << ' ' << LWA2c2.get_LWAs_Power(i) << endl; } fo2.close(); /* //File out (Station1:Ereal, Eimag) ofstream fo3; fo3.open("test_LWAs1_Ereal_Eimag.txt"); for(long int i = 0; i < LWA1.get_LWAs_Erealsize(); i++){ fo3 << LWA1.get_LWAs_L(i) << ' ' << LWA1.get_LWAs_M(i) << ' ' << LWA1.get_LWAs_Ereal(i) << ' ' << LWA1.get_LWAs_Eimag(i) <<endl; } fo3.close(); //File out (Station2:Ereal, Eimag) ofstream fo4; fo4.open("test_LWAs2_Ereal_Eimag.txt"); for(long int i = 0; i < LWA2.get_LWAs_Erealsize(); i++){ fo4 << LWA2.get_LWAs_L(i) << ' ' << LWA2.get_LWAs_M(i) << ' ' << LWA2.get_LWAs_Ereal(i) << ' ' << LWA2.get_LWAs_Eimag(i) <<endl; } fo4.close(); //File out (Station12:Ereal1*Ereal2, Eimag2*Eimag2) ofstream fo5; fo5.open("test_LWAs12_Ereal12_Eimag12.txt"); for(long int i = 0; i < LWA1.get_LWAs_Powersize(); i++){ fo5 << LWA1.get_LWAs_L(i) << ' ' << LWA1.get_LWAs_M(i) << ' ' << LWA1.get_LWAs_Ereal(i)*LWA2.get_LWAs_Ereal(i) +LWA1.get_LWAs_Eimag(i)*LWA2.get_LWAs_Eimag(i) <<endl; } fo5.close(); */ //constractor2 //File out (Station12:Ereal1*Ereal2, Eimag2*Eimag2) ofstream fo6("test_LWAs12c2_Ereal12_Eimag12.txt"); for(long int i = 0; i < LWA1c2.get_LWAs_Powersize(); i++){ double Station12_Power = 0.0; for(int k = i*LWA1c2.get_Ch(); k < (i+1)*LWA1c2.get_Ch(); k++){ //Station12_Power += LWA1c2.get_LWAs_Ereal(k) * LWA2c2.get_LWAs_Ereal(k) // +LWA1c2.get_LWAs_Eimag(k) * LWA2c2.get_LWAs_Eimag(k); Station12_Power += sqrt(powl(LWA1c2.get_LWAs_Ereal(k), 2.0)+powl(LWA1c2.get_LWAs_Eimag(k), 2.0)) * sqrt(powl(LWA2c2.get_LWAs_Ereal(k), 2.0)+powl(LWA2c2.get_LWAs_Eimag(k), 2.0)); } fo6 << LWA1c2.get_LWAs_L(i) << ' ' << LWA1c2.get_LWAs_M(i) << ' ' << Station12_Power << endl; } fo6.close(); fo7.close(); //lati->VL, dec->CygA //long double latitude = (34.07)*M_PI/180.0; //long double dec = (40.0 + 44.0/60.0 + 0.189/3600.0)*M_PI/180.0; //int H_h = 0; //int H_m = 0; //long double H_s = 0.0; //Convert_HDtoAE a(latitude, dec, H_h, H_m, H_s); //Convert_HDtoAE a2(latitude, dec, M_PI/2.0); //cout << "Latitude = " << a2.get_Lati()*180.0/M_PI << "deg" << endl; //cout << "Hour = " << a2.get_Hour()*180.0/M_PI << "deg" << endl; //cout << "Hour_h = " << a2.get_Hour_h() << "h" << endl; //cout << "Hour_m = " << a2.get_Hour_m() << "m" << endl; //cout << "Hour_s = " << a2.get_Hour_s() << "s" << endl; //cout << "Dec = " << a2.get_Dec()*180.0/M_PI << "deg" << endl; //cout << "Az = " << a2.get_Az()*180.0/M_PI << "deg" << endl; //cout << "El = " << a2.get_El()*180.0/M_PI << "deg" << endl; /////////////////////////////////// // string fname = "LWA_strawman_station.txt"; // fstream fi(fname.c_str(), ios::in); // if(fi.fail()){ // cerr << "Could not open file" << endl; // return 1; // } // LWAs_Dipole_Conf b(fi, fname); // cout << "Filename = " << b.get_fname()<< endl; // cout << "Size = " << b.get_size() << endl; // for(int i = 0; i < b.get_size(); i++){ // cout << "Dipole number = " << b.get_number(i) << endl; // cout << "East = " << b.get_East(i) << endl; // cout << "North = " << b.get_North(i) << endl; // cout << endl; // } // fi.close(); /////////////////////////////////// // string fname2 = "lgBlade_EZNEC_1deg_Bill_EG_30MHz.dat.cln"; // fstream fi2(fname2.c_str(), ios::in); // if(fi2.fail()){ // cerr << "Could not open file" << endl; // return 1; // } // LWAs_Dipole_PB c(fi2, fname2); // cout << "Filename = " << c.get_fname()<< endl; // cout << "Size = " << c.get_size() << endl; // for(int i = 0; i < c.get_size(); i++){ // cout << "Elevation = " << c.get_elevation(i) << endl; // cout << "Azimuth = " << c.get_azimuth(i) << endl; // cout << "Power = " << c.get_power(i) << endl; // cout << endl; // } // fi2.close(); return(0); }
[ "bhatnagar.sanjay@6c983b56-0e34-0410-bb18-b3d48ac8bcd4" ]
bhatnagar.sanjay@6c983b56-0e34-0410-bb18-b3d48ac8bcd4
ae481efe4ec5dcc090cf7320ade5cdee38f90afd
ec4b0d5f02a4242595ecc0e019f16a9df911ffb2
/Channel.cpp
54abb01da7574d2780c9d40671c8b7ad63f97d11
[]
no_license
hellcy/Cpp
6906e0176b29aa435dd84673a4728248c1a66610
e90832503aaaafea19b707fe41b2e2b25598f608
refs/heads/master
2020-03-30T00:13:40.447579
2019-06-19T10:12:48
2019-06-19T10:12:48
150,511,509
0
0
null
null
null
null
UTF-8
C++
false
false
315
cpp
#include <iostream> using namespace std; class Channel { public: static int connections; }; int Channel::connections = 0; class PriChannel : public Channel { }; class NorChannel : public Channel { }; int main(void) { Channel ch; NorChannel ch1; PriChannel ch2; PriChannel &cref = ch2; return 0; }
[ "chengyuan82281681@hotmail.com" ]
chengyuan82281681@hotmail.com
457e267cacc9d71200f63ed16dbbe5519179ae54
06a3f3f3f7004daebf738e2c77a2261197524928
/src/Daggy/CFileDataAggregator.h
dc25d3350ec990dc3e07066f56866d8981c3d2a4
[ "MIT" ]
permissive
Saikat-Upstart/daggy
ed27b853b7ff8a8a93c0a7cb7d7275e4155b07e3
b56856ca55f10ffc7ac2209385b6bc3b72b918f9
refs/heads/master
2021-04-13T12:37:10.240935
2020-03-14T21:32:09
2020-03-14T21:32:09
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,506
h
/* Copyright 2017-2020 Milovidov Mikhail Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #pragma once #include <memory> #include <DaggyCore/IDataAggregator.h> #include <QMetaEnum> class QFile; class CFileDataAggregator : public daggycore::IDataAggregator { Q_OBJECT public: enum ConsoleMessageType {CommError, CommStat, ProvError, ProvStat, AppStat}; Q_ENUM(ConsoleMessageType) CFileDataAggregator(QString output_folder, QString data_sources_name, QObject* parent = nullptr); ~CFileDataAggregator(); daggycore::Result prepare() override; daggycore::Result free() override; public slots: void onDataProviderStateChanged(const QString provider_id, const int state) override; void onDataProviderError(const QString provider_id, const std::error_code error_code) override; void onCommandStateChanged(const QString provider_id, const QString command_id, const daggycore::Command::State state, const int exit_code) override; void onCommandStream(const QString provider_id, const QString command_id, const daggycore::Command::Stream stream) override; void onCommandError(const QString provider_id, const QString command_id, const std::error_code error_code) override; protected: void printAppMessage ( const QString& message ); void printProviderMessage ( const ConsoleMessageType& message_type, const QString& provider_id, const QString& source_message ); void printCommandMessage ( const ConsoleMessageType& message_type, const QString& provider_id, const QString& command_id, const QString& command_message ); QString currentConsoleTime() const; private: QString generateOutputFolder(const QString& data_sources_name) const; bool writeToFile ( const QString& provider_id, const QString& command_id, const daggycore::Command::Stream& stream ); const QString output_folder_; const QString data_sources_name_; const QMetaEnum console_message_type_; const QMetaEnum provider_state_; const QMetaEnum command_state_; QString current_folder_; QMap<QString, std::shared_ptr<QFile>> stream_files_; };
[ "milovidovmikhail@gmail.com" ]
milovidovmikhail@gmail.com
7dfdc55c9ca1d857d84a60fbd15df63ac1304361
569288c10e9cc8c5be2bf381aa853740d211bdd1
/plc4cpp/api/src/main/cpp/org/apache/plc4x/cpp/api/authentication/PlcUsernamePasswordAuthentication.h
5c4bfc2115884601554ac4a2842733159d05d787
[ "Apache-2.0" ]
permissive
fukewei/plc4x
db192ac49c38bc1358f8406e9a66f9c036ccd40d
f23cbec12d0c8c00138f3df617cae152c055781e
refs/heads/master
2020-05-18T05:16:27.206892
2019-04-05T10:18:03
2019-04-05T10:18:03
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,575
h
/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ #ifndef _PLC_USERNAME_PASSWORD_AUTHENTICATION #define _PLC_USERNAME_PASSWORD_AUTHENTICATION #include <string> #include "PlcAuthentication.h" namespace org { namespace apache { namespace plc4x { namespace cpp { namespace api { namespace authentication { class PlcUsernamePasswordAuthentication : public PlcAuthentication { public: PlcUsernamePasswordAuthentication(std::string, std::string); ~PlcUsernamePasswordAuthentication(); std::string getUsername(); std::string getPassword(); bool equals(PlcUsernamePasswordAuthentication&); std::string toString(); int hashCode(); protected: std::string username; std::string password; }; } } } } } } #endif
[ "christofer.dutz@c-ware.de" ]
christofer.dutz@c-ware.de
80fde1bd74d207ace17c1825666d60d95a53bcea
9bc49a6a955d96edb671f0a58fc8a5c6c04ce7f9
/DQM/EcalMonitorClient/src/DQWorkerClient.cc
d674818bec9a458854d77f66969d92c3e41a74f8
[]
no_license
cbernet/cmssw
8d9b6b46f6d3d2b892d0bb842d2eb8e150dba85c
6857635a9abe54328e5456f9de9e20fc61b298f7
refs/heads/CMSSW_7_3_X
2020-05-20T12:01:10.187444
2014-10-16T13:51:38
2014-10-16T13:51:38
25,311,955
2
1
null
2017-01-10T12:28:35
2014-10-16T16:50:53
null
UTF-8
C++
false
false
6,023
cc
#include "../interface/DQWorkerClient.h" #include "DQM/EcalCommon/interface/EcalDQMCommonUtils.h" #include "DQM/EcalCommon/interface/StatusManager.h" #include "DQM/EcalCommon/interface/MESetChannel.h" #include "DQM/EcalCommon/interface/MESetMulti.h" #include "DQM/EcalCommon/interface/MESetUtils.h" #include "FWCore/Utilities/interface/Exception.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "FWCore/ParameterSet/interface/ParameterSetDescription.h" #include <sstream> namespace ecaldqm { DQWorkerClient::DQWorkerClient() : DQWorker(), sources_(), qualitySummaries_(), statusManager_(0) { } /*static*/ void DQWorkerClient::fillDescriptions(edm::ParameterSetDescription& _desc) { DQWorker::fillDescriptions(_desc); _desc.addWildcardUntracked<std::vector<std::string> >("*"); edm::ParameterSetDescription sourceParameters; edm::ParameterSetDescription sourceNodeParameters; fillMESetDescriptions(sourceNodeParameters); sourceParameters.addNode(edm::ParameterWildcard<edm::ParameterSetDescription>("*", edm::RequireZeroOrMore, false, sourceNodeParameters)); _desc.addUntracked("sources", sourceParameters); } void DQWorkerClient::setSource(edm::ParameterSet const& _params) { std::vector<std::string> const& sourceNames(_params.getParameterNames()); for(unsigned iS(0); iS < sourceNames.size(); iS++){ std::string name(sourceNames[iS]); edm::ParameterSet const& params(_params.getUntrackedParameterSet(name)); if(onlineMode_ && params.getUntrackedParameter<bool>("online")) continue; sources_.insert(name, createMESet(params)); } if(verbosity_ > 1){ std::stringstream ss; ss << name_ << ": Using "; for(MESetCollection::const_iterator sItr(sources_.begin()); sItr != sources_.end(); ++sItr) ss << sItr->first << " "; ss << "as sources"; edm::LogInfo("EcalDQM") << ss.str(); } } void DQWorkerClient::endLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&) { // MESetChannel class removed until concurrency issue is finalized #if 0 for(MESetCollection::iterator sItr(sources_.begin()); sItr != sources_.end(); ++sItr){ if(!sItr->second->getLumiFlag()) continue; MESetChannel const* channel(dynamic_cast<MESetChannel const*>(sItr->second)); if(channel) channel->checkDirectory(); } #endif } void DQWorkerClient::bookMEs(DQMStore::IBooker& _ibooker) { DQWorker::bookMEs(_ibooker); resetMEs(); } void DQWorkerClient::releaseMEs() { DQWorker::releaseMEs(); releaseSource(); } void DQWorkerClient::releaseSource() { for(MESetCollection::iterator sItr(sources_.begin()); sItr != sources_.end(); ++sItr) sItr->second->clear(); } bool DQWorkerClient::retrieveSource(DQMStore::IGetter& _igetter, ProcessType _type) { int ready(-1); std::string failedPath; for(MESetCollection::iterator sItr(sources_.begin()); sItr != sources_.end(); ++sItr){ if(_type == kLumi && !sItr->second->getLumiFlag()) continue; if(verbosity_ > 1) edm::LogInfo("EcalDQM") << name_ << ": Retrieving source " << sItr->first; if(!sItr->second->retrieve(_igetter, &failedPath)){ ready = 0; if(verbosity_ > 1) edm::LogWarning("EcalDQM") << name_ << ": Could not find source " << sItr->first << "@" << failedPath; break; } ready = 1; } return ready == 1; } void DQWorkerClient::resetMEs() { for(MESetCollection::iterator mItr(MEs_.begin()); mItr != MEs_.end(); ++mItr){ MESet* meset(mItr->second); if(qualitySummaries_.find(mItr->first) != qualitySummaries_.end()){ MESetMulti* multi(dynamic_cast<MESetMulti*>(meset)); if(multi){ for(unsigned iS(0); iS < multi->getMultiplicity(); ++iS){ multi->use(iS); if(multi->getKind() == MonitorElement::DQM_KIND_TH2F){ multi->resetAll(-1.); multi->reset(kUnknown); } else multi->reset(-1.); } } else{ if(meset->getKind() == MonitorElement::DQM_KIND_TH2F){ meset->resetAll(-1.); meset->reset(kUnknown); } else meset->reset(-1.); } } else meset->reset(); } } void DQWorkerClient::towerAverage_(MESet& _target, MESet const& _source, float _threshold) { bool isQuality(_threshold > 0.); MESet::iterator tEnd(_target.end()); for(MESet::iterator tItr(_target.beginChannel()); tItr != tEnd; tItr.toNextChannel()){ DetId towerId(tItr->getId()); std::vector<DetId> cryIds; if(towerId.subdetId() == EcalTriggerTower) cryIds = getTrigTowerMap()->constituentsOf(EcalTrigTowerDetId(towerId)); else{ cryIds = scConstituents(EcalScDetId(towerId)); } if(cryIds.size() == 0) return; float mean(0.); float nValid(0.); bool masked(false); for(unsigned iId(0); iId < cryIds.size(); ++iId){ float content(_source.getBinContent(cryIds[iId])); if(isQuality){ if(content < 0. || content == 2.) continue; if(content == 5.) masked = true; else{ nValid += 1; if(content > 2.){ masked = true; mean += content - 3.; } else mean += content; } } else{ mean += content; nValid += 1.; } } if(isQuality){ if(nValid < 1.) tItr->setBinContent(masked ? 5. : 2.); else{ mean /= nValid; if(mean < _threshold) tItr->setBinContent(masked ? 3. : 0.); else tItr->setBinContent(masked ? 4. : 1.); } } else tItr->setBinContent(nValid < 1. ? 0. : mean / nValid); } } }
[ "yutaro.iiyama@cern.ch" ]
yutaro.iiyama@cern.ch
810b74f721df192a708baf0d006250c813aab6c7
e369f664d2661575f4502364f70f58f78b217937
/src/engine/profiler.cc
bc09b7a9647602e81ab725a0ce87ec02248e64c3
[ "Apache-2.0" ]
permissive
tianyunfei/mxnet-windows
13d1c232f34469a9fe0d8444ae382dd993e3a635
08e2f3703c2005bb57c4b135a0967edc5441ebe3
refs/heads/master
2021-01-24T08:21:39.074422
2017-06-07T01:00:35
2017-06-07T01:00:35
93,381,879
0
1
null
null
null
null
UTF-8
C++
false
false
5,547
cc
/*! * Copyright (c) 2015 by Contributors * \file profiler.cc * \brief implements profiler */ #include <dmlc/base.h> #include <dmlc/logging.h> #include <set> #include <map> #include <mutex> #include <chrono> #include <iostream> #include <fstream> #include "./profiler.h" namespace mxnet { namespace engine { Profiler* Profiler::instance_ = new Profiler(); const int INITIAL_SIZE = 1024; Profiler::Profiler() : state_(kNotRunning), enable_output_(false), filename_("profile.json") { this->init_time_ = NowInUsec(); // TODO(ziheng) get device number during execution int kMaxNumCpus = 64; this->cpu_num_ = kMaxNumCpus; #if MXNET_USE_CUDA cudaError_t ret = cudaGetDeviceCount(reinterpret_cast<int*>(&this->gpu_num_)); if (ret != cudaSuccess) { this->gpu_num_ = 0; } #endif this->profile_stat = new DevStat[cpu_num_ + gpu_num_ + 1]; this->profile_stat->opr_exec_stats.reserve(INITIAL_SIZE); for (unsigned int i = 0; i < cpu_num_; ++i) { profile_stat[i].dev_name = "cpu/" + std::to_string(i); } for (unsigned int i = 0; i < gpu_num_; ++i) { profile_stat[cpu_num_ + i].dev_name = "gpu/" + std::to_string(i); } profile_stat[cpu_num_ + gpu_num_].dev_name = "cpu pinned/"; mode_ = (ProfilerMode)dmlc::GetEnv("MXNET_PROFILER_MODE", static_cast<int>(kOnlySymbolic)); if (dmlc::GetEnv("MXNET_PROFILER_AUTOSTART", 0)) { this->state_ = ProfilerState::kRunning; this->enable_output_ = true; } } Profiler* Profiler::Get() { return instance_; } void Profiler::SetState(ProfilerState state) { std::lock_guard<std::mutex> lock{this->m_}; this->state_ = state; // once running, output will be enabled. if (state == kRunning) this->enable_output_ = true; } void Profiler::SetConfig(ProfilerMode mode, std::string output_filename) { std::lock_guard<std::mutex> lock{this->m_}; this->mode_ = mode; this->filename_ = output_filename; } OprExecStat *Profiler::AddOprStat(int dev_type, uint32_t dev_id) { OprExecStat* opr_stat = new OprExecStat; opr_stat->dev_type = dev_type; opr_stat->dev_id = dev_id; opr_stat->opr_name[sizeof(opr_stat->opr_name)-1] = '\0'; int idx; switch (dev_type) { case Context::kCPU: idx = dev_id; break; case Context::kGPU: idx = cpu_num_ + dev_id; break; case Context::kCPUPinned: idx = cpu_num_ + gpu_num_; break; default: LOG(FATAL) << "Unkown dev_type"; return NULL; } DevStat& dev_stat = profile_stat[idx]; { std::lock_guard<std::mutex> lock{dev_stat.m_}; dev_stat.opr_exec_stats.push_back(opr_stat); } return opr_stat; } void Profiler::EmitPid(std::ostream *os, const std::string& name, uint32_t pid) { (*os) << " {\n" << " \"ph\": \"M\",\n" << " \"args\": {\n" << " \"name\": \"" << name << "\"\n" << " },\n" << " \"pid\": " << pid << ",\n" << " \"name\": \"process_name\"\n" << " }"; } void Profiler::EmitEvent(std::ostream *os, const std::string& name, const std::string& category, const std::string& ph, uint64_t ts, uint32_t pid, uint32_t tid) { (*os) << " {\n" << " \"name\": \"" << name << "\",\n" << " \"cat\": " << "\"" << category << "\",\n" << " \"ph\": \""<< ph << "\",\n" << " \"ts\": " << ts << ",\n" << " \"pid\": " << pid << ",\n" << " \"tid\": " << tid << "\n" << " }"; } void Profiler::DumpProfile() { std::lock_guard<std::mutex> lock{this->m_}; std::ofstream file; file.open(filename_); file << "{" << std::endl; file << " \"traceEvents\": [" << std::endl; uint32_t dev_num = cpu_num_ + gpu_num_ + 1; for (uint32_t i = 0; i < dev_num; ++i) { const DevStat &d = profile_stat[i]; this->EmitPid(&file, d.dev_name, i); file << ",\n"; } bool first_flag = true; for (uint32_t i = 0; i < dev_num; ++i) { DevStat &d = profile_stat[i]; std::lock_guard<std::mutex> lock(d.m_); uint32_t opr_num = d.opr_exec_stats.size(); for (uint32_t j = 0; j < opr_num; ++j) { const OprExecStat* opr_stat = d.opr_exec_stats[j]; uint32_t pid = i; uint32_t tid = opr_stat->thread_id; if (first_flag) { first_flag = false; } else { file << ","; } file << std::endl; this->EmitEvent(&file, opr_stat->opr_name, "category", "B", opr_stat->opr_start_rel_micros, pid, tid); file << ",\n"; this->EmitEvent(&file, opr_stat->opr_name, "category", "E", opr_stat->opr_end_rel_micros, pid, tid); } } file << "\n" << std::endl; file << " ]," << std::endl; file << " \"displayTimeUnit\": \"ms\"" << std::endl; file << "}" << std::endl; } inline uint64_t NowInUsec() { return std::chrono::duration_cast<std::chrono::microseconds>( std::chrono::high_resolution_clock::now().time_since_epoch()).count(); } void SetOprStart(OprExecStat* opr_stat) { if (!opr_stat) { LOG(WARNING) << "SetOpStart: nullptr"; return; } opr_stat->opr_start_rel_micros = NowInUsec() - Profiler::Get()->GetInitTime(); } void SetOprEnd(OprExecStat* opr_stat) { if (!opr_stat) { LOG(WARNING) << "SetOpEnd: nullptr"; return; } opr_stat->opr_end_rel_micros = NowInUsec() - Profiler::Get()->GetInitTime(); } } // namespace engine } // namespace mxnet
[ "piiswrong@users.noreply.github.com" ]
piiswrong@users.noreply.github.com
c88a837937c82afcd3a7cf260aa3838e24473fd6
b122925a68dd997c9a9bc208fd0f53e4baa113de
/build/iOS/Preview/include/Uno.Diagnostics.ExitEvent.h
d1a15824741bf3a6e30dff0d40713c4365014d77
[]
no_license
samscislowicz/Lensy
e2ca1e5838176687299236bff23ef1f692a6504e
69270bad64ee7e8884e322f8e9e481e314293d30
refs/heads/master
2021-01-25T01:03:05.456091
2017-06-23T23:29:30
2017-06-23T23:29:30
94,716,371
0
0
null
null
null
null
UTF-8
C++
false
false
791
h
// This file was generated based on '/Users/Sam/Library/Application Support/Fusetools/Packages/UnoCore/1.0.11/source/uno/diagnostics/$.uno'. // WARNING: Changes might be lost if you edit this file directly. #pragma once #include <Uno.Diagnostics.ProfileEvent.h> namespace g{namespace Uno{namespace Diagnostics{struct ExitEvent;}}} namespace g{ namespace Uno{ namespace Diagnostics{ // public sealed class ExitEvent :215 // { ::g::Uno::Diagnostics::ProfileEvent_type* ExitEvent_typeof(); void ExitEvent__ctor_1_fn(ExitEvent* __this); void ExitEvent__New1_fn(ExitEvent** __retval); void ExitEvent__get_Type_fn(ExitEvent* __this, int* __retval); struct ExitEvent : ::g::Uno::Diagnostics::ProfileEvent { void ctor_1(); static ExitEvent* New1(); }; // } }}} // ::g::Uno::Diagnostics
[ "samantha.scislowicz@gmail.com" ]
samantha.scislowicz@gmail.com
6971529983283ace785d4f422ada3e8148045599
e0da3e9c1809cb2ad1cb05cb766c920d63cc0272
/src/hand-tracking/include/BrownianMotionPose.h
55fc260dfdf863080b74237668e74257c1d53849
[]
permissive
robotology/visual-tracking-control
70ffd5e41cf2ccc7899301428890250adac2c28f
37733203bd4379244ee6a417898cbd3331b83445
refs/heads/master
2021-06-02T00:29:00.348682
2020-08-31T06:32:32
2020-08-31T06:32:32
72,011,105
15
7
BSD-3-Clause
2019-02-13T09:21:52
2016-10-26T14:23:59
C++
UTF-8
C++
false
false
2,795
h
/* * Copyright (C) 2016-2019 Istituto Italiano di Tecnologia (IIT) * * This software may be modified and distributed under the terms of the * BSD 3-Clause license. See the accompanying LICENSE file for details. */ #ifndef BROWNIANMOTIONPOSE_H #define BROWNIANMOTIONPOSE_H #include <functional> #include <random> #include <BayesFilters/StateModel.h> class BrownianMotionPose : public bfl::StateModel { public: BrownianMotionPose(const float q_xy, const float q_z, const float theta, const float cone_angle, const unsigned int seed) noexcept; BrownianMotionPose(const float q_xy, const float q_z, const float theta, const float cone_angle) noexcept; BrownianMotionPose() noexcept; BrownianMotionPose(const BrownianMotionPose& bm); BrownianMotionPose(BrownianMotionPose&& bm) noexcept; ~BrownianMotionPose() noexcept; BrownianMotionPose& operator=(const BrownianMotionPose& bm); BrownianMotionPose& operator=(BrownianMotionPose&& bm) noexcept; void propagate(const Eigen::Ref<const Eigen::MatrixXf>& cur_state, Eigen::Ref<Eigen::MatrixXf> prop_state) override; void motion(const Eigen::Ref<const Eigen::MatrixXf>& cur_state, Eigen::Ref<Eigen::MatrixXf> mot_state) override; Eigen::MatrixXf getNoiseSample(const int num) override; Eigen::MatrixXf getNoiseCovarianceMatrix() override { return Eigen::MatrixXf::Zero(1, 1); }; bool setProperty(const std::string& property) override { return false; }; protected: float q_xy_; /* Noise standard deviation for z 3D position */ float q_z_; /* Noise standard deviation for x-y 3D position */ float theta_; /* Noise standard deviation for axis-angle rotation */ float cone_angle_; /* Noise standard deviation for axis-angle axis cone */ Eigen::Vector4f cone_dir_; /* Cone direction of rotation. Fixed, left here for future implementation. */ std::mt19937_64 generator_; std::normal_distribution<float> distribution_pos_xy_; std::normal_distribution<float> distribution_pos_z_; std::normal_distribution<float> distribution_theta_; std::uniform_real_distribution<float> distribution_cone_; std::function<float()> gaussian_random_pos_xy_; std::function<float()> gaussian_random_pos_z_; std::function<float()> gaussian_random_theta_; std::function<float()> gaussian_random_cone_; void addAxisangleDisturbance(const Eigen::Ref<const Eigen::MatrixXf>& disturbance_vec, Eigen::Ref<Eigen::MatrixXf> current_vec); }; #endif /* BROWNIANMOTIONPOSE_H */
[ "claudio.fantacci@gmail.com" ]
claudio.fantacci@gmail.com
87fd2217f2cb07d16e6cd69cc378aed71489871c
fde102216c0e0bb5eb5bf3d7c97385eb08ef305b
/IntelligentSystems/s5155126_Caleb_Howard_N_Queens/source_code/local_search/NQueens.cpp
0eaa12cef4c54767c1f13d173880445201533902
[]
no_license
cdhow/University-Projects
2d6c064944116c8d2dfa7920302f76d70036b5f3
1a3e297ae35e2fe050b8ba61b7981e3bb2fb25a9
refs/heads/main
2021-07-09T11:36:45.479299
2020-10-21T06:12:30
2020-10-21T06:12:30
206,219,357
0
0
null
null
null
null
UTF-8
C++
false
false
5,222
cpp
#include "NQueens.h" std::vector<int> NQueens::createBoard() { // Problem will not work for N < 1 if (n_queens < 1) { std::cout << "The N-Queens Problem will not work for 3, 2, and values less than 1." "\nDefaulting to N=8.\n" << std::endl; n_queens = 8; } std::random_device rd; std::mt19937 v(rd()); std::vector<int> chessboard; // Create a chess board where the indexes are the rows and the values are the columns chessboard.reserve(n_queens); for (int i = 0; i < n_queens; i++) { chessboard.emplace_back(i); } // Randomise the board std::shuffle(chessboard.begin(), chessboard.end(), v); return chessboard; } int NQueens::cost(std::vector<int> &chessboard) { int cost = 0; // Loop and check how many pairs of conflicts are in the current configuration for (int i=0; i<chessboard.size(); i++) { for (int j=i+1; j<chessboard.size(); j++) { if (chessboard[i] == chessboard[j] || abs(i-j) == abs(chessboard[i]-chessboard[j])) // conflict found cost++; } } return cost; } void NQueens::random_swap(std::vector<int> &chessboard) { int rand_row1 = 0; int rand_row2 = 0; // Choose two random queens while (rand_row1 == rand_row2) { rand_row1 = (int)random() % n_queens; rand_row2 = (int)random() % n_queens; } // Swap the column positions std::swap(chessboard[rand_row1], chessboard[rand_row2]); } void NQueens::printBoard(std::vector<int> &chessboard) { for (int queen = 0; queen < chessboard.size(); queen++) { for (int row = 0; row < chessboard.size(); row++) { if (chessboard[queen] == row) std::cout << "1 "; else std::cout << "0 "; } std::cout << "\n"; } } bool NQueens::is_valid_N_value() { if (this->n_queens < 1 || this->n_queens == 2 || this->n_queens == 3) { std::cout << this->n_queens << " Queens has no solution." << std::endl; return false; } return true; } void NQueens::solve_simulated_annealing(const int &n, double t, const double &cooling_factor) { srand((unsigned int) time(nullptr)); this->n_queens = n; // If the board has no solutions do not run the algorithm if (!is_valid_N_value()) return; if (n_queens == 1) return; // Initial board std::vector<int> best_board(createBoard()); // Initial cost int cost_best = cost(best_board); // Simulated annealing std::vector<int> successor; successor.reserve(n_queens); while (t > 0) { t *= cooling_factor; successor = best_board; // Alter the success by swapping random queens random_swap(successor); double delta = cost(successor) - cost_best; // If successor cost is less than the current best cost if (delta < 0) { best_board = successor; cost_best = cost(best_board); } else { // Else calculate a probability and update the board based on that probability double p = exp(-delta / t); if (random() / double(RAND_MAX) < p) { best_board = successor; cost_best = cost(best_board); } } // Best board found - print if (cost_best == 0) { std::cout << "Solution for " << this->n_queens << " Queens using the Simulated Annealing algorithm." << std::endl; printBoard(best_board); break; } } } void NQueens::solve_hill_climbing(const int &n) { // Set n_queens this->n_queens = n; // If the board has no solutions do not run the algorithm if (!is_valid_N_value()) return; std::vector<int> best_board(createBoard()); int best_cost = cost(best_board); std::vector<int> successor; successor.reserve(n_queens); // We will restart the board if we have the same cost for 10 swaps int count = 0; // Log time; // Run until the best cost (heuristic) = 0 while (best_cost) { successor = best_board; // Swap the the column positions of two random random queens random_swap(successor); int successor_cost = cost(successor); // Count have many times the successor cost is the same as the best cost if (best_cost == successor_cost) count++; // If the successor has a better cost, update the best_board and it's cost if ( successor_cost< best_cost) { best_board = successor; best_cost = successor_cost; } // If the cost is 0 we have found a solution if (best_cost == 0) { std::cout << "Solution for " << this->n_queens << " Queens using the Hill Climbing algorithm." << std::endl; // Print board printBoard(best_board); break; } // stuck on the same cost 10 times, restart board if (count == 10) { best_board = createBoard(); best_cost = cost(best_board); count = 0; } } }
[ "cdhowo@protonmail.com" ]
cdhowo@protonmail.com
b7b9bc177765c9972cc057477c1a811324642172
f7249f87c4260a48f7efd22a5e14c91413f38b4d
/relay/moc_relaytest.cpp
5e76a83f1bc76e08d5f44704c2a31e99ce0147eb
[]
no_license
XuTangle/itop6818-programs-QtE4.7
c65b5c9342d55fa48cf4b03daffc09ee3d23fa94
ccbec4efe42bed5bdce26c8fede68f13563495fd
refs/heads/master
2022-04-09T10:11:17.895873
2020-03-11T13:18:37
2020-03-11T13:18:37
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,326
cpp
/**************************************************************************** ** Meta object code from reading C++ file 'relaytest.h' ** ** Created: Thu Nov 23 23:59:54 2017 ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "relaytest.h" #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'relaytest.h' doesn't include <QObject>." #elif Q_MOC_OUTPUT_REVISION != 62 #error "This file was generated using the moc from 4.7.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE static const uint qt_meta_data_relaytest[] = { // content: 5, // revision 0, // classname 0, 0, // classinfo 1, 14, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount // slots: signature, parameters, type, tag, flags 11, 10, 10, 10, 0x08, 0 // eod }; static const char qt_meta_stringdata_relaytest[] = { "relaytest\0\0on_RELAY_Button_clicked()\0" }; const QMetaObject relaytest::staticMetaObject = { { &QDialog::staticMetaObject, qt_meta_stringdata_relaytest, qt_meta_data_relaytest, 0 } }; #ifdef Q_NO_DATA_RELOCATION const QMetaObject &relaytest::getStaticMetaObject() { return staticMetaObject; } #endif //Q_NO_DATA_RELOCATION const QMetaObject *relaytest::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; } void *relaytest::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_relaytest)) return static_cast<void*>(const_cast< relaytest*>(this)); return QDialog::qt_metacast(_clname); } int relaytest::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: on_RELAY_Button_clicked(); break; default: ; } _id -= 1; } return _id; } QT_END_MOC_NAMESPACE
[ "brightereyer2@163.com" ]
brightereyer2@163.com
c6a34e8b1abf87ce7bcd2dc94b4de28ae625b47c
8fe5b9206844c0dad651536d2c1bf965d986689c
/Common/EziSocialDelegate.h
a3dcb327b6e1fe12ae11eed253c958cbf6fa9d20
[ "Zlib" ]
permissive
FlowerpotGames/EziSocial-Plugin
4dbfb2ca6be19d71e789b85a8a07905754aadf61
3344ad985d7f9056ac5cf8d10fbc139a4544c2a7
refs/heads/master
2021-01-17T05:45:43.375054
2013-05-06T22:54:43
2013-05-06T22:54:43
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,122
h
// // EziSocialDelegate.h // EziSocialDemo // // Created by Paras Mendiratta on 15/04/13. // EziByte (http://www.ezibyte.com) // /*** This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. */ #ifndef FacebookGameDemo_EziSocialDelegate_h #define FacebookGameDemo_EziSocialDelegate_h #include "cocos2d.h" class EziFacebookDelegate { public: virtual void fbSessionCallback(int responseCode) = 0; virtual void fbUserDetailCallback(cocos2d::CCDictionary* data) = 0; virtual void fbMessageCallback(int responseCode) = 0; virtual void fbSendRequestCallback(int responseCode, cocos2d::CCArray* friendsGotRequests) = 0; virtual void fbRecieveRequestCallback(int responseCode, const char* message, const char* senderName, cocos2d::CCDictionary* dataDictionary) = 0; virtual void fbPageLikeCallback(int responseCode) = 0; virtual void fbFriendsCallback(cocos2d::CCArray* friends) = 0; virtual void fbHighScoresCallback(cocos2d::CCArray* highScores) = 0; virtual void fbUserPhotoCallback(const char *userPhotoPath) = 0; }; class EziEmailDelegate { public: virtual void mailCallback(int responseCode) = 0; }; class EziTwitterDelegate { public: virtual void twSessionCallback(int responseCode) = 0; }; #endif
[ "codesnooker@Parass-MacBook-Pro.local" ]
codesnooker@Parass-MacBook-Pro.local
5badba5bd82a21cc5dcd50faf627ecd019d9a482
dc3693d379a6c1516028756f828e3e840beac0ce
/code/array/N.show.cpp
e35bf5adaaa4577ec31781f077f45fe0ad98df04
[]
no_license
HeckRodSav/Curso_Prog
95436fb4502bea2ca3d7ed0c7b54b1b623b14c10
22b5f25ac3c4b6aced5207efe391d7c94e7cec4d
refs/heads/master
2021-01-20T22:51:36.417015
2017-12-14T16:45:59
2017-12-14T16:45:59
101,827,384
0
0
null
null
null
null
UTF-8
C++
false
false
99
cpp
cout << A1 << endl; cout << A2 << endl; cout << A3 << endl; cout << A4 << endl; cout << A5 << endl;
[ "hrs.heitor@hotmail.com.br" ]
hrs.heitor@hotmail.com.br
fc1de0bf3c36b7ccc496e1d834217dac953c83dc
b48cc66bf4f5a173338e42ba02245da043e71ce7
/LuoguCodes/CF1088C.cpp
a3757b243c6052c00d7dadaeb2a237948e731814
[ "MIT" ]
permissive
Anguei/OI-Codes
6f79f5c446e87b13c6bffe3cc758c722e8d0d65c
0ef271e9af0619d4c236e314cd6d8708d356536a
refs/heads/master
2020-04-22T22:18:14.531234
2019-02-14T14:24:36
2019-02-14T14:24:36
170,703,285
1
0
null
null
null
null
UTF-8
C++
false
false
1,812
cpp
#include <cmath> #include <cctype> #include <cstdio> #include <cstring> #include <set> #include <map> #include <stack> #include <queue> #include <string> #include <vector> #include <iomanip> #include <iostream> #include <algorithm> #define fn "testdata" #define ll long long #define int long long #define pc(x) putchar(x) #define endln putchar(';\n';) #define println(x) print(x), endln #define fileIn freopen("testdata.in", "r", stdin) #define fileOut freopen("testdata.out", "w", stdout) #define rep(i, a, b) for (int i = (a); i <= (b); ++i) #define per(i, a, b) for (int i = (a); i >= (b); --i) #ifdef yyfLocal #define dbg(x) std::clog << #x" = " << (x) << std::endl #define logs(x) std::clog << (x) << std::endl #else #define dbg(x) 42 #define logs(x) 42 #endif int read() { int res = 0, flag = 1; char ch = getchar(); while (!isdigit(ch)) { if (ch == ';-';) flag = -1; ch = getchar(); } while (isdigit(ch)) res = res * 10 + ch - 48, ch = getchar(); return res * flag; } void print(int x) { if (x < 0) putchar(';-';), x = -x; if (x > 9) print(x / 10); putchar(x % 10 + 48); } const int N = 2000 + 5; int a[N], ans[N], bns[N], n, sum = 0; void solution() { n = read(); rep(i, 1, n) a[i] = read(); per(i, n, 1) { int tmp = 0; while ((a[i] + sum + n - i + 1) % n) { ++tmp; ++a[i]; } sum += tmp; ans[i] = i, bns[i] = tmp; } println(n + 1); rep(i, 1, n) print(1), pc('; ';), print(ans[i]), pc('; ';), println(bns[i]); print(2), pc('; ';), print(n), pc('; ';), println(n); } signed main() { #ifdef yyfLocal fileIn; // fileOut; #else #ifndef ONLINE_JUDGE freopen(fn ".in", "r", stdin); freopen(fn ".out", "w", stdout); #endif #endif logs("main.exe"); solution(); } // Fark UKE
[ "Anguei@users.noreply.github.com" ]
Anguei@users.noreply.github.com
2c3b9b84f1a8c6968c17c4a0f4d97766982821f9
0c0c4d14b6bf9a181c859db119433e97ce76edc9
/test/algorithms-range/alg.nonmodifying/alg.find/find_if_not.pass.cpp
7b1eaed49ef8a13bba993e7337ddc40801f0a704
[ "MIT", "NCSA" ]
permissive
marcinz/libcxx-ranges
d0e748574798ba4926ffad353ac0f254d0294648
ee4ebf99147da4bbb5356b6ab0e7a79a1bfa0704
refs/heads/master
2020-05-19T07:17:43.541160
2013-03-01T18:35:48
2013-03-01T18:35:48
8,189,114
3
0
null
null
null
null
UTF-8
C++
false
false
1,343
cpp
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // <algorithm> // template<InputIterator Iter, Predicate<auto, Iter::value_type> Pred> // requires CopyConstructible<Pred> // Iter // find_if_not(Iter first, Iter last, Pred pred); #include <algorithm-range> #include <functional> #include <cassert> #include "test_iterators.h" #include "test_ranges.h" int main() { int ia[] = {0, 1, 2, 3, 4, 5}; const unsigned s = sizeof(ia)/sizeof(ia[0]); forward_range<std::iter_range<input_iterator<const int*> > > r = std::find_if_not(make_forward_range(std::make_iter_range( input_iterator<const int*>(ia), input_iterator<const int*>(ia+s))), std::bind2nd(std::not_equal_to<int>(), 3)); assert(r.front() == 3); r = std::find_if_not(make_forward_range(std::make_iter_range( input_iterator<const int*>(ia), input_iterator<const int*>(ia+s))), std::bind2nd(std::not_equal_to<int>(), 10)); assert(r.base().begin() == input_iterator<const int*>(ia+s)); }
[ "marcin.zalewski@gmail.com" ]
marcin.zalewski@gmail.com
fdc0f6d1093b67c47a9a4f5c9248c99eff624ee8
c0b577f881c8f7a9bcea05aaad364a7e82bdec8a
/Source/ISS/Development/CommonInterfaceControlLayer/Cicl_Kernel/Source/AtXmlInterfaceMt.cpp
28f81aa337c3bb365e810277a5ba810f4b897dc3
[]
no_license
15831944/GPATS-Compare
7e6c8495bfb2bb6f5f651e9886a50cf23809399f
d467c68381d4011f7c699d07467cbccef6c8ed9a
refs/heads/main
2023-08-14T09:15:18.986272
2021-09-23T16:56:13
2021-09-23T16:56:13
null
0
0
null
null
null
null
UTF-8
C++
false
false
28,912
cpp
//2345678901234567890123456789012345678901234567890123456789012345678901234567890 /////////////////////////////////////////////////////////////////////////// // File: AtXmlInterface.cpp // // Date: 11OCT05 // // Purpose: ATXML Api Interface // // Required Libraries / DLL's // // Library/DLL Purpose // ===================== =============================================== // // // // Revision History // Rev Date Reason // ======= ======= ======================================= // 1.0.0.0 11OCT05 Baseline Release /////////////////////////////////////////////////////////////////////////////// // Includes #include "soapH.h" #include "AtXmlInterface.nsmap" #include "CiCoreCommon.h" #include "plugin.h" // Procedure Type constants for Initialie call from AtXmlApiInterfaceX.h #define ATXML_PROC_TYPE_PAWS_WRTS "PAWS_WRTS" #define ATXML_PROC_TYPE_PAWS_NAM "PAWS_NAM" #define ATXML_PROC_TYPE_SFP "SFP" #define ATXML_PROC_TYPE_TPS "TPS" #define ATXML_PROC_TYPE_SFT "SFT_TPS" // Local Function Prototypes static char *s_AllocBuffer1(int BufferSize, int ProcHandle); static char *s_AllocBuffer2(int BufferSize, int ProcHandle); static void s_PurgeProcInfo(PROC_INFO *ProcPtr); static DWORD __stdcall s_SoapThread(void* soap); //++++///////////////////////////////////////////////////////////////////////// // Exposed Functions /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// // Function: ATXML_FNC atxml_IntfInitialize // // Purpose: Initialize the AtXml // // Input Parameters // Parameter Type Purpose // =============== ============== =========================================== // // Output Parameters // Parameter Type Purpose // =============== =================== =========================================== // // Return: // 0 on success. // -ErrorCode on failure // /////////////////////////////////////////////////////////////////////////////// int atxml_IntfInitialize(void) { int Status = 0; struct soap soap, *tsoap; int i, m, s; // master and slave sockets memset(g_ProcInfo, 0, sizeof(g_ProcInfo)); soap_init2(&soap, SOAP_IO_KEEPALIVE, SOAP_IO_KEEPALIVE); //soap_register_plugin(&soap, plugin); //Don't remove this is used for troubleshooting //soap.max_keep_alive = 100; // optional: at most 100 calls per keep-alive session //soap.accept_timeout = 600; // optional: let server time out after ten minutes of inactivity m = soap_bind(&soap, "localhost", 7014, 100); if (m < 0) soap_print_fault(&soap, stderr); else { CICOREDBGLOG(atxml_FmtMsg("Socket connection successful: master socket = %d\n", m)); for (i = 1; g_ApiThreadStatus == API_STATUS_RUNNING; i++) { s = soap_accept(&soap); if (s < 0) { soap_print_fault(&soap, stderr); break; } CICOREDBGLOG(atxml_FmtMsg("%d: accepted connection from IP=%d.%d.%d.%d socket=%d\n", i, (soap.ip >> 24)&0xFF, (soap.ip >> 16)&0xFF, (soap.ip >> 8)&0xFF, soap.ip&0xFF, s)); // Keep Alive Multi-Thead Operation tsoap = soap_copy(&soap); CreateThread(NULL, 0, s_SoapThread, (void*)tsoap, 0, NULL); // rest is handled by thread } } return (Status); } /////////////////////////////////////////////////////////////////////////////// // Function: ATXML_FNC atxml_IntfClose // // Purpose: Close the AtXml // // Input Parameters // Parameter Type Purpose // =============== ============== =========================================== // // Output Parameters // Parameter Type Purpose // =============== ============== =========================================== // // Return: // 0 on success. // -ErrorCode on failure // /////////////////////////////////////////////////////////////////////////////// int atxml_IntfClose(void) { int i; for(i=0; i< MAX_PROCS; i++) { if(g_ProcInfo[i].Handle == 0) continue; s_PurgeProcInfo(&(g_ProcInfo[i])); } return 0; } /////////////////////////////////////////////////////////////////////////////// // Function: ATXML_FNC atxml__Initialize // // Purpose: Register the UUID and Process ID for this connection. // // Input Parameters // Parameter Type Purpose // ================= ================== =========================================== // ProcUuid char* Pass in the calling programs UUID // Pid int Calling programs process id // // Output Parameters // Parameter Type Purpose // =============== =================== =========================================== // result int* gsoap result // // Return: // 0 on success. // -ErrorCode on failure // /////////////////////////////////////////////////////////////////////////////// int atxml__Initialize(struct soap*, char *ProcType, char *ProcUuid, int Pid, int *result) { int Status = 0; int Handle = 0; int i; // Find an empty ProcInfo entry for(i=1; i<MAX_PROCS; i++) { if(g_ProcInfo[i].Handle == 0) { Handle = i; g_ProcInfo[i].Handle = Handle; strnzcpy(g_ProcInfo[i].Guid,ProcUuid,80); g_ProcInfo[i].Pid = Pid; g_ProcInfo[i].Thread = GetCurrentThreadId(); g_ProcInfo[i].Type = ATXML_PROC_TYPE_OTHER_INT; if(strcmp(ProcType,ATXML_PROC_TYPE_PAWS_WRTS)==0) g_ProcInfo[i].Type = ATXML_PROC_TYPE_PAWS_WRTS_INT; else if(strcmp(ProcType,ATXML_PROC_TYPE_PAWS_NAM)==0) g_ProcInfo[i].Type = ATXML_PROC_TYPE_PAWS_NAM_INT; else if(strcmp(ProcType,ATXML_PROC_TYPE_SFP)==0) g_ProcInfo[i].Type = ATXML_PROC_TYPE_SFP_INT; else if(strcmp(ProcType,ATXML_PROC_TYPE_TPS)==0) g_ProcInfo[i].Type = ATXML_PROC_TYPE_TPS_INT; else if(strcmp(ProcType,ATXML_PROC_TYPE_SFT)==0) g_ProcInfo[i].Type = ATXML_PROC_TYPE_SFT_INT; // Leave buffers unallocated until first use // Leave Resources until first validate smam_Initialize(Handle, ProcUuid, g_ProcInfo[i].Type, Pid); break; } } *result = Handle; return(Status); } /////////////////////////////////////////////////////////////////////////////// // Function: ATXML_FNC atxml__Close // // Purpose: Close this connection. // // Input Parameters // Parameter Type Purpose // ================= ================== =========================================== // ProcUuid char* Pass in the calling programs UUID // Pid int Calling programs process id // // Output Parameters // Parameter Type Purpose // =============== =================== =========================================== // result int* gsoap result // // Return: // 0 on success. // -ErrorCode on failure // /////////////////////////////////////////////////////////////////////////////// int atxml__Close(struct soap*, int Handle, char *ProcUuid, int Pid, int *result) { int Status = 0; int ProcIdx; // signal Smam that the Client is closing smam_Close(Handle); // Clean-up Proc Info if((ProcIdx = api_GetProcIdx(Handle)) < 1) return(0); //FIX later diagnose s_PurgeProcInfo(&g_ProcInfo[ProcIdx]); *result = Status; return(0); } /////////////////////////////////////////////////////////////////////////////// // Function: ATXML_FNC atxml_RegisterTSF // // Purpose: Send an ATML IEEE 1641 (TSF) description to the AtXml // For efficency sake, This function is not currently implemented // When implemented, It will cash the TSF locally and Interseed // IssueSignal via local static routines. // It will not pass it on to the _T processing! // // Input Parameters // Parameter Type Purpose // ================= ================== =========================================== // // Output Parameters // Parameter Type Purpose // =============== =================== =========================================== // // Return: // 0 on success. // -ErrorCode on failure // /////////////////////////////////////////////////////////////////////////////// int atxml__RegisterTSF(struct soap*, int Handle, char *TSFSignalDefinition, char *TSFLibrary, char *STDTSF, char *STDBSC, int *result) { int Status = 0; *result = Status; return(0); } /////////////////////////////////////////////////////////////////////////////// // Function: ATXML_FNC atxml_ValidateRequirements // // Purpose: Send the ATML requirements section of the Test Description and the // name of an XML file that assigns station assets to test description // requirements to the ATXML for allocation and to verify // asset availability. // // Input Parameters // Parameter Type Purpose // ================= ================== =========================================== // TestRequirements ATXML_ATML_Snippet Provide the Test Requirements via Resource // Description or Resource ID // Allocation ATXML_XML_Filename XML file that maps the target station asset // names to the requirement names in the // Test Requirements // // Output Parameters // Parameter Type Purpose // =============== =================== =========================================== // Availability ATXML_XML_String* XML string that identifies the // requirement / assigned asset / and status // // Return: // 0 on success. // -ErrorCode on failure // /////////////////////////////////////////////////////////////////////////////// int atxml__ValidateRequirements(struct soap*, int Handle, char *TestRequirements, char *Allocation, int BufferSize, struct atxml__ValidateRequirementsResponse &r) { int Status = 0; char *LclAvailability; LclAvailability = s_AllocBuffer1(BufferSize,Handle); Status = smam_ValidateRequirements(Handle, TestRequirements, Allocation, LclAvailability, BufferSize); r.Availability = LclAvailability; r.result = Status; return(0); } /////////////////////////////////////////////////////////////////////////////// // Function: ATXML_FNC atxml_IssueSignal // // Purpose: Send an ATML IEEE 1641 (BSC) signal description to the AtXml // // Input Parameters // Parameter Type Purpose // ================= ================== =========================================== // SignalDescription ATXML_ATML_Snippet* IEEE 1641 BSC Signal description + action/resource // // Output Parameters // Parameter Type Purpose // =============== =================== =========================================== // Response ATXML_XML_String* Return any error codes and messages // // Return: // 0 on success. // -ErrorCode on failure // /////////////////////////////////////////////////////////////////////////////// int atxml__IssueSignal(struct soap*, int Handle, char *SignalDescription, int BufferSize, struct atxml__IssueSignalResponse &r) { int Status = 0; char *LclResponse; LclResponse = s_AllocBuffer1(BufferSize,Handle); Status = smam_IssueSignal(Handle, SignalDescription, LclResponse, BufferSize); r.Response = LclResponse; r.result = Status; return(0); } /////////////////////////////////////////////////////////////////////////////// // Function: ATXML_FNC atxml_TestStationStatus // // Purpose: Query the Test Station status // // Input Parameters // Parameter Type Purpose // ================= ================== =========================================== // // Output Parameters // Parameter Type Purpose // =================== =================== =========================================== // TestStationInstance ATXML_XML_String* Return any error codes and messages // // Return: // 0 on success. // -ErrorCode on failure // /////////////////////////////////////////////////////////////////////////////// int atxml__TestStationStatus(struct soap*, int Handle, int BufferSize, struct atxml__TestStationStatusResponse &r) { int Status = 0; char *LclResponse; LclResponse = s_AllocBuffer1(BufferSize,Handle); Status = smam_TestStationStatus(Handle, NULL, LclResponse, BufferSize); r.TestStationStatus = LclResponse; r.result = Status; return(0); } /////////////////////////////////////////////////////////////////////////////// // Function: ATXML_FNC atxml_RegisterInstStatus // // Purpose: Register the latest Calibration Factors to the AtXml // // Input Parameters // Parameter Type Purpose // ================= ================== =========================================== // InstStatus ATXML_XML_String* XML String for intsrument status / cal data // // Output Parameters // Parameter Type Purpose // =============== =================== =========================================== // Response ATXML_XML_String* Return any error codes and messages // // Return: // 0 on success. // -ErrorCode on failure // /////////////////////////////////////////////////////////////////////////////// int atxml__RegisterInstStatus(struct soap*, int Handle, char *InstStatus, int BufferSize, struct atxml__RegisterInstStatusResponse &r) { return(0); } /////////////////////////////////////////////////////////////////////////////// // Function: ATXML_FNC atxml_RegisterRemoveSequence // // Purpose: Register the required reset sequence // // Input Parameters // Parameter Type Purpose // ================= ================== =========================================== // RemoveSequence ATXML_XML_String* XML String for resource list // // Output Parameters // Parameter Type Purpose // =============== =================== =========================================== // Response ATXML_XML_String* Return any error codes and messages // // Return: // 0 on success. // -ErrorCode on failure // /////////////////////////////////////////////////////////////////////////////// int atxml__RegisterRemoveSequence(struct soap*, int Handle, char *RemoveSequence, int BufferSize, struct atxml__RegisterRemoveSequenceResponse &r) { int Status = 0; char *LclResponse; LclResponse = s_AllocBuffer1(BufferSize,Handle); Status = smam_RegisterRemoveSequence(Handle, RemoveSequence, LclResponse, BufferSize); r.Response = LclResponse; r.result = Status; return(0); } /////////////////////////////////////////////////////////////////////////////// // Function: ATXML_FNC atxml_InvokeRemoveAllSequence // // Purpose: Reset the station assets // // Input Parameters // Parameter Type Purpose // ================= ================== =========================================== // // Output Parameters // Parameter Type Purpose // =============== =================== =========================================== // Response ATXML_XML_String* Return any error codes and messages // // Return: // 0 on success. // -ErrorCode on failure // /////////////////////////////////////////////////////////////////////////////// int atxml__InvokeRemoveAllSequence(struct soap*, int Handle, int BufferSize, struct atxml__InvokeRemoveAllSequenceResponse &r) { int Status = 0; char *LclResponse; LclResponse = s_AllocBuffer1(BufferSize,Handle); Status = smam_InvokeRemoveAllSequence(Handle, LclResponse, BufferSize); r.Response = LclResponse; r.result = Status; return(0); } /////////////////////////////////////////////////////////////////////////////// // Function: ATXML_FNC atxml_RegisterApplySequence // // Purpose: Register the required reset sequence // // Input Parameters // Parameter Type Purpose // ================= ================== =========================================== // RemoveSequence ATXML_XML_String* XML String for resource list // // Output Parameters // Parameter Type Purpose // =============== =================== =========================================== // Response ATXML_XML_String* Return any error codes and messages // // Return: // 0 on success. // -ErrorCode on failure // /////////////////////////////////////////////////////////////////////////////// int atxml__RegisterApplySequence(struct soap*, int Handle, char *ApplySequence, int BufferSize, struct atxml__RegisterApplySequenceResponse &r) { int Status = 0; char *LclResponse; LclResponse = s_AllocBuffer1(BufferSize,Handle); Status = smam_RegisterApplySequence(Handle, ApplySequence, LclResponse, BufferSize); r.Response = LclResponse; r.result = Status; return(0); } /////////////////////////////////////////////////////////////////////////////// // Function: ATXML_FNC atxml_InvokeRemoveAllSequence // // Purpose: Reset the station assets // // Input Parameters // Parameter Type Purpose // ================= ================== =========================================== // // Output Parameters // Parameter Type Purpose // =============== =================== =========================================== // Response ATXML_XML_String* Return any error codes and messages // // Return: // 0 on success. // -ErrorCode on failure // /////////////////////////////////////////////////////////////////////////////// int atxml__InvokeApplyAllSequence(struct soap*, int Handle, int BufferSize, struct atxml__InvokeApplyAllSequenceResponse &r) { int Status = 0; char *LclResponse; LclResponse = s_AllocBuffer1(BufferSize,Handle); Status = smam_InvokeApplyAllSequence(Handle, LclResponse, BufferSize); r.Response = LclResponse; r.result = Status; return(0); } //++++///////////////////////////////////////////////////////////////////////// // Special Non-ATML Cheat Functions /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// // Function: ATXML_FNC atxml_IssueIst // // Purpose: Send a command to perform Instrument Self Test // // Input Parameters // Parameter Type Purpose // ================= ================== =========================================== // InstSelfTest ATXML_XML_String* IssueIst Message string // // Output Parameters // Parameter Type Purpose // =============== =================== =========================================== // Response ATXML_XML_String* Return any error codes and messages // // Return: // 0 on success. // -ErrorCode on failure // /////////////////////////////////////////////////////////////////////////////// int atxml__IssueIst(struct soap*, int Handle, char *InstSelfTest, int BufferSize, struct atxml__IssueIstResponse &r) { int Status = 0; char *LclResponse; LclResponse = s_AllocBuffer1(BufferSize,Handle); Status = smam_IssueIst(Handle, InstSelfTest, LclResponse, BufferSize); r.Response = LclResponse; r.result = Status; return(0); } /////////////////////////////////////////////////////////////////////////////// // Function: ATXML_FNC atxml_IssueNativeCmds // // Purpose: Invoke Instrument Self Test and return response // // Input Parameters // Parameter Type Purpose // ================= ================== ======================================== // InstrumentCmds ATXML_XML_String* XML String for Instrument Commands // // Output Parameters // Parameter Type Purpose // =============== =================== =========================================== // Response ATXML_XML_String* Return any error codes and messages // // Return: // 0 on success. // -ErrorCode on failure // /////////////////////////////////////////////////////////////////////////////// int atxml__IssueNativeCmds(struct soap*, int Handle, char *InstrumentCmds, int BufferSize, struct atxml__IssueNativeCmdsResponse &r) { int Status = 0; char *LclResponse; LclResponse = s_AllocBuffer1(BufferSize,Handle); Status = smam_IssueNativeCmds(Handle, InstrumentCmds, LclResponse, BufferSize); r.Response = LclResponse; r.result = Status; return(0); } /////////////////////////////////////////////////////////////////////////////// // Function: ATXML_FNC atxml_IssueDriverFunctionCall // // Purpose: Invoke Instrument Self Test and return response // // Input Parameters // Parameter Type Purpose // ================= ================== ======================================== // DriverFunction ATML_INTF_DRVRFNC* XML String for Driver Function and parameters // // Output Parameters // Parameter Type Purpose // =============== =================== =========================================== // Response ATXML_XML_String* Return any error codes and messages // // Return: // 0 on success. // -ErrorCode on failure // /////////////////////////////////////////////////////////////////////////////// int atxml__IssueDriverFunctionCall(struct soap*, int Handle, char *DriverFunction, int BufferSize, struct atxml__IssueDriverFunctionCallResponse &r) { int Status = 0; char *LclResponse; LclResponse = s_AllocBuffer1(BufferSize,Handle); Status = smam_IssueDriverFunctionCall(Handle, DriverFunction, LclResponse, BufferSize); r.Response = LclResponse; r.result = Status; return(0); } //++++///////////////////////////////////////////////////////////////////////// // Non-Signal Interface Functions /////////////////////////////////////////////////////////////////////////////// int atxml__RegisterInterUsed(struct soap*, int Handle, char *InterUsage, int *result) {return(0);} int atxml__RetrieveTpsData(struct soap*, int Handle, struct atxml__RetrieveTpsDataResponse &r) {return(0);} int atxml__RegisterTmaSelect(struct soap*, int Handle, char *TmaList, int *result) {return(0);} int atxml__SubmitUutId(struct soap*, int Handle, char *UUT_Partnumber, char *UUT_Serialnumber, int TmaBufferSize, int RaBufferSize, struct atxml__SubmitUutIdResponse &r) {return(0);} int atxml__QueryInterStatus(struct soap*, int Handle, int BufferSize, struct atxml__QueryInterStatusResponse &r) {return(0);} int atxml__IssueTestResults(struct soap*, int Handle, char *TestResults, int TPS_Status, int BufferSize, struct atxml__IssueTestResultsResponse &r) {return(0);} int atxml__IssueTestResultsFile(struct soap*, int Handle, char *TestResultsFile, int TPS_Status, int BufferSize, struct atxml__IssueTestResultsFileResponse &r) {return(0);} //++++///////////////////////////////////////////////////////////////////////// // Exposed Interface Utility Functions /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// // Function: api_GetProcIdx // // Purpose: Convert the ProcHandle assigned to this Client to the ProcInfo index // // Input Parameters // Parameter Type Purpose // ================= ================== ======================================== // ProHandle int Client assigned handle // // Output Parameters // Parameter Type Purpose // =============== =================== =========================================== // // Return: // ProcInfo index // 0 on failure // /////////////////////////////////////////////////////////////////////////////// int api_GetProcIdx(int ProcHandle) { return(ProcHandle); } //++++///////////////////////////////////////////////////////////////////////// // Local Static Functions /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// // Function: s_AllocBuffer1 // // Purpose: Insure that this thread's Buffer 1 is big enough // //FIX maybe later actually shrink buffer after x tries < 4096? // // Input Parameters // Parameter Type Purpose // ================= ================== ======================================== // BufferSize int Size of buffer needed // // Output Parameters // Parameter Type Purpose // =============== =================== =========================================== // // Return: // pointer to buffer. // NULL on failure // /////////////////////////////////////////////////////////////////////////////// static char *s_AllocBuffer1(int BufferSize, int ProcHandle) { int BufIdx; BufIdx = api_GetProcIdx(ProcHandle); if(g_ProcInfo[BufIdx].RespBuf1Size < BufferSize) { // Allocate more space if(g_ProcInfo[BufIdx].RespBuf1) delete(g_ProcInfo[BufIdx].RespBuf1); g_ProcInfo[BufIdx].RespBuf1 = new char[BufferSize+4]; } if(g_ProcInfo[BufIdx].RespBuf1 == NULL) g_ProcInfo[BufIdx].RespBuf1Size = 0; else g_ProcInfo[BufIdx].RespBuf1[0] = '\0'; return(g_ProcInfo[BufIdx].RespBuf1); } /////////////////////////////////////////////////////////////////////////////// // Function: s_AllocBuffer2 // // Purpose: Insure that this thread's Buffer 2 is big enough // //FIX maybe later actually shrink buffer after x tries < 4096? // // Input Parameters // Parameter Type Purpose // ================= ================== ======================================== // BufferSize int Size of buffer needed // // Output Parameters // Parameter Type Purpose // =============== =================== =========================================== // // Return: // pointer to buffer. // NULL on failure // /////////////////////////////////////////////////////////////////////////////// static char *s_AllocBuffer2(int BufferSize, int ProcHandle) { int BufIdx; BufIdx = api_GetProcIdx(ProcHandle); if(g_ProcInfo[BufIdx].RespBuf2Size < BufferSize) { // Allocate more space if(g_ProcInfo[BufIdx].RespBuf2) delete(g_ProcInfo[BufIdx].RespBuf2); g_ProcInfo[BufIdx].RespBuf2 = new char[BufferSize+4]; } if(g_ProcInfo[BufIdx].RespBuf2 == NULL) g_ProcInfo[BufIdx].RespBuf2Size = 0; else g_ProcInfo[BufIdx].RespBuf2[0] = '\0'; return(g_ProcInfo[BufIdx].RespBuf2); } /////////////////////////////////////////////////////////////////////////////// // Function: s_PurgeProcInfo // // Purpose: Purge the specified ProcInfo entry to release memory etc. // // Input Parameters // Parameter Type Purpose // ================= ================== ======================================== // ProcPtr PROC_INFO* Pointer to PROC_INFO entry to purge // // Output Parameters // Parameter Type Purpose // =============== =================== =========================================== // // Return: // none // /////////////////////////////////////////////////////////////////////////////// static void s_PurgeProcInfo(PROC_INFO *ProcPtr) { ProcPtr->Handle = 0; ProcPtr->Guid[0] = '\0'; ProcPtr->Pid = 0; ProcPtr->Type = 0; ProcPtr->Thread = 0; // Release Proc Resources //Fixed Resource Buffer for the current time ProcPtr->Resources.ResourceCount = 0; // Release Response Buffers if(ProcPtr->RespBuf1) delete(ProcPtr->RespBuf1); ProcPtr->RespBuf1 = NULL; ProcPtr->RespBuf1Size = 0; if(ProcPtr->RespBuf2) delete(ProcPtr->RespBuf2); ProcPtr->RespBuf2 = NULL; ProcPtr->RespBuf2Size = 0; return; } DWORD __stdcall s_SoapThread(void* soap) { //((struct soap*)soap)->recv_timeout = 300; // Timeout after 5 minutes stall on recv //((struct soap*)soap)->send_timeout = 60; // Timeout after 1 minute stall on send soap_serve((struct soap*)soap);// process RPC requests soap_destroy((struct soap*)soap);// clean up class instances after timeout/disconnect soap_end((struct soap*)soap);// clean up everything and close socket soap_done((struct soap*)soap); free(soap); return (0); }
[ "josselyn.webb@gmail.com" ]
josselyn.webb@gmail.com
206601b584986322b38207c6935ac57c19d642c2
d16985a72e39109c30b1e975007cc1cabe8a6ac8
/Common/Packets/CGExecuteScript.cpp
dbe7e56ca7c6a373f4ab2466f98449fd8f6529f7
[]
no_license
uvbs/wx2Server
e878c3c5c27715a0a1044f6b3229960d36eff4b4
78a4b693ac018a4ae82e7919f6e29c97b92554ab
refs/heads/master
2021-01-18T00:06:34.770227
2013-12-13T09:18:54
2013-12-13T09:18:54
43,288,843
2
3
null
2015-09-28T08:24:45
2015-09-28T08:24:44
null
UTF-8
C++
false
false
589
cpp
#include "stdafx.h" #include "CGExecuteScript.h" BOOL CGExecuteScript::Read( SocketInputStream& iStream ) { __ENTER_FUNCTION m_Script.Read( iStream ) ; return TRUE ; __LEAVE_FUNCTION return FALSE ; } BOOL CGExecuteScript::Write( SocketOutputStream& oStream )const { __ENTER_FUNCTION m_Script.Write( oStream ) ; return TRUE ; __LEAVE_FUNCTION return FALSE ; } UINT CGExecuteScript::Execute( Player* pPlayer ) { __ENTER_FUNCTION return CGExecuteScriptHandler::Execute( this, pPlayer ) ; __LEAVE_FUNCTION return FALSE ; }
[ "tangming032@outlook.com" ]
tangming032@outlook.com
05e588dfb5c40dc4e8b0cdd444a3bc4f86c20b06
c61e525e906643615c4d63463fb4b7f4100d45f2
/VK9-Library/Perf_StateManager.h
e90c7ac7f79a12a2b9c1d6d253f628cacde45230
[ "Zlib" ]
permissive
ryao/VK9
464991aaa8aa415a37fb2afb06d7c23ab1bfb115
ce52daefcc8ef701765ffa241642a562272e6f48
refs/heads/master
2020-04-08T03:47:42.651752
2018-11-25T00:22:47
2018-11-25T00:22:47
null
0
0
null
null
null
null
UTF-8
C++
false
false
5,588
h
/* Copyright(c) 2018 Christopher Joseph Dean Schaefer This software is provided 'as-is', without any express or implied warranty.In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions : 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software.If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. */ #include <atomic> #include <memory> #include <vector> #include <unordered_map> #include <chrono> #include <vulkan/vulkan.hpp> #include <vulkan/vk_sdk_platform.h> #include "ShaderConverter.h" #include "renderdoc_app.h" #ifndef STATEMANAGER_H #define STATEMANAGER_H #define CACHE_SECONDS 30 VKAPI_ATTR VkBool32 VKAPI_CALL DebugReportCallback(VkDebugReportFlagsEXT flags, VkDebugReportObjectTypeEXT objectType, uint64_t object, size_t location, int32_t messageCode, const char* layerPrefix, const char* message, void* userData); static PFN_vkCmdPushDescriptorSetKHR pfn_vkCmdPushDescriptorSetKHR; VKAPI_ATTR void VKAPI_CALL vkCmdPushDescriptorSetKHR( VkCommandBuffer commandBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipelineLayout layout, uint32_t set, uint32_t descriptorWriteCount, const VkWriteDescriptorSet* pDescriptorWrites); static PFN_vkCreateDebugReportCallbackEXT pfn_vkCreateDebugReportCallbackEXT; VKAPI_ATTR VkResult VKAPI_CALL vkCreateDebugReportCallbackEXT( VkInstance instance, const VkDebugReportCallbackCreateInfoEXT* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDebugReportCallbackEXT* pCallback); static PFN_vkDestroyDebugReportCallbackEXT pfn_vkDestroyDebugReportCallbackEXT; VKAPI_ATTR void VKAPI_CALL vkDestroyDebugReportCallbackEXT( VkInstance instance, VkDebugReportCallbackEXT callback, const VkAllocationCallbacks* pAllocator); static PFN_vkDebugReportMessageEXT pfn_vkDebugReportMessageEXT; VKAPI_ATTR void VKAPI_CALL vkDebugReportMessageEXT( VkInstance instance, VkDebugReportFlagsEXT flags, VkDebugReportObjectTypeEXT objectType, uint64_t object, size_t location, int32_t messageCode, const char* pLayerPrefix, const char* pMessage); #include "RealDevice.h" #include "RealInstance.h" #include "RealTexture.h" #include "RealSurface.h" #include "RealVertexBuffer.h" #include "RealIndexBuffer.h" #include "RealQuery.h" #include "RealSwapChain.h" #include "RealRenderTarget.h" #include "SamplerRequest.h" #include "ResourceContext.h" #include "DrawContext.h" struct StateManager { boost::program_options::variables_map& mOptions; std::vector< std::shared_ptr<RealInstance> > mInstances; std::atomic_size_t mInstanceKey = 0; std::vector< std::shared_ptr<RealDevice> > mDevices; std::atomic_size_t mDeviceKey = 0; std::vector< std::shared_ptr<RealVertexBuffer> > mVertexBuffers; std::atomic_size_t mVertexBufferKey = 0; std::vector< std::shared_ptr<RealIndexBuffer> > mIndexBuffers; std::atomic_size_t mIndexBufferKey = 0; std::vector< std::shared_ptr<RealTexture> > mTextures; std::atomic_size_t mTextureKey = 0; std::vector< std::shared_ptr<RealSurface> > mSurfaces; std::atomic_size_t mSurfaceKey = 0; std::vector< std::shared_ptr<ShaderConverter> > mShaderConverters; std::atomic_size_t mShaderConverterKey = 0; std::vector< std::shared_ptr<RealQuery> > mQueries; std::atomic_size_t mQueryKey = 0; std::unordered_map<HWND, std::shared_ptr<RealSwapChain> > mSwapChains; StateManager(boost::program_options::variables_map& options); ~StateManager(); void DestroyDevice(size_t id); void CreateDevice(size_t id, void* argument1); void DestroyInstance(size_t id); void CreateInstance(); void DestroyVertexBuffer(size_t id); void CreateVertexBuffer(size_t id, void* argument1); void DestroyIndexBuffer(size_t id); void CreateIndexBuffer(size_t id, void* argument1); void DestroyTexture(size_t id); void CreateTexture(size_t id, void* argument1); void DestroyCubeTexture(size_t id); void CreateCubeTexture(size_t id, void* argument1); void DestroyVolumeTexture(size_t id); void CreateVolumeTexture(size_t id, void* argument1); void DestroySurface(size_t id); void CreateSurface(size_t id, void* argument1); void DestroyVolume(size_t id); void CreateVolume(size_t id, void* argument1); void DestroyShader(size_t id); void CreateShader(size_t id, void* argument1, void* argument2, void* argument3); void DestroyQuery(size_t id); void CreateQuery(size_t id, void* argument1); std::shared_ptr<RealSwapChain> GetSwapChain(std::shared_ptr<RealDevice> realDevice, HWND handle, uint32_t width, uint32_t height, bool useVsync); }; #endif // STATEMANAGER_H
[ "disks86@gmail.com" ]
disks86@gmail.com
78ca90746d896dd67289cabad7d5c3bbcd0c4c55
c3347a2132e41e37d1c7d14a5396907d07f031fe
/main.cpp
5d5b44ebe44d6150b4db497b5f7c3408ce6ffc4b
[]
no_license
someshfengde/cses-problems-and-cp-practice
f5c41ae41db4a1c1b49bd02e581f7728de7aa3d8
aa6c10a0728620461b10f20dcc18b6bdb815d51d
refs/heads/master
2023-02-03T16:38:20.705765
2020-12-19T16:07:45
2020-12-19T16:07:45
298,242,061
0
0
null
null
null
null
UTF-8
C++
false
false
1,487
cpp
/* You're my honeybunch, sugar plum Pumpy-umpy-umpkin You're my sweetie pie You're my cuppycake, gumdrop Snoogums, boogums, you're The apple of my eye And I love you so And I want you to know That I'm always be right here And I want to sing Sweet songs to you Because you are so dear... */ #include <bits/stdc++.h> #define boost ios::sync_with_stdio(0); cin.tie(0); #define ll long long #define endl '\n' #define F first #define S second #define pb push_back #define pai pair<int, int> using namespace std; ll r,g,b; vector<int> red , green , blue; ll ans=0; ll dp[300][300][300]; ll ok(int x, int y , int z){ if((x>=r && y>=g)||(x>=r && z>=b) || (y>=g && z>=b)){ return 0; } if(dp[x][y][z]!=-1){ return dp[x][y][z]; } ll maxi=0; if(x<r && y<g)maxi=max(maxi,red[x]*green[y] + ok(x+1,y+1,z)); if(y<g && z<b)maxi=max(maxi,blue[z]*green[y] + ok(x,y+1,z+1)); if(x<r && z<b)maxi=max(maxi,red[x]*blue[z] + ok(x+1,y,z+1)); ans=max(ans,maxi); return dp[x][y][z]=maxi; } int main(){ boost; int x; cin >> r >> g >> b; for (int i = 0; i < r; i++) {cin >> x; red.push_back(x);} for (int i = 0; i < g; i++) {cin >> x; green.push_back(x);} for (int i = 0; i < b; i++) {cin >> x; blue.push_back(x);} sort(red.rbegin(),red.rend()); sort(blue.rbegin(),blue.rend()); sort(green.rbegin(),green.rend()); memset(dp,-1,sizeof(dp)); ok(0,0,0); cout << ans << endl; }
[ "someshfengde@gmail.com" ]
someshfengde@gmail.com
297c86a8e1b030198102c443b086eb7f653276e1
06b354e40e3c672be36c21232e33ed1d21ea03fb
/src/Action.cpp
1604457af64efb57e011442033c192a92465ecae
[]
no_license
gleity/Restaurant-Management-Project
941de63c7447490950edaa1b00196d32e6215f9f
ce18ac296c6592cd75255e0babee0c3628235bcc
refs/heads/master
2022-12-03T19:55:47.139040
2020-08-26T17:25:40
2020-08-26T17:25:40
157,996,545
0
1
null
null
null
null
UTF-8
C++
false
false
10,760
cpp
#include "../include/Action.h" #include "../include/Restaurant.h" BaseAction::BaseAction(): errorMsg(), status(PENDING) {} ActionStatus BaseAction::getStatus() const { return status; } void BaseAction::error(std::string errorMsg) { status = ERROR; this->errorMsg = std::move(errorMsg); } void BaseAction::complete() { status = COMPLETED; } std::string BaseAction::getErrorMsg() const { return errorMsg; } BaseAction::~BaseAction() { errorMsg.clear(); } OpenTable::OpenTable(int id, std::vector<Customer *> &customersList) : tableId(id), customers(customersList) {} void OpenTable::act(Restaurant &restaurant) { if (tableId > restaurant.getNumOfTables()) { BaseAction::error("Error: Table does not exist or is already open"); std::cout<<getErrorMsg()<< std::endl; } else { Table *t = restaurant.getTable(tableId); if (t->isOpen()) { BaseAction::error("Error: Table does not exist or is already open"); std::cout << getErrorMsg()<< std::endl; } else { if (customers.size() > (unsigned)t->getCapacity()) BaseAction::error("number of customers is too big for the table"); else { for (auto customer : customers) { if (customer->getType() == "veg") t->addCustomer(new VegetarianCustomer(customer->getName(), customer->getId())); if (customer->getType() == "spc") t->addCustomer(new SpicyCustomer(customer->getName(), customer->getId())); if (customer->getType() == "alc") t->addCustomer(new AlchoholicCustomer(customer->getName(), customer->getId())); if (customer->getType() == "chp") t->addCustomer(new CheapCustomer(customer->getName(), customer->getId())); } t->openTable(); complete(); } } } } std::string OpenTable::toString() const { std::string str = "open " + std::to_string(tableId); if (getStatus() == COMPLETED) { for (auto customer : customers) { str.operator+=(" " + customer->getName() + "," + customer->getType()); } return str + " Completed "; } if (getStatus() == ERROR) { for (auto customer : customers) { str += " " + (customer->getName()) + "," + (customer->getType()); } return str + " " + getErrorMsg() ; } else { for (auto customer : customers) { str += " " + (customer->getName()) + "," + (customer->getType()) + " "; } return str + " Pending "; } } OpenTable *OpenTable::clone() const { return new OpenTable(*this); } //Destructor OpenTable::~OpenTable() { for (auto &customer : customers) { delete customer; } } //Copy Constructor OpenTable::OpenTable(const OpenTable &other) : tableId(other.tableId) ,customers(){ if (other.getStatus()==COMPLETED) complete(); else error(other.getErrorMsg()); for (auto customer : other.customers) { customers.push_back(customer->clone()); } } //Move constructor OpenTable::OpenTable(OpenTable &&other) : tableId(other.tableId),customers(other.customers) { other.customers.clear(); } Order::Order(int id) : tableId(id) {} void Order::act(Restaurant &restaurant) { Table *t = restaurant.getTable(tableId); if (tableId > restaurant.getNumOfTables() || !(t->isOpen())) { BaseAction::error("Error: Table does not exist or is not open"); std::cout << getErrorMsg()<< std::endl; } else { restaurant.getTable(tableId)->order(restaurant.getMenu()); complete(); } } std::string Order::toString() const { if (getStatus() == COMPLETED) return "order " + std::to_string(tableId) + " Completed "; if (getStatus() == ERROR) return "order " + std::to_string(tableId) + "Error: " + getErrorMsg() ; else return "order " + std::to_string(tableId) + " Pending "; } Order *Order::clone() const { return new Order(*this); } Order::~Order() = default; MoveCustomer::MoveCustomer(int src, int dst, int customerId) : srcTable(src), dstTable(dst), id(customerId) {} void MoveCustomer::act(Restaurant &restaurant) { if (srcTable > restaurant.getNumOfTables() || dstTable > restaurant.getNumOfTables()) { BaseAction::error("Error: Cannot move customer"); std::cout << getErrorMsg()<< std::endl; } Table *src = restaurant.getTable(srcTable); Table *dst = restaurant.getTable(dstTable); if (!src->isOpen() || !dst->isOpen() || src->getCustomer(id) == nullptr || (unsigned)dst->getCapacity() == dst->getCustomers().size()) { BaseAction::error("Error: Cannot move customer"); std::cout << getErrorMsg()<< std::endl; } else { dst->addCustomer(src->getCustomer(id)->clone()); src->removeCustomer(id); std::vector<OrderPair> &p = restaurant.getTable(srcTable)->getOrders(); for (auto &i : p) { if (i.first == id) { dst->getOrders().push_back(i); src->removeOrder(id); } } if (src->getCustomers().empty()) src->closeTable(); complete(); } } std::string MoveCustomer::toString() const { if (getStatus() == COMPLETED) return "move " + std::to_string(srcTable) + " " + std::to_string(dstTable) + " " + std::to_string(id) + " Completed "; if (getStatus() == ERROR) return "move " + std::to_string(srcTable) + " " + std::to_string(dstTable) + " " + std::to_string(id) + "Error: " + getErrorMsg() ; else return "move " + std::to_string(srcTable) + " " + std::to_string(dstTable) + " " + std::to_string(id) + " Pending "; } MoveCustomer *MoveCustomer::clone() const { return new MoveCustomer(*this); } MoveCustomer::~MoveCustomer() = default; Close::Close(int id) : tableId(id) {} void Close::act(Restaurant &restaurant) { if (tableId > restaurant.getNumOfTables() || !restaurant.getTable(tableId)->isOpen()) { BaseAction::error("Error: Table does not exist or is not open"); std::cout << getErrorMsg()<< std::endl; } else { int bill = restaurant.getTable(tableId)->getBill(); std::cout << "Table " << tableId << " was closed. Bill " << bill << "NIS" << std::endl; restaurant.getTable(tableId)->closeTable(); complete(); } } std::string Close::toString() const { if (getStatus() == COMPLETED) return "close " + std::to_string(tableId) + " Completed"; if (getStatus() == ERROR) return "close " + std::to_string(tableId) + " Error: " + getErrorMsg() ; else return "close " + std::to_string(tableId) + " Pending"; } Close *Close::clone() const { return new Close(*this); } Close::~Close() = default; CloseAll::CloseAll() {} void CloseAll::act(Restaurant &restaurant) { for (int i = 0; i < restaurant.getNumOfTables(); ++i) { if (restaurant.getTable(i)->isOpen()) { Close c = Close(i); c.act(restaurant); } } restaurant.getMenu().clear(); complete(); } std::string CloseAll::toString() const { return "close all completed"; } CloseAll *CloseAll::clone() const { return new CloseAll(*this); } CloseAll::~CloseAll() = default; PrintMenu::PrintMenu() {} void PrintMenu::act(Restaurant &restaurant) { std::cout<<restaurant.printMenu(); complete(); } std::string PrintMenu::toString() const { return "Print menu completed"; } PrintMenu *PrintMenu::clone() const { return new PrintMenu(*this); } PrintMenu::~PrintMenu() = default; PrintTableStatus::PrintTableStatus(int id) : tableId(id) {} void PrintTableStatus::act(Restaurant &restaurant) { if (!(restaurant.getTable(tableId)->isOpen())) std::cout << "Table " << tableId << " status: " << "closed" << std::endl; else { std::cout << "Table " << tableId << " status: " << "open" << std::endl; std::vector<Customer *> &c = restaurant.getTable(tableId)->getCustomers(); std::cout << "Customers:" << std::endl; for (auto &i : c) { std::cout << i->toString() << std::endl; } std::cout << "Orders:" << std::endl; std::vector<OrderPair> p = restaurant.getTable(tableId)->getOrders(); for (auto &i : p) { std::cout << i.second.getName() << " " << i.second.getPrice() << "NIS " << i.first << std::endl; } std::cout << "Current Bill: " << restaurant.getTable(tableId)->getBill() << "NIS "<<std::endl; } complete(); } std::string PrintTableStatus::toString() const { if (getStatus() == COMPLETED) return "Status " + std::to_string(tableId) + " " + "Completed "; if (getStatus() == ERROR) return "Status " + std::to_string(tableId) + " " + getErrorMsg() ; else return "Status " + std::to_string(tableId) + " " + "Pending "; } PrintTableStatus *PrintTableStatus::clone() const { return new PrintTableStatus(*this); } PrintTableStatus::~PrintTableStatus() = default; PrintActionsLog::PrintActionsLog() = default; void PrintActionsLog::act(Restaurant &restaurant) { std::vector<BaseAction *> bActions = restaurant.getActionsLog(); for (auto &bAction : bActions) { std::cout<<bAction->toString()<<std::endl; } complete(); } std::string PrintActionsLog::toString() const { return "Print actions log completed"; } PrintActionsLog *PrintActionsLog::clone() const { return new PrintActionsLog(*this); } PrintActionsLog::~PrintActionsLog() = default; BackupRestaurant::BackupRestaurant() {} void BackupRestaurant::act(Restaurant &restaurant) { if (backup!=nullptr) backup->operator=(restaurant); else backup = new Restaurant(restaurant); complete(); } std::string BackupRestaurant::toString() const { return "backup Completed"; } BackupRestaurant *BackupRestaurant::clone() const { return new BackupRestaurant(*this); } BackupRestaurant::~BackupRestaurant() = default; RestoreResturant::RestoreResturant() {} void RestoreResturant::act(Restaurant &restaurant) { if (backup == nullptr) { BaseAction::error("Error: No available backup"); std::cout << getErrorMsg()<< std::endl; } else { restaurant.operator=(*backup); complete(); } } std::string RestoreResturant::toString() const { return "restore Completed"; } RestoreResturant *RestoreResturant::clone() const { return new RestoreResturant(*this); } RestoreResturant::~RestoreResturant() = default;
[ "ygleit@gmail.com" ]
ygleit@gmail.com
e1ee3a806d2f1aa0c3d44dedf6f3577acfb0d596
66033adddff903d4ad540aefa39fdffe9934e403
/Seep/includes/panojs/bioView/libsrc/libbioimg/formats_api/dim_img_format_utils.cpp
91a3adbb26ab87653a8f35428e05772153dac5e7
[]
no_license
kay54068/Hide-Seep
361ef4c783f8ccff186eb98fee01c1219e7664ef
785a0f93d64068d630a884d5283fae3e09d0d8d8
refs/heads/master
2020-09-14T07:13:09.723462
2015-02-07T20:15:55
2015-02-07T20:15:55
null
0
0
null
null
null
null
UTF-8
C++
false
false
22,948
cpp
/******************************************************************************* Defines Image Format Utilities rely on: DimFiSDK version: 1 Programmer: Dima Fedorov Levit <dimin@dimin.net> <http://www.dimin.net/> Image file structure: 1) Page: each file may contain 1 or more pages, each page is independent 2) Sample: in each page each pixel can contain 1 or more samples preferred number of samples: 1 (GRAY), 3(RGB) and 4(RGBA) 3) Depth: each sample can be of 1 or more bits of depth preferred depths are: 8 and 16 bits per sample 4) Allocation: each sample is allocated having in mind: All lines are stored contiguasly from top to bottom where having each particular line is byte alligned, i.e.: each line is allocated using minimal necessary number of bytes to store given depth. Which for the image means: size = ceil( ( (width*depth) / 8 ) * height ) As a result of Sample/Depth structure we can get images of different Bits per Pixel as: 1, 8, 24, 32, 48 and any other if needed History: 04/08/2004 11:57 - First creation 10/10/2005 15:15 - Fixes in allocImg to read palette for images 2008-06-27 14:57 - Fixes by Mario Emmenlauer to support large files ver: 4 *******************************************************************************/ #include "dim_img_format_utils.h" #include <math.h> #include <stdio.h> #include <string.h> // Disables Visual Studio 2005 warnings for deprecated code #if ( defined(_MSC_VER) && (_MSC_VER >= 1400) ) #pragma warning(disable:4996) #endif const char *dimNames[6] = { "none", "X", "Y", "C", "Z", "T" }; extern void* DimMalloc(DIM_ULONG size); extern void* DimFree(void *p); extern TDimImageInfo initTDimImageInfo(); //------------------------------------------------------------------------------ // tests for provided callbacks //------------------------------------------------------------------------------ bool isCustomReading ( TDimFormatHandle *fmtHndl ) { if ( ( fmtHndl->stream != NULL ) && ( fmtHndl->readProc != NULL ) && ( fmtHndl->seekProc != NULL ) ) return TRUE; return FALSE; } bool isCustomWriting ( TDimFormatHandle *fmtHndl ) { if ( ( fmtHndl->stream != NULL ) && ( fmtHndl->writeProc != NULL ) && ( fmtHndl->seekProc != NULL ) && ( fmtHndl->flushProc != NULL ) ) return TRUE; return FALSE; } //------------------------------------------------------------------------------ // Safe calls for callbacks //------------------------------------------------------------------------------ void dimProgress ( TDimFormatHandle *fmtHndl, long done, long total, char *descr) { if ( fmtHndl->showProgressProc != NULL ) fmtHndl->showProgressProc ( done, total, descr ); } void dimError ( TDimFormatHandle *fmtHndl, int val, char *descr) { if ( fmtHndl->showErrorProc != NULL ) fmtHndl->showErrorProc ( val, descr ); } int dimTestAbort ( TDimFormatHandle *fmtHndl ) { if ( fmtHndl->testAbortProc != NULL ) return fmtHndl->testAbortProc ( ); else return 0; } //------------------------------------------------------------------------------ // Safe calls for memory/io prototypes, if they are not supplied then // standard functions are used //------------------------------------------------------------------------------ void* dimMalloc( TDimFormatHandle *fmtHndl, D_SIZE_T size ) { if ( fmtHndl->mallocProc != NULL ) return fmtHndl->mallocProc ( size ); else { void *p = (void *) new char[size]; return p; } } void* dimFree( TDimFormatHandle *fmtHndl, void *p ) { if ( fmtHndl->freeProc != NULL ) return fmtHndl->freeProc( p ); else { unsigned char *pu = (unsigned char*) p; if (p != NULL) delete pu; return NULL; } } D_SIZE_T dimRead ( TDimFormatHandle *fmtHndl, void *buffer, D_SIZE_T size, D_SIZE_T count ) { if ( fmtHndl == NULL ) return 0; if ( fmtHndl->stream == NULL ) return 0; if ( fmtHndl->readProc != NULL ) return fmtHndl->readProc( buffer, size, count, fmtHndl->stream ); else return fread( buffer, size, count, (FILE *) fmtHndl->stream ); } D_SIZE_T dimWrite ( TDimFormatHandle *fmtHndl, void *buffer, D_SIZE_T size, D_SIZE_T count ) { if ( fmtHndl == NULL ) return 0; if ( fmtHndl->stream == NULL ) return 0; if ( fmtHndl->writeProc != NULL ) return fmtHndl->writeProc( buffer, size, count, fmtHndl->stream ); else return fwrite( buffer, size, count, (FILE *) fmtHndl->stream ); } DIM_INT dimFlush ( TDimFormatHandle *fmtHndl ) { if ( fmtHndl == NULL ) return EOF; if ( fmtHndl->stream == NULL ) return EOF; if ( fmtHndl->flushProc != NULL ) return fmtHndl->flushProc( fmtHndl->stream ); else return fflush( (FILE *) fmtHndl->stream ); } DIM_INT dimSeek ( TDimFormatHandle *fmtHndl, D_OFFSET_T offset, DIM_INT origin ) { if ( fmtHndl == NULL ) return 1; if ( fmtHndl->stream == NULL ) return 1; off_t off_io = (off_t) offset; if ((D_OFFSET_T) off_io != offset) return -1; if ( fmtHndl->seekProc != NULL ) { return fmtHndl->seekProc( fmtHndl->stream, off_io, origin ); } else { return fseek( (FILE *) fmtHndl->stream, off_io, origin ); } } D_SIZE_T dimSize ( TDimFormatHandle *fmtHndl ) { if ( fmtHndl == NULL ) return 0; if ( fmtHndl->stream == NULL ) return 0; D_SIZE_T fsize = 0; if ( fmtHndl->sizeProc != NULL ) return fmtHndl->sizeProc( fmtHndl->stream ); else { D_SIZE_T p = dimTell(fmtHndl); fseek( (FILE *) fmtHndl->stream, 0, SEEK_END ); D_SIZE_T end_p = dimTell(fmtHndl); fseek( (FILE *) fmtHndl->stream, p, SEEK_SET ); return end_p; } } D_OFFSET_T dimTell ( TDimFormatHandle *fmtHndl ) { if ( fmtHndl->stream == NULL ) return 0; if ( fmtHndl->tellProc != NULL ) return fmtHndl->tellProc( fmtHndl->stream ); else return ftell( (FILE *) fmtHndl->stream ); } DIM_INT dimEof ( TDimFormatHandle *fmtHndl ) { if ( fmtHndl->stream == NULL ) return 1; if ( fmtHndl->eofProc != NULL ) return fmtHndl->eofProc( fmtHndl->stream ); else return feof( (FILE *) fmtHndl->stream ); } DIM_INT dimClose ( TDimFormatHandle *fmtHndl ) { if ( fmtHndl == NULL ) return EOF; if ( fmtHndl->stream == NULL ) return EOF; DIM_INT res; if ( fmtHndl->closeProc != NULL ) res = fmtHndl->closeProc( fmtHndl->stream ); else res = fclose( (FILE *) fmtHndl->stream ); fmtHndl->stream = NULL; return res; } //------------------------------------------------------------------------------ // MISC //------------------------------------------------------------------------------ DIM_UCHAR iTrimUC (int num) { if (num < 0) return 0; if (num > 255) return 255; return (DIM_UCHAR) num; } int trimInt(int i, int Min, int Max) { if (i>Max) return(Max); if (i<Min) return(Min); return(i); } //------------------------------------------------------------------------------ // SWAP TYPES //------------------------------------------------------------------------------ void dimSwapShort(DIM_UINT16* wp) { register DIM_UCHAR* cp = (DIM_UCHAR*) wp; DIM_UCHAR t; t = cp[1]; cp[1] = cp[0]; cp[0] = t; } void dimSwapLong(DIM_UINT32* lp) { register DIM_UCHAR* cp = (DIM_UCHAR*) lp; DIM_UCHAR t; t = cp[3]; cp[3] = cp[0]; cp[0] = t; t = cp[2]; cp[2] = cp[1]; cp[1] = t; } void dimSwapArrayOfShort(DIM_UINT16* wp, register DIM_ULONG n) { register DIM_UCHAR* cp; register DIM_UCHAR t; while (n-- > 0) { cp = (DIM_UCHAR*) wp; t = cp[1]; cp[1] = cp[0]; cp[0] = t; wp++; } } void dimSwapArrayOfLong(register DIM_UINT32* lp, register DIM_ULONG n) { register unsigned char *cp; register unsigned char t; while (n-- > 0) { cp = (unsigned char *)lp; t = cp[3]; cp[3] = cp[0]; cp[0] = t; t = cp[2]; cp[2] = cp[1]; cp[1] = t; lp++; } } void dimSwapDouble(double *dp) { register DIM_UINT32* lp = (DIM_UINT32*) dp; DIM_UINT32 t; dimSwapArrayOfLong(lp, 2); t = lp[0]; lp[0] = lp[1]; lp[1] = t; } void dimSwapArrayOfDouble(double* dp, register DIM_ULONG n) { register DIM_UINT32* lp = (DIM_UINT32*) dp; register DIM_UINT32 t; dimSwapArrayOfLong(lp, n + n); while (n-- > 0) { t = lp[0]; lp[0] = lp[1]; lp[1] = t; lp += 2; } } void dimSwapData(int type, long size, void* data) { if ( (type == DIM_TAG_SHORT) || (type == DIM_TAG_SSHORT) ) dimSwapArrayOfShort( (DIM_UINT16*) data, size ); if ( (type == DIM_TAG_LONG) || (type == DIM_TAG_SLONG) || (type == DIM_TAG_FLOAT) ) dimSwapArrayOfLong( (DIM_UINT32*) data, size ); if (type == DIM_TAG_RATIONAL) dimSwapArrayOfLong( (DIM_UINT32*) data, size ); if (type == DIM_TAG_DOUBLE) dimSwapArrayOfDouble( (double*) data, size ); } //------------------------------------------------------------------------------ // Init parameters //------------------------------------------------------------------------------ TDimFormatHandle initTDimFormatHandle() { TDimFormatHandle tp; tp.ver = sizeof(TDimFormatHandle); tp.showProgressProc = NULL; tp.showErrorProc = NULL; tp.testAbortProc = NULL; tp.mallocProc = NULL; tp.freeProc = NULL; tp.subFormat = 0; tp.pageNumber = 0; tp.resolutionLevel = 0; tp.quality = 0; tp.compression = 0; tp.order = 0; tp.metaData.count = 0; tp.metaData.tags = NULL; tp.roiX = 0; tp.roiY = 0; tp.roiW = 0; tp.roiH = 0; tp.imageServicesProcs = NULL; tp.internalParams = NULL; tp.fileName = NULL; tp.parent = NULL; tp.stream = NULL; tp.io_mode = DIM_IO_READ; tp.image = NULL; tp.options = NULL; tp.readProc = NULL; tp.writeProc = NULL; tp.flushProc = NULL; tp.seekProc = NULL; tp.sizeProc = NULL; tp.tellProc = NULL; tp.eofProc = NULL; tp.closeProc = NULL; return tp; } TDimImageInfo initTDimImageInfo() { TDimImageInfo tp; tp.ver = sizeof(TDimImageInfo); tp.width = 0; tp.height = 0; tp.number_pages = 0; tp.number_levels = 0; tp.number_t = 1; tp.number_z = 1; tp.transparentIndex = 0; tp.transparencyMatting = 0; tp.imageMode = 0; tp.samples = 0; tp.depth = 0; tp.pixelType = D_FMT_UNSIGNED; tp.rowAlignment = DIM_TAG_BYTE; tp.resUnits = 0; tp.xRes = 0; tp.yRes = 0; tp.tileWidth = 0; tp.tileHeight = 0; tp.lut.count = 0; tp.file_format_id = 0; DIM_UINT i; // dimensions for (i=0; i<DIM_MAX_DIMS; ++i) { tp.dimensions[i].dim = DIM_DIM_0; tp.dimensions[i].description = NULL; tp.dimensions[i].ext = NULL; } tp.number_dims = 3; for (i=0; i<tp.number_dims; ++i) { tp.dimensions[i].dim = (DIM_ImageDims) (DIM_DIM_0+i+1); } // channels for (i=0; i<DIM_MAX_CHANNELS; ++i) { tp.channels[i].description = NULL; tp.channels[i].ext = NULL; } return tp; } //------------------------------------------------------------------------------ // TDimImageBitmap //------------------------------------------------------------------------------ long getLineSizeInBytes(TDimImageBitmap *img) { return (long) ceil( ((double)(img->i.width * img->i.depth)) / 8.0 ); } long getImgSizeInBytes(TDimImageBitmap *img) { long size = (long) ceil( ((double)(img->i.width * img->i.depth)) / 8.0 ) * img->i.height; return size; } long getImgNumColors(TDimImageBitmap *img) { return (long) pow( 2.0f, (float)(img->i.depth * img->i.samples) ); } void initImagePlanes(TDimImageBitmap *bmp) { if (bmp == NULL) return; DIM_UINT i; bmp->i = initTDimImageInfo(); for (i=0; i<512; i++) bmp->bits[i] = NULL; } int allocImg( TDimImageBitmap *img, DIM_UINT w, DIM_UINT h, DIM_UINT samples, DIM_UINT depth) { DIM_UINT sample; if (img == NULL) return 1; for (sample=0; sample<img->i.samples; sample++) if (img->bits[sample] != NULL) img->bits[sample] = DimFree( img->bits[sample] ); initImagePlanes( img ); img->i.width = w; img->i.height = h; img->i.imageMode = 0; img->i.samples = samples; img->i.depth = depth; long size = getImgSizeInBytes( img ); for (sample=0; sample<img->i.samples; sample++) { //img->bits[sample] = (DIM_UCHAR *) DimMalloc( size ); img->bits[sample] = new DIM_UCHAR [size]; if (img->bits[sample] == NULL) return 1; } return 0; } void deleteImg(TDimImageBitmap *img) { if (img == NULL) return; DIM_UINT sample=0; for (sample=0; sample<img->i.samples; ++sample) { if (img->bits[sample]) { void *p = img->bits[sample]; for (unsigned int i=0; i<img->i.samples; ++i) if (img->bits[i] == p) img->bits[i] = NULL; delete (DIM_UCHAR*) p; } // if channel found } // for samples } int allocImg( TDimFormatHandle *fmtHndl, TDimImageBitmap *img, DIM_UINT w, DIM_UINT h, DIM_UINT samples, DIM_UINT depth) { DIM_UINT sample; if (img == NULL) return 1; for (sample=0; sample<img->i.samples; sample++) if (img->bits[sample] != NULL) img->bits[sample] = dimFree( fmtHndl, img->bits[sample] ); initImagePlanes( img ); img->i.width = w; img->i.height = h; img->i.samples = samples; img->i.depth = depth; long size = getImgSizeInBytes( img ); for (sample=0; sample<img->i.samples; sample++) { img->bits[sample] = (DIM_UCHAR *) dimMalloc( fmtHndl, size ); if (img->bits[sample] == NULL) return 1; } return 0; } // alloc image using info int allocImg( TDimFormatHandle *fmtHndl, TDimImageInfo *info, TDimImageBitmap *img) { if (fmtHndl == NULL) return 1; if (info == NULL) return 1; if (img == NULL) return 1; TDimImageInfo ii = *info; img->i = ii; if ( allocImg( fmtHndl, img, info->width, info->height, info->samples, info->depth ) == 0) { img->i = ii; return 0; } else return 1; } // alloc handle image using info int allocImg( TDimFormatHandle *fmtHndl, TDimImageInfo *info ) { return allocImg( fmtHndl, info, fmtHndl->image ); } void deleteImg( TDimFormatHandle *fmtHndl, TDimImageBitmap *img) { if (img == NULL) return; DIM_UINT sample=0; for (sample=0; sample<img->i.samples; ++sample) { if (img->bits[sample]) { void *p = img->bits[sample]; for (unsigned int i=0; i<img->i.samples; ++i) if (img->bits[i] == p) img->bits[i] = NULL; dimFree( fmtHndl, p ); } // if channel found } // for samples } int getSampleHistogram(TDimImageBitmap *img, long *hist, int sample) { if (img == 0) return -1; DIM_UINT i; int num_used = 0; unsigned long size = img->i.width * img->i.height; DIM_UINT max_uint16 = (DIM_UINT16) -1; DIM_UINT max_uchar = (DIM_UCHAR) -1; if (img->i.depth == 16) { DIM_UINT16 *p = (DIM_UINT16 *) img->bits[sample]; for (i=0; i<=max_uint16; i++) hist[i] = 0; for (i=0; i<size; i++) { ++hist[*p]; p++; } for (i=0; i<=max_uint16; i++) if (hist[i] != 0) ++num_used; } else // 8bit { DIM_UCHAR *p = (DIM_UCHAR *) img->bits[sample]; for (i=0; i<=max_uchar; i++) hist[i] = 0; for (i=0; i<size; i++) { ++hist[*p]; p++; } for (i=0; i<=max_uchar; i++) if (hist[i] != 0) ++num_used; } return 0; } int normalizeImg(TDimImageBitmap *img, TDimImageBitmap *img8) { DIM_UINT max_uint16 = (DIM_UINT16) -1; long hist[65536]; DIM_UCHAR lut[65536]; DIM_UINT min_col = 0; DIM_UINT max_col = max_uint16; unsigned int i; if (img->i.depth != 16) return -1; int disp_range = 256; DIM_ULONG size = img->i.width * img->i.height; DIM_UINT sample=0; for (sample=0; sample<img->i.samples; sample++) { DIM_UINT16 *p16 = (DIM_UINT16 *) img->bits[sample]; DIM_UCHAR *buf8 = (DIM_UCHAR *) img8->bits[sample]; DIM_UCHAR *p8 = buf8; getSampleHistogram(img, hist, sample); for (i=0; i<=max_uint16; i++) { if (hist[i] != 0) { min_col = i; break; } } for (i=max_uint16; i>=0; i--) { if (hist[i] != 0) { max_col = i; break; } } int range = max_col - min_col; if (range < 1) range = disp_range; for (i=0; i<=max_uint16; i++) lut[i] = iTrimUC ( (i-min_col)*disp_range / range ); for (i=0; i<size; i++) *(p8+i) = lut[*(p16+i)]; } #if defined (DEBUG) || defined (_DEBUG) printf("Normalized size: %d max: %d min: %d\n", size, max_col, min_col ); #endif return 0; } int resizeImgNearNeighbor( TDimImageBitmap *img, unsigned int newWidth, unsigned int newHeight) { float hRatio, vRatio; if (img == NULL) return 1; if ((img->i.width == newWidth) && (img->i.height == newHeight)) return 1; if ((newWidth == 0) || (newHeight == 0)) return 1; TDimImageBitmap oBmp; initImagePlanes( &oBmp ); oBmp.i = img->i; allocImg( &oBmp, newWidth, newHeight, oBmp.i.samples, oBmp.i.depth ); int newLineSize = getLineSizeInBytes( &oBmp ); int oldLineSize = getLineSizeInBytes( img ); hRatio = ((float) img->i.width) / ((float) newWidth); vRatio = ((float) img->i.height) / ((float) newHeight); DIM_UINT sample=0; for (sample=0; sample<img->i.samples; sample++) { register unsigned int x, y; unsigned char *p, *po; unsigned int xNew, yNew; p = (unsigned char *) oBmp.bits[sample]; for (y=0; y<newHeight; y++) { for (x=0; x<newWidth; x++) { xNew = trimInt((int) (x*hRatio), 0, img->i.width-1); yNew = trimInt((int) (y*vRatio), 0, img->i.height-1); po = ( (unsigned char *) img->bits[sample] ) + (oldLineSize * yNew); if (oBmp.i.depth == 8) p[x] = po[xNew]; else if (oBmp.i.depth == 16) { DIM_UINT16 *p16 = (DIM_UINT16 *) p; DIM_UINT16 *po16 = (DIM_UINT16 *) po; p16[x] = po16[xNew]; } } p += newLineSize; } } // sample deleteImg( img ); *img = oBmp; return(0); } int retreiveImgROI( TDimImageBitmap *img, DIM_ULONG x, DIM_ULONG y, DIM_ULONG w, DIM_ULONG h ) { if (img == NULL) return 1; if ((w == 0) || (h == 0)) return 1; if ((img->i.width-x <= w) || (img->i.height-y <= h)) return 1; TDimImageBitmap nBmp; initImagePlanes( &nBmp ); nBmp.i = img->i; allocImg( &nBmp, w, h, nBmp.i.samples, nBmp.i.depth ); int newLineSize = getLineSizeInBytes( &nBmp ); int oldLineSize = getLineSizeInBytes( img ); int Bpp = (long) ceil( ((double)img->i.depth) / 8.0 ); DIM_UINT sample=0; for (sample=0; sample<img->i.samples; sample++) { register unsigned int yi; unsigned char *pl = (unsigned char *) nBmp.bits[sample]; unsigned char *plo = ( (unsigned char *) img->bits[sample] ) + y*oldLineSize + x*Bpp; for (yi=0; yi<h; yi++) { memcpy( pl, plo, w*Bpp ); pl += newLineSize; plo += oldLineSize; } // for yi } // sample deleteImg( img ); *img = nBmp; return(0); } std::string getImageInfoText(TDimImageBitmap *img) { std::string inftext=""; if (img == NULL) return inftext; char line[1024]; sprintf(line, "pages: %d\n", img->i.number_pages ); inftext+=line; sprintf(line, "channels: %d\n", img->i.samples ); inftext+=line; sprintf(line, "width: %d\n", img->i.width); inftext+=line; sprintf(line, "height: %d\n", img->i.height); inftext+=line; sprintf(line, "zsize: %d\n", img->i.number_z ); inftext+=line; sprintf(line, "tsize: %d\n", img->i.number_t ); inftext+=line; sprintf(line, "depth: %d\n", img->i.depth ); inftext+=line; sprintf(line, "pixelType: %d\n", img->i.pixelType ); inftext+=line; if (dimBigendian) inftext+="endian: big\n"; else inftext+="endian: little\n"; sprintf(line, "resUnits: %d\n", img->i.resUnits ); inftext+=line; sprintf(line, "xRes: %f\n", img->i.xRes ); inftext+=line; sprintf(line, "yRes: %f\n", img->i.yRes ); inftext+=line; //sprintf(line, "format: %s\n", img->i.yRes ); inftext+=line; unsigned int i; inftext += "dimensions:"; try { if (img->i.number_dims >= DIM_MAX_DIMS) img->i.number_dims = DIM_MAX_DIMS-1; for (i=0; i<img->i.number_dims; ++i) { //sprintf(line, ": %d-%s\n", img->i.dimensions[i].dim, img->i.dimensions[i].description ); sprintf(line, " %s", dimNames[img->i.dimensions[i].dim] ); inftext+=line; } } catch (...) { inftext += "unknown"; } inftext += "\n"; inftext += "channelsDescription:"; try { for (i=0; i<img->i.samples; ++i) if (img->i.channels[i].description != NULL) { inftext += " "; inftext += img->i.channels[i].description; } } catch (...) { inftext += "unknown"; } inftext += "\n"; return inftext; } //------------------------------------------------------------------------------ // Metadata //------------------------------------------------------------------------------ void initMetaTag(TDimTagItem *tagItem) { tagItem->tagGroup = 0; tagItem->tagId = 0; tagItem->tagType = 0; tagItem->tagLength = 0; tagItem->tagData = NULL; } void clearMetaTag(TDimTagItem *tagItem) { if (tagItem == NULL) return; if (tagItem->tagLength == 0) return; if (tagItem->tagData == NULL) return; DimFree( tagItem->tagData ); initMetaTag(tagItem); } void clearMetaTags(TDimTagList *tagList) { if (tagList == NULL) return; if (tagList->count == 0) return; if (tagList->tags == NULL) return; tagList->tags = (TDimTagItem *) DimFree( tagList->tags ); tagList->count = 0; } bool isTagPresent(TDimTagList *tagList, int group, int tag) { if (tagList == NULL) return false; if (tagList->count == 0) return false; if (tagList->tags == NULL) return false; DIM_UINT i; for (i=0; i<tagList->count; i++) if ( (tagList->tags[i].tagId == (DIM_UINT) tag) && (tagList->tags[i].tagGroup == (DIM_UINT) group) ) return true; return false; } int tagPos(TDimTagList *tagList, int group, int tag) { if (tagList == NULL) return false; if (tagList->count == 0) return false; if (tagList->tags == NULL) return false; DIM_UINT i; for (i=0; i<tagList->count; i++) if ( (tagList->tags[i].tagId == (DIM_UINT) tag) && (tagList->tags[i].tagGroup == (DIM_UINT) group) ) return i; return -1; } int addMetaTag(TDimTagList *tagList, TDimTagItem item) { DIM_UINT i; if (tagList == NULL) return 1; if (tagList->tags == NULL) tagList->count = 0; if (tagList->count != 0) for (i=0; i<tagList->count; i++) if ( (tagList->tags[i].tagId == item.tagId) && (tagList->tags[i].tagGroup == item.tagGroup) ) { tagList->tags[i] = item; return 0; } // tag was not found - add { TDimTagItem *newTags = (TDimTagItem *) DimMalloc( (tagList->count+1) * sizeof(TDimTagItem) ); if (newTags == NULL) return 1; for (i=0; i<tagList->count; i++) newTags[i] = tagList->tags[i]; newTags[tagList->count] = item; DimFree( tagList->tags ); tagList->tags = newTags; tagList->count++; } return 0; }
[ "wjbeaver@gmail.com" ]
wjbeaver@gmail.com
e2985eb5c48020773b55937f0f7dc52b46159e19
70a1290ae837b21a673ba7cbb6e51de8abe1c18f
/Olympus_stable1.52/loop.ino
181cb106a1751a787ba5601ba1289d8f82ee1b23
[]
no_license
alvish96/arduino-repo
3d9f4ce5144659335dcadf2eef496db28b0a729d
2167e47070e946d8a0bd1b1c0a5ad67187d69981
refs/heads/master
2023-05-24T18:22:48.693548
2021-05-29T12:52:38
2021-05-29T12:52:38
371,967,545
0
0
null
null
null
null
UTF-8
C++
false
false
1,834
ino
void loop() { // brt(); remote(); // in();` present = millis() / 1000; for (int i = 0; i < 12; i++) { if (mod[i].flag == 1) { if (millis() > mod[i].total ) { if ((i == 10) || (i == 2) || (i == 1) ) { if (CRF == 1) { Serial.print(" motioncount = 0 "); motioncount = 0; lastmotion = millis() / 1000; minor = 0; fromhere = 0; CRF = 0; priority = mod[i].prtemp; tune(4); } } if (i == 0) { delay(100); resetFunc(); delay(100); } else { mod[i].SWoff(); lastmotion = millis() / 1000; mod[i].down(); Serial.print(" TIMER OFF "); priority = mod[i].prtemp; mod[i].debug(); } } } delay(30); } if (wait) goto skip; if (priority == 1) goto skip; gapstt(4); Serial.print(" not skipping "); skip: if (millis() > 4000) if ((checkmotion && motion()) == 1) { wait = 0; if (minor && fromhere) goto stay; if (brt() < limit) { if (motioncount == 1) { tune(2); mod[10].SWtimer(30, 's'); delay(100); if ((analogRead(ldr) / 10) < limit) { mod[10].SWoff(); mod[2].SWtimer(30, 's'); } minor = 1; fromhere = 1; CRF = 1; } } stay: if ((motioncount == 2) && (fromhere == 1)) { mod[1].SWtimer(30, 's'); mod[10].SWoff(); mod[2].SWoff(); } if ((motioncount > 3) && (fromhere == 1)) { tune(6); mod[1].SWon(); motioncount = 0; minor = 0; fromhere = 0; } } debug(); }
[ "vishal2796pro@gmail.com" ]
vishal2796pro@gmail.com
851fe44dd17e2237fcae58bc9f95d3851c7c0e20
afad7f717374967fe5b33d479fa1057b31a06697
/include/RapidVulkan/Debug/Strings/VkValidationCheckEXT.hpp
5ae25735c6a8a7c6b7f73a74ca74bb55a476dfa1
[ "BSD-3-Clause" ]
permissive
Unarmed1000/RapidVulkan
01cf0e7cd97cd31d64faeb00a9c2f1b75bbab990
186a85bea780414f55baec2b6c803002080b4ac8
refs/heads/master
2023-06-12T21:26:40.097317
2023-05-31T10:06:07
2023-05-31T10:06:07
66,358,383
12
0
null
null
null
null
UTF-8
C++
false
false
2,942
hpp
#ifndef RAPIDVULKAN_DEBUG_STRINGS_VKVALIDATIONCHECKEXT_HPP #define RAPIDVULKAN_DEBUG_STRINGS_VKVALIDATIONCHECKEXT_HPP #if VK_HEADER_VERSION >= 30 //*************************************************************************************************************************************************** //* BSD 3-Clause License //* //* Copyright (c) 2017, Rene Thrane //* All rights reserved. //* //* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: //* //* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. //* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the //* documentation and/or other materials provided with the distribution. //* 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this //* software without specific prior written permission. //* //* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, //* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR //* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, //* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF //* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, //* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. //*************************************************************************************************************************************************** // If you use the functionality in this file its recommended to 'WRAP' it in a hpp/cpp file combo so its only included in one file! // Auto-generated Vulkan 1.0 C++11 RAII classes by RAIIGen (https://github.com/Unarmed1000/RAIIGen) #include <vulkan/vulkan.h> namespace RapidVulkan { namespace Debug { inline const char* TryToString(const VkValidationCheckEXT& value) { switch(value) { #if VK_HEADER_VERSION >= 30 case VK_VALIDATION_CHECK_ALL_EXT: return "VK_VALIDATION_CHECK_ALL_EXT"; #endif #if VK_HEADER_VERSION >= 51 case VK_VALIDATION_CHECK_SHADERS_EXT: return "VK_VALIDATION_CHECK_SHADERS_EXT"; #endif default: return nullptr; } }; inline const char* ToString(const VkValidationCheckEXT& value) { auto result = TryToString(value); return (result != nullptr ? result : "*Unknown*"); }; } } #endif #endif
[ "rene.thrane@manabattery.com" ]
rene.thrane@manabattery.com
f94a988b1a14d15f21106df62f163f6e7daeebbb
6f2b6e9d77fc4dd5e1dae8ba6e5a66eb7c7ae849
/sstd_boost/sstd/libs/fiber/examples/asio/ps/subscriber.cpp
e2ccb3c004de7168e000df4be56c7d36b2313234
[ "BSL-1.0" ]
permissive
KqSMea8/sstd_library
9e4e622e1b01bed5de7322c2682539400d13dd58
0fcb815f50d538517e70a788914da7fbbe786ce1
refs/heads/master
2020-05-03T21:07:01.650034
2019-04-01T00:10:47
2019-04-01T00:10:47
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,630
cpp
// // blocking_tcp_echo_client.cpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2013 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #include <cstdlib> #include <cstring> #include <iostream> #include <sstd/boost/asio.hpp> using boost::asio::ip::tcp; enum { max_length = 1024 }; int main( int argc, char* argv[]) { try { if ( 3 != argc) { std::cerr << "Usage: subscriber <host> <queue>\n"; return EXIT_FAILURE; } boost::asio::io_service io_service; tcp::resolver resolver( io_service); tcp::resolver::query query( tcp::v4(), argv[1], "9998"); tcp::resolver::iterator iterator = resolver.resolve( query); tcp::socket s( io_service); boost::asio::connect( s, iterator); char msg[max_length]; std::string queue( argv[2]); std::memset( msg, '\0', max_length); std::memcpy( msg, queue.c_str(), queue.size() ); boost::asio::write( s, boost::asio::buffer( msg, max_length) ); for (;;) { char reply[max_length]; size_t reply_length = s.read_some( boost::asio::buffer( reply, max_length) ); std::cout << "published: "; std::cout.write( reply, reply_length); std::cout << std::endl; } return EXIT_SUCCESS; } catch ( std::exception const& e) { std::cerr << "Exception: " << e.what() << "\n"; } return EXIT_FAILURE; }
[ "zhaixueqiang@hotmail.com" ]
zhaixueqiang@hotmail.com
58486a67e1968195394a40c7fecc705008fb47d4
d2249116413e870d8bf6cd133ae135bc52021208
/MotleyFool/StockBar.cpp
df752ee30f647dff067aa0948b5b54b0143ffb91
[]
no_license
Unknow-man/mfc-4
ecbdd79cc1836767ab4b4ca72734bc4fe9f5a0b5
b58abf9eb4c6d90ef01b9f1203b174471293dfba
refs/heads/master
2023-02-17T18:22:09.276673
2021-01-20T07:46:14
2021-01-20T07:46:14
null
0
0
null
null
null
null
WINDOWS-1252
C++
false
false
5,797
cpp
//StockBar.cpp : Implementation of CStockBar //***************************************************************************// // // // This file was created using the DeskBand ATL Object Wizard 2.0 // // By Erik Thompson © 2001 // // Email questions and comments to erikt@radbytes.com // // // //***************************************************************************// #include "stdafx.h" #include <wchar.h> #include "MotleyFool.h" #include "StockBar.h" const WCHAR TITLE_CStockBar[] = L"The Motley Fool"; ///////////////////////////////////////////////////////////////////////////// // CStockBar CStockBar::CStockBar(): m_dwBandID(0), m_dwViewMode(0), m_bShow(FALSE), m_bEnterHelpMode(FALSE), m_hWndParent(NULL), m_pSite(NULL) { m_ReflectWnd.GetToolBar().GetEditBox().SetBand(this); } BOOL CStockBar::RegisterAndCreateWindow() { RECT rect; ::GetClientRect(m_hWndParent, &rect); m_ReflectWnd.Create(m_hWndParent, rect, NULL, WS_CHILD); // The toolbar is the window that the host will be using so it is the window that is important. return m_ReflectWnd.GetToolBar().IsWindow(); } // IDeskBand STDMETHODIMP CStockBar::GetBandInfo(DWORD dwBandID, DWORD dwViewMode, DESKBANDINFO* pdbi) { m_dwBandID = dwBandID; m_dwViewMode = dwViewMode; if (pdbi) { if (pdbi->dwMask & DBIM_MINSIZE) { pdbi->ptMinSize.x = 250; pdbi->ptMinSize.y = 22; } if (pdbi->dwMask & DBIM_MAXSIZE) { pdbi->ptMaxSize.x = 0; // ignored pdbi->ptMaxSize.y = -1; // width } if (pdbi->dwMask & DBIM_INTEGRAL) { pdbi->ptIntegral.x = 0; // ignored pdbi->ptIntegral.y = 0; // not sizeable } if (pdbi->dwMask & DBIM_ACTUAL) { pdbi->ptActual.x = 250; pdbi->ptActual.y = 22; } if (pdbi->dwMask & DBIM_TITLE) { wcscpy(pdbi->wszTitle, TITLE_CStockBar); } if (pdbi->dwMask & DBIM_BKCOLOR) { //Use the default background color by removing this flag. pdbi->dwMask &= ~DBIM_BKCOLOR; } if (pdbi->dwMask & DBIM_MODEFLAGS) { pdbi->dwModeFlags = DBIMF_VARIABLEHEIGHT; } } return S_OK; } // IOleWindow STDMETHODIMP CStockBar::GetWindow(HWND* phwnd) { HRESULT hr = S_OK; if (NULL == phwnd) { hr = E_INVALIDARG; } else { *phwnd = m_ReflectWnd.GetToolBar().m_hWnd; } return hr; } STDMETHODIMP CStockBar::ContextSensitiveHelp(BOOL fEnterMode) { m_bEnterHelpMode = fEnterMode; return S_OK; } // IDockingWindow STDMETHODIMP CStockBar::CloseDW(unsigned long dwReserved) { ShowDW(FALSE); return S_OK; } STDMETHODIMP CStockBar::ResizeBorderDW(const RECT* prcBorder, IUnknown* punkToolbarSite, BOOL fReserved) { // Not used by any band object. return E_NOTIMPL; } STDMETHODIMP CStockBar::ShowDW(BOOL fShow) { m_bShow = fShow; m_ReflectWnd.GetToolBar().ShowWindow(m_bShow ? SW_SHOW : SW_HIDE); return S_OK; } // IObjectWithSite STDMETHODIMP CStockBar::SetSite(IUnknown* pUnkSite) { //If a site is being held, release it. if(m_pSite) { m_ReflectWnd.GetToolBar().SetBrowser(NULL); m_pSite->Release(); m_pSite = NULL; } //If punkSite is not NULL, a new site is being set. if(pUnkSite) { //Get the parent window. IOleWindow *pOleWindow = NULL; m_hWndParent = NULL; if(SUCCEEDED(pUnkSite->QueryInterface(IID_IOleWindow, (LPVOID*)&pOleWindow))) { pOleWindow->GetWindow(&m_hWndParent); pOleWindow->Release(); } if(!::IsWindow(m_hWndParent)) return E_FAIL; if(!RegisterAndCreateWindow()) return E_FAIL; //Get and keep the IInputObjectSite pointer. if(FAILED(pUnkSite->QueryInterface(IID_IInputObjectSite, (LPVOID*)&m_pSite))) { return E_FAIL; } IWebBrowser2* s_pFrameWB = NULL; IOleCommandTarget* pCmdTarget = NULL; HRESULT hr = pUnkSite->QueryInterface(IID_IOleCommandTarget, (LPVOID*)&pCmdTarget); if (SUCCEEDED(hr)) { IServiceProvider* pSP; hr = pCmdTarget->QueryInterface(IID_IServiceProvider, (LPVOID*)&pSP); pCmdTarget->Release(); if (SUCCEEDED(hr)) { hr = pSP->QueryService(SID_SWebBrowserApp, IID_IWebBrowser2, (LPVOID*)&s_pFrameWB); pSP->Release(); _ASSERT(s_pFrameWB); m_ReflectWnd.GetToolBar().SetBrowser(s_pFrameWB); s_pFrameWB->Release(); } } } return S_OK; } STDMETHODIMP CStockBar::GetSite(REFIID riid, void **ppvSite) { *ppvSite = NULL; if(m_pSite) { return m_pSite->QueryInterface(riid, ppvSite); } return E_FAIL; } void CStockBar::FocusChange(BOOL bHaveFocus) { if (m_pSite) { IUnknown* pUnk = NULL; if (SUCCEEDED(QueryInterface(IID_IUnknown, (LPVOID*)&pUnk)) && pUnk != NULL) { m_pSite->OnFocusChangeIS(pUnk, bHaveFocus); pUnk->Release(); pUnk = NULL; } } } STDMETHODIMP CStockBar::HasFocusIO(void) { // if any of the windows in our toolbar have focus then return S_OK else S_FALSE. if (m_ReflectWnd.GetToolBar().m_hWnd == ::GetFocus()) return S_OK; if (m_ReflectWnd.GetToolBar().GetEditBox().m_hWnd == ::GetFocus()) return S_OK; return S_FALSE; } STDMETHODIMP CStockBar::TranslateAcceleratorIO(LPMSG lpMsg) { // the only window that needs to translate messages is our edit box so forward them. return m_ReflectWnd.GetToolBar().GetEditBox().TranslateAcceleratorIO(lpMsg); } STDMETHODIMP CStockBar::UIActivateIO(BOOL fActivate, LPMSG lpMsg) { // if our deskband is being activated then set focus to the edit box. if(fActivate) { m_ReflectWnd.GetToolBar().GetEditBox().SetFocus(); } return S_OK; }
[ "chenchao0632@163.com" ]
chenchao0632@163.com
7c1f19ba0ab1e8e6d6a10869f2a6de5ba5f09290
64ccec4866dd2baf295290d653d225539b1cbc8b
/ParticleSystem/ParticleSystem/ParticleSystem.cpp
99b925a389d9223688d414c4b076c6c2dea3eb15
[]
no_license
aidankennell/ParticleSystem
3a98f14a98790262e9d7440582ed7e406a85b4f0
a5a44cfeb8d18dcdc358fc1b3a365aa09190882f
refs/heads/master
2020-03-09T20:21:37.220012
2018-04-10T19:07:08
2018-04-10T19:07:08
128,982,461
0
0
null
null
null
null
UTF-8
C++
false
false
2,336
cpp
#include "ParticleSystem.h" #include "Particle.h" #include <ostream> ParticleSystem::ParticleSystem(int numberOfParticles, sf::Vector2f pos) { this->angleRange = 45; this->totalParticles = numberOfParticles; this->emissionLocation = pos; particles.resize(numberOfParticles); for (int i = 0; i < numberOfParticles; i++) particles[i] = new Particle(emissionLocation, particleTex, easingType); } ParticleSystem::ParticleSystem(int numberOfParticles, int angleRange, sf::Vector2f emissionLocation, sf::Texture& tex, int easingType) { this->angleRange = angleRange; this->totalParticles = numberOfParticles; this->emissionLocation = emissionLocation; this->particleTex = tex; this->easingType = easingType; particles.resize(numberOfParticles); for (int i = 0; i < numberOfParticles; i++) particles[i] = new Particle(emissionLocation, tex, easingType); } ParticleSystem::~ParticleSystem() { for (int i = 0; i < particles.size(); i++) delete particles[i]; particles.clear(); } void ParticleSystem::update(float dt) { for (int i = 0; i < totalParticles; i++) { if (particles[i] != NULL) { particles[i]->update(dt); if (particles[i]->getLifeLeft() <= 0) { float angle = (std::rand() % angleRange) * 3.14f / 180.f + (90.f - (float)angleRange/2.f) * 3.14f / 180.f; float speed = (std::rand() % 50) + 50.f; float lifeTime = (float)(std::rand() % 2000) / 1000.f + 1.f; particles[i]->resetParticle(lifeTime, sf::Vector2f(-std::cos(angle)*speed, -std::sin(angle) * speed), emissionLocation); } } } } void ParticleSystem::increaseParticleCount(int numNewParticles) { int oldSize = particles.size(); if (numNewParticles < 0) { for (int i = oldSize - 1; i > oldSize + numNewParticles - 1; i--) { delete particles[i]; particles[i] = NULL; } } else{ particles.resize(oldSize + numNewParticles); for (int i = oldSize - 1; i < particles.size(); i++) particles[i] = new Particle(emissionLocation, particleTex, easingType); } totalParticles = totalParticles + numNewParticles; cout << totalParticles << endl; } void ParticleSystem::draw(sf::RenderTarget& target, sf::RenderStates states) const { states.transform *= getTransform(); states.texture = NULL; for(int i = 0; i < totalParticles; i++) if(particles[i] != NULL) target.draw(*particles[i], states); }
[ "32394698+aidankennell@users.noreply.github.com" ]
32394698+aidankennell@users.noreply.github.com
cadc1ebee8588d73392ddff61ad4964412cd9e1b
fecce97e87392e8e0effecc81a906ee91c21c2d7
/examples/ActorThread/HelloWorld/src/Application.h
bc8e9844cebcca690e22ecb00a4591cac41e72cd
[ "BSL-1.0" ]
permissive
Ahmed-Zamouche/syscpp
1f1e7a9f77bb6e38bb7dd2e4f2e217ae8c3ae468
b1f977faba6f2200baee70b2a13e3d9885ca0c9a
refs/heads/master
2021-06-22T06:00:41.374485
2017-07-15T18:33:18
2017-07-15T18:36:49
null
0
0
null
null
null
null
UTF-8
C++
false
false
821
h
// Copyright Ciriaco Garcia de Celis 2016. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef APPLICATION_H #define APPLICATION_H #include <sys++/ActorThread.hpp> #include "Printer.h" #include "World.h" struct Newspaper { std::string name; }; struct Picture { int width, height; }; struct Money { double amount; }; class Application : public ActorThread<Application> { friend ActorThread<Application>; Application(int, char**); void onStart(); void onMessage(Newspaper&); void onMessage(Picture&); void onMessage(Money&); void onTimer(const int&); void onStop(); Printer::ptr printer; World::ptr world; }; #endif /* APPLICATION_H */
[ "cgarcelis@gmail.com" ]
cgarcelis@gmail.com
30ff5dd8e609c54fe3214c482ceecfa84f5ad668
31d67a64b41316dda50f9a5be43894ec395a6554
/VideoPlayer.h
8106be2dcf8b2c21cab2005dbc3fc485a2049d6d
[]
no_license
weimingtom/BKEngine_VideoPlayerPlugin
daec6058d5d6da123245a1e2f01c9f3e408a2f35
19f94f9fb1488b1844156522591441ad52e488fd
refs/heads/master
2021-01-13T06:08:12.692042
2014-07-11T12:40:24
2014-07-11T12:40:24
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,471
h
#ifndef VIDEOPLAYER_H #define VIDEOPLAYER_H #include <cstdint> template<class T,uint16_t BufferSize> class BKE_ThreadSafeQueue; typedef unsigned long ulong; struct AVStream; struct AVFrame; struct SwsContext; class CompleteVideoFrame{ CompleteVideoFrame(const CompleteVideoFrame &){} const CompleteVideoFrame &operator=(const CompleteVideoFrame &){ return *this; } public: struct MyPicture { uint8_t *data[8]; int linesize[8]; }; uint64_t repeat; double pts; MyPicture picture; CompleteVideoFrame(AVStream *videoStream, AVFrame *videoFrame, SwsContext *img_convert_ctx, double pts); ~CompleteVideoFrame() { free(picture.data[0]); } }; struct cmp_pCompleteVideoFrame{ bool operator()(CompleteVideoFrame * const &A, CompleteVideoFrame * const &B){ return A->pts > B->pts; } }; typedef struct{ bool(*write)(const void *src, ulong length, ulong channels, ulong frequency, void *); double(*get_time_offset)(void *); void(*wait)(void *, bool); } audio_f; typedef struct{ void (*begin)(int width, int height, float fps); void(*begindraw)(BKE_ThreadSafeQueue<CompleteVideoFrame *, 5> *frameQueue, volatile ulong *global_time, BKE_ThreadSafeQueue<CompleteVideoFrame *,100> *deleteQueue); void(*enddraw)(); } video_f; typedef void(*log_f)(const wchar_t *); typedef void(*play_video_f)( const char *file, volatile bool *stop, volatile bool *pause, audio_f audio_output, video_f video_output, log_f error_output, void *user_data); #endif
[ "taigacon@gmail.com" ]
taigacon@gmail.com
591058479335ce436ec345577d42427e8c3bddf7
dfcba8020d3b07e7d4ee8310c48bd4fe42926409
/ch7_sort/select_sort.cpp
c5b0d57f9283c400321946927ba9fc162a52970e
[]
no_license
Joseph516/data_structure
0bd603d88a167eded4212c44901eff50f3503026
f3596179a51e353fa347ab980e9c8cdfe2e231dd
refs/heads/master
2022-12-05T10:59:20.607201
2020-08-28T14:50:38
2020-08-28T14:50:38
187,564,887
0
0
null
null
null
null
UTF-8
C++
false
false
2,017
cpp
// 选择排序 #include <iostream> // 简单选择排序 // 顺序输出 void SimpleSelectSort(int A[], int n) { int i, j, min; for (i = 0; i < n; ++i) { min = i; for (j = i + 1; j < n; ++j) { if (A[j] < A[i]) { std::swap(j, min); } } if (min != i) { std::swap(A[i], A[min]); } } } /** 堆排序方法 * 对数组A中的1~n进行排序, 0位不进行排序(考虑树结构的特殊性) */ /** * Detail: 向下调整方法,得到大顶堆 * Params: A:待调整数组, k:调整节点,n:堆元素数目 * Return:NULL */ void AdjustDown(int A[], int k, int n) { A[0] = A[k]; // 暂时保存 for (int i = 2 * k; i <= n; i *= 2) { if (i + 1 <= n && A[i + 1] > A[i]) { ++i; // 选出较大的孩子 } if (A[0] >= A[i]) { break; // 孩子节点已经小于当前顶点,不用向下调整 } else { A[k] = A[i]; // 向下调整 k = i; } } A[k] = A[0]; // 最终位置 } /** * Detail: 向上调整方法,得到大顶堆 * Params: A:待调整数组, k:调整节点,n:堆元素数目 * Return:NULL */ void AdjustUp(int A[], int k, int n) { A[0] = A[k]; // 暂时保存 for (int i = k / 2; i > 0; i /= 2) { if (A[i] < A[0]) { A[k] = A[i]; // 当前节点值大于双亲节点,向上调整 k = i; } } A[k] = A[0]; } // 建立大顶堆 void BuildMaxHeap(int A[], int n) { for (int i = n / 2; i >= 1; --i) { AdjustDown(A, i, n); } } // 堆排序 void HeapSort(int A[], int n) { BuildMaxHeap(A, n); for (int i = n; i > 1; --i) { std::swap(A[i], A[1]); // 输出堆顶 AdjustDown(A, 1, i - 1); // 针对堆顶在剩下的元素中调整 } } int main(void) { const int n = 8; int A[n] = {8, 7, 6, 5, 4, 3, 2, 1}; // SimpleSelectSort(A, n); HeapSort(A, n - 1); for (int i = 0; i < n; ++i) { std::cout << A[i] << ","; } }
[ "joe.hyhznx@gmail.com" ]
joe.hyhznx@gmail.com
71098a5e4f933d3f0c28f69f44e790ed1d125456
11ce70c7c259c7c761c1f5f393013235beef27c7
/MyApplication/ShapesFactory.h
5a4852184f63d74d63e70c69af4e12dc2fc93d93
[]
no_license
joeyave/oop-course-project
b824ebf1ca9e732ff5e475eda3006de8f6c5c1f4
f6bee91ab6d820a8d6d1a122b3b4359be32501b5
refs/heads/master
2022-12-28T10:39:07.653961
2020-02-15T17:58:07
2020-02-15T17:58:07
300,177,408
0
0
null
null
null
null
UTF-8
C++
false
false
694
h
#pragma once #include <unordered_map> #include "Shape.h" #include "Circle.h" #include "Rectangle.h" #include "Ellipse.h" #include "Composite.h" class ShapesFactory { public: ShapesFactory() { prototypes_["circle"] = new Circle(); prototypes_["rectangle"] = new Rectangle(); prototypes_["ellipse"] = new Ellipse(); prototypes_["composite"] = new Composite(); } ~ShapesFactory() { delete prototypes_["circle"]; delete prototypes_["rectangle"]; delete prototypes_["ellipse"]; delete prototypes_["composite"]; } sf::Shape* createPrototype(std::string type) { return prototypes_[type]->clone(); } private: std::unordered_map<std::string, sf::Shape*> prototypes_; };
[ "aveltsev@gmail.com" ]
aveltsev@gmail.com
e2c48784e47426385d4007dba3dce243fea15bee
44ab57520bb1a9b48045cb1ee9baee8816b44a5b
/EngineTesting/Code/Network/NetworkTesting/BoostWrappersSuite/BoostSockStream/BoostSegmentationSockStreamAsynchronousTesting.cpp
aac9ae4cba0d71aae332efa2017d87ac2df6ba6c
[ "BSD-3-Clause" ]
permissive
WuyangPeng/Engine
d5d81fd4ec18795679ce99552ab9809f3b205409
738fde5660449e87ccd4f4878f7bf2a443ae9f1f
refs/heads/master
2023-08-17T17:01:41.765963
2023-08-16T07:27:05
2023-08-16T07:27:05
246,266,843
10
0
null
null
null
null
GB18030
C++
false
false
7,800
cpp
/// Copyright (c) 2010-2023 /// Threading Core Render Engine /// /// 作者:彭武阳,彭晔恩,彭晔泽 /// 联系作者:94458936@qq.com /// /// 标准:std:c++20 /// 引擎测试版本:0.9.0.8 (2023/05/18 16:11) #include "BoostSegmentationSockStreamAsynchronousTesting.h" #include "CoreTools/Helper/AssertMacro.h" #include "CoreTools/Helper/ClassInvariant/NetworkClassInvariantMacro.h" #include "CoreTools/UnitTestSuite/UnitTestDetail.h" #include "Network/Interface/SockAcceptor.h" #include "Network/Interface/SockAddress.h" #include "Network/Interface/SockConnector.h" #include "Network/Interface/SockStream.h" #include "Network/NetworkMessage/Flags/MessageLengthFlags.h" #include "Network/NetworkMessage/MessageBuffer.h" #include "Network/NetworkMessage/MessageInterface.h" #include "Network/NetworkMessage/NullMessage.h" #include "Network/NetworkTesting/InterfaceSuite/Detail/TestSocketEvent.h" #include "Network/NetworkTesting/InterfaceSuite/SingletonTestingDetail.h" #include <thread> Network::BoostSegmentationSockStreamAsynchronousTesting::BoostSegmentationSockStreamAsynchronousTesting(const OStreamShared& stream) : ParentType{ stream } { NETWORK_SELF_CLASS_IS_VALID_1; } CLASS_INVARIANT_PARENT_IS_VALID_DEFINE(Network, BoostSegmentationSockStreamAsynchronousTesting) void Network::BoostSegmentationSockStreamAsynchronousTesting::DoRunUnitTest() { ASSERT_NOT_THROW_EXCEPTION_0(CreateMessage); ASSERT_NOT_THROW_EXCEPTION_0(MainTest); ASSERT_NOT_THROW_EXCEPTION_0(DestroyMessage); } void Network::BoostSegmentationSockStreamAsynchronousTesting::MainTest() { ASSERT_NOT_THROW_EXCEPTION_2(BoostSingletonTest<ClassType>, this, &ClassType::StreamTest); } void Network::BoostSegmentationSockStreamAsynchronousTesting::StreamTest() { std::thread serverThread{ &ClassType::BoostServerThread, this }; const auto loopCount = GetTestLoopCount(); for (auto loop = 0; loop < loopCount; ++loop) { ASSERT_NOT_THROW_EXCEPTION_0(AsynchronousStreamTest); ASSERT_NOT_THROW_EXCEPTION_0(ClearOffset); } BASE_MAIN_MANAGER_SINGLETON.StopContext(); serverThread.join(); } void Network::BoostSegmentationSockStreamAsynchronousTesting::AsynchronousStreamTest() { ASSERT_NOT_THROW_EXCEPTION_0(ClientTest); ASSERT_NOT_THROW_EXCEPTION_0(ServerTest); } void Network::BoostSegmentationSockStreamAsynchronousTesting::ClientTest() { std::thread serverThread{ &ClassType::ServerThread, this }; const auto configurationStrategy = GetBoostClientConfigurationStrategy(GetRealOffset()); const auto sockStream = std::make_shared<TestingType>(configurationStrategy); ASSERT_NOT_THROW_EXCEPTION_1(ClientAsynchronousConnect, sockStream); ASSERT_NOT_THROW_EXCEPTION_1(ClientAsynchronousSend, *sockStream); ASSERT_NOT_THROW_EXCEPTION_1(ClientAsynchronousReceive, *sockStream); serverThread.join(); ASSERT_NOT_THROW_EXCEPTION_0(AddOffset); } void Network::BoostSegmentationSockStreamAsynchronousTesting::ClientAsynchronousConnect(const TestingTypeSharedPtr& sockStream) { auto configurationStrategy = GetBoostClientConfigurationStrategy(GetRealOffset()); const auto testSocketEvent = std::make_shared<TestSocketEvent>(); const auto sockAddress = make_shared<SockAddress>(configurationStrategy.GetHost(), configurationStrategy.GetPort(), configurationStrategy); SockConnector sockConnector{ configurationStrategy }; sockConnector.AsyncConnect(testSocketEvent, sockStream, sockAddress); constexpr auto connectCount = GetAsynchronousConnectTime(); for (auto i = 0; i < connectCount; ++i) { if (0 < testSocketEvent->GetAsyncConnectCount()) { break; } ASSERT_UNEQUAL_FAILURE_THROW(i + 1, connectCount, "连接服务器失败。"); } } void Network::BoostSegmentationSockStreamAsynchronousTesting::ClientAsynchronousSend(TestingType& sockStream) { const auto testSocketEvent = std::make_shared<TestSocketEvent>(); sockStream.AsyncSend(testSocketEvent, CreateMessageBuffer()); constexpr auto sendCount = GetAsynchronousSendTime(); for (auto i = 0; i < sendCount; ++i) { if (0 < testSocketEvent->GetAsyncSendCount()) { break; } ASSERT_UNEQUAL_FAILURE_THROW(i + 1, sendCount, "发送消息失败。"); } } void Network::BoostSegmentationSockStreamAsynchronousTesting::ClientAsynchronousReceive(TestingType& sockStream) { const auto configurationStrategy = GetBoostClientConfigurationStrategy(GetRealOffset()); const auto messageBuffer = std::make_shared<MessageBuffer>(BuffBlockSize::Size512, 0, configurationStrategy.GetParserStrategy()); const auto testSocketEvent = std::make_shared<TestSocketEvent>(); sockStream.AsyncReceive(testSocketEvent, messageBuffer); constexpr auto receiveCount = GetAsynchronousReceiveTime(); for (auto i = 0; i < receiveCount; ++i) { if (0 < testSocketEvent->GetAsyncReceiveCount()) { break; } ASSERT_UNEQUAL(i + 1, receiveCount); } VerificationMessageBuffer(*messageBuffer); } void Network::BoostSegmentationSockStreamAsynchronousTesting::ServerTest() { std::thread clientThread{ &ClassType::ClientThread, this }; const auto configurationStrategy = GetBoostServerConfigurationStrategy(GetRealOffset()); const auto sockStream = std::make_shared<TestingType>(configurationStrategy); ASSERT_NOT_THROW_EXCEPTION_1(ServerAsynchronousAcceptor, sockStream); ASSERT_NOT_THROW_EXCEPTION_1(ServerAsynchronousReceive, *sockStream); ASSERT_NOT_THROW_EXCEPTION_1(ServerAsynchronousSend, *sockStream); clientThread.join(); ASSERT_NOT_THROW_EXCEPTION_0(AddOffset); } void Network::BoostSegmentationSockStreamAsynchronousTesting::ServerAsynchronousAcceptor(const TestingTypeSharedPtr& sockStream) { auto configurationStrategy = GetBoostServerConfigurationStrategy(GetRealOffset()); SockAcceptor sockAcceptor{ configurationStrategy }; const auto testSocketEvent = std::make_shared<TestSocketEvent>(); sockAcceptor.AsyncAccept(testSocketEvent, sockStream); constexpr auto acceptCount = GetAsynchronousAcceptTime(); for (auto i = 0; i < acceptCount; ++i) { if (0 < testSocketEvent->GetAsyncAcceptorCount()) { break; } ASSERT_UNEQUAL_FAILURE_THROW(i + 1, acceptCount, "等待客户端连接失败。"); } } void Network::BoostSegmentationSockStreamAsynchronousTesting::ServerAsynchronousReceive(TestingType& sockStream) { const auto configurationStrategy = GetBoostServerConfigurationStrategy(GetRealOffset()); const auto messageBuffer = std::make_shared<MessageBuffer>(BuffBlockSize::Size512, 0, configurationStrategy.GetParserStrategy()); const auto testSocketEvent = std::make_shared<TestSocketEvent>(); sockStream.AsyncReceive(testSocketEvent, messageBuffer); constexpr auto receiveCount = GetAsynchronousReceiveTime(); for (auto i = 0; i < receiveCount; ++i) { if (0 < testSocketEvent->GetAsyncReceiveCount()) { break; } ASSERT_UNEQUAL_FAILURE_THROW(i + 1, receiveCount, "接收消息失败。"); } VerificationMessageBuffer(*messageBuffer); } void Network::BoostSegmentationSockStreamAsynchronousTesting::ServerAsynchronousSend(TestingType& sockStream) { const auto testSocketEvent = std::make_shared<TestSocketEvent>(); sockStream.AsyncSend(testSocketEvent, CreateMessageBuffer()); constexpr auto sendCount = GetAsynchronousSendTime(); for (auto i = 0; i < sendCount; ++i) { if (0 < testSocketEvent->GetAsyncSendCount()) { break; } ASSERT_UNEQUAL(i + 1, sendCount); } }
[ "94458936@qq.com" ]
94458936@qq.com
a9cfaaf21ced8adf4680b87c89ef94ab0a518e4f
ef089b84ac007207a393acbf8daa013870d555b9
/main.cpp
dc95d3400ece4d49b652f2077764d026c09d2092
[]
no_license
dwes7/bull_cow_game
9bf9d6afae1025c47fea518026e10ff63440b34b
8cceb9c95dc8e3f8b4df084218e8ddf60ef4a2aa
refs/heads/main
2022-12-29T17:14:46.138669
2017-09-22T21:08:27
2017-09-22T21:08:27
304,414,369
0
0
null
null
null
null
UTF-8
C++
false
false
4,246
cpp
/* This is the consol executable, that makes use of the BullCow class. THis acts as the view of the MVC pattern, and is responsible for all user interaction. For game logic see the FBullCowGame class. */ #pragma once #include "stdafx.h" #include <iostream> #include <string> #include "FBullCowGame.h" // Changing type names to be more inline with Epic coding standard using FText = std::string; // Function prototypes declarations void PrintIntro(); void PlayGame(); FText GetValidGuess(); bool AskToPlayAgain(); void PrintGameSumamry(); // instantiate a new game FBullCowGame BCGame; /* The entry point for our application.*/ int32 main() { bool KeepPlaying = false; do { PrintIntro(); PlayGame(); KeepPlaying = AskToPlayAgain(); // Reset the game if user chooses to keep playing if (KeepPlaying) { BCGame.Reset(); } } while (KeepPlaying); // Tell user what hidden word was std::cout << "The hidden word was " << "\"" << BCGame.GetHiddenWord() << "\"." << std::endl; return 0; } /* PlayGame is a void function with no input parameters. It's main function is to begin the game-play loop and give information to the user about their inputs via BCGame.SunmitValidGuess(). At the end of game a summary of the game is then printed to the user.*/ void PlayGame() { int32 MaxTries = BCGame.GetMaxTries(); std::cout << "You have " << MaxTries << " tries to guess." << std::endl; // loop asking for guess while the game is NOT wone // and there are still tries remaining while (!BCGame.IsGameWon() && BCGame.GetCurrentTry() <= MaxTries) { FText CurrentGuess = GetValidGuess(); // Submit valid guess to the game FBullCowCount BullCowCount = BCGame.SubmitVaidGuess(CurrentGuess); // print number of bulls and cows std::cout << "Bulls = " << BullCowCount.Bulls; std::cout << ". Cows = " << BullCowCount.Cows << "\n\n"; } PrintGameSumamry(); return; } /* PrintGameSummary is a void function with no input parameters. This functions simply prints a summary of the game depending on if the game was won or no.*/ void PrintGameSumamry() { if (BCGame.IsGameWon()) { std::cout << "Great job, you won the game! The word was" << BCGame.GetHiddenWord() << std::endl; } else { std::cout << "You lose. Better luck next time.\n"; } } /* GetValidGuess() returns a FText (std::string) and has no input parameters. This function is meant to check if user input is a valid guess to the hidden word and give useful feedback on how to input a valid word. */ FText GetValidGuess() { // Initialize Status as invaid to enter the do-while loop EGuessStatus Status = EGuessStatus::Invalid_Status; FText Guess = ""; do { // get a guess from the player std::cout << "Try " << BCGame.GetCurrentTry() << " out of " << BCGame.GetMaxTries() << ". Enter your guess: "; std::cin >> Guess; // Check Validity of guess Status = BCGame.CheckGuessValidity(Guess); switch (Status) { case EGuessStatus::Wrong_Length: std::cout << "Please enter a " << BCGame.GetHiddenWordLength() << " letter word.\n"; break; case EGuessStatus::Not_Isogram: std::cout << "Please enter a word without repeating letters.\n"; break; case EGuessStatus::Not_Lowercase: std::cout << "Please enter a word with all lowercase letters.\n"; break; default: // assuming the guess is valid break; } std::cout << std::endl; } while (Status != EGuessStatus::OK); // keep looping until we get no errors return Guess; } /*AskToPlayAgain() returns a boolean and has no input parameters. This functions asks if the player would like to continue playing with a different word and returns the response. */ bool AskToPlayAgain() { std::cout << "Do you wish to play again with a different hidden word (y/n)?\n"; FText Response = ""; std::cin >> Response; return (Response[0] == 'Y' || Response[0] == 'y'); } /* PrintIntro() returns void and has no input parameters. This function introduces user to the game and tells user how many letters are in the hidden word.*/ void PrintIntro() { std::cout << "Welcome to Bulls and Cows, a fun word game.\n"; std::cout << "Can you guess the " << BCGame.GetHiddenWordLength(); std::cout << " letter isogram I'm thinking of?\n"; std::cout << std::endl; return; }
[ "dwestley.1992@gmail.com" ]
dwestley.1992@gmail.com
1a3753aad069c8b838d952998235e002bdbde05e
fe91ffa11707887e4cdddde8f386a8c8e724aa58
/fuchsia/base/context_provider_test_connector.cc
28d6d2eeb7377301ed573fa75e08c069fb31032a
[ "BSD-3-Clause" ]
permissive
akshaymarch7/chromium
78baac2b45526031846ccbaeca96c639d1d60ace
d273c844a313b1e527dec0d59ce70c95fd2bd458
refs/heads/master
2023-02-26T23:48:03.686055
2020-04-15T01:20:07
2020-04-15T01:20:07
255,778,651
2
1
BSD-3-Clause
2020-04-15T02:04:56
2020-04-15T02:04:55
null
UTF-8
C++
false
false
2,448
cc
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "fuchsia/base/context_provider_test_connector.h" #include <unistd.h> #include <fuchsia/sys/cpp/fidl.h> #include <lib/fdio/directory.h> #include <lib/sys/cpp/component_context.h> #include <zircon/processargs.h> #include <utility> #include "base/fuchsia/default_context.h" #include "base/fuchsia/fuchsia_logging.h" #include "base/logging.h" #include "base/strings/strcat.h" #include "fuchsia/base/release_channel.h" namespace cr_fuchsia { fidl::InterfaceHandle<fuchsia::io::Directory> StartWebEngineForTests( fidl::InterfaceRequest<fuchsia::sys::ComponentController> component_controller_request, const base::CommandLine& command_line) { fuchsia::sys::LaunchInfo launch_info; launch_info.url = base::StrCat({"fuchsia-pkg://fuchsia.com/web_engine", BUILDFLAG(FUCHSIA_RELEASE_CHANNEL_SUFFIX), "#meta/context_provider.cmx"}); launch_info.arguments = command_line.argv(); // Clone stderr from the current process to WebEngine and ask it to // redirects all logs to stderr. launch_info.err = fuchsia::sys::FileDescriptor::New(); launch_info.err->type0 = PA_FD; zx_status_t status = fdio_fd_clone( STDERR_FILENO, launch_info.err->handle0.reset_and_get_address()); ZX_CHECK(status == ZX_OK, status); launch_info.arguments->push_back("--enable-logging=stderr"); fidl::InterfaceHandle<fuchsia::io::Directory> web_engine_services_dir; launch_info.directory_request = web_engine_services_dir.NewRequest().TakeChannel(); fuchsia::sys::LauncherPtr launcher; base::fuchsia::ComponentContextForCurrentProcess()->svc()->Connect( launcher.NewRequest()); launcher->CreateComponent(std::move(launch_info), std::move(component_controller_request)); return web_engine_services_dir; } fuchsia::web::ContextProviderPtr ConnectContextProvider( fidl::InterfaceRequest<fuchsia::sys::ComponentController> component_controller_request, const base::CommandLine& command_line) { sys::ServiceDirectory web_engine_service_dir(StartWebEngineForTests( std::move(component_controller_request), command_line)); return web_engine_service_dir.Connect<fuchsia::web::ContextProvider>(); } } // namespace cr_fuchsia
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
e9e65650c288cac45398824faecef71905e9588c
f7a3a1a0bd6ac5d51af73e5d53ba5f50c2847690
/RST_Summer_Code/TesterTab/goWSPos.h
999414788996826839e22fb3f2d2607065260886
[]
no_license
ana-GT/Lucy
890d60876aca028c051b928bd49bf93092151058
819d2c7210c920ea0d0c1f549bb7df022260bb3f
refs/heads/master
2021-01-22T05:28:22.021489
2011-12-12T23:18:45
2011-12-12T23:18:45
2,887,317
0
0
null
null
null
null
UTF-8
C++
false
false
1,647
h
/** * @file goWSPos.h * @brief Straight path to the goal, if feasible, not taking into account obstacles */ #ifndef GO_WS_POS_H #define GO_WS_POS_H #include <vector> #include <list> #include <stdlib.h> #include <stdio.h> #include <ctime> #include <Eigen/Core> #include <Tools/World.h> #include <Tools/Link.h> #include <Tools/kdtree/kdtree.h> #include <robina_kin/robina_kin.h> #include "utilities.h" /** * @class goWSPos */ class goWSPos { public: EIGEN_MAKE_ALIGNED_OPERATOR_NEW goWSPos(); void initialize( World* _world, int _robot_ID, std::vector<int> _links_ID, Eigen::Transform<double, 3, Eigen::Affine> _TWBase, Eigen::Transform<double, 3, Eigen::Affine> _Tee ); World* world; int robot_ID; std::vector<int> links_ID; int ndim; double stepSize; int activeNode; std::vector<int>configVector; std::vector<int>parentVector; Eigen::VectorXd startConfig; Eigen::VectorXd goalPosition; Eigen::Transform<double, 3, Eigen::Affine> goalPose; Eigen::Transform<double, 3, Eigen::Affine> TWBase; Eigen::Transform<double, 3, Eigen::Affine> Tee; double goalThresh; int maxTrials; /** Functions */ void cleanup(); double wsDistance( Eigen::VectorXd q ); bool straightPath( const Eigen::VectorXd &startConfig, const Eigen::Transform<double, 3, Eigen::Affine> &goalPose, std::vector<Eigen::VectorXd> &path ); Eigen::VectorXd getWSConfig( const Eigen::VectorXd &_nearConfig, const Eigen::VectorXd &_goalConfig, double delta ); }; #endif /** GO_WS_POS_H*/
[ "ahuaman3@gatech.edu" ]
ahuaman3@gatech.edu
c71f590868675ffa8b67d1baa26eb618a98a7d8c
efada36ab14980259676b49fadb5d91edece06df
/server/src/control/controlsession.cpp
fb699ee737b6cd38c5eb93f368dc83c5dc32beb4
[]
no_license
digideskio/qbtd
297568a061fa87d6cb486847d26731f8a5e97ef9
eafefffa5631fbc4347da8245f940d4f98526336
refs/heads/master
2021-01-11T03:23:44.433252
2012-11-12T04:41:24
2012-11-12T04:41:24
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,075
cpp
#include "controlsession_p.hpp" #include "qbtd/serversession.hpp" #include "qbtd/jsonerror.hpp" #include <QtCore/QtDebug> using qbtd::control::ControlSession; using qbtd::control::ServerSession; using qbtd::exception::JsonError; ControlSession::Private::Private( ServerSession * session, ControlSession * host ): host( host ), session( session ), commands( new CommandHandler( this ) ) { this->session->setParent( this ); this->host->connect( this->session, SIGNAL( disconnected() ), SIGNAL( disconnected() ) ); this->connect( this->commands, SIGNAL( notify( const QString &, const QVariant & ) ), SLOT( onNotify( const QString &, const QVariant & ) ) ); this->connect( this->session, SIGNAL( requested( int, const QString &, const QVariant & ) ), SLOT( onRequested( int, const QString &, const QVariant & ) ) ); } ControlSession::Private::~Private() { this->session->deleteLater(); } void ControlSession::Private::onNotify( const QString & event, const QVariant & data ) { qDebug() << event << data; try { this->session->notify( event, data ); } catch( JsonError & e ) { this->session->notify( QString( "critical" ), QString( "server can not encode response" ) ); } } void ControlSession::Private::onRequested( int id, const QString & command, const QVariant & args ) { qDebug() << id << command << args; auto response = this->commands->execute( command, args ); try { this->session->response( id, response.first, response.second ); } catch( JsonError & e ) { this->session->response( id, false, QString( "server can not encode response" ) ); } } ControlSession::ControlSession( ServerSession * session, QObject * parent ): QObject( parent ), p_( new Private( session, this ) ) { this->connect( this->p_->commands, SIGNAL( broadcast( const QString &, const QVariant & ) ), SIGNAL( broadcastRequired( const QString &, const QVariant & ) ) ); } void ControlSession::close() { this->p_->session->disconnectFromClient(); } void ControlSession::notify( const QString & event, const QVariant & data ) const { this->p_->onNotify( event, data ); }
[ "legnaleurc@gmail.com" ]
legnaleurc@gmail.com
0df831f76dff9f99914cb30bdecbd0668b99d57d
12cade39a8d70467785ef5d4d09b5bd8a5bdbc79
/src/ace_crc/crc8_nibble.hpp
f8a295d30a2d4bf4bacc6c12ad40ec09f5c12e87
[ "MIT" ]
permissive
JohnOH/AceCRC
cd4fc35d3b81aeb39c6222fbd32e6a67dac92682
3bf923f2afbdc0a99f1f4f6587a0eb7ffc178937
refs/heads/master
2023-01-25T00:32:28.129158
2020-12-04T06:48:18
2020-12-04T06:48:18
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,938
hpp
/** * \file * Functions and types for CRC checks. * * Generated on Thu Dec 3 21:05:47 2020 * by pycrc v0.9.2, https://pycrc.org * using the configuration: * - Width = 8 * - Poly = 0x07 * - XorIn = 0x00 * - ReflectIn = False * - XorOut = 0x00 * - ReflectOut = False * - Algorithm = table-driven * * This file defines the functions crc_init(), crc_update() and crc_finalize(). * * The crc_init() function returns the inital \c crc value and must be called * before the first call to crc_update(). * Similarly, the crc_finalize() function must be called after the last call * to crc_update(), before the \c crc is being used. * is being used. * * The crc_update() function can be called any number of times (including zero * times) in between the crc_init() and crc_finalize() calls. * * This pseudo-code shows an example usage of the API: * \code{.c} * crc_t crc; * unsigned char data[MAX_DATA_LEN]; * size_t data_len; * * crc = crc_init(); * while ((data_len = read_data(data, MAX_DATA_LEN)) > 0) { * crc = crc_update(crc, data, data_len); * } * crc = crc_finalize(crc); * \endcode * * Auto converted to Arduino C++ on Thu Dec 3 21:05:47 PST 2020 * by AceCRC (https://github.com/bxparks/AceCRC). * DO NOT EDIT */ #ifndef ACE_CRC_CRC8_NIBBLE_HPP #define ACE_CRC_CRC8_NIBBLE_HPP #include <stdlib.h> #include <stdint.h> namespace ace_crc { namespace crc8_nibble { /** * The definition of the used algorithm. * * This is not used anywhere in the generated code, but it may be used by the * application code to call algorithm-specific code, if desired. */ const uint8_t CRC_ALGO_TABLE_DRIVEN = 1; /** * The type of the CRC values. * * This type must be big enough to contain at least 8 bits. */ typedef uint8_t crc_t; /** * Calculate the initial crc value. * * \return The initial crc value. */ inline crc_t crc_init(void) { return 0x00; } /** * Update the crc value with new data. * * \param[in] crc The current crc value. * \param[in] data Pointer to a buffer of \a data_len bytes. * \param[in] data_len Number of bytes in the \a data buffer. * \return The updated crc value. */ crc_t crc_update(crc_t crc, const void *data, size_t data_len); /** * Calculate the final crc value. * * \param[in] crc The current crc value. * \return The final crc value. */ inline crc_t crc_finalize(crc_t crc) { return crc; } /** * Calculate the crc in one-shot. * This is a convenience function added by AceCRC. * * \param[in] data Pointer to a buffer of \a data_len bytes. * \param[in] data_len Number of bytes in the \a data buffer. */ inline crc_t crc_calculate(const void *data, size_t data_len) { crc_t crc = crc_init(); crc = crc_update(crc, data, data_len); return crc_finalize(crc); } } // crc8_nibble } // ace_crc #endif /* ACE_CRC_CRC8_NIBBLE_HPP */
[ "brian@xparks.net" ]
brian@xparks.net
3d2fe2e6231696c096ac37fd05de66a7edd3b8c2
1561ec7b75d391360f2a50d7672a6aa7457a3614
/parser.hpp
adc323121514149d4efdf38d7c7eb896706eea55
[]
no_license
isLiuHao/TritonHttp
21b33064e87a7950bcc2f6ba6dfbff3f7230d8df
1c4b509394871d0dc24671b4ee5b49aaf96d3872
refs/heads/master
2023-05-05T08:26:49.156050
2021-05-24T12:48:50
2021-05-24T12:48:50
368,872,525
0
0
null
null
null
null
UTF-8
C++
false
false
1,618
hpp
/****************************************************************************************** Project: UCSD CSE291C Course Project: Web Server for TritonHTTP Parser.hpp: header file Verify the header format and parse the request into valid request data structure *******************************************************************************************/ #ifndef PARSER_HPP #define PARSER_HPP #include <string> #include <vector> #include <queue> #include <cstdint> #include <cstring> #include <iostream> #include <vector> #include "httpd.h" using namespace std; typedef struct HttpInstruction_t { // DEFINE YOUR DATA STRUCTURE HERE /* Noted: the only correct method is GET, therefore no instruction is indicated here*/ string url; float http_ver; string host; string connection; } HttpInstruction; class Parser { private: queue<HttpInstruction> reqQ; HttpInstruction _req; bool hasInstr; bool _isTerminated; vector<string> parseHelper(string insstr, char del); public: //构造函数,初始化私有字段 Parser(); /* 将字符串解析为有效的header 返回值:如果字符串包含有效header,则返回true;否则,返回false。否则为假 */ bool parse(string insstr); //返回当前解析的http headers HttpInstruction getReqHeader(){ if(!reqQ.empty()){ HttpInstruction res = reqQ.front(); reqQ.pop(); return res; } return _req; } /* Return if connection needs to be terminated by client */ bool isTerminated(){ return _isTerminated; } bool isInstr(){ return !reqQ.empty(); } }; #endif // CALCPARSER_HPP
[ "603400054@qq.com" ]
603400054@qq.com
1202e6fca3d843b8aed04b32bc0364a9ddaa2397
ba85aa1d20c0fe7f089a778acb362dc90c2ed938
/gps_handler.cpp
2e7fa1508970d18badcefa392c11115b2ce0f2d6
[]
no_license
jbm9/ArdX25
747b276d808690c6bfe32c8d1a78b124ccb24503
a72eb6ac40de44d466d9fb0648d286f6336ef72f
refs/heads/master
2021-01-16T21:52:37.706021
2012-03-26T03:13:29
2012-03-26T03:13:29
null
0
0
null
null
null
null
UTF-8
C++
false
false
4,272
cpp
/* * * gps_handler.cpp: GPS parser/storage utility class * * Copyright (c) 2012 Applied Platonics, LLC * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; version 2 only. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "gps_handler.h" GPSHandler::GPSHandler() { memcpy(expression, "$GPGGA", 6); bufpos = 0; state = 0; lock = false; hhmm = -1; lat_whole = 500; lat_frac = -1; lon_whole = 500; lon_frac = -1; altitude = -99999; } /** * Submit the given character as a "seen" byte in the serial stream. * * This module is a little inside out: it accumulates the GPS * sentences itself, in its buffer, then returns true from here when a * complete GPGGA sentence is in the buf variable. * * @param[in] x The latest byte read from serial * * @returns True if there's a GPGGA sentence in this.buf, false otherwise. */ bool GPSHandler::saw(uint8_t x) { bool retval = false; if (state < 6) { if (x == expression[state]) { state++; buf[bufpos] = x; bufpos++; } else { state = 0; bufpos = 0; } return false; } if (bufpos >= GPSHANDLER_BUFLEN-1 || '$' == x || '\n' == x) { // got terminus if (bufpos > 6) { buf[bufpos] = '\0'; parse_gpgga((char *)buf); retval = true; } state = ('$' == x); // 0 on newline, 1 on $ } else { buf[bufpos] = x; bufpos++; } return retval; } /** * Extracts the values we care about from the given GPGGA sentence. * * Note that this method doesn't check the checksum or anything else * helpful; it simply parses the data down to the values specified. * * @param[in] gpgga A NUL-terminated buffer containing our $GPGGA * sentence. */ void GPSHandler::parse_gpgga(char *gpgga) { uint16_t new_hhmm; uint16_t new_lat_whole; uint8_t new_lat_frac; uint16_t new_lon_whole; uint8_t new_lon_frac; uint32_t new_altitude; char q; if (memcmp(gpgga, "$GPGGA", strlen("GPGGA"))) { return; } // $GPGGA,021741,3745.5748,N,12224.9648,W,2,09,1.0,20.2,M,-32.1,M,,*48 #define ADVANCE_PAST(ptr,c) { while ((*(ptr)) != (c) && *(ptr)) ptr++; if (!*ptr) return; ptr++;} ADVANCE_PAST(gpgga, ','); // $GPGGA, // Extract the hour/minute timestamp; crap all over the seconds' // tens place to truncate atoi's return value to a manageable 16b q = *(gpgga+4); *(gpgga+4) = '|'; new_hhmm = atoi(gpgga); *(gpgga+4) = q; ADVANCE_PAST(gpgga, ','); // timestamp // Extract latitude, with sign new_lat_whole = atoi(gpgga); ADVANCE_PAST(gpgga, '.'); q = *(gpgga+2); *(gpgga+2) = '\0'; new_lat_frac = atoi(gpgga); *(gpgga+2) = q; ADVANCE_PAST(gpgga, ','); if (*gpgga == 'S') new_lat_whole *= -1; ADVANCE_PAST(gpgga, ','); // Extract longitude, with sign new_lon_whole = atoi(gpgga); ADVANCE_PAST(gpgga, '.'); q = *(gpgga+2); *(gpgga+2) = '\0'; new_lon_frac = atoi(gpgga); *(gpgga+2) = q; ADVANCE_PAST(gpgga, ','); if (*gpgga == 'W') new_lon_whole *= -1; ADVANCE_PAST(gpgga, ','); // Fix information lock = (*gpgga != '0'); ADVANCE_PAST(gpgga, ','); // now at number of satellites; skipped. // number_of_satellites = atoi(gpgga); ADVANCE_PAST(gpgga, ','); // horizontal dilution of precision stat ADVANCE_PAST(gpgga, ','); // altitude new_altitude = atoi(gpgga); // XXX Ignores fractions ADVANCE_PAST(gpgga, ','); // Now at the 'units' field, should be 'M' if (*gpgga != 'M') return; // Don't care about the remainder of the message. // commit the new position in a single transaction lat_whole = new_lat_whole; lat_frac = new_lat_frac; lon_whole = new_lon_whole; lon_frac = new_lon_frac; altitude = new_altitude; hhmm = new_hhmm; #undef ADVANCE_PAST }
[ "josh@joshisanerd.com" ]
josh@joshisanerd.com
7bfd2d97bbea5b0ce3e8e152b43e92b7091303d1
198873b9f5d6a3f6bd26e504408763f2bb847d3e
/Strings/89. RearrangeAdjChars.cpp
077c4eb959af23d604e5a3b43e2dbea80faf41a7
[]
no_license
Nimish-Jain/DSA-Practice
708ad008919fef29b43d9288fd3d8c368876342a
893e3e92ba816d13071de4a34bb2795bf75dd18d
refs/heads/master
2023-06-09T20:39:32.343958
2021-07-04T14:43:13
2021-07-04T14:43:13
325,039,881
0
0
null
null
null
null
UTF-8
C++
false
false
474
cpp
//Code :: Nimish Jain #include<bits/stdc++.h> using namespace std; int32_t main() { #ifndef ONLINE_JUDGE freopen("in.txt", "r", stdin); freopen("out.txt", "w", stdout); #endif int t; cin >> t; while (t--) { string s; cin >> s; int n = s.length(); unordered_map<int, int> m; int max = 0; for (int i = 0; i < n; i++) { m[s[i]]++; max = max(max, m[s[i]]); } if (max <= n - max + 1) cout << 1 << endl; else cout << 0 << endl; } return 0; }
[ "nimishjain00@gmail.com" ]
nimishjain00@gmail.com
92285ebf24c8d8eee469599e7c35afaa67a1df73
7cdf43c2e21448f5175a732ed69432244d310be5
/arduino/libraries/RedBear_Duo/examples/04.Grove/Example02/Example02.ino
2ccb0ca36c90c88da599dac648732b84cf94da86
[]
no_license
mdyoungman/STM32-Arduino
a55d64c255f6401b8a86356322127468f2cd76f7
10a2e2fc1f9674ceba3bee0ca54350b477c2e56e
refs/heads/master
2020-04-05T23:27:37.558273
2016-02-04T02:15:41
2016-02-04T02:15:41
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,342
ino
// ----------------------------------- // Example - 02: Display the Analog Value // ----------------------------------- #include "application.h" #include "TM1637.h" //SYSTEM_MODE(AUTOMATIC);//connect to cloud SYSTEM_MODE(MANUAL);//do not connect to cloud // name the pins #define ROTARYPIN A0 #define CLK D4 #define DIO D5 void dispNum(unsigned int num); TM1637 tm1637(CLK,DIO); // This routine runs only once upon reset void setup() { tm1637.set(); // cofig TM1637 tm1637.init(); // clear the display } // This routine loops forever void loop() { int analogValue = analogRead(ROTARYPIN); // read rotary pin int voltage = (long)3300 * analogValue / 4096; // calculate the voltage dispNum(voltage); // display the voltage delay(200);//this delay on user manual is 50ms, sometimes it may result in flicker on Grove - 4-Digit Display. long delay time will reduce the reduce this appearance. } //display a integer value less then 10000 void dispNum(unsigned int num) { int8_t TimeDisp[] = {0x01,0x02,0x03,0x04}; // limit the maximum number if(num > 9999) num = 9999; TimeDisp[0] = num / 1000; TimeDisp[1] = num % 1000 / 100; TimeDisp[2] = num % 100 / 10; TimeDisp[3] = num % 10; tm1637.display(TimeDisp); }
[ "jianxing@redbear.cc" ]
jianxing@redbear.cc
acd1b888d170d06f6a551ecdb6df8c799f07c485
2bec5a52ce1fb3266e72f8fbeb5226b025584a16
/parzer/inst/testfiles/pz_parse_lat/pz_parse_lat_DeepState_TestHarness.cpp
aa0d33e8ab71dc0465a485b9ba7094b2e9e2815b
[ "MIT" ]
permissive
akhikolla/InformationHouse
4e45b11df18dee47519e917fcf0a869a77661fce
c0daab1e3f2827fd08aa5c31127fadae3f001948
refs/heads/master
2023-02-12T19:00:20.752555
2020-12-31T20:59:23
2020-12-31T20:59:23
325,589,503
9
2
null
null
null
null
UTF-8
C++
false
false
684
cpp
#include <fstream> #include <RInside.h> #include <iostream> #include <RcppDeepState.h> #include <qs.h> #include <DeepState.hpp> NumericVector pz_parse_lat(CharacterVector x); TEST(parzer_deepstate_test,pz_parse_lat_test){ RInside R; std::cout << "input starts" << std::endl; CharacterVector x = RcppDeepState_CharacterVector(); qs::c_qsave(x,"/home/akhila/fuzzer_packages/fuzzedpackages/parzer/inst/testfiles/pz_parse_lat/inputs/x.qs", "high", "zstd", 1, 15, true, 1); std::cout << "x values: "<< x << std::endl; std::cout << "input ends" << std::endl; try{ pz_parse_lat(x); } catch(Rcpp::exception& e){ std::cout<<"Exception Handled"<<std::endl; } }
[ "akhilakollasrinu424jf@gmail.com" ]
akhilakollasrinu424jf@gmail.com
0462d9dfcfbb99ff8914d2bd2a14ecd28b7e6737
695d24f3778e942b534eeb890f901e9139b774ca
/genericmapmapper.cpp
ca7b6759f99dcf4335fb0f449b49f399ccb039a0
[]
no_license
mdirks/mygui
a94d0c5d1301417525fc902a854e256693bdcc3c
5b6df7d32e8807cc08512179e539b8902be787b7
refs/heads/master
2021-05-09T10:22:58.755543
2018-02-04T12:17:19
2018-02-04T12:17:19
118,960,382
0
0
null
null
null
null
UTF-8
C++
false
false
3,340
cpp
// // C++ Implementation: GenericMapmapper // // Description: // // // Author: Marcus Dirks <mopp@suse>, (C) 2005 // // Copyright: See COPYING file that comes with this distribution // // #include "genericmapmapper.h" #include <utils/utils.h> #include "genericmap.h" #include <persistence/database.h> #include <repository/urlproperty.h> #include <mapping/mappingcontroler.h> GenericMapmapper* GenericMapmapper::instance=0; GenericMapmapper* GenericMapmapper::getInstance() { if(!instance){ instance=new GenericMapmapper(); } return instance; } GenericMapmapper::GenericMapmapper() { version = "0.3"; columns = new string[0]; columnTypes = new string[0]; asc_GraphicsItems = new Association<GenericMap, PObjectGraphicsItem>("map_item","map_id","item_id","PObjectGraphicsItem", &GenericMap::addToGraphicsItems, &GenericMap::deleteFromGraphicsItems); mapAssociations["GraphicsItems"] = asc_GraphicsItems; registerAssociation( asc_GraphicsItems); MappingControler::getInstance()->registerPersistentClass(this); Repository::getInstance()->addRepositoryEntry(getRepositoryEntry()); } GenericMapmapper::~GenericMapmapper(){} PObject* GenericMapmapper::createNewObject() { return new GenericMap(); } GenericMap* GenericMapmapper::create() { return (GenericMap*) AbstractMapper::create( GenericMapmapper::getInstance() ); } string GenericMapmapper::getTableName() { return string("genericmap"); } string GenericMapmapper::getClassName() { return string("GenericMap"); } string* GenericMapmapper::getColumnTypes() { return columnTypes; } string* GenericMapmapper::getColumns() { return columns; } int GenericMapmapper::getColumnCount() { return 0; } string* GenericMapmapper::getValues(PObject *realSubject) { string *values = new string[0]; GenericMap *o = (GenericMap*) realSubject; return values; } void GenericMapmapper::save(){ qWarning("GenericMap: save() not implemented"); } void GenericMapmapper::save(PObject *realSubject) { GenericMap *o = (GenericMap*) realSubject; Database *db = Database::getInstance(); db->save(realSubject); asc_GraphicsItems -> save(realSubject, o->getGraphicsItems() ); } void GenericMapmapper::init(PObject* inito, Variant *res) { GenericMap *o = (GenericMap*) inito; inito->init(); } list<GenericMap *>*GenericMapmapper::find() { return (list <GenericMap*>*) Database::getInstance()->getAll(this); } list<PObjectGraphicsItem*> * GenericMapmapper::findGraphicsItems(int pri_id) { return asc_GraphicsItems -> findAssociates( pri_id ); } list<PObjectGraphicsItem*> * GenericMapmapper::findGraphicsItems(int pri_id,string prop,string value) { return asc_GraphicsItems -> findAssociates( pri_id,prop,value); } RepositoryEntry* GenericMapmapper::getRepositoryEntry() { RepositoryEntry* entry = new RepositoryEntryImpl( "GenericMap" ); entry->addProperty( new StringProperty<GenericMap>("Name", "string", &GenericMap::getName, &GenericMap::setName, false) ); entry->addProperty( new CollectionPropertyImpl<PObjectGraphicsItem,GenericMap>( "GraphicsItems" , "PObjectGraphicsItem", &GenericMap::getGraphicsItems, &GenericMap::addToGraphicsItems, &GenericMap::deleteFromGraphicsItems ) ); return entry; }
[ "md@home.de" ]
md@home.de
955db41b7c41809420bf4a04ee55124830076da8
6c672285c6b0168b21a233260dcc3bbbe8f5160b
/src/qt/bitcoinunits.cpp
11be6165b15a54bed4715cc29c9f834deaf3d7ce
[ "MIT" ]
permissive
ok520203/GreenRightCoin
82bac73f6bfcc69026080328c59e92d1cee84500
425f09fd3e5ef11a079d8badbce696978da6e642
refs/heads/master
2022-11-30T20:57:47.771518
2020-08-18T00:59:44
2020-08-18T00:59:44
288,320,424
0
1
MIT
2020-08-20T13:26:19
2020-08-18T00:59:55
C++
WINDOWS-1252
C++
false
false
5,629
cpp
// Copyright (c) 2011-2016 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "bitcoinunits.h" #include "primitives/transaction.h" #include <QStringList> BitcoinUnits::BitcoinUnits(QObject *parent): QAbstractListModel(parent), unitlist(availableUnits()) { } QList<BitcoinUnits::Unit> BitcoinUnits::availableUnits() { QList<BitcoinUnits::Unit> unitlist; unitlist.append(BTC); unitlist.append(mBTC); unitlist.append(uBTC); return unitlist; } bool BitcoinUnits::valid(int unit) { switch(unit) { case BTC: case mBTC: case uBTC: return true; default: return false; } } QString BitcoinUnits::name(int unit) { switch(unit) { case BTC: return QString("GRC"); case mBTC: return QString("mGRC"); case uBTC: return QString::fromUtf8("¥ìGRC"); default: return QString("???"); } } QString BitcoinUnits::description(int unit) { switch(unit) { case BTC: return QString("GreenRightCoins"); case mBTC: return QString("Milli-GreenRightCoins (1 / 1" THIN_SP_UTF8 "000)"); case uBTC: return QString("Micro-GreenRightCoins (1 / 1" THIN_SP_UTF8 "000" THIN_SP_UTF8 "000)"); default: return QString("???"); } } qint64 BitcoinUnits::factor(int unit) { switch(unit) { case BTC: return 100000000; case mBTC: return 100000; case uBTC: return 100; default: return 100000000; } } int BitcoinUnits::decimals(int unit) { switch(unit) { case BTC: return 8; case mBTC: return 5; case uBTC: return 2; default: return 0; } } QString BitcoinUnits::format(int unit, const CAmount& nIn, bool fPlus, SeparatorStyle separators) { // Note: not using straight sprintf here because we do NOT want // localized number formatting. if(!valid(unit)) return QString(); // Refuse to format invalid unit qint64 n = (qint64)nIn; qint64 coin = factor(unit); int num_decimals = decimals(unit); qint64 n_abs = (n > 0 ? n : -n); qint64 quotient = n_abs / coin; qint64 remainder = n_abs % coin; QString quotient_str = QString::number(quotient); QString remainder_str = QString::number(remainder).rightJustified(num_decimals, '0'); // Use SI-style thin space separators as these are locale independent and can't be // confused with the decimal marker. QChar thin_sp(THIN_SP_CP); int q_size = quotient_str.size(); if (separators == separatorAlways || (separators == separatorStandard && q_size > 4)) for (int i = 3; i < q_size; i += 3) quotient_str.insert(q_size - i, thin_sp); if (n < 0) quotient_str.insert(0, '-'); else if (fPlus && n > 0) quotient_str.insert(0, '+'); return quotient_str + QString(".") + remainder_str; } // NOTE: Using formatWithUnit in an HTML context risks wrapping // quantities at the thousands separator. More subtly, it also results // in a standard space rather than a thin space, due to a bug in Qt's // XML whitespace canonicalisation // // Please take care to use formatHtmlWithUnit instead, when // appropriate. QString BitcoinUnits::formatWithUnit(int unit, const CAmount& amount, bool plussign, SeparatorStyle separators) { return format(unit, amount, plussign, separators) + QString(" ") + name(unit); } QString BitcoinUnits::formatHtmlWithUnit(int unit, const CAmount& amount, bool plussign, SeparatorStyle separators) { QString str(formatWithUnit(unit, amount, plussign, separators)); str.replace(QChar(THIN_SP_CP), QString(THIN_SP_HTML)); return QString("<span style='white-space: nowrap;'>%1</span>").arg(str); } bool BitcoinUnits::parse(int unit, const QString &value, CAmount *val_out) { if(!valid(unit) || value.isEmpty()) return false; // Refuse to parse invalid unit or empty string int num_decimals = decimals(unit); // Ignore spaces and thin spaces when parsing QStringList parts = removeSpaces(value).split("."); if(parts.size() > 2) { return false; // More than one dot } QString whole = parts[0]; QString decimals; if(parts.size() > 1) { decimals = parts[1]; } if(decimals.size() > num_decimals) { return false; // Exceeds max precision } bool ok = false; QString str = whole + decimals.leftJustified(num_decimals, '0'); if(str.size() > 18) { return false; // Longer numbers will exceed 63 bits } CAmount retvalue(str.toLongLong(&ok)); if(val_out) { *val_out = retvalue; } return ok; } QString BitcoinUnits::getAmountColumnTitle(int unit) { QString amountTitle = QObject::tr("Amount"); if (BitcoinUnits::valid(unit)) { amountTitle += " ("+BitcoinUnits::name(unit) + ")"; } return amountTitle; } int BitcoinUnits::rowCount(const QModelIndex &parent) const { Q_UNUSED(parent); return unitlist.size(); } QVariant BitcoinUnits::data(const QModelIndex &index, int role) const { int row = index.row(); if(row >= 0 && row < unitlist.size()) { Unit unit = unitlist.at(row); switch(role) { case Qt::EditRole: case Qt::DisplayRole: return QVariant(name(unit)); case Qt::ToolTipRole: return QVariant(description(unit)); case UnitRole: return QVariant(static_cast<int>(unit)); } } return QVariant(); } CAmount BitcoinUnits::maxMoney() { return MAX_MONEY; }
[ "69827477+ok520203@users.noreply.github.com" ]
69827477+ok520203@users.noreply.github.com
d824d967f562006c570664ae4223e122341726ef
7b821efabe772942f45b2e4e0a5f919a27c47de5
/cython/test1b/mycpp.cpp
141fca1f2a3061ebb4d8c83f7554bd00e2eedff8
[ "Apache-2.0" ]
permissive
hughperkins/pub-prototyping
0d7b4bae2a0829dc8026006d2adb737f42bbe3a9
7bc1a0582e7ab8e8a7f70ade40dd1275bdfe25b6
refs/heads/master
2022-07-09T18:07:54.041518
2022-07-02T17:44:56
2022-07-02T17:44:56
92,943,709
16
3
null
null
null
null
UTF-8
C++
false
false
3,712
cpp
#include <iostream> #include <stdexcept> #include <thread> #include <chrono> using namespace std; #include "mycpp.h" void sayName( string name ) { cout << "your name is: " << name << endl; } void throwException( std::string message ) { throw runtime_error( "message was: " + message ); } MyClass::MyClass() { cout << "MyClass()" << endl; } MyClass::MyClass(int intarg) { cout << "MyClass( intarg )" << endl; } std::string MyClass::warpName( std::string inName ) { cout << "warping " << inName << " ..." << endl; return "You said " + inName; } void MyClass::longOp( int secs ) { // std::this_thread::sleep_for (std::chrono::seconds(secs)); // bizarrely, sleep is interruptible, so use infinite loop instead double sum = 3.1; if( secs == 1 ) { throw runtime_error("you chose the magic number!"); } for( int i = 1; i < 1000000000; i++ ) { sum *= i % 20; } cout << sum << endl; } float MyClass::getFloat( int *raiseException, string *message ) { *raiseException = 1; *message = "hey there!"; return 0; } float addFloats( float a, float b ) { return a + b; } void addToArray( int N, float *array, float amount ) { cout << "addToArray N=" << N << " amount=" << amount << endl; for( int i = 0; i < N; i++ ) { cout << "array[" << i << "]=" << array[i] << endl; array[i] += amount; } } void addToUCArray( int N, unsigned char *array, unsigned char amount ) { cout << "addToUCArray N=" << N << " amount=" << amount << endl; for( int i = 0; i < N; i++ ) { cout << "array[" << i << "]=" << (int)array[i] << endl; array[i] += amount; } } void addToIntArray( int N, int *array, int amount ) { cout << "addToIntArray N=" << N << " amount=" << amount << endl; for( int i = 0; i < N; i++ ) { cout << "array[" << i << "]=" << array[i] << endl; array[i] += amount; } } void callMyInterface( MyInterface *myInstance ) { cout << "instance returned: " << myInstance->getNumber() << endl; float vars[10]; myInstance->getFloats(vars); for( int i = 0; i < 10; i++ ) { cout << "vars[" << i << "]=" << vars[i] << " "; } cout << endl; } void testCallback( funcdef ccallback, int value, void *pycallback ) { int returnvalue = ccallback( value, pycallback ); cout << "mycpp.testCallback, received from python: " << returnvalue << endl; } void sleepSecs( int secs ) { // std::this_thread::sleep_for (std::chrono::seconds(secs)); // bizarrely, sleep is interruptible, so use infinite loop instead double sum = 3.1; if( secs == 1 ) { throw runtime_error("you chose the magic number!"); } for( int i = 1; i < 1000000000; i++ ) { sum *= i % 20; } cout << sum << endl; } void cySleepSecs( int secs ) { try { sleepSecs( secs ); } catch( runtime_error &e ) { raiseException( e.what() ); } } void raiseException( std::string message ) { exceptionRaised = 1; exceptionMessage = message; } //float fnRaiseException( float in, int doRaise, int *raiseException, string *message ) { float fnRaiseException( float in, int doRaise ) { if( doRaise ) { throw runtime_error("hey there!"); } else { return in + 3.5f; } } float cyFnRaiseException( float in, int doRaise ) { try { return fnRaiseException( in, doRaise ); } catch( runtime_error &e ) { raiseException( e.what() ); return 0; } } void checkException( int *wasRaised, std::string *message ) { *wasRaised = exceptionRaised; *message = exceptionMessage; } int exceptionRaised = 0; std::string exceptionMessage = "";
[ "hughperkins@gmail.com" ]
hughperkins@gmail.com
94018aa2c42b5b086b76e94b1c1fbf63ee15e7b1
c51febc209233a9160f41913d895415704d2391f
/library/ATF/LPTEXTMETRICA.hpp
17bc29996e5d0cb299dcfe9372dac0ca0cc7e7b0
[ "MIT" ]
permissive
roussukke/Yorozuya
81f81e5e759ecae02c793e65d6c3acc504091bc3
d9a44592b0714da1aebf492b64fdcb3fa072afe5
refs/heads/master
2023-07-08T03:23:00.584855
2023-06-29T08:20:25
2023-06-29T08:20:25
463,330,454
0
0
MIT
2022-02-24T23:15:01
2022-02-24T23:15:00
null
UTF-8
C++
false
false
263
hpp
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually #pragma once #include <common/common.h> #include <tagTEXTMETRICA.hpp> START_ATF_NAMESPACE typedef tagTEXTMETRICA *LPTEXTMETRICA; END_ATF_NAMESPACE
[ "b1ll.cipher@yandex.ru" ]
b1ll.cipher@yandex.ru
e640f9363d18db782be78423336860cb5380e6c4
819f0a4e38b4f54a81e1df63a94e83581fdb8bb8
/bikeblink.ino
f96230a813d253ed769ac7a3f7b1a27df85128dc
[]
no_license
BrookeDot/BikeBlink
da9c1afd01c00b636255b3387d245313cb6a647a
22dfffc1a7c2ede03ffdebdb8a03f97530ac0d29
refs/heads/master
2021-05-31T04:38:36.779561
2016-03-12T19:03:51
2016-03-12T19:26:41
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,948
ino
#include <EEPROM.h> #include <Adafruit_NeoPixel.h> #ifdef __AVR__ #include <avr/power.h> #endif #define ledPin 2 // led pin number #define maxBright 100 #define buttonPin 1 #define pixelCount 8 #define colorNumber 6 //number of values in color[] array //setting things up Adafruit_NeoPixel strip = Adafruit_NeoPixel(pixelCount, ledPin); //define our colors uint32_t red = strip.Color(maxBright, 0, 0); uint32_t blue = strip.Color(0, 0, maxBright); uint32_t green = strip.Color(0, maxBright, 0); uint32_t magenta = strip.Color(maxBright, 0, maxBright); uint32_t white = strip.Color(maxBright, maxBright, maxBright); uint32_t yellow = strip.Color(maxBright, maxBright, 0); uint32_t teal = strip.Color(0, maxBright, maxBright); //add them to an array for later use uint32_t color[] = {red, green, blue, yellow, teal, magenta}; uint8_t s; //scene uint8_t scene; uint8_t buttonState = 0; uint8_t lastState = 0; //current button state void setup() { // This is for Trinket 5V 16MHz, you can remove these three lines if you are not using a Trinket #if defined (__AVR_ATtiny85__) if (F_CPU == 16000000) clock_prescale_set(clock_div_1); #endif // End of trinket special code //see if we have a last saved valid in EEPROM if so use it if (EEPROM.length() > 1) { s = EEPROM.read(scene); } else { s = 0; } strip.begin(); strip.show(); // Initialize all pixels to 'off' pinMode(buttonPin, INPUT); } void loop() { switch (s) { case 1: pulseUp(75); break; case 2: colorWipe(75); break; case 3: colorFlash(400); break; case 4: theaterChase(100); break; } } int buttonPress() { buttonState = digitalRead(buttonPin); if (buttonState != lastState) { if (buttonState == HIGH) { digitalWrite(1, HIGH); s++; if (s > 4) { s = 1; } EEPROM.update(scene, s); } } lastState = buttonState; return s; } //modifed from neopixles/examples/strandtest void theaterChase(uint8_t speed) { for (int n = 0; n < colorNumber; n++) { // cycle all color for (int q = 0; q < 3; q++) { for (int i = 0; i < strip.numPixels(); i = i + 3) { strip.setPixelColor(i + q, color[n]); //turn every third pixel on strip.setBrightness(maxBright); } buttonPress(); strip.show(); delay(speed); for (int i = 0; i < strip.numPixels(); i = i + 3) { strip.setPixelColor(i + q, 0); //turn every third pixel off } } } } // modifed from neopixles/examples/strandtest // Fill the dots one after the other with a color void colorWipe( uint8_t speed) { for (int n = 0; n < colorNumber; n++) { // cycle all color for (uint16_t i = 0; i < strip.numPixels(); i++) { strip.setPixelColor(i, color[n]); strip.setBrightness(maxBright); buttonPress(); strip.show(); delay(speed); } } } void pulseUp(uint8_t speed) { const int fadeAmount = 10; //how much to increase each loop for (int n = 0; n < colorNumber; n++) { for (int i = 0; i < strip.numPixels(); i++) { //select all pixels strip.setPixelColor(i, color[n]); //set color from our array } for (int b = maxBright; b >= fadeAmount; b -= fadeAmount) { //start pulse for loop strip.setBrightness(b); buttonPress(); strip.show(); delay(speed); } // end of brightness loop } // end of colour loop } // end of pulseUp void colorFlash (int speed) { for (int n = 0; n < colorNumber; n++) { for (int i = 0; i < strip.numPixels(); i++) { //select all pins strip.setPixelColor(i, color[n]); //set each pin to color strip.setBrightness(maxBright); strip.show(); } delay(speed); //wait speed buttonPress(); } } void allOff() { buttonPress(); for (int i = 0; i < strip.numPixels(); i++) { //select all pins strip.setPixelColor(i, 0); //set each pin to off strip.show(); } }
[ "BandonRandon@gmail.com" ]
BandonRandon@gmail.com
c2a799af6fd46ed50733aae100b53cc62f932baf
5223163f7734b864c03b24046ddc67d019ac3b6d
/1654.cpp
b434643cb470a50811cb0aa36a127f781f2a2ad9
[]
no_license
kkd927/baekjoon
c1be75834f1c8d510869dc3f61cc797433b35768
167015c5ecd5f066242689c943f17319be5e71f0
refs/heads/master
2021-01-10T08:28:32.401939
2016-04-13T10:23:55
2016-04-13T10:23:55
54,297,721
5
2
null
null
null
null
UHC
C++
false
false
750
cpp
/* * 1654번 랜선 자르기 * https://www.acmicpc.net/problem/1654 * * ID: kkd927 * Github: https://github.com/kkd927/baekjoon */ #include <stdio.h> long long K, N; long long arr[10010]; long long M, max, min; long long isFinished() { long long result = 0; for (int i = 0; i < K; i++) result += (arr[i] / M); return result; } int main() { scanf("%lld %lld", &K, &N); for (int i = 0; i < K; i++) { scanf("%lld", &arr[i]); max = arr[i] > max ? arr[i] : max; } M = max; min = 0; long long ans = 0; while (min <= max) { M = (min + max) / 2; long long result = isFinished(); if (result >= N) { if (ans < M) { ans = M; } min = M + 1; } else { max = M - 1; } } printf("%lld\n", ans); return 0; }
[ "kkd927@gmail.com" ]
kkd927@gmail.com
5918f992cbaffac595a81e595dfd7387d5bae7b7
a2fc508cf6b93654bbf7c2967d08a7d4febe593a
/ert_main.cpp
c1cfbb7167770c325841cf01976838bf1d787028
[]
no_license
sprinkjm/odometryadaptor
fc2e0054bdf978b0b5b92d456c3d357f52d1e924
2fa93ccd2703b52d1eaeedb449c9c53c3139a22d
refs/heads/master
2021-01-19T07:58:20.992007
2017-04-14T22:46:32
2017-04-14T22:46:32
87,589,170
0
0
null
null
null
null
UTF-8
C++
false
false
2,303
cpp
// // Academic License - for use in teaching, academic research, and meeting // course requirements at degree granting institutions only. Not for // government, commercial, or other organizational use. // // File: ert_main.cpp // // Code generated for Simulink model 'odometryadaptor'. // // Model version : 1.110 // Simulink Coder version : 8.10 (R2016a) 10-Feb-2016 // C/C++ source code generated on : Fri Apr 14 15:39:59 2017 // // Target selection: ert.tlc // Embedded hardware selection: Generic->Unspecified (assume 32-bit Generic) // Code generation objectives: Unspecified // Validation result: Not run // #include <stdio.h> #include <stdlib.h> #include "odometryadaptor.h" #include "odometryadaptor_private.h" #include "rtwtypes.h" #include "limits.h" #include "linuxinitialize.h" // Function prototype declaration void exitTask(int sig); void terminateTask(void *arg); void baseRateTask(void *arg); void subrateTask(void *arg); volatile boolean_T runModel = true; sem_t stopSem; sem_t baserateTaskSem; pthread_t schedulerThread; pthread_t baseRateThread; unsigned long threadJoinStatus[8]; int terminatingmodel = 0; void baseRateTask(void *arg) { runModel = (rtmGetErrorStatus(odometryadaptor_M) == (NULL)); while (runModel) { sem_wait(&baserateTaskSem); odometryadaptor_step(); // Get model outputs here runModel = (rtmGetErrorStatus(odometryadaptor_M) == (NULL)); } runModel = 0; terminateTask(arg); pthread_exit((void *)0); } void exitTask(int sig) { rtmSetErrorStatus(odometryadaptor_M, "stopping the model"); } void terminateTask(void *arg) { terminatingmodel = 1; printf("**terminating the model**\n"); fflush(stdout); { int ret; runModel = 0; } // Disable rt_OneStep() here // Terminate model odometryadaptor_terminate(); sem_post(&stopSem); } int main(int argc, char **argv) { void slros_node_init(int argc, char** argv); slros_node_init(argc, argv); printf("**starting the model**\n"); fflush(stdout); rtmSetErrorStatus(odometryadaptor_M, 0); // Initialize model odometryadaptor_initialize(); // Call RTOS Initialization funcation myRTOSInit(0.05, 0); // Wait for stop semaphore sem_wait(&stopSem); return 0; } // // File trailer for generated code. // // [EOF] //
[ "sprinkjm@email.arizona.edu" ]
sprinkjm@email.arizona.edu
0eb40e8a3c9f3817ddb8585a3bd4883c237bec55
a473aff795d38028ae99a77a80eff1331ee48220
/SFML_test - Copy/SFML_test/PerlinNoise.hpp
9357813577761696c7497f7b03131efbe7eaf6ed
[]
no_license
JohnnyFlight/Random-SFML-Projects
045546bac9466a06cd0b4620daea7ea85d988291
b955e05c781a20ead66a142d52df27e3c84babd1
refs/heads/master
2021-03-27T20:27:16.734813
2016-08-19T15:34:19
2016-08-19T15:34:19
null
0
0
null
null
null
null
UTF-8
C++
false
false
365
hpp
#pragma once #include <SFML/Graphics.hpp> class PerlinNoise { public: PerlinNoise(); PerlinNoise(float width, float height, unsigned seed = 0); void initialise(); float getNoise(float x, float y); protected: unsigned _seed; // These will be random unit vectors std::vector<std::vector<sf::Vector2f> > _gradients; float _width, _height; private: };
[ "fire-song@hotmail.co.uk" ]
fire-song@hotmail.co.uk
f6a2ed56aaa9c504468843cec105861bd2e2e0e4
1dfa3f4f69f992856ac44c29e5c4e708e57a4e1b
/libvis/include/vis/utils/handlers.hpp
7aaed8ae7d5f81468033a3b0994620c9e2385fe2
[ "BSD-2-Clause" ]
permissive
dapicester/image-search
9f536f84da40c8b06d531f1b947204bbd344fa0d
46984b62192d24381e8436ce6765957f2bc8d243
refs/heads/master
2020-12-10T12:46:15.117164
2016-10-14T02:44:30
2016-10-14T02:44:30
12,724,396
0
2
null
null
null
null
UTF-8
C++
false
false
599
hpp
/** * @file utils/handlers.hpp * @brief Sample handlers. * @author Paolo D'Apice */ #ifndef VIS_UTILS_HANDLERS_HPP #define VIS_UTILS_HANDLERS_HPP #include <boost/filesystem/path.hpp> #include <functional> namespace vis { namespace handlers { static const auto PrintFile = [](int i, const std::vector<boost::filesystem::path>& files) { std::cout << " Extracting features from " << files[i] << " (" << i+1 << "/" << files.size() << ")" << std::endl; }; } /* namespace vis::handlers */ } /* namespace vis */ #endif /* VIS_UTILS_HANDLERS_HPP */
[ "dapicester@gmail.com" ]
dapicester@gmail.com
5c28ab43443394da5a4461faf87a7115a29cf53e
6795a1e1b57cd5ee4a80c81b381e89e039ee0efd
/unit_tests/os_interface/linux/linux_create_command_queue_with_properties_tests.cpp
5bbd6e529c155389a338031078ba6a271d7c331a
[ "LicenseRef-scancode-free-unknown", "MIT" ]
permissive
cwang64/compute-runtime
a6532ea00554c259d8d7669540668d07952a4f57
440520ffdc5807574f0abfbf64b3790d1c0547e4
refs/heads/master
2020-09-07T19:26:57.869393
2019-10-25T10:53:45
2019-10-25T12:26:51
186,993,047
0
0
MIT
2019-05-16T09:11:05
2019-05-16T09:11:05
null
UTF-8
C++
false
false
9,338
cpp
/* * Copyright (C) 2017-2019 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "runtime/command_queue/command_queue_hw.h" #include "runtime/os_interface/linux/os_interface.h" #include "test.h" #include "unit_tests/fixtures/ult_command_stream_receiver_fixture.h" #include "unit_tests/mocks/linux/mock_drm_command_stream_receiver.h" #include "unit_tests/mocks/linux/mock_drm_memory_manager.h" #include "unit_tests/mocks/mock_context.h" #include "unit_tests/os_interface/linux/drm_mock.h" using namespace NEO; struct clCreateCommandQueueWithPropertiesLinux : public UltCommandStreamReceiverTest { void SetUp() override { UltCommandStreamReceiverTest::SetUp(); ExecutionEnvironment *executionEnvironment = new ExecutionEnvironment(); auto osInterface = new OSInterface(); osInterface->get()->setDrm(drm.get()); executionEnvironment->osInterface.reset(osInterface); executionEnvironment->memoryManager.reset(new TestedDrmMemoryManager(*executionEnvironment)); mdevice.reset(MockDevice::create<MockDevice>(executionEnvironment, 0u)); clDevice = mdevice.get(); retVal = CL_SUCCESS; context = std::unique_ptr<Context>(Context::create<MockContext>(nullptr, DeviceVector(&clDevice, 1), nullptr, nullptr, retVal)); } void TearDown() override { UltCommandStreamReceiverTest::TearDown(); } std::unique_ptr<DrmMock> drm = std::make_unique<DrmMock>(); std::unique_ptr<MockDevice> mdevice = nullptr; std::unique_ptr<Context> context; cl_device_id clDevice; cl_int retVal; }; namespace ULT { TEST_F(clCreateCommandQueueWithPropertiesLinux, givenUnPossiblePropertiesWithClQueueSliceCountWhenCreateCommandQueueThenQueueNotCreated) { uint64_t newSliceCount = 1; size_t maxSliceCount; clGetDeviceInfo(clDevice, CL_DEVICE_SLICE_COUNT_INTEL, sizeof(size_t), &maxSliceCount, nullptr); newSliceCount = maxSliceCount + 1; cl_queue_properties properties[] = {CL_QUEUE_SLICE_COUNT_INTEL, newSliceCount, 0}; std::unique_ptr<DrmMock> drm = std::make_unique<DrmMock>(); mdevice.get()->getExecutionEnvironment()->osInterface->get()->setDrm(drm.get()); cl_command_queue cmdQ = clCreateCommandQueueWithProperties(context.get(), clDevice, properties, &retVal); EXPECT_EQ(nullptr, cmdQ); EXPECT_EQ(CL_INVALID_QUEUE_PROPERTIES, retVal); } TEST_F(clCreateCommandQueueWithPropertiesLinux, givenZeroWithClQueueSliceCountWhenCreateCommandQueueThenSliceCountEqualDefaultSliceCount) { uint64_t newSliceCount = 0; cl_queue_properties properties[] = {CL_QUEUE_SLICE_COUNT_INTEL, newSliceCount, 0}; std::unique_ptr<DrmMock> drm = std::make_unique<DrmMock>(); mdevice.get()->getExecutionEnvironment()->osInterface->get()->setDrm(drm.get()); cl_command_queue cmdQ = clCreateCommandQueueWithProperties(context.get(), clDevice, properties, &retVal); ASSERT_NE(nullptr, cmdQ); ASSERT_EQ(CL_SUCCESS, retVal); auto commandQueue = castToObject<CommandQueue>(cmdQ); EXPECT_EQ(commandQueue->getSliceCount(), QueueSliceCount::defaultSliceCount); retVal = clReleaseCommandQueue(cmdQ); EXPECT_EQ(CL_SUCCESS, retVal); } TEST_F(clCreateCommandQueueWithPropertiesLinux, givenPossiblePropertiesWithClQueueSliceCountWhenCreateCommandQueueThenSliceCountIsSet) { uint64_t newSliceCount = 1; size_t maxSliceCount; clGetDeviceInfo(clDevice, CL_DEVICE_SLICE_COUNT_INTEL, sizeof(size_t), &maxSliceCount, nullptr); if (maxSliceCount > 1) { newSliceCount = maxSliceCount - 1; } cl_queue_properties properties[] = {CL_QUEUE_SLICE_COUNT_INTEL, newSliceCount, 0}; std::unique_ptr<DrmMock> drm = std::make_unique<DrmMock>(); mdevice.get()->getExecutionEnvironment()->osInterface->get()->setDrm(drm.get()); cl_command_queue cmdQ = clCreateCommandQueueWithProperties(context.get(), clDevice, properties, &retVal); ASSERT_NE(nullptr, cmdQ); ASSERT_EQ(CL_SUCCESS, retVal); auto commandQueue = castToObject<CommandQueue>(cmdQ); EXPECT_EQ(commandQueue->getSliceCount(), newSliceCount); retVal = clReleaseCommandQueue(cmdQ); EXPECT_EQ(CL_SUCCESS, retVal); } HWTEST_F(clCreateCommandQueueWithPropertiesLinux, givenPropertiesWithClQueueSliceCountWhenCreateCommandQueueThenCallFlushTaskAndSliceCountIsSet) { uint64_t newSliceCount = 1; size_t maxSliceCount; clGetDeviceInfo(clDevice, CL_DEVICE_SLICE_COUNT_INTEL, sizeof(size_t), &maxSliceCount, nullptr); if (maxSliceCount > 1) { newSliceCount = maxSliceCount - 1; } cl_queue_properties properties[] = {CL_QUEUE_SLICE_COUNT_INTEL, newSliceCount, 0}; auto mockCsr = new TestedDrmCommandStreamReceiver<FamilyType>(*mdevice->executionEnvironment); mdevice->resetCommandStreamReceiver(mockCsr); cl_command_queue cmdQ = clCreateCommandQueueWithProperties(context.get(), clDevice, properties, &retVal); ASSERT_NE(nullptr, cmdQ); ASSERT_EQ(CL_SUCCESS, retVal); auto commandQueue = castToObject<CommandQueueHw<FamilyType>>(cmdQ); auto &commandStream = commandQueue->getCS(1024u); DispatchFlags dispatchFlags = DispatchFlagsHelper::createDefaultDispatchFlags(); dispatchFlags.sliceCount = commandQueue->getSliceCount(); mockCsr->flushTask(commandStream, 0u, dsh, ioh, ssh, taskLevel, dispatchFlags, *mdevice); auto expectedSliceMask = drm->getSliceMask(newSliceCount); EXPECT_EQ(expectedSliceMask, drm->storedParamSseu); drm_i915_gem_context_param_sseu sseu = {}; EXPECT_EQ(0, drm->getQueueSliceCount(&sseu)); EXPECT_EQ(expectedSliceMask, sseu.slice_mask); EXPECT_EQ(newSliceCount, mockCsr->lastSentSliceCount); retVal = clReleaseCommandQueue(cmdQ); EXPECT_EQ(CL_SUCCESS, retVal); } HWTEST_F(clCreateCommandQueueWithPropertiesLinux, givenSameSliceCountAsRecentlySetWhenCreateCommandQueueThenSetQueueSliceCountNotCalled) { uint64_t newSliceCount = 1; size_t maxSliceCount; clGetDeviceInfo(clDevice, CL_DEVICE_SLICE_COUNT_INTEL, sizeof(size_t), &maxSliceCount, nullptr); if (maxSliceCount > 1) { newSliceCount = maxSliceCount - 1; } cl_queue_properties properties[] = {CL_QUEUE_SLICE_COUNT_INTEL, newSliceCount, 0}; auto mockCsr = new TestedDrmCommandStreamReceiver<FamilyType>(*mdevice->executionEnvironment); mdevice->resetCommandStreamReceiver(mockCsr); cl_command_queue cmdQ = clCreateCommandQueueWithProperties(context.get(), clDevice, properties, &retVal); ASSERT_NE(nullptr, cmdQ); ASSERT_EQ(CL_SUCCESS, retVal); auto commandQueue = castToObject<CommandQueueHw<FamilyType>>(cmdQ); auto &commandStream = commandQueue->getCS(1024u); DispatchFlags dispatchFlags = DispatchFlagsHelper::createDefaultDispatchFlags(); dispatchFlags.sliceCount = commandQueue->getSliceCount(); mockCsr->lastSentSliceCount = newSliceCount; mockCsr->flushTask(commandStream, 0u, dsh, ioh, ssh, taskLevel, dispatchFlags, *mdevice); auto expectedSliceMask = drm->getSliceMask(newSliceCount); EXPECT_NE(expectedSliceMask, drm->storedParamSseu); drm_i915_gem_context_param_sseu sseu = {}; EXPECT_EQ(0, drm->getQueueSliceCount(&sseu)); EXPECT_NE(expectedSliceMask, sseu.slice_mask); retVal = clReleaseCommandQueue(cmdQ); EXPECT_EQ(CL_SUCCESS, retVal); } HWTEST_F(clCreateCommandQueueWithPropertiesLinux, givenPropertiesWithClQueueSliceCountWhenCreateCommandQueueThenSetReturnFalseAndLastSliceCountNotModify) { uint64_t newSliceCount = 1; size_t maxSliceCount; clGetDeviceInfo(clDevice, CL_DEVICE_SLICE_COUNT_INTEL, sizeof(size_t), &maxSliceCount, nullptr); if (maxSliceCount > 1) { newSliceCount = maxSliceCount - 1; } cl_queue_properties properties[] = {CL_QUEUE_SLICE_COUNT_INTEL, newSliceCount, 0}; auto mockCsr = new TestedDrmCommandStreamReceiver<FamilyType>(*mdevice->executionEnvironment); mdevice->resetCommandStreamReceiver(mockCsr); cl_command_queue cmdQ = clCreateCommandQueueWithProperties(context.get(), clDevice, properties, &retVal); ASSERT_NE(nullptr, cmdQ); ASSERT_EQ(CL_SUCCESS, retVal); auto commandQueue = castToObject<CommandQueueHw<FamilyType>>(cmdQ); auto &commandStream = commandQueue->getCS(1024u); DispatchFlags dispatchFlags = DispatchFlagsHelper::createDefaultDispatchFlags(); dispatchFlags.sliceCount = commandQueue->getSliceCount(); drm->StoredRetValForSetSSEU = -1; auto lastSliceCountBeforeFlushTask = mockCsr->lastSentSliceCount; mockCsr->flushTask(commandStream, 0u, dsh, ioh, ssh, taskLevel, dispatchFlags, *mdevice); EXPECT_NE(newSliceCount, mockCsr->lastSentSliceCount); EXPECT_EQ(lastSliceCountBeforeFlushTask, mockCsr->lastSentSliceCount); retVal = clReleaseCommandQueue(cmdQ); EXPECT_EQ(CL_SUCCESS, retVal); } } // namespace ULT
[ "ocldev@intel.com" ]
ocldev@intel.com
63411e0fce02120fe06f8b9894ba58b4a384a94c
29e68b2ec669679e460e738d51cf582bd3daeea5
/eMessage/popedom.pb.h
86080bbf05a198264b3c8311d810171239002fe7
[]
no_license
15831944/vs2008PackPrj
30c2f86007822542392a40b4fa4d8f332a87602d
1b7bbf81c7ed507c6482a28fcb15f70c5e54c521
refs/heads/master
2022-04-02T10:53:05.312430
2020-01-16T07:07:12
2020-01-16T07:07:12
null
0
0
null
null
null
null
UTF-8
C++
false
true
17,824
h
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: popedom.proto #ifndef PROTOBUF_popedom_2eproto__INCLUDED #define PROTOBUF_popedom_2eproto__INCLUDED #include <string> #include <google/protobuf/stubs/common.h> #if GOOGLE_PROTOBUF_VERSION < 2004000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif #if 2004001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. #endif #include <google/protobuf/generated_message_util.h> #include <google/protobuf/repeated_field.h> #include <google/protobuf/extension_set.h> #include <google/protobuf/generated_message_reflection.h> // @@protoc_insertion_point(includes) namespace isafetec { // Internal implementation detail -- do not call these. void LIBPROTOBUF_EXPORT protobuf_AddDesc_popedom_2eproto(); void protobuf_AssignDesc_popedom_2eproto(); void protobuf_ShutdownFile_popedom_2eproto(); class PopedomInfo; class PopedomInfoList; class PopedomInfoNode; class PopedomNodeList; // =================================================================== class LIBPROTOBUF_EXPORT PopedomInfo : public ::google::protobuf::Message { public: PopedomInfo(); virtual ~PopedomInfo(); PopedomInfo(const PopedomInfo& from); inline PopedomInfo& operator=(const PopedomInfo& from) { CopyFrom(from); return *this; } inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _unknown_fields_; } inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return &_unknown_fields_; } static const ::google::protobuf::Descriptor* descriptor(); static const PopedomInfo& default_instance(); void Swap(PopedomInfo* other); // implements Message ---------------------------------------------- PopedomInfo* New() const; void CopyFrom(const ::google::protobuf::Message& from); void MergeFrom(const ::google::protobuf::Message& from); void CopyFrom(const PopedomInfo& from); void MergeFrom(const PopedomInfo& from); void Clear(); bool IsInitialized() const; int ByteSize() const; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const; ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; public: ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // optional int32 id = 1; inline bool has_id() const; inline void clear_id(); static const int kIdFieldNumber = 1; inline ::google::protobuf::int32 id() const; inline void set_id(::google::protobuf::int32 value); // optional int32 maintype = 2; inline bool has_maintype() const; inline void clear_maintype(); static const int kMaintypeFieldNumber = 2; inline ::google::protobuf::int32 maintype() const; inline void set_maintype(::google::protobuf::int32 value); // optional int32 type = 3; inline bool has_type() const; inline void clear_type(); static const int kTypeFieldNumber = 3; inline ::google::protobuf::int32 type() const; inline void set_type(::google::protobuf::int32 value); // optional string typename = 4; inline bool has_typename_() const; inline void clear_typename_(); static const int kTypenameFieldNumber = 4; inline const ::std::string& typename_() const; inline void set_typename_(const ::std::string& value); inline void set_typename_(const char* value); inline void set_typename_(const char* value, size_t size); inline ::std::string* mutable_typename_(); inline ::std::string* release_typename_(); // optional string iconpath = 5; inline bool has_iconpath() const; inline void clear_iconpath(); static const int kIconpathFieldNumber = 5; inline const ::std::string& iconpath() const; inline void set_iconpath(const ::std::string& value); inline void set_iconpath(const char* value); inline void set_iconpath(const char* value, size_t size); inline ::std::string* mutable_iconpath(); inline ::std::string* release_iconpath(); // optional int32 attributetype = 6; inline bool has_attributetype() const; inline void clear_attributetype(); static const int kAttributetypeFieldNumber = 6; inline ::google::protobuf::int32 attributetype() const; inline void set_attributetype(::google::protobuf::int32 value); // optional int32 menushow = 7; inline bool has_menushow() const; inline void clear_menushow(); static const int kMenushowFieldNumber = 7; inline ::google::protobuf::int32 menushow() const; inline void set_menushow(::google::protobuf::int32 value); // optional int32 menuindex = 8; inline bool has_menuindex() const; inline void clear_menuindex(); static const int kMenuindexFieldNumber = 8; inline ::google::protobuf::int32 menuindex() const; inline void set_menuindex(::google::protobuf::int32 value); // @@protoc_insertion_point(class_scope:isafetec.PopedomInfo) private: inline void set_has_id(); inline void clear_has_id(); inline void set_has_maintype(); inline void clear_has_maintype(); inline void set_has_type(); inline void clear_has_type(); inline void set_has_typename_(); inline void clear_has_typename_(); inline void set_has_iconpath(); inline void clear_has_iconpath(); inline void set_has_attributetype(); inline void clear_has_attributetype(); inline void set_has_menushow(); inline void clear_has_menushow(); inline void set_has_menuindex(); inline void clear_has_menuindex(); ::google::protobuf::UnknownFieldSet _unknown_fields_; ::google::protobuf::int32 id_; ::google::protobuf::int32 maintype_; ::std::string* typename__; ::google::protobuf::int32 type_; ::google::protobuf::int32 attributetype_; ::std::string* iconpath_; ::google::protobuf::int32 menushow_; ::google::protobuf::int32 menuindex_; mutable int _cached_size_; ::google::protobuf::uint32 _has_bits_[(8 + 31) / 32]; friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_popedom_2eproto(); friend void protobuf_AssignDesc_popedom_2eproto(); friend void protobuf_ShutdownFile_popedom_2eproto(); void InitAsDefaultInstance(); static PopedomInfo* default_instance_; }; // ------------------------------------------------------------------- class LIBPROTOBUF_EXPORT PopedomInfoList : public ::google::protobuf::Message { public: PopedomInfoList(); virtual ~PopedomInfoList(); PopedomInfoList(const PopedomInfoList& from); inline PopedomInfoList& operator=(const PopedomInfoList& from) { CopyFrom(from); return *this; } inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _unknown_fields_; } inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return &_unknown_fields_; } static const ::google::protobuf::Descriptor* descriptor(); static const PopedomInfoList& default_instance(); void Swap(PopedomInfoList* other); // implements Message ---------------------------------------------- PopedomInfoList* New() const; void CopyFrom(const ::google::protobuf::Message& from); void MergeFrom(const ::google::protobuf::Message& from); void CopyFrom(const PopedomInfoList& from); void MergeFrom(const PopedomInfoList& from); void Clear(); bool IsInitialized() const; int ByteSize() const; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const; ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; public: ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // repeated .isafetec.PopedomInfo list = 1; inline int list_size() const; inline void clear_list(); static const int kListFieldNumber = 1; inline const ::isafetec::PopedomInfo& list(int index) const; inline ::isafetec::PopedomInfo* mutable_list(int index); inline ::isafetec::PopedomInfo* PopedomInfoList::list_ReleaseAt(int index); inline void PopedomInfoList::list_RemoveAt(int index); inline ::isafetec::PopedomInfo* add_list(); inline const ::google::protobuf::RepeatedPtrField< ::isafetec::PopedomInfo >& list() const; inline ::google::protobuf::RepeatedPtrField< ::isafetec::PopedomInfo >* mutable_list(); // @@protoc_insertion_point(class_scope:isafetec.PopedomInfoList) private: ::google::protobuf::UnknownFieldSet _unknown_fields_; ::google::protobuf::RepeatedPtrField< ::isafetec::PopedomInfo > list_; mutable int _cached_size_; ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_popedom_2eproto(); friend void protobuf_AssignDesc_popedom_2eproto(); friend void protobuf_ShutdownFile_popedom_2eproto(); void InitAsDefaultInstance(); static PopedomInfoList* default_instance_; }; // ------------------------------------------------------------------- class LIBPROTOBUF_EXPORT PopedomInfoNode : public ::google::protobuf::Message { public: PopedomInfoNode(); virtual ~PopedomInfoNode(); PopedomInfoNode(const PopedomInfoNode& from); inline PopedomInfoNode& operator=(const PopedomInfoNode& from) { CopyFrom(from); return *this; } inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _unknown_fields_; } inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return &_unknown_fields_; } static const ::google::protobuf::Descriptor* descriptor(); static const PopedomInfoNode& default_instance(); void Swap(PopedomInfoNode* other); // implements Message ---------------------------------------------- PopedomInfoNode* New() const; void CopyFrom(const ::google::protobuf::Message& from); void MergeFrom(const ::google::protobuf::Message& from); void CopyFrom(const PopedomInfoNode& from); void MergeFrom(const PopedomInfoNode& from); void Clear(); bool IsInitialized() const; int ByteSize() const; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const; ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; public: ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // optional int32 id = 1; inline bool has_id() const; inline void clear_id(); static const int kIdFieldNumber = 1; inline ::google::protobuf::int32 id() const; inline void set_id(::google::protobuf::int32 value); // optional int32 maintype = 2; inline bool has_maintype() const; inline void clear_maintype(); static const int kMaintypeFieldNumber = 2; inline ::google::protobuf::int32 maintype() const; inline void set_maintype(::google::protobuf::int32 value); // optional string mainname = 3; inline bool has_mainname() const; inline void clear_mainname(); static const int kMainnameFieldNumber = 3; inline const ::std::string& mainname() const; inline void set_mainname(const ::std::string& value); inline void set_mainname(const char* value); inline void set_mainname(const char* value, size_t size); inline ::std::string* mutable_mainname(); inline ::std::string* release_mainname(); // optional string mainiconpath = 4; inline bool has_mainiconpath() const; inline void clear_mainiconpath(); static const int kMainiconpathFieldNumber = 4; inline const ::std::string& mainiconpath() const; inline void set_mainiconpath(const ::std::string& value); inline void set_mainiconpath(const char* value); inline void set_mainiconpath(const char* value, size_t size); inline ::std::string* mutable_mainiconpath(); inline ::std::string* release_mainiconpath(); // optional .isafetec.PopedomInfoList list = 5; inline bool has_list() const; inline void clear_list(); static const int kListFieldNumber = 5; inline const ::isafetec::PopedomInfoList& list() const; inline ::isafetec::PopedomInfoList* mutable_list(); inline ::isafetec::PopedomInfoList* release_list(); // @@protoc_insertion_point(class_scope:isafetec.PopedomInfoNode) private: inline void set_has_id(); inline void clear_has_id(); inline void set_has_maintype(); inline void clear_has_maintype(); inline void set_has_mainname(); inline void clear_has_mainname(); inline void set_has_mainiconpath(); inline void clear_has_mainiconpath(); inline void set_has_list(); inline void clear_has_list(); ::google::protobuf::UnknownFieldSet _unknown_fields_; ::google::protobuf::int32 id_; ::google::protobuf::int32 maintype_; ::std::string* mainname_; ::std::string* mainiconpath_; ::isafetec::PopedomInfoList* list_; mutable int _cached_size_; ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32]; friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_popedom_2eproto(); friend void protobuf_AssignDesc_popedom_2eproto(); friend void protobuf_ShutdownFile_popedom_2eproto(); void InitAsDefaultInstance(); static PopedomInfoNode* default_instance_; }; // ------------------------------------------------------------------- class LIBPROTOBUF_EXPORT PopedomNodeList : public ::google::protobuf::Message { public: PopedomNodeList(); virtual ~PopedomNodeList(); PopedomNodeList(const PopedomNodeList& from); inline PopedomNodeList& operator=(const PopedomNodeList& from) { CopyFrom(from); return *this; } inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _unknown_fields_; } inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return &_unknown_fields_; } static const ::google::protobuf::Descriptor* descriptor(); static const PopedomNodeList& default_instance(); void Swap(PopedomNodeList* other); // implements Message ---------------------------------------------- PopedomNodeList* New() const; void CopyFrom(const ::google::protobuf::Message& from); void MergeFrom(const ::google::protobuf::Message& from); void CopyFrom(const PopedomNodeList& from); void MergeFrom(const PopedomNodeList& from); void Clear(); bool IsInitialized() const; int ByteSize() const; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input); void SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const; ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; int GetCachedSize() const { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const; public: ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // repeated .isafetec.PopedomInfoNode list = 1; inline int list_size() const; inline void clear_list(); static const int kListFieldNumber = 1; inline const ::isafetec::PopedomInfoNode& list(int index) const; inline ::isafetec::PopedomInfoNode* mutable_list(int index); inline ::isafetec::PopedomInfoNode* PopedomNodeList::list_ReleaseAt(int index); inline void PopedomNodeList::list_RemoveAt(int index); inline ::isafetec::PopedomInfoNode* add_list(); inline const ::google::protobuf::RepeatedPtrField< ::isafetec::PopedomInfoNode >& list() const; inline ::google::protobuf::RepeatedPtrField< ::isafetec::PopedomInfoNode >* mutable_list(); // @@protoc_insertion_point(class_scope:isafetec.PopedomNodeList) private: ::google::protobuf::UnknownFieldSet _unknown_fields_; ::google::protobuf::RepeatedPtrField< ::isafetec::PopedomInfoNode > list_; mutable int _cached_size_; ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_popedom_2eproto(); friend void protobuf_AssignDesc_popedom_2eproto(); friend void protobuf_ShutdownFile_popedom_2eproto(); void InitAsDefaultInstance(); static PopedomNodeList* default_instance_; }; // =================================================================== // =================================================================== // @@protoc_insertion_point(namespace_scope) } // namespace isafetec #ifndef SWIG namespace google { namespace protobuf { } // namespace google } // namespace protobuf #endif // SWIG // @@protoc_insertion_point(global_scope) #endif // PROTOBUF_popedom_2eproto__INCLUDED
[ "1007482035@qq.com" ]
1007482035@qq.com
4f54643b4b986dfaff8da8f27c4c2446746c154b
0b23828e51b5dee0812f2ee535deb29753be33f3
/Visualizer/LinearColumnSpectrum.cpp
7346371ec6a2c3eb71b5d90980c7a5bf637abfb6
[]
no_license
Syntox32/Visualizer
f7ce94354722c77d1258e974f4393edb44266373
ef6f7802cf6b29b2273da14fcce1cbf5608e6817
refs/heads/master
2021-01-10T15:04:46.623173
2016-03-27T19:49:29
2016-03-27T19:49:29
54,339,110
0
0
null
null
null
null
UTF-8
C++
false
false
6,259
cpp
#include "LinearColumnSpectrum.h" LinearColumnSpectrum::LinearColumnSpectrum() { } LinearColumnSpectrum::~LinearColumnSpectrum() { } void LinearColumnSpectrum::init(const Visualizer* vzInstance) { vz = (Visualizer*)vzInstance; window = new sf::RenderWindow(sf::VideoMode(850, 450), "wub wub wuuub-b-b"); backgroundColor = sf::Color::Black; bufferSize = vz->fft->getBufferSize(); fftSize = vz->fft->getFFTSize(); maxFftIndex = vz->fft->getMaxFftIndex(); intermediate = new unsigned char[88200]; readyOutBuffer = new float[fftSize]; fftDataBuffer = new float[fftSize]; for (unsigned int i = 0; i < fftSize; i++) { readyOutBuffer[i] = 0.0f; fftDataBuffer[i] = 0.0f; } maxHistoryEntries = 30; numBands = 32; silent = false; prevBandEnergies = new float[numBands]; for (unsigned int i = 0; i < numBands; i++) prevBandEnergies[i] = 0.0f; hisDbLevel = new History(maxHistoryEntries); hisAverage = new History(20); winWi = window->getSize().x; winHi = window->getSize().y; rectWi = (float)(winWi / numBands); sf::Color barColor = sf::Color(202, 44, 63); for (unsigned int i = 0; i < numBands; i++) { sf::RectangleShape *rect = new sf::RectangleShape(); rect->setSize(sf::Vector2f(rectWi, 20)); rect->setPosition(sf::Vector2f(i * rectWi + (2 * i), winHi - rect->getSize().y)); rect->setFillColor(barColor); rects.push_back(rect); } fLin = vz->genLinFreqLimits(numBands, vz->freqMin, vz->freqMax); fLog = vz->genLogFreqLimits(numBands, vz->freq); fExp = vz->genExpFreqLimits(numBands, vz->freqMin, vz->freqMax, vz->freq / 2); lp = new Biquad(); bp = new Biquad(); pf = new Biquad(); float ff = 400.0f; lp->setBiquad(bq_type_lowpass, (float)(ff / (float)(vz->freq)), 0.707, 0); bp->setBiquad(bq_type_bandpass, (float)(ff / (float)(vz->freq)), 0.9, 0); pf->setBiquad(bq_type_peak, (float)(ff / (float)(vz->freq)), 0.7071, 3); // beat detection initialization maxBandEntries = 43; beatCount = 0; beatClock.restart(); hisEnergy = new History(maxBandEntries); // individual band histories for (unsigned int b = 0; b < numBands; b++) { bandHistories.push_back(new History(maxBandEntries)); } // random thing } void LinearColumnSpectrum::applyFilter(float *inData, size_t inLen) { for (unsigned int i = 0; i < inLen; i++) { lp->process(inData[i]); //bp->process(inData[i]); //pf->process(inData[i]); } } void LinearColumnSpectrum::start() { vz->source->start(); while (window->isOpen()) { sf::Event event; while (window->pollEvent(event)) { if (event.type == sf::Event::Closed) window->close(); //if (event.type == sf::Event::MouseButtonReleased) { } } frameDelta = deltaClock.restart(); deltaTime = frameDelta.asSeconds(); nextFrame(); // do the drawing window->clear(backgroundColor); for (auto* r : rects) window->draw(*r); window->draw(dbMeter); window->display(); Sleep(vz->sleepTime); } vz->source->stop(); stop(); } float calc_c(float variance) //, float f) { // TODO: add comments so this is not just a bunch of magic numbers return ((-1.0f) * 0.0025714f * variance) + 1.3142857f; //return ((-1.0f) * 0.0000002f * variance) + 1.3142857f; //return ((-1.0f) * 0.0025714f * variance) + 1.5142857f; //return ((-1.0f) * 0.0025714f * variance) + 5.559142857f; } void LinearColumnSpectrum::nextFrame() { vz->source->getSample(intermediate); Utils::shortToFloat(readyOutBuffer, intermediate, bufferSize); vz->fft->winBlackman(readyOutBuffer, fftSize); dbLvl = vz->getDbLevel(readyOutBuffer, fftSize); //, dbMin, dbMax); hisDbLevel->push(dbLvl); silent = Utils::isSilence(hisDbLevel, vz->dbMin); //printf("silent: %d\t dbLvl: %f\n", (int)silent, dbLvl); //applyFilter(readyOutBuffer, fftSize); vz->fft->process(fftDataBuffer, readyOutBuffer, fftSize); applyFilter(fftDataBuffer, maxFftIndex); // do some beat detection woopwoop // maybe change out maxFftIndex for fftSize? float energy = 0.0f; for (unsigned int k = 0; k < maxFftIndex; k++) energy += fftDataBuffer[k]; //energy /= maxFftIndex; float avgEnergy = hisEnergy->avg(); float varEnergy = hisEnergy->var(avgEnergy); float C = calc_c(varEnergy); hisEnergy->push(energy); float shit = C * avgEnergy; if (energy > shit) { if (beatClock.getElapsedTime().asMilliseconds() > 150) { beatClock.restart(); beatCount++; printf("BEAT %d\n", beatCount); // random things // usage: dist(md) std::random_device rd; std::mt19937 mt(rd()); std::uniform_int_distribution<int> dist(0, 128); backgroundColor = sf::Color(dist(mt), dist(mt), dist(mt)); //getRandomColor(dist, mt); } } float avgBandEnergy = 0.0f; float avgHistoryEnergy = 0.0f; float old; // do some drawing with the individual bands vz->scaleFft(fftDataBuffer, maxFftIndex); for (unsigned int i = 0; i < numBands; i++) { // calculate the average energy for the current band Freq f = fLin[i]; int minFreqBandIndex = Utils::freqToIndex(vz->freq, f.min, maxFftIndex - 1); int maxFreqBandIndex = Utils::freqToIndex(vz->freq, f.max, maxFftIndex - 1); int delta = maxFreqBandIndex - minFreqBandIndex; avgBandEnergy = 0.0f; for (int e = minFreqBandIndex; e <= maxFreqBandIndex; e++) avgBandEnergy += fftDataBuffer[e]; avgBandEnergy /= (delta + 1); if (silent) avgBandEnergy = 0; bandHistories[i]->push(avgBandEnergy); float avgBandHistoryEnergy = bandHistories[i]->avg(); // --------------------------------- int height = (int)round(winHi * Utils::norm(avgBandEnergy, 0, 100)); int step = 0; float pe = prevBandEnergies[i]; if (pe < height) step = (int)Utils::lerp(prevBandEnergies[i], height, 0.85f); else step = (int)Utils::lerp(prevBandEnergies[i], height, 0.5f); prevBandEnergies[i] = step; height = max(min(step, winHi), 1); //height = max(min(height, winHi), 1); old = height; height = (height + prevRectHeight) / (i == 0 ? 1 : 2); prevRectHeight = old; currPos.x = i * rectWi + (2 * i); currPos.y = winHi - height; currSize.y = height; currSize.x = rectWi; rects[i]->setPosition(currPos); rects[i]->setSize(currSize); } } void LinearColumnSpectrum::stop() { if (window->isOpen()) { window->close(); } // also delete other resources here }
[ "syntox32@gmail.com" ]
syntox32@gmail.com
13eeab9f145020e849254034c960e0038b08ae37
6943de7ebce6380cfbdf9532201f00c7fa3a4e32
/ir_step_motor/ir_step_motor.ino
bb480854976b76f11f1fd1657ab46f20aa2915b5
[]
no_license
JoseManuelPS/Robotool
47cc10623808a134ee5367b0bca45227122c797f
0539cf6d872cc3952689559263be13a31002e173
refs/heads/main
2023-06-27T19:01:19.675517
2021-07-25T10:49:28
2021-07-25T10:49:28
373,560,479
1
0
null
2021-07-25T10:49:29
2021-06-03T15:43:38
null
UTF-8
C++
false
false
2,721
ino
#include <IRremote.h> #define IR_RECEIVER_PIN 3 #define STEPPER_MOTOR_PIN1 4 #define STEPPER_MOTOR_PIN2 5 #define STEPPER_MOTOR_PIN3 6 #define STEPPER_MOTOR_PIN4 7 #define DELAY 10 void setup(){ Serial.begin(9600); IrReceiver.begin(IR_RECEIVER_PIN); Serial.println("Receiver ready!"); pinMode(STEPPER_MOTOR_PIN1, OUTPUT); pinMode(STEPPER_MOTOR_PIN2, OUTPUT); pinMode(STEPPER_MOTOR_PIN3, OUTPUT); pinMode(STEPPER_MOTOR_PIN4, OUTPUT); Serial.println("Motor ready!"); } void loop(){ if (IrReceiver.decode()) { Serial.println(IrReceiver.decodedIRData.decodedRawData); if(IrReceiver.decodedIRData.decodedRawData == 4161210119){ Serial.println("Volumen UP"); for (int i=0; i<64; i++){ digitalWrite(STEPPER_MOTOR_PIN1, HIGH); digitalWrite(STEPPER_MOTOR_PIN2, LOW); digitalWrite(STEPPER_MOTOR_PIN3, LOW); digitalWrite(STEPPER_MOTOR_PIN4, LOW); delay(DELAY); digitalWrite(STEPPER_MOTOR_PIN1, LOW); digitalWrite(STEPPER_MOTOR_PIN2, HIGH); digitalWrite(STEPPER_MOTOR_PIN3, LOW); digitalWrite(STEPPER_MOTOR_PIN4, LOW); delay(DELAY); digitalWrite(STEPPER_MOTOR_PIN1, LOW); digitalWrite(STEPPER_MOTOR_PIN2, LOW); digitalWrite(STEPPER_MOTOR_PIN3, HIGH); digitalWrite(STEPPER_MOTOR_PIN4, LOW); delay(DELAY); digitalWrite(STEPPER_MOTOR_PIN1, LOW); digitalWrite(STEPPER_MOTOR_PIN2, LOW); digitalWrite(STEPPER_MOTOR_PIN3, LOW); digitalWrite(STEPPER_MOTOR_PIN4, HIGH); delay(DELAY); } }else if (IrReceiver.decodedIRData.decodedRawData == 4094363399){ Serial.println("Volumen DOWN"); for (int i=0; i<64; i++){ digitalWrite(STEPPER_MOTOR_PIN1, LOW); digitalWrite(STEPPER_MOTOR_PIN2, LOW); digitalWrite(STEPPER_MOTOR_PIN3, LOW); digitalWrite(STEPPER_MOTOR_PIN4, HIGH); delay(DELAY); digitalWrite(STEPPER_MOTOR_PIN1, LOW); digitalWrite(STEPPER_MOTOR_PIN2, LOW); digitalWrite(STEPPER_MOTOR_PIN3, HIGH); digitalWrite(STEPPER_MOTOR_PIN4, LOW); delay(DELAY); digitalWrite(STEPPER_MOTOR_PIN1, LOW); digitalWrite(STEPPER_MOTOR_PIN2, HIGH); digitalWrite(STEPPER_MOTOR_PIN3, LOW); digitalWrite(STEPPER_MOTOR_PIN4, LOW); delay(DELAY); digitalWrite(STEPPER_MOTOR_PIN1, HIGH); digitalWrite(STEPPER_MOTOR_PIN2, LOW); digitalWrite(STEPPER_MOTOR_PIN3, LOW); digitalWrite(STEPPER_MOTOR_PIN4, LOW); delay(DELAY); } } IrReceiver.resume(); } }
[ "dev.josemanuelps@gmail.com" ]
dev.josemanuelps@gmail.com
fd40cad1350432ecaba9a02e5e7d6aea7087e6ae
2727072679f44891d3340803b52b189e7dfb9f35
/codegen/QtQuick/QQuickPaintedItemSlots.cpp
d210683c3afc19abc607e08ce0176ca2802ef407
[ "MIT" ]
permissive
MahmoudFayed/Qt5xHb
2a4b11df293986cfcd90df572ee24cf017593cd0
0b60965b06b3d91da665974f5b39edb34758bca7
refs/heads/master
2020-03-22T21:27:02.532270
2018-07-10T16:08:30
2018-07-10T16:08:30
null
0
0
null
null
null
null
UTF-8
C++
false
false
343
cpp
%% %% Qt5xHb - Bindings libraries for Harbour/xHarbour and Qt Framework 5 %% %% Copyright (C) 2018 Marcos Antonio Gambeta <marcosgambeta AT outlook DOT com> %% $header $includes $beginSlotsClass $slot=|contentsScaleChanged() $slot=|contentsSizeChanged() $slot=|fillColorChanged() $slot=|renderTargetChanged() $endSlotsClass
[ "5998677+marcosgambeta@users.noreply.github.com" ]
5998677+marcosgambeta@users.noreply.github.com
9a6bc4f870db52f7864eed2ab0d070607ca1b9c8
19be23e58891ece1936f672423af7445d4e58c9e
/SDK/Mordhau_Mordhau_parameters.hpp
ece174e713addf803a63b3a235d5294385600e07
[]
no_license
fake-cheater/Mordhau_SDK
a950e36b8a018536616cbc26b44a457d5d4d32b4
3a31572e30ab955fae62aaad7e8ba855c24646e3
refs/heads/master
2022-02-03T23:11:59.746397
2019-05-03T19:20:57
2019-05-03T19:20:57
null
0
0
null
null
null
null
UTF-8
C++
false
false
517,521
hpp
#pragma once // Mordhau (Dumped by Hinnie) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "../SDK.hpp" namespace SDK { //--------------------------------------------------------------------------- //Parameters //--------------------------------------------------------------------------- // Function Mordhau.AdvancedCharacter.UnHighlight struct AAdvancedCharacter_UnHighlight_Params { }; // Function Mordhau.AdvancedCharacter.TurnNotAbsolute struct AAdvancedCharacter_TurnNotAbsolute_Params { float Value; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.TurnAtRate struct AAdvancedCharacter_TurnAtRate_Params { float Val; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.Turn struct AAdvancedCharacter_Turn_Params { float Val; // (Parm, ZeroConstructor, IsPlainOldData) bool bIsAbsolute; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.Trip struct AAdvancedCharacter_Trip_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.Suicide struct AAdvancedCharacter_Suicide_Params { }; // Function Mordhau.AdvancedCharacter.StopRegen struct AAdvancedCharacter_StopRegen_Params { float ExtraTime; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.StopHealthRegen struct AAdvancedCharacter_StopHealthRegen_Params { float ExtraTime; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.StopBurningCosmetic struct AAdvancedCharacter_StopBurningCosmetic_Params { }; // Function Mordhau.AdvancedCharacter.StartRagdollWithBlend struct AAdvancedCharacter_StartRagdollWithBlend_Params { float BlendDuration; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.StartRagdoll struct AAdvancedCharacter_StartRagdoll_Params { }; // Function Mordhau.AdvancedCharacter.StartBurningCosmetic struct AAdvancedCharacter_StartBurningCosmetic_Params { }; // Function Mordhau.AdvancedCharacter.StartBurning struct AAdvancedCharacter_StartBurning_Params { float Duration; // (Parm, ZeroConstructor, IsPlainOldData) float Damage; // (Parm, ZeroConstructor, IsPlainOldData) float Tick; // (Parm, ZeroConstructor, IsPlainOldData) class AActor* DamageAgent; // (Parm, ZeroConstructor, IsPlainOldData) class AController* InstigatorController; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.SpawnParticlesAttached struct AAdvancedCharacter_SpawnParticlesAttached_Params { class UParticleSystem* Particle; // (Parm, ZeroConstructor, IsPlainOldData) struct FVector Location; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) struct FRotator Rotation; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) TEnumAsByte<EAttachLocation> AttachType; // (Parm, ZeroConstructor, IsPlainOldData) struct FName Socket; // (Parm, ZeroConstructor, IsPlainOldData) bool bForce; // (Parm, ZeroConstructor, IsPlainOldData) class UParticleSystemComponent* ReturnValue; // (ExportObject, Parm, OutParm, ZeroConstructor, ReturnParm, InstancedReference, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.SetOnSmoke struct AAdvancedCharacter_SetOnSmoke_Params { class AMasterField* SmokeField; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.SetOnFire struct AAdvancedCharacter_SetOnFire_Params { class AMasterField* FireField; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.SetLookLagInductionTarget struct AAdvancedCharacter_SetLookLagInductionTarget_Params { float Amount; // (Parm, ZeroConstructor, IsPlainOldData) float ChangeSpeed; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.SetLocationLagInductionTarget struct AAdvancedCharacter_SetLocationLagInductionTarget_Params { float Amount; // (Parm, ZeroConstructor, IsPlainOldData) float ChangeSpeed; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.SetIsRagdollFalling struct AAdvancedCharacter_SetIsRagdollFalling_Params { bool bInIsRagdollFalling; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.SetAdditiveOverrideType struct AAdvancedCharacter_SetAdditiveOverrideType_Params { struct FName NewType; // (Parm, ZeroConstructor, IsPlainOldData) float Duration; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.ServerTrip struct AAdvancedCharacter_ServerTrip_Params { }; // Function Mordhau.AdvancedCharacter.ServerSuicide struct AAdvancedCharacter_ServerSuicide_Params { }; // Function Mordhau.AdvancedCharacter.ServerLookUp struct AAdvancedCharacter_ServerLookUp_Params { float NewLookUp; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.ResetLookLagInductionTarget struct AAdvancedCharacter_ResetLookLagInductionTarget_Params { }; // Function Mordhau.AdvancedCharacter.ResetLocationLagInductionTarget struct AAdvancedCharacter_ResetLocationLagInductionTarget_Params { }; // Function Mordhau.AdvancedCharacter.ResetLagInductionTargets struct AAdvancedCharacter_ResetLagInductionTargets_Params { }; // Function Mordhau.AdvancedCharacter.ResetAdditiveOverrideType struct AAdvancedCharacter_ResetAdditiveOverrideType_Params { }; // Function Mordhau.AdvancedCharacter.RequestTrip struct AAdvancedCharacter_RequestTrip_Params { }; // Function Mordhau.AdvancedCharacter.RequestSuicide struct AAdvancedCharacter_RequestSuicide_Params { }; // Function Mordhau.AdvancedCharacter.RequestMeshEnablePhysics struct AAdvancedCharacter_RequestMeshEnablePhysics_Params { float Duration; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.ReplicateHealth struct AAdvancedCharacter_ReplicateHealth_Params { }; // Function Mordhau.AdvancedCharacter.RegisterMaterialToDissolve struct AAdvancedCharacter_RegisterMaterialToDissolve_Params { class UMaterialInstanceDynamic* Mat; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.PlayHitEffectParticle struct AAdvancedCharacter_PlayHitEffectParticle_Params { struct FVector Location; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) struct FRotator Rotation; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) struct FName bone; // (Parm, ZeroConstructor, IsPlainOldData) bool bFindOptimalSpot; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.PlayCharacterSound struct AAdvancedCharacter_PlayCharacterSound_Params { class USoundBase* Sound; // (Parm, ZeroConstructor, IsPlainOldData) struct FName bone; // (Parm, ZeroConstructor, IsPlainOldData) struct FVector InLocation; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) TEnumAsByte<EAttachLocation> AttachLocation; // (Parm, ZeroConstructor, IsPlainOldData) bool bAttach; // (Parm, ZeroConstructor, IsPlainOldData) class USoundAttenuation* Override; // (Parm, ZeroConstructor, IsPlainOldData) float VolumeMultiplier; // (Parm, ZeroConstructor, IsPlainOldData) float PitchMultiplier; // (Parm, ZeroConstructor, IsPlainOldData) class UAudioComponent* ReturnValue; // (ExportObject, Parm, OutParm, ZeroConstructor, ReturnParm, InstancedReference, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.OnTookDamage struct AAdvancedCharacter_OnTookDamage_Params { bool bWillKill; // (Parm, ZeroConstructor, IsPlainOldData) EMordhauDamageType Type; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char SubType; // (Parm, ZeroConstructor, IsPlainOldData) struct FName bone; // (Parm, ZeroConstructor, IsPlainOldData) struct FVector Point; // (Parm, IsPlainOldData) class AActor* Source; // (Parm, ZeroConstructor, IsPlainOldData) class AActor* Agent; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.OnRep_Team struct AAdvancedCharacter_OnRep_Team_Params { }; // Function Mordhau.AdvancedCharacter.OnRep_SpawnTurnValue struct AAdvancedCharacter_OnRep_SpawnTurnValue_Params { }; // Function Mordhau.AdvancedCharacter.OnRep_ReplicatedLookUpValue struct AAdvancedCharacter_OnRep_ReplicatedLookUpValue_Params { }; // Function Mordhau.AdvancedCharacter.OnRep_ReplicatedHealth struct AAdvancedCharacter_OnRep_ReplicatedHealth_Params { }; // Function Mordhau.AdvancedCharacter.OnRep_ReplicatedCharacterFlags struct AAdvancedCharacter_OnRep_ReplicatedCharacterFlags_Params { unsigned char OldValue; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.OnRep_NetDamage struct AAdvancedCharacter_OnRep_NetDamage_Params { }; // Function Mordhau.AdvancedCharacter.OnKilled struct AAdvancedCharacter_OnKilled_Params { class AController* EventInstigator; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.OnInteractionStart struct AAdvancedCharacter_OnInteractionStart_Params { class AAdvancedCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.OnInteractionEnd struct AAdvancedCharacter_OnInteractionEnd_Params { }; // Function Mordhau.AdvancedCharacter.OnHit struct AAdvancedCharacter_OnHit_Params { class AActor* Actor; // (Parm, ZeroConstructor, IsPlainOldData) struct FName bone; // (Parm, ZeroConstructor, IsPlainOldData) struct FVector WorldLocation; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) unsigned char Tier; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char SurfaceType; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.OnHighlightStart struct AAdvancedCharacter_OnHighlightStart_Params { }; // Function Mordhau.AdvancedCharacter.OnHighlightEnd struct AAdvancedCharacter_OnHighlightEnd_Params { }; // Function Mordhau.AdvancedCharacter.OnHealthChanged struct AAdvancedCharacter_OnHealthChanged_Params { }; // Function Mordhau.AdvancedCharacter.OnDied struct AAdvancedCharacter_OnDied_Params { float Angle; // (Parm, ZeroConstructor, IsPlainOldData) EMordhauDamageType Type; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char SubType; // (Parm, ZeroConstructor, IsPlainOldData) struct FName bone; // (Parm, ZeroConstructor, IsPlainOldData) struct FVector Point; // (Parm, IsPlainOldData) class AActor* Source; // (Parm, ZeroConstructor, IsPlainOldData) class AActor* Agent; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.OnCosmeticHit struct AAdvancedCharacter_OnCosmeticHit_Params { EMordhauDamageType DamageType; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char SubType; // (Parm, ZeroConstructor, IsPlainOldData) struct FHitResult Hit; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) class AActor* Agent; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.OnAfterDied struct AAdvancedCharacter_OnAfterDied_Params { float Angle; // (Parm, ZeroConstructor, IsPlainOldData) EMordhauDamageType Type; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char SubType; // (Parm, ZeroConstructor, IsPlainOldData) struct FName bone; // (Parm, ZeroConstructor, IsPlainOldData) struct FVector Point; // (Parm, IsPlainOldData) class AActor* Source; // (Parm, ZeroConstructor, IsPlainOldData) class AActor* Agent; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.OffsetHealth struct AAdvancedCharacter_OffsetHealth_Params { int Amount; // (Parm, ZeroConstructor, IsPlainOldData) bool bReplicate; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.MoveRight struct AAdvancedCharacter_MoveRight_Params { float Val; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.MoveForward struct AAdvancedCharacter_MoveForward_Params { float Val; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.MordhauTakeDamage struct AAdvancedCharacter_MordhauTakeDamage_Params { float DamageAmount; // (Parm, ZeroConstructor, IsPlainOldData) struct FHitResult Hit; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) EMordhauDamageType DamageType; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char DamageSubType; // (Parm, ZeroConstructor, IsPlainOldData) class AActor* Source; // (Parm, ZeroConstructor, IsPlainOldData) class AActor* Agent; // (Parm, ZeroConstructor, IsPlainOldData) class AController* EventInstigator; // (Parm, ZeroConstructor, IsPlainOldData) float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.LookUpNotAbsolute struct AAdvancedCharacter_LookUpNotAbsolute_Params { float Value; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.LookUpAtRate struct AAdvancedCharacter_LookUpAtRate_Params { float Val; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.LookUp struct AAdvancedCharacter_LookUp_Params { float Val; // (Parm, ZeroConstructor, IsPlainOldData) bool bIsAbsolute; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.LeftOutOfBoundsArea struct AAdvancedCharacter_LeftOutOfBoundsArea_Params { }; // Function Mordhau.AdvancedCharacter.Knockback struct AAdvancedCharacter_Knockback_Params { struct FVector Amount; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.IsOutOfBounds struct AAdvancedCharacter_IsOutOfBounds_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.IsLocallyPlayerControlled struct AAdvancedCharacter_IsLocallyPlayerControlled_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.IsLocallyControlledOrUncontrolled struct AAdvancedCharacter_IsLocallyControlledOrUncontrolled_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.IsAirborne struct AAdvancedCharacter_IsAirborne_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.InteractionStart struct AAdvancedCharacter_InteractionStart_Params { class AAdvancedCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.InteractionEnd struct AAdvancedCharacter_InteractionEnd_Params { }; // Function Mordhau.AdvancedCharacter.Highlight struct AAdvancedCharacter_Highlight_Params { }; // Function Mordhau.AdvancedCharacter.GetRawLookUpValue struct AAdvancedCharacter_GetRawLookUpValue_Params { float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.GetOutOfBoundsTimeUntilDeath struct AAdvancedCharacter_GetOutOfBoundsTimeUntilDeath_Params { float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.GetLookUpValue struct AAdvancedCharacter_GetLookUpValue_Params { float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.GetIsDead struct AAdvancedCharacter_GetIsDead_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.GetIsBurning struct AAdvancedCharacter_GetIsBurning_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.GetDistanceIntoSmokeFieldSmoothed struct AAdvancedCharacter_GetDistanceIntoSmokeFieldSmoothed_Params { float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.GetDistanceIntoSmokeField struct AAdvancedCharacter_GetDistanceIntoSmokeField_Params { float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.GetBestStickyLocation struct AAdvancedCharacter_GetBestStickyLocation_Params { struct FVector InLocation; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) struct FVector OutLocation; // (Parm, OutParm, IsPlainOldData) struct FVector OutNormal; // (Parm, OutParm, IsPlainOldData) struct FName OutBone; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.GetArmorTierForBone struct AAdvancedCharacter_GetArmorTierForBone_Params { struct FName BoneName; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.GetAdditiveOverrideTypeNormalizedTime struct AAdvancedCharacter_GetAdditiveOverrideTypeNormalizedTime_Params { float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.GetAdditiveOverrideType struct AAdvancedCharacter_GetAdditiveOverrideType_Params { struct FName ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.EnteredOutOfBoundsArea struct AAdvancedCharacter_EnteredOutOfBoundsArea_Params { }; // Function Mordhau.AdvancedCharacter.DouseFire struct AAdvancedCharacter_DouseFire_Params { }; // Function Mordhau.AdvancedCharacter.CanInteract struct AAdvancedCharacter_CanInteract_Params { class AAdvancedCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.CanBleedOutFromHit struct AAdvancedCharacter_CanBleedOutFromHit_Params { struct FHitResult HitResult; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) EMordhauDamageType Type; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char SubType; // (Parm, ZeroConstructor, IsPlainOldData) class AActor* Source; // (Parm, ZeroConstructor, IsPlainOldData) class AActor* Agent; // (Parm, ZeroConstructor, IsPlainOldData) class AController* EventInstigator; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.BPLODTick struct AAdvancedCharacter_BPLODTick_Params { float DeltaTime; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.BeginFlinchAdditiveOverride struct AAdvancedCharacter_BeginFlinchAdditiveOverride_Params { struct FName FlinchOverrideName; // (ConstParm, Parm, OutParm, ZeroConstructor, ReferenceParm, IsPlainOldData) struct FName AltFlinchOverrideName; // (ConstParm, Parm, OutParm, ZeroConstructor, ReferenceParm, IsPlainOldData) float Duration; // (Parm, ZeroConstructor, IsPlainOldData) float Degree; // (Parm, ZeroConstructor, IsPlainOldData) bool bIsHead; // (Parm, ZeroConstructor, IsPlainOldData) float SnapDegreeToSteps; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.AssignNetDamage struct AAdvancedCharacter_AssignNetDamage_Params { unsigned char InType; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char InSubType; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char InBone; // (Parm, ZeroConstructor, IsPlainOldData) struct FVector InPoint; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) bool bInWillKill; // (Parm, ZeroConstructor, IsPlainOldData) bool bInSimulateFlinch; // (Parm, ZeroConstructor, IsPlainOldData) bool bInIDBit; // (Parm, ZeroConstructor, IsPlainOldData) class AActor* InDamageSource; // (Parm, ZeroConstructor, IsPlainOldData) class AActor* InDamageAgent; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.ApplyRagdollForce struct AAdvancedCharacter_ApplyRagdollForce_Params { float Angle; // (Parm, ZeroConstructor, IsPlainOldData) EMordhauDamageType Type; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char SubType; // (Parm, ZeroConstructor, IsPlainOldData) struct FName bone; // (Parm, ZeroConstructor, IsPlainOldData) struct FVector Point; // (Parm, IsPlainOldData) class AActor* Source; // (Parm, ZeroConstructor, IsPlainOldData) class AActor* Agent; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.AddWound struct AAdvancedCharacter_AddWound_Params { struct FVector ImpactPoint; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) struct FVector ImpactNormal; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) struct FName bone; // (Parm, ZeroConstructor, IsPlainOldData) class AActor* Agent; // (Parm, ZeroConstructor, IsPlainOldData) EMordhauDamageType DamageType; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char DamageSubType; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.AdvancedCharacter.AddTurnDegrees struct AAdvancedCharacter_AddTurnDegrees_Params { float Delta; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.ArmsWearable.GetHandsWearablesNum struct UArmsWearable_GetHandsWearablesNum_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.ArmsWearable.GetHandsWearable struct UArmsWearable_GetHandsWearable_Params { int Index; // (Parm, ZeroConstructor, IsPlainOldData) class UClass* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauMotion.ProcessFeint struct UMordhauMotion_ProcessFeint_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauMotion.ProcessBlock struct UMordhauMotion_ProcessBlock_Params { EBlockType Type; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauMotion.ProcessAttack struct UMordhauMotion_ProcessAttack_Params { EAttackMove Move; // (Parm, ZeroConstructor, IsPlainOldData) float Angle; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauMotion.OnTick struct UMordhauMotion_OnTick_Params { float DeltaTime; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauMotion.OnLeave struct UMordhauMotion_OnLeave_Params { bool Interrupted; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauMotion.OnLateTick struct UMordhauMotion_OnLateTick_Params { float DeltaTime; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauMotion.OnEnded struct UMordhauMotion_OnEnded_Params { }; // Function Mordhau.MordhauMotion.OnDynamicParamChanged struct UMordhauMotion_OnDynamicParamChanged_Params { unsigned char OldValue; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char NewValue; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauMotion.OnBegin struct UMordhauMotion_OnBegin_Params { }; // Function Mordhau.MordhauMotion.CanInitiateMotion struct UMordhauMotion_CanInitiateMotion_Params { class UClass* NewMotionType; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.AttackMotion.SetHasHitIncludingCosmeticHit struct UAttackMotion_SetHasHitIncludingCosmeticHit_Params { }; // Function Mordhau.BotProfile.AssignToController struct UBotProfile_AssignToController_Params { class AMordhauAIController* Controller; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.CapturePointBanner.UpdateVisuals struct ACapturePointBanner_UpdateVisuals_Params { }; // Function Mordhau.CapturePointBanner.InitializeBanner struct ACapturePointBanner_InitializeBanner_Params { class AControlPoint* OwningPoint; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauVehicle.UpdateFPCameraFor struct AMordhauVehicle_UpdateFPCameraFor_Params { class AMordhauCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) float DeltaSeconds; // (Parm, ZeroConstructor, IsPlainOldData) bool bRotationOnly; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauVehicle.UpdateAnimationFor struct AMordhauVehicle_UpdateAnimationFor_Params { class AMordhauCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) class UMordhauAnimInstance* AnimInst; // (Parm, ZeroConstructor, IsPlainOldData) float DeltaTime; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauVehicle.StopDriving struct AMordhauVehicle_StopDriving_Params { }; // Function Mordhau.MordhauVehicle.StartDriving struct AMordhauVehicle_StartDriving_Params { class AMordhauCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauVehicle.SetDriver struct AMordhauVehicle_SetDriver_Params { class AMordhauCharacter* NewDriver; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauVehicle.ServerSecondaryTurn struct AMordhauVehicle_ServerSecondaryTurn_Params { float NewTurn; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauVehicle.SecondaryTurnAtRate struct AMordhauVehicle_SecondaryTurnAtRate_Params { float Value; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauVehicle.SecondaryTurn struct AMordhauVehicle_SecondaryTurn_Params { float Value; // (Parm, ZeroConstructor, IsPlainOldData) bool bIsAbsolute; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauVehicle.RequestUse struct AMordhauVehicle_RequestUse_Params { }; // Function Mordhau.MordhauVehicle.PostProcessCameraPOV struct AMordhauVehicle_PostProcessCameraPOV_Params { struct FPOV InPOV; // (ConstParm, Parm, OutParm, ReferenceParm) struct FPOV ReturnValue; // (Parm, OutParm, ReturnParm) }; // Function Mordhau.MordhauVehicle.OverrideAttackAngle struct AMordhauVehicle_OverrideAttackAngle_Params { class UAttackMotion* Motion; // (Parm, ZeroConstructor, IsPlainOldData) float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauVehicle.OnStoppedDriving struct AMordhauVehicle_OnStoppedDriving_Params { class AMordhauCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauVehicle.OnStartedDriving struct AMordhauVehicle_OnStartedDriving_Params { class AMordhauCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauVehicle.OnRep_ReplicatedSecondaryTurnValue struct AMordhauVehicle_OnRep_ReplicatedSecondaryTurnValue_Params { }; // Function Mordhau.MordhauVehicle.KnockOffDriver struct AMordhauVehicle_KnockOffDriver_Params { class AMordhauCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauVehicle.GetVehicleLeaveInfo struct AMordhauVehicle_GetVehicleLeaveInfo_Params { class AMordhauCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) struct FTransform FromTransform; // (Parm, IsPlainOldData) struct FVehicleTransitionInfo ReturnValue; // (Parm, OutParm, ReturnParm) }; // Function Mordhau.MordhauVehicle.GetVehicleEnterInfo struct AMordhauVehicle_GetVehicleEnterInfo_Params { class AMordhauCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) struct FTransform FromTransform; // (Parm, IsPlainOldData) struct FVehicleTransitionInfo ReturnValue; // (Parm, OutParm, ReturnParm) }; // Function Mordhau.MordhauVehicle.GetExitTransform struct AMordhauVehicle_GetExitTransform_Params { struct FTransform ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauVehicle.DriverLateTick struct AMordhauVehicle_DriverLateTick_Params { class AMordhauCharacter* FromDriver; // (Parm, ZeroConstructor, IsPlainOldData) float DeltaTime; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauVehicle.CanDrive struct AMordhauVehicle_CanDrive_Params { class AMordhauCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.CharacterProfileBPWrapper.TogglePerk struct UCharacterProfileBPWrapper_TogglePerk_Params { unsigned char Perk; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.CharacterProfileBPWrapper.SetWearablePattern struct UCharacterProfileBPWrapper_SetWearablePattern_Params { unsigned char Slot; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char NewPattern; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.CharacterProfileBPWrapper.SetWearableId struct UCharacterProfileBPWrapper_SetWearableId_Params { unsigned char Slot; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char NewId; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.CharacterProfileBPWrapper.SetWearableColor struct UCharacterProfileBPWrapper_SetWearableColor_Params { unsigned char Slot; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char ColorIdx; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char NewColor; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.CharacterProfileBPWrapper.SetVoicePitch struct UCharacterProfileBPWrapper_SetVoicePitch_Params { unsigned char NewValue; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.CharacterProfileBPWrapper.SetVoice struct UCharacterProfileBPWrapper_SetVoice_Params { unsigned char NewValue; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.CharacterProfileBPWrapper.SetStrong struct UCharacterProfileBPWrapper_SetStrong_Params { unsigned char NewValue; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.CharacterProfileBPWrapper.SetSkinny struct UCharacterProfileBPWrapper_SetSkinny_Params { unsigned char NewValue; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.CharacterProfileBPWrapper.SetSkinColor struct UCharacterProfileBPWrapper_SetSkinColor_Params { unsigned char NewValue; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.CharacterProfileBPWrapper.SetProfileName struct UCharacterProfileBPWrapper_SetProfileName_Params { struct FText NewName; // (Parm) }; // Function Mordhau.CharacterProfileBPWrapper.SetMetalTint struct UCharacterProfileBPWrapper_SetMetalTint_Params { unsigned char NewValue; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.CharacterProfileBPWrapper.SetMetalRoughnessScale struct UCharacterProfileBPWrapper_SetMetalRoughnessScale_Params { unsigned char NewValue; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.CharacterProfileBPWrapper.SetIsFemale struct UCharacterProfileBPWrapper_SetIsFemale_Params { bool bNewValue; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.CharacterProfileBPWrapper.SetHairColor struct UCharacterProfileBPWrapper_SetHairColor_Params { unsigned char NewValue; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.CharacterProfileBPWrapper.SetHair struct UCharacterProfileBPWrapper_SetHair_Params { unsigned char NewValue; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.CharacterProfileBPWrapper.SetFat struct UCharacterProfileBPWrapper_SetFat_Params { unsigned char NewValue; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.CharacterProfileBPWrapper.SetFacialHair struct UCharacterProfileBPWrapper_SetFacialHair_Params { unsigned char NewValue; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.CharacterProfileBPWrapper.SetFace struct UCharacterProfileBPWrapper_SetFace_Params { unsigned char NewValue; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.CharacterProfileBPWrapper.SetEyeColor struct UCharacterProfileBPWrapper_SetEyeColor_Params { unsigned char NewValue; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.CharacterProfileBPWrapper.SetEyebrows struct UCharacterProfileBPWrapper_SetEyebrows_Params { unsigned char NewValue; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.CharacterProfileBPWrapper.SetEquipmentSkin struct UCharacterProfileBPWrapper_SetEquipmentSkin_Params { unsigned char Slot; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char NewSkin; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.CharacterProfileBPWrapper.SetEquipmentPattern struct UCharacterProfileBPWrapper_SetEquipmentPattern_Params { unsigned char Slot; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char NewPattern; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.CharacterProfileBPWrapper.SetEquipmentPartId struct UCharacterProfileBPWrapper_SetEquipmentPartId_Params { unsigned char Slot; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char PartIdx; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char NewPartId; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.CharacterProfileBPWrapper.SetEquipmentId struct UCharacterProfileBPWrapper_SetEquipmentId_Params { unsigned char Slot; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char NewId; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.CharacterProfileBPWrapper.SetEquipmentCustomizationDirect struct UCharacterProfileBPWrapper_SetEquipmentCustomizationDirect_Params { unsigned char Slot; // (Parm, ZeroConstructor, IsPlainOldData) struct FEquipmentCustomization NewCustomization; // (Parm) }; // Function Mordhau.CharacterProfileBPWrapper.SetEquipmentColor struct UCharacterProfileBPWrapper_SetEquipmentColor_Params { unsigned char Slot; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char ColorIdx; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char NewColor; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.CharacterProfileBPWrapper.SetEmblemColor struct UCharacterProfileBPWrapper_SetEmblemColor_Params { unsigned char ColorIdx; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char NewValue; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.CharacterProfileBPWrapper.SetEmblem struct UCharacterProfileBPWrapper_SetEmblem_Params { unsigned char NewValue; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.CharacterProfileBPWrapper.SetAge struct UCharacterProfileBPWrapper_SetAge_Params { unsigned char NewValue; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.CharacterProfileBPWrapper.RemoveAllEquipment struct UCharacterProfileBPWrapper_RemoveAllEquipment_Params { }; // Function Mordhau.CharacterProfileBPWrapper.HasPerk struct UCharacterProfileBPWrapper_HasPerk_Params { unsigned char Perk; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.CharacterProfileBPWrapper.ForceValidate struct UCharacterProfileBPWrapper_ForceValidate_Params { }; // Function Mordhau.ComboBoxText.SetSelectedOption struct UComboBoxText_SetSelectedOption_Params { struct FText Option; // (Parm) }; // Function Mordhau.ComboBoxText.RemoveOption struct UComboBoxText_RemoveOption_Params { struct FText Option; // (ConstParm, Parm, OutParm, ReferenceParm) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.ComboBoxText.RefreshOptions struct UComboBoxText_RefreshOptions_Params { }; // DelegateFunction Mordhau.ComboBoxText.OnSelectionChangedEvent__DelegateSignature struct UComboBoxText_OnSelectionChangedEvent__DelegateSignature_Params { struct FText SelectedItem; // (Parm) TEnumAsByte<ESelectInfo> SelectionType; // (Parm, ZeroConstructor, IsPlainOldData) }; // DelegateFunction Mordhau.ComboBoxText.OnOpeningEvent__DelegateSignature struct UComboBoxText_OnOpeningEvent__DelegateSignature_Params { }; // Function Mordhau.ComboBoxText.GetSelectedOption struct UComboBoxText_GetSelectedOption_Params { struct FText ReturnValue; // (Parm, OutParm, ReturnParm) }; // Function Mordhau.ComboBoxText.GetOptionCount struct UComboBoxText_GetOptionCount_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.ComboBoxText.GetOptionAtIndex struct UComboBoxText_GetOptionAtIndex_Params { int Index; // (Parm, ZeroConstructor, IsPlainOldData) struct FText ReturnValue; // (Parm, OutParm, ReturnParm) }; // Function Mordhau.ComboBoxText.FindOptionIndex struct UComboBoxText_FindOptionIndex_Params { struct FText Option; // (ConstParm, Parm, OutParm, ReferenceParm) int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.ComboBoxText.ClearSelection struct UComboBoxText_ClearSelection_Params { }; // Function Mordhau.ComboBoxText.ClearOptions struct UComboBoxText_ClearOptions_Params { }; // Function Mordhau.ComboBoxText.AddOption struct UComboBoxText_AddOption_Params { struct FText Option; // (ConstParm, Parm, OutParm, ReferenceParm) }; // Function Mordhau.ControlPoint.UpdateVisuals struct AControlPoint_UpdateVisuals_Params { }; // Function Mordhau.ControlPoint.UpdateUIWidgets struct AControlPoint_UpdateUIWidgets_Params { }; // Function Mordhau.ControlPoint.UpdateUIMaterialInstance struct AControlPoint_UpdateUIMaterialInstance_Params { }; // Function Mordhau.ControlPoint.UpdatePresenceNumbers struct AControlPoint_UpdatePresenceNumbers_Params { }; // Function Mordhau.ControlPoint.UpdateCaptureProgress struct AControlPoint_UpdateCaptureProgress_Params { float DeltaTime; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.ControlPoint.SetCaptureProgress struct AControlPoint_SetCaptureProgress_Params { float NewProgress; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char NewCaptor; // (Parm, ZeroConstructor, IsPlainOldData) bool bAwardScore; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.ControlPoint.OnStoppedFlashing struct AControlPoint_OnStoppedFlashing_Params { }; // Function Mordhau.ControlPoint.OnStartedFlashing struct AControlPoint_OnStartedFlashing_Params { }; // Function Mordhau.ControlPoint.OnRep_ReplicatedCaptureProgress struct AControlPoint_OnRep_ReplicatedCaptureProgress_Params { }; // Function Mordhau.ControlPoint.OnRep_OwningTeam struct AControlPoint_OnRep_OwningTeam_Params { }; // Function Mordhau.ControlPoint.OnRep_CapturingTeam struct AControlPoint_OnRep_CapturingTeam_Params { }; // Function Mordhau.ControlPoint.OnOwningTeamChanged struct AControlPoint_OnOwningTeamChanged_Params { }; // Function Mordhau.ControlPoint.OnCapturingTeamChanged struct AControlPoint_OnCapturingTeamChanged_Params { }; // Function Mordhau.ControlPoint.OnCaptureAreaEndOverlap struct AControlPoint_OnCaptureAreaEndOverlap_Params { class UPrimitiveComponent* OverlappedComp; // (Parm, ZeroConstructor, InstancedReference, IsPlainOldData) class AActor* Other; // (Parm, ZeroConstructor, IsPlainOldData) class UPrimitiveComponent* OtherComp; // (Parm, ZeroConstructor, InstancedReference, IsPlainOldData) int OtherBodyIndex; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.ControlPoint.OnCaptureAreaBeginOverlap struct AControlPoint_OnCaptureAreaBeginOverlap_Params { class UPrimitiveComponent* OverlappedComp; // (Parm, ZeroConstructor, InstancedReference, IsPlainOldData) class AActor* Other; // (Parm, ZeroConstructor, IsPlainOldData) class UPrimitiveComponent* OtherComp; // (Parm, ZeroConstructor, InstancedReference, IsPlainOldData) int OtherBodyIndex; // (Parm, ZeroConstructor, IsPlainOldData) bool bFromSweep; // (Parm, ZeroConstructor, IsPlainOldData) struct FHitResult SweepResult; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) }; // Function Mordhau.ControlPoint.EnemyLostPrerequisites struct AControlPoint_EnemyLostPrerequisites_Params { }; // Function Mordhau.ControlPoint.EnemyGainedPrerequisites struct AControlPoint_EnemyGainedPrerequisites_Params { }; // Function Mordhau.ControlPoint.CanCapture struct AControlPoint_CanCapture_Params { unsigned char Team; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.CreatureAnimInstance.OnFootstep struct UCreatureAnimInstance_OnFootstep_Params { int Limb; // (Parm, ZeroConstructor, IsPlainOldData) int SurfaceType; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.CreatureAnimInstance.DoFootstep struct UCreatureAnimInstance_DoFootstep_Params { int Limb; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.CustomizationReplicationActor.UpdateCharacterProfile struct ACustomizationReplicationActor_UpdateCharacterProfile_Params { class AMordhauCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.CustomizationReplicationActor.UnregisterCharacter struct ACustomizationReplicationActor_UnregisterCharacter_Params { class AMordhauCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.CustomizationReplicationActor.TriggerUpdateIfUpToDate struct ACustomizationReplicationActor_TriggerUpdateIfUpToDate_Params { }; // Function Mordhau.CustomizationReplicationActor.RegisterCharacter struct ACustomizationReplicationActor_RegisterCharacter_Params { class AMordhauCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.CustomizationReplicationActor.OnRep_ReplicatedWearablePattern struct ACustomizationReplicationActor_OnRep_ReplicatedWearablePattern_Params { }; // Function Mordhau.CustomizationReplicationActor.OnRep_ReplicatedWearableId struct ACustomizationReplicationActor_OnRep_ReplicatedWearableId_Params { }; // Function Mordhau.CustomizationReplicationActor.OnRep_ReplicatedWearableColor2 struct ACustomizationReplicationActor_OnRep_ReplicatedWearableColor2_Params { }; // Function Mordhau.CustomizationReplicationActor.OnRep_ReplicatedWearableColor1 struct ACustomizationReplicationActor_OnRep_ReplicatedWearableColor1_Params { }; // Function Mordhau.CustomizationReplicationActor.OnRep_ReplicatedSkillsCustomization struct ACustomizationReplicationActor_OnRep_ReplicatedSkillsCustomization_Params { }; // Function Mordhau.CustomizationReplicationActor.OnRep_ReplicatedFaceBonesTranslate struct ACustomizationReplicationActor_OnRep_ReplicatedFaceBonesTranslate_Params { }; // Function Mordhau.CustomizationReplicationActor.OnRep_ReplicatedFaceBonesScale struct ACustomizationReplicationActor_OnRep_ReplicatedFaceBonesScale_Params { }; // Function Mordhau.CustomizationReplicationActor.OnRep_ReplicatedFaceBonesRotate struct ACustomizationReplicationActor_OnRep_ReplicatedFaceBonesRotate_Params { }; // Function Mordhau.CustomizationReplicationActor.OnRep_ReplicatedDefaultEquipmentId struct ACustomizationReplicationActor_OnRep_ReplicatedDefaultEquipmentId_Params { }; // Function Mordhau.CustomizationReplicationActor.OnRep_ReplicatedAppearanceCustomization struct ACustomizationReplicationActor_OnRep_ReplicatedAppearanceCustomization_Params { }; // Function Mordhau.CustomizationReplicationActor.IsUpToDate struct ACustomizationReplicationActor_IsUpToDate_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.CustomizationReplicationActor.AssignDataFromProfile struct ACustomizationReplicationActor_AssignDataFromProfile_Params { struct FCharacterProfile Profile; // (ConstParm, Parm, OutParm, ReferenceParm) }; // Function Mordhau.EmoteMotion.DoDrop struct UEmoteMotion_DoDrop_Params { class AMordhauEquipment* Equipment; // (Parm, ZeroConstructor, IsPlainOldData) struct FVector Force; // (Parm, IsPlainOldData) }; // Function Mordhau.EnvironmentMovable.InitializeMovable struct AEnvironmentMovable_InitializeMovable_Params { class USceneComponent* InSwayingComponent; // (Parm, ZeroConstructor, InstancedReference, IsPlainOldData) struct FVector InRollPitchYawFrequency; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) struct FVector InRollPitchYawMagnitude; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) struct FVector InRollPitchYawSpeed; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) }; // Function Mordhau.EquipmentSwitchMotion.GetSwitchingTo struct UEquipmentSwitchMotion_GetSwitchingTo_Params { class AMordhauEquipment* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauActor.UpdateThudVelocity struct AMordhauActor_UpdateThudVelocity_Params { float NewThudVelocity; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauActor.UnHighlight struct AMordhauActor_UnHighlight_Params { }; // Function Mordhau.MordhauActor.PostInteractionWidgetCreated struct AMordhauActor_PostInteractionWidgetCreated_Params { }; // Function Mordhau.MordhauActor.OnUsedToKillOther struct AMordhauActor_OnUsedToKillOther_Params { class AAdvancedCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) EMordhauDamageType Type; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char SubType; // (Parm, ZeroConstructor, IsPlainOldData) struct FName bone; // (Parm, ZeroConstructor, IsPlainOldData) struct FVector Point; // (Parm, IsPlainOldData) class AActor* Source; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauActor.OnThud struct AMordhauActor_OnThud_Params { }; // Function Mordhau.MordhauActor.OnRep_ReplicatedThud struct AMordhauActor_OnRep_ReplicatedThud_Params { }; // Function Mordhau.MordhauActor.OnReceiveCosmeticHit struct AMordhauActor_OnReceiveCosmeticHit_Params { class AActor* Source; // (Parm, ZeroConstructor, IsPlainOldData) class AActor* Agent; // (Parm, ZeroConstructor, IsPlainOldData) EAttackMove Move; // (Parm, ZeroConstructor, IsPlainOldData) struct FHitResult Hit; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) }; // Function Mordhau.MordhauActor.OnPostDismemberedOther struct AMordhauActor_OnPostDismemberedOther_Params { struct FName bone; // (Parm, ZeroConstructor, IsPlainOldData) class ASeparatedBodyPart* Part; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauActor.OnLocalPlayerUsedToKillOther struct AMordhauActor_OnLocalPlayerUsedToKillOther_Params { class AAdvancedCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) EMordhauDamageType Type; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char SubType; // (Parm, ZeroConstructor, IsPlainOldData) struct FName bone; // (Parm, ZeroConstructor, IsPlainOldData) struct FVector Point; // (Parm, IsPlainOldData) class AActor* Source; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauActor.OnInteractPassively struct AMordhauActor_OnInteractPassively_Params { class AMordhauCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauActor.OnInteractionStart struct AMordhauActor_OnInteractionStart_Params { class AMordhauCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauActor.OnInteractionEnd struct AMordhauActor_OnInteractionEnd_Params { }; // Function Mordhau.MordhauActor.OnHighlightStart struct AMordhauActor_OnHighlightStart_Params { }; // Function Mordhau.MordhauActor.OnHighlightEnd struct AMordhauActor_OnHighlightEnd_Params { }; // Function Mordhau.MordhauActor.OnHeldInteractionStart struct AMordhauActor_OnHeldInteractionStart_Params { class AMordhauCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauActor.InteractPassively struct AMordhauActor_InteractPassively_Params { class AMordhauCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauActor.InteractionStart struct AMordhauActor_InteractionStart_Params { class AMordhauCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauActor.InteractionEnd struct AMordhauActor_InteractionEnd_Params { }; // Function Mordhau.MordhauActor.Highlight struct AMordhauActor_Highlight_Params { }; // Function Mordhau.MordhauActor.HeldInteractionStart struct AMordhauActor_HeldInteractionStart_Params { class AMordhauCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauActor.CanInteractPassively struct AMordhauActor_CanInteractPassively_Params { class AMordhauCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauActor.CanInteract struct AMordhauActor_CanInteract_Params { class AMordhauCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauActor.CanHeldInteract struct AMordhauActor_CanHeldInteract_Params { class AMordhauCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauEquipment.UpdateMaterial struct AMordhauEquipment_UpdateMaterial_Params { class USkeletalMeshComponent* SkeletalMeshComp; // (Parm, ZeroConstructor, InstancedReference, IsPlainOldData) }; // Function Mordhau.MordhauEquipment.UpdateInteractionCollision struct AMordhauEquipment_UpdateInteractionCollision_Params { }; // Function Mordhau.MordhauEquipment.UpdateEquipmentVisualState struct AMordhauEquipment_UpdateEquipmentVisualState_Params { }; // Function Mordhau.MordhauEquipment.UpdateEquipmentState struct AMordhauEquipment_UpdateEquipmentState_Params { }; // Function Mordhau.MordhauEquipment.SwitchMode struct AMordhauEquipment_SwitchMode_Params { }; // Function Mordhau.MordhauEquipment.StopThrownTrail struct AMordhauEquipment_StopThrownTrail_Params { }; // Function Mordhau.MordhauEquipment.StartThrownTrail struct AMordhauEquipment_StartThrownTrail_Params { }; // Function Mordhau.MordhauEquipment.ShouldShine struct AMordhauEquipment_ShouldShine_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauEquipment.SetPartsUseAuxiliaryMesh struct AMordhauEquipment_SetPartsUseAuxiliaryMesh_Params { bool bNewValue; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauEquipment.SetParts struct AMordhauEquipment_SetParts_Params { TArray<unsigned char> NewPartsId; // (Parm, ZeroConstructor) bool bRebuild; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauEquipment.SetLoaded struct AMordhauEquipment_SetLoaded_Params { bool bNewLoaded; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauEquipment.SetColors struct AMordhauEquipment_SetColors_Params { TArray<unsigned char> NewColors; // (Parm, ZeroConstructor) }; // Function Mordhau.MordhauEquipment.SetAmmo struct AMordhauEquipment_SetAmmo_Params { unsigned char NewAmmo; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauEquipment.RestockOtherEquipmentOnCharacter struct AMordhauEquipment_RestockOtherEquipmentOnCharacter_Params { class AMordhauCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauEquipment.ResetMeshRelativeTransform struct AMordhauEquipment_ResetMeshRelativeTransform_Params { }; // Function Mordhau.MordhauEquipment.RequestAttack struct AMordhauEquipment_RequestAttack_Params { EAttackMove Move; // (Parm, ZeroConstructor, IsPlainOldData) float Angle; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauEquipment.RebuildIfAllReplicated struct AMordhauEquipment_RebuildIfAllReplicated_Params { }; // Function Mordhau.MordhauEquipment.RebuildEquipment struct AMordhauEquipment_RebuildEquipment_Params { bool bDoOnlyQuickJob; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauEquipment.OnRequestModeSwitch struct AMordhauEquipment_OnRequestModeSwitch_Params { class AMordhauCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauEquipment.OnRequestFire struct AMordhauEquipment_OnRequestFire_Params { class AMordhauCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauEquipment.OnRep_ReplicatedSkin struct AMordhauEquipment_OnRep_ReplicatedSkin_Params { }; // Function Mordhau.MordhauEquipment.OnRep_ReplicatedPattern struct AMordhauEquipment_OnRep_ReplicatedPattern_Params { }; // Function Mordhau.MordhauEquipment.OnRep_ReplicatedPartsId struct AMordhauEquipment_OnRep_ReplicatedPartsId_Params { }; // Function Mordhau.MordhauEquipment.OnRep_ReplicatedEmblemColors struct AMordhauEquipment_OnRep_ReplicatedEmblemColors_Params { }; // Function Mordhau.MordhauEquipment.OnRep_ReplicatedEmblem struct AMordhauEquipment_OnRep_ReplicatedEmblem_Params { }; // Function Mordhau.MordhauEquipment.OnRep_ReplicatedColors struct AMordhauEquipment_OnRep_ReplicatedColors_Params { }; // Function Mordhau.MordhauEquipment.OnRep_IsUsingAlternateMode struct AMordhauEquipment_OnRep_IsUsingAlternateMode_Params { }; // Function Mordhau.MordhauEquipment.OnRep_IsLoaded struct AMordhauEquipment_OnRep_IsLoaded_Params { }; // Function Mordhau.MordhauEquipment.OnRep_Ammo struct AMordhauEquipment_OnRep_Ammo_Params { }; // Function Mordhau.MordhauEquipment.OnPickedUp struct AMordhauEquipment_OnPickedUp_Params { class AMordhauCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauEquipment.OnPartsChanged struct AMordhauEquipment_OnPartsChanged_Params { }; // Function Mordhau.MordhauEquipment.OnLoadedChanged struct AMordhauEquipment_OnLoadedChanged_Params { }; // Function Mordhau.MordhauEquipment.OnHolsteredOrDropped struct AMordhauEquipment_OnHolsteredOrDropped_Params { class AMordhauCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauEquipment.OnHolstered struct AMordhauEquipment_OnHolstered_Params { class AMordhauCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauEquipment.OnEquipped struct AMordhauEquipment_OnEquipped_Params { class AMordhauCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauEquipment.OnDropped struct AMordhauEquipment_OnDropped_Params { class AMordhauCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauEquipment.OnAmmoChanged struct AMordhauEquipment_OnAmmoChanged_Params { }; // Function Mordhau.MordhauEquipment.LocalPlayerTick struct AMordhauEquipment_LocalPlayerTick_Params { float DeltaTime; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauEquipment.LocalPlayerLateTick struct AMordhauEquipment_LocalPlayerLateTick_Params { float DeltaTime; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauEquipment.LateTick struct AMordhauEquipment_LateTick_Params { float DeltaSeconds; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauEquipment.GetRandomCustomization struct AMordhauEquipment_GetRandomCustomization_Params { bool bOnlyColors; // (Parm, ZeroConstructor, IsPlainOldData) struct FEquipmentCustomization ReturnValue; // (Parm, OutParm, ReturnParm) }; // Function Mordhau.MordhauEquipment.GetParentCharacter struct AMordhauEquipment_GetParentCharacter_Params { class AMordhauCharacter* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauEquipment.GetCurrentMaxAmmo struct AMordhauEquipment_GetCurrentMaxAmmo_Params { unsigned char ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauEquipment.GetAmmo struct AMordhauEquipment_GetAmmo_Params { unsigned char ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauEquipment.FireProjectile_Internal struct AMordhauEquipment_FireProjectile_Internal_Params { struct FVector InOrigin; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) struct FRotator InOrientation; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) class AController* Controller; // (Parm, ZeroConstructor, IsPlainOldData) float ExpectedDelay; // (Parm, ZeroConstructor, IsPlainOldData) bool bIsLocal; // (Parm, ZeroConstructor, IsPlainOldData) class AMordhauProjectile* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauEquipment.FireProjectile struct AMordhauEquipment_FireProjectile_Params { struct FVector Origin; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) struct FRotator Orientation; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) class AController* OwningController; // (Parm, ZeroConstructor, IsPlainOldData) float ExpectedDelay; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauEquipment.FindCurrentHolsterInfo struct AMordhauEquipment_FindCurrentHolsterInfo_Params { struct FEquipmentHolsterInfo ReturnValue; // (Parm, OutParm, ReturnParm) }; // Function Mordhau.MordhauEquipment.EquipmentCommand struct AMordhauEquipment_EquipmentCommand_Params { int Command; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauEquipment.DestroyPhysicsProxy struct AMordhauEquipment_DestroyPhysicsProxy_Params { }; // Function Mordhau.MordhauEquipment.ComputeAccurateBounds struct AMordhauEquipment_ComputeAccurateBounds_Params { struct FBoxSphereBounds ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauEquipment.CanPerformAttack struct AMordhauEquipment_CanPerformAttack_Params { class AMordhauCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) EAttackMove Move; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauEquipment.BelongsToCharacter struct AMordhauEquipment_BelongsToCharacter_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauEquipment.AssignCustomizationToProjectile struct AMordhauEquipment_AssignCustomizationToProjectile_Params { class AMordhauProjectile* Projectile; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauEquipment.AssignCustomization struct AMordhauEquipment_AssignCustomization_Params { struct FEquipmentCustomization Customization; // (ConstParm, Parm, OutParm, ReferenceParm) unsigned char CustomizationEmblem; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char CustomizationEmblemColor1; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char CustomizationEmblemColor2; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauWeapon.UpdateTrail struct AMordhauWeapon_UpdateTrail_Params { float Weight; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauWeapon.RequestBlock struct AMordhauWeapon_RequestBlock_Params { EBlockType BlockType; // (Parm, ZeroConstructor, IsPlainOldData) bool bAllowFTP; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauWeapon.OnWasBlocked struct AMordhauWeapon_OnWasBlocked_Params { EBlockedReason Reason; // (Parm, ZeroConstructor, IsPlainOldData) EAttackMove Move; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char SurfaceType; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauWeapon.OnHit struct AMordhauWeapon_OnHit_Params { class AActor* Actor; // (Parm, ZeroConstructor, IsPlainOldData) EAttackMove Move; // (Parm, ZeroConstructor, IsPlainOldData) struct FName bone; // (Parm, ZeroConstructor, IsPlainOldData) struct FVector WorldLocation; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) unsigned char Tier; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char SurfaceType; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauWeapon.OnCosmeticHit struct AMordhauWeapon_OnCosmeticHit_Params { EAttackMove Move; // (Parm, ZeroConstructor, IsPlainOldData) struct FHitResult Hit; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) }; // Function Mordhau.MordhauWeapon.OnBlockStarted struct AMordhauWeapon_OnBlockStarted_Params { EBlockType Type; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauWeapon.OnBlocked struct AMordhauWeapon_OnBlocked_Params { EBlockedReason Reason; // (Parm, ZeroConstructor, IsPlainOldData) EAttackMove Move; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauWeapon.OnAttackStopped struct AMordhauWeapon_OnAttackStopped_Params { }; // Function Mordhau.MordhauWeapon.OnAttackStarted struct AMordhauWeapon_OnAttackStarted_Params { EAttackMove Move; // (Parm, ZeroConstructor, IsPlainOldData) float Angle; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauWeapon.IncreaseBloodLevel struct AMordhauWeapon_IncreaseBloodLevel_Params { float Amount; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauWeapon.GetBaseAttackInfo struct AMordhauWeapon_GetBaseAttackInfo_Params { EAttackMove Move; // (Parm, ZeroConstructor, IsPlainOldData) struct FAttackInfo ReturnValue; // (ConstParm, Parm, OutParm, ReturnParm, ReferenceParm) }; // Function Mordhau.VirtualWeapon.InitializeVirtualWeapon struct AVirtualWeapon_InitializeVirtualWeapon_Params { class AMordhauCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.GameModeMetadata.GetDefaultObject struct UGameModeMetadata_GetDefaultObject_Params { class UClass* MetadataClass; // (Parm, ZeroConstructor, IsPlainOldData) class UGameModeMetadata* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.HeadWearable.GetCoifWearablesNum struct UHeadWearable_GetCoifWearablesNum_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.HeadWearable.GetCoifWearable struct UHeadWearable_GetCoifWearable_Params { int Index; // (Parm, ZeroConstructor, IsPlainOldData) class UClass* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.Horse.SpawnTurd struct AHorse_SpawnTurd_Params { }; // Function Mordhau.Horse.ServerRequestRearing struct AHorse_ServerRequestRearing_Params { }; // Function Mordhau.Horse.SecondaryTurnNotAbsolute struct AHorse_SecondaryTurnNotAbsolute_Params { float Value; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.Horse.RequestRearing struct AHorse_RequestRearing_Params { }; // Function Mordhau.Horse.OnRep_ReplicatedRearing struct AHorse_OnRep_ReplicatedRearing_Params { }; // Function Mordhau.Horse.OnBumpCapsuleOverlapped struct AHorse_OnBumpCapsuleOverlapped_Params { class UPrimitiveComponent* OverlappedComp; // (Parm, ZeroConstructor, InstancedReference, IsPlainOldData) class AActor* Other; // (Parm, ZeroConstructor, IsPlainOldData) class UPrimitiveComponent* OtherComp; // (Parm, ZeroConstructor, InstancedReference, IsPlainOldData) int OtherBodyIndex; // (Parm, ZeroConstructor, IsPlainOldData) bool bFromSweep; // (Parm, ZeroConstructor, IsPlainOldData) struct FHitResult SweepResult; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) }; // Function Mordhau.Horse.GetIsInRearingMode struct AHorse_GetIsInRearingMode_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.Horse.CalculateBumpDamage struct AHorse_CalculateBumpDamage_Params { struct FVector OurWorldVelocity; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.InteractionComponent.UnHighlight struct UInteractionComponent_UnHighlight_Params { }; // Function Mordhau.InteractionComponent.OnInteractionStart struct UInteractionComponent_OnInteractionStart_Params { class AAdvancedCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.InteractionComponent.OnInteractionEnd struct UInteractionComponent_OnInteractionEnd_Params { }; // Function Mordhau.InteractionComponent.OnHighlightStart struct UInteractionComponent_OnHighlightStart_Params { }; // Function Mordhau.InteractionComponent.OnHighlightEnd struct UInteractionComponent_OnHighlightEnd_Params { }; // Function Mordhau.InteractionComponent.InteractionStart struct UInteractionComponent_InteractionStart_Params { class AAdvancedCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.InteractionComponent.InteractionEnd struct UInteractionComponent_InteractionEnd_Params { }; // Function Mordhau.InteractionComponent.Highlight struct UInteractionComponent_Highlight_Params { }; // Function Mordhau.InteractionComponent.CanInteract struct UInteractionComponent_CanInteract_Params { class AAdvancedCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.LegsWearable.GetFeetWearablesNum struct ULegsWearable_GetFeetWearablesNum_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.LegsWearable.GetFeetWearable struct ULegsWearable_GetFeetWearable_Params { int Index; // (Parm, ZeroConstructor, IsPlainOldData) class UClass* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MasterField.UpdateField struct AMasterField_UpdateField_Params { }; // Function Mordhau.MasterField.SetSubFieldsHidden struct AMasterField_SetSubFieldsHidden_Params { bool bAreHidden; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MasterField.RecomputeCombinedBoundingBox struct AMasterField_RecomputeCombinedBoundingBox_Params { }; // Function Mordhau.MasterField.GetSubFields struct AMasterField_GetSubFields_Params { TArray<class ASubField*> ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm) }; // Function Mordhau.MasterField.GetFieldBoundsCenter struct AMasterField_GetFieldBoundsCenter_Params { struct FVector ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MasterField.DeactivateAndDestroyField struct AMasterField_DeactivateAndDestroyField_Params { }; // Function Mordhau.MasterField.CreateField struct AMasterField_CreateField_Params { }; // Function Mordhau.MasterField.ComputeDistanceIntoField struct AMasterField_ComputeDistanceIntoField_Params { struct FVector Location; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MasterField.BeginFieldDeactivation struct AMasterField_BeginFieldDeactivation_Params { }; // Function Mordhau.Mordhau1DVehicle.OnStepChanged struct AMordhau1DVehicle_OnStepChanged_Params { }; // Function Mordhau.MordhauAIController.UpdatePerceptionInfo struct AMordhauAIController_UpdatePerceptionInfo_Params { class AAdvancedCharacter* InCharacter; // (Parm, ZeroConstructor, IsPlainOldData) struct FPerceptionInfo PerceptionInfo; // (Parm, OutParm) }; // Function Mordhau.MordhauAIController.StartFacingMovement struct AMordhauAIController_StartFacingMovement_Params { float LocationUpOffset; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauAIController.StartFacingLocation struct AMordhauAIController_StartFacingLocation_Params { struct FVector WorldLocation; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) }; // Function Mordhau.MordhauAIController.StartFacingBone struct AMordhauAIController_StartFacingBone_Params { class USkeletalMeshComponent* SkelMesh; // (Parm, ZeroConstructor, InstancedReference, IsPlainOldData) struct FName BoneToFace; // (Parm, ZeroConstructor, IsPlainOldData) float LocationUpOffset; // (Parm, ZeroConstructor, IsPlainOldData) struct FVector2D DegreeOffset; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) }; // Function Mordhau.MordhauAIController.StartFacingActor2D struct AMordhauAIController_StartFacingActor2D_Params { class AActor* Actor; // (Parm, ZeroConstructor, IsPlainOldData) float LocationUpOffset; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauAIController.StartFacingActor struct AMordhauAIController_StartFacingActor_Params { class AActor* Actor; // (Parm, ZeroConstructor, IsPlainOldData) float LocationUpOffset; // (Parm, ZeroConstructor, IsPlainOldData) struct FVector2D DegreeOffset; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) }; // Function Mordhau.MordhauAIController.RequestVoiceCommand struct AMordhauAIController_RequestVoiceCommand_Params { unsigned char Command; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauAIController.RefreshCharacterProfile struct AMordhauAIController_RefreshCharacterProfile_Params { }; // Function Mordhau.MordhauAIController.PerceivesEnemy struct AMordhauAIController_PerceivesEnemy_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauAIController.PerceivesAlly struct AMordhauAIController_PerceivesAlly_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauAIController.OnStoppedPerceivingCharacter struct AMordhauAIController_OnStoppedPerceivingCharacter_Params { class AAdvancedCharacter* PerceivedCharacter; // (Parm, ZeroConstructor, IsPlainOldData) struct FPerceptionInfo PerceptionInfo; // (ConstParm, Parm, OutParm, ReferenceParm) }; // Function Mordhau.MordhauAIController.OnStartedPerceivingCharacter struct AMordhauAIController_OnStartedPerceivingCharacter_Params { class AAdvancedCharacter* PerceivedCharacter; // (Parm, ZeroConstructor, IsPlainOldData) struct FPerceptionInfo PerceptionInfo; // (ConstParm, Parm, OutParm, ReferenceParm) }; // Function Mordhau.MordhauAIController.OnPerceptionUpdated struct AMordhauAIController_OnPerceptionUpdated_Params { TArray<class AActor*> InUpdatedActors; // (ConstParm, Parm, OutParm, ZeroConstructor, ReferenceParm) }; // Function Mordhau.MordhauAIController.OnCharacterDiedOrDestroyed struct AMordhauAIController_OnCharacterDiedOrDestroyed_Params { class AAdvancedCharacter* AdvancedCharacter; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauAIController.OnAfterUnPossess struct AMordhauAIController_OnAfterUnPossess_Params { }; // Function Mordhau.MordhauAIController.GetTeam struct AMordhauAIController_GetTeam_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauAIController.GetPerceivedEnemies struct AMordhauAIController_GetPerceivedEnemies_Params { TArray<class AMordhauCharacter*> ReturnValue; // (ConstParm, Parm, OutParm, ZeroConstructor, ReturnParm) }; // Function Mordhau.MordhauAIController.GetPerceivedAllies struct AMordhauAIController_GetPerceivedAllies_Params { TArray<class AMordhauCharacter*> ReturnValue; // (ConstParm, Parm, OutParm, ZeroConstructor, ReturnParm) }; // Function Mordhau.MordhauAIController.GetMotionBasedRandom struct AMordhauAIController_GetMotionBasedRandom_Params { float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauAIController.GetKthClosestOfThree struct AMordhauAIController_GetKthClosestOfThree_Params { int Idx; // (Parm, ZeroConstructor, IsPlainOldData) class AMordhauCharacter* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauAIController.GetCurrentlyFacingActor struct AMordhauAIController_GetCurrentlyFacingActor_Params { class AActor* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauAIController.GetCurrentFacingMode struct AMordhauAIController_GetCurrentFacingMode_Params { EAIFacingMode ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauAIController.GetClosestEnemy struct AMordhauAIController_GetClosestEnemy_Params { class AMordhauCharacter* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauAIController.GetClosestAlly struct AMordhauAIController_GetClosestAlly_Params { class AMordhauCharacter* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauAIController.GetAllyClearanceSides struct AMordhauAIController_GetAllyClearanceSides_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauAIController.DestroyController struct AMordhauAIController_DestroyController_Params { }; // Function Mordhau.MordhauCameraComponent.UpdateCamera struct UMordhauCameraComponent_UpdateCamera_Params { }; // Function Mordhau.MordhauCameraComponent.ComputeCameraPOV struct UMordhauCameraComponent_ComputeCameraPOV_Params { struct FPOV ReturnValue; // (Parm, OutParm, ReturnParm) }; // Function Mordhau.MordhauCameraManager.SetViewTargetBP struct AMordhauCameraManager_SetViewTargetBP_Params { class AActor* NewTarget; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCameraManager.SetCameraStyleBP struct AMordhauCameraManager_SetCameraStyleBP_Params { struct FName NewCameraStyle; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCameraManager.OnHitFlash struct AMordhauCameraManager_OnHitFlash_Params { bool bIsDirectional; // (Parm, ZeroConstructor, IsPlainOldData) class AActor* Source; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCameraManager.LeaveMapView struct AMordhauCameraManager_LeaveMapView_Params { }; // Function Mordhau.MordhauCameraManager.LeaveCustomization struct AMordhauCameraManager_LeaveCustomization_Params { }; // Function Mordhau.MordhauCameraManager.GetViewTargetBP struct AMordhauCameraManager_GetViewTargetBP_Params { class AActor* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCameraManager.GetIsInMapView struct AMordhauCameraManager_GetIsInMapView_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCameraManager.GetIsInCustomization struct AMordhauCameraManager_GetIsInCustomization_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCameraManager.GetCameraStyleBP struct AMordhauCameraManager_GetCameraStyleBP_Params { struct FName ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCameraManager.GetCameraCache struct AMordhauCameraManager_GetCameraCache_Params { struct FMinimalViewInfo ReturnValue; // (Parm, OutParm, ReturnParm) }; // Function Mordhau.MordhauCameraManager.EnterMapView struct AMordhauCameraManager_EnterMapView_Params { }; // Function Mordhau.MordhauCameraManager.EnterCustomization struct AMordhauCameraManager_EnterCustomization_Params { class AActor* CustomizationTarget; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.ValidateInteractionTarget struct AMordhauCharacter_ValidateInteractionTarget_Params { class AActor* TargetActor; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.UseReleased struct AMordhauCharacter_UseReleased_Params { }; // Function Mordhau.MordhauCharacter.UsePressed struct AMordhauCharacter_UsePressed_Params { }; // Function Mordhau.MordhauCharacter.UpdateWearableInstanceColorsAndPatterns struct AMordhauCharacter_UpdateWearableInstanceColorsAndPatterns_Params { }; // Function Mordhau.MordhauCharacter.UpdateQuiverMesh struct AMordhauCharacter_UpdateQuiverMesh_Params { }; // Function Mordhau.MordhauCharacter.UpdateLOD struct AMordhauCharacter_UpdateLOD_Params { float DeltaTime; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.UpdateFPCamera struct AMordhauCharacter_UpdateFPCamera_Params { float DeltaSeconds; // (Parm, ZeroConstructor, IsPlainOldData) float InLookUpValue; // (Parm, ZeroConstructor, IsPlainOldData) bool bOnlyUpdateRotation; // (Parm, ZeroConstructor, IsPlainOldData) struct FRotator Offset; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.UpdateAllSkeletalMeshComponentMaterials struct AMordhauCharacter_UpdateAllSkeletalMeshComponentMaterials_Params { }; // Function Mordhau.MordhauCharacter.TryDismember struct AMordhauCharacter_TryDismember_Params { struct FName bone; // (Parm, ZeroConstructor, IsPlainOldData) struct FVector Point; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) class AMordhauWeapon* Weapon; // (Parm, ZeroConstructor, IsPlainOldData) EAttackMove Move; // (Parm, ZeroConstructor, IsPlainOldData) bool bIsRagdollDismember; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.TryClimbing struct AMordhauCharacter_TryClimbing_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.SwitchToFists struct AMordhauCharacter_SwitchToFists_Params { }; // Function Mordhau.MordhauCharacter.SwitchModeAndReAttach struct AMordhauCharacter_SwitchModeAndReAttach_Params { class AMordhauEquipment* ToSwitch; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.SwitchEquipmentByIndex struct AMordhauCharacter_SwitchEquipmentByIndex_Params { unsigned char Index; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.SwitchEquipment struct AMordhauCharacter_SwitchEquipment_Params { class AMordhauEquipment* ToSwitch; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.StopSupersprint struct AMordhauCharacter_StopSupersprint_Params { }; // Function Mordhau.MordhauCharacter.StopStaminaRegen struct AMordhauCharacter_StopStaminaRegen_Params { float ExtraTime; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.StopSprinting struct AMordhauCharacter_StopSprinting_Params { }; // Function Mordhau.MordhauCharacter.StopMontage struct AMordhauCharacter_StopMontage_Params { class UAnimMontage* Montage; // (Parm, ZeroConstructor, IsPlainOldData) float FadeOut; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.StopListenForStrike360 struct AMordhauCharacter_StopListenForStrike360_Params { }; // Function Mordhau.MordhauCharacter.StopListenForStab360 struct AMordhauCharacter_StopListenForStab360_Params { }; // Function Mordhau.MordhauCharacter.StopCurrentVoiceCommand struct AMordhauCharacter_StopCurrentVoiceCommand_Params { }; // Function Mordhau.MordhauCharacter.StopCrouching struct AMordhauCharacter_StopCrouching_Params { }; // Function Mordhau.MordhauCharacter.StopAttackYell struct AMordhauCharacter_StopAttackYell_Params { }; // Function Mordhau.MordhauCharacter.StopAnim struct AMordhauCharacter_StopAnim_Params { float FadeOut; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.StartSupersprint struct AMordhauCharacter_StartSupersprint_Params { }; // Function Mordhau.MordhauCharacter.StartSprinting struct AMordhauCharacter_StartSprinting_Params { }; // Function Mordhau.MordhauCharacter.StartCrouching struct AMordhauCharacter_StartCrouching_Params { }; // Function Mordhau.MordhauCharacter.SprintReleased struct AMordhauCharacter_SprintReleased_Params { }; // Function Mordhau.MordhauCharacter.SprintPressed struct AMordhauCharacter_SprintPressed_Params { }; // Function Mordhau.MordhauCharacter.ShowEquipmentIfViewTarget struct AMordhauCharacter_ShowEquipmentIfViewTarget_Params { }; // Function Mordhau.MordhauCharacter.SetQuiver struct AMordhauCharacter_SetQuiver_Params { class UClass* NewQuiver; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.SetMaxAnimBlendWeight struct AMordhauCharacter_SetMaxAnimBlendWeight_Params { class UAnimMontage* Montage; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) float MaxAmount; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.SetMaterialParamsForMergedSlot struct AMordhauCharacter_SetMaterialParamsForMergedSlot_Params { struct FString Prefix; // (Parm, ZeroConstructor) class UMordhauWearable* Wearable; // (Parm, ZeroConstructor, IsPlainOldData) class UMaterialInstanceDynamic* Mid; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.SetMaterialParamsForLODMasterSlot struct AMordhauCharacter_SetMaterialParamsForLODMasterSlot_Params { struct FString Slot; // (Parm, ZeroConstructor) class UMordhauWearable* Wearable; // (Parm, ZeroConstructor, IsPlainOldData) class UMaterialInstanceDynamic* Mid; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.SetFaceCustomizationTranslate struct AMordhauCharacter_SetFaceCustomizationTranslate_Params { struct FName BoneName; // (Parm, ZeroConstructor, IsPlainOldData) struct FVector Vector; // (Parm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.SetFaceCustomizationScale struct AMordhauCharacter_SetFaceCustomizationScale_Params { struct FName BoneName; // (Parm, ZeroConstructor, IsPlainOldData) struct FVector Vector; // (Parm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.SetFaceCustomizationRotate struct AMordhauCharacter_SetFaceCustomizationRotate_Params { struct FName BoneName; // (Parm, ZeroConstructor, IsPlainOldData) struct FVector Vector; // (Parm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.SetCustomizationReplicationActor struct AMordhauCharacter_SetCustomizationReplicationActor_Params { class ACustomizationReplicationActor* CRA; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.SetCurrentlyTracking struct AMordhauCharacter_SetCurrentlyTracking_Params { class AActor* NewTrackingTarget; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.SetCameraStyle struct AMordhauCharacter_SetCameraStyle_Params { unsigned char NewStyle; // (Parm, ZeroConstructor, IsPlainOldData) bool bBlendCamera; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.SetAnimRate struct AMordhauCharacter_SetAnimRate_Params { class UAnimMontage* Montage; // (Parm, ZeroConstructor, IsPlainOldData) float NewRate; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.SetAnimPosition struct AMordhauCharacter_SetAnimPosition_Params { class UAnimMontage* Montage; // (Parm, ZeroConstructor, IsPlainOldData) float NewPosition; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.ServerSuggestHitDetection struct AMordhauCharacter_ServerSuggestHitDetection_Params { class AAdvancedCharacter* OtherCharacter; // (Parm, ZeroConstructor, IsPlainOldData) struct FVector_NetQuantize HitLocation; // (Parm) unsigned char BoneId; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.ServerSetInteractionTarget struct AMordhauCharacter_ServerSetInteractionTarget_Params { class AActor* Target; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.ServerRequestVoiceCommand struct AMordhauCharacter_ServerRequestVoiceCommand_Params { unsigned char VoiceRequest; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.ServerRequestPing struct AMordhauCharacter_ServerRequestPing_Params { }; // Function Mordhau.MordhauCharacter.ServerRequestPassiveInteraction struct AMordhauCharacter_ServerRequestPassiveInteraction_Params { class AActor* Target; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.ServerRequestDodge struct AMordhauCharacter_ServerRequestDodge_Params { unsigned char PackedWorldYaw; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.ServerQueueAttack struct AMordhauCharacter_ServerQueueAttack_Params { EAttackMove Move; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char Angle; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char MotionID; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.ServerDropParry struct AMordhauCharacter_ServerDropParry_Params { unsigned char MotionID; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.ServerAssignNetMotion struct AMordhauCharacter_ServerAssignNetMotion_Params { struct FNetMotion NewNetMotion; // (ConstParm, Parm, ReferenceParm) unsigned char LastAuthObserved; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.ServerAssignFireAim struct AMordhauCharacter_ServerAssignFireAim_Params { struct FVector Orig; // (ConstParm, Parm, ReferenceParm, IsPlainOldData) struct FRotator Rot; // (ConstParm, Parm, ReferenceParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.ReweightSkinning struct AMordhauCharacter_ReweightSkinning_Params { int BoneFrom; // (Parm, ZeroConstructor, IsPlainOldData) int BoneTo; // (Parm, ZeroConstructor, IsPlainOldData) bool bIncludeChildren; // (Parm, ZeroConstructor, IsPlainOldData) struct FVector ExceptNearThisPoint; // (Parm, IsPlainOldData) float Radius; // (Parm, ZeroConstructor, IsPlainOldData) struct FName NearPointBone; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.RestockDefaultEquipment struct AMordhauCharacter_RestockDefaultEquipment_Params { int MaxSlotsToRestock; // (Parm, ZeroConstructor, IsPlainOldData) TArray<class AMordhauEquipment*> ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm) }; // Function Mordhau.MordhauCharacter.RequestVoiceCommand struct AMordhauCharacter_RequestVoiceCommand_Params { unsigned char CommandType; // (Parm, ZeroConstructor, IsPlainOldData) bool bAllowQueue; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.RequestUse struct AMordhauCharacter_RequestUse_Params { }; // Function Mordhau.MordhauCharacter.RequestToggleWeaponMode struct AMordhauCharacter_RequestToggleWeaponMode_Params { }; // Function Mordhau.MordhauCharacter.RequestStrike360 struct AMordhauCharacter_RequestStrike360_Params { }; // Function Mordhau.MordhauCharacter.RequestStab360 struct AMordhauCharacter_RequestStab360_Params { }; // Function Mordhau.MordhauCharacter.RequestRightUpperStrike struct AMordhauCharacter_RequestRightUpperStrike_Params { }; // Function Mordhau.MordhauCharacter.RequestRightStrike struct AMordhauCharacter_RequestRightStrike_Params { }; // Function Mordhau.MordhauCharacter.RequestRightStab struct AMordhauCharacter_RequestRightStab_Params { }; // Function Mordhau.MordhauCharacter.RequestRightLowerStrike struct AMordhauCharacter_RequestRightLowerStrike_Params { }; // Function Mordhau.MordhauCharacter.RequestRangedCancel struct AMordhauCharacter_RequestRangedCancel_Params { }; // Function Mordhau.MordhauCharacter.RequestParry struct AMordhauCharacter_RequestParry_Params { EBlockType BlockType; // (Parm, ZeroConstructor, IsPlainOldData) bool bAllowFTP; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.RequestLeftUpperStrike struct AMordhauCharacter_RequestLeftUpperStrike_Params { }; // Function Mordhau.MordhauCharacter.RequestLeftStrike struct AMordhauCharacter_RequestLeftStrike_Params { }; // Function Mordhau.MordhauCharacter.RequestLeftStab struct AMordhauCharacter_RequestLeftStab_Params { }; // Function Mordhau.MordhauCharacter.RequestLeftLowerStrike struct AMordhauCharacter_RequestLeftLowerStrike_Params { }; // Function Mordhau.MordhauCharacter.RequestKick struct AMordhauCharacter_RequestKick_Params { }; // Function Mordhau.MordhauCharacter.RequestJump struct AMordhauCharacter_RequestJump_Params { }; // Function Mordhau.MordhauCharacter.RequestHolster struct AMordhauCharacter_RequestHolster_Params { unsigned char Mode; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.RequestFire struct AMordhauCharacter_RequestFire_Params { }; // Function Mordhau.MordhauCharacter.RequestFeint struct AMordhauCharacter_RequestFeint_Params { }; // Function Mordhau.MordhauCharacter.RequestEmote struct AMordhauCharacter_RequestEmote_Params { unsigned char EmoteId; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.RequestDrop struct AMordhauCharacter_RequestDrop_Params { }; // Function Mordhau.MordhauCharacter.RequestCouchedAttack struct AMordhauCharacter_RequestCouchedAttack_Params { }; // Function Mordhau.MordhauCharacter.RequestClimb struct AMordhauCharacter_RequestClimb_Params { struct FVector TargetLocation; // (Parm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.RequestBash struct AMordhauCharacter_RequestBash_Params { }; // Function Mordhau.MordhauCharacter.RequestAttack struct AMordhauCharacter_RequestAttack_Params { EAttackMove Move; // (Parm, ZeroConstructor, IsPlainOldData) float Angle; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.ReplicateStamina struct AMordhauCharacter_ReplicateStamina_Params { }; // Function Mordhau.MordhauCharacter.QueueDismember struct AMordhauCharacter_QueueDismember_Params { struct FName bone; // (Parm, ZeroConstructor, IsPlainOldData) bool bIsDismemberPartial; // (Parm, ZeroConstructor, IsPlainOldData) bool bIsBluntForce; // (Parm, ZeroConstructor, IsPlainOldData) struct FVector Force; // (Parm, IsPlainOldData) class AActor* Agent; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.PlaySnappyArmorFoley struct AMordhauCharacter_PlaySnappyArmorFoley_Params { class UAudioComponent* ReturnValue; // (ExportObject, Parm, OutParm, ZeroConstructor, ReturnParm, InstancedReference, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.PlayNonSnappyArmorFoley struct AMordhauCharacter_PlayNonSnappyArmorFoley_Params { class UAudioComponent* ReturnValue; // (ExportObject, Parm, OutParm, ZeroConstructor, ReturnParm, InstancedReference, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.PlayMouthSound struct AMordhauCharacter_PlayMouthSound_Params { class USoundBase* Sound; // (Parm, ZeroConstructor, IsPlainOldData) float VolumeMultiplier; // (Parm, ZeroConstructor, IsPlainOldData) class UAudioComponent* ReturnValue; // (ExportObject, Parm, OutParm, ZeroConstructor, ReturnParm, InstancedReference, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.PlayHurtYell struct AMordhauCharacter_PlayHurtYell_Params { }; // Function Mordhau.MordhauCharacter.PlayDeathYell struct AMordhauCharacter_PlayDeathYell_Params { bool bIsLongYell; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.PlayAttackYell struct AMordhauCharacter_PlayAttackYell_Params { }; // Function Mordhau.MordhauCharacter.PlayAnim struct AMordhauCharacter_PlayAnim_Params { class UAnimMontage* Montage; // (Parm, ZeroConstructor, IsPlainOldData) float PlayRate; // (Parm, ZeroConstructor, IsPlainOldData) bool bStopExistingMontages; // (Parm, ZeroConstructor, IsPlainOldData) class UAnimMontage* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.PickUpToSlot struct AMordhauCharacter_PickUpToSlot_Params { class AMordhauEquipment* ToEquip; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char Slot; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.PickUp struct AMordhauCharacter_PickUp_Params { class AMordhauEquipment* ToEquip; // (Parm, ZeroConstructor, IsPlainOldData) int PreferredSlot; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.PerformVoiceCommand struct AMordhauCharacter_PerformVoiceCommand_Params { unsigned char PackedVoiceCommand; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.OnRep_RightHandEquipment struct AMordhauCharacter_OnRep_RightHandEquipment_Params { }; // Function Mordhau.MordhauCharacter.OnRep_ReplicatedVoiceCommand struct AMordhauCharacter_OnRep_ReplicatedVoiceCommand_Params { }; // Function Mordhau.MordhauCharacter.OnRep_ReplicatedStamina struct AMordhauCharacter_OnRep_ReplicatedStamina_Params { }; // Function Mordhau.MordhauCharacter.OnRep_ReplicatedNetMotion struct AMordhauCharacter_OnRep_ReplicatedNetMotion_Params { }; // Function Mordhau.MordhauCharacter.OnRep_ReplicatedDodge struct AMordhauCharacter_OnRep_ReplicatedDodge_Params { }; // Function Mordhau.MordhauCharacter.OnRep_ReplicatedCustomizationReplicationActor struct AMordhauCharacter_OnRep_ReplicatedCustomizationReplicationActor_Params { }; // Function Mordhau.MordhauCharacter.OnRep_Quiver struct AMordhauCharacter_OnRep_Quiver_Params { }; // Function Mordhau.MordhauCharacter.OnRep_NetBlock struct AMordhauCharacter_OnRep_NetBlock_Params { }; // Function Mordhau.MordhauCharacter.OnRep_LeftHandEquipment struct AMordhauCharacter_OnRep_LeftHandEquipment_Params { }; // Function Mordhau.MordhauCharacter.OnRep_Equipment struct AMordhauCharacter_OnRep_Equipment_Params { }; // Function Mordhau.MordhauCharacter.OnPostProfileAssigned struct AMordhauCharacter_OnPostProfileAssigned_Params { }; // Function Mordhau.MordhauCharacter.OnPostDismember struct AMordhauCharacter_OnPostDismember_Params { struct FName bone; // (Parm, ZeroConstructor, IsPlainOldData) class ASeparatedBodyPart* SeparatedPart; // (Parm, ZeroConstructor, IsPlainOldData) class AActor* Agent; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.OnActionFailed struct AMordhauCharacter_OnActionFailed_Params { struct FName Reason; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.OffsetStamina struct AMordhauCharacter_OffsetStamina_Params { int Amount; // (Parm, ZeroConstructor, IsPlainOldData) bool bReplicate; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.MoveBlockedBySlow struct AMordhauCharacter_MoveBlockedBySlow_Params { struct FHitResult Impact; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.ListenForStrike360 struct AMordhauCharacter_ListenForStrike360_Params { }; // Function Mordhau.MordhauCharacter.ListenForStab360 struct AMordhauCharacter_ListenForStab360_Params { }; // Function Mordhau.MordhauCharacter.LeftTeamArea struct AMordhauCharacter_LeftTeamArea_Params { int OwningTeam; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.JumpReleased struct AMordhauCharacter_JumpReleased_Params { }; // Function Mordhau.MordhauCharacter.JumpPressed struct AMordhauCharacter_JumpPressed_Params { }; // Function Mordhau.MordhauCharacter.IsViewTarget struct AMordhauCharacter_IsViewTarget_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.IsRightLeg struct AMordhauCharacter_IsRightLeg_Params { struct FName bone; // (ConstParm, Parm, OutParm, ZeroConstructor, ReferenceParm, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.IsRightArm struct AMordhauCharacter_IsRightArm_Params { struct FName bone; // (ConstParm, Parm, OutParm, ZeroConstructor, ReferenceParm, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.IsPlayerControlledIncludingVehicle struct AMordhauCharacter_IsPlayerControlledIncludingVehicle_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.IsLocallyPlayerControlledIncludingVehicle struct AMordhauCharacter_IsLocallyPlayerControlledIncludingVehicle_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.IsLocallyControlledIncludingVehicle struct AMordhauCharacter_IsLocallyControlledIncludingVehicle_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.IsLeg struct AMordhauCharacter_IsLeg_Params { struct FName bone; // (ConstParm, Parm, OutParm, ZeroConstructor, ReferenceParm, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.IsLeftLeg struct AMordhauCharacter_IsLeftLeg_Params { struct FName bone; // (ConstParm, Parm, OutParm, ZeroConstructor, ReferenceParm, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.IsLeftArm struct AMordhauCharacter_IsLeftArm_Params { struct FName bone; // (ConstParm, Parm, OutParm, ZeroConstructor, ReferenceParm, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.IsInKnockback struct AMordhauCharacter_IsInKnockback_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.IsInEnemyTeamArea struct AMordhauCharacter_IsInEnemyTeamArea_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.IsInAnyTeamArea struct AMordhauCharacter_IsInAnyTeamArea_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.IsHoldingBlock struct AMordhauCharacter_IsHoldingBlock_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.IsHead struct AMordhauCharacter_IsHead_Params { struct FName bone; // (ConstParm, Parm, OutParm, ZeroConstructor, ReferenceParm, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.IsBoneDismembered struct AMordhauCharacter_IsBoneDismembered_Params { struct FName bone; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.IsArm struct AMordhauCharacter_IsArm_Params { struct FName bone; // (ConstParm, Parm, OutParm, ZeroConstructor, ReferenceParm, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.IsAnimActive struct AMordhauCharacter_IsAnimActive_Params { class UAnimMontage* Montage; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.Holster struct AMordhauCharacter_Holster_Params { class AMordhauEquipment* ToHolster; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.HasPerk struct AMordhauCharacter_HasPerk_Params { unsigned char PerkId; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.HasEquipmentHeSpawnedWith struct AMordhauCharacter_HasEquipmentHeSpawnedWith_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.GetMovementRestriction struct AMordhauCharacter_GetMovementRestriction_Params { EMovementRestriction ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.GetLastVoiceCommand struct AMordhauCharacter_GetLastVoiceCommand_Params { class UAudioComponent* ReturnValue; // (ExportObject, Parm, OutParm, ZeroConstructor, ReturnParm, InstancedReference, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.GetLastUsedVehicle struct AMordhauCharacter_GetLastUsedVehicle_Params { float MaximumTimeDiscrepancy; // (Parm, ZeroConstructor, IsPlainOldData) class AMordhauVehicle* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.GetLastMovementFrontalHitActor struct AMordhauCharacter_GetLastMovementFrontalHitActor_Params { float MaxAgeSeconds; // (Parm, ZeroConstructor, IsPlainOldData) class AActor* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.GetFaceCustomizationTranslate struct AMordhauCharacter_GetFaceCustomizationTranslate_Params { struct FName BoneName; // (Parm, ZeroConstructor, IsPlainOldData) struct FVector ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.GetFaceCustomizationTransform struct AMordhauCharacter_GetFaceCustomizationTransform_Params { struct FName BoneName; // (Parm, ZeroConstructor, IsPlainOldData) struct FTransform ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.GetFaceCustomizationScale struct AMordhauCharacter_GetFaceCustomizationScale_Params { struct FName BoneName; // (Parm, ZeroConstructor, IsPlainOldData) struct FVector ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.GetFaceCustomizationRotate struct AMordhauCharacter_GetFaceCustomizationRotate_Params { struct FName BoneName; // (Parm, ZeroConstructor, IsPlainOldData) struct FVector ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.GetFaceCustomizationBoneIdx struct AMordhauCharacter_GetFaceCustomizationBoneIdx_Params { struct FName BoneName; // (Parm, ZeroConstructor, IsPlainOldData) int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.GetEquipmentIndex struct AMordhauCharacter_GetEquipmentIndex_Params { class AMordhauEquipment* Equip; // (ConstParm, Parm, ZeroConstructor, IsPlainOldData) unsigned char OutIndex; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.GetCustomizationReplicationActor struct AMordhauCharacter_GetCustomizationReplicationActor_Params { class ACustomizationReplicationActor* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.GetControllerIncludingVehicle struct AMordhauCharacter_GetControllerIncludingVehicle_Params { class AController* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.GetClothMesh struct AMordhauCharacter_GetClothMesh_Params { class ULODSkeletalMeshComponent* ReturnValue; // (ExportObject, Parm, OutParm, ZeroConstructor, ReturnParm, InstancedReference, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.GetAnimWeight struct AMordhauCharacter_GetAnimWeight_Params { class UAnimMontage* Montage; // (Parm, ZeroConstructor, IsPlainOldData) float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.GetAllFaceSelectionChildBonesRecursive struct AMordhauCharacter_GetAllFaceSelectionChildBonesRecursive_Params { struct FName ParentBone; // (Parm, ZeroConstructor, IsPlainOldData) TArray<struct FName> ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm) }; // Function Mordhau.MordhauCharacter.FreeHandsForEquipment struct AMordhauCharacter_FreeHandsForEquipment_Params { class AMordhauEquipment* EquipmentInstigator; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.ForceUpdateMeshVisibility struct AMordhauCharacter_ForceUpdateMeshVisibility_Params { }; // Function Mordhau.MordhauCharacter.FlipAttackSideReleased struct AMordhauCharacter_FlipAttackSideReleased_Params { }; // Function Mordhau.MordhauCharacter.FlipAttackSidePressed struct AMordhauCharacter_FlipAttackSidePressed_Params { }; // Function Mordhau.MordhauCharacter.FireReleased struct AMordhauCharacter_FireReleased_Params { }; // Function Mordhau.MordhauCharacter.FirePressed struct AMordhauCharacter_FirePressed_Params { }; // Function Mordhau.MordhauCharacter.FindEquipmentToRestock struct AMordhauCharacter_FindEquipmentToRestock_Params { TArray<class UClass*> ValidEquipment; // (ConstParm, Parm, OutParm, ZeroConstructor, ReferenceParm) class AMordhauEquipment* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.FindBestKiller struct AMordhauCharacter_FindBestKiller_Params { float CutOffTime; // (Parm, ZeroConstructor, IsPlainOldData) class AController* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.FeintOrBlockReleased struct AMordhauCharacter_FeintOrBlockReleased_Params { }; // Function Mordhau.MordhauCharacter.FeintOrBlockPressed struct AMordhauCharacter_FeintOrBlockPressed_Params { }; // Function Mordhau.MordhauCharacter.EquipSlot9 struct AMordhauCharacter_EquipSlot9_Params { }; // Function Mordhau.MordhauCharacter.EquipSlot8 struct AMordhauCharacter_EquipSlot8_Params { }; // Function Mordhau.MordhauCharacter.EquipSlot7 struct AMordhauCharacter_EquipSlot7_Params { }; // Function Mordhau.MordhauCharacter.EquipSlot6 struct AMordhauCharacter_EquipSlot6_Params { }; // Function Mordhau.MordhauCharacter.EquipSlot5 struct AMordhauCharacter_EquipSlot5_Params { }; // Function Mordhau.MordhauCharacter.EquipSlot4 struct AMordhauCharacter_EquipSlot4_Params { }; // Function Mordhau.MordhauCharacter.EquipSlot3 struct AMordhauCharacter_EquipSlot3_Params { }; // Function Mordhau.MordhauCharacter.EquipSlot2 struct AMordhauCharacter_EquipSlot2_Params { }; // Function Mordhau.MordhauCharacter.EquipSlot1 struct AMordhauCharacter_EquipSlot1_Params { }; // Function Mordhau.MordhauCharacter.EquipSlot struct AMordhauCharacter_EquipSlot_Params { unsigned char Index; // (Parm, ZeroConstructor, IsPlainOldData) bool bDisplayEquipmentList; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.EnteredTeamArea struct AMordhauCharacter_EnteredTeamArea_Params { int OwningTeam; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.EnableBlockCollider struct AMordhauCharacter_EnableBlockCollider_Params { }; // Function Mordhau.MordhauCharacter.EmptyHands struct AMordhauCharacter_EmptyHands_Params { }; // Function Mordhau.MordhauCharacter.DropSlot struct AMordhauCharacter_DropSlot_Params { unsigned char Index; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.DropEquipment struct AMordhauCharacter_DropEquipment_Params { class AMordhauEquipment* ToDrop; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.DoCameraShakeIfViewTarget struct AMordhauCharacter_DoCameraShakeIfViewTarget_Params { class UClass* Shake; // (Parm, ZeroConstructor, IsPlainOldData) float Scale; // (Parm, ZeroConstructor, IsPlainOldData) TEnumAsByte<ECameraAnimPlaySpace> PlaySpace; // (Parm, ZeroConstructor, IsPlainOldData) struct FRotator UserPlaySpaceRot; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) bool bAllowSettingsScale; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.Dismember struct AMordhauCharacter_Dismember_Params { struct FName bone; // (Parm, ZeroConstructor, IsPlainOldData) class ASeparatedBodyPart* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.DisableLimb struct AMordhauCharacter_DisableLimb_Params { struct FName BoneName; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.DisableBlockCollider struct AMordhauCharacter_DisableBlockCollider_Params { }; // Function Mordhau.MordhauCharacter.CycleCamera struct AMordhauCharacter_CycleCamera_Params { }; // Function Mordhau.MordhauCharacter.ComputeFPRotation struct AMordhauCharacter_ComputeFPRotation_Params { struct FRotator Offset; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) float InLookUpValue; // (Parm, ZeroConstructor, IsPlainOldData) struct FRotator ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.ComputeFPLocation struct AMordhauCharacter_ComputeFPLocation_Params { struct FRotator Offset; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) float InLookUpValue; // (Parm, ZeroConstructor, IsPlainOldData) struct FVector ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.ComputeFPCosmeticLocationOffset struct AMordhauCharacter_ComputeFPCosmeticLocationOffset_Params { struct FRotator Rotation; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) struct FVector OutFOVOffset; // (Parm, OutParm, IsPlainOldData) struct FVector OutZoomOffset; // (Parm, OutParm, IsPlainOldData) struct FVector ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.ClientSetNetMotion struct AMordhauCharacter_ClientSetNetMotion_Params { struct FNetMotion NewMotion; // (Parm) float ServerStartTime; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.ClientPong struct AMordhauCharacter_ClientPong_Params { }; // Function Mordhau.MordhauCharacter.CheckCanEquipAlt struct AMordhauCharacter_CheckCanEquipAlt_Params { class AMordhauEquipment* Equip; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.CheckCanEquip struct AMordhauCharacter_CheckCanEquip_Params { class AMordhauEquipment* Equip; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.ChangeMotion struct AMordhauCharacter_ChangeMotion_Params { class UMordhauMotion* NewMotion; // (Parm, ZeroConstructor, IsPlainOldData) bool bSkipDeltaTimeForward; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.CanPerformAttack struct AMordhauCharacter_CanPerformAttack_Params { EAttackMove Move; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.CanInitiateMotion struct AMordhauCharacter_CanInitiateMotion_Params { class UClass* NewMotion; // (Parm, ZeroConstructor, IsPlainOldData) bool bAttemptCancel; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.CanEasyParry struct AMordhauCharacter_CanEasyParry_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.CanDismember struct AMordhauCharacter_CanDismember_Params { struct FName bone; // (ConstParm, Parm, OutParm, ZeroConstructor, ReferenceParm, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.CanAccomodate struct AMordhauCharacter_CanAccomodate_Params { class UClass* EquipmentToTest; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.CalculateLedgeOffsetAndNormal struct AMordhauCharacter_CalculateLedgeOffsetAndNormal_Params { class UClimbingMotion* ClimbingMotion; // (Parm, ZeroConstructor, IsPlainOldData) struct FVector OutOffset; // (Parm, OutParm, IsPlainOldData) struct FVector OutNormal; // (Parm, OutParm, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.BP_PlayCharacterSound struct AMordhauCharacter_BP_PlayCharacterSound_Params { class USoundBase* Sound; // (Parm, ZeroConstructor, IsPlainOldData) struct FName bone; // (Parm, ZeroConstructor, IsPlainOldData) struct FVector Location; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) TEnumAsByte<EAttachLocation> AttachLocation; // (Parm, ZeroConstructor, IsPlainOldData) bool bAttach; // (Parm, ZeroConstructor, IsPlainOldData) class UAudioComponent* ReturnValue; // (ExportObject, Parm, OutParm, ZeroConstructor, ReturnParm, InstancedReference, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.BoostAnimBlendWeight struct AMordhauCharacter_BoostAnimBlendWeight_Params { class UAnimMontage* Montage; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) float BoostAmount; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.BlockReleased struct AMordhauCharacter_BlockReleased_Params { }; // Function Mordhau.MordhauCharacter.BlockPressed struct AMordhauCharacter_BlockPressed_Params { }; // Function Mordhau.MordhauCharacter.BakeFaceCustomizationTransforms struct AMordhauCharacter_BakeFaceCustomizationTransforms_Params { bool bDeferBake; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.AssignProfile struct AMordhauCharacter_AssignProfile_Params { struct FCharacterProfile NewProfile; // (ConstParm, Parm, OutParm, ReferenceParm) }; // Function Mordhau.MordhauCharacter.AssignNetMotionSimple struct AMordhauCharacter_AssignNetMotionSimple_Params { unsigned char MotionType; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char Param0; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char Param1; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char Param2; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauCharacter.AssignNetBlock struct AMordhauCharacter_AssignNetBlock_Params { EBlockedReason BlockedReason; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char BlockType; // (Parm, ZeroConstructor, IsPlainOldData) EAttackMove BlockedMove; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char BlockedAngle; // (Parm, ZeroConstructor, IsPlainOldData) class AActor* Weapon; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauDialog.Show struct UMordhauDialog_Show_Params { }; // Function Mordhau.MordhauDialog.Hide struct UMordhauDialog_Hide_Params { }; // Function Mordhau.MordhauGameInstance.UpdateParty struct UMordhauGameInstance_UpdateParty_Params { bool bSendProfile; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameInstance.Shutdown struct UMordhauGameInstance_Shutdown_Params { }; // Function Mordhau.MordhauGameInstance.ShowPasswordDialog struct UMordhauGameInstance_ShowPasswordDialog_Params { struct FServerSearchResult SearchResult; // (ConstParm, Parm, OutParm, ReferenceParm) }; // Function Mordhau.MordhauGameInstance.ShowNetworkErrorDialog struct UMordhauGameInstance_ShowNetworkErrorDialog_Params { }; // Function Mordhau.MordhauGameInstance.ShowJoiningDialog struct UMordhauGameInstance_ShowJoiningDialog_Params { struct FServerSearchResult SearchResult; // (ConstParm, Parm, OutParm, ReferenceParm) }; // Function Mordhau.MordhauGameInstance.ShowInviteDialog struct UMordhauGameInstance_ShowInviteDialog_Params { }; // Function Mordhau.MordhauGameInstance.SetPartyState struct UMordhauGameInstance_SetPartyState_Params { EPartyState PartyState; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameInstance.SetPartyMemberProfile struct UMordhauGameInstance_SetPartyMemberProfile_Params { struct FSteamID SteamID; // (ConstParm, Parm, OutParm, ReferenceParm) struct FPlayerProfile Profile; // (ConstParm, Parm, OutParm, ReferenceParm) }; // Function Mordhau.MordhauGameInstance.SetPartyMatchmakingLobbyID struct UMordhauGameInstance_SetPartyMatchmakingLobbyID_Params { struct FSteamID LobbyID; // (ConstParm, Parm, OutParm, ReferenceParm) }; // Function Mordhau.MordhauGameInstance.SetPartyLeader struct UMordhauGameInstance_SetPartyLeader_Params { struct FSteamID SteamID; // (ConstParm, Parm, OutParm, ReferenceParm) }; // Function Mordhau.MordhauGameInstance.SetPartyGameServer struct UMordhauGameInstance_SetPartyGameServer_Params { struct FServerSearchResult SearchResult; // (ConstParm, Parm, OutParm, ReferenceParm) }; // Function Mordhau.MordhauGameInstance.SetNetworkError struct UMordhauGameInstance_SetNetworkError_Params { struct FText ErrorText; // (ConstParm, Parm, OutParm, ReferenceParm) }; // Function Mordhau.MordhauGameInstance.SetMatchmakingMemberData struct UMordhauGameInstance_SetMatchmakingMemberData_Params { }; // Function Mordhau.MordhauGameInstance.SetMatchmakingGameServer struct UMordhauGameInstance_SetMatchmakingGameServer_Params { struct FServerSearchResult SearchResult; // (ConstParm, Parm, OutParm, ReferenceParm) }; // Function Mordhau.MordhauGameInstance.SaveConfig struct UMordhauGameInstance_SaveConfig_Params { }; // Function Mordhau.MordhauGameInstance.LogMatchmakingState struct UMordhauGameInstance_LogMatchmakingState_Params { struct FString Message; // (Parm, ZeroConstructor) }; // Function Mordhau.MordhauGameInstance.LeaveParty struct UMordhauGameInstance_LeaveParty_Params { }; // Function Mordhau.MordhauGameInstance.LeaveMatchmakingLobby struct UMordhauGameInstance_LeaveMatchmakingLobby_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameInstance.KickPartyMember struct UMordhauGameInstance_KickPartyMember_Params { struct FSteamID SteamID; // (ConstParm, Parm, OutParm, ReferenceParm) }; // Function Mordhau.MordhauGameInstance.JoinPartyGameServer struct UMordhauGameInstance_JoinPartyGameServer_Params { }; // Function Mordhau.MordhauGameInstance.JoinMatchmakingLobbyByID struct UMordhauGameInstance_JoinMatchmakingLobbyByID_Params { struct FSteamID LobbyID; // (ConstParm, Parm, OutParm, ReferenceParm) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameInstance.JoinMatchmakingLobby struct UMordhauGameInstance_JoinMatchmakingLobby_Params { struct FLobbySearchResult SearchResult; // (ConstParm, Parm, OutParm, ReferenceParm) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameInstance.IsPartyReadyForMatchmaking struct UMordhauGameInstance_IsPartyReadyForMatchmaking_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameInstance.IsPartyMember struct UMordhauGameInstance_IsPartyMember_Params { struct FSteamID SteamID; // (ConstParm, Parm, OutParm, ReferenceParm) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameInstance.Init struct UMordhauGameInstance_Init_Params { }; // Function Mordhau.MordhauGameInstance.GetPartyState struct UMordhauGameInstance_GetPartyState_Params { EPartyState ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameInstance.GetPartySize struct UMordhauGameInstance_GetPartySize_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameInstance.GetPartyMMR struct UMordhauGameInstance_GetPartyMMR_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameInstance.GetPartyMemberStatus struct UMordhauGameInstance_GetPartyMemberStatus_Params { struct FSteamID SteamID; // (ConstParm, Parm, OutParm, ReferenceParm) struct FString ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm) }; // Function Mordhau.MordhauGameInstance.GetPartyMemberServerAddress struct UMordhauGameInstance_GetPartyMemberServerAddress_Params { struct FSteamID SteamID; // (ConstParm, Parm, OutParm, ReferenceParm) struct FServerAddress ServerAddress; // (Parm, OutParm) bool bWasSuccessful; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameInstance.GetPartyMembers struct UMordhauGameInstance_GetPartyMembers_Params { TArray<struct FSteamID> ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm) }; // Function Mordhau.MordhauGameInstance.GetPartyMemberProfile struct UMordhauGameInstance_GetPartyMemberProfile_Params { struct FSteamID SteamID; // (ConstParm, Parm, OutParm, ReferenceParm) struct FPlayerProfile Profile; // (Parm, OutParm) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameInstance.GetPartyMatchmakingLobbyID struct UMordhauGameInstance_GetPartyMatchmakingLobbyID_Params { struct FSteamID ReturnValue; // (Parm, OutParm, ReturnParm) }; // Function Mordhau.MordhauGameInstance.GetPartyLobbyID struct UMordhauGameInstance_GetPartyLobbyID_Params { struct FSteamID ReturnValue; // (Parm, OutParm, ReturnParm) }; // Function Mordhau.MordhauGameInstance.GetPartyLeader struct UMordhauGameInstance_GetPartyLeader_Params { struct FSteamID ReturnValue; // (Parm, OutParm, ReturnParm) }; // Function Mordhau.MordhauGameInstance.GetMinMatchmakingMembers struct UMordhauGameInstance_GetMinMatchmakingMembers_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameInstance.GetMaxMatchmakingMembers struct UMordhauGameInstance_GetMaxMatchmakingMembers_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameInstance.GetMatchmakingServerAddress struct UMordhauGameInstance_GetMatchmakingServerAddress_Params { struct FServerAddress ServerAddress; // (Parm, OutParm) bool bWasSuccessful; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameInstance.GetMatchmakingMembers struct UMordhauGameInstance_GetMatchmakingMembers_Params { TArray<struct FSteamID> ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm) }; // Function Mordhau.MordhauGameInstance.GetMatchmakingLobbyOwner struct UMordhauGameInstance_GetMatchmakingLobbyOwner_Params { struct FSteamID ReturnValue; // (Parm, OutParm, ReturnParm) }; // Function Mordhau.MordhauGameInstance.GetMatchmakingLobbyID struct UMordhauGameInstance_GetMatchmakingLobbyID_Params { struct FSteamID ReturnValue; // (Parm, OutParm, ReturnParm) }; // Function Mordhau.MordhauGameInstance.GetMapInfo struct UMordhauGameInstance_GetMapInfo_Params { struct FString MapName; // (Parm, ZeroConstructor) struct FMapInfo ReturnValue; // (Parm, OutParm, ReturnParm) }; // Function Mordhau.MordhauGameInstance.GetAuthTicket struct UMordhauGameInstance_GetAuthTicket_Params { struct FString ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm) }; // Function Mordhau.MordhauGameInstance.CreateMatchmakingLobby struct UMordhauGameInstance_CreateMatchmakingLobby_Params { TArray<struct FString> InGameModes; // (ConstParm, Parm, OutParm, ZeroConstructor, ReferenceParm) ERegion InRegion; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameInstance.ClientTravelSession struct UMordhauGameInstance_ClientTravelSession_Params { struct FServerSearchResult SearchResult; // (ConstParm, Parm, OutParm, ReferenceParm) struct FString Password; // (Parm, ZeroConstructor) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameInstance.ClientTravel struct UMordhauGameInstance_ClientTravel_Params { struct FString MapName; // (Parm, ZeroConstructor) int PlayerCount; // (ConstParm, Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameInstance.ClearPartyMemberProfile struct UMordhauGameInstance_ClearPartyMemberProfile_Params { struct FSteamID SteamID; // (ConstParm, Parm, OutParm, ReferenceParm) }; // Function Mordhau.MordhauGameInstance.ClearPartyMatchmakingLobbyID struct UMordhauGameInstance_ClearPartyMatchmakingLobbyID_Params { }; // Function Mordhau.MordhauGameInstance.ClearPartyGameServer struct UMordhauGameInstance_ClearPartyGameServer_Params { }; // Function Mordhau.MordhauGameInstance.ClearMatchmakingGameServer struct UMordhauGameInstance_ClearMatchmakingGameServer_Params { }; // Function Mordhau.MordhauGameInstance.CanLeaveParty struct UMordhauGameInstance_CanLeaveParty_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameInstance.CanInviteToParty struct UMordhauGameInstance_CanInviteToParty_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameInstance.CancelAuthTicket struct UMordhauGameInstance_CancelAuthTicket_Params { }; // Function Mordhau.MordhauGameInstance.BPStopRecordingReplay struct UMordhauGameInstance_BPStopRecordingReplay_Params { }; // Function Mordhau.MordhauGameInstance.BPStopPlayingReplay struct UMordhauGameInstance_BPStopPlayingReplay_Params { }; // Function Mordhau.MordhauGameInstance.BPStartRecordingReplay struct UMordhauGameInstance_BPStartRecordingReplay_Params { struct FString InName; // (Parm, ZeroConstructor) struct FString FriendlyName; // (Parm, ZeroConstructor) TArray<struct FString> AdditionalOptions; // (Parm, ZeroConstructor) }; // Function Mordhau.MordhauGameInstance.BPPlayReplay struct UMordhauGameInstance_BPPlayReplay_Params { struct FString InName; // (Parm, ZeroConstructor) TArray<struct FString> AdditionalOptions; // (Parm, ZeroConstructor) }; // Function Mordhau.MordhauGameMode.VoteLevel struct AMordhauGameMode_VoteLevel_Params { class APlayerController* Player; // (Parm, ZeroConstructor, IsPlainOldData) struct FString LevelName; // (Parm, ZeroConstructor) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameMode.SetTeamScore struct AMordhauGameMode_SetTeamScore_Params { int Team; // (Parm, ZeroConstructor, IsPlainOldData) float Amount; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameMode.RequestedAssignTeam struct AMordhauGameMode_RequestedAssignTeam_Params { class AController* Controller; // (Parm, ZeroConstructor, IsPlainOldData) int Team; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameMode.RemoveBots struct AMordhauGameMode_RemoveBots_Params { int Amount; // (Parm, ZeroConstructor, IsPlainOldData) int Team; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameMode.OnTeamScoreChanged struct AMordhauGameMode_OnTeamScoreChanged_Params { int Team; // (Parm, ZeroConstructor, IsPlainOldData) float OldValue; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameMode.OnScoreChanged struct AMordhauGameMode_OnScoreChanged_Params { class APlayerState* State; // (Parm, ZeroConstructor, IsPlainOldData) float OldValue; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameMode.OnMatchStateChanged struct AMordhauGameMode_OnMatchStateChanged_Params { struct FName OldState; // (ConstParm, Parm, OutParm, ZeroConstructor, ReferenceParm, IsPlainOldData) struct FName NewState; // (ConstParm, Parm, OutParm, ZeroConstructor, ReferenceParm, IsPlainOldData) }; // Function Mordhau.MordhauGameMode.OnKillsChanged struct AMordhauGameMode_OnKillsChanged_Params { class APlayerState* State; // (Parm, ZeroConstructor, IsPlainOldData) int OldValue; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameMode.OnKilled struct AMordhauGameMode_OnKilled_Params { class AController* Killer; // (Parm, ZeroConstructor, IsPlainOldData) class AController* KilledPlayer; // (Parm, ZeroConstructor, IsPlainOldData) class APawn* KilledPawn; // (Parm, ZeroConstructor, IsPlainOldData) EMordhauDamageType Type; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char SubType; // (Parm, ZeroConstructor, IsPlainOldData) class AActor* DamageSource; // (Parm, ZeroConstructor, IsPlainOldData) class AActor* DamageAgent; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameMode.OnDeathsChanged struct AMordhauGameMode_OnDeathsChanged_Params { class APlayerState* State; // (Parm, ZeroConstructor, IsPlainOldData) int OldValue; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameMode.OnAssistsChanged struct AMordhauGameMode_OnAssistsChanged_Params { class APlayerState* State; // (Parm, ZeroConstructor, IsPlainOldData) int OldValue; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameMode.MatchTimeRanOut struct AMordhauGameMode_MatchTimeRanOut_Params { }; // Function Mordhau.MordhauGameMode.IsSpawnpointAllowed struct AMordhauGameMode_IsSpawnpointAllowed_Params { class APlayerStart* PlayerStart; // (Parm, ZeroConstructor, IsPlainOldData) class AController* Player; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameMode.GetSpawnpointPreference struct AMordhauGameMode_GetSpawnpointPreference_Params { class APlayerStart* PlayerStart; // (Parm, ZeroConstructor, IsPlainOldData) class AController* Player; // (Parm, ZeroConstructor, IsPlainOldData) float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameMode.GetNextMaps struct AMordhauGameMode_GetNextMaps_Params { int Count; // (Parm, ZeroConstructor, IsPlainOldData) TArray<struct FString> ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm) }; // Function Mordhau.MordhauGameMode.GetNextMap struct AMordhauGameMode_GetNextMap_Params { struct FString ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm) }; // Function Mordhau.MordhauGameMode.GetMapVoteMaps struct AMordhauGameMode_GetMapVoteMaps_Params { TArray<struct FString> ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm) }; // Function Mordhau.MordhauGameMode.GetMapVoteCounts struct AMordhauGameMode_GetMapVoteCounts_Params { TArray<unsigned char> ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm) }; // Function Mordhau.MordhauGameMode.GetDamageFactor struct AMordhauGameMode_GetDamageFactor_Params { class AActor* DamageSource; // (Parm, ZeroConstructor, IsPlainOldData) class AActor* DamageTarget; // (Parm, ZeroConstructor, IsPlainOldData) float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameMode.ControllerCanRestart struct AMordhauGameMode_ControllerCanRestart_Params { class AController* Controller; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameMode.ChangeLevel struct AMordhauGameMode_ChangeLevel_Params { struct FString LevelName; // (Parm, ZeroConstructor) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameMode.CanDealDamage struct AMordhauGameMode_CanDealDamage_Params { class AActor* DamageSource; // (Parm, ZeroConstructor, IsPlainOldData) class AActor* DamageTarget; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameMode.CanClash struct AMordhauGameMode_CanClash_Params { class APawn* Source; // (Parm, ZeroConstructor, IsPlainOldData) class APawn* Target; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameMode.CanChamber struct AMordhauGameMode_CanChamber_Params { class APawn* Source; // (Parm, ZeroConstructor, IsPlainOldData) class APawn* Target; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameMode.Broadcast struct AMordhauGameMode_Broadcast_Params { class AActor* Sender; // (Parm, ZeroConstructor, IsPlainOldData) struct FString Msg; // (Parm, ZeroConstructor) struct FName Type; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameMode.AddTeamScore struct AMordhauGameMode_AddTeamScore_Params { int Team; // (Parm, ZeroConstructor, IsPlainOldData) float Amount; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameMode.AddBots struct AMordhauGameMode_AddBots_Params { int Amount; // (Parm, ZeroConstructor, IsPlainOldData) int Team; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameSession.UnbanPlayer struct AMordhauGameSession_UnbanPlayer_Params { struct FSteamID SteamID; // (ConstParm, Parm, OutParm, ReferenceParm) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameSession.TriggerRewardDropForPlayer struct AMordhauGameSession_TriggerRewardDropForPlayer_Params { class APlayerController* Player; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameSession.TriggerRewardDrop struct AMordhauGameSession_TriggerRewardDrop_Params { }; // Function Mordhau.MordhauGameSession.ReportPlayer struct AMordhauGameSession_ReportPlayer_Params { class APlayerController* Player; // (Parm, ZeroConstructor, IsPlainOldData) ECheatReportType ReportType; // (ConstParm, Parm, ZeroConstructor, IsPlainOldData) ECheatReportSource ReportSource; // (ConstParm, Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameSession.RemoveAdmin struct AMordhauGameSession_RemoveAdmin_Params { class APlayerController* AdminPlayer; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameSession.KickPlayer struct AMordhauGameSession_KickPlayer_Params { class APlayerController* KickedPlayer; // (Parm, ZeroConstructor, IsPlainOldData) struct FText KickReason; // (ConstParm, Parm, OutParm, ReferenceParm) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameSession.BanPlayerWithDuration struct AMordhauGameSession_BanPlayerWithDuration_Params { class APlayerController* BannedPlayer; // (Parm, ZeroConstructor, IsPlainOldData) int BanDuration; // (ConstParm, Parm, ZeroConstructor, IsPlainOldData) struct FText BanReason; // (ConstParm, Parm, OutParm, ReferenceParm) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameSession.BanPlayer struct AMordhauGameSession_BanPlayer_Params { class APlayerController* BannedPlayer; // (Parm, ZeroConstructor, IsPlainOldData) struct FText BanReason; // (ConstParm, Parm, OutParm, ReferenceParm) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameSession.AllowsJoin struct AMordhauGameSession_AllowsJoin_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameSession.AllowJoin struct AMordhauGameSession_AllowJoin_Params { bool bInAllowJoin; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameSession.AddAdmin struct AMordhauGameSession_AddAdmin_Params { class APlayerController* AdminPlayer; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameState.UpdateCapturePointData struct AMordhauGameState_UpdateCapturePointData_Params { }; // Function Mordhau.MordhauGameState.UnregisterParticleSystemActor struct AMordhauGameState_UnregisterParticleSystemActor_Params { class AParticleSystemActor* ParticleActor; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameState.StoreEquipmentMeshInCache struct AMordhauGameState_StoreEquipmentMeshInCache_Params { class USkeletalMesh* Mesh; // (Parm, ZeroConstructor, IsPlainOldData) int ID; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char Skin; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char Part1; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char Part2; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char Part3; // (Parm, ZeroConstructor, IsPlainOldData) bool bUseAuxiliaryMesh; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameState.ShouldTickThisFrame struct AMordhauGameState_ShouldTickThisFrame_Params { class AAdvancedCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameState.ShouldTickAnimationThisFrame struct AMordhauGameState_ShouldTickAnimationThisFrame_Params { class AAdvancedCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameState.ShouldPaintGearWithTeamColors struct AMordhauGameState_ShouldPaintGearWithTeamColors_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameState.ShouldBlockPawnInput struct AMordhauGameState_ShouldBlockPawnInput_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameState.ReserveCharacterRagdoll struct AMordhauGameState_ReserveCharacterRagdoll_Params { class AAdvancedCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameState.RemoveCharacterFromDistanceArray struct AMordhauGameState_RemoveCharacterFromDistanceArray_Params { class AAdvancedCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameState.RegisterParticleSystemActor struct AMordhauGameState_RegisterParticleSystemActor_Params { class AParticleSystemActor* ParticleActor; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameState.LocalPlayerChangedTeam struct AMordhauGameState_LocalPlayerChangedTeam_Params { }; // Function Mordhau.MordhauGameState.IsFriendly struct AMordhauGameState_IsFriendly_Params { class AActor* ActorA; // (Parm, ZeroConstructor, IsPlainOldData) class AActor* ActorB; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameState.GetTeamName struct AMordhauGameState_GetTeamName_Params { int Team; // (Parm, ZeroConstructor, IsPlainOldData) struct FString ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm) }; // Function Mordhau.MordhauGameState.GetTeamColor struct AMordhauGameState_GetTeamColor_Params { int Team; // (Parm, ZeroConstructor, IsPlainOldData) struct FLinearColor ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameState.GetPlayerCountsPerTeam struct AMordhauGameState_GetPlayerCountsPerTeam_Params { bool bOnlyLiving; // (Parm, ZeroConstructor, IsPlainOldData) bool bOnlyWithValidProfiles; // (Parm, ZeroConstructor, IsPlainOldData) TArray<int> ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm) }; // Function Mordhau.MordhauGameState.GetEquipmentMeshFromCache struct AMordhauGameState_GetEquipmentMeshFromCache_Params { int ID; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char Skin; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char Part1; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char Part2; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char Part3; // (Parm, ZeroConstructor, IsPlainOldData) bool bUseAuxiliaryMesh; // (Parm, ZeroConstructor, IsPlainOldData) class USkeletalMesh* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameState.GetEquipmentCacheHash struct AMordhauGameState_GetEquipmentCacheHash_Params { int ID; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char Skin; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char Part1; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char Part2; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char Part3; // (Parm, ZeroConstructor, IsPlainOldData) bool bUseAuxiliaryMesh; // (Parm, ZeroConstructor, IsPlainOldData) int64_t ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameState.GetCurrentFrame struct AMordhauGameState_GetCurrentFrame_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameState.GetCharacterByDistanceRank struct AMordhauGameState_GetCharacterByDistanceRank_Params { int DistanceRank; // (Parm, ZeroConstructor, IsPlainOldData) class AAdvancedCharacter* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameState.GetBindPoseTransform struct AMordhauGameState_GetBindPoseTransform_Params { class USkeletalMesh* Mesh; // (Parm, ZeroConstructor, IsPlainOldData) struct FName SocketName; // (Parm, ZeroConstructor, IsPlainOldData) struct FTransform ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameState.GetAppropriateMapCameraActor struct AMordhauGameState_GetAppropriateMapCameraActor_Params { class APlayerController* Controller; // (Parm, ZeroConstructor, IsPlainOldData) class AMapCameraActor* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameState.CanPlayerJoinTeam struct AMordhauGameState_CanPlayerJoinTeam_Params { class AMordhauPlayerState* Player; // (Parm, ZeroConstructor, IsPlainOldData) int Team; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameState.CanImmediatelyChangeProfile struct AMordhauGameState_CanImmediatelyChangeProfile_Params { class AController* Controller; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.ShouldShowWatermark struct UMordhauGameUserSettings_ShouldShowWatermark_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.ShouldShowTips struct UMordhauGameUserSettings_ShouldShowTips_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.ShouldShowTargetInfo struct UMordhauGameUserSettings_ShouldShowTargetInfo_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.ShouldShowStatusBar struct UMordhauGameUserSettings_ShouldShowStatusBar_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.ShouldShowSpawnInfo struct UMordhauGameUserSettings_ShouldShowSpawnInfo_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.ShouldShowScoreFeed struct UMordhauGameUserSettings_ShouldShowScoreFeed_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.ShouldShowObservedDelay struct UMordhauGameUserSettings_ShouldShowObservedDelay_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.ShouldShowMatchmakingOverride struct UMordhauGameUserSettings_ShouldShowMatchmakingOverride_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.ShouldShowMatchmakingDebug struct UMordhauGameUserSettings_ShouldShowMatchmakingDebug_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.ShouldShowKillFeed struct UMordhauGameUserSettings_ShouldShowKillFeed_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.ShouldShowKilledBy struct UMordhauGameUserSettings_ShouldShowKilledBy_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.ShouldShowHUD struct UMordhauGameUserSettings_ShouldShowHUD_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.ShouldShowHitMarker struct UMordhauGameUserSettings_ShouldShowHitMarker_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.ShouldShowFriendlyMarkers struct UMordhauGameUserSettings_ShouldShowFriendlyMarkers_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.ShouldShowEquipment struct UMordhauGameUserSettings_ShouldShowEquipment_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.ShouldShowEmotesMenu struct UMordhauGameUserSettings_ShouldShowEmotesMenu_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.ShouldShowCrosshair struct UMordhauGameUserSettings_ShouldShowCrosshair_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.ShouldShowChatBox struct UMordhauGameUserSettings_ShouldShowChatBox_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.ShouldShowBlood struct UMordhauGameUserSettings_ShouldShowBlood_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.ShouldShowAnnouncements struct UMordhauGameUserSettings_ShouldShowAnnouncements_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.ShouldShowAmmo struct UMordhauGameUserSettings_ShouldShowAmmo_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.ShouldQuickSpawn struct UMordhauGameUserSettings_ShouldQuickSpawn_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.ShouldDrawTracers struct UMordhauGameUserSettings_ShouldDrawTracers_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetVideoVolume struct UMordhauGameUserSettings_SetVideoVolume_Params { float NewVolume; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetTracersStayTime struct UMordhauGameUserSettings_SetTracersStayTime_Params { float NewStayTime; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetShowTips struct UMordhauGameUserSettings_SetShowTips_Params { int NewShowTips; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetShowTargetInfo struct UMordhauGameUserSettings_SetShowTargetInfo_Params { int NewShowTargetInfo; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetShowStatusBar struct UMordhauGameUserSettings_SetShowStatusBar_Params { int NewShowStatusBar; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetShowSpawnInfo struct UMordhauGameUserSettings_SetShowSpawnInfo_Params { int NewShowSpawnInfo; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetShowScoreFeed struct UMordhauGameUserSettings_SetShowScoreFeed_Params { int NewShowScoreFeed; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetShowObservedDelay struct UMordhauGameUserSettings_SetShowObservedDelay_Params { int NewShowObservedDelay; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetShowMatchmakingOverride struct UMordhauGameUserSettings_SetShowMatchmakingOverride_Params { int NewShowMatchmakingOverride; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetShowMatchmakingDebug struct UMordhauGameUserSettings_SetShowMatchmakingDebug_Params { int NewShowMatchmakingDebug; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetShowKillFeed struct UMordhauGameUserSettings_SetShowKillFeed_Params { int NewShowKillFeed; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetShowKilledBy struct UMordhauGameUserSettings_SetShowKilledBy_Params { int NewShowKilledBy; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetShowHitMarker struct UMordhauGameUserSettings_SetShowHitMarker_Params { int NewShowHitMarker; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetShowFriendlyMarkers struct UMordhauGameUserSettings_SetShowFriendlyMarkers_Params { int NewShowFriendlyMarkers; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetShowEquipment struct UMordhauGameUserSettings_SetShowEquipment_Params { int NewShowEquipment; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetShowEmotesMenu struct UMordhauGameUserSettings_SetShowEmotesMenu_Params { int NewEmotesMenu; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetShowCrosshair struct UMordhauGameUserSettings_SetShowCrosshair_Params { int NewShowCrosshair; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetShowChatBox struct UMordhauGameUserSettings_SetShowChatBox_Params { int NewShowChatBox; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetShowAnnouncements struct UMordhauGameUserSettings_SetShowAnnouncements_Params { int NewShowAnnouncements; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetShowAmmo struct UMordhauGameUserSettings_SetShowAmmo_Params { int NewShowAmmo; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetScreenSpaceReflections struct UMordhauGameUserSettings_SetScreenSpaceReflections_Params { int NewScreenSpaceReflections; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetScreenPercentage struct UMordhauGameUserSettings_SetScreenPercentage_Params { float NewScreenPercentage; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetRagdollStayTime struct UMordhauGameUserSettings_SetRagdollStayTime_Params { float NewTime; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetRagdollFidelity struct UMordhauGameUserSettings_SetRagdollFidelity_Params { int NewFidelity; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetQuickSpawn struct UMordhauGameUserSettings_SetQuickSpawn_Params { int NewQuickSpawn; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetNoTeamColorsOnGear struct UMordhauGameUserSettings_SetNoTeamColorsOnGear_Params { int NewNoTeamColorsOnGear; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetMusicVolume struct UMordhauGameUserSettings_SetMusicVolume_Params { float NewVolume; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetMouseSmoothing struct UMordhauGameUserSettings_SetMouseSmoothing_Params { float NewSmoothing; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetMotionBlur struct UMordhauGameUserSettings_SetMotionBlur_Params { float NewMotionBlur; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetMaxRagdolls struct UMordhauGameUserSettings_SetMaxRagdolls_Params { int NewMax; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetMasterVolume struct UMordhauGameUserSettings_SetMasterVolume_Params { float NewVolume; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetLensFlares struct UMordhauGameUserSettings_SetLensFlares_Params { int NewLensFlares; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetLanguage struct UMordhauGameUserSettings_SetLanguage_Params { struct FString NewLanguage; // (Parm, ZeroConstructor) }; // Function Mordhau.MordhauGameUserSettings.SetIndirectCapsuleShadows struct UMordhauGameUserSettings_SetIndirectCapsuleShadows_Params { int NewShadows; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetHideWatermark struct UMordhauGameUserSettings_SetHideWatermark_Params { int NewHideWatermark; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetHideHUD struct UMordhauGameUserSettings_SetHideHUD_Params { int NewHideHUD; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetHideDefaultLoadouts struct UMordhauGameUserSettings_SetHideDefaultLoadouts_Params { int NewHideDefaultLoadouts; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetHeadbob struct UMordhauGameUserSettings_SetHeadbob_Params { float NewHeadbob; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetGore struct UMordhauGameUserSettings_SetGore_Params { int NewGore; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetGamma struct UMordhauGameUserSettings_SetGamma_Params { float NewGamma; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetFieldOfView struct UMordhauGameUserSettings_SetFieldOfView_Params { float NewFOV; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetEffectsVolume struct UMordhauGameUserSettings_SetEffectsVolume_Params { float NewVolume; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetDrawTracers struct UMordhauGameUserSettings_SetDrawTracers_Params { int NewDrawTracers; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetCrosshairType struct UMordhauGameUserSettings_SetCrosshairType_Params { int NewCrosshairType; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetCharacterFidelity struct UMordhauGameUserSettings_SetCharacterFidelity_Params { int NewFidelity; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetCharacterCloth struct UMordhauGameUserSettings_SetCharacterCloth_Params { int NewCharacterCloth; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetCameraDistance struct UMordhauGameUserSettings_SetCameraDistance_Params { float NewCameraDistance; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetBloom struct UMordhauGameUserSettings_SetBloom_Params { float NewBloom; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetAntiAliasing struct UMordhauGameUserSettings_SetAntiAliasing_Params { int NewAntiAliasing; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.SetAmbientOcclusion struct UMordhauGameUserSettings_SetAmbientOcclusion_Params { int NewAmbientOcclusion; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetVideoVolume struct UMordhauGameUserSettings_GetVideoVolume_Params { float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetTracersStayTimeLimits struct UMordhauGameUserSettings_GetTracersStayTimeLimits_Params { struct FVector2D ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetTracersStayTime struct UMordhauGameUserSettings_GetTracersStayTime_Params { float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetShowTips struct UMordhauGameUserSettings_GetShowTips_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetShowTargetInfo struct UMordhauGameUserSettings_GetShowTargetInfo_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetShowStatusBar struct UMordhauGameUserSettings_GetShowStatusBar_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetShowSpawnInfo struct UMordhauGameUserSettings_GetShowSpawnInfo_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetShowScoreFeed struct UMordhauGameUserSettings_GetShowScoreFeed_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetShowObservedDelay struct UMordhauGameUserSettings_GetShowObservedDelay_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetShowKillFeed struct UMordhauGameUserSettings_GetShowKillFeed_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetShowKilledBy struct UMordhauGameUserSettings_GetShowKilledBy_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetShowHitMarker struct UMordhauGameUserSettings_GetShowHitMarker_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetShowFriendlyMarkers struct UMordhauGameUserSettings_GetShowFriendlyMarkers_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetShowEquipment struct UMordhauGameUserSettings_GetShowEquipment_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetShowEmotesMenu struct UMordhauGameUserSettings_GetShowEmotesMenu_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetShowCrosshair struct UMordhauGameUserSettings_GetShowCrosshair_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetShowChatBox struct UMordhauGameUserSettings_GetShowChatBox_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetShowAnnouncements struct UMordhauGameUserSettings_GetShowAnnouncements_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetShowAmmo struct UMordhauGameUserSettings_GetShowAmmo_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetScreenSpaceReflections struct UMordhauGameUserSettings_GetScreenSpaceReflections_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetScreenPercentageLimits struct UMordhauGameUserSettings_GetScreenPercentageLimits_Params { struct FVector2D ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetScreenPercentage struct UMordhauGameUserSettings_GetScreenPercentage_Params { float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetRagdollStayTimeLimit struct UMordhauGameUserSettings_GetRagdollStayTimeLimit_Params { float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetRagdollStayTime struct UMordhauGameUserSettings_GetRagdollStayTime_Params { float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetRagdollFidelity struct UMordhauGameUserSettings_GetRagdollFidelity_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetQuickSpawn struct UMordhauGameUserSettings_GetQuickSpawn_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetNoTeamColorsOnGear struct UMordhauGameUserSettings_GetNoTeamColorsOnGear_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetMusicVolume struct UMordhauGameUserSettings_GetMusicVolume_Params { float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetMouseSmoothingLimits struct UMordhauGameUserSettings_GetMouseSmoothingLimits_Params { struct FVector2D ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetMouseSmoothing struct UMordhauGameUserSettings_GetMouseSmoothing_Params { float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetMotionBlurLimits struct UMordhauGameUserSettings_GetMotionBlurLimits_Params { struct FVector2D ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetMotionBlur struct UMordhauGameUserSettings_GetMotionBlur_Params { float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetMaxRagdollsLimit struct UMordhauGameUserSettings_GetMaxRagdollsLimit_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetMaxRagdolls struct UMordhauGameUserSettings_GetMaxRagdolls_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetMasterVolume struct UMordhauGameUserSettings_GetMasterVolume_Params { float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetLensFlares struct UMordhauGameUserSettings_GetLensFlares_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetLanguage struct UMordhauGameUserSettings_GetLanguage_Params { struct FString ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm) }; // Function Mordhau.MordhauGameUserSettings.GetIndirectCapsuleShadows struct UMordhauGameUserSettings_GetIndirectCapsuleShadows_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetHideWatermark struct UMordhauGameUserSettings_GetHideWatermark_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetHideHUD struct UMordhauGameUserSettings_GetHideHUD_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetHideDefaultLoadouts struct UMordhauGameUserSettings_GetHideDefaultLoadouts_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetHeadbobLimits struct UMordhauGameUserSettings_GetHeadbobLimits_Params { struct FVector2D ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetHeadbob struct UMordhauGameUserSettings_GetHeadbob_Params { float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetGore struct UMordhauGameUserSettings_GetGore_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetGammaLimits struct UMordhauGameUserSettings_GetGammaLimits_Params { struct FVector2D ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetGamma struct UMordhauGameUserSettings_GetGamma_Params { float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetFrameRateLimits struct UMordhauGameUserSettings_GetFrameRateLimits_Params { struct FVector2D ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetFieldOfViewLimits struct UMordhauGameUserSettings_GetFieldOfViewLimits_Params { struct FVector2D ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetFieldOfView struct UMordhauGameUserSettings_GetFieldOfView_Params { float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetEffectsVolume struct UMordhauGameUserSettings_GetEffectsVolume_Params { float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetDrawTracers struct UMordhauGameUserSettings_GetDrawTracers_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetCurrentMotionBlur struct UMordhauGameUserSettings_GetCurrentMotionBlur_Params { float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetCurrentGamma struct UMordhauGameUserSettings_GetCurrentGamma_Params { float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetCurrentBloom struct UMordhauGameUserSettings_GetCurrentBloom_Params { float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetCrosshairType struct UMordhauGameUserSettings_GetCrosshairType_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetCharacterFidelity struct UMordhauGameUserSettings_GetCharacterFidelity_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetCharacterCloth struct UMordhauGameUserSettings_GetCharacterCloth_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetCameraDistanceLimits struct UMordhauGameUserSettings_GetCameraDistanceLimits_Params { struct FVector2D ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetCameraDistance struct UMordhauGameUserSettings_GetCameraDistance_Params { float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetBloomLimits struct UMordhauGameUserSettings_GetBloomLimits_Params { struct FVector2D ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetBloom struct UMordhauGameUserSettings_GetBloom_Params { float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetAvailableLanguages struct UMordhauGameUserSettings_GetAvailableLanguages_Params { TArray<struct FString> AvailableLanguages; // (Parm, OutParm, ZeroConstructor) }; // Function Mordhau.MordhauGameUserSettings.GetAntiAliasing struct UMordhauGameUserSettings_GetAntiAliasing_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetAmbientOcclusion struct UMordhauGameUserSettings_GetAmbientOcclusion_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauGameUserSettings.GetActualCrosshairType struct UMordhauGameUserSettings_GetActualCrosshairType_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauHUD.OnGameStateReplicated struct AMordhauHUD_OnGameStateReplicated_Params { }; // Function Mordhau.MordhauHUD.EnqueueMordhauDialog struct AMordhauHUD_EnqueueMordhauDialog_Params { class UMordhauDialog* Dialog; // (Parm, ZeroConstructor, InstancedReference, IsPlainOldData) }; // Function Mordhau.MordhauInput.ShowGamepadTextInput struct UMordhauInput_ShowGamepadTextInput_Params { EInputTextMode TextMode; // (Parm, ZeroConstructor, IsPlainOldData) EInputLineMode LineMode; // (Parm, ZeroConstructor, IsPlainOldData) struct FString Description; // (Parm, ZeroConstructor) struct FString ExistingText; // (Parm, ZeroConstructor) int MaxLen; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauInput.ShowBindingPanel struct UMordhauInput_ShowBindingPanel_Params { }; // Function Mordhau.MordhauInput.SetToggleSprint struct UMordhauInput_SetToggleSprint_Params { int NewToggleSprint; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauInput.SetMouseYSensitivity struct UMordhauInput_SetMouseYSensitivity_Params { float NewSensitivity; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauInput.SetMouseYInverted struct UMordhauInput_SetMouseYInverted_Params { bool bNewInverted; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauInput.SetMouseXSensitivity struct UMordhauInput_SetMouseXSensitivity_Params { float NewSensitivity; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauInput.SetMouseXIsFlipAttackSide struct UMordhauInput_SetMouseXIsFlipAttackSide_Params { int NewIsFlipAttackSide; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauInput.SetMouseXInverted struct UMordhauInput_SetMouseXInverted_Params { bool bNewInverted; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauInput.SetInverseAttackDirectionY struct UMordhauInput_SetInverseAttackDirectionY_Params { int NewInverseAttackDirectionX; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauInput.SetInverseAttackDirectionX struct UMordhauInput_SetInverseAttackDirectionX_Params { int NewInverseAttackDirectionX; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauInput.SetGamepadRightYSensitivity struct UMordhauInput_SetGamepadRightYSensitivity_Params { float NewSensitivity; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauInput.SetGamepadRightYInverted struct UMordhauInput_SetGamepadRightYInverted_Params { bool bNewInverted; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauInput.SetGamepadRightYDeadzone struct UMordhauInput_SetGamepadRightYDeadzone_Params { float NewDeadzone; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauInput.SetGamepadRightXSensitivity struct UMordhauInput_SetGamepadRightXSensitivity_Params { float NewSensitivity; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauInput.SetGamepadRightXInverted struct UMordhauInput_SetGamepadRightXInverted_Params { bool bNewInverted; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauInput.SetGamepadRightXDeadzone struct UMordhauInput_SetGamepadRightXDeadzone_Params { float NewDeadzone; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauInput.SetGamepadLeftYSensitivity struct UMordhauInput_SetGamepadLeftYSensitivity_Params { float NewSensitivity; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauInput.SetGamepadLeftYInverted struct UMordhauInput_SetGamepadLeftYInverted_Params { bool bNewInverted; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauInput.SetGamepadLeftYDeadzone struct UMordhauInput_SetGamepadLeftYDeadzone_Params { float NewDeadzone; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauInput.SetGamepadLeftXSensitivity struct UMordhauInput_SetGamepadLeftXSensitivity_Params { float NewSensitivity; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauInput.SetGamepadLeftXInverted struct UMordhauInput_SetGamepadLeftXInverted_Params { bool bNewInverted; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauInput.SetGamepadLeftXDeadzone struct UMordhauInput_SetGamepadLeftXDeadzone_Params { float NewDeadzone; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauInput.SetControlScheme struct UMordhauInput_SetControlScheme_Params { int NewControlScheme; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauInput.SetAngleAttacksWithMovement struct UMordhauInput_SetAngleAttacksWithMovement_Params { int NewAngleAttacksWithMovement; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauInput.SetAngleAttackAfterPress struct UMordhauInput_SetAngleAttackAfterPress_Params { int NewAngleAttackAfterPress; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauInput.SetActiveActionSet struct UMordhauInput_SetActiveActionSet_Params { EActionSet ActionSet; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauInput.SaveSettings struct UMordhauInput_SaveSettings_Params { }; // Function Mordhau.MordhauInput.RestoreDefaultSettings struct UMordhauInput_RestoreDefaultSettings_Params { }; // Function Mordhau.MordhauInput.GetToggleSprint struct UMordhauInput_GetToggleSprint_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInput.GetMouseYSensitivity struct UMordhauInput_GetMouseYSensitivity_Params { float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInput.GetMouseYInverted struct UMordhauInput_GetMouseYInverted_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInput.GetMouseXSensitivity struct UMordhauInput_GetMouseXSensitivity_Params { float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInput.GetMouseXIsFlipAttackSide struct UMordhauInput_GetMouseXIsFlipAttackSide_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInput.GetMouseXInverted struct UMordhauInput_GetMouseXInverted_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInput.GetMouseSensitivityLimits struct UMordhauInput_GetMouseSensitivityLimits_Params { struct FVector2D ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInput.GetInverseAttackDirectionY struct UMordhauInput_GetInverseAttackDirectionY_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInput.GetInverseAttackDirectionX struct UMordhauInput_GetInverseAttackDirectionX_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInput.GetGamepadSensitivityLimits struct UMordhauInput_GetGamepadSensitivityLimits_Params { struct FVector2D ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInput.GetGamepadRightYSensitivity struct UMordhauInput_GetGamepadRightYSensitivity_Params { float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInput.GetGamepadRightYInverted struct UMordhauInput_GetGamepadRightYInverted_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInput.GetGamepadRightYDeadzone struct UMordhauInput_GetGamepadRightYDeadzone_Params { float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInput.GetGamepadRightXSensitivity struct UMordhauInput_GetGamepadRightXSensitivity_Params { float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInput.GetGamepadRightXInverted struct UMordhauInput_GetGamepadRightXInverted_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInput.GetGamepadRightXDeadzone struct UMordhauInput_GetGamepadRightXDeadzone_Params { float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInput.GetGamepadLeftYSensitivity struct UMordhauInput_GetGamepadLeftYSensitivity_Params { float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInput.GetGamepadLeftYInverted struct UMordhauInput_GetGamepadLeftYInverted_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInput.GetGamepadLeftYDeadzone struct UMordhauInput_GetGamepadLeftYDeadzone_Params { float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInput.GetGamepadLeftXSensitivity struct UMordhauInput_GetGamepadLeftXSensitivity_Params { float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInput.GetGamepadLeftXInverted struct UMordhauInput_GetGamepadLeftXInverted_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInput.GetGamepadLeftXDeadzone struct UMordhauInput_GetGamepadLeftXDeadzone_Params { float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInput.GetGamepadDeadzoneLimits struct UMordhauInput_GetGamepadDeadzoneLimits_Params { struct FVector2D ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInput.GetControlScheme struct UMordhauInput_GetControlScheme_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInput.GetAxisScale struct UMordhauInput_GetAxisScale_Params { struct FInputAxisKeyMapping AxisKeyBinding; // (ConstParm, Parm, OutParm, ReferenceParm) float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInput.GetAxisOppositeDirectionName struct UMordhauInput_GetAxisOppositeDirectionName_Params { struct FName AxisName; // (ConstParm, Parm, OutParm, ZeroConstructor, ReferenceParm, IsPlainOldData) struct FName ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInput.GetAxisName struct UMordhauInput_GetAxisName_Params { struct FInputAxisKeyMapping AxisKeyBinding; // (ConstParm, Parm, OutParm, ReferenceParm) struct FName ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInput.GetAxisKeyBindings struct UMordhauInput_GetAxisKeyBindings_Params { TArray<struct FInputAxisKeyMapping> AxisKeyBindings; // (Parm, OutParm, ZeroConstructor) }; // Function Mordhau.MordhauInput.GetAxisKeyBinding struct UMordhauInput_GetAxisKeyBinding_Params { struct FName AxisName; // (ConstParm, Parm, OutParm, ZeroConstructor, ReferenceParm, IsPlainOldData) struct FInputAxisKeyMapping ReturnValue; // (Parm, OutParm, ReturnParm) }; // Function Mordhau.MordhauInput.GetAxisKey struct UMordhauInput_GetAxisKey_Params { struct FInputAxisKeyMapping AxisKeyBinding; // (ConstParm, Parm, OutParm, ReferenceParm) struct FKey ReturnValue; // (Parm, OutParm, ReturnParm) }; // Function Mordhau.MordhauInput.GetAngleAttacksWithMovement struct UMordhauInput_GetAngleAttacksWithMovement_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInput.GetAngleAttackAfterPress struct UMordhauInput_GetAngleAttackAfterPress_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInput.GetActionName struct UMordhauInput_GetActionName_Params { struct FInputActionKeyMapping ActionKeyBinding; // (ConstParm, Parm, OutParm, ReferenceParm) struct FName ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInput.GetActionKeyBindings struct UMordhauInput_GetActionKeyBindings_Params { TArray<struct FInputActionKeyMapping> ActionKeyBindings; // (Parm, OutParm, ZeroConstructor) }; // Function Mordhau.MordhauInput.GetActionKeyBinding struct UMordhauInput_GetActionKeyBinding_Params { struct FName ActionName; // (ConstParm, Parm, OutParm, ZeroConstructor, ReferenceParm, IsPlainOldData) struct FInputActionKeyMapping ReturnValue; // (Parm, OutParm, ReturnParm) }; // Function Mordhau.MordhauInput.GetActionKey struct UMordhauInput_GetActionKey_Params { struct FInputActionKeyMapping ActionKeyBinding; // (ConstParm, Parm, OutParm, ReferenceParm) struct FKey ReturnValue; // (Parm, OutParm, ReturnParm) }; // Function Mordhau.MordhauInput.ClearKeyBindings struct UMordhauInput_ClearKeyBindings_Params { }; // Function Mordhau.MordhauInput.ApplySettings struct UMordhauInput_ApplySettings_Params { }; // Function Mordhau.MordhauInput.AddAxisKeyBinding struct UMordhauInput_AddAxisKeyBinding_Params { struct FName AxisName; // (ConstParm, Parm, OutParm, ZeroConstructor, ReferenceParm, IsPlainOldData) struct FKey Key; // (ConstParm, Parm, OutParm, ReferenceParm) }; // Function Mordhau.MordhauInput.AddActionKeyBinding struct UMordhauInput_AddActionKeyBinding_Params { struct FName ActionName; // (ConstParm, Parm, OutParm, ZeroConstructor, ReferenceParm, IsPlainOldData) struct FKey Key; // (ConstParm, Parm, OutParm, ReferenceParm) }; // Function Mordhau.MordhauInventory.UnlockLevelUnlocks struct UMordhauInventory_UnlockLevelUnlocks_Params { struct FSteamID SteamID; // (ConstParm, Parm, OutParm, ReferenceParm) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInventory.UnlockItems struct UMordhauInventory_UnlockItems_Params { ECallResult CallResult; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) struct FSteamID SteamID; // (ConstParm, Parm, OutParm, ReferenceParm) TArray<int> ItemDefIDs; // (ConstParm, Parm, OutParm, ZeroConstructor, ReferenceParm) }; // Function Mordhau.MordhauInventory.UnlockItem struct UMordhauInventory_UnlockItem_Params { ECallResult CallResult; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) struct FSteamID SteamID; // (ConstParm, Parm, OutParm, ReferenceParm) int ItemDefID; // (ConstParm, Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauInventory.TriggerRewardDrop struct UMordhauInventory_TriggerRewardDrop_Params { ECallResult CallResult; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) TArray<class AMordhauPlayerState*> Players; // (ConstParm, Parm, OutParm, ZeroConstructor, ReferenceParm) }; // Function Mordhau.MordhauInventory.TriggerItemDrop struct UMordhauInventory_TriggerItemDrop_Params { ECallResult CallResult; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) int ItemDefID; // (ConstParm, Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauInventory.SetItemQuantity struct UMordhauInventory_SetItemQuantity_Params { ECallResult CallResult; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) struct FSteamID SteamID; // (ConstParm, Parm, OutParm, ReferenceParm) int ItemDefID; // (ConstParm, Parm, ZeroConstructor, IsPlainOldData) int quantity; // (ConstParm, Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauInventory.SerializeItems struct UMordhauInventory_SerializeItems_Params { ECallResult CallResult; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauInventory.ResetInventory struct UMordhauInventory_ResetInventory_Params { ECallResult CallResult; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauInventory.RequestUnlockRecipes struct UMordhauInventory_RequestUnlockRecipes_Params { }; // Function Mordhau.MordhauInventory.RefreshItems struct UMordhauInventory_RefreshItems_Params { ECallResult CallResult; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauInventory.ParseResponseString struct UMordhauInventory_ParseResponseString_Params { struct FString ResponseString; // (Parm, ZeroConstructor) TArray<struct FItemStack> ItemStacks; // (Parm, OutParm, ZeroConstructor) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInventory.OnWebAPIItemsDropped struct UMordhauInventory_OnWebAPIItemsDropped_Params { struct FSteamID SteamID; // (ConstParm, Parm, OutParm, ReferenceParm) TArray<struct FItemStack> ItemStacks; // (ConstParm, Parm, OutParm, ZeroConstructor, ReferenceParm) }; // Function Mordhau.MordhauInventory.IsSkinAvailable struct UMordhauInventory_IsSkinAvailable_Params { struct FSteamID SteamID; // (ConstParm, Parm, OutParm, ReferenceParm) struct FEquipmentSkinEntry Skin; // (ConstParm, Parm, OutParm, ReferenceParm) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInventory.IsInventoryAvailable struct UMordhauInventory_IsInventoryAvailable_Params { struct FSteamID SteamID; // (ConstParm, Parm, OutParm, ReferenceParm) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInventory.HasSupporterPack struct UMordhauInventory_HasSupporterPack_Params { struct FSteamID SteamID; // (ConstParm, Parm, OutParm, ReferenceParm) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInventory.HasSkin struct UMordhauInventory_HasSkin_Params { struct FSteamID SteamID; // (ConstParm, Parm, OutParm, ReferenceParm) struct FEquipmentSkinEntry Skin; // (ConstParm, Parm, OutParm, ReferenceParm) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInventory.HasRewards struct UMordhauInventory_HasRewards_Params { struct FSteamID SteamID; // (ConstParm, Parm, OutParm, ReferenceParm) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInventory.HasItem struct UMordhauInventory_HasItem_Params { struct FSteamID SteamID; // (ConstParm, Parm, OutParm, ReferenceParm) int ItemDefID; // (ConstParm, Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInventory.GetXPItemDefID struct UMordhauInventory_GetXPItemDefID_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInventory.GetUnlockRequirements struct UMordhauInventory_GetUnlockRequirements_Params { ECallResult CallResult; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) int ItemDefID; // (ConstParm, Parm, ZeroConstructor, IsPlainOldData) TArray<struct FItemStack> Requirements; // (Parm, OutParm, ZeroConstructor) }; // Function Mordhau.MordhauInventory.GetUnlockRecipe struct UMordhauInventory_GetUnlockRecipe_Params { ECallResult CallResult; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) int ItemDefID; // (ConstParm, Parm, ZeroConstructor, IsPlainOldData) struct FUnlockRecipe Recipe; // (Parm, OutParm) }; // Function Mordhau.MordhauInventory.GetTutorialPackageItemDefID struct UMordhauInventory_GetTutorialPackageItemDefID_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInventory.GetStackQuantity struct UMordhauInventory_GetStackQuantity_Params { struct FItemStack ItemStack; // (ConstParm, Parm, OutParm, ReferenceParm) int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInventory.GetStackItemDefID struct UMordhauInventory_GetStackItemDefID_Params { struct FItemStack ItemStack; // (ConstParm, Parm, OutParm, ReferenceParm) int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInventory.GetStackItem struct UMordhauInventory_GetStackItem_Params { struct FItemStack ItemStack; // (ConstParm, Parm, OutParm, ReferenceParm) class UMordhauInventoryItem* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInventory.GetSkinRarity struct UMordhauInventory_GetSkinRarity_Params { struct FEquipmentSkinEntry Skin; // (ConstParm, Parm, OutParm, ReferenceParm) EItemRarity ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInventory.GetItemStacks struct UMordhauInventory_GetItemStacks_Params { ECallResult CallResult; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) struct FSteamID SteamID; // (ConstParm, Parm, OutParm, ReferenceParm) TArray<struct FItemStack> ItemStacks; // (Parm, OutParm, ZeroConstructor) }; // Function Mordhau.MordhauInventory.GetItemQuantity struct UMordhauInventory_GetItemQuantity_Params { ECallResult CallResult; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) struct FSteamID SteamID; // (ConstParm, Parm, OutParm, ReferenceParm) int ItemDefID; // (ConstParm, Parm, ZeroConstructor, IsPlainOldData) int quantity; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauInventory.GetItem struct UMordhauInventory_GetItem_Params { int ItemDefID; // (ConstParm, Parm, ZeroConstructor, IsPlainOldData) class UMordhauInventoryItem* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInventory.GetGoldItemDefID struct UMordhauInventory_GetGoldItemDefID_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInventory.FakeRewardDrop struct UMordhauInventory_FakeRewardDrop_Params { ECallResult CallResult; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) int Gold; // (ConstParm, Parm, ZeroConstructor, IsPlainOldData) int XP; // (ConstParm, Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauInventory.FakeItemDrop struct UMordhauInventory_FakeItemDrop_Params { ECallResult CallResult; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) int ItemDefID; // (ConstParm, Parm, ZeroConstructor, IsPlainOldData) int quantity; // (ConstParm, Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauInventory.DeserializeItems struct UMordhauInventory_DeserializeItems_Params { ECallResult CallResult; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) struct FSteamID SteamID; // (ConstParm, Parm, OutParm, ReferenceParm) struct FSerializedItems SerializedItems; // (ConstParm, Parm, OutParm, ReferenceParm) }; // Function Mordhau.MordhauInventory.ConsumeItemStack struct UMordhauInventory_ConsumeItemStack_Params { ECallResult CallResult; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) struct FItemStack ItemStack; // (ConstParm, Parm, OutParm, ReferenceParm) }; // Function Mordhau.MordhauInventory.ConsolidateItems struct UMordhauInventory_ConsolidateItems_Params { ECallResult CallResult; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauInventory.CollectRewards struct UMordhauInventory_CollectRewards_Params { struct FSteamID SteamID; // (ConstParm, Parm, OutParm, ReferenceParm) TArray<struct FItemStack> ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm) }; // Function Mordhau.MordhauInventory.CanUnlockItems struct UMordhauInventory_CanUnlockItems_Params { struct FSteamID SteamID; // (ConstParm, Parm, OutParm, ReferenceParm) TArray<int> ItemDefIDs; // (ConstParm, Parm, OutParm, ZeroConstructor, ReferenceParm) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInventory.CanUnlockItem struct UMordhauInventory_CanUnlockItem_Params { struct FSteamID SteamID; // (ConstParm, Parm, OutParm, ReferenceParm) int ItemDefID; // (ConstParm, Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInventory.AreUnlockRecipesAvailable struct UMordhauInventory_AreUnlockRecipesAvailable_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauInventory.AddItems struct UMordhauInventory_AddItems_Params { ECallResult CallResult; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) TArray<int> ItemDefIDs; // (ConstParm, Parm, OutParm, ZeroConstructor, ReferenceParm) }; // Function Mordhau.MordhauInventory.AddItem struct UMordhauInventory_AddItem_Params { ECallResult CallResult; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) int ItemDefID; // (ConstParm, Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauMovementComponent.Knockback struct UMordhauMovementComponent_Knockback_Params { struct FVector Amount; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) }; // Function Mordhau.MordhauMovementComponent.IsInKnockback struct UMordhauMovementComponent_IsInKnockback_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauMovementComponent.GetSpeedFactor struct UMordhauMovementComponent_GetSpeedFactor_Params { float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauMovementComponent.GetAccelerationFactor struct UMordhauMovementComponent_GetAccelerationFactor_Params { float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.VoteMap struct AMordhauPlayerController_VoteMap_Params { struct FString MapName; // (Parm, ZeroConstructor) }; // Function Mordhau.MordhauPlayerController.VoteLevel struct AMordhauPlayerController_VoteLevel_Params { struct FString LevelName; // (Parm, ZeroConstructor) }; // Function Mordhau.MordhauPlayerController.VoteKick struct AMordhauPlayerController_VoteKick_Params { struct FString PlayerNameOrSteamID; // (Parm, ZeroConstructor) }; // Function Mordhau.MordhauPlayerController.Unban struct AMordhauPlayerController_Unban_Params { struct FString SteamID; // (Parm, ZeroConstructor) }; // Function Mordhau.MordhauPlayerController.Turn struct AMordhauPlayerController_Turn_Params { float Value; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.ToggleStamina struct AMordhauPlayerController_ToggleStamina_Params { }; // Function Mordhau.MordhauPlayerController.ToggleDamage struct AMordhauPlayerController_ToggleDamage_Params { }; // Function Mordhau.MordhauPlayerController.StopServerStatsFile struct AMordhauPlayerController_StopServerStatsFile_Params { }; // Function Mordhau.MordhauPlayerController.StartServerStatsFile struct AMordhauPlayerController_StartServerStatsFile_Params { }; // Function Mordhau.MordhauPlayerController.SpectatorCmd struct AMordhauPlayerController_SpectatorCmd_Params { struct FString SpecCmd; // (Parm, ZeroConstructor) }; // Function Mordhau.MordhauPlayerController.Slomo struct AMordhauPlayerController_Slomo_Params { float Value; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.ShowTips struct AMordhauPlayerController_ShowTips_Params { }; // Function Mordhau.MordhauPlayerController.ShowEquipment struct AMordhauPlayerController_ShowEquipment_Params { }; // Function Mordhau.MordhauPlayerController.ShowAuthTraces struct AMordhauPlayerController_ShowAuthTraces_Params { bool bValue; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.SetChoiceMenuConsumesInput struct AMordhauPlayerController_SetChoiceMenuConsumesInput_Params { bool Value; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.ServerVoteLevel struct AMordhauPlayerController_ServerVoteLevel_Params { struct FString LevelName; // (Parm, ZeroConstructor) }; // Function Mordhau.MordhauPlayerController.ServerUnbanPlayer struct AMordhauPlayerController_ServerUnbanPlayer_Params { uint64_t SteamID; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.ServerToggleStamina struct AMordhauPlayerController_ServerToggleStamina_Params { }; // Function Mordhau.MordhauPlayerController.ServerToggleDamage struct AMordhauPlayerController_ServerToggleDamage_Params { }; // Function Mordhau.MordhauPlayerController.ServerStopServerStatsFile struct AMordhauPlayerController_ServerStopServerStatsFile_Params { }; // Function Mordhau.MordhauPlayerController.ServerStartServerStatsFile struct AMordhauPlayerController_ServerStartServerStatsFile_Params { }; // Function Mordhau.MordhauPlayerController.ServerSlomo struct AMordhauPlayerController_ServerSlomo_Params { float Value; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.ServerSetSpawnToken struct AMordhauPlayerController_ServerSetSpawnToken_Params { int NewToken; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.ServerSetMatchmakingLobbyID struct AMordhauPlayerController_ServerSetMatchmakingLobbyID_Params { struct FSteamID InMatchmakingLobbyID; // (ConstParm, Parm, ReferenceParm) }; // Function Mordhau.MordhauPlayerController.ServerSetInventoryItems struct AMordhauPlayerController_ServerSetInventoryItems_Params { struct FSerializedItems SerializedItems; // (ConstParm, Parm, ReferenceParm) }; // Function Mordhau.MordhauPlayerController.ServerSetBadge struct AMordhauPlayerController_ServerSetBadge_Params { unsigned char NewBadge; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.ServerSetAuthTicket struct AMordhauPlayerController_ServerSetAuthTicket_Params { struct FString InAuhTicket; // (Parm, ZeroConstructor) }; // Function Mordhau.MordhauPlayerController.ServerRequestSetTeam struct AMordhauPlayerController_ServerRequestSetTeam_Params { int NewTeam; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.ServerRequestSetSkillsCustomization struct AMordhauPlayerController_ServerRequestSetSkillsCustomization_Params { struct FSkillsCustomization NewCharacterSkills; // (ConstParm, Parm, ReferenceParm) }; // Function Mordhau.MordhauPlayerController.ServerRequestSetGearCustomization struct AMordhauPlayerController_ServerRequestSetGearCustomization_Params { struct FCharacterGearCustomization NewCharacterGear; // (ConstParm, Parm, ReferenceParm) }; // Function Mordhau.MordhauPlayerController.ServerRequestSetFaceCustomization struct AMordhauPlayerController_ServerRequestSetFaceCustomization_Params { struct FFaceCustomization NewCharacterFace; // (ConstParm, Parm, ReferenceParm) }; // Function Mordhau.MordhauPlayerController.ServerRequestSetDefaultProfile struct AMordhauPlayerController_ServerRequestSetDefaultProfile_Params { int NewDefaultProfile; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.ServerRequestSetDefaultCharacterTiers struct AMordhauPlayerController_ServerRequestSetDefaultCharacterTiers_Params { TArray<struct FCharacterGearCustomization> Tiers; // (ConstParm, Parm, ZeroConstructor, ReferenceParm) }; // Function Mordhau.MordhauPlayerController.ServerRequestSetDefaultCharacterEquipment struct AMordhauPlayerController_ServerRequestSetDefaultCharacterEquipment_Params { TArray<struct FEquipmentCustomization> Equip; // (ConstParm, Parm, ZeroConstructor, ReferenceParm) }; // Function Mordhau.MordhauPlayerController.ServerRequestSetAppearanceCustomization struct AMordhauPlayerController_ServerRequestSetAppearanceCustomization_Params { struct FAppearanceCustomization NewCharacterAppearance; // (ConstParm, Parm, ReferenceParm) }; // Function Mordhau.MordhauPlayerController.ServerRequestRewards struct AMordhauPlayerController_ServerRequestRewards_Params { }; // Function Mordhau.MordhauPlayerController.ServerRequestAuthTraces struct AMordhauPlayerController_ServerRequestAuthTraces_Params { bool bEnabled; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.ServerRemoveBots struct AMordhauPlayerController_ServerRemoveBots_Params { int Amount; // (Parm, ZeroConstructor, IsPlainOldData) int Team; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.ServerRemoveAdmin struct AMordhauPlayerController_ServerRemoveAdmin_Params { uint64_t SteamID; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.ServerKickPlayer struct AMordhauPlayerController_ServerKickPlayer_Params { uint64_t SteamID; // (Parm, ZeroConstructor, IsPlainOldData) struct FString KickReason; // (Parm, ZeroConstructor) }; // Function Mordhau.MordhauPlayerController.ServerGetServerStats struct AMordhauPlayerController_ServerGetServerStats_Params { }; // Function Mordhau.MordhauPlayerController.ServerGetMapVoteMaps struct AMordhauPlayerController_ServerGetMapVoteMaps_Params { }; // Function Mordhau.MordhauPlayerController.ServerGetMapVoteCounts struct AMordhauPlayerController_ServerGetMapVoteCounts_Params { }; // Function Mordhau.MordhauPlayerController.ServerChangeLevel struct AMordhauPlayerController_ServerChangeLevel_Params { struct FString LevelName; // (Parm, ZeroConstructor) }; // Function Mordhau.MordhauPlayerController.ServerBanPlayer struct AMordhauPlayerController_ServerBanPlayer_Params { uint64_t SteamID; // (Parm, ZeroConstructor, IsPlainOldData) int BanDuration; // (ConstParm, Parm, ZeroConstructor, IsPlainOldData) struct FString BanReason; // (Parm, ZeroConstructor) }; // Function Mordhau.MordhauPlayerController.ServerBanList struct AMordhauPlayerController_ServerBanList_Params { }; // Function Mordhau.MordhauPlayerController.ServerAdminLogin struct AMordhauPlayerController_ServerAdminLogin_Params { struct FString Password; // (Parm, ZeroConstructor) }; // Function Mordhau.MordhauPlayerController.ServerAdminList struct AMordhauPlayerController_ServerAdminList_Params { }; // Function Mordhau.MordhauPlayerController.ServerAddBots struct AMordhauPlayerController_ServerAddBots_Params { int Amount; // (Parm, ZeroConstructor, IsPlainOldData) int Team; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.ServerAddAdmin struct AMordhauPlayerController_ServerAddAdmin_Params { uint64_t SteamID; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.SaveCurrentProfilesAsBotProfiles struct AMordhauPlayerController_SaveCurrentProfilesAsBotProfiles_Params { }; // Function Mordhau.MordhauPlayerController.RemoveBotsTeam struct AMordhauPlayerController_RemoveBotsTeam_Params { int Amount; // (Parm, ZeroConstructor, IsPlainOldData) int Team; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.RemoveBots struct AMordhauPlayerController_RemoveBots_Params { int Amount; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.RemoveAdmin struct AMordhauPlayerController_RemoveAdmin_Params { struct FString PlayerNameOrSteamID; // (Parm, ZeroConstructor) }; // Function Mordhau.MordhauPlayerController.RegisterAnglingYInput struct AMordhauPlayerController_RegisterAnglingYInput_Params { float Value; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.RegisterAnglingXInput struct AMordhauPlayerController_RegisterAnglingXInput_Params { float Value; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.PrepareAndSendCustomizationIfChanged struct AMordhauPlayerController_PrepareAndSendCustomizationIfChanged_Params { }; // Function Mordhau.MordhauPlayerController.PlayerList struct AMordhauPlayerController_PlayerList_Params { }; // Function Mordhau.MordhauPlayerController.OnSpectatorCmd struct AMordhauPlayerController_OnSpectatorCmd_Params { struct FString Cmd; // (Parm, ZeroConstructor) struct FString Param; // (Parm, ZeroConstructor) }; // Function Mordhau.MordhauPlayerController.OnSpectatorAction struct AMordhauPlayerController_OnSpectatorAction_Params { unsigned char Action; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.OnSettingsChanged struct AMordhauPlayerController_OnSettingsChanged_Params { }; // Function Mordhau.MordhauPlayerController.OnRequestVoteKick struct AMordhauPlayerController_OnRequestVoteKick_Params { class AMordhauPlayerState* TargetPlayer; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.OnRequestCancelVoteKick struct AMordhauPlayerController_OnRequestCancelVoteKick_Params { }; // Function Mordhau.MordhauPlayerController.OnNewProfileFromClientPreValidation struct AMordhauPlayerController_OnNewProfileFromClientPreValidation_Params { }; // Function Mordhau.MordhauPlayerController.OnNewProfileFromClientPostValidation struct AMordhauPlayerController_OnNewProfileFromClientPostValidation_Params { }; // Function Mordhau.MordhauPlayerController.OnMordhauCharacterSpawned struct AMordhauPlayerController_OnMordhauCharacterSpawned_Params { class AMordhauCharacter* SpawnedCharacter; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.OnIsAnythingRestockableChanged struct AMordhauPlayerController_OnIsAnythingRestockableChanged_Params { }; // Function Mordhau.MordhauPlayerController.OnInventoryRewardsDropped struct AMordhauPlayerController_OnInventoryRewardsDropped_Params { bool bWasSuccessful; // (Parm, ZeroConstructor, IsPlainOldData) struct FSteamID SteamID; // (ConstParm, Parm, OutParm, ReferenceParm) TArray<struct FItemStack> ItemStacks; // (ConstParm, Parm, OutParm, ZeroConstructor, ReferenceParm) }; // Function Mordhau.MordhauPlayerController.OnInventoryItemsUnlocked struct AMordhauPlayerController_OnInventoryItemsUnlocked_Params { bool bWasSuccessful; // (Parm, ZeroConstructor, IsPlainOldData) struct FSteamID SteamID; // (ConstParm, Parm, OutParm, ReferenceParm) TArray<struct FItemStack> ItemStacks; // (ConstParm, Parm, OutParm, ZeroConstructor, ReferenceParm) }; // Function Mordhau.MordhauPlayerController.OnInventoryItemsSerialized struct AMordhauPlayerController_OnInventoryItemsSerialized_Params { bool bWasSuccessful; // (Parm, ZeroConstructor, IsPlainOldData) struct FSteamID SteamID; // (ConstParm, Parm, OutParm, ReferenceParm) struct FSerializedItems SerializedItems; // (ConstParm, Parm, OutParm, ReferenceParm) }; // Function Mordhau.MordhauPlayerController.OnHighlightStart struct AMordhauPlayerController_OnHighlightStart_Params { class AActor* Actor; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.OnHighlightEnd struct AMordhauPlayerController_OnHighlightEnd_Params { class AActor* Actor; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.OnAmmoChanged struct AMordhauPlayerController_OnAmmoChanged_Params { class AMordhauEquipment* Equipment; // (Parm, ZeroConstructor, IsPlainOldData) int AmmoDifference; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.OnAfterPossess struct AMordhauPlayerController_OnAfterPossess_Params { class APawn* APawn; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.OnAFKTimeExceededMaximum struct AMordhauPlayerController_OnAFKTimeExceededMaximum_Params { }; // Function Mordhau.MordhauPlayerController.OnActionFailed struct AMordhauPlayerController_OnActionFailed_Params { struct FName Reason; // (ConstParm, Parm, OutParm, ZeroConstructor, ReferenceParm, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.LookUp struct AMordhauPlayerController_LookUp_Params { float Value; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.Kick struct AMordhauPlayerController_Kick_Params { struct FString PlayerNameOrSteamID; // (Parm, ZeroConstructor) struct FString KickReason; // (Parm, ZeroConstructor) }; // Function Mordhau.MordhauPlayerController.IsInventoryAvailable struct AMordhauPlayerController_IsInventoryAvailable_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.IsAuthTicketAvailable struct AMordhauPlayerController_IsAuthTicketAvailable_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.IsAdmin struct AMordhauPlayerController_IsAdmin_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.GiveClientScoreBP struct AMordhauPlayerController_GiveClientScoreBP_Params { EScoreFeedReason Reason; // (Parm, ZeroConstructor, IsPlainOldData) int ScoreAmount; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.GetSteamID struct AMordhauPlayerController_GetSteamID_Params { struct FSteamID ReturnValue; // (ConstParm, Parm, OutParm, ReturnParm) }; // Function Mordhau.MordhauPlayerController.GetSteamAvatar struct AMordhauPlayerController_GetSteamAvatar_Params { EAvatarSize Size; // (Parm, ZeroConstructor, IsPlainOldData) class UTexture2D* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.GetLastControlledCharacter struct AMordhauPlayerController_GetLastControlledCharacter_Params { class AMordhauCharacter* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.GetDefaultTierCustomizationForSlot struct AMordhauPlayerController_GetDefaultTierCustomizationForSlot_Params { EMainWearableSlot MainSlot; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char ArmorTier; // (Parm, ZeroConstructor, IsPlainOldData) TMap<EWearableSlot, struct FWearableCustomization> OutMap; // (Parm, OutParm, ZeroConstructor) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.GetDefaultEquipmentCustomizationFor struct AMordhauPlayerController_GetDefaultEquipmentCustomizationFor_Params { class UClass* ForEquipmentClass; // (Parm, ZeroConstructor, IsPlainOldData) struct FEquipmentCustomization OutCustomization; // (Parm, OutParm) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.GetAnglingVector struct AMordhauPlayerController_GetAnglingVector_Params { struct FVector2D ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.GetAnglingAngle struct AMordhauPlayerController_GetAnglingAngle_Params { float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.FlushPendingAnglingInputs struct AMordhauPlayerController_FlushPendingAnglingInputs_Params { }; // Function Mordhau.MordhauPlayerController.EquipmentCommand struct AMordhauPlayerController_EquipmentCommand_Params { int Command; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.DisplayMessage struct AMordhauPlayerController_DisplayMessage_Params { class APlayerState* SenderPlayerState; // (Parm, ZeroConstructor, IsPlainOldData) struct FString S; // (Parm, ZeroConstructor) struct FName Type; // (Parm, ZeroConstructor, IsPlainOldData) float MsgLifeTime; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.ClientWasKicked_Implementation struct AMordhauPlayerController_ClientWasKicked_Implementation_Params { struct FText KickReason; // (ConstParm, Parm, OutParm, ReferenceParm) }; // Function Mordhau.MordhauPlayerController.ClientSetServerStats struct AMordhauPlayerController_ClientSetServerStats_Params { struct FServerStats InServerStats; // (ConstParm, Parm, ReferenceParm) }; // Function Mordhau.MordhauPlayerController.ClientSetMapVoteMaps struct AMordhauPlayerController_ClientSetMapVoteMaps_Params { TArray<struct FString> InMapVoteMaps; // (ConstParm, Parm, ZeroConstructor, ReferenceParm) }; // Function Mordhau.MordhauPlayerController.ClientSetMapVoteCounts struct AMordhauPlayerController_ClientSetMapVoteCounts_Params { TArray<unsigned char> InMapVoteCounts; // (ConstParm, Parm, ZeroConstructor, ReferenceParm) }; // Function Mordhau.MordhauPlayerController.ClientSetControlAndPawnRotation struct AMordhauPlayerController_ClientSetControlAndPawnRotation_Params { class APawn* APawn; // (Parm, ZeroConstructor, IsPlainOldData) struct FRotator NewRotation; // (Parm, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.ClientRequestMatchmakingLobbyID struct AMordhauPlayerController_ClientRequestMatchmakingLobbyID_Params { }; // Function Mordhau.MordhauPlayerController.ClientRequestInventoryItems struct AMordhauPlayerController_ClientRequestInventoryItems_Params { }; // Function Mordhau.MordhauPlayerController.ClientRequestAuthTicket struct AMordhauPlayerController_ClientRequestAuthTicket_Params { }; // Function Mordhau.MordhauPlayerController.ClientReceiveScoreNoState struct AMordhauPlayerController_ClientReceiveScoreNoState_Params { unsigned char ReasonAndParam; // (Parm, ZeroConstructor, IsPlainOldData) int16_t ScoreAmount; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.ClientReceiveScoreBP struct AMordhauPlayerController_ClientReceiveScoreBP_Params { EScoreFeedReason Reason; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char ReasonParam; // (Parm, ZeroConstructor, IsPlainOldData) float ScoreAmount; // (Parm, ZeroConstructor, IsPlainOldData) class AMordhauPlayerState* AssociatedPlayer; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.ClientReceiveScore struct AMordhauPlayerController_ClientReceiveScore_Params { unsigned char ReasonAndParam; // (Parm, ZeroConstructor, IsPlainOldData) int16_t ScoreAmount; // (Parm, ZeroConstructor, IsPlainOldData) class AMordhauPlayerState* AssociatedPlayer; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.ClientReceiveRewards struct AMordhauPlayerController_ClientReceiveRewards_Params { TArray<struct FItemStack> Rewards; // (ConstParm, Parm, ZeroConstructor, ReferenceParm) }; // Function Mordhau.MordhauPlayerController.ClientReceiveMessage struct AMordhauPlayerController_ClientReceiveMessage_Params { struct FString Message; // (Parm, ZeroConstructor) }; // Function Mordhau.MordhauPlayerController.ClientNotifyInventoryIsAvailable struct AMordhauPlayerController_ClientNotifyInventoryIsAvailable_Params { }; // Function Mordhau.MordhauPlayerController.ClientMessageBP struct AMordhauPlayerController_ClientMessageBP_Params { struct FString String; // (Parm, ZeroConstructor) }; // Function Mordhau.MordhauPlayerController.ClientJoinMatchmakingLobby struct AMordhauPlayerController_ClientJoinMatchmakingLobby_Params { struct FSteamID InMatchmakingLobbyID; // (ConstParm, Parm, ReferenceParm) }; // Function Mordhau.MordhauPlayerController.ClientDrawTracer struct AMordhauPlayerController_ClientDrawTracer_Params { struct FVector Start; // (Parm, IsPlainOldData) struct FVector End; // (Parm, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.ChooseExit struct AMordhauPlayerController_ChooseExit_Params { }; // Function Mordhau.MordhauPlayerController.Choose9 struct AMordhauPlayerController_Choose9_Params { }; // Function Mordhau.MordhauPlayerController.Choose8 struct AMordhauPlayerController_Choose8_Params { }; // Function Mordhau.MordhauPlayerController.Choose7 struct AMordhauPlayerController_Choose7_Params { }; // Function Mordhau.MordhauPlayerController.Choose6 struct AMordhauPlayerController_Choose6_Params { }; // Function Mordhau.MordhauPlayerController.Choose5 struct AMordhauPlayerController_Choose5_Params { }; // Function Mordhau.MordhauPlayerController.Choose4 struct AMordhauPlayerController_Choose4_Params { }; // Function Mordhau.MordhauPlayerController.Choose3 struct AMordhauPlayerController_Choose3_Params { }; // Function Mordhau.MordhauPlayerController.Choose2 struct AMordhauPlayerController_Choose2_Params { }; // Function Mordhau.MordhauPlayerController.Choose1 struct AMordhauPlayerController_Choose1_Params { }; // Function Mordhau.MordhauPlayerController.ChoiceMenuOptionSelected struct AMordhauPlayerController_ChoiceMenuOptionSelected_Params { int Choice; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.ChoiceMenu struct AMordhauPlayerController_ChoiceMenu_Params { int Index; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.ChangeMap struct AMordhauPlayerController_ChangeMap_Params { struct FString MapName; // (Parm, ZeroConstructor) }; // Function Mordhau.MordhauPlayerController.ChangeLevel struct AMordhauPlayerController_ChangeLevel_Params { struct FString LevelName; // (Parm, ZeroConstructor) }; // Function Mordhau.MordhauPlayerController.CancelVoteKick struct AMordhauPlayerController_CancelVoteKick_Params { }; // Function Mordhau.MordhauPlayerController.CanAskForSpawn struct AMordhauPlayerController_CanAskForSpawn_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.BanList struct AMordhauPlayerController_BanList_Params { }; // Function Mordhau.MordhauPlayerController.Ban struct AMordhauPlayerController_Ban_Params { struct FString PlayerNameOrSteamID; // (Parm, ZeroConstructor) int BanDuration; // (ConstParm, Parm, ZeroConstructor, IsPlainOldData) struct FString BanReason; // (Parm, ZeroConstructor) }; // Function Mordhau.MordhauPlayerController.AskForSpawn struct AMordhauPlayerController_AskForSpawn_Params { }; // Function Mordhau.MordhauPlayerController.AdminLogin struct AMordhauPlayerController_AdminLogin_Params { struct FString Password; // (Parm, ZeroConstructor) }; // Function Mordhau.MordhauPlayerController.AdminList struct AMordhauPlayerController_AdminList_Params { }; // Function Mordhau.MordhauPlayerController.AddBotsTeam struct AMordhauPlayerController_AddBotsTeam_Params { int Amount; // (Parm, ZeroConstructor, IsPlainOldData) int Team; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.AddBots struct AMordhauPlayerController_AddBots_Params { int Amount; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauPlayerController.AddAdmin struct AMordhauPlayerController_AddAdmin_Params { struct FString PlayerNameOrSteamID; // (Parm, ZeroConstructor) }; // Function Mordhau.MordhauPlayerStart.IsAllowedSpawnFor struct AMordhauPlayerStart_IsAllowedSpawnFor_Params { class AController* Player; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauPlayerStart.GetSpawnPreferenceFor struct AMordhauPlayerStart_GetSpawnPreferenceFor_Params { class AController* Player; // (Parm, ZeroConstructor, IsPlainOldData) float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauPlayerState.SetPlayerName struct AMordhauPlayerState_SetPlayerName_Params { struct FString S; // (Parm, ZeroConstructor) }; // Function Mordhau.MordhauPlayerState.OnRep_ReplicatedTeam struct AMordhauPlayerState_OnRep_ReplicatedTeam_Params { }; // Function Mordhau.MordhauPlayerState.OnRep_ReplicatedKills struct AMordhauPlayerState_OnRep_ReplicatedKills_Params { }; // Function Mordhau.MordhauPlayerState.OnRep_ReplicatedDeathsAndFlags struct AMordhauPlayerState_OnRep_ReplicatedDeathsAndFlags_Params { }; // Function Mordhau.MordhauPlayerState.OnRep_ReplicatedAssists struct AMordhauPlayerState_OnRep_ReplicatedAssists_Params { }; // Function Mordhau.MordhauPlayerState.GetSteamID struct AMordhauPlayerState_GetSteamID_Params { struct FSteamID ReturnValue; // (ConstParm, Parm, OutParm, ReturnParm) }; // Function Mordhau.MordhauPlayerState.GetRank struct AMordhauPlayerState_GetRank_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauPlayerState.GetLastPossessedMordhauCharacter struct AMordhauPlayerState_GetLastPossessedMordhauCharacter_Params { class AMordhauCharacter* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauPlayerState.AddScore struct AMordhauPlayerState_AddScore_Params { int Amount; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauPlayerState.AddKills struct AMordhauPlayerState_AddKills_Params { int Amount; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauPlayerState.AddDeaths struct AMordhauPlayerState_AddDeaths_Params { int Amount; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauPlayerState.AddAssists struct AMordhauPlayerState_AddAssists_Params { int Amount; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauProjectile.WillSticky struct AMordhauProjectile_WillSticky_Params { unsigned char Surface; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauProjectile.WillPassThrough struct AMordhauProjectile_WillPassThrough_Params { unsigned char Surface; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauProjectile.UsesProjectileBlending struct AMordhauProjectile_UsesProjectileBlending_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauProjectile.UpdateProjectileState struct AMordhauProjectile_UpdateProjectileState_Params { float DeltaTime; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauProjectile.TerminateProjectile struct AMordhauProjectile_TerminateProjectile_Params { }; // Function Mordhau.MordhauProjectile.SweepProjectile struct AMordhauProjectile_SweepProjectile_Params { }; // Function Mordhau.MordhauProjectile.StopTrail struct AMordhauProjectile_StopTrail_Params { }; // Function Mordhau.MordhauProjectile.StartTrail struct AMordhauProjectile_StartTrail_Params { }; // Function Mordhau.MordhauProjectile.SpawnParticles struct AMordhauProjectile_SpawnParticles_Params { struct FVector Location; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) struct FRotator Rotation; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) class UParticleSystem* System; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauProjectile.SpawnDecal struct AMordhauProjectile_SpawnDecal_Params { struct FVector Location; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) struct FRotator Rotation; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) struct FDecalInfo DecalInfo; // (ConstParm, Parm, OutParm, ReferenceParm) }; // Function Mordhau.MordhauProjectile.SetCurrentTrailParticles struct AMordhauProjectile_SetCurrentTrailParticles_Params { class UParticleSystemComponent* ParticleSystemComponent; // (Parm, ZeroConstructor, InstancedReference, IsPlainOldData) }; // Function Mordhau.MordhauProjectile.RestockCharacter struct AMordhauProjectile_RestockCharacter_Params { class AMordhauCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauProjectile.ProcessProjectileHit struct AMordhauProjectile_ProcessProjectileHit_Params { bool bIsBlocking; // (Parm, ZeroConstructor, IsPlainOldData) struct FHitResult Hit; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) }; // Function Mordhau.MordhauProjectile.OnRep_ReplicatedProjectileInfo struct AMordhauProjectile_OnRep_ReplicatedProjectileInfo_Params { }; // Function Mordhau.MordhauProjectile.OnProjectileHitCosmetic struct AMordhauProjectile_OnProjectileHitCosmetic_Params { class AActor* OtherActor; // (Parm, ZeroConstructor, IsPlainOldData) struct FHitResult Hit; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) }; // Function Mordhau.MordhauProjectile.OnProjectileHit struct AMordhauProjectile_OnProjectileHit_Params { struct FVector HitLocation; // (Parm, IsPlainOldData) struct FVector HitNormal; // (Parm, IsPlainOldData) float BounceForce; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char Surface; // (Parm, ZeroConstructor, IsPlainOldData) bool bHasHitWorld; // (Parm, ZeroConstructor, IsPlainOldData) bool bHasStopped; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauProjectile.OnProjectileFired struct AMordhauProjectile_OnProjectileFired_Params { }; // Function Mordhau.MordhauProjectile.OnProjectileDamagedCharacter struct AMordhauProjectile_OnProjectileDamagedCharacter_Params { class AAdvancedCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) bool bWillKill; // (Parm, ZeroConstructor, IsPlainOldData) struct FVector WorldLocation; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) struct FName bone; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauProjectile.InitializeProjectile struct AMordhauProjectile_InitializeProjectile_Params { class AController* InOwningController; // (Parm, ZeroConstructor, IsPlainOldData) bool bInIsLocallyPredicted; // (Parm, ZeroConstructor, IsPlainOldData) class AActor* InCreator; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauProjectile.GetProjectileOwningController struct AMordhauProjectile_GetProjectileOwningController_Params { class AController* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauProjectile.GetProjectileCreator struct AMordhauProjectile_GetProjectileCreator_Params { class AActor* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauProjectile.GetPercentageOfMaxVelocityClamped struct AMordhauProjectile_GetPercentageOfMaxVelocityClamped_Params { float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauProjectile.GetCurrentTransformWithOffsets struct AMordhauProjectile_GetCurrentTransformWithOffsets_Params { struct FTransform ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauProjectile.GetCurrentTrailParticles struct AMordhauProjectile_GetCurrentTrailParticles_Params { class UParticleSystemComponent* ReturnValue; // (ExportObject, Parm, OutParm, ZeroConstructor, ReturnParm, InstancedReference, IsPlainOldData) }; // Function Mordhau.MordhauProjectile.GetBlendedTransform struct AMordhauProjectile_GetBlendedTransform_Params { float T; // (Parm, ZeroConstructor, IsPlainOldData) struct FTransform ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauProjectile.Fire struct AMordhauProjectile_Fire_Params { }; // Function Mordhau.MordhauProjectile.CarryOverTrail struct AMordhauProjectile_CarryOverTrail_Params { class AMordhauProjectile* NewProjectile; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauProjectile.BounceComponent struct AMordhauProjectile_BounceComponent_Params { class USkeletalMeshComponent* ComponentToBounce; // (Parm, ZeroConstructor, InstancedReference, IsPlainOldData) struct FVector NewVelocity; // (Parm, IsPlainOldData) struct FVector NewAngularVelocity; // (Parm, IsPlainOldData) }; // Function Mordhau.MordhauProjectile.AttachProjectile struct AMordhauProjectile_AttachProjectile_Params { struct FHitResult Hit; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.FindMordhauServerSessions.OnFindServerSessionsComplete struct UFindMordhauServerSessions_OnFindServerSessionsComplete_Params { bool bWasSuccessful; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.FindMordhauServerSessions.IsVacSecured struct UFindMordhauServerSessions_IsVacSecured_Params { struct FServerSearchResult Result; // (ConstParm, Parm, OutParm, ReferenceParm) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.FindMordhauServerSessions.IsRanked struct UFindMordhauServerSessions_IsRanked_Params { struct FServerSearchResult Result; // (ConstParm, Parm, OutParm, ReferenceParm) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.FindMordhauServerSessions.IsPasswordProtected struct UFindMordhauServerSessions_IsPasswordProtected_Params { struct FServerSearchResult Result; // (ConstParm, Parm, OutParm, ReferenceParm) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.FindMordhauServerSessions.IsOfficial struct UFindMordhauServerSessions_IsOfficial_Params { struct FServerSearchResult Result; // (ConstParm, Parm, OutParm, ReferenceParm) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.FindMordhauServerSessions.IsModded struct UFindMordhauServerSessions_IsModded_Params { struct FServerSearchResult Result; // (ConstParm, Parm, OutParm, ReferenceParm) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.FindMordhauServerSessions.IsMatchmaking struct UFindMordhauServerSessions_IsMatchmaking_Params { struct FServerSearchResult Result; // (ConstParm, Parm, OutParm, ReferenceParm) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.FindMordhauServerSessions.IsDevBuild struct UFindMordhauServerSessions_IsDevBuild_Params { struct FServerSearchResult Result; // (ConstParm, Parm, OutParm, ReferenceParm) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.FindMordhauServerSessions.GetServerName struct UFindMordhauServerSessions_GetServerName_Params { struct FServerSearchResult Result; // (ConstParm, Parm, OutParm, ReferenceParm) struct FString ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm) }; // Function Mordhau.FindMordhauServerSessions.GetServerList struct UFindMordhauServerSessions_GetServerList_Params { struct FServerSearchResult Result; // (ConstParm, Parm, OutParm, ReferenceParm) EServerList ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.FindMordhauServerSessions.GetRegion struct UFindMordhauServerSessions_GetRegion_Params { struct FServerSearchResult Result; // (ConstParm, Parm, OutParm, ReferenceParm) ERegion ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.FindMordhauServerSessions.GetPing struct UFindMordhauServerSessions_GetPing_Params { struct FServerSearchResult Result; // (ConstParm, Parm, OutParm, ReferenceParm) int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.FindMordhauServerSessions.GetMaxPlayers struct UFindMordhauServerSessions_GetMaxPlayers_Params { struct FServerSearchResult Result; // (ConstParm, Parm, OutParm, ReferenceParm) int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.FindMordhauServerSessions.GetMapName struct UFindMordhauServerSessions_GetMapName_Params { struct FServerSearchResult Result; // (ConstParm, Parm, OutParm, ReferenceParm) struct FString ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm) }; // Function Mordhau.FindMordhauServerSessions.GetLobbyID struct UFindMordhauServerSessions_GetLobbyID_Params { struct FServerSearchResult Result; // (ConstParm, Parm, OutParm, ReferenceParm) struct FSteamID ReturnValue; // (Parm, OutParm, ReturnParm) }; // Function Mordhau.FindMordhauServerSessions.GetGameMode struct UFindMordhauServerSessions_GetGameMode_Params { struct FServerSearchResult Result; // (ConstParm, Parm, OutParm, ReferenceParm) struct FString ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm) }; // Function Mordhau.FindMordhauServerSessions.GetCurrentPlayers struct UFindMordhauServerSessions_GetCurrentPlayers_Params { struct FServerSearchResult Result; // (ConstParm, Parm, OutParm, ReferenceParm) int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.FindMordhauServerSessions.FindMordhauServerSessions struct UFindMordhauServerSessions_FindMordhauServerSessions_Params { EServerList ServerList; // (Parm, ZeroConstructor, IsPlainOldData) int MaxResults; // (Parm, ZeroConstructor, IsPlainOldData) struct FFindServerSessionsFilter Filter; // (ConstParm, Parm, OutParm, ReferenceParm) class UFindMordhauServerSessions* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.FindMordhauServerSessions.AllowsJoin struct UFindMordhauServerSessions_AllowsJoin_Params { struct FServerSearchResult Result; // (ConstParm, Parm, OutParm, ReferenceParm) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.FindMordhauServerSessionByAddress.FindMordhauServerSessionByAddress struct UFindMordhauServerSessionByAddress_FindMordhauServerSessionByAddress_Params { struct FServerAddress Address; // (ConstParm, Parm, OutParm, ReferenceParm) class UFindMordhauServerSessionByAddress* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.FindMordhauLobbySessions.OnFindLobbySessionsComplete struct UFindMordhauLobbySessions_OnFindLobbySessionsComplete_Params { bool bWasSuccessful; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.FindMordhauLobbySessions.GetServerAddress struct UFindMordhauLobbySessions_GetServerAddress_Params { struct FLobbySearchResult Result; // (ConstParm, Parm, OutParm, ReferenceParm) bool bWasSuccessful; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) struct FServerAddress ReturnValue; // (Parm, OutParm, ReturnParm) }; // Function Mordhau.FindMordhauLobbySessions.GetOwner struct UFindMordhauLobbySessions_GetOwner_Params { struct FLobbySearchResult Result; // (ConstParm, Parm, OutParm, ReferenceParm) struct FSteamID ReturnValue; // (Parm, OutParm, ReturnParm) }; // Function Mordhau.FindMordhauLobbySessions.GetMMR struct UFindMordhauLobbySessions_GetMMR_Params { struct FLobbySearchResult Result; // (ConstParm, Parm, OutParm, ReferenceParm) int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.FindMordhauLobbySessions.GetMaxPlayers struct UFindMordhauLobbySessions_GetMaxPlayers_Params { struct FLobbySearchResult Result; // (ConstParm, Parm, OutParm, ReferenceParm) int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.FindMordhauLobbySessions.GetLobbyID struct UFindMordhauLobbySessions_GetLobbyID_Params { struct FLobbySearchResult Result; // (ConstParm, Parm, OutParm, ReferenceParm) struct FSteamID ReturnValue; // (Parm, OutParm, ReturnParm) }; // Function Mordhau.FindMordhauLobbySessions.GetCurrentPlayers struct UFindMordhauLobbySessions_GetCurrentPlayers_Params { struct FLobbySearchResult Result; // (ConstParm, Parm, OutParm, ReferenceParm) int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.FindMordhauLobbySessions.FindMordhauLobbySessions struct UFindMordhauLobbySessions_FindMordhauLobbySessions_Params { struct FFindLobbySessionsFilter Filter; // (ConstParm, Parm, OutParm, ReferenceParm) class UFindMordhauLobbySessions* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.JoinMordhauServerSession.JoinMordhauServerSession struct UJoinMordhauServerSession_JoinMordhauServerSession_Params { struct FServerSearchResult SearchResult; // (ConstParm, Parm, OutParm, ReferenceParm) class UJoinMordhauServerSession* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.CancelFindMordhauSessions.CancelFindMordhauSessions struct UCancelFindMordhauSessions_CancelFindMordhauSessions_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.UpdateMordhauSession.UpdateMordhauSession struct UUpdateMordhauSession_UpdateMordhauSession_Params { struct FServerSearchResult Session; // (ConstParm, Parm, OutParm, ReferenceParm) class UUpdateMordhauSession* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.DestroyMordhauServerSession.DestroyMordhauServerSession struct UDestroyMordhauServerSession_DestroyMordhauServerSession_Params { class UDestroyMordhauServerSession* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.CreateMatchmakingSession.CreateMatchmakingSession struct UCreateMatchmakingSession_CreateMatchmakingSession_Params { class UObject* WorldContextObject; // (Parm, ZeroConstructor, IsPlainOldData) TArray<struct FString> InGameModes; // (ConstParm, Parm, OutParm, ZeroConstructor, ReferenceParm) ERegion InRegion; // (Parm, ZeroConstructor, IsPlainOldData) class UCreateMatchmakingSession* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.JoinMatchmakingSession.JoinMatchmakingSessionByID struct UJoinMatchmakingSession_JoinMatchmakingSessionByID_Params { class UObject* WorldContextObject; // (Parm, ZeroConstructor, IsPlainOldData) struct FSteamID LobbyID; // (ConstParm, Parm, OutParm, ReferenceParm) class UJoinMatchmakingSession* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.JoinMatchmakingSession.JoinMatchmakingSession struct UJoinMatchmakingSession_JoinMatchmakingSession_Params { class UObject* WorldContextObject; // (Parm, ZeroConstructor, IsPlainOldData) struct FLobbySearchResult SearchResult; // (ConstParm, Parm, OutParm, ReferenceParm) class UJoinMatchmakingSession* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.DestroyMatchmakingSession.DestroyMatchmakingSession struct UDestroyMatchmakingSession_DestroyMatchmakingSession_Params { class UObject* WorldContextObject; // (Parm, ZeroConstructor, IsPlainOldData) class UDestroyMatchmakingSession* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauSingleton.SpawnEquipment struct UMordhauSingleton_SpawnEquipment_Params { class UWorld* WorldRef; // (Parm, ZeroConstructor, IsPlainOldData) struct FEquipmentCustomization Customization; // (ConstParm, Parm, OutParm, ReferenceParm) unsigned char Emblem; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char EmblemColor1; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char EmblemColor2; // (Parm, ZeroConstructor, IsPlainOldData) bool bForceInstantMeshUpdate; // (Parm, ZeroConstructor, IsPlainOldData) bool bForceMipStreaming; // (Parm, ZeroConstructor, IsPlainOldData) class AMordhauEquipment* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauSingleton.SaveToConfig struct UMordhauSingleton_SaveToConfig_Params { }; // Function Mordhau.MordhauSingleton.LoadQueueFinishedLoadingChunk struct UMordhauSingleton_LoadQueueFinishedLoadingChunk_Params { }; // Function Mordhau.MordhauSingleton.LoadFromConfig struct UMordhauSingleton_LoadFromConfig_Params { }; // Function Mordhau.MordhauSingleton.GetVoicesNum struct UMordhauSingleton_GetVoicesNum_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauSingleton.GetVoice struct UMordhauSingleton_GetVoice_Params { int Index; // (Parm, ZeroConstructor, IsPlainOldData) class UClass* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauSingleton.GetUpperChestWearablesNum struct UMordhauSingleton_GetUpperChestWearablesNum_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauSingleton.GetUpperChestWearable struct UMordhauSingleton_GetUpperChestWearable_Params { int Index; // (Parm, ZeroConstructor, IsPlainOldData) class UClass* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauSingleton.GetTableColorObject struct UMordhauSingleton_GetTableColorObject_Params { unsigned char Table; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char ID; // (Parm, ZeroConstructor, IsPlainOldData) class UMordhauColor* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauSingleton.GetTableColor struct UMordhauSingleton_GetTableColor_Params { unsigned char Table; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char ID; // (Parm, ZeroConstructor, IsPlainOldData) struct FLinearColor ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauSingleton.GetSkinColorObject struct UMordhauSingleton_GetSkinColorObject_Params { unsigned char ID; // (Parm, ZeroConstructor, IsPlainOldData) class UMordhauColor* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauSingleton.GetSkinColor struct UMordhauSingleton_GetSkinColor_Params { unsigned char ID; // (Parm, ZeroConstructor, IsPlainOldData) struct FLinearColor ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauSingleton.GetMetalTintsColorObject struct UMordhauSingleton_GetMetalTintsColorObject_Params { unsigned char ID; // (Parm, ZeroConstructor, IsPlainOldData) class UMordhauColor* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauSingleton.GetMetalTintsColor struct UMordhauSingleton_GetMetalTintsColor_Params { unsigned char ID; // (Parm, ZeroConstructor, IsPlainOldData) struct FLinearColor ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauSingleton.GetLegsWearablesNum struct UMordhauSingleton_GetLegsWearablesNum_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauSingleton.GetLegsWearable struct UMordhauSingleton_GetLegsWearable_Params { int Index; // (Parm, ZeroConstructor, IsPlainOldData) class UClass* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauSingleton.GetIsLoadingAssets struct UMordhauSingleton_GetIsLoadingAssets_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauSingleton.GetHeadWearablesNum struct UMordhauSingleton_GetHeadWearablesNum_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauSingleton.GetHeadWearable struct UMordhauSingleton_GetHeadWearable_Params { int Index; // (Parm, ZeroConstructor, IsPlainOldData) class UClass* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauSingleton.GetHairColorObject struct UMordhauSingleton_GetHairColorObject_Params { unsigned char ID; // (Parm, ZeroConstructor, IsPlainOldData) class UMordhauColor* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauSingleton.GetHairColor struct UMordhauSingleton_GetHairColor_Params { unsigned char ID; // (Parm, ZeroConstructor, IsPlainOldData) struct FLinearColor ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauSingleton.GetEyeColorObject struct UMordhauSingleton_GetEyeColorObject_Params { unsigned char ID; // (Parm, ZeroConstructor, IsPlainOldData) class UMordhauColor* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauSingleton.GetEyeColor struct UMordhauSingleton_GetEyeColor_Params { unsigned char ID; // (Parm, ZeroConstructor, IsPlainOldData) struct FLinearColor ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauSingleton.GetEquipmentNum struct UMordhauSingleton_GetEquipmentNum_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauSingleton.GetEquipmentID struct UMordhauSingleton_GetEquipmentID_Params { class UClass* EquipmentType; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauSingleton.GetEquipment struct UMordhauSingleton_GetEquipment_Params { int Index; // (Parm, ZeroConstructor, IsPlainOldData) class UClass* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauSingleton.GetEmblemColorObject struct UMordhauSingleton_GetEmblemColorObject_Params { unsigned char ID; // (Parm, ZeroConstructor, IsPlainOldData) class UMordhauColor* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauSingleton.GetEmblemColor struct UMordhauSingleton_GetEmblemColor_Params { unsigned char ID; // (Parm, ZeroConstructor, IsPlainOldData) struct FLinearColor ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauSingleton.ApplyProfileTo struct UMordhauSingleton_ApplyProfileTo_Params { struct FCharacterProfile Profile; // (ConstParm, Parm, OutParm, ReferenceParm) class AMordhauCharacter* Char; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char Team; // (Parm, ZeroConstructor, IsPlainOldData) bool bAddEquipment; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauSpectator.TertiarySpectatorAction struct AMordhauSpectator_TertiarySpectatorAction_Params { }; // Function Mordhau.MordhauSpectator.SwitchToFreeCam struct AMordhauSpectator_SwitchToFreeCam_Params { }; // Function Mordhau.MordhauSpectator.SecondarySpectatorAction struct AMordhauSpectator_SecondarySpectatorAction_Params { }; // Function Mordhau.MordhauSpectator.PrimarySpectatorAction struct AMordhauSpectator_PrimarySpectatorAction_Params { }; // Function Mordhau.MordhauSpectator.IsWatchingOwnDeath struct AMordhauSpectator_IsWatchingOwnDeath_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauStats.UpdateUserAvgRate struct UMordhauStats_UpdateUserAvgRate_Params { ECallResult CallResult; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) struct FStatAvgRate Stat; // (ConstParm, Parm, OutParm, ReferenceParm) struct FSteamID SteamID; // (ConstParm, Parm, OutParm, ReferenceParm) float CountThisSession; // (Parm, ZeroConstructor, IsPlainOldData) float SessionLength; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauStats.UpdateAvgRate struct UMordhauStats_UpdateAvgRate_Params { ECallResult CallResult; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) struct FStatAvgRate Stat; // (ConstParm, Parm, OutParm, ReferenceParm) float CountThisSession; // (Parm, ZeroConstructor, IsPlainOldData) float SessionLength; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauStats.UnlockUserAchievement struct UMordhauStats_UnlockUserAchievement_Params { ECallResult CallResult; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) struct FAchievement Achievement; // (ConstParm, Parm, OutParm, ReferenceParm) struct FSteamID SteamID; // (ConstParm, Parm, OutParm, ReferenceParm) }; // Function Mordhau.MordhauStats.UnlockAchievement struct UMordhauStats_UnlockAchievement_Params { ECallResult CallResult; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) struct FAchievement Achievement; // (ConstParm, Parm, OutParm, ReferenceParm) }; // Function Mordhau.MordhauStats.StoreUserStats struct UMordhauStats_StoreUserStats_Params { ECallResult CallResult; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) struct FSteamID SteamID; // (ConstParm, Parm, OutParm, ReferenceParm) }; // Function Mordhau.MordhauStats.StoreStats struct UMordhauStats_StoreStats_Params { ECallResult CallResult; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauStats.SetUserIntValue struct UMordhauStats_SetUserIntValue_Params { ECallResult CallResult; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) struct FStatInt Stat; // (ConstParm, Parm, OutParm, ReferenceParm) struct FSteamID SteamID; // (ConstParm, Parm, OutParm, ReferenceParm) int Value; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauStats.SetUserFloatValue struct UMordhauStats_SetUserFloatValue_Params { ECallResult CallResult; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) struct FStatFloat Stat; // (ConstParm, Parm, OutParm, ReferenceParm) struct FSteamID SteamID; // (ConstParm, Parm, OutParm, ReferenceParm) float Value; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauStats.SetIntValue struct UMordhauStats_SetIntValue_Params { ECallResult CallResult; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) struct FStatInt Stat; // (ConstParm, Parm, OutParm, ReferenceParm) int Value; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauStats.SetFloatValue struct UMordhauStats_SetFloatValue_Params { ECallResult CallResult; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) struct FStatFloat Stat; // (ConstParm, Parm, OutParm, ReferenceParm) float Value; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauStats.ResetAllStats struct UMordhauStats_ResetAllStats_Params { ECallResult CallResult; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) bool bAchievementsToo; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauStats.RequestUserStats struct UMordhauStats_RequestUserStats_Params { ECallResult CallResult; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) struct FSteamID SteamID; // (ConstParm, Parm, OutParm, ReferenceParm) }; // Function Mordhau.MordhauStats.RequestStats struct UMordhauStats_RequestStats_Params { ECallResult CallResult; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauStats.LockUserAchievement struct UMordhauStats_LockUserAchievement_Params { ECallResult CallResult; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) struct FAchievement Achievement; // (ConstParm, Parm, OutParm, ReferenceParm) struct FSteamID SteamID; // (ConstParm, Parm, OutParm, ReferenceParm) }; // Function Mordhau.MordhauStats.LockAchievement struct UMordhauStats_LockAchievement_Params { ECallResult CallResult; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) struct FAchievement Achievement; // (ConstParm, Parm, OutParm, ReferenceParm) }; // Function Mordhau.MordhauStats.IsUserAchievementUnlocked struct UMordhauStats_IsUserAchievementUnlocked_Params { ECallResult CallResult; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) struct FAchievement Achievement; // (ConstParm, Parm, OutParm, ReferenceParm) struct FSteamID SteamID; // (ConstParm, Parm, OutParm, ReferenceParm) bool bIsUnlocked; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauStats.IsAchievementUnlocked struct UMordhauStats_IsAchievementUnlocked_Params { ECallResult CallResult; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) struct FAchievement Achievement; // (ConstParm, Parm, OutParm, ReferenceParm) bool bIsUnlocked; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauStats.GetUserIntValue struct UMordhauStats_GetUserIntValue_Params { ECallResult CallResult; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) struct FStatInt Stat; // (ConstParm, Parm, OutParm, ReferenceParm) struct FSteamID SteamID; // (ConstParm, Parm, OutParm, ReferenceParm) int Value; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauStats.GetUserFloatValue struct UMordhauStats_GetUserFloatValue_Params { ECallResult CallResult; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) struct FStatFloat Stat; // (ConstParm, Parm, OutParm, ReferenceParm) struct FSteamID SteamID; // (ConstParm, Parm, OutParm, ReferenceParm) float Value; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauStats.GetUnlockIntValue struct UMordhauStats_GetUnlockIntValue_Params { struct FProgressAchievementInt Achievement; // (ConstParm, Parm, OutParm, ReferenceParm) int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauStats.GetUnlockFloatValue struct UMordhauStats_GetUnlockFloatValue_Params { struct FProgressAchievementFloat Achievement; // (ConstParm, Parm, OutParm, ReferenceParm) float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauStats.GetMaxIntValue struct UMordhauStats_GetMaxIntValue_Params { struct FStatInt Stat; // (ConstParm, Parm, OutParm, ReferenceParm) int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauStats.GetMaxFloatValue struct UMordhauStats_GetMaxFloatValue_Params { struct FStatFloat Stat; // (ConstParm, Parm, OutParm, ReferenceParm) float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauStats.GetIntValue struct UMordhauStats_GetIntValue_Params { ECallResult CallResult; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) struct FStatInt Stat; // (ConstParm, Parm, OutParm, ReferenceParm) int Value; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauStats.GetIntStatValueByName struct UMordhauStats_GetIntStatValueByName_Params { struct FString StatName; // (Parm, ZeroConstructor) int OutValue; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauStats.GetIntStat struct UMordhauStats_GetIntStat_Params { struct FProgressAchievementInt Achievement; // (ConstParm, Parm, OutParm, ReferenceParm) struct FStatInt ReturnValue; // (Parm, OutParm, ReturnParm) }; // Function Mordhau.MordhauStats.GetFloatValue struct UMordhauStats_GetFloatValue_Params { ECallResult CallResult; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) struct FStatFloat Stat; // (ConstParm, Parm, OutParm, ReferenceParm) float Value; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauStats.GetFloatStat struct UMordhauStats_GetFloatStat_Params { struct FProgressAchievementFloat Achievement; // (ConstParm, Parm, OutParm, ReferenceParm) struct FStatFloat ReturnValue; // (Parm, OutParm, ReturnParm) }; // Function Mordhau.MordhauUtilityLibrary.VSmoothDamp struct UMordhauUtilityLibrary_VSmoothDamp_Params { struct FVector Current; // (Parm, OutParm, IsPlainOldData) struct FVector Target; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) struct FVector CurrentVelocity; // (Parm, OutParm, IsPlainOldData) float SmoothTime; // (Parm, ZeroConstructor, IsPlainOldData) float DeltaTime; // (Parm, ZeroConstructor, IsPlainOldData) float MaxSpeed; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.ValidateCharacterProfile struct UMordhauUtilityLibrary_ValidateCharacterProfile_Params { struct FCharacterProfile Profile; // (ConstParm, Parm, OutParm, ReferenceParm) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.UnpossessCharacterAndHandleSpectating struct UMordhauUtilityLibrary_UnpossessCharacterAndHandleSpectating_Params { class AController* Controller; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.TryExecuteHeavydutyOperation struct UMordhauUtilityLibrary_TryExecuteHeavydutyOperation_Params { class UWorld* WorldObject; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.TermAllChildBodiesOf struct UMordhauUtilityLibrary_TermAllChildBodiesOf_Params { class USkeletalMeshComponent* USMC; // (Parm, ZeroConstructor, InstancedReference, IsPlainOldData) struct FName BoneName; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.StripProfile struct UMordhauUtilityLibrary_StripProfile_Params { struct FCharacterProfile InProfile; // (ConstParm, Parm, OutParm, ReferenceParm) bool bStripEquipment; // (Parm, ZeroConstructor, IsPlainOldData) bool bStripPerks; // (Parm, ZeroConstructor, IsPlainOldData) bool bStripNonTier0Armor; // (Parm, ZeroConstructor, IsPlainOldData) struct FCharacterProfile ReturnValue; // (Parm, OutParm, ReturnParm) }; // Function Mordhau.MordhauUtilityLibrary.SteamIDToString struct UMordhauUtilityLibrary_SteamIDToString_Params { struct FSteamID SteamID; // (ConstParm, Parm, OutParm, ReferenceParm) struct FString ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm) }; // Function Mordhau.MordhauUtilityLibrary.SpawnBloodDecalAtLocation struct UMordhauUtilityLibrary_SpawnBloodDecalAtLocation_Params { class UObject* WorldContextObject; // (Parm, ZeroConstructor, IsPlainOldData) class UMaterialInterface* DecalMaterial; // (Parm, ZeroConstructor, IsPlainOldData) struct FVector DecalSize; // (Parm, IsPlainOldData) struct FVector Location; // (Parm, IsPlainOldData) struct FRotator Rotation; // (Parm, IsPlainOldData) float LifeSpan; // (Parm, ZeroConstructor, IsPlainOldData) class UDecalComponent* ReturnValue; // (ExportObject, Parm, OutParm, ZeroConstructor, ReturnParm, InstancedReference, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.SortPlayers struct UMordhauUtilityLibrary_SortPlayers_Params { TArray<class AMordhauPlayerState*> Array; // (ConstParm, Parm, OutParm, ZeroConstructor, ReferenceParm) TArray<class AMordhauPlayerState*> ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm) }; // Function Mordhau.MordhauUtilityLibrary.SortForServerBrowser struct UMordhauUtilityLibrary_SortForServerBrowser_Params { TArray<struct FServerSearchResult> Array; // (ConstParm, Parm, OutParm, ZeroConstructor, ReferenceParm) TArray<struct FServerSearchResult> ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm) }; // Function Mordhau.MordhauUtilityLibrary.SortForMatchmaking struct UMordhauUtilityLibrary_SortForMatchmaking_Params { TArray<struct FServerSearchResult> Array; // (ConstParm, Parm, OutParm, ZeroConstructor, ReferenceParm) TArray<struct FServerSearchResult> ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm) }; // Function Mordhau.MordhauUtilityLibrary.Snap180AngleToSteps struct UMordhauUtilityLibrary_Snap180AngleToSteps_Params { float Angle180; // (Parm, ZeroConstructor, IsPlainOldData) float Step; // (Parm, ZeroConstructor, IsPlainOldData) float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.SLessThan struct UMordhauUtilityLibrary_SLessThan_Params { struct FString StringA; // (Parm, ZeroConstructor) struct FString StringB; // (Parm, ZeroConstructor) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.SGreaterThan struct UMordhauUtilityLibrary_SGreaterThan_Params { struct FString StringA; // (Parm, ZeroConstructor) struct FString StringB; // (Parm, ZeroConstructor) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.SetSoundMixVolume struct UMordhauUtilityLibrary_SetSoundMixVolume_Params { ESoundMix SoundMix; // (Parm, ZeroConstructor, IsPlainOldData) float Volume; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.SetPawnFromRep struct UMordhauUtilityLibrary_SetPawnFromRep_Params { class AController* Contr; // (Parm, ZeroConstructor, IsPlainOldData) class APawn* NewPawn; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.SetNavAreaClass struct UMordhauUtilityLibrary_SetNavAreaClass_Params { class UShapeComponent* ShapeComponent; // (Parm, ZeroConstructor, InstancedReference, IsPlainOldData) class UClass* AreaClass; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.SetMousePosition struct UMordhauUtilityLibrary_SetMousePosition_Params { class APlayerController* Controller; // (Parm, ZeroConstructor, IsPlainOldData) float LocationX; // (Parm, ZeroConstructor, IsPlainOldData) float LocationY; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.SetLocalSpaceKinematics struct UMordhauUtilityLibrary_SetLocalSpaceKinematics_Params { class USkeletalMeshComponent* Mesh; // (Parm, ZeroConstructor, InstancedReference, IsPlainOldData) bool bNewValue; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.SetForceMipStreaming struct UMordhauUtilityLibrary_SetForceMipStreaming_Params { class USkeletalMeshComponent* SMC; // (Parm, ZeroConstructor, InstancedReference, IsPlainOldData) bool bValue; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.SetDecalFadeScreenSize struct UMordhauUtilityLibrary_SetDecalFadeScreenSize_Params { class UDecalComponent* Decal; // (Parm, ZeroConstructor, InstancedReference, IsPlainOldData) float NewFadeScreenSize; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.SetCustomConfigVar_Vector2D struct UMordhauUtilityLibrary_SetCustomConfigVar_Vector2D_Params { struct FString SectionName; // (Parm, ZeroConstructor) struct FString VariableName; // (Parm, ZeroConstructor) struct FVector2D Value; // (Parm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.SetCustomConfigVar_Vector struct UMordhauUtilityLibrary_SetCustomConfigVar_Vector_Params { struct FString SectionName; // (Parm, ZeroConstructor) struct FString VariableName; // (Parm, ZeroConstructor) struct FVector Value; // (Parm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.SetCustomConfigVar_String struct UMordhauUtilityLibrary_SetCustomConfigVar_String_Params { struct FString SectionName; // (Parm, ZeroConstructor) struct FString VariableName; // (Parm, ZeroConstructor) struct FString Value; // (Parm, ZeroConstructor) }; // Function Mordhau.MordhauUtilityLibrary.SetCustomConfigVar_Rotator struct UMordhauUtilityLibrary_SetCustomConfigVar_Rotator_Params { struct FString SectionName; // (Parm, ZeroConstructor) struct FString VariableName; // (Parm, ZeroConstructor) struct FRotator Value; // (Parm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.SetCustomConfigVar_Int struct UMordhauUtilityLibrary_SetCustomConfigVar_Int_Params { struct FString SectionName; // (Parm, ZeroConstructor) struct FString VariableName; // (Parm, ZeroConstructor) int Value; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.SetCustomConfigVar_Float struct UMordhauUtilityLibrary_SetCustomConfigVar_Float_Params { struct FString SectionName; // (Parm, ZeroConstructor) struct FString VariableName; // (Parm, ZeroConstructor) float Value; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.SetCustomConfigVar_Color struct UMordhauUtilityLibrary_SetCustomConfigVar_Color_Params { struct FString SectionName; // (Parm, ZeroConstructor) struct FString VariableName; // (Parm, ZeroConstructor) struct FLinearColor Value; // (Parm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.SetCustomConfigVar_Bool struct UMordhauUtilityLibrary_SetCustomConfigVar_Bool_Params { struct FString SectionName; // (Parm, ZeroConstructor) struct FString VariableName; // (Parm, ZeroConstructor) bool Value; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.SetCanEverAffectNavigation struct UMordhauUtilityLibrary_SetCanEverAffectNavigation_Params { class UActorComponent* ActorComponent; // (Parm, ZeroConstructor, InstancedReference, IsPlainOldData) bool bRelevant; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.SendClientAdjustment struct UMordhauUtilityLibrary_SendClientAdjustment_Params { class UCharacterMovementComponent* CMC; // (Parm, ZeroConstructor, InstancedReference, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.ResetServerPredictionData struct UMordhauUtilityLibrary_ResetServerPredictionData_Params { class UCharacterMovementComponent* CMC; // (Parm, ZeroConstructor, InstancedReference, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.ResetClientPredictionData struct UMordhauUtilityLibrary_ResetClientPredictionData_Params { class UCharacterMovementComponent* CMC; // (Parm, ZeroConstructor, InstancedReference, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.ReserveCharacterRagdoll struct UMordhauUtilityLibrary_ReserveCharacterRagdoll_Params { class AAdvancedCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.RandomRangeExclude struct UMordhauUtilityLibrary_RandomRangeExclude_Params { int Min; // (Parm, ZeroConstructor, IsPlainOldData) int Max; // (Parm, ZeroConstructor, IsPlainOldData) int Exclude; // (Parm, ZeroConstructor, IsPlainOldData) int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.PlaneTrace struct UMordhauUtilityLibrary_PlaneTrace_Params { class UObject* WorldContextObject; // (Parm, ZeroConstructor, IsPlainOldData) struct FVector Left; // (ConstParm, Parm, IsPlainOldData) struct FVector Right; // (ConstParm, Parm, IsPlainOldData) struct FVector Forward; // (ConstParm, Parm, IsPlainOldData) struct FVector Back; // (ConstParm, Parm, IsPlainOldData) struct FVector TraceAmount; // (ConstParm, Parm, IsPlainOldData) TArray<TEnumAsByte<EObjectTypeQuery>> ObjectTypes; // (ConstParm, Parm, OutParm, ZeroConstructor, ReferenceParm) bool bTraceComplex; // (Parm, ZeroConstructor, IsPlainOldData) TArray<class AActor*> ActorsToIgnore; // (ConstParm, Parm, OutParm, ZeroConstructor, ReferenceParm) bool bConnectLeftRight; // (Parm, ZeroConstructor, IsPlainOldData) bool bConnectForwardBack; // (Parm, ZeroConstructor, IsPlainOldData) struct FVector ConnectOffset; // (ConstParm, Parm, IsPlainOldData) struct FHitResult LeftHit; // (Parm, OutParm, IsPlainOldData) struct FHitResult RightHit; // (Parm, OutParm, IsPlainOldData) struct FHitResult ForwardHit; // (Parm, OutParm, IsPlainOldData) struct FHitResult BackHit; // (Parm, OutParm, IsPlainOldData) struct FVector OutRight; // (Parm, OutParm, IsPlainOldData) struct FVector OutForward; // (Parm, OutParm, IsPlainOldData) bool bIgnoreSelf; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.OpenURL struct UMordhauUtilityLibrary_OpenURL_Params { struct FString URL; // (Parm, ZeroConstructor) }; // Function Mordhau.MordhauUtilityLibrary.NotEqual_SteamID struct UMordhauUtilityLibrary_NotEqual_SteamID_Params { struct FSteamID A; // (ConstParm, Parm, OutParm, ReferenceParm) struct FSteamID B; // (ConstParm, Parm, OutParm, ReferenceParm) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.MordhauApplyRadialDamageWithFalloff struct UMordhauUtilityLibrary_MordhauApplyRadialDamageWithFalloff_Params { class UObject* WorldContextObject; // (ConstParm, Parm, ZeroConstructor, IsPlainOldData) float BaseDamage; // (Parm, ZeroConstructor, IsPlainOldData) float MinimumDamage; // (Parm, ZeroConstructor, IsPlainOldData) float BaseStructureDamage; // (Parm, ZeroConstructor, IsPlainOldData) float MinimumStructureDamage; // (Parm, ZeroConstructor, IsPlainOldData) struct FVector Origin; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) float DamageInnerRadius; // (Parm, ZeroConstructor, IsPlainOldData) float DamageOuterRadius; // (Parm, ZeroConstructor, IsPlainOldData) float DamageFalloff; // (Parm, ZeroConstructor, IsPlainOldData) TArray<class AActor*> IgnoreActors; // (ConstParm, Parm, OutParm, ZeroConstructor, ReferenceParm) float BaseKnockback; // (Parm, ZeroConstructor, IsPlainOldData) float MinimumKnockback; // (Parm, ZeroConstructor, IsPlainOldData) float RagdollFallRadius; // (Parm, ZeroConstructor, IsPlainOldData) class AActor* DamageCauser; // (Parm, ZeroConstructor, IsPlainOldData) class AController* InstigatedByController; // (Parm, ZeroConstructor, IsPlainOldData) TEnumAsByte<ECollisionChannel> DamagePreventionChannel; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.MarkRenderStateDirty struct UMordhauUtilityLibrary_MarkRenderStateDirty_Params { class UMeshComponent* MeshComp; // (Parm, ZeroConstructor, InstancedReference, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.MakeEmptyProfile struct UMordhauUtilityLibrary_MakeEmptyProfile_Params { class UClass* CharacterClass; // (Parm, ZeroConstructor, IsPlainOldData) bool bRandomizeVoice; // (Parm, ZeroConstructor, IsPlainOldData) struct FCharacterProfile ReturnValue; // (Parm, OutParm, ReturnParm) }; // Function Mordhau.MordhauUtilityLibrary.LineTraceMultiForObjectsReturnFace struct UMordhauUtilityLibrary_LineTraceMultiForObjectsReturnFace_Params { class UObject* WorldContextObject; // (Parm, ZeroConstructor, IsPlainOldData) struct FVector Start; // (ConstParm, Parm, IsPlainOldData) struct FVector End; // (ConstParm, Parm, IsPlainOldData) TArray<TEnumAsByte<EObjectTypeQuery>> ObjectTypes; // (ConstParm, Parm, OutParm, ZeroConstructor, ReferenceParm) bool bTraceComplex; // (Parm, ZeroConstructor, IsPlainOldData) TArray<class AActor*> ActorsToIgnore; // (ConstParm, Parm, OutParm, ZeroConstructor, ReferenceParm) TEnumAsByte<EDrawDebugTrace> DrawDebugType; // (Parm, ZeroConstructor, IsPlainOldData) TArray<struct FHitResult> OutHits; // (Parm, OutParm, ZeroConstructor) bool bIgnoreSelf; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.LerpPOV struct UMordhauUtilityLibrary_LerpPOV_Params { struct FPOV A; // (ConstParm, Parm, OutParm, ReferenceParm) struct FPOV B; // (ConstParm, Parm, OutParm, ReferenceParm) float Alpha; // (Parm, ZeroConstructor, IsPlainOldData) struct FPOV ReturnValue; // (Parm, OutParm, ReturnParm) }; // Function Mordhau.MordhauUtilityLibrary.IsValid_SteamID struct UMordhauUtilityLibrary_IsValid_SteamID_Params { struct FSteamID SteamID; // (ConstParm, Parm, OutParm, ReferenceParm) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.IsTestingBranch struct UMordhauUtilityLibrary_IsTestingBranch_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.IsSteamFriend struct UMordhauUtilityLibrary_IsSteamFriend_Params { class APlayerController* Player; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (ConstParm, Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.IsStandalone struct UMordhauUtilityLibrary_IsStandalone_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.IsServer struct UMordhauUtilityLibrary_IsServer_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.IsReleaseBranch struct UMordhauUtilityLibrary_IsReleaseBranch_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.IsPlayInEditor struct UMordhauUtilityLibrary_IsPlayInEditor_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.IsPartyMember struct UMordhauUtilityLibrary_IsPartyMember_Params { class APlayerController* Player; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (ConstParm, Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.IsOfficialServer struct UMordhauUtilityLibrary_IsOfficialServer_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.IsListenServer struct UMordhauUtilityLibrary_IsListenServer_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.IsFriendlyToLocalPlayer struct UMordhauUtilityLibrary_IsFriendlyToLocalPlayer_Params { class UWorld* WorldReference; // (Parm, ZeroConstructor, IsPlainOldData) class AActor* OtherActor; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.IsEditor struct UMordhauUtilityLibrary_IsEditor_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.IsDLCInstalled struct UMordhauUtilityLibrary_IsDLCInstalled_Params { int appid; // (ConstParm, Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.IsDevelopmentBuild struct UMordhauUtilityLibrary_IsDevelopmentBuild_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.IsDevelopmentBranch struct UMordhauUtilityLibrary_IsDevelopmentBranch_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.IsDemoPlayback struct UMordhauUtilityLibrary_IsDemoPlayback_Params { class UWorld* World; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.IsDedicatedServer struct UMordhauUtilityLibrary_IsDedicatedServer_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.IsClient struct UMordhauUtilityLibrary_IsClient_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.HasBeenReallyRecentlyRendered struct UMordhauUtilityLibrary_HasBeenReallyRecentlyRendered_Params { class UMeshComponent* MeshComponent; // (Parm, ZeroConstructor, InstancedReference, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.HasActorBegunPlay struct UMordhauUtilityLibrary_HasActorBegunPlay_Params { class AActor* Actor; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GrowBoxToIncludePoint struct UMordhauUtilityLibrary_GrowBoxToIncludePoint_Params { struct FBox Box; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) struct FVector Vector; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) struct FBox ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetXPFromRank struct UMordhauUtilityLibrary_GetXPFromRank_Params { int Rank; // (Parm, ZeroConstructor, IsPlainOldData) int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetWorldOf struct UMordhauUtilityLibrary_GetWorldOf_Params { class UObject* Object; // (Parm, ZeroConstructor, IsPlainOldData) class UWorld* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetWearableNames struct UMordhauUtilityLibrary_GetWearableNames_Params { struct FCharacterGearCustomization CharacterGearCustomization; // (ConstParm, Parm, OutParm, ReferenceParm) EWearableSlot Slot; // (Parm, ZeroConstructor, IsPlainOldData) TArray<struct FText> ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm) }; // Function Mordhau.MordhauUtilityLibrary.GetWearableClasses struct UMordhauUtilityLibrary_GetWearableClasses_Params { struct FCharacterGearCustomization CharacterGearCustomization; // (ConstParm, Parm, OutParm, ReferenceParm) EWearableSlot Slot; // (Parm, ZeroConstructor, IsPlainOldData) TArray<class UClass*> ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm) }; // Function Mordhau.MordhauUtilityLibrary.GetWearableClass struct UMordhauUtilityLibrary_GetWearableClass_Params { struct FCharacterGearCustomization CharacterGearCustomization; // (ConstParm, Parm, OutParm, ReferenceParm) EWearableSlot Slot; // (Parm, ZeroConstructor, IsPlainOldData) class UClass* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetViewTargetCharacter struct UMordhauUtilityLibrary_GetViewTargetCharacter_Params { class UObject* WorldContextObject; // (Parm, ZeroConstructor, IsPlainOldData) bool bOnlyLiving; // (Parm, ZeroConstructor, IsPlainOldData) class AMordhauCharacter* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetVersionString struct UMordhauUtilityLibrary_GetVersionString_Params { struct FString ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm) }; // Function Mordhau.MordhauUtilityLibrary.GetVersionName struct UMordhauUtilityLibrary_GetVersionName_Params { struct FString ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm) }; // Function Mordhau.MordhauUtilityLibrary.GetTotalDemoTime struct UMordhauUtilityLibrary_GetTotalDemoTime_Params { class UWorld* World; // (Parm, ZeroConstructor, IsPlainOldData) float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetSyncGroupPositionBetweenMarkers struct UMordhauUtilityLibrary_GetSyncGroupPositionBetweenMarkers_Params { class UAnimInstance* AnimInstance; // (Parm, ZeroConstructor, IsPlainOldData) struct FName SyncGroup; // (Parm, ZeroConstructor, IsPlainOldData) float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetSupportedScreenResolutions struct UMordhauUtilityLibrary_GetSupportedScreenResolutions_Params { TArray<struct FString> Resolutions; // (Parm, OutParm, ZeroConstructor) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetSteamName struct UMordhauUtilityLibrary_GetSteamName_Params { struct FSteamID SteamID; // (ConstParm, Parm, OutParm, ReferenceParm) struct FString ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm) }; // Function Mordhau.MordhauUtilityLibrary.GetSteamIDFromPlayer struct UMordhauUtilityLibrary_GetSteamIDFromPlayer_Params { class APlayerController* Player; // (Parm, ZeroConstructor, IsPlainOldData) struct FSteamID ReturnValue; // (ConstParm, Parm, OutParm, ReturnParm) }; // Function Mordhau.MordhauUtilityLibrary.GetSteamID struct UMordhauUtilityLibrary_GetSteamID_Params { struct FSteamID ReturnValue; // (ConstParm, Parm, OutParm, ReturnParm) }; // Function Mordhau.MordhauUtilityLibrary.GetSteamAvatar struct UMordhauUtilityLibrary_GetSteamAvatar_Params { struct FSteamID SteamID; // (ConstParm, Parm, OutParm, ReferenceParm) EAvatarSize Size; // (Parm, ZeroConstructor, IsPlainOldData) class UTexture2D* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetSoundMixInfo struct UMordhauUtilityLibrary_GetSoundMixInfo_Params { struct FString Name; // (Parm, ZeroConstructor) struct FSoundMixInfo SoundMixInfo; // (Parm, OutParm) }; // Function Mordhau.MordhauUtilityLibrary.GetServerSteamID struct UMordhauUtilityLibrary_GetServerSteamID_Params { struct FSteamID ReturnValue; // (ConstParm, Parm, OutParm, ReturnParm) }; // Function Mordhau.MordhauUtilityLibrary.GetSculptableBoneAtLine struct UMordhauUtilityLibrary_GetSculptableBoneAtLine_Params { struct FVector LineStart; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) struct FVector LineEnd; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) float SearchRadius; // (Parm, ZeroConstructor, IsPlainOldData) class USkeletalMeshComponent* MeshComponent; // (Parm, ZeroConstructor, InstancedReference, IsPlainOldData) class AMordhauCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) int Level; // (Parm, ZeroConstructor, IsPlainOldData) struct FName ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetRole struct UMordhauUtilityLibrary_GetRole_Params { class AActor* Actor; // (Parm, ZeroConstructor, IsPlainOldData) TEnumAsByte<ENetRole> ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetRegionName struct UMordhauUtilityLibrary_GetRegionName_Params { ERegion Region; // (Parm, ZeroConstructor, IsPlainOldData) struct FString ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm) }; // Function Mordhau.MordhauUtilityLibrary.GetRegion struct UMordhauUtilityLibrary_GetRegion_Params { struct FString RegionName; // (Parm, ZeroConstructor) ERegion ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetRankFromXP struct UMordhauUtilityLibrary_GetRankFromXP_Params { int XP; // (Parm, ZeroConstructor, IsPlainOldData) int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetRandomWeapon struct UMordhauUtilityLibrary_GetRandomWeapon_Params { int ID; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) struct FSkillsCustomization SkillsCustomization; // (ConstParm, Parm, OutParm, ReferenceParm) EItemRarity MaxRarity; // (Parm, ZeroConstructor, IsPlainOldData) class AMordhauEquipment* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetRandomUpperChestWearable struct UMordhauUtilityLibrary_GetRandomUpperChestWearable_Params { int ID; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) struct FSkillsCustomization SkillsCustomization; // (ConstParm, Parm, OutParm, ReferenceParm) EItemRarity MaxRarity; // (Parm, ZeroConstructor, IsPlainOldData) class UUpperChestWearable* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetRandomSkin struct UMordhauUtilityLibrary_GetRandomSkin_Params { int ID; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) struct FEquipmentSkinEntry Skin; // (Parm, OutParm) class AMordhauEquipment* Equipment; // (Parm, ZeroConstructor, IsPlainOldData) EItemRarity MaxRarity; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetRandomShouldersWearable struct UMordhauUtilityLibrary_GetRandomShouldersWearable_Params { int ID; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) class UUpperChestWearable* UpperChestWearable; // (Parm, ZeroConstructor, IsPlainOldData) struct FSkillsCustomization SkillsCustomization; // (ConstParm, Parm, OutParm, ReferenceParm) EItemRarity MaxRarity; // (Parm, ZeroConstructor, IsPlainOldData) class UMordhauWearable* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetRandomRangedWeapon struct UMordhauUtilityLibrary_GetRandomRangedWeapon_Params { int ID; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) struct FSkillsCustomization SkillsCustomization; // (ConstParm, Parm, OutParm, ReferenceParm) EItemRarity MaxRarity; // (Parm, ZeroConstructor, IsPlainOldData) class AMordhauEquipment* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetRandomMeleeWeapon struct UMordhauUtilityLibrary_GetRandomMeleeWeapon_Params { int ID; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) struct FSkillsCustomization SkillsCustomization; // (ConstParm, Parm, OutParm, ReferenceParm) EItemRarity MaxRarity; // (Parm, ZeroConstructor, IsPlainOldData) class AMordhauEquipment* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetRandomLowerChestWearable struct UMordhauUtilityLibrary_GetRandomLowerChestWearable_Params { int ID; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) class UUpperChestWearable* UpperChestWearable; // (Parm, ZeroConstructor, IsPlainOldData) struct FSkillsCustomization SkillsCustomization; // (ConstParm, Parm, OutParm, ReferenceParm) EItemRarity MaxRarity; // (Parm, ZeroConstructor, IsPlainOldData) class UMordhauWearable* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetRandomLegsWearable struct UMordhauUtilityLibrary_GetRandomLegsWearable_Params { int ID; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) struct FSkillsCustomization SkillsCustomization; // (ConstParm, Parm, OutParm, ReferenceParm) EItemRarity MaxRarity; // (Parm, ZeroConstructor, IsPlainOldData) class ULegsWearable* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetRandomHeadWearable struct UMordhauUtilityLibrary_GetRandomHeadWearable_Params { int ID; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) struct FSkillsCustomization SkillsCustomization; // (ConstParm, Parm, OutParm, ReferenceParm) EItemRarity MaxRarity; // (Parm, ZeroConstructor, IsPlainOldData) class UHeadWearable* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetRandomHandsWearable struct UMordhauUtilityLibrary_GetRandomHandsWearable_Params { int ID; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) class UArmsWearable* ArmsWearable; // (Parm, ZeroConstructor, IsPlainOldData) struct FSkillsCustomization SkillsCustomization; // (ConstParm, Parm, OutParm, ReferenceParm) EItemRarity MaxRarity; // (Parm, ZeroConstructor, IsPlainOldData) class UMordhauWearable* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetRandomFeetWearable struct UMordhauUtilityLibrary_GetRandomFeetWearable_Params { int ID; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) class ULegsWearable* LegsWearable; // (Parm, ZeroConstructor, IsPlainOldData) struct FSkillsCustomization SkillsCustomization; // (ConstParm, Parm, OutParm, ReferenceParm) EItemRarity MaxRarity; // (Parm, ZeroConstructor, IsPlainOldData) class UMordhauWearable* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetRandomFaceCustomizationVector struct UMordhauUtilityLibrary_GetRandomFaceCustomizationVector_Params { float RandomExponent; // (Parm, ZeroConstructor, IsPlainOldData) struct FVector ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetRandomEquipment struct UMordhauUtilityLibrary_GetRandomEquipment_Params { int ID; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) struct FSkillsCustomization SkillsCustomization; // (ConstParm, Parm, OutParm, ReferenceParm) EItemRarity MaxRarity; // (Parm, ZeroConstructor, IsPlainOldData) class AMordhauEquipment* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetRandomCoifWearable struct UMordhauUtilityLibrary_GetRandomCoifWearable_Params { int ID; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) class UHeadWearable* HeadWearable; // (Parm, ZeroConstructor, IsPlainOldData) struct FSkillsCustomization SkillsCustomization; // (ConstParm, Parm, OutParm, ReferenceParm) EItemRarity MaxRarity; // (Parm, ZeroConstructor, IsPlainOldData) class UMordhauWearable* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetRandomArmsWearable struct UMordhauUtilityLibrary_GetRandomArmsWearable_Params { int ID; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) class UUpperChestWearable* UpperChestWearable; // (Parm, ZeroConstructor, IsPlainOldData) struct FSkillsCustomization SkillsCustomization; // (ConstParm, Parm, OutParm, ReferenceParm) EItemRarity MaxRarity; // (Parm, ZeroConstructor, IsPlainOldData) class UArmsWearable* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetPing struct UMordhauUtilityLibrary_GetPing_Params { class UObject* WorldContextObject; // (ConstParm, Parm, ZeroConstructor, IsPlainOldData) bool bUseMedian; // (Parm, ZeroConstructor, IsPlainOldData) float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetPhysicsBodyWorldTransform struct UMordhauUtilityLibrary_GetPhysicsBodyWorldTransform_Params { class USkeletalMeshComponent* MeshComponent; // (Parm, ZeroConstructor, InstancedReference, IsPlainOldData) struct FName BoneName; // (Parm, ZeroConstructor, IsPlainOldData) struct FTransform ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetPhysicsBodyBounds struct UMordhauUtilityLibrary_GetPhysicsBodyBounds_Params { class USkeletalMeshComponent* MeshComponent; // (Parm, ZeroConstructor, InstancedReference, IsPlainOldData) struct FName BoneName; // (Parm, ZeroConstructor, IsPlainOldData) struct FBox ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetPerksCost struct UMordhauUtilityLibrary_GetPerksCost_Params { struct FCharacterProfile Profile; // (ConstParm, Parm, OutParm, ReferenceParm) int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetPerks struct UMordhauUtilityLibrary_GetPerks_Params { struct FCharacterProfile Profile; // (ConstParm, Parm, OutParm, ReferenceParm) TArray<class UPerk*> ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm) }; // Function Mordhau.MordhauUtilityLibrary.GetPerforceRevision struct UMordhauUtilityLibrary_GetPerforceRevision_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetPacketsLost struct UMordhauUtilityLibrary_GetPacketsLost_Params { class UObject* WorldContextObject; // (ConstParm, Parm, ZeroConstructor, IsPlainOldData) int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetNotifyServerReceivedClientData struct UMordhauUtilityLibrary_GetNotifyServerReceivedClientData_Params { class UCharacterMovementComponent* CMC; // (Parm, ZeroConstructor, InstancedReference, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetNormalizedTime struct UMordhauUtilityLibrary_GetNormalizedTime_Params { float Start; // (Parm, ZeroConstructor, IsPlainOldData) float End; // (Parm, ZeroConstructor, IsPlainOldData) float Current; // (Parm, ZeroConstructor, IsPlainOldData) float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetMousePosition struct UMordhauUtilityLibrary_GetMousePosition_Params { class APlayerController* Controller; // (Parm, ZeroConstructor, IsPlainOldData) struct FVector2D ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetMordhauWebAPI struct UMordhauUtilityLibrary_GetMordhauWebAPI_Params { class UMordhauWebAPI* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetMordhauStats struct UMordhauUtilityLibrary_GetMordhauStats_Params { class UMordhauStats* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetMordhauSingleton struct UMordhauUtilityLibrary_GetMordhauSingleton_Params { class UMordhauSingleton* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetMordhauInventory struct UMordhauUtilityLibrary_GetMordhauInventory_Params { class UMordhauInventory* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetMordhauInput struct UMordhauUtilityLibrary_GetMordhauInput_Params { class UMordhauInput* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetMordhauHUD struct UMordhauUtilityLibrary_GetMordhauHUD_Params { class UObject* WorldContextObject; // (Parm, ZeroConstructor, IsPlainOldData) class AMordhauHUD* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetMordhauGameUserSettings struct UMordhauUtilityLibrary_GetMordhauGameUserSettings_Params { class UMordhauGameUserSettings* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetMordhauGameSession struct UMordhauUtilityLibrary_GetMordhauGameSession_Params { class UObject* WorldContextObject; // (ConstParm, Parm, ZeroConstructor, IsPlainOldData) class AMordhauGameSession* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetMaxIndexWithDraw struct UMordhauUtilityLibrary_GetMaxIndexWithDraw_Params { TArray<int> inArray; // (ConstParm, Parm, OutParm, ZeroConstructor, ReferenceParm) bool bFoundDraw; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetMapName struct UMordhauUtilityLibrary_GetMapName_Params { class UObject* WorldContextObject; // (ConstParm, Parm, ZeroConstructor, IsPlainOldData) struct FString ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm) }; // Function Mordhau.MordhauUtilityLibrary.GetMapInfo struct UMordhauUtilityLibrary_GetMapInfo_Params { class UObject* WorldContextObject; // (ConstParm, Parm, ZeroConstructor, IsPlainOldData) struct FString MapPath; // (Parm, ZeroConstructor) struct FMapInfo ReturnValue; // (Parm, OutParm, ReturnParm) }; // Function Mordhau.MordhauUtilityLibrary.GetLastReceiveTime struct UMordhauUtilityLibrary_GetLastReceiveTime_Params { class UObject* WorldContextObject; // (ConstParm, Parm, ZeroConstructor, IsPlainOldData) float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetIsPeasant struct UMordhauUtilityLibrary_GetIsPeasant_Params { struct FCharacterProfile Profile; // (ConstParm, Parm, OutParm, ReferenceParm) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetImportedBounds struct UMordhauUtilityLibrary_GetImportedBounds_Params { class USkeletalMeshComponent* SkeletalMeshComponent; // (Parm, ZeroConstructor, InstancedReference, IsPlainOldData) struct FBoxSphereBounds ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetFaceIndex struct UMordhauUtilityLibrary_GetFaceIndex_Params { struct FHitResult Hit; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetErrorText struct UMordhauUtilityLibrary_GetErrorText_Params { struct FString ErrorString; // (Parm, ZeroConstructor) struct FText ReturnValue; // (Parm, OutParm, ReturnParm) }; // Function Mordhau.MordhauUtilityLibrary.GetEnumValue struct UMordhauUtilityLibrary_GetEnumValue_Params { struct FString EnumName; // (Parm, ZeroConstructor) struct FString EnumKey; // (Parm, ZeroConstructor) int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetEnumKey struct UMordhauUtilityLibrary_GetEnumKey_Params { struct FString EnumName; // (Parm, ZeroConstructor) int EnumValue; // (ConstParm, Parm, ZeroConstructor, IsPlainOldData) struct FString ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm) }; // Function Mordhau.MordhauUtilityLibrary.GetDefaultWearable struct UMordhauUtilityLibrary_GetDefaultWearable_Params { class UClass* FromClass; // (Parm, ZeroConstructor, IsPlainOldData) class UMordhauWearable* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetDefaultObject struct UMordhauUtilityLibrary_GetDefaultObject_Params { class UClass* FromClass; // (Parm, ZeroConstructor, IsPlainOldData) class UObject* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetDefaultActor struct UMordhauUtilityLibrary_GetDefaultActor_Params { class UClass* FromClass; // (Parm, ZeroConstructor, IsPlainOldData) class AActor* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetCustomConfigVar_Vector2D struct UMordhauUtilityLibrary_GetCustomConfigVar_Vector2D_Params { struct FString SectionName; // (Parm, ZeroConstructor) struct FString VariableName; // (Parm, ZeroConstructor) bool IsValid; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) struct FVector2D ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetCustomConfigVar_Vector struct UMordhauUtilityLibrary_GetCustomConfigVar_Vector_Params { struct FString SectionName; // (Parm, ZeroConstructor) struct FString VariableName; // (Parm, ZeroConstructor) bool IsValid; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) struct FVector ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetCustomConfigVar_String struct UMordhauUtilityLibrary_GetCustomConfigVar_String_Params { struct FString SectionName; // (Parm, ZeroConstructor) struct FString VariableName; // (Parm, ZeroConstructor) bool IsValid; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) struct FString ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm) }; // Function Mordhau.MordhauUtilityLibrary.GetCustomConfigVar_Rotator struct UMordhauUtilityLibrary_GetCustomConfigVar_Rotator_Params { struct FString SectionName; // (Parm, ZeroConstructor) struct FString VariableName; // (Parm, ZeroConstructor) bool IsValid; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) struct FRotator ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetCustomConfigVar_Int struct UMordhauUtilityLibrary_GetCustomConfigVar_Int_Params { struct FString SectionName; // (Parm, ZeroConstructor) struct FString VariableName; // (Parm, ZeroConstructor) bool IsValid; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetCustomConfigVar_Float struct UMordhauUtilityLibrary_GetCustomConfigVar_Float_Params { struct FString SectionName; // (Parm, ZeroConstructor) struct FString VariableName; // (Parm, ZeroConstructor) bool IsValid; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetCustomConfigVar_Color struct UMordhauUtilityLibrary_GetCustomConfigVar_Color_Params { struct FString SectionName; // (Parm, ZeroConstructor) struct FString VariableName; // (Parm, ZeroConstructor) bool IsValid; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) struct FLinearColor ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetCustomConfigVar_Bool struct UMordhauUtilityLibrary_GetCustomConfigVar_Bool_Params { struct FString SectionName; // (Parm, ZeroConstructor) struct FString VariableName; // (Parm, ZeroConstructor) bool IsValid; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetCurrentFrameBP struct UMordhauUtilityLibrary_GetCurrentFrameBP_Params { class UObject* WorldContextObject; // (Parm, ZeroConstructor, IsPlainOldData) int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetCurrentFrame struct UMordhauUtilityLibrary_GetCurrentFrame_Params { class UWorld* World; // (Parm, ZeroConstructor, IsPlainOldData) int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetCurrentDemoTime struct UMordhauUtilityLibrary_GetCurrentDemoTime_Params { class UWorld* World; // (Parm, ZeroConstructor, IsPlainOldData) float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetConsoleVariableString struct UMordhauUtilityLibrary_GetConsoleVariableString_Params { struct FString VariableName; // (Parm, ZeroConstructor) struct FString ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm) }; // Function Mordhau.MordhauUtilityLibrary.GetConsoleVariableInt struct UMordhauUtilityLibrary_GetConsoleVariableInt_Params { struct FString VariableName; // (Parm, ZeroConstructor) int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetConsoleVariableFloat struct UMordhauUtilityLibrary_GetConsoleVariableFloat_Params { struct FString VariableName; // (Parm, ZeroConstructor) float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetComponentsBoundingBoxInActorSpace struct UMordhauUtilityLibrary_GetComponentsBoundingBoxInActorSpace_Params { class AActor* Actor; // (Parm, ZeroConstructor, IsPlainOldData) struct FVector ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetCentroid struct UMordhauUtilityLibrary_GetCentroid_Params { TArray<struct FVector> Points; // (ConstParm, Parm, OutParm, ZeroConstructor, ReferenceParm) struct FVector ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetBuildVersion struct UMordhauUtilityLibrary_GetBuildVersion_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetBoxCenter struct UMordhauUtilityLibrary_GetBoxCenter_Params { struct FBox Box; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) struct FVector ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetBoundingBoxOfBoneInfluence struct UMordhauUtilityLibrary_GetBoundingBoxOfBoneInfluence_Params { class USkeletalMeshComponent* MeshComponent; // (Parm, ZeroConstructor, InstancedReference, IsPlainOldData) TArray<struct FName> Bones; // (Parm, ZeroConstructor) float WeightThreshold; // (Parm, ZeroConstructor, IsPlainOldData) struct FBox ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetAttachParentActor struct UMordhauUtilityLibrary_GetAttachParentActor_Params { class AActor* Actor; // (Parm, ZeroConstructor, IsPlainOldData) class AActor* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetArchetypeObject struct UMordhauUtilityLibrary_GetArchetypeObject_Params { struct FCharacterProfile Profile; // (ConstParm, Parm, OutParm, ReferenceParm) class UArchetype* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.GetAllWearableClassesForSlotExhaustive struct UMordhauUtilityLibrary_GetAllWearableClassesForSlotExhaustive_Params { EWearableSlot Slot; // (Parm, ZeroConstructor, IsPlainOldData) TArray<class UClass*> ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm) }; // Function Mordhau.MordhauUtilityLibrary.FSmoothDamp struct UMordhauUtilityLibrary_FSmoothDamp_Params { float Current; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) float Target; // (Parm, ZeroConstructor, IsPlainOldData) float CurrentVelocity; // (Parm, OutParm, ZeroConstructor, IsPlainOldData) float SmoothTime; // (Parm, ZeroConstructor, IsPlainOldData) float DeltaTime; // (Parm, ZeroConstructor, IsPlainOldData) float MaxSpeed; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.FormatText struct UMordhauUtilityLibrary_FormatText_Params { struct FText Text; // (ConstParm, Parm, OutParm, ReferenceParm) struct FText ReturnValue; // (Parm, OutParm, ReturnParm) }; // Function Mordhau.MordhauUtilityLibrary.ForceValidCharacterProfile struct UMordhauUtilityLibrary_ForceValidCharacterProfile_Params { struct FCharacterProfile Profile; // (ConstParm, Parm, OutParm, ReferenceParm) struct FCharacterProfile ForceValidatedProfile; // (Parm, OutParm) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.ForceReplicationUpdate struct UMordhauUtilityLibrary_ForceReplicationUpdate_Params { class UCharacterMovementComponent* CMC; // (Parm, ZeroConstructor, InstancedReference, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.FlushPlayerControllerPressedKeys struct UMordhauUtilityLibrary_FlushPlayerControllerPressedKeys_Params { class APlayerController* Controller; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.FlashWindow struct UMordhauUtilityLibrary_FlashWindow_Params { }; // Function Mordhau.MordhauUtilityLibrary.FInterpToSeparate struct UMordhauUtilityLibrary_FInterpToSeparate_Params { float Current; // (Parm, ZeroConstructor, IsPlainOldData) float Target; // (Parm, ZeroConstructor, IsPlainOldData) float DeltaTime; // (Parm, ZeroConstructor, IsPlainOldData) float IncreaseSpeed; // (Parm, ZeroConstructor, IsPlainOldData) float DecreaseSpeed; // (Parm, ZeroConstructor, IsPlainOldData) float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.FInterpConstantToSeparate struct UMordhauUtilityLibrary_FInterpConstantToSeparate_Params { float Current; // (Parm, ZeroConstructor, IsPlainOldData) float Target; // (Parm, ZeroConstructor, IsPlainOldData) float DeltaTime; // (Parm, ZeroConstructor, IsPlainOldData) float IncreaseSpeed; // (Parm, ZeroConstructor, IsPlainOldData) float DecreaseSpeed; // (Parm, ZeroConstructor, IsPlainOldData) float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.FindTeleportSpot struct UMordhauUtilityLibrary_FindTeleportSpot_Params { class AActor* Actor; // (Parm, ZeroConstructor, IsPlainOldData) struct FVector InLocation; // (Parm, IsPlainOldData) struct FRotator InRotation; // (Parm, IsPlainOldData) struct FVector OutLocation; // (Parm, OutParm, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.FindSteamID struct UMordhauUtilityLibrary_FindSteamID_Params { struct FString PlayerNameOrSteamID; // (Parm, ZeroConstructor) struct FSteamID ReturnValue; // (ConstParm, Parm, OutParm, ReturnParm) }; // Function Mordhau.MordhauUtilityLibrary.FindPlayerState struct UMordhauUtilityLibrary_FindPlayerState_Params { struct FString PlayerNameOrSteamID; // (Parm, ZeroConstructor) class AMordhauPlayerState* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.FindCircleIntersectionPoints struct UMordhauUtilityLibrary_FindCircleIntersectionPoints_Params { struct FVector2D CenterA; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) float RadiusA; // (ConstParm, Parm, OutParm, ZeroConstructor, ReferenceParm, IsPlainOldData) struct FVector2D CenterB; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) float RadiusB; // (ConstParm, Parm, OutParm, ZeroConstructor, ReferenceParm, IsPlainOldData) struct FVector2D PointA; // (Parm, OutParm, IsPlainOldData) struct FVector2D PointB; // (Parm, OutParm, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.FindBetween struct UMordhauUtilityLibrary_FindBetween_Params { struct FVector A; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) struct FVector B; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) struct FRotator ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.Equal_SteamID struct UMordhauUtilityLibrary_Equal_SteamID_Params { struct FSteamID A; // (ConstParm, Parm, OutParm, ReferenceParm) struct FSteamID B; // (ConstParm, Parm, OutParm, ReferenceParm) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.DrawText struct UMordhauUtilityLibrary_DrawText_Params { class UCanvas* Canvas; // (Parm, ZeroConstructor, IsPlainOldData) class UFont* Font; // (ConstParm, Parm, ZeroConstructor, IsPlainOldData) int Size; // (Parm, ZeroConstructor, IsPlainOldData) struct FString Text; // (Parm, ZeroConstructor) struct FVector2D Position; // (Parm, IsPlainOldData) struct FLinearColor TextColor; // (Parm, IsPlainOldData) float Kerning; // (Parm, ZeroConstructor, IsPlainOldData) struct FLinearColor ShadowColor; // (Parm, IsPlainOldData) struct FVector2D ShadowOffset; // (Parm, IsPlainOldData) bool bCentreX; // (Parm, ZeroConstructor, IsPlainOldData) bool bCentreY; // (Parm, ZeroConstructor, IsPlainOldData) bool bOutlined; // (Parm, ZeroConstructor, IsPlainOldData) struct FLinearColor OutlineColor; // (Parm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.ConsumeBudget struct UMordhauUtilityLibrary_ConsumeBudget_Params { class AAdvancedCharacter* Character; // (Parm, ZeroConstructor, IsPlainOldData) EBudgetType BudgetType; // (Parm, ZeroConstructor, IsPlainOldData) bool bSkipInvisible; // (Parm, ZeroConstructor, IsPlainOldData) float Duration; // (Parm, ZeroConstructor, IsPlainOldData) float DistanceCutoff; // (Parm, ZeroConstructor, IsPlainOldData) bool bForce; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.ComputePointsLeft struct UMordhauUtilityLibrary_ComputePointsLeft_Params { struct FCharacterProfile Profile; // (ConstParm, Parm, OutParm, ReferenceParm) int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.CompareGearCustomization struct UMordhauUtilityLibrary_CompareGearCustomization_Params { struct FCharacterGearCustomization First; // (ConstParm, Parm, OutParm, ReferenceParm) struct FCharacterGearCustomization Second; // (ConstParm, Parm, OutParm, ReferenceParm) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.CompareFaceCustomization struct UMordhauUtilityLibrary_CompareFaceCustomization_Params { struct FFaceCustomization First; // (ConstParm, Parm, OutParm, ReferenceParm) struct FFaceCustomization Second; // (ConstParm, Parm, OutParm, ReferenceParm) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.CompareEquipmentCustomization struct UMordhauUtilityLibrary_CompareEquipmentCustomization_Params { struct FEquipmentCustomization First; // (ConstParm, Parm, OutParm, ReferenceParm) struct FEquipmentCustomization Second; // (ConstParm, Parm, OutParm, ReferenceParm) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.CompareAppearanceCustomization struct UMordhauUtilityLibrary_CompareAppearanceCustomization_Params { struct FAppearanceCustomization First; // (ConstParm, Parm, OutParm, ReferenceParm) struct FAppearanceCustomization Second; // (ConstParm, Parm, OutParm, ReferenceParm) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.ClosestPointOnLine struct UMordhauUtilityLibrary_ClosestPointOnLine_Params { struct FVector LineStart; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) struct FVector LineEnd; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) struct FVector Point; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) struct FVector ReturnValue; // (Parm, OutParm, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.Capitalize struct UMordhauUtilityLibrary_Capitalize_Params { struct FString String; // (Parm, ZeroConstructor) struct FString ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm) }; // Function Mordhau.MordhauUtilityLibrary.CalculateGCD struct UMordhauUtilityLibrary_CalculateGCD_Params { int ValueA; // (Parm, ZeroConstructor, IsPlainOldData) int ValueB; // (Parm, ZeroConstructor, IsPlainOldData) int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.CalculateAngle2D struct UMordhauUtilityLibrary_CalculateAngle2D_Params { struct FVector Direction; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) float Yaw; // (Parm, ZeroConstructor, IsPlainOldData) float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.AreProfilesEqual struct UMordhauUtilityLibrary_AreProfilesEqual_Params { struct FCharacterProfile First; // (ConstParm, Parm, OutParm, ReferenceParm) struct FCharacterProfile Second; // (ConstParm, Parm, OutParm, ReferenceParm) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauUtilityLibrary.AreActorsFromSameLevel struct UMordhauUtilityLibrary_AreActorsFromSameLevel_Params { class AActor* ActorA; // (Parm, ZeroConstructor, IsPlainOldData) class AActor* ActorB; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauWebAPI.RankBackendServers struct UMordhauWebAPI_RankBackendServers_Params { int InPingedServerCount; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.MordhauWebAPI.ProcessRequestQueue struct UMordhauWebAPI_ProcessRequestQueue_Params { }; // Function Mordhau.MordhauWebAPI.IsAvailable struct UMordhauWebAPI_IsAvailable_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauWebAPI.GetAuthStatus struct UMordhauWebAPI_GetAuthStatus_Params { EAuthStatus ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauWebAPI.Authenticate struct UMordhauWebAPI_Authenticate_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.MordhauWidgetComponent.SetPlayerStateAlwaysSee struct UMordhauWidgetComponent_SetPlayerStateAlwaysSee_Params { class APlayerState* PlayerState; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.OneDimensionalMovementComponent.SetMovementLine struct UOneDimensionalMovementComponent_SetMovementLine_Params { struct FVector NewLineStart; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) struct FVector NewLineEnd; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) }; // Function Mordhau.ParticleSystemActor.SparseTick struct AParticleSystemActor_SparseTick_Params { }; // Function Mordhau.PushableActor.SetProgress struct APushableActor_SetProgress_Params { float NewProgress; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.PushableActor.OnRep_ReplicatedProgress struct APushableActor_OnRep_ReplicatedProgress_Params { }; // Function Mordhau.PushableActor.OnProgressUpdated struct APushableActor_OnProgressUpdated_Params { float OldProgress; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.Quiver.FindAppropriateQuiverMesh struct UQuiver_FindAppropriateQuiverMesh_Params { unsigned char Ammo; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char MaxAmmo; // (Parm, ZeroConstructor, IsPlainOldData) class UStaticMesh* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.SeparatedBodyPart.OnCosmeticHit struct ASeparatedBodyPart_OnCosmeticHit_Params { EMordhauDamageType DamageType; // (Parm, ZeroConstructor, IsPlainOldData) unsigned char SubType; // (Parm, ZeroConstructor, IsPlainOldData) struct FHitResult Hit; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData) class AActor* Agent; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.SeparatedBodyPart.IsPartiallyDismembered struct ASeparatedBodyPart_IsPartiallyDismembered_Params { bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.SeparatedBodyPart.IsDismembered struct ASeparatedBodyPart_IsDismembered_Params { struct FName bone; // (Parm, ZeroConstructor, IsPlainOldData) bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.SeparatedBodyPart.InitializeDismemberment struct ASeparatedBodyPart_InitializeDismemberment_Params { class AMordhauCharacter* Source; // (Parm, ZeroConstructor, IsPlainOldData) struct FName bone; // (Parm, ZeroConstructor, IsPlainOldData) struct FTransform SourceBoneTransform; // (Parm, IsPlainOldData) bool bIsPartial; // (Parm, ZeroConstructor, IsPlainOldData) bool bIsBluntForce; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.SubField.SetSubFieldHidden struct ASubField_SetSubFieldHidden_Params { bool bValue; // (Parm, ZeroConstructor, IsPlainOldData) }; // Function Mordhau.SubField.GetMaster struct ASubField_GetMaster_Params { class AMasterField* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.SubField.DeactivateSubField struct ASubField_DeactivateSubField_Params { }; // Function Mordhau.SubField.BeginSubFieldDeactivation struct ASubField_BeginSubFieldDeactivation_Params { }; // Function Mordhau.ThudderComponent.DoTick struct UThudderComponent_DoTick_Params { }; // Function Mordhau.UpperChestWearable.GetShouldersWearablesNum struct UUpperChestWearable_GetShouldersWearablesNum_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.UpperChestWearable.GetShouldersWearable struct UUpperChestWearable_GetShouldersWearable_Params { int Index; // (Parm, ZeroConstructor, IsPlainOldData) class UClass* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.UpperChestWearable.GetLowerChestWearablesNum struct UUpperChestWearable_GetLowerChestWearablesNum_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.UpperChestWearable.GetLowerChestWearable struct UUpperChestWearable_GetLowerChestWearable_Params { int Index; // (Parm, ZeroConstructor, IsPlainOldData) class UClass* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.UpperChestWearable.GetArmsWearablesNum struct UUpperChestWearable_GetArmsWearablesNum_Params { int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; // Function Mordhau.UpperChestWearable.GetArmsWearable struct UUpperChestWearable_GetArmsWearable_Params { int Index; // (Parm, ZeroConstructor, IsPlainOldData) class UClass* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) }; } #ifdef _MSC_VER #pragma pack(pop) #endif
[ "hsibma02@gmail.com" ]
hsibma02@gmail.com
67b1645131b261ee68c44071f142e3716de1ca67
120bf148e7a61319c7a60315ecb4a452bdaa7a26
/src/ResetButton.h
eb62a4844c9bf5d69078695d03852ab1592ea168
[]
no_license
DhruvBandaria/Slotmachine
15fd3855a73e3c71e3b7f97db6010943316cdf0e
d261e9900be1590cd04bfc572448dcdfed530ce0
refs/heads/master
2021-01-05T22:54:47.391711
2020-02-18T01:15:25
2020-02-18T01:15:25
241,159,142
0
0
null
null
null
null
UTF-8
C++
false
false
320
h
#pragma once #ifndef __REST_BUTTON__ #define __REST_BUTTON__ #include "Button.h" class Level1Scene; class RestButton : public Button { public: RestButton(); ~RestButton(); bool ButtonClick() override; bool ButtonClick(Level1Scene* sender); private: bool m_isClicked; }; #endif /* defined (__START_BUTTON__) */
[ "dhruvbandaria@hotmail.com" ]
dhruvbandaria@hotmail.com
bf460882941b64fff27a1055636d18872243bf08
06bed8ad5fd60e5bba6297e9870a264bfa91a71d
/LayoutEditor/tracksegmentviewxml.cpp
068e7f4fb89ce5f12a0d213bc29af2d4414780ae
[]
no_license
allenck/DecoderPro_app
43aeb9561fe3fe9753684f7d6d76146097d78e88
226c7f245aeb6951528d970f773776d50ae2c1dc
refs/heads/master
2023-05-12T07:36:18.153909
2023-05-10T21:17:40
2023-05-10T21:17:40
61,044,197
4
3
null
null
null
null
UTF-8
C++
false
false
25,849
cpp
#include "tracksegmentviewxml.h" #include "tracksegmentview.h" #include "loggerfactory.h" #include "tracksegment.h" #include "colorutil.h" #include <QMetaEnum> /** * This module handles configuration for display.TrackSegment objects for a * LayoutEditor. * * @author Bob Jacobsen Copyright (c) 2020 * @author David Duchamp Copyright (c) 2007 * @author George Warner Copyright (c) 2017-2019 */ // /*public*/ class TrackSegmentViewXml extends AbstractXmlAdapter { /*public*/ TrackSegmentViewXml::TrackSegmentViewXml(QObject *parent) : AbstractXmlAdapter((parent)){ } /** * Default implementation for storing the contents of a TrackSegment * * @param o Object to store, of type TrackSegment * @return QDomElement containing the complete info */ //@Override /*public*/ QDomElement TrackSegmentViewXml::store(QObject* o) { TrackSegmentView* view = (TrackSegmentView*) o; TrackSegment* trk = view->getTrackSegment(); QDomElement element = doc.createElement("tracksegment"); // NOI18N // include attributes element.setAttribute("ident", trk->getId()); if (!trk->getBlockName().isEmpty()) { element.setAttribute("blockname", trk->getBlockName()); } element.setAttribute("connect1name", trk->getConnect1Name()); //element.setAttribute("type1", "" + htpMap.outputFromEnum(trk->getType1()) ); QMetaEnum metaEnum = QMetaEnum::fromType<HitPointType::TYPES>(); element.setAttribute("type1", metaEnum.valueToKey(trk->getType1())); element.setAttribute("connect2name", trk->getConnect2Name()); //element.setAttribute("type2", "" + htpMap.outputFromEnum(trk->getType2()) ); element.setAttribute("type2", metaEnum.valueToKey(trk->getType2())); element.setAttribute("dashed", (view->isDashed() ? "yes" : "no")); element.setAttribute("mainline", (trk->isMainline() ? "yes" : "no")); element.setAttribute("hidden", (view->isHidden() ? "yes" : "no")); if (view->isArc()) { element.setAttribute("arc", "yes"); element.setAttribute("flip", (view->isFlip() ? "yes" : "no")); element.setAttribute("circle", (view->isCircle() ? "yes" : "no")); if (view->isCircle()) { element.setAttribute("angle", (view->getAngle())); element.setAttribute("hideConLines", (view->hideConstructionLines() ? "yes" : "no")); } } if (view->isBezier()) { element.setAttribute("bezier", "yes"); element.setAttribute("hideConLines", (view->hideConstructionLines() ? "yes" : "no")); // add control points QDomElement elementControlpoints = doc.createElement("controlpoints"); for (int i = 0; i < view->getNumberOfBezierControlPoints(); i++) { QDomElement elementControlpoint = doc.createElement("controlpoint"); elementControlpoint.setAttribute("index", "" + i); QPointF pt = view->getBezierControlPoint(i); elementControlpoint.setAttribute("x", QString::asprintf("%.1f", pt.x())); elementControlpoint.setAttribute("y", QString::asprintf("%.1f", pt.y())); elementControlpoints.appendChild(elementControlpoint); } element.appendChild(elementControlpoints); } // store decorations QMap<QString, QString>* decorations = view->getDecorations(); if (decorations->size() > 0) { QDomElement decorationsQDomElement = doc.createElement("decorations"); //for (Map.Entry<String, String> entry : decorations.entrySet()) QMapIterator<QString, QString> entry(*decorations); QDomElement decorationElement; while(entry.hasNext()) { entry.next(); QString name = entry.key(); if (name != ("arrow") && name != ("bridge") && name != ("bumper") && name != ("tunnel")) { decorationElement = doc.createElement("decoration"); decorationElement.setAttribute("name", name); QString value = entry.value(); if (!value.isEmpty()) { decorationElement.setAttribute("value", value); } decorationElement.appendChild( decorationElement); } } element.appendChild( decorationElement); if (view->getArrowStyle() > 0) { QDomElement decorationElement = doc.createElement("arrow"); decorationElement.setAttribute("style", QString::number(view->getArrowStyle())); if (view->isArrowEndStart() && view->isArrowEndStop()) { decorationElement.setAttribute("end", "both"); } else if (view->isArrowEndStop()) { decorationElement.setAttribute("end", "stop"); } else { decorationElement.setAttribute("end", "start"); } if (view->isArrowDirIn() && view->isArrowDirOut()) { decorationElement.setAttribute("direction", "both"); } else if (view->isArrowDirOut()) { decorationElement.setAttribute("direction", "out"); } else { decorationElement.setAttribute("direction", "in"); } decorationElement.setAttribute("color", ColorUtil::colorToHexString(view->getArrowColor())); decorationElement.setAttribute("linewidth", QString::number(view->getArrowLineWidth())); decorationElement.setAttribute("length", QString::number(view->getArrowLength())); decorationElement.setAttribute("gap", QString::number(view->getArrowGap())); decorationElement.appendChild( decorationElement); } if (view->isBridgeSideLeft() || view->isBridgeSideRight()) { QDomElement decorationElement = doc.createElement("bridge"); if (view->isBridgeSideLeft() && view->isBridgeSideRight()) { decorationElement.setAttribute("side", "both"); } else if (view->isBridgeSideLeft()) { decorationElement.setAttribute("side", "left"); } else { decorationElement.setAttribute("side", "right"); } if (view->isBridgeHasEntry() && view->isBridgeHasExit()) { decorationElement.setAttribute("end", "both"); } else if (view->isBridgeHasEntry()) { decorationElement.setAttribute("end", "entry"); } else if (view->isBridgeHasExit()) { decorationElement.setAttribute("end", "exit"); } decorationElement.setAttribute("color", ColorUtil::colorToHexString(view->getBridgeColor())); decorationElement.setAttribute("linewidth", QString::number(view->getBridgeLineWidth())); decorationElement.setAttribute("approachwidth", QString::number(view->getBridgeApproachWidth())); decorationElement.setAttribute("deckwidth", QString::number(view->getBridgeDeckWidth())); decorationElement.appendChild( decorationElement); } if (view->isBumperEndStart() || view->isBumperEndStop()) { QDomElement decorationElement = doc.createElement("bumper"); if (view->isBumperEndStart() && view->isBumperEndStop()) { decorationElement.setAttribute("end", "both"); } else if (view->isBumperEndStop()) { decorationElement.setAttribute("end", "stop"); } else { decorationElement.setAttribute("end", "start"); } decorationElement.setAttribute("color", ColorUtil::colorToHexString(view->getBumperColor())); decorationElement.setAttribute("linewidth", QString::number(view->getBumperLineWidth())); decorationElement.setAttribute("length", QString::number(view->getBumperLength())); if (view->isBumperFlipped()) { decorationElement.setAttribute("flip", "true"); } decorationElement.appendChild( decorationElement); } if (view->isTunnelSideLeft() || view->isTunnelSideRight()) { QDomElement decorationElement = doc.createElement("tunnel"); if (view->isTunnelSideLeft() && view->isTunnelSideRight()) { decorationElement.setAttribute("side", "both"); } else if (view->isTunnelSideLeft()) { decorationElement.setAttribute("side", "left"); } else { decorationElement.setAttribute("side", "right"); } if (view->isTunnelHasEntry() && view->isTunnelHasExit()) { decorationElement.setAttribute("end", "both"); } else if (view->isTunnelHasEntry()) { decorationElement.setAttribute("end", "entry"); } else if (view->isTunnelHasExit()) { decorationElement.setAttribute("end", "exit"); } decorationElement.setAttribute("color", ColorUtil::colorToHexString(view->getTunnelColor())); decorationElement.setAttribute("linewidth", QString::number(view->getTunnelLineWidth())); decorationElement.setAttribute("entrancewidth", QString::number(view->getTunnelEntranceWidth())); decorationElement.setAttribute("floorwidth", QString::number(view->getTunnelFloorWidth())); decorationElement.appendChild( decorationElement); } } //element.setAttribute("class", getClass().getName()); log->info("storing old fixed class name for TrackSegment"); element.setAttribute("class", "jmri.jmrit.display.layoutEditor.configurexml.TrackSegmentXml"); return element; } // store //@Override /*public*/ bool TrackSegmentViewXml::load(QDomElement shared, QDomElement perNode) { log->error("Invalid method called"); return false; } /** * Load, starting with the track segment element, then all all attributes * * @param QDomElement Top level QDomElement to unpack. * @param o LayoutEditor as an Object */ //@Override /*public*/ void TrackSegmentViewXml::load(QDomElement element, QObject* o) throw (Exception){ // create the objects LayoutEditor* p = (LayoutEditor*) o; // get attributes QString name = element.attribute("ident") ; bool dash = getAttributeBooleanValue(element, "dashed", true); bool main = getAttributeBooleanValue(element, "mainline", true); bool hide = getAttributeBooleanValue(element, "hidden", false); QString con1Name = element.attribute("connect1name") ; QString con2Name = element.attribute("connect2name") ; QMetaEnum metaEnum = QMetaEnum::fromType<HitPointType::TYPES>(); bool ok; QString ts; HitPointType::TYPES type1 = (HitPointType::TYPES)metaEnum.keyToValue((ts = element.attribute("type1")).toLocal8Bit(), &ok);//htpMap.inputFromAttribute(element.attribute("type1")); if(!ok) { int i = ts.toInt(&ok); { type1 = (HitPointType::TYPES)i; } } HitPointType::TYPES type2 = (HitPointType::TYPES)metaEnum.keyToValue((ts = element.attribute("type2")).toLocal8Bit(), &ok); if(!ok) { int i = ts.toInt(&ok); { type2 = (HitPointType::TYPES)i; } } // create the new TrackSegment and view TrackSegment* lt = new TrackSegment(name, con1Name, type1, con2Name, type2, main, p); TrackSegmentView* lv = new TrackSegmentView(lt, p); lv->setHidden(hide); lv->setDashed(dash); lv->setArc( getAttributeBooleanValue(element, "arc", false) ); if (lv->isArc()) { lv->setFlip( getAttributeBooleanValue(element, "flip", false) ); lv->setCircle( getAttributeBooleanValue(element, "circle", false) ); if (lv->isCircle()) { lv->setAngle( getAttributeDoubleValue(element, "angle", 0.0) ); } } if ( getAttributeBooleanValue(element, "bezier", false)) { // load control points QDomElement controlpointsElement = element.firstChildElement("controlpoints"); if (controlpointsElement != QDomElement()) { QDomNodeList elementList = controlpointsElement.elementsByTagName("controlpoint"); if (!elementList.isEmpty()) { if (elementList.size() >= 2) { //for (QDomElement value : elementList) for(int i=0; i < elementList.size(); i++) { QDomElement value = elementList.at(i).toElement(); double x = 0.0; double y = 0.0; int index = 0; try { bool ok; index = (value.attribute("index")).toInt(&ok); if(!ok) throw new DataConversionException(); x = (value.attribute("x")).toFloat(&ok); if(!ok) throw new DataConversionException(); y = (value.attribute("y")).toFloat(&ok); if(!ok) throw new DataConversionException(); } catch (DataConversionException* e) { log->error("failed to convert controlpoint coordinates or index attributes"); } lv->setBezierControlPoint(QPointF(x, y), index); } } else { log->error(tr("Track segment Bezier two controlpoint elements not found. (found %1)").arg(elementList.size())); } } else { log->error("Track segment Bezier controlpoint elements not found."); } } else { log->error("Track segment Bezier controlpoints QDomElement not found."); } // NOTE: do this LAST (so reCenter won't be called yet) lv->setBezier(true); } if ( getAttributeBooleanValue(element, "hideConLines", false) ) { lv->hideConstructionLines(TrackSegmentView::HIDECON); } // load decorations QDomElement decorationsElement = element.firstChildElement("decorations"); if (decorationsElement != QDomElement()) { QDomNodeList decorationElementList = decorationsElement.childNodes(); if (! decorationElementList.isEmpty()) { QMap<QString, QString> decorations = QMap<QString, QString>(); //for (QDomElement decorationElement : decorationElementList) for(int i=0; i < decorationElementList.size(); i++) { QDomElement decorationElement = decorationElementList.at(i).toElement(); QString decorationName = decorationElement.tagName(); if (decorationName == ("arrow")) { QString a = decorationElement.attribute("style"); if (a != "") { bool ok; lv->setArrowStyle(a.toInt(&ok)); if(!ok) { } } // assume both ends lv->setArrowEndStart(true); lv->setArrowEndStop(true); a = decorationElement.attribute("end"); if (a != "") { QString value = a ; if (value == ("start")) { lv->setArrowEndStop(false); } else if (value == ("stop")) { lv->setArrowEndStart(false); } } // assume both directions lv->setArrowDirIn(true); lv->setArrowDirOut(true); a = decorationElement.attribute("direction"); if (a != "") { QString value = a ; if (value == ("in")) { lv->setArrowDirOut(false); } else if (value == ("out")) { lv->setArrowDirIn(false); } } a = decorationElement.attribute("color"); if ( !a.isEmpty()) { try { lv->setArrowColor(ColorUtil::stringToColor(a )); } catch (IllegalArgumentException e) { lv->setArrowColor(Qt::black); log->error(tr("Invalid color %1; using black").arg(a )); } } a = decorationElement.attribute("linewidth"); if ( !a.isEmpty()) { bool ok; lv->setArrowLineWidth(a.toInt(&ok)); if(!ok) { } } a = decorationElement.attribute("length"); if ( !a.isEmpty()) { bool ok; lv->setArrowLength(a.toInt(&ok)); if(!ok) { } } a = decorationElement.attribute("gap"); if ( !a.isEmpty()) { bool ok; lv->setArrowGap(a.toInt(&ok)); if(!ok) { } } } else if (decorationName == ("bridge")) { // assume both sides lv->setBridgeSideLeft(true); lv->setBridgeSideRight(true); QString a = decorationElement.attribute("side"); if ( !a.isEmpty()) { QString value = a ; if (value == ("right")) { lv->setBridgeSideLeft(false); } else if (value == ("left")) { lv->setBridgeSideRight(false); } } // assume neither end lv->setBridgeHasEntry(false); lv->setBridgeHasExit(false); a = decorationElement.attribute("end"); if ( !a.isEmpty()) { QString value = a ; if (value == ("both")) { lv->setBridgeHasEntry(true); lv->setBridgeHasExit(true); } else if (value == ("entry")) { lv->setBridgeHasEntry(true); lv->setBridgeHasExit(false); } else if (value == ("exit")) { lv->setBridgeHasEntry(false); lv->setBridgeHasExit(true); } } a = decorationElement.attribute("color"); if ( !a.isEmpty()) { try { lv->setBridgeColor(ColorUtil::stringToColor(a )); } catch (IllegalArgumentException e) { lv->setBridgeColor(Qt::black); log->error(tr("Invalid color %1; using black").arg(a)); } } a = decorationElement.attribute("linewidth"); if ( !a.isEmpty()) { bool ok; lv->setBridgeLineWidth(a.toInt(&ok)); if(!ok) { } } a = decorationElement.attribute("approachwidth"); if ( !a.isEmpty()) { bool ok; lv->setBridgeApproachWidth(a.toInt(&ok)); if(!ok) { } } a = decorationElement.attribute("deckwidth"); if ( !a.isEmpty()) { bool ok; lv->setBridgeDeckWidth(a.toInt(&ok)); if(!ok) { } } } else if (decorationName == ("bumper")) { // assume both ends lv->setBumperEndStart(true); lv->setBumperEndStop(true); QString a = decorationElement.attribute("end"); if ( !a.isEmpty()) { QString value = a ; if (value == ("start")) { lv->setBumperEndStop(false); } else if (value == ("stop")) { lv->setBumperEndStart(false); } } a = decorationElement.attribute("color"); if ( !a.isEmpty()) { try { lv->setBumperColor(ColorUtil::stringToColor(a )); } catch (IllegalArgumentException e) { lv->setBumperColor(Qt::black); log->error(tr("Invalid color %1; using black").arg(a)); } } a = decorationElement.attribute("linewidth"); if ( !a.isEmpty()) { bool ok; lv->setBumperLineWidth(a.toInt(&ok)); if(!ok) { } } a = decorationElement.attribute("length"); if ( !a.isEmpty()) { bool ok; lv->setBumperLength(a.toInt(&ok)); if(!ok) { } } a = decorationElement.attribute("flip"); if ( !a.isEmpty()) { lv->setBumperFlipped(a == "true"); } } else if (decorationName == ("tunnel")) { // assume both sides lv->setTunnelSideLeft(true); lv->setTunnelSideRight(true); QString a = decorationElement.attribute("side"); if ( !a.isEmpty()) { QString value = a ; if (value == ("right")) { lv->setTunnelSideLeft(false); } else if (value == ("left")) { lv->setTunnelSideRight(false); } } // assume neither end lv->setTunnelHasEntry(false); lv->setTunnelHasExit(false); a = decorationElement.attribute("end"); if ( !a.isEmpty()) { QString value = a ; if (value == ("both")) { lv->setTunnelHasEntry(true); lv->setTunnelHasExit(true); } else if (value == ("entry")) { lv->setTunnelHasEntry(true); lv->setTunnelHasExit(false); } else if (value == ("exit")) { lv->setTunnelHasEntry(false); lv->setTunnelHasExit(true); } } a = decorationElement.attribute("color"); if ( !a.isEmpty()) { try { lv->setTunnelColor(ColorUtil::stringToColor(a )); } catch (IllegalArgumentException e) { lv->setTunnelColor(Qt::black); log->error(tr("Invalid color %1; using black").arg(a)); } } a = decorationElement.attribute("linewidth"); if ( !a.isEmpty()) { bool ok; lv->setTunnelLineWidth(a.toInt(&ok)); if(!ok) { } } a = decorationElement.attribute("entrancewidth"); if ( !a.isEmpty()) { bool ok; lv->setTunnelEntranceWidth(a.toInt(&ok)); if(!ok) { } } a = decorationElement.attribute("floorwidth"); if ( !a.isEmpty()) { bool ok; lv->setTunnelFloorWidth(a.toInt(&ok)); if(!ok) { } } } else { try { QString eName = decorationElement.attribute("name"); QString a = decorationElement.attribute("value"); QString eValue = (a != "") ? a : ""; decorations.insert(eName, eValue); } catch (NullPointerException* e) { // considered normal if the attribute is not present } } } lv->setDecorations(&decorations); } } // get remaining attribute QString a = element.attribute("blockname"); if ( !a.isEmpty()) { lt->tLayoutBlockName = a ; } p->addLayoutTrack(lt, lv); } // /*static*/ final EnumIO<HitPointType> htpMap = new EnumIoNamesNumbers<>(HitPointType.class); /*private*/ /*final*/ /*static*/ Logger* TrackSegmentViewXml::log = LoggerFactory::getLogger("TrackSegmentViewXml");
[ "allenck@windstream.net" ]
allenck@windstream.net
bce55573426ad8b9ddc037ca4987462e26219981
764f5c3886ca27fcd2241c4b62b21ee5b75dcc13
/include/c++/schemas/Mod.h
fa51d7a6e9aac666364c304077dd67d3ff3135d2
[ "MIT" ]
permissive
Turupawn/TravisTest
39b4946b54b2ae559918674347f0ee53afadbb64
6f909d58bc3b81694a20d8a58b5763a437a0ab68
refs/heads/master
2021-05-12T05:31:41.695562
2018-02-08T17:45:37
2018-02-08T17:45:37
117,195,699
0
0
MIT
2018-01-12T05:52:27
2018-01-12T05:16:39
C++
UTF-8
C++
false
false
832
h
#ifndef MODIO_MOD_H #define MODIO_MOD_H #include "c++/schemas/Logo.h" #include "c++/schemas/User.h" #include "c++/schemas/Media.h" #include "c++/schemas/Modfile.h" #include "c++/schemas/RatingSummary.h" #include "c++/schemas/Tag.h" #include "c/schemas/ModioMod.h" #include "Globals.h" namespace modio { class Mod { public: u32 id; u32 game_id; u32 status; u32 visible; long date_added; long date_updated; long date_live; std::string homepage; std::string name; std::string name_id; std::string summary; std::string description; std::string metadata_blob; std::string profile_url; Logo logo; User submitted_by; Modfile modfile; Media media; RatingSummary rating_summary; std::vector<Tag> tags; void initialize(ModioMod mod); }; } #endif
[ "ahmed.hn.43@gmail.com" ]
ahmed.hn.43@gmail.com
ab0164d87b7f3aa349da54917946acf401ccbe1d
6e7779d48f2be3f7e06017de50a3ce1f378baa4d
/include/Ultralight/Bitmap.h
e8d9cd93f0fa2ee8c06e4205e6856c6273a7ea82
[]
no_license
ultralight-ux/ultralight-0.9-api
25010e776f7910080b25d80b8075708a357b3da7
d77302ea5225e2b4d02c0e4dbab238144567ab71
refs/heads/master
2020-03-25T22:21:51.972407
2018-08-10T01:02:34
2018-08-10T01:02:34
144,218,979
107
6
null
null
null
null
UTF-8
C++
false
false
2,323
h
// Copyright 2018 Ultralight, Inc. All rights reserved. #pragma once #include <Ultralight/Defines.h> #include <Ultralight/RefPtr.h> #include <Ultralight/Geometry.h> namespace ultralight { #pragma pack(push, 1) enum UExport BitmapFormat { kBitmapFormat_A8, kBitmapFormat_RGBA8 }; #define GetBytesPerPixel(x) (x == kBitmapFormat_A8? 1 : 4) /** * Ref-Counted Bitmap container with basic blitting and conversion routines. */ class UExport Bitmap : public RefCounted { public: // Make empty Bitmap static Ref<Bitmap> Create(); // Make Bitmap with certain configuration static Ref<Bitmap> Create(uint32_t width, uint32_t height, BitmapFormat format); // Make Bitmap with existing pixels and configuration static Ref<Bitmap> Create(uint32_t width, uint32_t height, BitmapFormat format, uint32_t row_bytes, const void* pixels, size_t size, bool owns_pixels = true); // Make a deep copy static Ref<Bitmap> Create(const Bitmap& bitmap); // Accessors virtual uint32_t width() const = 0; virtual uint32_t height() const = 0; virtual IntRect bounds() const = 0; virtual BitmapFormat format() const = 0; virtual uint32_t bpp() const = 0; virtual uint32_t row_bytes() const = 0; virtual size_t size() const = 0; virtual void* pixels() = 0; virtual const void* pixels() const = 0; virtual bool owns_pixels() const = 0; // Member Functions virtual bool IsEmpty() const = 0; virtual void Erase() = 0; virtual void Set(Ref<Bitmap> bitmap) = 0; /** * Draws src bitmap to this bitmap. * * @param src_rect The source rectangle, relative to src bitmap. * @param dest_rect The destination rectangle, relative to this bitmap. * @param src The source bitmap. * @param pad_repeat Whether or not we should pad the drawn bitmap by 1 pixel * of repeated edge pixels from the source bitmap. */ virtual bool DrawBitmap(IntRect src_rect, IntRect dest_rect, Ref<Bitmap> src, bool pad_repeat) = 0; // Write this bitmap out to a PNG image. virtual bool WritePNG(const char* path) = 0; protected: Bitmap(); virtual ~Bitmap(); Bitmap(const Bitmap&); void operator=(const Bitmap&); }; #pragma pack(pop) } // namespace ultralight
[ "hi@adamjsimmons.com" ]
hi@adamjsimmons.com
3b530229f1b1befc9a7e917bfec408f686d92332
fa1377bd22dc9f00b24e3fc2e106ea8cf3fd74e8
/src/transport/tcp_connection.cpp
a2b8d757aac25f5c772f05daff58abe1f07d9c3f
[ "MIT" ]
permissive
juruen/cavalieri
17848168678d0ab68e321dd242679c2fafa50c4b
c3451579193fc8f081b6228ae295b463a0fd23bd
refs/heads/master
2020-04-02T16:49:47.492783
2015-09-08T19:07:43
2015-09-08T19:11:55
13,036,407
54
11
null
2014-10-05T18:59:53
2013-09-23T13:24:46
C++
UTF-8
C++
false
false
2,530
cpp
#include <algorithm> #include <unistd.h> #include <iostream> #include <sys/types.h> #include <sys/socket.h> #include <glog/logging.h> #include <transport/tcp_connection.h> #include <os/os_functions.h> namespace { const size_t k_default_buffer_size = 1024 * (1024 + 512); bool read_from_fd(boost::circular_buffer<unsigned char> & buffer, const int & fd) { VLOG(3) << "read_from_fd() free: " << buffer.reserve(); unsigned char b[buffer.reserve()]; ssize_t nread = g_os_functions.recv(fd, &b[0], buffer.reserve(), 0); VLOG(3) << "read bytes: " << nread; if (nread < 0) { LOG(ERROR) << "read error: " << strerror(errno); return false; } if (nread == 0) { VLOG(3) << "peer has disconnected gracefully"; return false; } buffer.insert(buffer.end(), &b[0], &b[0] + nread); return true; } bool write_to_fd(boost::circular_buffer<unsigned char> & buffer, const int & fd) { VLOG(3) << "write() up to " << buffer.size() << " bytes"; auto p = buffer.linearize(); auto n = g_os_functions.write(fd, p, buffer.size()); if (n < 0) { LOG(ERROR) << "write error: " << strerror(errno); return false; } buffer.erase_begin(n); return true; } } tcp_connection::tcp_connection(int sfd) : buff_size(k_default_buffer_size), sfd(sfd), close_connection(false), r_buffer(k_default_buffer_size), w_buffer(k_default_buffer_size) { } tcp_connection::tcp_connection(int sfd, size_t buff_size): buff_size(k_default_buffer_size), sfd(sfd), close_connection(false), r_buffer(buff_size), w_buffer(buff_size) { } bool tcp_connection::read() { if ((r_buffer.reserve()) <= 0) { LOG(ERROR) << "buffer is complete"; return false; } if (!read_from_fd(r_buffer, sfd)) { close_connection = true; return false; } return true; } bool tcp_connection::queue_write(const char *src, const size_t length) { VLOG(3) << "queue_write with size: " << length; if (w_buffer.reserve() < length) { LOG(ERROR) << "error write buffer is full"; return false; } w_buffer.insert(w_buffer.end(), src, src + length); return true; } bool tcp_connection::write() { if (!write_to_fd(w_buffer, sfd)) { close_connection = true; return false; } else { return true; } } bool tcp_connection::pending_read() const { return true; } bool tcp_connection::pending_write() const { return w_buffer.size() > 0; } size_t tcp_connection::read_bytes() const { return r_buffer.size(); }
[ "javi.uruen@gmail.com" ]
javi.uruen@gmail.com
6fe8a01d8d8fa9d46dc2473ca232098dbb13583e
d9e7a3a77832de1a60a5c5b9f06b893f018c7241
/BST.h
29c0dbbd9b3785e157309de14c4b3ae1e5854dc4
[]
no_license
duongbaongoc/Working-with-BST
94f11175aa0ce76995d9a38b04515fad6aeff259
08976022fb76764a0c89bef96ac7b336b5a16ea2
refs/heads/master
2021-07-11T16:49:00.728565
2017-10-16T19:02:48
2017-10-16T19:02:48
107,170,881
0
0
null
null
null
null
UTF-8
C++
false
false
1,390
h
#pragma once #include "AbstractNode.h" #include "TransactionNode.h" class BST { public: //default constructor BST(); //getter Node *& getPRoot(); //setter void setPRoot(Node *& const newNode); //other member functions void insert(const string & newData, const int & newUnits); //will call insert() in private section void inOrderTraversal(); //call inOrderTraversal () in private section TransactionNode & findSmallest(); //will call findSmallest() in the private section TransactionNode & findLargest(); //will call findLargest() in the private section //destructor ~BST(); // calls destroyTree () private: Node * mpRoot; //helper functions void destroyTree(Node *& pRoot); //visit each node in postOrder to delete them void insert(Node *& pRoot, TransactionNode &newNode); //inserts recursively in the correct subtree based on mUnits void inOrderTraversal(Node *& pRoot); //recursively visits and prints the contents (mData and mUnits) of each node in the tree in order // contents should be printed on a separate line; must call the printData () function associated with the TransactionNode TransactionNode & findSmallest(Node * pRoot); //returns a reference to a TransactionNode with the smallest mUnits TransactionNode & findLargest(Node * pRoot); //returns a reference to a TransactionNode with the largest mUnits };
[ "ngoc.duong@wsu.edu" ]
ngoc.duong@wsu.edu
2a88cd0ea8e8cdaa06d07ae6fce1d7e1da0782f4
e5926ce06de449fa0c3d8f110497c61a3b5d730d
/stm32/cores/arduino/stm32/USBDevice.cpp
ba058c45f73add9f9a968a77f5a921c9841dba9f
[ "MIT" ]
permissive
Gruenstreifen-eV/BSFrance-stm32
b4a976d532f25d64b3efdfad04ad8557a3535ed3
e8d3aa12c1fcc1f2c90fa8a3c9f6c39851d013d6
refs/heads/master
2020-04-20T13:19:50.997106
2019-02-18T19:26:12
2019-02-18T19:26:12
168,866,125
0
1
MIT
2019-02-02T18:55:05
2019-02-02T18:55:05
null
UTF-8
C++
false
false
4,169
cpp
/* Copyright (c) 2017 Daniel Fekete Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include "Arduino.h" #if defined(USB_BASE) || defined(USB_OTG_DEVICE_BASE) #include "USBDevice.h" #include "usbd_core.h" #include "usbd_desc.h" #include "cdc/usbd_cdc.h" #include "cdc/usbd_cdc_if.h" #include "msc/usbd_msc.h" #include "usb_device.h" void USBDeviceClass::reenumerate() { /* Re-enumerate the USB */ volatile unsigned int i; #ifdef USB_DISC_PIN pinMode(USB_DISC_PIN, OUTPUT); #ifdef USB_DISC_LOW //add by huaweiwx@sina.com 2017.6.18 digitalWrite(USB_DISC_PIN, LOW); //for HASEE_V3 #else digitalWrite(USB_DISC_PIN, HIGH); //for ArmFly/RedBull #endif for(i=0;i<1512;i++); #ifdef USB_DISC_LOW digitalWrite(USB_DISC_PIN, HIGH); #else digitalWrite(USB_DISC_PIN, LOW); #endif for(i=0;i<512;i++); #else //pinMode(USBDP_PIN, OUTPUT); //digitalWrite(USBDP_PIN, LOW); //for(i=0;i<512;i++); //digitalWrite(USBDP_PIN, HIGH); pinMode(PA12, OUTPUT); digitalWrite(PA12, LOW); //HAL_Delay(1000); for(i=0;i<1512;i++){}; pinMode(PA12, INPUT); //digitalWrite(PA12, HIGH); //HAL_Delay(1000); for(i=0;i<512;i++){}; #endif } #ifdef MENU_USB_IAD /*huaweiwx@sina.com 2017.9.15 add*/ bool USBDeviceClass::beginIDA() { reenumerate(); USBD_Init(&hUsbDeviceFS, &MSC_Desc, DEVICE_FS); USBD_RegisterClass(&hUsbDeviceFS, &USBD_COMPOSITE); // USBD_MSC_RegisterStorage(&hUsbDeviceFS, &USBD_MSC_Interface_fops_FS); USBD_Start(&hUsbDeviceFS); return true; } #elif defined(MENU_USB_SERIAL) bool USBDeviceClass::beginCDC() { reenumerate(); USBD_Init(&hUsbDeviceFS, &CDC_Desc, DEVICE_FS); USBD_RegisterClass(&hUsbDeviceFS, &USBD_CDC); USBD_CDC_RegisterInterface(&hUsbDeviceFS, &USBD_CDC_Interface_fops_FS); USBD_Start(&hUsbDeviceFS); return true; } #elif defined(MENU_USB_MASS_STORAGE) bool USBDeviceClass::beginMSC() { reenumerate(); USBD_Init(&hUsbDeviceFS, &MSC_Desc, DEVICE_FS); USBD_RegisterClass(&hUsbDeviceFS, &USBD_MSC); USBD_MSC_RegisterStorage(&hUsbDeviceFS, &USBD_MSC_Interface_fops_FS); USBD_Start(&hUsbDeviceFS); return true; } #endif bool USBDeviceClass::end() { return USBD_DeInit(&hUsbDeviceFS); } extern PCD_HandleTypeDef hpcd_USB_FS; extern PCD_HandleTypeDef hpcd_USB_OTG_FS; #if defined(STM32L0)||defined(STM32F0) /*L0/F0 huaweiwx@sina.com 2017.9.24*/ extern "C" void USB_IRQHandler(void) { HAL_PCD_IRQHandler(&hpcd_USB_FS); } #elif defined(STM32L1) /*L1 huaweiwx@sina.com 2017.9.24*/ extern "C" void USB_LP_IRQHandler(void) { HAL_PCD_IRQHandler(&hpcd_USB_FS); } #elif defined(STM32F3) extern "C" void USB_LP_CAN_RX0_IRQHandler(void) { HAL_PCD_IRQHandler(&hpcd_USB_FS); } #else //F1 extern "C" void USB_LP_CAN1_RX0_IRQHandler(void) { HAL_PCD_IRQHandler(&hpcd_USB_FS); } #endif //F105/F107/F2/F4/F7/L4 extern "C" void OTG_FS_IRQHandler(void) { HAL_PCD_IRQHandler(&hpcd_USB_OTG_FS); } USBD_HandleTypeDef hUsbDeviceFS; USBDeviceClass USBDeviceFS; #endif
[ "alerts@bsfrance.fr" ]
alerts@bsfrance.fr
d2ef1bf76196726d293460b0580f57ff43d3e4e5
7ecb894019e52713249dc1b2a6dc967abad4fd25
/test/xpu_api/algorithms/alg.sorting/alg.heap.operations/make.heap/xpu_make_heap.pass.cpp
f3c7b9e8d15de7c61665c2e90a75959480124eb5
[ "Apache-2.0" ]
permissive
obinnaokechukwu/parallelstl
03165152bdc693795ddc12f58b13198e9736e9a2
e121841c68992acd2a6b5f577f93f08492ddaf30
refs/heads/master
2022-09-10T19:20:06.807565
2022-08-04T11:42:20
2022-08-04T11:42:20
154,595,224
0
0
Apache-2.0
2018-10-25T02:00:54
2018-10-25T02:00:54
null
UTF-8
C++
false
false
1,723
cpp
//===-- xpu_make_heap.pass.cpp --------------------------------------------===// // // Copyright (C) Intel Corporation // // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // // This file incorporates work covered by the following copyright and permission // notice: // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // //===----------------------------------------------------------------------===// #include <oneapi/dpl/algorithm> #include "support/test_iterators.h" #include <cassert> #include <CL/sycl.hpp> template <class Iter> void test(sycl::queue& deviceQueue) { using T = typename std::iterator_traits<Iter>::value_type; bool ret = true; const int N = 100; sycl::range<1> item1{1}; { sycl::buffer<bool, 1> buffer1(&ret, item1); deviceQueue.submit([&](sycl::handler& cgh) { auto ret_acc = buffer1.get_access<sycl::access::mode::write>(cgh); cgh.single_task<Iter>([=]() { T input[N]; for (int i = 0; i < N; ++i) input[i] = i; dpl::make_heap(Iter(input), Iter(input + N)); ret_acc[0] &= dpl::is_heap(input, input + N); }); }); } assert(ret); } int main() { sycl::queue deviceQueue; test<random_access_iterator<int*>>(deviceQueue); test<int*>(deviceQueue); test<random_access_iterator<float*>>(deviceQueue); test<float*>(deviceQueue); if (deviceQueue.get_device().has(sycl::aspect::fp64)) { test<random_access_iterator<double*>>(deviceQueue); test<double*>(deviceQueue); } return 0; }
[ "sergey.kopienko@intel.com" ]
sergey.kopienko@intel.com
6a3da1726d5c094d9c0a1bb6c269a6f75435fdca
626dadb659cd43594064aaf8bff5b71b5d751c7f
/Ass2/code/threads/scheduler.h
c846d48dc40a1958b27c113f06ccb978a3b44cfc
[]
no_license
amiteshm/Nachos-Operating-System
b701522927029fb8db1bb0266bc22f91f9ec2258
0b37708fbcbcd6fc96c3da69f6df62d29c912d83
refs/heads/master
2020-05-18T22:06:03.769290
2012-04-03T12:14:00
2012-04-03T12:14:00
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,698
h
// scheduler.h // Data structures for the thread dispatcher and scheduler. // Primarily, the list of threads that are ready to run. // // Copyright (c) 1992-1996 The Regents of the University of California. // All rights reserved. See copyright.h for copyright notice and limitation // of liability and disclaimer of warranty provisions. #ifndef SCHEDULER_H #define SCHEDULER_H #include "copyright.h" #include "list.h" #include "thread.h" // The following class defines the scheduler/dispatcher abstraction -- // the data structures and operations needed to keep track of which // thread is running, and which threads are ready but not running. class Scheduler { public: Scheduler(); // Initialize list of ready threads ~Scheduler(); // De-allocate ready list void ReadyToRun(Thread* thread); // Thread can be dispatched. Thread* FindNextToRun(); // Dequeue first thread on the ready // list, if any, and return thread. void Run(Thread* nextThread, bool finishing); // Cause nextThread to start running void CheckToBeDestroyed();// Check if thread that had been // running needs to be deleted void Print(); // Print contents of ready list int is_empty(); char* FirstTname(); // SelfTest for scheduler is implemented in class Thread int numReadyList(); int numProc(); List<Thread *> *readyList; // queue of threads that are ready to run but not running. List<Thread *> *doneList; //List<Semaphore *> *semaphores; private: Thread *toBeDestroyed; // finishing thread to be destroyed // by the next thread that runs }; #endif // SCHEDULER_H
[ "amiteshmaheshwari@gmail.com" ]
amiteshmaheshwari@gmail.com
fbf47d2ecad0c6493f54e837266214782c14fd0a
aabf2d9eacfc7bdafce823920507c073b94d24f5
/Trunk/ObjetFamily/Base/FrontEnd/FrontEndInterface.h
54f5a6926148b59463f9468c48daf7e66d8ea065
[]
no_license
SlavaC1/ControlSW
90a5cf3709ea3d49db5126f0091c89428f5e1f49
6c8af513233a5d3d7c7f0d8b4d89c0ee69a661cb
refs/heads/master
2021-01-10T15:47:23.183784
2016-03-04T13:33:26
2016-03-04T13:33:26
53,054,100
0
0
null
null
null
null
UTF-8
C++
false
false
4,579
h
/******************************************************************** * Objet Geometries LTD. * * --------------------- * * Project: Q2RT * * Module: Q2RT front-end interface. * * * * Compilation: Standard C++. * * * * Author: Ran Peleg. * * Start date: 28/01/2002 * * Last upate: 05/02/2002 * ********************************************************************/ #ifndef _FRONT_END_INTERFACE_H_ #define _FRONT_END_INTERFACE_H_ #include <map> #include "QComponent.h" class CRemoteFrontEndInterface; #if defined(OS_WINDOWS) && !defined(EDEN_CL) class TMainUIFrame; #endif typedef std::map<int,int> TIntShadow; typedef std::map<int,float> TFloatShadow; typedef std::map<int,QString> TStringShadow; typedef std::map<int,bool> TEnableDisableShadow; // Base class for the front-end interface class CFrontEndInterface : public CQComponent { private: unsigned int m_tidComm; //This member holds the TID of the comm. thread, (QA purposes) private: // Update a status in the front end (3 versions) void DoUpdateStatus(int ControlID,int Status); void DoUpdateStatus(int ControlID,float Status); void DoUpdateStatus(int ControlID,QString Status); void UpdateShadow(int ControlID,int Status); void UpdateShadow(int ControlID,float Status); void UpdateShadow(int ControlID,QString Status); void UpdateShadow(int ControlID,bool Status); // Enable/Disable a front-end UI control void DoEnableDisableControl(int ControlID,bool Enable); protected: // Each control type has a shadow array containing the last updated status TIntShadow m_IntShadow; TFloatShadow m_FloatShadow; TStringShadow m_StringShadow; TEnableDisableShadow m_EnableDisableShadow; bool m_DisplayMaterialWarningEnable; CRemoteFrontEndInterface *m_RemoteFrontEndInterface; DEFINE_VAR_PROPERTY(bool,RemoteModeEnabled); #if defined(OS_WINDOWS) && !defined(EDEN_CL) TMainUIFrame *m_UIFrame; ULONG m_GUIMainThread; #endif public: // Constructor #if defined(OS_WINDOWS) && !defined(EDEN_CL) CFrontEndInterface(TMainUIFrame *UIFrame); #endif CFrontEndInterface(void); // Destructor ~CFrontEndInterface(void); void RemoveStatus(int ControlID); // Update a status in the front end (3 versions) void UpdateStatus(int ControlID); //not refreshable void UpdateStatus(int ControlID,int Status,bool ForceRefresh = false); void UpdateStatus(int ControlID,float Status,bool ForceRefresh = false); void UpdateStatus(int ControlID,QString Status,bool ForceRefresh = false); // Enable/Disable a front-end UI control void EnableDisableControl(int ControlID,bool Enable,bool ForceRefresh = false); void MonitorPrint(QString Msg); // Show notification message void NotificationMessage(QString Msg); // Show warning message void WarningMessage(QString Msg); // Show error message void ErrorMessage(QString Msg); // Refresh all the statuses DEFINE_METHOD(CFrontEndInterface,TQErrCode,RefreshStatus); // Give the UI thread some time to run DEFINE_METHOD(CFrontEndInterface,TQErrCode,YieldUIThread); // Show the 'Cartridge error' dialog TQErrCode ShowCartridgeError(int DialogType, int Cartridge, bool Modal); TQErrCode InformStopToCartridgeDlg(); TQErrCode ShowMaterialWarning(int Value); void EnableMaterialWarning(bool Enable); // TankIDNotice Dialog related functions: TQErrCode ShowTankIDNotice(int DialogType, int Cartridge, int Modal); TQErrCode SendMsgToTankIDNoticeDlg(int Cartridge, int Msg, bool Blocking);//bug 6258 DEFINE_METHOD_1(CFrontEndInterface,TQErrCode,HideTankIDNoticeDlg,int); TQErrCode SuppressDialogPopupsTankIDNotice(int Cartridge); TQErrCode AllowDialogPopupsTankIDNotice(int Cartridge); QString GetTankIDNoticeText(int Cartridge); void SetDisabledIconHint(QString HintText); void LoadBitmap32(/* Graphics::TBitmap */ void *BMP, int ResourceID, /* TColor */ int BackGroundColor); static bool IsWizardRunning(void); static void CancelWizard(QString Msg); }; #endif
[ "wastelanders@gmail.com" ]
wastelanders@gmail.com
206bc37714d0ddfdd14adb05acdd263d905496c6
0b6a74f5c586eb06c9b49d12c9c02704df97ae5c
/227B.cpp
62a6885c7ede0773d4079b2f2a8be1e6ce2d6f54
[]
no_license
iamsank7/Codeforces-solutions
e8adcf5b6552e677e49d70e0f4fbfcb44d8bdb2e
af8d4db01ab16a56731ebf21801521968ce6c7c5
refs/heads/master
2023-04-29T14:56:55.111252
2020-09-05T15:07:48
2020-09-05T15:07:48
null
0
0
null
null
null
null
UTF-8
C++
false
false
289
cpp
#include<iostream> using namespace std; int main() { int n,ans1=0,ans2=0,i,a[100001],m,x; cin>>n; for(i=0;i<n;i++) cin>>a[i]; cin>>m; while(m--) { cin>>x; for(i=0;i<n;i++) if(a[i]==x) { ans1+=i+1; ans2+=n-i; break; } } cout<<ans1<<" "<<ans2; }
[ "sankap.skg1611@gmail.com" ]
sankap.skg1611@gmail.com
f0ed2cb184d1ce31e3c33904fe1ef932b6e04e30
4a106e2ad33ee51dd5c8d23a23f688a6f9a3b6ea
/main.ino
f9f23e8299f6f5a6e7080f24e51cf35f5f6a6f6f
[ "MIT" ]
permissive
craftingmod/embed-hw
d7c8f37434107c6e7ce5761b9ec222f339b1dd4d
58d2111835d85d8a3eae1af54b5e7183af023b9d
refs/heads/master
2023-01-20T15:08:32.472123
2020-12-04T11:04:31
2020-12-04T11:04:31
318,370,587
0
0
null
null
null
null
UTF-8
C++
false
false
79
ino
#include "src/main.h" void setup() { _setup(); } void loop() { _loop(); }
[ "alyac1234@gmail.com" ]
alyac1234@gmail.com
5dbd2906562f38f948e9f9c449c8a5ba765361a4
43a2fbc77f5cea2487c05c7679a30e15db9a3a50
/Cpp/Internal (Offsets Only)/SDK/BP_TreasureArtifact_vase_03_a_Desc_classes.h
b7152ff51589bc2647606581486faf67dcbc729e
[]
no_license
zH4x/SoT-Insider-SDK
57e2e05ede34ca1fd90fc5904cf7a79f0259085c
6bff738a1b701c34656546e333b7e59c98c63ad7
refs/heads/main
2023-06-09T23:10:32.929216
2021-07-07T01:34:27
2021-07-07T01:34:27
383,638,719
0
0
null
null
null
null
UTF-8
C++
false
false
825
h
#pragma once // Name: SoT-Insider, Version: 1.102.2382.0 /*!!DEFINE!!*/ /*!!HELPER_DEF!!*/ /*!!HELPER_INC!!*/ #ifdef _MSC_VER #pragma pack(push, 0x01) #endif namespace CG { //--------------------------------------------------------------------------- // Classes //--------------------------------------------------------------------------- // BlueprintGeneratedClass BP_TreasureArtifact_vase_03_a_Desc.BP_TreasureArtifact_vase_03_a_Desc_C // 0x0000 (FullSize[0x0130] - InheritedSize[0x0130]) class UBP_TreasureArtifact_vase_03_a_Desc_C : public UBootyItemDesc { public: static UClass* StaticClass() { static auto ptr = UObject::FindClass("BlueprintGeneratedClass BP_TreasureArtifact_vase_03_a_Desc.BP_TreasureArtifact_vase_03_a_Desc_C"); return ptr; } }; } #ifdef _MSC_VER #pragma pack(pop) #endif
[ "Massimo.linker@gmail.com" ]
Massimo.linker@gmail.com
1772439239d1e07e4d47b0a43a929a0d4eaf94b2
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
/c++/xbmc/2017/8/GUIControlFactory.cpp
38cec05511fde3199f99d21fe4081e77d5e80b99
[]
no_license
rosoareslv/SED99
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
a062c118f12b93172e31e8ca115ce3f871b64461
refs/heads/main
2023-02-22T21:59:02.703005
2021-01-28T19:40:51
2021-01-28T19:40:51
306,497,459
1
1
null
2020-11-24T20:56:18
2020-10-23T01:18:07
null
UTF-8
C++
false
false
54,349
cpp
/* * Copyright (C) 2005-2013 Team XBMC * http://xbmc.org * * This Program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * This Program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with XBMC; see the file COPYING. If not, see * <http://www.gnu.org/licenses/>. * */ #include "system.h" #include "GUIControlFactory.h" #include "LocalizeStrings.h" #include "GUIButtonControl.h" #include "GUIRadioButtonControl.h" #include "GUISpinControl.h" #include "GUIRSSControl.h" #include "GUIImage.h" #include "GUIBorderedImage.h" #include "GUILabelControl.h" #include "GUIEditControl.h" #include "GUIFadeLabelControl.h" #include "GUIToggleButtonControl.h" #include "GUITextBox.h" #include "GUIVideoControl.h" #include "GUIProgressControl.h" #include "GUISliderControl.h" #include "GUIMoverControl.h" #include "GUIRenderingControl.h" #include "GUIResizeControl.h" #include "GUISpinControlEx.h" #include "GUIVisualisationControl.h" #include "GUISettingsSliderControl.h" #include "GUIMultiImage.h" #include "GUIControlGroup.h" #include "GUIControlGroupList.h" #include "GUIScrollBarControl.h" #include "GUIListContainer.h" #include "GUIFixedListContainer.h" #include "GUIWrappingListContainer.h" #include "pvr/windows/GUIEPGGridContainer.h" #include "GUIPanelContainer.h" #include "GUIListLabel.h" #include "GUIListGroup.h" #include "GUIInfoManager.h" #include "input/Key.h" #include "addons/Skin.h" #include "utils/CharsetConverter.h" #include "utils/XMLUtils.h" #include "GUIFontManager.h" #include "GUIColorManager.h" #include "utils/RssManager.h" #include "utils/StringUtils.h" #include "GUIAction.h" #include "cores/RetroPlayer/guicontrols/GUIGameControl.h" #include "games/controllers/guicontrols/GUIGameController.h" #include "Util.h" using namespace KODI; using namespace PVR; typedef struct { const char* name; CGUIControl::GUICONTROLTYPES type; } ControlMapping; static const ControlMapping controls[] = {{"button", CGUIControl::GUICONTROL_BUTTON}, {"fadelabel", CGUIControl::GUICONTROL_FADELABEL}, {"image", CGUIControl::GUICONTROL_IMAGE}, {"image", CGUIControl::GUICONTROL_BORDEREDIMAGE}, {"label", CGUIControl::GUICONTROL_LABEL}, {"label", CGUIControl::GUICONTROL_LISTLABEL}, {"group", CGUIControl::GUICONTROL_GROUP}, {"group", CGUIControl::GUICONTROL_LISTGROUP}, {"progress", CGUIControl::GUICONTROL_PROGRESS}, {"radiobutton", CGUIControl::GUICONTROL_RADIO}, {"rss", CGUIControl::GUICONTROL_RSS}, {"slider", CGUIControl::GUICONTROL_SLIDER}, {"sliderex", CGUIControl::GUICONTROL_SETTINGS_SLIDER}, {"spincontrol", CGUIControl::GUICONTROL_SPIN}, {"spincontrolex", CGUIControl::GUICONTROL_SPINEX}, {"textbox", CGUIControl::GUICONTROL_TEXTBOX}, {"togglebutton", CGUIControl::GUICONTROL_TOGGLEBUTTON}, {"videowindow", CGUIControl::GUICONTROL_VIDEO}, {"gamewindow", CGUIControl::GUICONTROL_GAME}, {"mover", CGUIControl::GUICONTROL_MOVER}, {"resize", CGUIControl::GUICONTROL_RESIZE}, {"edit", CGUIControl::GUICONTROL_EDIT}, {"visualisation", CGUIControl::GUICONTROL_VISUALISATION}, {"renderaddon", CGUIControl::GUICONTROL_RENDERADDON}, {"multiimage", CGUIControl::GUICONTROL_MULTI_IMAGE}, {"grouplist", CGUIControl::GUICONTROL_GROUPLIST}, {"scrollbar", CGUIControl::GUICONTROL_SCROLLBAR}, {"gamecontroller", CGUIControl::GUICONTROL_GAMECONTROLLER}, {"list", CGUIControl::GUICONTAINER_LIST}, {"wraplist", CGUIControl::GUICONTAINER_WRAPLIST}, {"fixedlist", CGUIControl::GUICONTAINER_FIXEDLIST}, {"epggrid", CGUIControl::GUICONTAINER_EPGGRID}, {"panel", CGUIControl::GUICONTAINER_PANEL}}; CGUIControl::GUICONTROLTYPES CGUIControlFactory::TranslateControlType(const std::string &type) { for (unsigned int i = 0; i < ARRAY_SIZE(controls); ++i) if (StringUtils::EqualsNoCase(type, controls[i].name)) return controls[i].type; return CGUIControl::GUICONTROL_UNKNOWN; } std::string CGUIControlFactory::TranslateControlType(CGUIControl::GUICONTROLTYPES type) { for (unsigned int i = 0; i < ARRAY_SIZE(controls); ++i) if (type == controls[i].type) return controls[i].name; return ""; } CGUIControlFactory::CGUIControlFactory(void) = default; CGUIControlFactory::~CGUIControlFactory(void) = default; bool CGUIControlFactory::GetIntRange(const TiXmlNode* pRootNode, const char* strTag, int& iMinValue, int& iMaxValue, int& iIntervalValue) { const TiXmlNode* pNode = pRootNode->FirstChild(strTag); if (!pNode || !pNode->FirstChild()) return false; iMinValue = atoi(pNode->FirstChild()->Value()); const char* maxValue = strchr(pNode->FirstChild()->Value(), ','); if (maxValue) { maxValue++; iMaxValue = atoi(maxValue); const char* intervalValue = strchr(maxValue, ','); if (intervalValue) { intervalValue++; iIntervalValue = atoi(intervalValue); } } return true; } bool CGUIControlFactory::GetFloatRange(const TiXmlNode* pRootNode, const char* strTag, float& fMinValue, float& fMaxValue, float& fIntervalValue) { const TiXmlNode* pNode = pRootNode->FirstChild(strTag); if (!pNode || !pNode->FirstChild()) return false; fMinValue = (float)atof(pNode->FirstChild()->Value()); const char* maxValue = strchr(pNode->FirstChild()->Value(), ','); if (maxValue) { maxValue++; fMaxValue = (float)atof(maxValue); const char* intervalValue = strchr(maxValue, ','); if (intervalValue) { intervalValue++; fIntervalValue = (float)atof(intervalValue); } } return true; } float CGUIControlFactory::ParsePosition(const char* pos, const float parentSize) { char* end = NULL; float value = pos ? (float)strtod(pos, &end) : 0; if (end) { if (*end == 'r') value = parentSize - value; else if (*end == '%') value = value * parentSize / 100.0f; } return value; } bool CGUIControlFactory::GetPosition(const TiXmlNode *node, const char* strTag, const float parentSize, float& value) { const TiXmlElement* pNode = node->FirstChildElement(strTag); if (!pNode || !pNode->FirstChild()) return false; value = ParsePosition(pNode->FirstChild()->Value(), parentSize); return true; } bool CGUIControlFactory::GetDimension(const TiXmlNode *pRootNode, const char* strTag, const float parentSize, float &value, float &min) { const TiXmlElement* pNode = pRootNode->FirstChildElement(strTag); if (!pNode || !pNode->FirstChild()) return false; if (0 == strnicmp("auto", pNode->FirstChild()->Value(), 4)) { // auto-width - at least min must be set value = ParsePosition(pNode->Attribute("max"), parentSize); min = ParsePosition(pNode->Attribute("min"), parentSize); if (!min) min = 1; return true; } value = ParsePosition(pNode->FirstChild()->Value(), parentSize); return true; } bool CGUIControlFactory::GetDimensions(const TiXmlNode *node, const char *leftTag, const char *rightTag, const char *centerLeftTag, const char *centerRightTag, const char *widthTag, const float parentSize, float &left, float &width, float &min_width) { float center = 0, right = 0; // read from the XML bool hasLeft = GetPosition(node, leftTag, parentSize, left); bool hasCenter = GetPosition(node, centerLeftTag, parentSize, center); if (!hasCenter && GetPosition(node, centerRightTag, parentSize, center)) { center = parentSize - center; hasCenter = true; } bool hasRight = false; if (GetPosition(node, rightTag, parentSize, right)) { right = parentSize - right; hasRight = true; } bool hasWidth = GetDimension(node, widthTag, parentSize, width, min_width); if (!hasLeft) { // figure out position if (hasCenter) // no left specified { if (hasWidth) { left = center - width/2; hasLeft = true; } else { if (hasRight) { width = (right - center) * 2; left = right - width; hasLeft = true; } } } else if (hasRight) // no left or centre { if (hasWidth) { left = right - width; hasLeft = true; } } } if (!hasWidth) { if (hasRight) { width = std::max(0.0f, right - left); // if left=0, this fills to size of parent hasLeft = true; } else if (hasCenter) { if (hasLeft) { width = std::max(0.0f, (center - left) * 2); hasWidth = true; } else if (center > 0 && center < parentSize) { // centre given, so fill to edge of parent width = std::max(0.0f, std::min(parentSize - center, center) * 2); left = center - width/2; hasLeft = hasWidth = true; } } else if (hasLeft) // neither right nor center specified { width = std::max(0.0f, parentSize - left); // if left=0, this fills to parent } } return hasLeft && hasWidth; } bool CGUIControlFactory::GetAspectRatio(const TiXmlNode* pRootNode, const char* strTag, CAspectRatio &aspect) { std::string ratio; const TiXmlElement *node = pRootNode->FirstChildElement(strTag); if (!node || !node->FirstChild()) return false; ratio = node->FirstChild()->Value(); if (StringUtils::EqualsNoCase(ratio, "keep")) aspect.ratio = CAspectRatio::AR_KEEP; else if (StringUtils::EqualsNoCase(ratio, "scale")) aspect.ratio = CAspectRatio::AR_SCALE; else if (StringUtils::EqualsNoCase(ratio, "center")) aspect.ratio = CAspectRatio::AR_CENTER; else if (StringUtils::EqualsNoCase(ratio, "stretch")) aspect.ratio = CAspectRatio::AR_STRETCH; const char *attribute = node->Attribute("align"); if (attribute) { std::string align(attribute); if (StringUtils::EqualsNoCase(align, "center")) aspect.align = ASPECT_ALIGN_CENTER | (aspect.align & ASPECT_ALIGNY_MASK); else if (StringUtils::EqualsNoCase(align, "right")) aspect.align = ASPECT_ALIGN_RIGHT | (aspect.align & ASPECT_ALIGNY_MASK); else if (StringUtils::EqualsNoCase(align, "left")) aspect.align = ASPECT_ALIGN_LEFT | (aspect.align & ASPECT_ALIGNY_MASK); } attribute = node->Attribute("aligny"); if (attribute) { std::string align(attribute); if (StringUtils::EqualsNoCase(align, "center")) aspect.align = ASPECT_ALIGNY_CENTER | (aspect.align & ASPECT_ALIGN_MASK); else if (StringUtils::EqualsNoCase(align, "bottom")) aspect.align = ASPECT_ALIGNY_BOTTOM | (aspect.align & ASPECT_ALIGN_MASK); else if (StringUtils::EqualsNoCase(align, "top")) aspect.align = ASPECT_ALIGNY_TOP | (aspect.align & ASPECT_ALIGN_MASK); } attribute = node->Attribute("scalediffuse"); if (attribute) { std::string scale(attribute); if (StringUtils::EqualsNoCase(scale, "true") || StringUtils::EqualsNoCase(scale, "yes")) aspect.scaleDiffuse = true; else aspect.scaleDiffuse = false; } return true; } bool CGUIControlFactory::GetInfoTexture(const TiXmlNode* pRootNode, const char* strTag, CTextureInfo &image, CGUIInfoLabel &info, int parentID) { GetTexture(pRootNode, strTag, image); image.filename = ""; GetInfoLabel(pRootNode, strTag, info, parentID); return true; } bool CGUIControlFactory::GetTexture(const TiXmlNode* pRootNode, const char* strTag, CTextureInfo &image) { const TiXmlElement* pNode = pRootNode->FirstChildElement(strTag); if (!pNode) return false; const char *border = pNode->Attribute("border"); if (border) GetRectFromString(border, image.border); image.orientation = 0; const char *flipX = pNode->Attribute("flipx"); if (flipX && strcmpi(flipX, "true") == 0) image.orientation = 1; const char *flipY = pNode->Attribute("flipy"); if (flipY && strcmpi(flipY, "true") == 0) image.orientation = 3 - image.orientation; // either 3 or 2 image.diffuse = XMLUtils::GetAttribute(pNode, "diffuse"); image.diffuseColor.Parse(XMLUtils::GetAttribute(pNode, "colordiffuse"), 0); const char *background = pNode->Attribute("background"); if (background && strnicmp(background, "true", 4) == 0) image.useLarge = true; image.filename = pNode->FirstChild() ? pNode->FirstChild()->Value() : ""; return true; } void CGUIControlFactory::GetRectFromString(const std::string &string, CRect &rect) { // format is rect="left[,top,right,bottom]" std::vector<std::string> strRect = StringUtils::Split(string, ','); if (strRect.size() == 1) { rect.x1 = (float)atof(strRect[0].c_str()); rect.y1 = rect.x1; rect.x2 = rect.x1; rect.y2 = rect.x1; } else if (strRect.size() == 4) { rect.x1 = (float)atof(strRect[0].c_str()); rect.y1 = (float)atof(strRect[1].c_str()); rect.x2 = (float)atof(strRect[2].c_str()); rect.y2 = (float)atof(strRect[3].c_str()); } } bool CGUIControlFactory::GetAlignment(const TiXmlNode* pRootNode, const char* strTag, uint32_t& alignment) { const TiXmlNode* pNode = pRootNode->FirstChild(strTag); if (!pNode || !pNode->FirstChild()) return false; std::string strAlign = pNode->FirstChild()->Value(); if (strAlign == "right" || strAlign == "bottom") alignment = XBFONT_RIGHT; else if (strAlign == "center") alignment = XBFONT_CENTER_X; else if (strAlign == "justify") alignment = XBFONT_JUSTIFIED; else alignment = XBFONT_LEFT; return true; } bool CGUIControlFactory::GetAlignmentY(const TiXmlNode* pRootNode, const char* strTag, uint32_t& alignment) { const TiXmlNode* pNode = pRootNode->FirstChild(strTag ); if (!pNode || !pNode->FirstChild()) { return false; } std::string strAlign = pNode->FirstChild()->Value(); alignment = 0; if (strAlign == "center") { alignment = XBFONT_CENTER_Y; } return true; } bool CGUIControlFactory::GetConditionalVisibility(const TiXmlNode* control, std::string &condition, std::string &allowHiddenFocus) { const TiXmlElement* node = control->FirstChildElement("visible"); if (!node) return false; std::vector<std::string> conditions; while (node) { const char *hidden = node->Attribute("allowhiddenfocus"); if (hidden) allowHiddenFocus = hidden; // add to our condition string if (!node->NoChildren()) conditions.push_back(node->FirstChild()->Value()); node = node->NextSiblingElement("visible"); } if (!conditions.size()) return false; if (conditions.size() == 1) condition = conditions[0]; else { // multiple conditions should be anded together condition = "["; for (unsigned int i = 0; i < conditions.size() - 1; i++) condition += conditions[i] + "] + ["; condition += conditions[conditions.size() - 1] + "]"; } return true; } bool CGUIControlFactory::GetConditionalVisibility(const TiXmlNode *control, std::string &condition) { std::string allowHiddenFocus; return GetConditionalVisibility(control, condition, allowHiddenFocus); } bool CGUIControlFactory::GetAnimations(TiXmlNode *control, const CRect &rect, int context, std::vector<CAnimation> &animations) { TiXmlElement* node = control->FirstChildElement("animation"); bool ret = false; if (node) animations.clear(); while (node) { ret = true; if (node->FirstChild()) { CAnimation anim; anim.Create(node, rect, context); animations.push_back(anim); if (strcmpi(node->FirstChild()->Value(), "VisibleChange") == 0) { // add the hidden one as well TiXmlElement hidden(*node); hidden.FirstChild()->SetValue("hidden"); const char *start = hidden.Attribute("start"); const char *end = hidden.Attribute("end"); if (start && end) { std::string temp = end; hidden.SetAttribute("end", start); hidden.SetAttribute("start", temp.c_str()); } else if (start) hidden.SetAttribute("end", start); else if (end) hidden.SetAttribute("start", end); CAnimation anim2; anim2.Create(&hidden, rect, context); animations.push_back(anim2); } } node = node->NextSiblingElement("animation"); } return ret; } bool CGUIControlFactory::GetActions(const TiXmlNode* pRootNode, const char* strTag, CGUIAction& action) { action.m_actions.clear(); const TiXmlElement* pElement = pRootNode->FirstChildElement(strTag); while (pElement) { if (pElement->FirstChild()) { CGUIAction::cond_action_pair pair; pair.condition = XMLUtils::GetAttribute(pElement, "condition"); pair.action = pElement->FirstChild()->Value(); action.m_actions.push_back(pair); } pElement = pElement->NextSiblingElement(strTag); } return action.m_actions.size() > 0; } bool CGUIControlFactory::GetHitRect(const TiXmlNode *control, CRect &rect, const CRect &parentRect) { const TiXmlElement* node = control->FirstChildElement("hitrect"); if (node) { rect.x1 = ParsePosition(node->Attribute("x"), parentRect.Width()); rect.y1 = ParsePosition(node->Attribute("y"), parentRect.Height()); if (node->Attribute("w")) rect.x2 = (float)atof(node->Attribute("w")) + rect.x1; else if (node->Attribute("right")) rect.x2 = std::min(ParsePosition(node->Attribute("right"), parentRect.Width()), rect.x1); if (node->Attribute("h")) rect.y2 = (float)atof(node->Attribute("h")) + rect.y1; else if (node->Attribute("bottom")) rect.y2 = std::min(ParsePosition(node->Attribute("bottom"), parentRect.Height()), rect.y1); return true; } return false; } bool CGUIControlFactory::GetScroller(const TiXmlNode *control, const std::string &scrollerTag, CScroller& scroller) { const TiXmlElement* node = control->FirstChildElement(scrollerTag); if (node) { unsigned int scrollTime; if (XMLUtils::GetUInt(control, scrollerTag.c_str(), scrollTime)) { scroller = CScroller(scrollTime, CAnimEffect::GetTweener(node)); return true; } } return false; } bool CGUIControlFactory::GetColor(const TiXmlNode *control, const char *strTag, color_t &value) { const TiXmlElement* node = control->FirstChildElement(strTag); if (node && node->FirstChild()) { value = g_colorManager.GetColor(node->FirstChild()->Value()); return true; } return false; } bool CGUIControlFactory::GetInfoColor(const TiXmlNode *control, const char *strTag, CGUIInfoColor &value,int parentID) { const TiXmlElement* node = control->FirstChildElement(strTag); if (node && node->FirstChild()) { value.Parse(node->FirstChild()->ValueStr(), parentID); return true; } return false; } void CGUIControlFactory::GetInfoLabel(const TiXmlNode *pControlNode, const std::string &labelTag, CGUIInfoLabel &infoLabel, int parentID) { std::vector<CGUIInfoLabel> labels; GetInfoLabels(pControlNode, labelTag, labels, parentID); if (labels.size()) infoLabel = labels[0]; } bool CGUIControlFactory::GetInfoLabelFromElement(const TiXmlElement *element, CGUIInfoLabel &infoLabel, int parentID) { if (!element || !element->FirstChild()) return false; std::string label = element->FirstChild()->Value(); if (label.empty()) return false; std::string fallback = XMLUtils::GetAttribute(element, "fallback"); if (StringUtils::IsNaturalNumber(label)) label = g_localizeStrings.Get(atoi(label.c_str())); if (StringUtils::IsNaturalNumber(fallback)) fallback = g_localizeStrings.Get(atoi(fallback.c_str())); else g_charsetConverter.unknownToUTF8(fallback); infoLabel.SetLabel(label, fallback, parentID); return true; } void CGUIControlFactory::GetInfoLabels(const TiXmlNode *pControlNode, const std::string &labelTag, std::vector<CGUIInfoLabel> &infoLabels, int parentID) { // we can have the following infolabels: // 1. <number>1234</number> -> direct number // 2. <label>number</label> -> lookup in localizestrings // 3. <label fallback="blah">$LOCALIZE(blah) $INFO(blah)</label> -> infolabel with given fallback // 4. <info>ListItem.Album</info> (uses <label> as fallback) int labelNumber = 0; if (XMLUtils::GetInt(pControlNode, "number", labelNumber)) { std::string label = StringUtils::Format("%i", labelNumber); infoLabels.push_back(CGUIInfoLabel(label)); return; // done } const TiXmlElement *labelNode = pControlNode->FirstChildElement(labelTag); while (labelNode) { CGUIInfoLabel label; if (GetInfoLabelFromElement(labelNode, label, parentID)) infoLabels.push_back(label); labelNode = labelNode->NextSiblingElement(labelTag); } const TiXmlNode *infoNode = pControlNode->FirstChild("info"); if (infoNode) { // <info> nodes override <label>'s (backward compatibility) std::string fallback; if (infoLabels.size()) fallback = infoLabels[0].GetLabel(0); infoLabels.clear(); while (infoNode) { if (infoNode->FirstChild()) { std::string info = StringUtils::Format("$INFO[%s]", infoNode->FirstChild()->Value()); infoLabels.push_back(CGUIInfoLabel(info, fallback, parentID)); } infoNode = infoNode->NextSibling("info"); } } } // Convert a string to a GUI label, by translating/parsing the label for localisable strings std::string CGUIControlFactory::FilterLabel(const std::string &label) { std::string viewLabel = label; if (StringUtils::IsNaturalNumber(viewLabel)) viewLabel = g_localizeStrings.Get(atoi(label.c_str())); else g_charsetConverter.unknownToUTF8(viewLabel); return viewLabel; } bool CGUIControlFactory::GetString(const TiXmlNode* pRootNode, const char *strTag, std::string &text) { if (!XMLUtils::GetString(pRootNode, strTag, text)) return false; if (StringUtils::IsNaturalNumber(text)) text = g_localizeStrings.Get(atoi(text.c_str())); return true; } std::string CGUIControlFactory::GetType(const TiXmlElement *pControlNode) { std::string type = XMLUtils::GetAttribute(pControlNode, "type"); if (type.empty()) // backward compatibility - not desired XMLUtils::GetString(pControlNode, "type", type); return type; } CGUIControl* CGUIControlFactory::Create(int parentID, const CRect &rect, TiXmlElement* pControlNode, bool insideContainer) { // get the control type std::string strType = GetType(pControlNode); CGUIControl::GUICONTROLTYPES type = TranslateControlType(strType); int id = 0; float posX = 0, posY = 0; float width = 0, height = 0; float minHeight = 0, minWidth = 0; CGUIControl::ActionMap actions; int pageControl = 0; CGUIInfoColor colorDiffuse(0xFFFFFFFF); int defaultControl = 0; bool defaultAlways = false; std::string strTmp; int singleInfo = 0; std::string strLabel; int iUrlSet=0; std::string toggleSelect; float spinWidth = 16; float spinHeight = 16; float spinPosX = 0, spinPosY = 0; std::string strSubType; int iType = SPIN_CONTROL_TYPE_TEXT; int iMin = 0; int iMax = 100; int iInterval = 1; float fMin = 0.0f; float fMax = 1.0f; float fInterval = 0.1f; bool bReverse = true; bool bReveal = false; CTextureInfo textureBackground, textureLeft, textureRight, textureMid, textureOverlay; CTextureInfo textureNib, textureNibFocus, textureBar, textureBarFocus; CTextureInfo textureUp, textureDown; CTextureInfo textureUpFocus, textureDownFocus; CTextureInfo textureUpDisabled, textureDownDisabled; CTextureInfo texture, borderTexture; CGUIInfoLabel textureFile; CTextureInfo textureFocus, textureNoFocus; CTextureInfo textureAltFocus, textureAltNoFocus; CTextureInfo textureRadioOnFocus, textureRadioOnNoFocus; CTextureInfo textureRadioOffFocus, textureRadioOffNoFocus; CTextureInfo textureRadioOnDisabled, textureRadioOffDisabled; CTextureInfo textureProgressIndicator; CGUIInfoLabel texturePath; CRect borderSize; float sliderWidth = 150, sliderHeight = 16; CPoint offset; bool bHasPath = false; CGUIAction clickActions; CGUIAction altclickActions; CGUIAction focusActions; CGUIAction unfocusActions; CGUIAction textChangeActions; std::string strTitle = ""; std::string strRSSTags = ""; float buttonGap = 5; int iMovementRange = 0; CAspectRatio aspect; std::string allowHiddenFocus; std::string enableCondition; std::vector<CAnimation> animations; CGUIControl::GUISCROLLVALUE scrollValue = CGUIControl::FOCUS; bool bPulse = true; unsigned int timePerImage = 0; unsigned int fadeTime = 0; unsigned int timeToPauseAtEnd = 0; bool randomized = false; bool loop = true; bool wrapMultiLine = false; ORIENTATION orientation = VERTICAL; bool showOnePage = true; bool scrollOut = true; int preloadItems = 0; CLabelInfo labelInfo; CGUIInfoColor hitColor(0xFFFFFFFF); CGUIInfoColor textColor3; CGUIInfoColor headlineColor; float radioWidth = 0; float radioHeight = 0; float radioPosX = 0; float radioPosY = 0; std::string altLabel; std::string strLabel2; std::string action; int focusPosition = 0; int scrollTime = 200; int timeBlocks = 36; int rulerUnit = 12; bool useControlCoords = false; bool renderFocusedLast = false; CRect hitRect; CPoint camera; float stereo = 0.f; bool hasCamera = false; bool resetOnLabelChange = true; bool bPassword = false; std::string visibleCondition; ///////////////////////////////////////////////////////////////////////////// // Read control properties from XML // if (!pControlNode->Attribute("id", (int*) &id)) XMLUtils::GetInt(pControlNode, "id", (int&) id); // backward compatibility - not desired //! @todo Perhaps we should check here whether id is valid for focusable controls //! such as buttons etc. For labels/fadelabels/images it does not matter GetAlignment(pControlNode, "align", labelInfo.align); if (!GetDimensions(pControlNode, "left", "right", "centerleft", "centerright", "width", rect.Width(), posX, width, minWidth)) { // didn't get 2 dimensions, so test for old <posx> as well if (GetPosition(pControlNode, "posx", rect.Width(), posX)) { // <posx> available, so use it along with any hacks we used to support if (!insideContainer && type == CGUIControl::GUICONTROL_LABEL && (labelInfo.align & XBFONT_RIGHT)) posX -= width; } if (!width) // no width specified, so compute from parent width = std::max(rect.Width() - posX, 0.0f); } if (!GetDimensions(pControlNode, "top", "bottom", "centertop", "centerbottom", "height", rect.Height(), posY, height, minHeight)) { GetPosition(pControlNode, "posy", rect.Height(), posY); if (!height) height = std::max(rect.Height() - posY, 0.0f); } XMLUtils::GetFloat(pControlNode, "offsetx", offset.x); XMLUtils::GetFloat(pControlNode, "offsety", offset.y); hitRect.SetRect(posX, posY, posX + width, posY + height); GetHitRect(pControlNode, hitRect, rect); GetInfoColor(pControlNode, "hitrectcolor", hitColor, parentID); GetActions(pControlNode, "onup", actions[ACTION_MOVE_UP]); GetActions(pControlNode, "ondown", actions[ACTION_MOVE_DOWN]); GetActions(pControlNode, "onleft", actions[ACTION_MOVE_LEFT]); GetActions(pControlNode, "onright", actions[ACTION_MOVE_RIGHT]); GetActions(pControlNode, "onnext", actions[ACTION_NEXT_CONTROL]); GetActions(pControlNode, "onprev", actions[ACTION_PREV_CONTROL]); GetActions(pControlNode, "onback", actions[ACTION_NAV_BACK]); GetActions(pControlNode, "oninfo", actions[ACTION_SHOW_INFO]); if (XMLUtils::GetInt(pControlNode, "defaultcontrol", defaultControl)) { const char *always = pControlNode->FirstChildElement("defaultcontrol")->Attribute("always"); if (always && strnicmp(always, "true", 4) == 0) defaultAlways = true; } XMLUtils::GetInt(pControlNode, "pagecontrol", pageControl); GetInfoColor(pControlNode, "colordiffuse", colorDiffuse, parentID); GetConditionalVisibility(pControlNode, visibleCondition, allowHiddenFocus); XMLUtils::GetString(pControlNode, "enable", enableCondition); CRect animRect(posX, posY, posX + width, posY + height); GetAnimations(pControlNode, animRect, parentID, animations); GetInfoColor(pControlNode, "textcolor", labelInfo.textColor, parentID); GetInfoColor(pControlNode, "focusedcolor", labelInfo.focusedColor, parentID); GetInfoColor(pControlNode, "disabledcolor", labelInfo.disabledColor, parentID); GetInfoColor(pControlNode, "shadowcolor", labelInfo.shadowColor, parentID); GetInfoColor(pControlNode, "selectedcolor", labelInfo.selectedColor, parentID); GetInfoColor(pControlNode, "invalidcolor", labelInfo.invalidColor, parentID); XMLUtils::GetFloat(pControlNode, "textoffsetx", labelInfo.offsetX); XMLUtils::GetFloat(pControlNode, "textoffsety", labelInfo.offsetY); int angle = 0; // use the negative angle to compensate for our vertically flipped cartesian plane if (XMLUtils::GetInt(pControlNode, "angle", angle)) labelInfo.angle = (float)-angle; std::string strFont; if (XMLUtils::GetString(pControlNode, "font", strFont)) labelInfo.font = g_fontManager.GetFont(strFont); uint32_t alignY = 0; if (GetAlignmentY(pControlNode, "aligny", alignY)) labelInfo.align |= alignY; if (XMLUtils::GetFloat(pControlNode, "textwidth", labelInfo.width)) labelInfo.align |= XBFONT_TRUNCATED; GetActions(pControlNode, "onclick", clickActions); GetActions(pControlNode, "ontextchange", textChangeActions); GetActions(pControlNode, "onfocus", focusActions); GetActions(pControlNode, "onunfocus", unfocusActions); focusActions.m_sendThreadMessages = unfocusActions.m_sendThreadMessages = true; GetActions(pControlNode, "altclick", altclickActions); std::string infoString; if (XMLUtils::GetString(pControlNode, "info", infoString)) singleInfo = g_infoManager.TranslateString(infoString); GetTexture(pControlNode, "texturefocus", textureFocus); GetTexture(pControlNode, "texturenofocus", textureNoFocus); GetTexture(pControlNode, "alttexturefocus", textureAltFocus); GetTexture(pControlNode, "alttexturenofocus", textureAltNoFocus); XMLUtils::GetString(pControlNode, "usealttexture", toggleSelect); XMLUtils::GetString(pControlNode, "selected", toggleSelect); XMLUtils::GetBoolean(pControlNode, "haspath", bHasPath); GetTexture(pControlNode, "textureup", textureUp); GetTexture(pControlNode, "texturedown", textureDown); GetTexture(pControlNode, "textureupfocus", textureUpFocus); GetTexture(pControlNode, "texturedownfocus", textureDownFocus); GetTexture(pControlNode, "textureupdisabled", textureUpDisabled); GetTexture(pControlNode, "texturedowndisabled", textureDownDisabled); XMLUtils::GetFloat(pControlNode, "spinwidth", spinWidth); XMLUtils::GetFloat(pControlNode, "spinheight", spinHeight); XMLUtils::GetFloat(pControlNode, "spinposx", spinPosX); XMLUtils::GetFloat(pControlNode, "spinposy", spinPosY); XMLUtils::GetFloat(pControlNode, "sliderwidth", sliderWidth); XMLUtils::GetFloat(pControlNode, "sliderheight", sliderHeight); if (!GetTexture(pControlNode, "textureradioonfocus", textureRadioOnFocus) || !GetTexture(pControlNode, "textureradioonnofocus", textureRadioOnNoFocus)) { GetTexture(pControlNode, "textureradiofocus", textureRadioOnFocus); // backward compatibility GetTexture(pControlNode, "textureradioon", textureRadioOnFocus); textureRadioOnNoFocus = textureRadioOnFocus; } if (!GetTexture(pControlNode, "textureradioofffocus", textureRadioOffFocus) || !GetTexture(pControlNode, "textureradiooffnofocus", textureRadioOffNoFocus)) { GetTexture(pControlNode, "textureradionofocus", textureRadioOffFocus); // backward compatibility GetTexture(pControlNode, "textureradiooff", textureRadioOffFocus); textureRadioOffNoFocus = textureRadioOffFocus; } GetTexture(pControlNode, "textureradioondisabled", textureRadioOnDisabled); GetTexture(pControlNode, "textureradiooffdisabled", textureRadioOffDisabled); GetTexture(pControlNode, "texturesliderbackground", textureBackground); GetTexture(pControlNode, "texturesliderbar", textureBar); GetTexture(pControlNode, "texturesliderbarfocus", textureBarFocus); GetTexture(pControlNode, "textureslidernib", textureNib); GetTexture(pControlNode, "textureslidernibfocus", textureNibFocus); XMLUtils::GetString(pControlNode, "title", strTitle); XMLUtils::GetString(pControlNode, "tagset", strRSSTags); GetInfoColor(pControlNode, "headlinecolor", headlineColor, parentID); GetInfoColor(pControlNode, "titlecolor", textColor3, parentID); if (XMLUtils::GetString(pControlNode, "subtype", strSubType)) { StringUtils::ToLower(strSubType); if ( strSubType == "int") iType = SPIN_CONTROL_TYPE_INT; else if ( strSubType == "page") iType = SPIN_CONTROL_TYPE_PAGE; else if ( strSubType == "float") iType = SPIN_CONTROL_TYPE_FLOAT; else iType = SPIN_CONTROL_TYPE_TEXT; } if (!GetIntRange(pControlNode, "range", iMin, iMax, iInterval)) { GetFloatRange(pControlNode, "range", fMin, fMax, fInterval); } XMLUtils::GetBoolean(pControlNode, "reverse", bReverse); XMLUtils::GetBoolean(pControlNode, "reveal", bReveal); GetTexture(pControlNode, "texturebg", textureBackground); GetTexture(pControlNode, "lefttexture", textureLeft); GetTexture(pControlNode, "midtexture", textureMid); GetTexture(pControlNode, "righttexture", textureRight); GetTexture(pControlNode, "overlaytexture", textureOverlay); // the <texture> tag can be overridden by the <info> tag GetInfoTexture(pControlNode, "texture", texture, textureFile, parentID); GetTexture(pControlNode, "bordertexture", borderTexture); // fade label can have a whole bunch, but most just have one std::vector<CGUIInfoLabel> infoLabels; GetInfoLabels(pControlNode, "label", infoLabels, parentID); GetString(pControlNode, "label", strLabel); GetString(pControlNode, "altlabel", altLabel); GetString(pControlNode, "label2", strLabel2); XMLUtils::GetBoolean(pControlNode, "wrapmultiline", wrapMultiLine); XMLUtils::GetInt(pControlNode,"urlset",iUrlSet); if ( XMLUtils::GetString(pControlNode, "orientation", strTmp) ) { StringUtils::ToLower(strTmp); if (strTmp == "horizontal") orientation = HORIZONTAL; } XMLUtils::GetFloat(pControlNode, "itemgap", buttonGap); XMLUtils::GetInt(pControlNode, "movement", iMovementRange); GetAspectRatio(pControlNode, "aspectratio", aspect); bool alwaysScroll; if (XMLUtils::GetBoolean(pControlNode, "scroll", alwaysScroll)) scrollValue = alwaysScroll ? CGUIControl::ALWAYS : CGUIControl::NEVER; XMLUtils::GetBoolean(pControlNode,"pulseonselect", bPulse); XMLUtils::GetInt(pControlNode, "timeblocks", timeBlocks); XMLUtils::GetInt(pControlNode, "rulerunit", rulerUnit); GetTexture(pControlNode, "progresstexture", textureProgressIndicator); GetInfoTexture(pControlNode, "imagepath", texture, texturePath, parentID); XMLUtils::GetUInt(pControlNode,"timeperimage", timePerImage); XMLUtils::GetUInt(pControlNode,"fadetime", fadeTime); XMLUtils::GetUInt(pControlNode,"pauseatend", timeToPauseAtEnd); XMLUtils::GetBoolean(pControlNode, "randomize", randomized); XMLUtils::GetBoolean(pControlNode, "loop", loop); XMLUtils::GetBoolean(pControlNode, "scrollout", scrollOut); XMLUtils::GetFloat(pControlNode, "radiowidth", radioWidth); XMLUtils::GetFloat(pControlNode, "radioheight", radioHeight); XMLUtils::GetFloat(pControlNode, "radioposx", radioPosX); XMLUtils::GetFloat(pControlNode, "radioposy", radioPosY); std::string borderStr; if (XMLUtils::GetString(pControlNode, "bordersize", borderStr)) GetRectFromString(borderStr, borderSize); XMLUtils::GetBoolean(pControlNode, "showonepage", showOnePage); XMLUtils::GetInt(pControlNode, "focusposition", focusPosition); XMLUtils::GetInt(pControlNode, "scrolltime", scrollTime); XMLUtils::GetInt(pControlNode, "preloaditems", preloadItems, 0, 2); XMLUtils::GetBoolean(pControlNode, "usecontrolcoords", useControlCoords); XMLUtils::GetBoolean(pControlNode, "renderfocusedlast", renderFocusedLast); XMLUtils::GetBoolean(pControlNode, "resetonlabelchange", resetOnLabelChange); XMLUtils::GetBoolean(pControlNode, "password", bPassword); // view type VIEW_TYPE viewType = VIEW_TYPE_NONE; std::string viewLabel; if (type == CGUIControl::GUICONTAINER_PANEL) { viewType = VIEW_TYPE_ICON; viewLabel = g_localizeStrings.Get(536); } else if (type == CGUIControl::GUICONTAINER_LIST) { viewType = VIEW_TYPE_LIST; viewLabel = g_localizeStrings.Get(535); } else { viewType = VIEW_TYPE_WRAP; viewLabel = g_localizeStrings.Get(541); } TiXmlElement *itemElement = pControlNode->FirstChildElement("viewtype"); if (itemElement && itemElement->FirstChild()) { std::string type = itemElement->FirstChild()->Value(); if (type == "list") viewType = VIEW_TYPE_LIST; else if (type == "icon") viewType = VIEW_TYPE_ICON; else if (type == "biglist") viewType = VIEW_TYPE_BIG_LIST; else if (type == "bigicon") viewType = VIEW_TYPE_BIG_ICON; else if (type == "wide") viewType = VIEW_TYPE_WIDE; else if (type == "bigwide") viewType = VIEW_TYPE_BIG_WIDE; else if (type == "wrap") viewType = VIEW_TYPE_WRAP; else if (type == "bigwrap") viewType = VIEW_TYPE_BIG_WRAP; else if (type == "info") viewType = VIEW_TYPE_INFO; else if (type == "biginfo") viewType = VIEW_TYPE_BIG_INFO; const char *label = itemElement->Attribute("label"); if (label) viewLabel = CGUIInfoLabel::GetLabel(FilterLabel(label)); } TiXmlElement *cam = pControlNode->FirstChildElement("camera"); if (cam) { hasCamera = true; camera.x = ParsePosition(cam->Attribute("x"), width); camera.y = ParsePosition(cam->Attribute("y"), height); } if (XMLUtils::GetFloat(pControlNode, "depth", stereo)) stereo = std::max(-1.f, std::min(1.f, stereo)); XMLUtils::GetInt(pControlNode, "scrollspeed", labelInfo.scrollSpeed); GetString(pControlNode, "scrollsuffix", labelInfo.scrollSuffix); XMLUtils::GetString(pControlNode, "action", action); ///////////////////////////////////////////////////////////////////////////// // Instantiate a new control using the properties gathered above // CGUIControl *control = NULL; switch (type) { case CGUIControl::GUICONTROL_GROUP: { if (insideContainer) { control = new CGUIListGroup(parentID, id, posX, posY, width, height); } else { control = new CGUIControlGroup( parentID, id, posX, posY, width, height); static_cast<CGUIControlGroup*>(control)->SetDefaultControl(defaultControl, defaultAlways); static_cast<CGUIControlGroup*>(control)->SetRenderFocusedLast(renderFocusedLast); } } break; case CGUIControl::GUICONTROL_GROUPLIST: { CScroller scroller; GetScroller(pControlNode, "scrolltime", scroller); control = new CGUIControlGroupList( parentID, id, posX, posY, width, height, buttonGap, pageControl, orientation, useControlCoords, labelInfo.align, scroller); static_cast<CGUIControlGroup*>(control)->SetDefaultControl(defaultControl, defaultAlways); static_cast<CGUIControlGroup*>(control)->SetRenderFocusedLast(renderFocusedLast); static_cast<CGUIControlGroupList*>(control)->SetMinSize(minWidth, minHeight); } break; case CGUIControl::GUICONTROL_LABEL: { const CGUIInfoLabel &content = (infoLabels.size()) ? infoLabels[0] : CGUIInfoLabel(""); if (insideContainer) { // inside lists we use CGUIListLabel control = new CGUIListLabel(parentID, id, posX, posY, width, height, labelInfo, content, scrollValue); } else { control = new CGUILabelControl( parentID, id, posX, posY, width, height, labelInfo, wrapMultiLine, bHasPath); static_cast<CGUILabelControl*>(control)->SetInfo(content); static_cast<CGUILabelControl*>(control)->SetWidthControl(minWidth, (scrollValue == CGUIControl::ALWAYS)); } } break; case CGUIControl::GUICONTROL_EDIT: { control = new CGUIEditControl( parentID, id, posX, posY, width, height, textureFocus, textureNoFocus, labelInfo, strLabel); CGUIInfoLabel hint_text; GetInfoLabel(pControlNode, "hinttext", hint_text, parentID); static_cast<CGUIEditControl*>(control)->SetHint(hint_text); if (bPassword) static_cast<CGUIEditControl*>(control)->SetInputType(CGUIEditControl::INPUT_TYPE_PASSWORD, 0); static_cast<CGUIEditControl*>(control)->SetTextChangeActions(textChangeActions); } break; case CGUIControl::GUICONTROL_VIDEO: { control = new CGUIVideoControl( parentID, id, posX, posY, width, height); } break; case CGUIControl::GUICONTROL_GAME: { using namespace RETRO; control = new CGUIGameControl(parentID, id, posX, posY, width, height); CGUIInfoLabel viewMode; GetInfoLabel(pControlNode, "viewmode", viewMode, parentID); static_cast<CGUIGameControl*>(control)->SetViewMode(viewMode); CGUIInfoLabel videoFilter; GetInfoLabel(pControlNode, "videofilter", videoFilter, parentID); static_cast<CGUIGameControl*>(control)->SetVideoFilter(videoFilter); } break; case CGUIControl::GUICONTROL_FADELABEL: { control = new CGUIFadeLabelControl( parentID, id, posX, posY, width, height, labelInfo, scrollOut, timeToPauseAtEnd, resetOnLabelChange, randomized); static_cast<CGUIFadeLabelControl*>(control)->SetInfo(infoLabels); // check whether or not a scroll tag was specified. if (scrollValue != CGUIControl::FOCUS) static_cast<CGUIFadeLabelControl*>(control)->SetScrolling(scrollValue == CGUIControl::ALWAYS); } break; case CGUIControl::GUICONTROL_RSS: { control = new CGUIRSSControl( parentID, id, posX, posY, width, height, labelInfo, textColor3, headlineColor, strRSSTags); RssUrls::const_iterator iter = CRssManager::GetInstance().GetUrls().find(iUrlSet); if (iter != CRssManager::GetInstance().GetUrls().end()) static_cast<CGUIRSSControl*>(control)->SetUrlSet(iUrlSet); } break; case CGUIControl::GUICONTROL_BUTTON: { control = new CGUIButtonControl( parentID, id, posX, posY, width, height, textureFocus, textureNoFocus, labelInfo, wrapMultiLine); CGUIButtonControl* bcontrol = static_cast<CGUIButtonControl*>(control); bcontrol->SetLabel(strLabel); bcontrol->SetLabel2(strLabel2); bcontrol->SetMinWidth(minWidth); bcontrol->SetClickActions(clickActions); bcontrol->SetFocusActions(focusActions); bcontrol->SetUnFocusActions(unfocusActions); } break; case CGUIControl::GUICONTROL_TOGGLEBUTTON: { control = new CGUIToggleButtonControl( parentID, id, posX, posY, width, height, textureFocus, textureNoFocus, textureAltFocus, textureAltNoFocus, labelInfo, wrapMultiLine); CGUIToggleButtonControl* tcontrol = static_cast<CGUIToggleButtonControl*>(control); tcontrol->SetLabel(strLabel); tcontrol->SetAltLabel(altLabel); tcontrol->SetMinWidth(minWidth); tcontrol->SetClickActions(clickActions); tcontrol->SetAltClickActions(altclickActions); tcontrol->SetFocusActions(focusActions); tcontrol->SetUnFocusActions(unfocusActions); tcontrol->SetToggleSelect(toggleSelect); } break; case CGUIControl::GUICONTROL_RADIO: { control = new CGUIRadioButtonControl( parentID, id, posX, posY, width, height, textureFocus, textureNoFocus, labelInfo, textureRadioOnFocus, textureRadioOnNoFocus, textureRadioOffFocus, textureRadioOffNoFocus, textureRadioOnDisabled, textureRadioOffDisabled); CGUIRadioButtonControl* rcontrol = static_cast<CGUIRadioButtonControl*>(control); rcontrol->SetLabel(strLabel); rcontrol->SetLabel2(strLabel2); rcontrol->SetRadioDimensions(radioPosX, radioPosY, radioWidth, radioHeight); rcontrol->SetToggleSelect(toggleSelect); rcontrol->SetClickActions(clickActions); rcontrol->SetFocusActions(focusActions); rcontrol->SetUnFocusActions(unfocusActions); } break; case CGUIControl::GUICONTROL_SPIN: { control = new CGUISpinControl( parentID, id, posX, posY, width, height, textureUp, textureDown, textureUpFocus, textureDownFocus, textureUpDisabled, textureDownDisabled, labelInfo, iType); CGUISpinControl* scontrol = static_cast<CGUISpinControl*>(control); scontrol->SetReverse(bReverse); if (iType == SPIN_CONTROL_TYPE_INT) { scontrol->SetRange(iMin, iMax); } else if (iType == SPIN_CONTROL_TYPE_PAGE) { scontrol->SetRange(iMin, iMax); scontrol->SetShowRange(true); scontrol->SetReverse(false); scontrol->SetShowOnePage(showOnePage); } else if (iType == SPIN_CONTROL_TYPE_FLOAT) { scontrol->SetFloatRange(fMin, fMax); scontrol->SetFloatInterval(fInterval); } } break; case CGUIControl::GUICONTROL_SLIDER: { control = new CGUISliderControl( parentID, id, posX, posY, width, height, textureBar, textureNib, textureNibFocus, SLIDER_CONTROL_TYPE_PERCENTAGE, orientation); static_cast<CGUISliderControl*>(control)->SetInfo(singleInfo); static_cast<CGUISliderControl*>(control)->SetAction(action); } break; case CGUIControl::GUICONTROL_SETTINGS_SLIDER: { control = new CGUISettingsSliderControl( parentID, id, posX, posY, width, height, sliderWidth, sliderHeight, textureFocus, textureNoFocus, textureBar, textureNib, textureNibFocus, labelInfo, SLIDER_CONTROL_TYPE_PERCENTAGE); static_cast<CGUISettingsSliderControl*>(control)->SetText(strLabel); static_cast<CGUISettingsSliderControl*>(control)->SetInfo(singleInfo); } break; case CGUIControl::GUICONTROL_SCROLLBAR: { control = new GUIScrollBarControl( parentID, id, posX, posY, width, height, textureBackground, textureBar, textureBarFocus, textureNib, textureNibFocus, orientation, showOnePage); } break; case CGUIControl::GUICONTROL_PROGRESS: { control = new CGUIProgressControl( parentID, id, posX, posY, width, height, textureBackground, textureLeft, textureMid, textureRight, textureOverlay, bReveal); static_cast<CGUIProgressControl*>(control)->SetInfo(singleInfo); } break; case CGUIControl::GUICONTROL_IMAGE: { // use a bordered texture if we have <bordersize> or <bordertexture> specified. if (borderTexture.filename.empty() && borderStr.empty()) control = new CGUIImage( parentID, id, posX, posY, width, height, texture); else control = new CGUIBorderedImage( parentID, id, posX, posY, width, height, texture, borderTexture, borderSize); CGUIImage* icontrol = static_cast<CGUIImage*>(control); icontrol->SetInfo(textureFile); icontrol->SetAspectRatio(aspect); icontrol->SetCrossFade(fadeTime); } break; case CGUIControl::GUICONTROL_MULTI_IMAGE: { control = new CGUIMultiImage( parentID, id, posX, posY, width, height, texture, timePerImage, fadeTime, randomized, loop, timeToPauseAtEnd); static_cast<CGUIMultiImage*>(control)->SetInfo(texturePath); static_cast<CGUIMultiImage*>(control)->SetAspectRatio(aspect); } break; case CGUIControl::GUICONTAINER_LIST: { CScroller scroller; GetScroller(pControlNode, "scrolltime", scroller); control = new CGUIListContainer(parentID, id, posX, posY, width, height, orientation, scroller, preloadItems); CGUIListContainer* lcontrol = static_cast<CGUIListContainer*>(control); lcontrol->LoadLayout(pControlNode); lcontrol->LoadListProvider(pControlNode, defaultControl, defaultAlways); lcontrol->SetType(viewType, viewLabel); lcontrol->SetPageControl(pageControl); lcontrol->SetRenderOffset(offset); lcontrol->SetAutoScrolling(pControlNode); lcontrol->SetClickActions(clickActions); lcontrol->SetFocusActions(focusActions); lcontrol->SetUnFocusActions(unfocusActions); } break; case CGUIControl::GUICONTAINER_WRAPLIST: { CScroller scroller; GetScroller(pControlNode, "scrolltime", scroller); control = new CGUIWrappingListContainer(parentID, id, posX, posY, width, height, orientation, scroller, preloadItems, focusPosition); CGUIWrappingListContainer* wcontrol = static_cast<CGUIWrappingListContainer*>(control); wcontrol->LoadLayout(pControlNode); wcontrol->LoadListProvider(pControlNode, defaultControl, defaultAlways); wcontrol->SetType(viewType, viewLabel); wcontrol->SetPageControl(pageControl); wcontrol->SetRenderOffset(offset); wcontrol->SetAutoScrolling(pControlNode); wcontrol->SetClickActions(clickActions); wcontrol->SetFocusActions(focusActions); wcontrol->SetUnFocusActions(unfocusActions); } break; case CGUIControl::GUICONTAINER_EPGGRID: { CGUIEPGGridContainer *epgGridContainer = new CGUIEPGGridContainer(parentID, id, posX, posY, width, height, orientation, scrollTime, preloadItems, timeBlocks, rulerUnit, textureProgressIndicator); control = epgGridContainer; epgGridContainer->LoadLayout(pControlNode); epgGridContainer->SetRenderOffset(offset); epgGridContainer->SetType(viewType, viewLabel); epgGridContainer->SetPageControl(pageControl); } break; case CGUIControl::GUICONTAINER_FIXEDLIST: { CScroller scroller; GetScroller(pControlNode, "scrolltime", scroller); control = new CGUIFixedListContainer(parentID, id, posX, posY, width, height, orientation, scroller, preloadItems, focusPosition, iMovementRange); CGUIFixedListContainer* fcontrol = static_cast<CGUIFixedListContainer*>(control); fcontrol->LoadLayout(pControlNode); fcontrol->LoadListProvider(pControlNode, defaultControl, defaultAlways); fcontrol->SetType(viewType, viewLabel); fcontrol->SetPageControl(pageControl); fcontrol->SetRenderOffset(offset); fcontrol->SetAutoScrolling(pControlNode); fcontrol->SetClickActions(clickActions); fcontrol->SetFocusActions(focusActions); fcontrol->SetUnFocusActions(unfocusActions); } break; case CGUIControl::GUICONTAINER_PANEL: { CScroller scroller; GetScroller(pControlNode, "scrolltime", scroller); control = new CGUIPanelContainer(parentID, id, posX, posY, width, height, orientation, scroller, preloadItems); CGUIPanelContainer* pcontrol = static_cast<CGUIPanelContainer*>(control); pcontrol->LoadLayout(pControlNode); pcontrol->LoadListProvider(pControlNode, defaultControl, defaultAlways); pcontrol->SetType(viewType, viewLabel); pcontrol->SetPageControl(pageControl); pcontrol->SetRenderOffset(offset); pcontrol->SetAutoScrolling(pControlNode); pcontrol->SetClickActions(clickActions); pcontrol->SetFocusActions(focusActions); pcontrol->SetUnFocusActions(unfocusActions); } break; case CGUIControl::GUICONTROL_TEXTBOX: { control = new CGUITextBox( parentID, id, posX, posY, width, height, labelInfo, scrollTime); CGUITextBox* tcontrol = static_cast<CGUITextBox*>(control); tcontrol->SetPageControl(pageControl); if (infoLabels.size()) tcontrol->SetInfo(infoLabels[0]); tcontrol->SetAutoScrolling(pControlNode); tcontrol->SetMinHeight(minHeight); } break; case CGUIControl::GUICONTROL_MOVER: { control = new CGUIMoverControl( parentID, id, posX, posY, width, height, textureFocus, textureNoFocus); } break; case CGUIControl::GUICONTROL_RESIZE: { control = new CGUIResizeControl( parentID, id, posX, posY, width, height, textureFocus, textureNoFocus); } break; case CGUIControl::GUICONTROL_SPINEX: { control = new CGUISpinControlEx( parentID, id, posX, posY, width, height, spinWidth, spinHeight, labelInfo, textureFocus, textureNoFocus, textureUp, textureDown, textureUpFocus, textureDownFocus, textureUpDisabled, textureDownDisabled, labelInfo, iType); CGUISpinControlEx* scontrol = static_cast<CGUISpinControlEx*>(control); scontrol->SetSpinPosition(spinPosX); scontrol->SetText(strLabel); scontrol->SetReverse(bReverse); } break; case CGUIControl::GUICONTROL_VISUALISATION: control = new CGUIVisualisationControl(parentID, id, posX, posY, width, height); break; case CGUIControl::GUICONTROL_RENDERADDON: control = new CGUIRenderingControl(parentID, id, posX, posY, width, height); break; case CGUIControl::GUICONTROL_GAMECONTROLLER: control = new GAME::CGUIGameController(parentID, id, posX, posY, width, height); break; default: break; } // things that apply to all controls if (control) { control->SetHitRect(hitRect, hitColor); control->SetVisibleCondition(visibleCondition, allowHiddenFocus); control->SetEnableCondition(enableCondition); control->SetAnimations(animations); control->SetColorDiffuse(colorDiffuse); control->SetActions(actions); control->SetPulseOnSelect(bPulse); if (hasCamera) control->SetCamera(camera); control->SetStereoFactor(stereo); } return control; }
[ "rodrigosoaresilva@gmail.com" ]
rodrigosoaresilva@gmail.com
407e4da67b2149eb2c3e13e43e88ee5f486ae8dc
2805e95929a3184f6c832f5733bf6c16ee9c1a0b
/maratona/2018/L.cpp
63dbe218988d8f5f572e83bb307603ff670091f2
[]
no_license
lorenzomoulin/Programacao-Competitiva
4f3dd9b3e3c7cac6198ccdd7d9e6eedb72e9db36
10042a1544989cdde9132885b052a640067d9151
refs/heads/master
2020-04-28T22:21:21.145943
2020-01-12T11:55:35
2020-01-12T11:55:35
175,614,256
0
0
null
null
null
null
UTF-8
C++
false
false
1,576
cpp
#include <bits/stdc++.h> using namespace std; #define MAXN 10000009 typedef long long ll; ll sievesize; bitset<MAXN> bs; vector<ll> primes; void sieve(ll n){ sievesize = n + 1; bs.set(); bs[0] = bs[1] = 0; for (ll i = 2; i <= sievesize; i++){ if(bs[i]){ for(ll j = i * i; j <= (ll)sievesize; j += i) bs[j] = 0; primes.push_back(i); } } } int main(){ int t; ios_base::sync_with_stdio(0); cin >> t; sieve(100000); while(t--){ ll n, k; cin >> n >> k; if (n <= k) cout << n - 1 << endl; else{ set<ll> res; for (ll i = 2; i <= n; i++) res.insert(i); ll menor = 2; int idx = 0; for (int i = 0; i < primes.size(); i++){ if (primes[i] > k){ menor = primes[i]; idx = i; break; } } while (menor <= n){ for (int i = menor; i <= n; i += menor) res.erase(i); for (int i = idx; i < primes.size(); i++){ if (primes[i] > menor){ menor = primes[i]; idx = i; break; } } cout << "menor : " << menor << endl; } cout << res.size() << endl; } } return 0; }
[ "lorenzomoulin@gmail.com" ]
lorenzomoulin@gmail.com
9a2a660a290bb4f9aab0e0fce79842a841d1fc32
590c5838440cac897007f8dfb1d5f68bc35928c3
/Exercicios/Lista 11 - Exercícios de arquivos texto/10/exercicio10.cpp
351028bfd7e9944f4e22f3d06d1d983ebd21b563
[]
no_license
luizsilvadev/algoritimos
3f8360814246805887cd5c28c4520d2acb884483
9ea895482a719cc4ca3278b5da0b3d5a0c15cef6
refs/heads/master
2022-11-21T10:10:46.323109
2020-07-26T01:10:49
2020-07-26T01:10:49
282,448,527
0
0
null
null
null
null
UTF-8
C++
false
false
1,007
cpp
#include <iostream> #include <fstream> using namespace std; int main(){ ifstream arquivo("entrada.txt"); int tam; int peoesQuePodem=0; bool achou=false; arquivo>>tam; int matriz[tam][tam]; for (int i=0;i<tam;i++){ for (int j=0;j<tam;j++){ arquivo>>matriz[i][j]; } } int i=0,j=0; for (int k=0;k<tam;k++){ for (int l=0;l<tam;l++){ if (matriz[k][l]==1){ i=k; j=l; achou=true; k=tam+2; l=tam+2; } } } if (not achou){ return 0; } if (matriz[i-1][j-2]==2){ peoesQuePodem++; } if (matriz[i-1][j+2]==2){ peoesQuePodem++; } if (matriz[i-2][j-1]==2){ peoesQuePodem++; } if (matriz[i-2][j+1]==2){ peoesQuePodem++; } if (matriz[i+1][j-2]==2){ peoesQuePodem++; } if (matriz[i+1][j+2]==2){ peoesQuePodem++; } if (matriz[i+2][j-1]==2){ peoesQuePodem++; } if (matriz[i+2][j+1]==2){ peoesQuePodem++; } cout<<peoesQuePodem; return 0; }
[ "luizprofissional@hotmail.com" ]
luizprofissional@hotmail.com
3d4735e19fcb226d4866e41bf95e7a9672a8bd23
fb7efe44f4d9f30d623f880d0eb620f3a81f0fbd
/third_party/WebKit/Source/core/layout/svg/line/SVGInlineFlowBox.cpp
523934074b16e442f8fab69afde6ddbf6bb2e8c5
[ "LGPL-2.0-or-later", "GPL-1.0-or-later", "MIT", "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.1-only", "GPL-2.0-only", "LGPL-2.0-only", "BSD-2-Clause", "LicenseRef-scancode-other-copyleft", "BSD-3-Clause" ]
permissive
wzyy2/chromium-browser
2644b0daf58f8b3caee8a6c09a2b448b2dfe059c
eb905f00a0f7e141e8d6c89be8fb26192a88c4b7
refs/heads/master
2022-11-23T20:25:08.120045
2018-01-16T06:41:26
2018-01-16T06:41:26
117,618,467
3
2
BSD-3-Clause
2022-11-20T22:03:57
2018-01-16T02:09:10
null
UTF-8
C++
false
false
1,497
cpp
/* * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz> * Copyright (C) 2006 Apple Computer Inc. * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> * Copyright (C) Research In Motion Limited 2010. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public License * along with this library; see the file COPYING.LIB. If not, write to * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. */ #include "core/layout/svg/line/SVGInlineFlowBox.h" #include "core/layout/svg/line/SVGInlineTextBox.h" #include "core/paint/SVGInlineFlowBoxPainter.h" namespace blink { void SVGInlineFlowBox::Paint(const PaintInfo& paint_info, const LayoutPoint& paint_offset, LayoutUnit, LayoutUnit) const { SVGInlineFlowBoxPainter(*this).Paint(paint_info, paint_offset); } } // namespace blink
[ "jacob-chen@iotwrt.com" ]
jacob-chen@iotwrt.com
e777472ce26aa7ec9f697aa87a36d1ff5aa316a3
6477cf9ac119fe17d2c410ff3d8da60656179e3b
/Projects/openredalert/src/game/Game.h
d4a0ccb0e354ead8b77050dd41eb35931db405cf
[]
no_license
crutchwalkfactory/motocakerteam
1cce9f850d2c84faebfc87d0adbfdd23472d9f08
0747624a575fb41db53506379692973e5998f8fe
refs/heads/master
2021-01-10T12:41:59.321840
2010-12-13T18:19:27
2010-12-13T18:19:27
46,494,539
0
0
null
null
null
null
UTF-8
C++
false
false
1,308
h
// Game.h // 1.0 // This file is part of OpenRedAlert. // // OpenRedAlert is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, version 2 of the License. // // OpenRedAlert is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with OpenRedAlert. If not, see <http://www.gnu.org/licenses/>. #ifndef GAME_H #define GAME_H #include <string> #include "SDL/SDL_types.h" #include "include/config.h" using std::string; /** * This object represent a game session */ class Game { public: Game(); ~Game(); void InitializeMap(string MapName); /** Initialise some object of the game */ void InitializeGameClasses(); void FreeMemory(); void play(); void HandleTiming(); void dumpstats(); private: void handleAiCommands(); Uint8 MissionNr; Uint32 OldUptime; ConfigType config; Uint8 gamemode; bool BattleControlTerminated; }; #endif //GAME_H
[ "cepiperez@gmail.com" ]
cepiperez@gmail.com
428dd65f2ab29a6a7ad1afb296933a9ad3c0cef6
ea8a847f2a08a6c6542144e154ce962f7f4dfc23
/DataSource.h
90bb7e1182b0c68de61de366c391ff43bef3b384
[]
no_license
ikiadnan/cpp-qt-sensor-monitoring
20e935120de224f66806a34f5c9825dd1d58f2a9
7fdb1a020689eef23180606d71d5065afced2db8
refs/heads/main
2023-01-19T05:35:35.739999
2020-11-22T16:00:10
2020-11-22T16:00:10
315,074,902
0
0
null
null
null
null
UTF-8
C++
false
false
1,925
h
/**************************************************************************** ** ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the Qt Charts module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:GPL$ ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this file in ** accordance with the commercial license agreement provided with the ** Software or, alternatively, in accordance with the terms contained in ** a written agreement between you and The Qt Company. For licensing terms ** and conditions see https://www.qt.io/terms-conditions. For further ** information use the contact form at https://www.qt.io/contact-us. ** ** GNU General Public License Usage ** Alternatively, this file may be used under the terms of the GNU ** General Public License version 3 or (at your option) any later version ** approved by the KDE Free Qt Foundation. The licenses are as published by ** the Free Software Foundation and appearing in the file LICENSE.GPL3 ** included in the packaging of this file. Please review the following ** information to ensure the GNU General Public License requirements will ** be met: https://www.gnu.org/licenses/gpl-3.0.html. ** ** $QT_END_LICENSE$ ** ****************************************************************************/ #ifndef DATASOURCE_H #define DATASOURCE_H #include <QtCore/QObject> #include <QtCharts/QAbstractSeries> QT_BEGIN_NAMESPACE class QQuickView; QT_END_NAMESPACE QT_CHARTS_USE_NAMESPACE class DataSource : public QObject { Q_OBJECT public: explicit DataSource(QQuickView *appViewer = nullptr, QObject *parent = nullptr); Q_SIGNALS: public slots: void generateData(int type, int rowCount, int colCount); void update(QAbstractSeries *series); private: QQuickView *m_appViewer; QList<QVector<QPointF> > m_data; int m_index; }; #endif // DATASOURCE_H
[ "ikiadnan@gmail.com" ]
ikiadnan@gmail.com
e7f972ece1967083659473672aff8b1c01d64972
861ecb3322fbfc70faaa71ad8cc1759b03ba055e
/test12-opencl/test.cpp
0fe6d2f57965ff600d4e83e43e8325ac441f0d85
[]
no_license
Drwalin/Fractals-Temp
65198fbbeba5daed83d5216067d4c7c1280bd943
45c3b5a723abf3f4fef0d124ff4a03a726b7386a
refs/heads/master
2021-10-21T21:50:36.018340
2019-03-06T19:51:35
2019-03-06T19:51:35
null
0
0
null
null
null
null
UTF-8
C++
false
false
4,153
cpp
//#include "..\OpenCLwrapper\OpenCLWrapper.h" #include <OpenCLWrapper.h> #include <cstdio> #include <cmath> #include <vector> #include <complex> #include <ctime> #include <cstdlib> #include "..\lodepng.h" #include <cstring> typedef long double real; typedef std::complex<real> complex; class vec { public: real x, y; vec(real a, real b):x(a),y(b){} vec(real a):x(a),y(a){} vec():x(0),y(0){} vec operator+(vec o)const{return vec(x+o.x,y+o.y);} vec operator-(vec o)const{return vec(x-o.x,y-o.y);} vec& operator+=(vec o){x+=o.x;y+=o.y;return*this;} vec& operator-=(vec o){x-=o.x;y-=o.y;return*this;} real dot(vec o)const{return(x*o.x)+(y*o.y);} real len()const{return sqrt(this->dot(*this));} real len2()const{return this->dot(*this);} vec operator*(real o)const{return vec(x*o,y*o);} vec operator/(real o)const{return vec(x/o,y/o);} vec& operator*=(real o){x*=o;y*=o;return *this;} vec& operator/=(real o){x/=o;y/=o;return *this;} vec normal()const{return (*this)/this->len();} vec rotate(float arg)const { real sarg = sin(arg); real carg = cos(arg); vec ret; ret.x = x*carg + y*sarg; ret.y = -x*sarg + y*carg; return ret; }; }; float dot( float * a, float * b ) { return a[0]*b[0] + a[1]*b[1] + a[2]*b[2] + a[3]*b[3]; } float Length( float * v ) { return sqrt( dot(v,v) ); } void Divide( float * v, float f ) { for( int i = 0; i < 4; ++i ) v[i] /= f; } void Normalize( float * v ) { float len = Length(v); if( len > 0.001 ) { Divide( v, len ); } } int width = 16384/4, height = 16384/4; void Fractal( unsigned char color, int steps, vec a, vec b, vec dir, std::vector<unsigned char> & img, int width, int height ); complex GetValue( complex c, int count ) { complex n = c; for( ; count > 0; --count ) { n = n*n + c; } return n; } void GetOxOy( float * ox, float * oy ); int main() { //srand( time( NULL ) ); int i, j, k; const int MEMORY_BLOCK_ELEMENTS = 1024*1024*32; const int ITERATIONS_QUEUEING = 1024*32; cl_kernel * function = CL::GetFunction( "Mandelbrot.c", "MandelbrotSet" ); std::vector<unsigned char>img( width*height*4 ); unsigned char * img1 = CL::Allocate<unsigned char>( MEMORY_BLOCK_ELEMENTS*4, CL_MEM_READ_WRITE );//| CL_MEM_USE_HOST_PTR ); float * ox = CL::Allocate<float>( 4, CL_MEM_READ_ONLY | CL_MEM_USE_HOST_PTR ); float * oy = CL::Allocate<float>( 4, CL_MEM_READ_ONLY | CL_MEM_USE_HOST_PTR ); //GetOxOy( ox, oy ); ox[0] = 0.0f; ox[1] = 1.0f; ox[2] = 0.0f; ox[3] = 0.0f; Normalize(ox); CL::CopyToVRAM( ox ); oy[0] = 0.0f; oy[1] = 0.0f; oy[2] = 0.0f; oy[3] = 1.0f; Normalize(oy); CL::CopyToVRAM( oy ); int beg = clock(); for( i = 0, j = 0; j <= (width*height)/MEMORY_BLOCK_ELEMENTS; ++j ) { for( k = 0; i+ITERATIONS_QUEUEING <= width*height && k+ITERATIONS_QUEUEING <= MEMORY_BLOCK_ELEMENTS; i += ITERATIONS_QUEUEING, k += ITERATIONS_QUEUEING ) { CL::For( ITERATIONS_QUEUEING, function, img1, i, width, height, ox, oy, MEMORY_BLOCK_ELEMENTS ); CL::Finish(); printf( "\n Done %7.3f%% in %7.3fs estimated time to end: %7.3fs = %6.3fh", float(i)*100.0f/float(width*height), float(clock()-beg)/1000.0f, (float(clock()-beg)/1000.0f)*float(width*height-i)/float(i+1), (float(clock()-beg)/1000.0f)*float(width*height-i)/float(i+1)/3600.0f ); } CL::CopyFromVRAM( img1 ); unsigned bytes = MEMORY_BLOCK_ELEMENTS*4; if( img.size() - j*bytes < bytes ) bytes = img.size() % bytes; memmove( &(img[j*MEMORY_BLOCK_ELEMENTS*4]), img1, bytes ); //memset( img1, 0, bytes ); //CL::CopyToVRAM( img1 ); } printf( "\n Calculated in: %ims", clock()-beg ); CL::Free( img1 ); beg = clock(); lodepng::encode( "fractal.png", img, width, height ); printf( "\n Saved in: %ims", clock()-beg ); CL::DestroyFunction( function ); CL::Free( ox ); CL::Free( oy ); return 0; } void Random( float * v ) { while( true ) { for( int i = 0; i < 4; ++i ) v[i] = float(rand()%8193)-4096.0f; if( Length(v) > 5.0f ) break; } Normalize( v ); } void GetOxOy( float * a, float * b ) { Random( a ); Random( b ); while( true ) { if( abs(dot(a,b)) < 0.00001 ) { return; } Random(b); } }
[ "garekmarek@wp.pl" ]
garekmarek@wp.pl
37ca7fcdcca322399bfb15716d3f51eee6333b01
681d6a7fef59fb6d9d6fe2c9d50ba1c47a1dd34b
/src/primesieve/PrimeSieve-nthPrime.cpp
6afa3e47e1f71c45d03e60e1e8495c1e0dce196f
[ "BSD-2-Clause" ]
permissive
silky/primesieve
d33740aa13bce98d6721b5a857a79ab3f6eb397b
c735c0c14590d3f6ebe81fb4b17143df3e2459c4
refs/heads/master
2021-01-16T22:01:11.110294
2015-02-21T19:11:28
2015-02-21T19:11:28
32,446,896
1
0
null
2015-03-18T08:31:17
2015-03-18T08:31:17
null
UTF-8
C++
false
false
4,568
cpp
/// /// @file PrimeSieve-nthPrime.cpp /// /// Copyright (C) 2014 Kim Walisch, <kim.walisch@gmail.com> /// /// This file is distributed under the BSD License. See the COPYING /// file in the top level directory. /// #include <primesieve/config.hpp> #include <primesieve/PrimeSieve.hpp> #include <primesieve/SieveOfEratosthenes.hpp> #include <primesieve/pmath.hpp> #include <primesieve.hpp> #include <stdint.h> #include <algorithm> #include <cmath> using namespace primesieve; using namespace std; namespace { void checkLimit(uint64_t start, uint64_t dist) { if (dist > get_max_stop() - start) throw primesieve_error("nth prime is too large > 2^64 - 2^32 * 11"); } void checkLowerLimit(uint64_t stop) { if (stop == 0) throw primesieve_error("nth prime < 2 is impossible, negative n is too small"); } void checkLowerLimit(uint64_t start, double dist) { double s = static_cast<double>(start); s = max(1E4, s); if (s / dist < 0.9) throw primesieve_error("nth prime < 2 is impossible, negative n is too small"); } int64_t pix(int64_t n) { double x = static_cast<double>(n); double logx = log(max(4.0, x)); double pix = x / logx; return static_cast<int64_t>(pix); } bool sieveBackwards(int64_t n, int64_t count, uint64_t stop) { return (count >= n) && !(count == n && stop < 2); } uint64_t nthPrimeDistance(int64_t n, int64_t count, uint64_t start, bool bruteForce = false) { double x = static_cast<double>(n - count); double s = static_cast<double>(start); x = abs(x); x = max(4.0, x); s = max(4.0, s); double logx = log(x); double loglogx = log(logx); double pix = x * (logx + loglogx - 1); // Correct start if sieving backwards if (count >= n) s -= pix; // Approximate the nth prime using // start + n * log(start + pi(n) / log log n)) double logStartPix = log(max(4.0, s + pix / loglogx)); double dist = max(pix, x * logStartPix); double maxPrimeGap = logStartPix * logStartPix; double safetyFactor = (count >= n || bruteForce) ? 2 : -2; // Make sure start + dist <= nth prime dist += sqrt(dist) * log(logStartPix) * safetyFactor; dist = max(dist, maxPrimeGap); if (count >= n) checkLowerLimit(start, dist); return static_cast<uint64_t>(dist); } /// This class is used to generate n primes and /// then stop by throwing an exception. /// class NthPrime : public Callback<uint64_t> { public: NthPrime() : n_(0), nthPrime_(0) { } void findNthPrime(uint64_t, uint64_t, uint64_t); void callback(uint64_t); uint64_t getNthPrime() const; private: uint64_t n_; uint64_t nthPrime_; }; void NthPrime::findNthPrime(uint64_t n, uint64_t start, uint64_t stop) { n_ = n; PrimeSieve ps; try { ps.callbackPrimes(start, stop, this); ps.callbackPrimes(stop + 1, get_max_stop(), this); throw primesieve_error("nth prime is too large > 2^64 - 2^32 * 11"); } catch (cancel_callback&) { } } uint64_t NthPrime::getNthPrime() const { return nthPrime_; } void NthPrime::callback(uint64_t prime) { if (--n_ == 0) { nthPrime_ = prime; throw cancel_callback(); } } } // namespace namespace primesieve { uint64_t PrimeSieve::nthPrime(uint64_t n) { return nthPrime(0, n); } uint64_t PrimeSieve::nthPrime(int64_t n, uint64_t start) { setStart(start); double t1 = getWallTime(); if (n != 0) // Find nth prime > start (or < start) start += (n > 0) ? 1 : ((start > 0) ? -1 : 0); else // Mathematica convention n = 1; uint64_t stop = start; uint64_t dist = nthPrimeDistance(n, 0, start); uint64_t nthPrimeGuess = start + dist; int64_t pixSqrtNthPrime = pix(isqrt(nthPrimeGuess)); int64_t bruteForceMin = 10000; int64_t bruteForceThreshold = max(bruteForceMin, pixSqrtNthPrime); int64_t count = 0; while (sieveBackwards(n, count, stop) || (n - count) > bruteForceThreshold) { if (count < n) { dist = nthPrimeDistance(n, count, start); checkLimit(start, dist); stop = start + dist; count += countPrimes(start, stop); start = stop + 1; } if (sieveBackwards(n, count, stop)) { checkLowerLimit(stop); dist = nthPrimeDistance(n, count, stop); start = (start > dist) ? start - dist : 1; count -= countPrimes(start, stop); stop = start - 1; } } if (n < 0) count--; dist = nthPrimeDistance(n, count, start, true) * 2; checkLimit(start, dist); stop = start + dist; NthPrime np; np.findNthPrime(n - count, start, stop); seconds_ = getWallTime() - t1; return np.getNthPrime(); } } // namespace primesieve
[ "kim.walisch@gmail.com" ]
kim.walisch@gmail.com
436c103b75f7d12611532c43c345e6191d4622fb
8284ae77781d12b3e7a8295111c61e57af843ff0
/my_leetcode/8Search.cpp
2f3eb7acd13ddd7c767f97cfef194686172729db
[]
no_license
kevinchow1993/vs_cplus
cc8b453a4cc6404f3963859d9f71138c85a4304e
fafa1522870a106fea66154c51edcb30277481c7
refs/heads/master
2020-03-25T10:25:43.883650
2018-08-22T08:07:20
2018-08-22T08:07:20
143,692,902
0
0
null
2018-08-06T12:41:44
2018-08-06T07:36:21
C++
UTF-8
C++
false
false
4,144
cpp
#include<string> #include<vector> #include<map> #include<queue> #include<iostream> #include<set> using namespace std; /** * @brief 200.搜索独立小岛 * */ class island { private: void DFS(vector<vector<int> > &grid,vector<vector<int> > &mark,int i,int j){ mark[i][j]=1; static const int dx[] = {0,1,0,-1}; static const int dy[] = {1,0,-1,0}; for(size_t k = 0; k < 4; k++) { int newx = i+dx[k]; int newy = j+dy[k]; if(newx<0||newx>=grid.size()||newy<0||newy>=grid[0].size()){ continue; } if(grid[newx][newy]&&!mark[newx][newy]){ DFS(grid,mark,newx,newy); } } } void BFS(vector<vector<int> > &grid,vector<vector<int> >&mark,int i,int j){ mark[i][j]=1; static const int dx[] = {0,1,0,-1}; static const int dy[] = {1,0,-1,0}; queue<pair<int,int> > q; q.push(make_pair(i,j)); while(!q.empty()){ i = q.front().first; j = q.front().second; q.pop(); for(size_t k = 0; k < 4; k++) { int newx = i+dx[k]; int newy = j+dy[k]; if(newx<0||newx>=grid.size()||newy<0||newy>=grid[0].size()){ continue; } if(grid[newx][newy]&&!mark[newx][newy]){ q.push(make_pair(newx,newy)); mark[newx][newy]=1; } } } } public: int numIslands(vector<vector<int> > &grid){ vector<vector<int> > mark(grid.size(),vector<int>(grid[0].size(),0)); int nums = 0; for(size_t i = 0; i < grid.size(); i++) { for(size_t j = 0; j < grid[0].size(); j++) { if(grid[i][j]&&!mark[i][j]){ DFS(grid,mark,i,j); nums++; } } } return nums; } }; /** * @brief 127 词语阶梯 已知两个单词(分别是起始单词与结束单词),一个 单词词典 ,根据 转换规则 计算从起 始单词到结束单词的 最短转换步数 。 转换规则如下: 1.在转换时,只能转换单词中的 1 个字符 。 2.转换得到的 新单词 ,必须在单词词典中。 例如: beginWord = “hit”;endWord = “cog”;wordList = ["hot","dot","dog","lot","log","cog"] 最短转换方式: "hit" -> "hot" -> "dot" -> "dog" -> "cog", 结果为5 * * @param beginword * @param endword * @param wordlist * @return int */ int ladderLength(string beginword,string endword,vector<string> &wordlist){ map<string, vector<string> > graph; construct_graph(beginword,wordlist,graph); set<string> visited; queue<pair<string,int> > q; q.push(make_pair(beginword,1)); visited.insert(beginword); while(!q.empty()){ int step = q.front().second; string s = q.front().first; q.pop(); if(endword == s){ return step; } for(auto i:graph[s]){ if(visited.find(i)==visited.end()){ q.push(make_pair(i,step+1)); visited.insert(i); } } } } bool connect(string &word1,string &word2){ int cnt; for(size_t i = 0; i < word1.size(); i++) { if(word1[i]==word2[i]){ cnt++; } } return cnt == 1; } void construct_graph(string &beginword,vector<string> &wordlist,map<string,vector<string> >&graph){ wordlist.push_back(beginword); for(auto i:wordlist) { graph[i] = vector<string>(); } for(size_t i = 0;i<wordlist.size();i++) { for(size_t j=i+1;j<wordlist.size();j++){ if (connect(wordlist[i],wordlist[j])) { graph[wordlist[i]].push_back(wordlist[j]); graph[wordlist[j]].push_back(wordlist[i]); } } } } int main(int argc, char const *argv[]) { /* code */ return 0; }
[ "xinanzkq1993@gmail.com" ]
xinanzkq1993@gmail.com
b8e08bf366a7be2ffa10da6eaaff1c3ff2f040b0
2599725900824d3e02c477dfbd95003ac3b22459
/libs/SensorBase/SensorBase.h
bd3c2521222e92cd11dc29da6ee04941c04e9e1e
[ "MIT" ]
permissive
Connected-World-Tech/indoor-air-quality-particle
6a481ed3fd31a26969b7ceaa262fbf0b2bff98fd
1c536dc6edd27a7bc6af94505dc8d30f8b259e9b
refs/heads/master
2021-09-09T18:32:29.466370
2018-03-18T22:25:07
2018-03-18T22:25:07
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,444
h
/* Sensor Base Class Refactored into C++ class: David Warden Thomson Contribution: epierre Based on David Gironi http://davidegironi.blogspot.fr/2014/01/cheap-co2-meter-using-mq135-sensor-with.html License: Attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0) */ #ifndef Included_SensorBase_H #define Included_SensorBase_H #include <cmath> class SensorBase { public: SensorBase(int sampling_frequency, int sampling_interval_ms, int rl_value) { _sampling_frequency = sampling_frequency; _sampling_interval_ms = sampling_interval_ms; _rl_value = rl_value; _is_sampling_complete = true; } void startSampling(unsigned long start_time_ms); bool isSamplingComplete(); bool isTimeToRead(unsigned long current_time_ms); void setAnalogRead(int raw_adc, unsigned long current_time_ms); void startCalibrating(); protected: bool _is_sampling_complete; int _sampling_interval_ms; int _sampling_frequency; int _sampling_count; int _rl_value; float _sample_sum; float _sampling_average; unsigned long _start_time_ms; int calibration_count; float calibration_total; SensorBase() {}; int getPercentage(float ro, float *pcurve); float calibrateInCleanAir(int raw_adc, int ppm, float *pcurve); float getResistanceCalculation(int raw_adc); }; #endif //Included_SensorBase_H
[ "rockvole@gmail.com" ]
rockvole@gmail.com
cc4babd551e40a05c645772138d86b1d964fc81b
8fe8953e4f10a9bb97d563594b4e879db5444998
/moose/moose.cpp
2b29405b5d5478bfecf49c4bb65f1723386f630d
[]
no_license
lekoook/kattis_solutions
7c315895b3a89499118fca572b29f3637c8f731d
340f31186da0f9bd656a6fb1012d34aa59fe09c7
refs/heads/master
2020-03-21T23:20:21.177195
2018-06-29T18:18:59
2018-06-29T18:18:59
139,181,355
0
0
null
null
null
null
UTF-8
C++
false
false
384
cpp
#include <iostream> using namespace std; int main(void) { int num1, num2, result; cin >> num1 >> num2; if ((num1 == 0) && (num2 == 0)) { cout << "Not a moose" << endl; } else if (num1 == num2) { cout << "Even " << num1*2 << endl; } else { if (num1 > num2) { cout << "Odd " << num1*2 << endl; } else { cout << "Odd " << num2*2 << endl; } } return 0; }
[ "kokteng1313@gmail.com" ]
kokteng1313@gmail.com
c70a1f0366b6b40c303ad59e25f6b8afcd5e16f8
0871826e400ca13780948b6e122b2f58efe17f9c
/Sobel_benchmark_tile_71_output/systemc/FIFO_Sobel_grad_y_2_V_pixel_24.h
f0ce2a2de5d6c21a6ea0a265698db00aee15a9af
[]
no_license
homidian/OpenVX-kernels-hdl-outputs
4b6159c6497ae4e6507032a0f04d7cd37f5ba3b2
8a8f51eea50860438867fbe786060879b6312c44
refs/heads/master
2021-07-19T08:36:06.846140
2017-10-27T23:17:05
2017-10-27T23:17:05
106,859,595
0
0
null
null
null
null
UTF-8
C++
false
false
5,750
h
// ============================================================== // File generated by Vivado(TM) HLS - High-Level Synthesis from C, C++ and SystemC // Version: 2016.1 // Copyright (C) 1986-2016 Xilinx, Inc. All Rights Reserved. // // ============================================================== #ifndef FIFO_Sobel_grad_y_2_V_pixel_24_HH_ #define FIFO_Sobel_grad_y_2_V_pixel_24_HH_ #include <systemc> using namespace std; SC_MODULE(FIFO_Sobel_grad_y_2_V_pixel_24) { static const unsigned int DATA_WIDTH = 8; static const unsigned int ADDR_WIDTH = 1; static const unsigned int FIFO_Sobel_grad_y_2_V_pixel_24_depth = 2; sc_core::sc_in_clk clk; sc_core::sc_in< sc_dt::sc_logic > reset; sc_core::sc_out< sc_dt::sc_logic > if_empty_n; sc_core::sc_in< sc_dt::sc_logic > if_read_ce; sc_core::sc_in< sc_dt::sc_logic > if_read; sc_core::sc_out< sc_dt::sc_lv<DATA_WIDTH> > if_dout; sc_core::sc_out< sc_dt::sc_logic > if_full_n; sc_core::sc_in< sc_dt::sc_logic > if_write_ce; sc_core::sc_in< sc_dt::sc_logic > if_write; sc_core::sc_in< sc_dt::sc_lv<DATA_WIDTH> > if_din; sc_core::sc_signal< sc_dt::sc_logic > internal_empty_n; sc_core::sc_signal< sc_dt::sc_logic > internal_full_n; sc_core::sc_signal< sc_dt::sc_lv<DATA_WIDTH> > mStorage[FIFO_Sobel_grad_y_2_V_pixel_24_depth]; sc_core::sc_signal< sc_dt::sc_uint<ADDR_WIDTH> > mInPtr; sc_core::sc_signal< sc_dt::sc_uint<ADDR_WIDTH> > mOutPtr; sc_core::sc_signal< sc_dt::sc_uint<1> > mFlag_nEF_hint; sc_core::sc_trace_file* mTrace; SC_CTOR(FIFO_Sobel_grad_y_2_V_pixel_24) : mTrace(0) { const char* dump_vcd = std::getenv("AP_WRITE_VCD"); if (dump_vcd && string(dump_vcd) == "1") { std::string tracefn = "sc_trace_" + std::string(name()); mTrace = sc_core::sc_create_vcd_trace_file( tracefn.c_str()); sc_trace(mTrace, clk, "(port)clk"); sc_trace(mTrace, reset, "(port)reset"); sc_trace(mTrace, if_full_n, "(port)if_full_n"); sc_trace(mTrace, if_write_ce, "(port)if_write_ce"); sc_trace(mTrace, if_write, "(port)if_write"); sc_trace(mTrace, if_din, "(port)if_din"); sc_trace(mTrace, if_empty_n, "(port)if_empty_n"); sc_trace(mTrace, if_read_ce, "(port)if_read_ce"); sc_trace(mTrace, if_read, "(port)if_read"); sc_trace(mTrace, if_dout, "(port)if_dout"); sc_trace(mTrace, mInPtr, "mInPtr"); sc_trace(mTrace, mOutPtr, "mOutPtr"); sc_trace(mTrace, mFlag_nEF_hint, "mFlag_nEF_hint"); } mInPtr = 0; mOutPtr = 0; mFlag_nEF_hint = 0; SC_METHOD(proc_read_write); sensitive << clk.pos(); SC_METHOD(proc_dout); sensitive << mOutPtr; for (unsigned i = 0; i < FIFO_Sobel_grad_y_2_V_pixel_24_depth; i++) { sensitive << mStorage[i]; } SC_METHOD(proc_ptr); sensitive << mInPtr << mOutPtr<< mFlag_nEF_hint; SC_METHOD(proc_status); sensitive << internal_empty_n << internal_full_n; } ~FIFO_Sobel_grad_y_2_V_pixel_24() { if (mTrace) sc_core::sc_close_vcd_trace_file(mTrace); } void proc_status() { if_empty_n.write(internal_empty_n.read()); if_full_n.write(internal_full_n.read()); } void proc_read_write() { if (reset.read() == sc_dt::SC_LOGIC_1) { mInPtr.write(0); mOutPtr.write(0); mFlag_nEF_hint.write(0); } else { if (if_read_ce.read() == sc_dt::SC_LOGIC_1 && if_read.read() == sc_dt::SC_LOGIC_1 && internal_empty_n.read() == sc_dt::SC_LOGIC_1) { sc_dt::sc_uint<ADDR_WIDTH> ptr; if (mOutPtr.read().to_uint() == (FIFO_Sobel_grad_y_2_V_pixel_24_depth-1)) { ptr = 0; mFlag_nEF_hint.write(~mFlag_nEF_hint.read()); } else { ptr = mOutPtr.read(); ptr++; } assert(ptr.to_uint() < FIFO_Sobel_grad_y_2_V_pixel_24_depth); mOutPtr.write(ptr); } if (if_write_ce.read() == sc_dt::SC_LOGIC_1 && if_write.read() == sc_dt::SC_LOGIC_1 && internal_full_n.read() == sc_dt::SC_LOGIC_1) { sc_dt::sc_uint<ADDR_WIDTH> ptr; ptr = mInPtr.read(); mStorage[ptr.to_uint()].write(if_din.read()); if (ptr.to_uint() == (FIFO_Sobel_grad_y_2_V_pixel_24_depth-1)) { ptr = 0; mFlag_nEF_hint.write(~mFlag_nEF_hint.read()); } else { ptr++; assert(ptr.to_uint() < FIFO_Sobel_grad_y_2_V_pixel_24_depth); } mInPtr.write(ptr); } } } void proc_dout() { sc_dt::sc_uint<ADDR_WIDTH> ptr = mOutPtr.read(); if (ptr.to_uint() > FIFO_Sobel_grad_y_2_V_pixel_24_depth) { if_dout.write(sc_dt::sc_lv<DATA_WIDTH>()); } else { if_dout.write(mStorage[ptr.to_uint()]); } } void proc_ptr() { if (mInPtr.read() == mOutPtr.read() && mFlag_nEF_hint.read().to_uint()==0) { internal_empty_n.write(sc_dt::SC_LOGIC_0); } else { internal_empty_n.write(sc_dt::SC_LOGIC_1); } if (mInPtr.read() == mOutPtr.read() && mFlag_nEF_hint.read().to_uint()==1) { internal_full_n.write(sc_dt::SC_LOGIC_0); } else { internal_full_n.write(sc_dt::SC_LOGIC_1); } } }; #endif //FIFO_Sobel_grad_y_2_V_pixel_24_HH_
[ "h.omidian@gmail.com" ]
h.omidian@gmail.com
ef4b56cbcb9118e82b48ec1d19d50dbdaa34db4e
0eff74b05b60098333ad66cf801bdd93becc9ea4
/second/download/git/gumtree/git_new_hunk_357.cpp
59580ea9a29e14a5e844d8bd3278fd1bf15aef0d
[]
no_license
niuxu18/logTracker-old
97543445ea7e414ed40bdc681239365d33418975
f2b060f13a0295387fe02187543db124916eb446
refs/heads/master
2021-09-13T21:39:37.686481
2017-12-11T03:36:34
2017-12-11T03:36:34
null
0
0
null
null
null
null
UTF-8
C++
false
false
501
cpp
/* do not write anything to FETCH_HEAD */ break; } strbuf_reset(&note); if (ref) { rc |= update_local_ref(ref, what, rm, &note, summary_width); free(ref); } else format_display(&note, '*', *kind ? kind : "branch", NULL, *what ? what : "HEAD", "FETCH_HEAD", summary_width); if (note.len) { if (verbosity >= 0 && !shown_url) { fprintf(stderr, _("From %.*s\n"), url_len, url); shown_url = 1; }
[ "993273596@qq.com" ]
993273596@qq.com
d3a8661db91e35d5a25eb49809c133329796ddef
ba7b2475b05d6bf0f75485d97cdf54ed23ebded5
/src/ReadWrite.cpp
39d1e56f80ce81a7bebb0f94404f38470a019fb0
[]
no_license
tienv/GraphMM
623a94314b774b1dd46f5046b9093709030f6bd1
738bf5b13cc6d61e459561539ccab5442b21315d
refs/heads/master
2021-06-26T00:46:39.801919
2020-11-02T06:58:15
2020-11-02T06:58:15
164,007,936
1
2
null
null
null
null
UTF-8
C++
false
false
689
cpp
#include <RcppArmadillo.h> #include"ReadWrite.h" void ReadData(vector<unsigned int> & seeds, arma::umat & G, std::string datafolder) { ifstream fin; ofstream fout; std::string filename1, filename2; filename1 = datafolder + "/Seed.txt"; filename2 = datafolder + "/Graph.txt"; fin.open(filename1.c_str()); if (fin.is_open()) { ReadVec(seeds, fin); fin.close(); } else Rcpp::Rcout << "Error: Cannot open/read file Seed.txt" << endl; fin.open(filename2.c_str()); if (fin.is_open()) { ReadMat(G,fin); fin.close(); } else Rcpp::Rcout << "Error: Cannot open/read file Graph.txt" << endl; }
[ "tnvo@wisc.edu" ]
tnvo@wisc.edu
b14d0bfc3f42e2a2ea9349eb37d93e9a05f2d42b
1af49694004c6fbc31deada5618dae37255ce978
/gpu/command_buffer/service/shared_image_backing_scoped_hardware_buffer_fence_sync.h
4d4ebb4979803d09c35715ba31724795b3bb9c8e
[ "BSD-3-Clause" ]
permissive
sadrulhc/chromium
59682b173a00269ed036eee5ebfa317ba3a770cc
a4b950c23db47a0fdd63549cccf9ac8acd8e2c41
refs/heads/master
2023-02-02T07:59:20.295144
2020-12-01T21:32:32
2020-12-01T21:32:32
317,678,056
3
0
BSD-3-Clause
2020-12-01T21:56:26
2020-12-01T21:56:25
null
UTF-8
C++
false
false
3,396
h
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef GPU_COMMAND_BUFFER_SERVICE_SHARED_IMAGE_BACKING_SCOPED_HARDWARE_BUFFER_FENCE_SYNC_H_ #define GPU_COMMAND_BUFFER_SERVICE_SHARED_IMAGE_BACKING_SCOPED_HARDWARE_BUFFER_FENCE_SYNC_H_ #include <memory> #include "base/memory/scoped_refptr.h" #include "gpu/command_buffer/service/shared_image_backing_android.h" #include "gpu/gpu_gles2_export.h" namespace base { namespace android { class ScopedHardwareBufferFenceSync; } // namespace android } // namespace base namespace gpu { class SharedImageRepresentationGLTexture; class SharedImageRepresentationGLTextureScopedHardwareBufferFenceSync; class SharedImageRepresentationSkia; struct Mailbox; // Backing which wraps ScopedHardwareBufferFenceSync object and allows // producing/using different representations from it. This backing is not thread // safe. // TODO(vikassoni): Add support for passthrough textures. class GPU_GLES2_EXPORT SharedImageBackingScopedHardwareBufferFenceSync : public SharedImageBackingAndroid { public: SharedImageBackingScopedHardwareBufferFenceSync( std::unique_ptr<base::android::ScopedHardwareBufferFenceSync> scoped_hardware_buffer, const Mailbox& mailbox, viz::ResourceFormat format, const gfx::Size& size, const gfx::ColorSpace& color_space, GrSurfaceOrigin surface_origin, SkAlphaType alpha_type, uint32_t usage, bool is_thread_safe); ~SharedImageBackingScopedHardwareBufferFenceSync() override; // SharedImageBacking implementation. gfx::Rect ClearedRect() const override; void SetClearedRect(const gfx::Rect& cleared_rect) override; void Update(std::unique_ptr<gfx::GpuFence> in_fence) override; bool ProduceLegacyMailbox(MailboxManager* mailbox_manager) override; size_t EstimatedSizeForMemTracking() const override; protected: std::unique_ptr<SharedImageRepresentationGLTexture> ProduceGLTexture( SharedImageManager* manager, MemoryTypeTracker* tracker) override; std::unique_ptr<SharedImageRepresentationGLTexturePassthrough> ProduceGLTexturePassthrough(SharedImageManager* manager, MemoryTypeTracker* tracker) override; std::unique_ptr<SharedImageRepresentationSkia> ProduceSkia( SharedImageManager* manager, MemoryTypeTracker* tracker, scoped_refptr<SharedContextState> context_state) override; private: friend class SharedImageRepresentationGLTextureScopedHardwareBufferFenceSync; friend class SharedImageRepresentationSkiaVkScopedHardwareBufferFenceSync; std::unique_ptr< SharedImageRepresentationGLTextureScopedHardwareBufferFenceSync> GenGLTextureRepresentation(SharedImageManager* manager, MemoryTypeTracker* tracker); bool BeginGLReadAccess(); void EndGLReadAccess(); void EndSkiaReadAccess(); std::unique_ptr<base::android::ScopedHardwareBufferFenceSync> scoped_hardware_buffer_; // Fence which needs to be waited upon before reading the // |scoped_hardware_buffer_|. base::ScopedFD ahb_read_fence_; DISALLOW_COPY_AND_ASSIGN(SharedImageBackingScopedHardwareBufferFenceSync); }; } // namespace gpu #endif // GPU_COMMAND_BUFFER_SERVICE_SHARED_IMAGE_BACKING_SCOPED_HARDWARE_BUFFER_FENCE_SYNC_H_
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
c925c38f68618b9d822fed6a42ae4aba2f3ae758
fc533d5ff9477c6fe236913379706699741957a6
/AbabeelCore5StagePipelined/test_run_dir/examples/HDU/HDU-harness.cpp
bcaf63446579c5688520057d581b57a4a68c12b4
[]
no_license
shahzaibk23/AbabeelCore-5-Stage-Pipelined-RV32i
6f0191200af157b2ff9bb5829de79c16bbf02a40
57a21f9971fbc7bdeeb052e67dbf33e287de9d27
refs/heads/master
2021-06-28T09:09:26.466825
2020-03-01T14:51:08
2020-03-01T14:51:08
232,620,524
1
0
null
2021-06-01T23:19:33
2020-01-08T17:32:30
C++
UTF-8
C++
false
false
4,286
cpp
#include "VHDU.h" #include "verilated.h" #include "veri_api.h" #if VM_TRACE #include "verilated_vcd_c.h" #endif #include <iostream> class HDU_api_t: public sim_api_t<VerilatorDataWrapper*> { public: HDU_api_t(VHDU* _dut) { dut = _dut; main_time = 0L; is_exit = false; #if VM_TRACE tfp = NULL; #endif } void init_sim_data() { sim_data.inputs.clear(); sim_data.outputs.clear(); sim_data.signals.clear(); sim_data.inputs.push_back(new VerilatorCData(&(dut->clock))); sim_data.inputs.push_back(new VerilatorCData(&(dut->reset))); sim_data.inputs.push_back(new VerilatorCData(&(dut->io_memRd))); sim_data.inputs.push_back(new VerilatorCData(&(dut->io_memRegWrite))); sim_data.inputs.push_back(new VerilatorCData(&(dut->io_hazard))); sim_data.inputs.push_back(new VerilatorCData(&(dut->io_operandBsel))); sim_data.inputs.push_back(new VerilatorCData(&(dut->io_operandAsel))); sim_data.inputs.push_back(new VerilatorCData(&(dut->io_idRs2))); sim_data.inputs.push_back(new VerilatorCData(&(dut->io_idRs1))); sim_data.inputs.push_back(new VerilatorCData(&(dut->io_exRd))); sim_data.inputs.push_back(new VerilatorCData(&(dut->io_exRegWrite))); sim_data.outputs.push_back(new VerilatorCData(&(dut->io_forwardB))); sim_data.outputs.push_back(new VerilatorCData(&(dut->io_forwardA))); sim_data.signals.push_back(new VerilatorCData(&(dut->reset))); sim_data.signal_map["HDU.reset"] = 0; } #if VM_TRACE void init_dump(VerilatedVcdC* _tfp) { tfp = _tfp; } #endif inline bool exit() { return is_exit; } // required for sc_time_stamp() virtual inline double get_time_stamp() { return main_time; } private: VHDU* dut; bool is_exit; vluint64_t main_time; #if VM_TRACE VerilatedVcdC* tfp; #endif virtual inline size_t put_value(VerilatorDataWrapper* &sig, uint64_t* data, bool force=false) { return sig->put_value(data); } virtual inline size_t get_value(VerilatorDataWrapper* &sig, uint64_t* data) { return sig->get_value(data); } virtual inline size_t get_chunk(VerilatorDataWrapper* &sig) { return sig->get_num_words(); } virtual inline void reset() { dut->reset = 1; step(); } virtual inline void start() { dut->reset = 0; } virtual inline void finish() { dut->eval(); is_exit = true; } virtual inline void step() { dut->clock = 0; dut->eval(); #if VM_TRACE if (tfp) tfp->dump(main_time); #endif main_time++; dut->clock = 1; dut->eval(); #if VM_TRACE if (tfp) tfp->dump(main_time); #endif main_time++; } virtual inline void update() { dut->_eval_settle(dut->__VlSymsp); } }; // The following isn't strictly required unless we emit (possibly indirectly) something // requiring a time-stamp (such as an assert). static HDU_api_t * _Top_api; double sc_time_stamp () { return _Top_api->get_time_stamp(); } // Override Verilator definition so first $finish ends simulation // Note: VL_USER_FINISH needs to be defined when compiling Verilator code void vl_finish(const char* filename, int linenum, const char* hier) { Verilated::flushCall(); exit(0); } int main(int argc, char **argv, char **env) { Verilated::commandArgs(argc, argv); VHDU* top = new VHDU; std::string vcdfile = "test_run_dir/examples/HDU/HDU.vcd"; std::vector<std::string> args(argv+1, argv+argc); std::vector<std::string>::const_iterator it; for (it = args.begin() ; it != args.end() ; it++) { if (it->find("+waveform=") == 0) vcdfile = it->c_str()+10; } #if VM_TRACE Verilated::traceEverOn(true); VL_PRINTF("Enabling waves.."); VerilatedVcdC* tfp = new VerilatedVcdC; top->trace(tfp, 99); tfp->open(vcdfile.c_str()); #endif HDU_api_t api(top); _Top_api = &api; /* required for sc_time_stamp() */ api.init_sim_data(); api.init_channels(); #if VM_TRACE api.init_dump(tfp); #endif while(!api.exit()) api.tick(); #if VM_TRACE if (tfp) tfp->close(); delete tfp; #endif delete top; exit(0); }
[ "shahzaibceo@gmail.com" ]
shahzaibceo@gmail.com
d7ec164f26180a9cf045860754a59b78e1f69f11
836523304390560c1b0b655888a4abef63a1b4a5
/util/TestSample.cpp
6aa187bcf1df9817da8946469d5513825ec479c2
[]
no_license
paranoiagu/UDSOnlineEditor
4675ed403fe5acf437ff034a17f3eaa932e7b780
7eaae6fef51a01f09d28021ca6e6f2affa7c9658
refs/heads/master
2021-01-11T03:19:59.238691
2011-10-03T06:02:35
2011-10-03T06:02:35
null
0
0
null
null
null
null
GB18030
C++
false
false
4,039
cpp
// TestSample.cpp : CTestSample 的实现 #include "stdafx.h" #include "TestSample.h" #include <stdio.h> #include <windows.h> #include <wincrypt.h> #include <atlstr.h> #include "PKIDtManager.h" #include "P11PinInputDlg.h" #include "comutil.h" #define MY_ENCODING_TYPE (PKCS_7_ASN_ENCODING | X509_ASN_ENCODING) #define PROVIDER_NAME _T("HaiTai Cryptographic Service Provider") //"Rainbow iKey 1000 RSA Cryptographic Service Provider" void MyHandleError(char *s); // CTestSample STDMETHODIMP CTestSample::FindCerts(void) { /* HCRYPTPROV hCryptProv; BYTE pbData[1000]; // 1000 will hold the longest // key container name. DWORD cbData; WCHAR crContainer[1000]; if(CryptAcquireContext( &hCryptProv, NULL, PROVIDER_NAME, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) { InfoMsgBox(_T("CryptAcquireContext")); } else { DWORD err = GetLastError(); InfoMsgBox(_T("CryptAcquireContext error")); } cbData = 0; memset(pbData, 0, sizeof(pbData)); CryptGetProvParam( hCryptProv, PP_ENUMCONTAINERS, pbData, &cbData, CRYPT_FIRST); memset(pbData, 0, sizeof(pbData)); if(CryptGetProvParam( hCryptProv, PP_ENUMCONTAINERS, pbData, &cbData, 0)) { memset(crContainer, 0, sizeof(crContainer)); MultiByteToWideChar(CP_ACP,0,(char *)pbData,strlen((char *)pbData),crContainer,1024); //wsprintf(crContainer, _T("count %s"), pbData); InfoMsgBox(crContainer); } else InfoMsgBox(_T("CryptGetProvParam error1")); CryptReleaseContext(hCryptProv, 0); */ /* CP11PinInputDlg pinDlg; if (pinDlg.DoModal() == IDOK) { //CString pin; //BSTR pin; //pinDlg.GetDlgControl(); //pinDlg.GetDlgItem(IDC_EDIT_PIN); //CT2A(pin.AllocSysString()); //InfoMsgBox(pin.AllocSysString()); InfoMsgBox(pinDlg.m_sz); } else { InfoMsgBox(_T("IDCANCEL")); }*/ PKIDtManager pkiDtManager; BYTE btContainer[1000]; char *pCertName = "admin"; char *pProvName = "HaiTai Cryptographic Service Provider"; if (pkiDtManager.GetContainers(btContainer, pCertName, pProvName)) { TCHAR containerName[1000]; MultiByteToWideChar(CP_ACP, 0, (char*)btContainer, 1000, containerName, 500); InfoMsgBox(containerName); } else { InfoMsgBox(_T("error")); } return S_OK; } void CTestSample::InfoMsgBox(TCHAR* szTip){ MessageBox(GetForegroundWindow(),szTip,_T("亿榕公文交换平台提示"),MB_OK|MB_ICONINFORMATION); } //------------------------------------------------------------------- // This example uses the function MyHandleError, a simple error // handling function, to print an error message to the // standard error (stderr) file and exit the program. // For most applications, replace this function with one // that does more extensive error reporting. void MyHandleError(char *s) { fprintf(stderr,"An error occurred in running the program. \n"); fprintf(stderr,"%s\n",s); fprintf(stderr, "Error number %x.\n", GetLastError()); fprintf(stderr, "Program terminating. \n"); exit(1); } // End of MyHandleError STDMETHODIMP CTestSample::AddNums(BSTR* rtnum) { // TODO: 在此添加实现代码 num++; CString strNumber; strNumber.Format(_T("%d"), num); *rtnum = strNumber.AllocSysString(); return S_OK; } STDMETHODIMP CTestSample::FindCertByUser(BSTR cuser,BSTR* ccontainer) { // TODO: 在此添加实现代码 PKIDtManager pkiDtManager; char btContainer[1000]; char *pCertName = (char*)_com_util::ConvertBSTRToString(cuser); char *pProvName = "HaiTai Cryptographic Service Provider"; if (pkiDtManager.GetContainers((BYTE*)btContainer, pCertName, pProvName)) { //char containerName[1000]; //MultiByteToWideChar(CP_ACP, 0, (char*)btContainer, 1000, containerName, 500); //InfoMsgBox(containerName); *ccontainer = A2BSTR(btContainer); } else { InfoMsgBox(_T("error")); } if (pCertName) delete(pCertName); return S_OK; }
[ "uukuguy@gmail.com" ]
uukuguy@gmail.com
5548be0ab115e97a22963681a5e2b8c47d4f4c26
fdacb097452e2e270a587f389664985ce1effbde
/projectTwo/projectTwo/getinfo.cpp
58b16008420adc91f559df10eed1254ffd9cc65f
[]
no_license
SkiRka/OneProject
f86ee8b21e86e7e455dcb5bfd358a8354847986f
b714b3822c3197a0c59016dc31d3546010c4dedc
refs/heads/master
2020-04-06T04:30:55.744006
2013-07-21T17:08:30
2013-07-21T17:08:30
null
0
0
null
null
null
null
UTF-8
C++
false
false
9,029
cpp
// getinfo.cpp -- ввод и вывод #include <iostream> int main(){ using namespace std; int carrots; cout << "How many carrots do you have?" << endl; cin >> carrots; // ввод С++ cout << "Here are two more. "; carrots = carrots + 2; // слудующая стр ока выполняет конкантинацию вывода cout << "Now you have " << carrots << " carrots." << endl; cin.get(); cin.get(); return 0; }
[ "dima89658702496@gmail.com" ]
dima89658702496@gmail.com
d4e3fe16ad188f3f4a2a59a9c1ec41507b1d7fcd
d5ccbe7a883a0420030776fde411829ea7d88161
/leetcode/137.SingleNumberII/solution.cpp
2cad1eb3d4daa455af339340c479996f75975eb5
[]
no_license
kermiter/algorithm
33ea20611efab50fed05f41750f5d644a6f904e5
eaec544afb82047f8557d04b382d12115052e163
refs/heads/master
2020-04-02T18:16:53.425764
2020-03-02T16:58:36
2020-03-02T16:58:36
154,694,038
0
0
null
null
null
null
UTF-8
C++
false
false
904
cpp
#include<iostream> #include<vector> #include<string> #include<map> #include<set> #include<unordered_map> #include<unordered_set> class Solution{ /* *"(ones ^ A[i]) & ~twos" basically means perform the above mentioned operation if and only if A[i] is not present in the set "twos". IF the set "ones" does not have A[i] Add A[i] to the set "ones" if and only if its not there in set "twos" ELSE Remove it from the set "ones" (twos^ A[i]) & ~ones" basically means IF the set "twos" does not have A[i] Add A[i] to the set "twos" if and only if its not there in set "ones" ELSE Remove it from the set "twos" * * * */ int singleNumber(vector<int>& nums) { int ones=0,twos=0; for(auto s:nums) { ones=(s^ones)&(~twos); twos=(s^twos)&(~ones); } return ones; } }; int main() { return 0; }
[ "13717821254@163.com" ]
13717821254@163.com
693c840e1fe63152a6c60990408db68d24d9060e
cc68939eddacb89de22ee1f78b5ec0eefbfe8596
/src/Application/Recognition/SceneFrame.h
8b99c8665c46657f548457a1fc47364674a25a6b
[]
no_license
AlexTape/OpenMakaEngine
744b11b94b5f8e9767a59bce45e6a8c6c2f59986
23700127b01fd47b30c673515a101f3e5e5b01ac
refs/heads/master
2021-01-18T14:20:10.798726
2017-04-10T11:57:05
2017-04-10T11:57:05
42,058,155
4
2
null
null
null
null
UTF-8
C++
false
false
728
h
#ifndef OPENMAKAENGINE_SCENEFRAME_H #define OPENMAKAENGINE_SCENEFRAME_H #include <opencv2/core/core.hpp> #include <opencv2/features2d/features2d.hpp> namespace om { class SceneFrame { public: SceneFrame(cv::Mat &rgbInputFrame, cv::Mat &grayInputFrame); virtual ~SceneFrame(void); cv::Mat rgb; cv::Mat gray; cv::Mat homography; std::vector<cv::KeyPoint> keypoints; cv::Mat descriptors; std::vector<cv::DMatch> matches; std::vector<cv::Point2f> objectPosition; static int MAX_IMAGE_SIZE; static float IMAGE_SCALE; std::string getProcessingResolution(); std::string getInputResolution(); }; }; #endif
[ "alexalone@web.de" ]
alexalone@web.de
b45b729ae5796d6c7f56b08ca3908cda70b5c221
ab77dab0373857b6e6117962eeaa881a49c1ac1c
/ComputerVisionTest/GrooveDetection/grooveDetection.cpp
acdd4a66bf42554439a0865de145bee1f6887bfb
[]
no_license
NickChiapputo/SeniorDesign
775b11f7587b26b5d0144e87b89ccb24117d1702
450dea27a4def40ff9954c861e693456adb71455
refs/heads/master
2020-12-29T08:27:58.256676
2020-10-16T20:58:58
2020-10-16T20:58:58
238,534,922
0
0
null
null
null
null
UTF-8
C++
false
false
14,348
cpp
#include <stdio.h> #include <opencv2/opencv.hpp> #include <cmath> using namespace std; using namespace cv; void cannyEdgeDetection( Mat*, Mat*, Mat*, Mat*, int, int, int, double ); void standardHoughLineDetection( Mat*, Mat*, double, double, int, double, double, Scalar, int, int ); void probabilisticHoughLineDetection( Mat*, Mat*, vector<Vec4i>*, vector<Vec4i>*, double, double, int, double, double, Scalar, Scalar, int, int ); void probabilisticHoughLineGrouping( Mat*, vector<Vec4i>*, vector<Vec4i>*, Scalar, int, int ); void sortLinesIncreasingTopX( vector<Vec4i>* ); void drawROI( Mat*, vector<Vec4i>*, Scalar, double, int ); int main( int argc, char ** argv ) { // Ensure a file is given to the program if( argc != 2 ) { printf( "Usage: ./displayImage <image_path>\n" ); exit( -1 ); } // Create matrix to hold image for each step Mat image, gray, gaussian, canny, cannyOverlay, hough, linesHP, houghP, grouped, grooveZone; // Create an image and read from the given source image = imread( argv[ 1 ], 1 ); // Ensure image was properly loaded (i.e., source is valid) if( !image.data ) { printf( "No image data.\n" ); exit( -1 ); } // Convert to grayscale cvtColor( image, gray, COLOR_BGR2GRAY ); /*********************/ /* */ /* GAUSSIAN BLURRING */ /* */ /*********************/ int kernel = 3; GaussianBlur( gray, gaussian, Size( kernel, kernel ), 0 ); /*************************/ /* */ /* CANNY IMAGE DETECTION */ /* */ /*************************/ int low_threshold = 10; int high_threshold = 150; int apertureSize = 3; double cannyOverlayAlpha = 0.7; cannyEdgeDetection( &canny, &cannyOverlay, &image, &gaussian, low_threshold, high_threshold, apertureSize, cannyOverlayAlpha ); /************************/ /* */ /* HOUGH LINE DETECTION */ /* */ /************************/ // Change canny to BGR image cvtColor( canny, hough, COLOR_GRAY2BGR ); // Standard Hough Line detection hough = cannyOverlay.clone(); // Set output image as canny overlay. Lines are drawn on top of this image Scalar houghLineColor = Scalar( 0, 0, 255 ); // Color of Hough lines on output image int houghLineThickness = 2; // Pixel width of Hough lines int lineStyle = LINE_AA; double rho = 1; // The resolution of the parameter r in pixels. double theta = CV_PI / 180; // The resolution of the paramter theta in radians. CV_PI / 180 = 1 degree int threshold = 150; // The minimum number of intersections to detect a line double srn = 0; // For multi-scale Hough transform. Divisor for the distance resolution rho. Classical Hough transform = 0 double stn = 0; // For multi-scale Hough transform. Divisor for the distance resolution theta. Classical Hough transform = 0 standardHoughLineDetection( &hough, &canny, rho, theta, threshold, srn, stn, houghLineColor, houghLineThickness, lineStyle ); /**************************************/ /* */ /* PROBABILISTIC HOUGH LINE DETECTION */ /* */ /**************************************/ // Hough line parameters houghP = cannyOverlay.clone(); vector<Vec4i> linesP; vector<Vec4i> selectedPLines; double rhoP = 1; // Check in small rho increments double thetaP = 1 * CV_PI / 180; // Check in small theta increments int thresholdP = 100; // Number of points needed to detect lines. Gets rid of sipes and block borders double minLineLength = 0.5 * cannyOverlay.rows; // Only check for long lines (>= 90% of height) double maxLineGap = 0.15 * cannyOverlay.cols; // Allow large gaps between lines. This overcomes the issue of blocks disrupting the grooves // Line style parameters Scalar houghPLineColor = Scalar( 0, 0, 255 ); Scalar houghPSelectedLineColor = Scalar( 0, 255, 0 ); int houghPLineThickness = 2; int houghPLineStyle = LINE_AA; probabilisticHoughLineDetection( &houghP, &canny, &linesP, &selectedPLines, rhoP, thetaP, thresholdP, minLineLength, maxLineGap, houghPLineColor, houghPSelectedLineColor, houghPLineThickness, houghPLineStyle ); /***********************************/ /* */ /* GROUP PROBABILISTIC HOUGH LINES */ /* */ /***********************************/ grouped = cannyOverlay.clone(); vector<Vec4i> averagedLines; Scalar groupedLineColor = Scalar( 0, 0, 255 ); int groupedLineThickness = 2; int groupedLineStyle = LINE_AA; probabilisticHoughLineGrouping( &grouped, &selectedPLines, &averagedLines, groupedLineColor, groupedLineThickness, groupedLineStyle ); /**********************/ /* */ /* SORT GROUPED LINES */ /* */ /**********************/ sortLinesIncreasingTopX( &averagedLines ); cout << "Sorted List of Lines: \n"; for( size_t i = 0; i < averagedLines.size(); i++ ) { Vec4i l = averagedLines[ i ]; cout << "( " << l[ 0 ] << ", " << l[ 1 ] << " ) -> ( " << l[ 2 ] << ", " << l[ 3 ] << " )\n"; } // Welcome to the groove zone grooveZone = image.clone(); Scalar roiColor = Scalar( 119, 221, 119 ); double roiAlpha = 0.6; int grooveZoneLineStyle = LINE_AA; drawROI( &grooveZone, &averagedLines, roiColor, roiAlpha, grooveZoneLineStyle ); // Create window to display image in namedWindow( "Display", WINDOW_AUTOSIZE ); imshow( "Display", image ); // Wait for a keystroke in the window, then exit int key; while( ( key = waitKey( 0 ) ) < 59 && key > 48 ) { if( key == 49 ) // Key press = '1' { cout << "Change Display: Original\n"; imshow( "Display", image ); } else if( key == 50 ) // Key press = '2' { cout << "Change Display: Gray Scale\n"; imshow( "Display", gray ); } else if( key == 51 ) // Key press = '3' { cout << "Change Display: Gaussian Blur\n"; imshow( "Display", gaussian ); } else if( key == 52 ) // Key press = '4' { cout << "Change Display: Canny\n"; imshow( "Display", cannyOverlay ); } else if( key == 53 ) // Key press = '5' { cout << "Change Display: Hough Lines\n"; imshow( "Display", hough ); } else if( key == 54 ) // Key press = '6' { cout << "Change Display: Probabilistic Hough Lines\n"; imshow( "Display", houghP ); } else if( key == 55 ) // Key press = '7' { cout << "Change Display: Probabilistic Hough Lines with grouped lines\n"; imshow( "Display", grouped ); } else if( key == 56 ) // Key press = '8' { cout << "Change Display: Groove detection zone\n"; imshow( "Display", grooveZone ); } } // Save image file // imwrite( "output.jpg", grooveZone ); return 0; } void cannyEdgeDetection( Mat * canny, Mat * cannyOverlay, Mat * src, Mat * gaussian, int low_threshold, int high_threshold, int aperture, double overlayAlpha ) { // Canny image detection Canny( *gaussian, *canny, low_threshold, high_threshold, aperture ); // Overlay canny on source image *cannyOverlay = (*canny).clone(); // Copy canny image cvtColor( *cannyOverlay, *cannyOverlay, COLOR_GRAY2BGR ); // Convert canny image to BGR addWeighted( *src, overlayAlpha, *cannyOverlay, 1.0, 0.0, *cannyOverlay ); // Blend source image with canny image } void standardHoughLineDetection( Mat * dst, Mat * src, double rho, double theta, int threshold, double srn, double stn, Scalar lineColor, int lineThickness, int lineStyle ) { // Vector that stores parameters (r, theta) of detected lines vector<Vec2f> lines; // Standard Hough Line detection. Set of output lines is stored in 'lines' HoughLines( *src, lines, rho, theta, threshold, srn, stn ); // Draw Hough lines on output image for( size_t i = 0; i < lines.size(); i++ ) { float rho = lines[ i ][ 0 ]; float theta = lines[ i ][ 1 ]; Point pt1, pt2; double a = cos( theta ); double b = sin( theta ); double x0 = a * rho; double y0 = b * rho; pt1.x = cvRound( x0 + 1000 * ( -b ) ); pt1.y = cvRound( y0 + 1000 * ( a ) ); pt2.x = cvRound( x0 - 1000 * ( -b ) ); pt2.y = cvRound( y0 - 1000 * ( a ) ); line( *dst, pt1, pt2, lineColor, lineThickness, lineStyle ); } } void probabilisticHoughLineDetection( Mat * dst, Mat * src, vector<Vec4i> * lines, vector<Vec4i> * selectedLines, double rho, double theta, int threshold, double minLineLength, double maxLineGap, Scalar lineColor, Scalar selectedLineColor, int lineThickness, int lineStyle ) { // Probabilistic Hough Line Transform HoughLinesP( *src, *lines, rho, theta, threshold, minLineLength, maxLineGap ); // Draw Hough Probabilistic Lines double averageTheta = 0; for( size_t i = 0; i < (*lines).size(); i++ ) { Vec4i l = (*lines)[ i ]; // Calculate angle compared to bottom of window double hypotenuseLength = sqrt( ( abs( l[ 0 ] - l[ 2 ] ) ) * ( abs( l[ 0 ] - l[ 2 ] ) ) + ( abs( l[ 1 ] - l[ 3 ] ) ) * ( abs( l[ 1 ] - l[ 3 ] ) ) ); averageTheta += asin( abs( l[ 3 ] - l[ 1 ] ) / hypotenuseLength ) * 180 / ( CV_PI * (*lines).size() ); // Only check for vertical lines whose bottom and top X values are within 20 of each other if( abs( l[ 0 ] - l[ 2 ] ) < 20 ) { (*selectedLines).push_back( Vec4i( l[ 0 ], l[ 1 ], l[ 2 ], l[ 3 ] ) ); cout << "Push Back: ( " << l[ 0 ] << ", " << l[ 1 ] << " ) -> ( " << l[ 2 ] << ", " << l[ 3 ] << " )\n"; line( *dst, Point( l[ 0 ], l[ 1 ] ), Point( l[ 2 ], l[ 3 ] ), lineColor, lineThickness, LINE_AA ); } else { line( *dst, Point( l[ 0 ], l[ 1 ] ), Point( l[ 2 ], l[ 3 ] ), selectedLineColor, lineThickness - 1, lineStyle ); } } cout << "Average Theta: " << averageTheta << "\n\n"; } void probabilisticHoughLineGrouping( Mat * dst, vector<Vec4i> * inLines, vector<Vec4i> * outLines, Scalar lineColor, int lineThickness, int lineStyle ) { // Find groups of houghP lines and average them together for( size_t i = 0; i < (*inLines).size(); i++ ) { Vec4i currentLine = (*inLines)[ i ]; Vec4i avgLine = Vec4i( 0, 0, 0, 0 ); // Determine which coordinate is the top coordinate // First coordinate of average line is the top coordinate avgLine[ 0 ] += currentLine[ 1 ] < currentLine[ 3 ] ? currentLine[ 0 ] : currentLine[ 2 ]; avgLine[ 1 ] += currentLine[ 1 ] < currentLine[ 3 ] ? currentLine[ 1 ] : currentLine[ 3 ]; avgLine[ 2 ] += currentLine[ 1 ] < currentLine[ 3 ] ? currentLine[ 2 ] : currentLine[ 0 ]; avgLine[ 3 ] += currentLine[ 1 ] < currentLine[ 3 ] ? currentLine[ 3 ] : currentLine[ 1 ]; cout << "( " << currentLine[ 0 ] << ", " << currentLine[ 1 ] << " ) -> ( " << currentLine[ 2 ] << ", " << currentLine[ 3 ] << " )\n"; double currMedian = ( currentLine[ 0 ] + currentLine[ 2 ] ) / 2; int numLines = 1; for( size_t j = i + 1; j < (*inLines).size(); j++ ) { Vec4i compareLine = (*inLines)[ j ]; double compareMedian = ( compareLine[ 0 ] + compareLine[ 2 ] ) / 2; // If center of lines is within 20 pixels if( abs( compareMedian - currMedian ) < 30 || abs( currentLine[ 0 ] - compareLine[ 0 ] ) < 30 || abs( currentLine[ 2 ] - compareLine[ 2 ] ) < 30 ) { cout << "( " << compareLine[ 0 ] << ", " << compareLine[ 1 ] << " ) -> ( " << compareLine[ 2 ] << ", " << compareLine[ 3 ] << " )\n"; numLines++; // Determine which coordinate is the top coordinate // First coordinate of average line is the top coordinate avgLine[ 0 ] += compareLine[ 1 ] < compareLine[ 3 ] ? compareLine[ 0 ] : compareLine[ 2 ]; avgLine[ 1 ] += compareLine[ 1 ] < compareLine[ 3 ] ? compareLine[ 1 ] : compareLine[ 3 ]; avgLine[ 2 ] += compareLine[ 1 ] < compareLine[ 3 ] ? compareLine[ 2 ] : compareLine[ 0 ]; avgLine[ 3 ] += compareLine[ 1 ] < compareLine[ 3 ] ? compareLine[ 3 ] : compareLine[ 1 ]; // Remove line from the selected lines list // It should not be considered in the averages of another grouping (*inLines).erase( (*inLines).begin() + j ); // Decrement iterator // Next index of the list would be skipped after removal of previous line j--; } } if( numLines != 0 ) { cout << "Average Line: \n"; cout << avgLine[ 0 ] << " / " << numLines << " = "; avgLine[ 0 ] = avgLine[ 0 ] / numLines; cout << avgLine[ 0 ] << "\n" << avgLine[ 1 ] << " / " << numLines << " = "; avgLine[ 1 ] = avgLine[ 1 ] / numLines; cout << avgLine[ 1 ] << "\n" << avgLine[ 2 ] << " / " << numLines << " = "; avgLine[ 2 ] = avgLine[ 2 ] / numLines; cout << avgLine[ 2 ] << "\n" << avgLine[ 3 ] << " / " << numLines << " = "; avgLine[ 3 ] = avgLine[ 3 ] / numLines; cout << avgLine[ 3 ] << "\n"; (*outLines).push_back( avgLine ); cout << "( " << avgLine[ 0 ] << ", " << avgLine[ 1 ] << " ) -> ( " << avgLine[ 2 ] << ", " << avgLine[ 3 ] << " )\n\n"; line( *dst, Point( avgLine[ 0 ], avgLine[ 1 ] ), Point( avgLine[ 2 ], avgLine[ 3 ] ), lineColor, lineThickness, lineStyle ); } } } void sortLinesIncreasingTopX( vector<Vec4i>* lines ) { // Insertion Sort for( size_t i = 1; i < (*lines).size(); i++ ) { Vec4i current = (*lines)[ i ]; // Move values from 0 to i - 1 forward if greater than current value size_t j = i - 1; while( j >= 0 && (*lines)[ j ][ 0 ] > current[ 0 ] ) { // Swap (*lines)[ j + 1 ] = (*lines)[ j ]; j--; } (*lines)[ j + 1 ] = current; } } void drawROI( Mat * dst, vector<Vec4i> * lines, Scalar roiColor, double roiAlpha, int lineStyle ) { // Draw rectangles where grooves are estimated to be cout << "\n"; for( size_t i = 0; i < (*lines).size() - 1; i+= 2 ) { Vec4i line0 = (*lines)[ i ]; Vec4i line1 = (*lines)[ i + 1]; Mat dstCpy = (*dst).clone(); // Draw filled polygon on copy int numPoints = 4; // Four points on the polygon vector<Point> tmp; // Create vector of points to connect (the polygon is drawn in order of points added) tmp.push_back( Point( line0[ 0 ], line0[ 1 ] ) ); // Select top point of line 1 tmp.push_back( Point( line1[ 0 ], line1[ 1 ] ) ); // Connect to top point of line 2 tmp.push_back( Point( line1[ 2 ], line1[ 3 ] ) ); // Connect to bottom point of line 2 tmp.push_back( Point( line0[ 2 ], line0[ 3 ] ) ); // Connect to bottom point of line 1 const Point * polyPoints[ 1 ] = { &tmp[ 0 ] }; // Create pointer to first element of the point list fillPoly( dstCpy, polyPoints, &numPoints, 1, roiColor, lineStyle ); // Weight the image with ROI drawn with original image double alpha = 0.6; addWeighted( dstCpy, roiAlpha, *dst, 1.0 - roiAlpha, 0.0, *dst ); } }
[ "chiapputo.nick@gmail.com" ]
chiapputo.nick@gmail.com
db681e8153984a079e0866d1d559ebdd66b24cbf
1f427f45f4f0b2beafa69344c0a5f01b384bfa13
/TEP5/main.cpp
4528336121da283ae740d0e5cf073e80d7309a6d
[]
no_license
artsiomandryianau/TEPdynamicArrayCplusplus
14fdedee53baec0d35ec4ce4a5773a1d4b49c0e4
3ceb110edeab908f3e8aa00e9177fbd0e334798d
refs/heads/master
2020-09-07T07:49:22.613189
2019-11-14T10:58:09
2019-11-14T10:58:09
220,711,495
0
0
null
null
null
null
UTF-8
C++
false
false
579
cpp
#include <iostream> #include "CTable.h" #include "CFileErrCode.h" #include "CFileLastError.h" #include "CFileThrowEx.h" int main() { CFileThrowEx cfte; cfte.vOpenFile("CFTE_Text.txt"); cfte.vPrintLine("F"); cfte.vCloseFile(); cfte.vCloseFile(); CFileErrCode cfec; cfec.bOpenFile("CFEC_Text.txt"); cfec.bPrintLine("F"); cfec.bCloseFile(); cout << cfec.bCloseFile() << endl; CFileLastError cfle; cfle.vOpenFile("CFLE_Text.txt"); cfle.vPrintLine("F"); cfle.vCloseFile(); cfle.vCloseFile(); cout << cfle.bGetLastError() << endl; system("pause"); return 0; }
[ "artsiom.andryianau@gmail.com" ]
artsiom.andryianau@gmail.com
539e5a2198d55ae6305a9e41e1525bb90d9ef81e
5c268bc561b42255d23d5435235b341d7d7d9f7e
/src/modules/syncOffset.h
bf0dde7ba6f329410d8a035a620e2bb0b9db03cf
[]
no_license
bootchk/sleepSyncAgent
afb26a88fa58b6bf1b7b03f2eaa968da33888e7d
756f20e67bec1d9935b415fdb90662864a7a45d2
refs/heads/master
2021-01-20T20:56:37.324844
2018-04-30T19:12:09
2018-04-30T19:12:09
65,410,662
1
1
null
null
null
null
UTF-8
C++
false
false
243
h
#pragma once // embeddedMath #include <timeTypes.h> // DeltaTime /* * Knows how to calculate a sync offset, * time from not to next sync point, * adjusted for latencies. */ class SyncOffset { public: static DeltaTime calculate(); };
[ "bootch@nc.rr.com" ]
bootch@nc.rr.com
7877a5ba07d35c7595b120f1a29b66f75f360521
2e6d36478dcaa6fd2988d60b0a9020c47c077533
/TritonGraphics/src/TritonPlatform2/DirectX/BasicTypes/DXShader.h
b917d76ed7b9520362a964ae9e34e15e74c0afc7
[ "Apache-2.0" ]
permissive
nfwGytautas/Triton
81a29675ea8952fb8a64c7029c3ad51173944441
aa4e586b1170a9bc5f63b4f15920b20e1d05e8f1
refs/heads/master
2020-04-04T20:43:44.733741
2019-12-20T15:10:36
2019-12-20T15:10:36
156,258,770
2
1
null
null
null
null
UTF-8
C++
false
false
1,554
h
#pragma once #include "TritonPlatform2/DirectX/DXMacros.h" #include "TritonPlatform2/CrossTypes/Shader.h" namespace Triton { namespace Graphics { class DXContext; class DXShader : public Shader { const int c_SettingsBufferSlot = 0; const int c_MatrixBufferSlot = 1; const int c_PointLightsSlot = 2; const int c_SpotLightsSlot = 3; const int c_DirectionalLightsSlot = 4; const int c_CameraSlot = 5; public: DXShader(const Flags::ShaderFlagset& flags); virtual ~DXShader(); // Inherited via Shader virtual void enable() override; virtual void disable() override; virtual void update_matrices() override; private: void mapBuffer(ID3D11Buffer* buffer, D3D11_MAPPED_SUBRESOURCE& mappedResource); void unmapBuffer(ID3D11Buffer* buffer); void updateSettingsBuffer(); void updateMatricesBuffer(); void updateLightingBuffer(); void updatePLightBuffer(); void updateSLightBuffer(); void updateDLightBuffer(); void updateCameraBuffer(); private: ID3D11DeviceContext* m_deviceContext = nullptr; ID3D11VertexShader* m_vertexShader = nullptr; ID3D11PixelShader* m_pixelShader = nullptr; ID3D11InputLayout* m_layout = nullptr; ID3D11SamplerState* m_sampleState = nullptr; ID3D11Buffer* m_matrixBuffer = nullptr; ID3D11Buffer* m_settingsBuffer = nullptr; ID3D11Buffer* m_plightBuffer = nullptr; ID3D11Buffer* m_slightBuffer = nullptr; ID3D11Buffer* m_dlightBuffer = nullptr; ID3D11Buffer* m_cameraBuffer = nullptr; friend DXContext; }; } }
[ "gytautas.kk@gmail.com" ]
gytautas.kk@gmail.com
fef5e1fed194aba1d2fca84d2f09817f66406753
54ab54febf36f5b20078ee19c53e34ffbb9cdee6
/sprint00/t01/printDialog.h
9ca34dded0fc60d38da561e080d7af87bf5d6d8f
[ "MIT" ]
permissive
arni30/marathon-cpp
dca1a42fc1bbdffe68de7eaeb5dd2caaa8483eae
b8716599a891e2c534f2d63dd662931fe098e36a
refs/heads/master
2022-12-16T12:45:21.252421
2020-09-12T15:50:10
2020-09-12T15:50:10
291,640,605
0
0
null
null
null
null
UTF-8
C++
false
false
174
h
#ifndef T01_PRINTDIALOG_H #define T01_PRINTDIALOG_H #include <iostream> void printDialog(const std::string& name, const std::string& sentence); #endif //T01_PRINTDIALOG_H
[ "alex30jordan@gmail.com" ]
alex30jordan@gmail.com
58d3e892509523eb31400726adfc90969f0d76eb
9ae57ffbe6f8773ef0fe7b62b61da2d0005dd144
/Source/UE4Protobuf/google/protobuf/wrappers.pb.h
e34bb37f462dc7fa6d6d6ed41a3a65fb90efe8e3
[]
no_license
leigient/UE4Protobuf
afc3751defd03746619551f67ed8497ddc17f509
a4e8b2cef23f5dfdb980840bf5335fb43925f8c8
refs/heads/master
2021-06-21T19:10:49.036313
2017-07-20T02:02:30
2017-07-20T02:02:30
null
0
0
null
null
null
null
UTF-8
C++
false
true
46,369
h
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/protobuf/wrappers.proto #ifndef PROTOBUF_google_2fprotobuf_2fwrappers_2eproto__INCLUDED #define PROTOBUF_google_2fprotobuf_2fwrappers_2eproto__INCLUDED #include <string> #include <google/protobuf/stubs/common.h> #if GOOGLE_PROTOBUF_VERSION < 3002000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif #if 3002000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. #endif #include <google/protobuf/io/coded_stream.h> #include <google/protobuf/arena.h> #include <google/protobuf/arenastring.h> #include <google/protobuf/generated_message_util.h> #include <google/protobuf/metadata.h> #include <google/protobuf/message.h> #include <google/protobuf/repeated_field.h> // IWYU pragma: export #include <google/protobuf/extension_set.h> // IWYU pragma: export #include <google/protobuf/unknown_field_set.h> #ifdef _MSC_VER #pragma warning(disable: 4668) #endif //_MSC_VER // @@protoc_insertion_point(includes) namespace google { namespace protobuf { class BoolValue; class BoolValueDefaultTypeInternal; LIBPROTOBUF_EXPORT extern BoolValueDefaultTypeInternal _BoolValue_default_instance_; class BytesValue; class BytesValueDefaultTypeInternal; LIBPROTOBUF_EXPORT extern BytesValueDefaultTypeInternal _BytesValue_default_instance_; class DoubleValue; class DoubleValueDefaultTypeInternal; LIBPROTOBUF_EXPORT extern DoubleValueDefaultTypeInternal _DoubleValue_default_instance_; class FloatValue; class FloatValueDefaultTypeInternal; LIBPROTOBUF_EXPORT extern FloatValueDefaultTypeInternal _FloatValue_default_instance_; class Int32Value; class Int32ValueDefaultTypeInternal; LIBPROTOBUF_EXPORT extern Int32ValueDefaultTypeInternal _Int32Value_default_instance_; class Int64Value; class Int64ValueDefaultTypeInternal; LIBPROTOBUF_EXPORT extern Int64ValueDefaultTypeInternal _Int64Value_default_instance_; class StringValue; class StringValueDefaultTypeInternal; LIBPROTOBUF_EXPORT extern StringValueDefaultTypeInternal _StringValue_default_instance_; class UInt32Value; class UInt32ValueDefaultTypeInternal; LIBPROTOBUF_EXPORT extern UInt32ValueDefaultTypeInternal _UInt32Value_default_instance_; class UInt64Value; class UInt64ValueDefaultTypeInternal; LIBPROTOBUF_EXPORT extern UInt64ValueDefaultTypeInternal _UInt64Value_default_instance_; } // namespace protobuf } // namespace google namespace google { namespace protobuf { namespace protobuf_google_2fprotobuf_2fwrappers_2eproto { // Internal implementation detail -- do not call these. struct LIBPROTOBUF_EXPORT TableStruct { static const ::google::protobuf::uint32 offsets[]; static void InitDefaultsImpl(); static void Shutdown(); }; void LIBPROTOBUF_EXPORT AddDescriptors(); void LIBPROTOBUF_EXPORT InitDefaults(); } // namespace protobuf_google_2fprotobuf_2fwrappers_2eproto // =================================================================== class LIBPROTOBUF_EXPORT DoubleValue : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.DoubleValue) */ { public: DoubleValue(); virtual ~DoubleValue(); DoubleValue(const DoubleValue& from); inline DoubleValue& operator=(const DoubleValue& from) { CopyFrom(from); return *this; } inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { return GetArenaNoVirtual(); } inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { return MaybeArenaPtr(); } static const ::google::protobuf::Descriptor* descriptor(); static const DoubleValue& default_instance(); static inline const DoubleValue* internal_default_instance() { return reinterpret_cast<const DoubleValue*>( &_DoubleValue_default_instance_); } void UnsafeArenaSwap(DoubleValue* other); void Swap(DoubleValue* other); // implements Message ---------------------------------------------- inline DoubleValue* New() const PROTOBUF_FINAL { return New(NULL); } DoubleValue* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const DoubleValue& from); void MergeFrom(const DoubleValue& from); void Clear() PROTOBUF_FINAL; bool IsInitialized() const PROTOBUF_FINAL; size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const PROTOBUF_FINAL { return InternalSerializeWithCachedSizesToArray( ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); } int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(DoubleValue* other); protected: explicit DoubleValue(::google::protobuf::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::google::protobuf::Arena* arena); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return _internal_metadata_.arena(); } inline void* MaybeArenaPtr() const { return _internal_metadata_.raw_arena_ptr(); } public: ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // double value = 1; void clear_value(); static const int kValueFieldNumber = 1; double value() const; void set_value(double value); // @@protoc_insertion_point(class_scope:google.protobuf.DoubleValue) private: ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; friend class ::google::protobuf::Arena; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; double value_; mutable int _cached_size_; friend struct LIBPROTOBUF_EXPORT protobuf_google_2fprotobuf_2fwrappers_2eproto::TableStruct; }; // ------------------------------------------------------------------- class LIBPROTOBUF_EXPORT FloatValue : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.FloatValue) */ { public: FloatValue(); virtual ~FloatValue(); FloatValue(const FloatValue& from); inline FloatValue& operator=(const FloatValue& from) { CopyFrom(from); return *this; } inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { return GetArenaNoVirtual(); } inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { return MaybeArenaPtr(); } static const ::google::protobuf::Descriptor* descriptor(); static const FloatValue& default_instance(); static inline const FloatValue* internal_default_instance() { return reinterpret_cast<const FloatValue*>( &_FloatValue_default_instance_); } void UnsafeArenaSwap(FloatValue* other); void Swap(FloatValue* other); // implements Message ---------------------------------------------- inline FloatValue* New() const PROTOBUF_FINAL { return New(NULL); } FloatValue* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const FloatValue& from); void MergeFrom(const FloatValue& from); void Clear() PROTOBUF_FINAL; bool IsInitialized() const PROTOBUF_FINAL; size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const PROTOBUF_FINAL { return InternalSerializeWithCachedSizesToArray( ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); } int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(FloatValue* other); protected: explicit FloatValue(::google::protobuf::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::google::protobuf::Arena* arena); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return _internal_metadata_.arena(); } inline void* MaybeArenaPtr() const { return _internal_metadata_.raw_arena_ptr(); } public: ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // float value = 1; void clear_value(); static const int kValueFieldNumber = 1; float value() const; void set_value(float value); // @@protoc_insertion_point(class_scope:google.protobuf.FloatValue) private: ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; friend class ::google::protobuf::Arena; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; float value_; mutable int _cached_size_; friend struct LIBPROTOBUF_EXPORT protobuf_google_2fprotobuf_2fwrappers_2eproto::TableStruct; }; // ------------------------------------------------------------------- class LIBPROTOBUF_EXPORT Int64Value : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Int64Value) */ { public: Int64Value(); virtual ~Int64Value(); Int64Value(const Int64Value& from); inline Int64Value& operator=(const Int64Value& from) { CopyFrom(from); return *this; } inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { return GetArenaNoVirtual(); } inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { return MaybeArenaPtr(); } static const ::google::protobuf::Descriptor* descriptor(); static const Int64Value& default_instance(); static inline const Int64Value* internal_default_instance() { return reinterpret_cast<const Int64Value*>( &_Int64Value_default_instance_); } void UnsafeArenaSwap(Int64Value* other); void Swap(Int64Value* other); // implements Message ---------------------------------------------- inline Int64Value* New() const PROTOBUF_FINAL { return New(NULL); } Int64Value* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const Int64Value& from); void MergeFrom(const Int64Value& from); void Clear() PROTOBUF_FINAL; bool IsInitialized() const PROTOBUF_FINAL; size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const PROTOBUF_FINAL { return InternalSerializeWithCachedSizesToArray( ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); } int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(Int64Value* other); protected: explicit Int64Value(::google::protobuf::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::google::protobuf::Arena* arena); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return _internal_metadata_.arena(); } inline void* MaybeArenaPtr() const { return _internal_metadata_.raw_arena_ptr(); } public: ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // int64 value = 1; void clear_value(); static const int kValueFieldNumber = 1; ::google::protobuf::int64 value() const; void set_value(::google::protobuf::int64 value); // @@protoc_insertion_point(class_scope:google.protobuf.Int64Value) private: ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; friend class ::google::protobuf::Arena; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::google::protobuf::int64 value_; mutable int _cached_size_; friend struct LIBPROTOBUF_EXPORT protobuf_google_2fprotobuf_2fwrappers_2eproto::TableStruct; }; // ------------------------------------------------------------------- class LIBPROTOBUF_EXPORT UInt64Value : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.UInt64Value) */ { public: UInt64Value(); virtual ~UInt64Value(); UInt64Value(const UInt64Value& from); inline UInt64Value& operator=(const UInt64Value& from) { CopyFrom(from); return *this; } inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { return GetArenaNoVirtual(); } inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { return MaybeArenaPtr(); } static const ::google::protobuf::Descriptor* descriptor(); static const UInt64Value& default_instance(); static inline const UInt64Value* internal_default_instance() { return reinterpret_cast<const UInt64Value*>( &_UInt64Value_default_instance_); } void UnsafeArenaSwap(UInt64Value* other); void Swap(UInt64Value* other); // implements Message ---------------------------------------------- inline UInt64Value* New() const PROTOBUF_FINAL { return New(NULL); } UInt64Value* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const UInt64Value& from); void MergeFrom(const UInt64Value& from); void Clear() PROTOBUF_FINAL; bool IsInitialized() const PROTOBUF_FINAL; size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const PROTOBUF_FINAL { return InternalSerializeWithCachedSizesToArray( ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); } int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(UInt64Value* other); protected: explicit UInt64Value(::google::protobuf::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::google::protobuf::Arena* arena); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return _internal_metadata_.arena(); } inline void* MaybeArenaPtr() const { return _internal_metadata_.raw_arena_ptr(); } public: ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // uint64 value = 1; void clear_value(); static const int kValueFieldNumber = 1; ::google::protobuf::uint64 value() const; void set_value(::google::protobuf::uint64 value); // @@protoc_insertion_point(class_scope:google.protobuf.UInt64Value) private: ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; friend class ::google::protobuf::Arena; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::google::protobuf::uint64 value_; mutable int _cached_size_; friend struct LIBPROTOBUF_EXPORT protobuf_google_2fprotobuf_2fwrappers_2eproto::TableStruct; }; // ------------------------------------------------------------------- class LIBPROTOBUF_EXPORT Int32Value : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Int32Value) */ { public: Int32Value(); virtual ~Int32Value(); Int32Value(const Int32Value& from); inline Int32Value& operator=(const Int32Value& from) { CopyFrom(from); return *this; } inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { return GetArenaNoVirtual(); } inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { return MaybeArenaPtr(); } static const ::google::protobuf::Descriptor* descriptor(); static const Int32Value& default_instance(); static inline const Int32Value* internal_default_instance() { return reinterpret_cast<const Int32Value*>( &_Int32Value_default_instance_); } void UnsafeArenaSwap(Int32Value* other); void Swap(Int32Value* other); // implements Message ---------------------------------------------- inline Int32Value* New() const PROTOBUF_FINAL { return New(NULL); } Int32Value* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const Int32Value& from); void MergeFrom(const Int32Value& from); void Clear() PROTOBUF_FINAL; bool IsInitialized() const PROTOBUF_FINAL; size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const PROTOBUF_FINAL { return InternalSerializeWithCachedSizesToArray( ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); } int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(Int32Value* other); protected: explicit Int32Value(::google::protobuf::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::google::protobuf::Arena* arena); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return _internal_metadata_.arena(); } inline void* MaybeArenaPtr() const { return _internal_metadata_.raw_arena_ptr(); } public: ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // int32 value = 1; void clear_value(); static const int kValueFieldNumber = 1; ::google::protobuf::int32 value() const; void set_value(::google::protobuf::int32 value); // @@protoc_insertion_point(class_scope:google.protobuf.Int32Value) private: ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; friend class ::google::protobuf::Arena; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::google::protobuf::int32 value_; mutable int _cached_size_; friend struct LIBPROTOBUF_EXPORT protobuf_google_2fprotobuf_2fwrappers_2eproto::TableStruct; }; // ------------------------------------------------------------------- class LIBPROTOBUF_EXPORT UInt32Value : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.UInt32Value) */ { public: UInt32Value(); virtual ~UInt32Value(); UInt32Value(const UInt32Value& from); inline UInt32Value& operator=(const UInt32Value& from) { CopyFrom(from); return *this; } inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { return GetArenaNoVirtual(); } inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { return MaybeArenaPtr(); } static const ::google::protobuf::Descriptor* descriptor(); static const UInt32Value& default_instance(); static inline const UInt32Value* internal_default_instance() { return reinterpret_cast<const UInt32Value*>( &_UInt32Value_default_instance_); } void UnsafeArenaSwap(UInt32Value* other); void Swap(UInt32Value* other); // implements Message ---------------------------------------------- inline UInt32Value* New() const PROTOBUF_FINAL { return New(NULL); } UInt32Value* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const UInt32Value& from); void MergeFrom(const UInt32Value& from); void Clear() PROTOBUF_FINAL; bool IsInitialized() const PROTOBUF_FINAL; size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const PROTOBUF_FINAL { return InternalSerializeWithCachedSizesToArray( ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); } int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(UInt32Value* other); protected: explicit UInt32Value(::google::protobuf::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::google::protobuf::Arena* arena); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return _internal_metadata_.arena(); } inline void* MaybeArenaPtr() const { return _internal_metadata_.raw_arena_ptr(); } public: ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // uint32 value = 1; void clear_value(); static const int kValueFieldNumber = 1; ::google::protobuf::uint32 value() const; void set_value(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:google.protobuf.UInt32Value) private: ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; friend class ::google::protobuf::Arena; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::google::protobuf::uint32 value_; mutable int _cached_size_; friend struct LIBPROTOBUF_EXPORT protobuf_google_2fprotobuf_2fwrappers_2eproto::TableStruct; }; // ------------------------------------------------------------------- class LIBPROTOBUF_EXPORT BoolValue : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.BoolValue) */ { public: BoolValue(); virtual ~BoolValue(); BoolValue(const BoolValue& from); inline BoolValue& operator=(const BoolValue& from) { CopyFrom(from); return *this; } inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { return GetArenaNoVirtual(); } inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { return MaybeArenaPtr(); } static const ::google::protobuf::Descriptor* descriptor(); static const BoolValue& default_instance(); static inline const BoolValue* internal_default_instance() { return reinterpret_cast<const BoolValue*>( &_BoolValue_default_instance_); } void UnsafeArenaSwap(BoolValue* other); void Swap(BoolValue* other); // implements Message ---------------------------------------------- inline BoolValue* New() const PROTOBUF_FINAL { return New(NULL); } BoolValue* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const BoolValue& from); void MergeFrom(const BoolValue& from); void Clear() PROTOBUF_FINAL; bool IsInitialized() const PROTOBUF_FINAL; size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const PROTOBUF_FINAL { return InternalSerializeWithCachedSizesToArray( ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); } int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(BoolValue* other); protected: explicit BoolValue(::google::protobuf::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::google::protobuf::Arena* arena); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return _internal_metadata_.arena(); } inline void* MaybeArenaPtr() const { return _internal_metadata_.raw_arena_ptr(); } public: ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // bool value = 1; void clear_value(); static const int kValueFieldNumber = 1; bool value() const; void set_value(bool value); // @@protoc_insertion_point(class_scope:google.protobuf.BoolValue) private: ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; friend class ::google::protobuf::Arena; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; bool value_; mutable int _cached_size_; friend struct LIBPROTOBUF_EXPORT protobuf_google_2fprotobuf_2fwrappers_2eproto::TableStruct; }; // ------------------------------------------------------------------- class LIBPROTOBUF_EXPORT StringValue : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.StringValue) */ { public: StringValue(); virtual ~StringValue(); StringValue(const StringValue& from); inline StringValue& operator=(const StringValue& from) { CopyFrom(from); return *this; } inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { return GetArenaNoVirtual(); } inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { return MaybeArenaPtr(); } static const ::google::protobuf::Descriptor* descriptor(); static const StringValue& default_instance(); static inline const StringValue* internal_default_instance() { return reinterpret_cast<const StringValue*>( &_StringValue_default_instance_); } void UnsafeArenaSwap(StringValue* other); void Swap(StringValue* other); // implements Message ---------------------------------------------- inline StringValue* New() const PROTOBUF_FINAL { return New(NULL); } StringValue* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const StringValue& from); void MergeFrom(const StringValue& from); void Clear() PROTOBUF_FINAL; bool IsInitialized() const PROTOBUF_FINAL; size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const PROTOBUF_FINAL { return InternalSerializeWithCachedSizesToArray( ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); } int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(StringValue* other); protected: explicit StringValue(::google::protobuf::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::google::protobuf::Arena* arena); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return _internal_metadata_.arena(); } inline void* MaybeArenaPtr() const { return _internal_metadata_.raw_arena_ptr(); } public: ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // string value = 1; void clear_value(); static const int kValueFieldNumber = 1; const ::std::string& value() const; void set_value(const ::std::string& value); void set_value(const char* value); void set_value(const char* value, size_t size); ::std::string* mutable_value(); ::std::string* release_value(); void set_allocated_value(::std::string* value); ::std::string* unsafe_arena_release_value(); void unsafe_arena_set_allocated_value( ::std::string* value); // @@protoc_insertion_point(class_scope:google.protobuf.StringValue) private: ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; friend class ::google::protobuf::Arena; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::google::protobuf::internal::ArenaStringPtr value_; mutable int _cached_size_; friend struct LIBPROTOBUF_EXPORT protobuf_google_2fprotobuf_2fwrappers_2eproto::TableStruct; }; // ------------------------------------------------------------------- class LIBPROTOBUF_EXPORT BytesValue : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.BytesValue) */ { public: BytesValue(); virtual ~BytesValue(); BytesValue(const BytesValue& from); inline BytesValue& operator=(const BytesValue& from) { CopyFrom(from); return *this; } inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { return GetArenaNoVirtual(); } inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { return MaybeArenaPtr(); } static const ::google::protobuf::Descriptor* descriptor(); static const BytesValue& default_instance(); static inline const BytesValue* internal_default_instance() { return reinterpret_cast<const BytesValue*>( &_BytesValue_default_instance_); } void UnsafeArenaSwap(BytesValue* other); void Swap(BytesValue* other); // implements Message ---------------------------------------------- inline BytesValue* New() const PROTOBUF_FINAL { return New(NULL); } BytesValue* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const BytesValue& from); void MergeFrom(const BytesValue& from); void Clear() PROTOBUF_FINAL; bool IsInitialized() const PROTOBUF_FINAL; size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const PROTOBUF_FINAL { return InternalSerializeWithCachedSizesToArray( ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output); } int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(BytesValue* other); protected: explicit BytesValue(::google::protobuf::Arena* arena); private: static void ArenaDtor(void* object); inline void RegisterArenaDtor(::google::protobuf::Arena* arena); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return _internal_metadata_.arena(); } inline void* MaybeArenaPtr() const { return _internal_metadata_.raw_arena_ptr(); } public: ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // bytes value = 1; void clear_value(); static const int kValueFieldNumber = 1; const ::std::string& value() const; void set_value(const ::std::string& value); void set_value(const char* value); void set_value(const void* value, size_t size); ::std::string* mutable_value(); ::std::string* release_value(); void set_allocated_value(::std::string* value); ::std::string* unsafe_arena_release_value(); void unsafe_arena_set_allocated_value( ::std::string* value); // @@protoc_insertion_point(class_scope:google.protobuf.BytesValue) private: ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; friend class ::google::protobuf::Arena; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; ::google::protobuf::internal::ArenaStringPtr value_; mutable int _cached_size_; friend struct LIBPROTOBUF_EXPORT protobuf_google_2fprotobuf_2fwrappers_2eproto::TableStruct; }; // =================================================================== // =================================================================== #if !PROTOBUF_INLINE_NOT_IN_HEADERS // DoubleValue // double value = 1; inline void DoubleValue::clear_value() { value_ = 0; } inline double DoubleValue::value() const { // @@protoc_insertion_point(field_get:google.protobuf.DoubleValue.value) return value_; } inline void DoubleValue::set_value(double value) { value_ = value; // @@protoc_insertion_point(field_set:google.protobuf.DoubleValue.value) } // ------------------------------------------------------------------- // FloatValue // float value = 1; inline void FloatValue::clear_value() { value_ = 0; } inline float FloatValue::value() const { // @@protoc_insertion_point(field_get:google.protobuf.FloatValue.value) return value_; } inline void FloatValue::set_value(float value) { value_ = value; // @@protoc_insertion_point(field_set:google.protobuf.FloatValue.value) } // ------------------------------------------------------------------- // Int64Value // int64 value = 1; inline void Int64Value::clear_value() { value_ = GOOGLE_LONGLONG(0); } inline ::google::protobuf::int64 Int64Value::value() const { // @@protoc_insertion_point(field_get:google.protobuf.Int64Value.value) return value_; } inline void Int64Value::set_value(::google::protobuf::int64 value) { value_ = value; // @@protoc_insertion_point(field_set:google.protobuf.Int64Value.value) } // ------------------------------------------------------------------- // UInt64Value // uint64 value = 1; inline void UInt64Value::clear_value() { value_ = GOOGLE_ULONGLONG(0); } inline ::google::protobuf::uint64 UInt64Value::value() const { // @@protoc_insertion_point(field_get:google.protobuf.UInt64Value.value) return value_; } inline void UInt64Value::set_value(::google::protobuf::uint64 value) { value_ = value; // @@protoc_insertion_point(field_set:google.protobuf.UInt64Value.value) } // ------------------------------------------------------------------- // Int32Value // int32 value = 1; inline void Int32Value::clear_value() { value_ = 0; } inline ::google::protobuf::int32 Int32Value::value() const { // @@protoc_insertion_point(field_get:google.protobuf.Int32Value.value) return value_; } inline void Int32Value::set_value(::google::protobuf::int32 value) { value_ = value; // @@protoc_insertion_point(field_set:google.protobuf.Int32Value.value) } // ------------------------------------------------------------------- // UInt32Value // uint32 value = 1; inline void UInt32Value::clear_value() { value_ = 0u; } inline ::google::protobuf::uint32 UInt32Value::value() const { // @@protoc_insertion_point(field_get:google.protobuf.UInt32Value.value) return value_; } inline void UInt32Value::set_value(::google::protobuf::uint32 value) { value_ = value; // @@protoc_insertion_point(field_set:google.protobuf.UInt32Value.value) } // ------------------------------------------------------------------- // BoolValue // bool value = 1; inline void BoolValue::clear_value() { value_ = false; } inline bool BoolValue::value() const { // @@protoc_insertion_point(field_get:google.protobuf.BoolValue.value) return value_; } inline void BoolValue::set_value(bool value) { value_ = value; // @@protoc_insertion_point(field_set:google.protobuf.BoolValue.value) } // ------------------------------------------------------------------- // StringValue // string value = 1; inline void StringValue::clear_value() { value_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } inline const ::std::string& StringValue::value() const { // @@protoc_insertion_point(field_get:google.protobuf.StringValue.value) return value_.Get(); } inline void StringValue::set_value(const ::std::string& value) { value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:google.protobuf.StringValue.value) } inline void StringValue::set_value(const char* value) { value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_char:google.protobuf.StringValue.value) } inline void StringValue::set_value(const char* value, size_t size) { value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_pointer:google.protobuf.StringValue.value) } inline ::std::string* StringValue::mutable_value() { // @@protoc_insertion_point(field_mutable:google.protobuf.StringValue.value) return value_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } inline ::std::string* StringValue::release_value() { // @@protoc_insertion_point(field_release:google.protobuf.StringValue.value) return value_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } inline ::std::string* StringValue::unsafe_arena_release_value() { // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.StringValue.value) GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); return value_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } inline void StringValue::set_allocated_value(::std::string* value) { if (value != NULL) { } else { } value_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:google.protobuf.StringValue.value) } inline void StringValue::unsafe_arena_set_allocated_value( ::std::string* value) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (value != NULL) { } else { } value_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.StringValue.value) } // ------------------------------------------------------------------- // BytesValue // bytes value = 1; inline void BytesValue::clear_value() { value_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } inline const ::std::string& BytesValue::value() const { // @@protoc_insertion_point(field_get:google.protobuf.BytesValue.value) return value_.Get(); } inline void BytesValue::set_value(const ::std::string& value) { value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set:google.protobuf.BytesValue.value) } inline void BytesValue::set_value(const char* value) { value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_char:google.protobuf.BytesValue.value) } inline void BytesValue::set_value(const void* value, size_t size) { value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_pointer:google.protobuf.BytesValue.value) } inline ::std::string* BytesValue::mutable_value() { // @@protoc_insertion_point(field_mutable:google.protobuf.BytesValue.value) return value_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } inline ::std::string* BytesValue::release_value() { // @@protoc_insertion_point(field_release:google.protobuf.BytesValue.value) return value_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } inline ::std::string* BytesValue::unsafe_arena_release_value() { // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.BytesValue.value) GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); return value_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } inline void BytesValue::set_allocated_value(::std::string* value) { if (value != NULL) { } else { } value_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_set_allocated:google.protobuf.BytesValue.value) } inline void BytesValue::unsafe_arena_set_allocated_value( ::std::string* value) { GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); if (value != NULL) { } else { } value_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.BytesValue.value) } #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS // ------------------------------------------------------------------- // ------------------------------------------------------------------- // ------------------------------------------------------------------- // ------------------------------------------------------------------- // ------------------------------------------------------------------- // ------------------------------------------------------------------- // ------------------------------------------------------------------- // ------------------------------------------------------------------- // @@protoc_insertion_point(namespace_scope) } // namespace protobuf } // namespace google // @@protoc_insertion_point(global_scope) #endif // PROTOBUF_google_2fprotobuf_2fwrappers_2eproto__INCLUDED
[ "newzeadev@gmail.com" ]
newzeadev@gmail.com
a5dfbc226b92c325d054a208e73fed28115b7f39
92f4948f9e46d096e80a3b87e0d2d9f5d92876a7
/tachyon/containers/interval_container.h
e9378c452f4ab0f46b630fc631e26c262ecc075d
[ "MIT" ]
permissive
pjshort/tachyon
35cec9e7373b4173599f227c8748cda682f7b6d6
901af5cd126794ac8ec447e0a8bada8ef2878753
refs/heads/master
2020-03-16T12:03:12.537928
2018-05-01T13:47:48
2018-05-01T13:47:48
132,658,675
0
0
null
2018-05-08T20:03:16
2018-05-08T20:03:16
null
UTF-8
C++
false
false
3,350
h
#ifndef CONTAINERS_INTERVAL_CONTAINER_H_ #define CONTAINERS_INTERVAL_CONTAINER_H_ #include "../support/type_definitions.h" #include "../third_party/intervalTree.h" namespace tachyon{ namespace containers{ class IntervalContainer { private: typedef IntervalContainer self_type; typedef std::size_t size_type; typedef IntervalTree<U32,U32> value_type; typedef value_type& reference; typedef const value_type& const_reference; typedef value_type* pointer; typedef const value_type* const_pointer; public: IntervalContainer(); ~IntervalContainer(void); class iterator{ private: typedef iterator self_type; typedef std::forward_iterator_tag iterator_category; public: iterator(pointer ptr) : ptr_(ptr) { } void operator++() { ptr_++; } void operator++(int junk) { ptr_++; } reference operator*() const{ return *ptr_; } pointer operator->() const{ return ptr_; } bool operator==(const self_type& rhs) const{ return ptr_ == rhs.ptr_; } bool operator!=(const self_type& rhs) const{ return ptr_ != rhs.ptr_; } private: pointer ptr_; }; class const_iterator{ private: typedef const_iterator self_type; typedef std::forward_iterator_tag iterator_category; public: const_iterator(pointer ptr) : ptr_(ptr) { } void operator++() { ptr_++; } void operator++(int junk) { ptr_++; } const_reference operator*() const{ return *ptr_; } const_pointer operator->() const{ return ptr_; } bool operator==(const self_type& rhs) const{ return ptr_ == rhs.ptr_; } bool operator!=(const self_type& rhs) const{ return ptr_ != rhs.ptr_; } private: pointer ptr_; }; // Element access inline reference at(const size_type& position){ return(this->__entries[position]); } inline const_reference at(const size_type& position) const{ return(this->__entries[position]); } inline reference operator[](const size_type& position){ return(this->__entries[position]); } inline const_reference operator[](const size_type& position) const{ return(this->__entries[position]); } inline pointer data(void){ return(this->__entries); } inline const_pointer data(void) const{ return(this->__entries); } inline reference front(void){ return(this->__entries[0]); } inline const_reference front(void) const{ return(this->__entries[0]); } inline reference back(void){ return(this->__entries[this->n_entries - 1]); } inline const_reference back(void) const{ return(this->__entries[this->n_entries - 1]); } // Capacity inline const bool empty(void) const{ return(this->n_entries == 0); } inline const size_type& size(void) const{ return(this->n_entries); } // Iterator inline iterator begin(){ return iterator(&this->__entries[0]); } inline iterator end(){ return iterator(&this->__entries[this->n_entries]); } inline const_iterator begin() const{ return const_iterator(&this->__entries[0]); } inline const_iterator end() const{ return const_iterator(&this->__entries[this->n_entries]); } inline const_iterator cbegin() const{ return const_iterator(&this->__entries[0]); } inline const_iterator cend() const{ return const_iterator(&this->__entries[this->n_entries]); } private: size_t n_entries; pointer __entries; }; } } #endif /* CONTAINERS_INTERVAL_CONTAINER_H_ */
[ "mk819@cam.ac.uk" ]
mk819@cam.ac.uk
28fecf1b893691651e6557afb7ea83799f2ba346
0408d086a3fd502113588a61b36755fe23f55b10
/code/16681 등산.cpp
8aa160e4b718d28b1414c5b41a6bc52575dc06d4
[]
no_license
dwax1324/baekjoon
6dfcf62f2b1643480b16777c37f4e5d711b932d9
3a6daf8a66dbb304af8a4002989c081dcffc831d
refs/heads/main
2023-04-03T03:56:50.410972
2021-03-29T11:51:30
2021-03-29T11:51:30
310,809,466
2
0
null
null
null
null
UTF-8
C++
false
false
2,319
cpp
#include <bits/stdc++.h> using namespace std; #define fastio ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL) #define debug freopen("input.txt", "r", stdin), freopen("output.txt", "w", stdout) #define sz(x) (int)(x).size() #define all(x) (x).begin(), (x).end() #define rall(x) (x).rbegin(), (x).rend() #define o1 first #define o2 second typedef pair<int,int> pii; typedef tuple<int,int,int> tiii; #define int int64_t /* ⁽⁽◝( ˙ ꒳ ˙ )◜⁾⁾ ⁽⁽◝( ˙ ꒳ ˙ )◜⁾⁾ ⁽⁽◝( ˙ ꒳ ˙ )◜⁾⁾ 2021.01.25 Mon comment: 다익스트라 ⁽⁽◝( ˙ ꒳ ˙ )◜⁾⁾ ⁽⁽◝( ˙ ꒳ ˙ )◜⁾⁾ ⁽⁽◝( ˙ ꒳ ˙ )◜⁾⁾*/ const int MAX_N = 100001, INF = 1LL<<62; int N,M,D,E, vi[MAX_N], height[MAX_N]; vector<pii> adj[MAX_N]; int dist[MAX_N]; int* dijkstra(int u){ priority_queue<pii,vector<pii>,greater<pii>> pq; memset(vi,0,sizeof(vi)); fill(dist,dist+MAX_N,INF); dist[u] =0; pq.push({0,u}); while(pq.size()){ int curr = pq.top().o2; while(pq.size() && vi[curr]){ pq.pop(); curr= pq.top().o2; } if(vi[curr]) break; vi[curr] = true; for(auto x : adj[curr]){ int next = x.o1, w = x.o2; if(height[curr] < height[next] && dist[next] > dist[curr] + w){ dist[next] = dist[curr] +w; pq.push({dist[next],next}); } } } int *ret = (int*)malloc(sizeof(int)*N); for(int i=0; i < N; i++){ ret[i] = dist[i]; } return ret; } void solve(){ cin >> N >> M >> D >> E; for(int i=0; i < N; i++){ cin >> height[i]; } for(int i=0; i < M; i++){ int u,v,w; cin >> u >> v >> w;u--;v--; adj[u].push_back({v,w}); adj[v].push_back({u,w}); } int *arr = dijkstra(0); int *arr2 = dijkstra(N-1); int ans=-(1LL<<62); for(int i=0; i < N; i++){ if(arr[i] == INF || arr2[i] == INF) continue; ans = max(ans,(E*height[i] - D*(arr[i]+arr2[i]))); } (ans == -(1LL<<62) )? cout << "Impossible\n" : cout << ans << '\n'; free(arr); free(arr2); } int32_t main() { int t=1; fastio; // debug; { // cin >> t; for(int i=1; i <= t; i++) solve(); } }
[ "dwax1324@gmail.com" ]
dwax1324@gmail.com
4be89cd0c6be972df4aaeb7ff6ccc53f3acb6033
a33aac97878b2cb15677be26e308cbc46e2862d2
/program_data/PKU_raw/93/1005.c
9f28ce3c07324aa410e4e27f071d719e81ab8bd0
[]
no_license
GabeOchieng/ggnn.tensorflow
f5d7d0bca52258336fc12c9de6ae38223f28f786
7c62c0e8427bea6c8bec2cebf157b6f1ea70a213
refs/heads/master
2022-05-30T11:17:42.278048
2020-05-02T11:33:31
2020-05-02T11:33:31
null
0
0
null
null
null
null
UTF-8
C++
false
false
311
c
int op(int n,int i)//????,??????????? { if(i==1) cout<<" "; cout<<n; return 0; } int main() { int n;//n??????? int i=0;//i????????????? cin>>n; for (int k=3;k<=7;k+=2)//???????????k?? { if (n%k==0) { op(k,i); i=1; } } if (i==0) cout<<'n';//??????,??n return 0; }
[ "bdqnghi@gmail.com" ]
bdqnghi@gmail.com