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 986
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 3.89k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 145
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 122
values | content stringlengths 3 10.4M | authors listlengths 1 1 | author_id stringlengths 0 158 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1f9d27505875be4c9ca798ae6c44d039af94b517 | 6d54a7b26d0eb82152a549a6a9dfde656687752c | /src/app/MessageDef/EventDataIB.cpp | 471ccfae07e54f03d60d0eec9fc15aa36aed7554 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | project-chip/connectedhomeip | 81a123d675cf527773f70047d1ed1c43be5ffe6d | ea3970a7f11cd227ac55917edaa835a2a9bc4fc8 | refs/heads/master | 2023-09-01T11:43:37.546040 | 2023-09-01T08:01:32 | 2023-09-01T08:01:32 | 244,694,174 | 6,409 | 1,789 | Apache-2.0 | 2023-09-14T20:56:31 | 2020-03-03T17:05:10 | C++ | UTF-8 | C++ | false | false | 11,997 | cpp | /**
*
* Copyright (c) 2020 Project CHIP Authors
* Copyright (c) 2018 Google LLC.
* Copyright (c) 2016-2017 Nest Labs, Inc.
* Licensed 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.
*/
/**
* @file
* This file defines EventDataIB parser and builder in CHIP interaction model
*
*/
#include "EventDataIB.h"
#include "MessageDefHelper.h"
#include <inttypes.h>
#include <stdarg.h>
#include <stdio.h>
#include <app/AppConfig.h>
namespace chip {
namespace app {
#if CHIP_CONFIG_IM_PRETTY_PRINT
CHIP_ERROR EventDataIB::Parser::PrettyPrint() const
{
CHIP_ERROR err = CHIP_NO_ERROR;
TLV::TLVReader reader;
PRETTY_PRINT("EventDataIB =");
PRETTY_PRINT("{");
// make a copy of the Path reader
reader.Init(mReader);
while (CHIP_NO_ERROR == (err = reader.Next()))
{
if (!TLV::IsContextTag(reader.GetTag()))
{
continue;
}
uint32_t tagNum = TLV::TagNumFromTag(reader.GetTag());
switch (tagNum)
{
case to_underlying(Tag::kPath): {
EventPathIB::Parser path;
ReturnErrorOnFailure(path.Init(reader));
PRETTY_PRINT_INCDEPTH();
ReturnErrorOnFailure(path.PrettyPrint());
PRETTY_PRINT_DECDEPTH();
}
break;
case to_underlying(Tag::kEventNumber):
VerifyOrReturnError(TLV::kTLVType_UnsignedInteger == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE);
#if CHIP_DETAIL_LOGGING
{
EventNumber number;
ReturnErrorOnFailure(reader.Get(number));
PRETTY_PRINT("\tEventNumber = 0x%" PRIx64 ",", number);
}
#endif // CHIP_DETAIL_LOGGING
break;
case to_underlying(Tag::kPriority):
VerifyOrReturnError(TLV::kTLVType_UnsignedInteger == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE);
#if CHIP_DETAIL_LOGGING
{
uint64_t value;
ReturnErrorOnFailure(reader.Get(value));
PRETTY_PRINT("\tPriorityLevel = 0x%" PRIx64 ",", value);
}
#endif // CHIP_DETAIL_LOGGING
break;
case to_underlying(Tag::kEpochTimestamp):
VerifyOrReturnError(TLV::kTLVType_UnsignedInteger == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE);
#if CHIP_DETAIL_LOGGING
{
uint64_t value;
ReturnErrorOnFailure(reader.Get(value));
PRETTY_PRINT("\tEpochTimestamp = 0x%" PRIx64 ",", value);
}
#endif // CHIP_DETAIL_LOGGING
break;
case to_underlying(Tag::kSystemTimestamp):
VerifyOrReturnError(TLV::kTLVType_UnsignedInteger == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE);
#if CHIP_DETAIL_LOGGING
{
uint64_t value;
ReturnErrorOnFailure(reader.Get(value));
PRETTY_PRINT("\tSystemTimestamp = 0x%" PRIx64 ",", value);
}
#endif // CHIP_DETAIL_LOGGING
break;
case to_underlying(Tag::kDeltaEpochTimestamp):
VerifyOrReturnError(TLV::kTLVType_UnsignedInteger == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE);
#if CHIP_DETAIL_LOGGING
{
uint64_t value;
ReturnErrorOnFailure(reader.Get(value));
PRETTY_PRINT("\tDeltaEpochTimestampstamp= 0x%" PRIx64 ",", value);
}
#endif // CHIP_DETAIL_LOGGING
break;
case to_underlying(Tag::kDeltaSystemTimestamp):
VerifyOrReturnError(TLV::kTLVType_UnsignedInteger == reader.GetType(), CHIP_ERROR_WRONG_TLV_TYPE);
#if CHIP_DETAIL_LOGGING
{
uint64_t value;
ReturnErrorOnFailure(reader.Get(value));
PRETTY_PRINT("\tDeltaSystemTimestamp = 0x%" PRIx64 ",", value);
}
#endif // CHIP_DETAIL_LOGGING
break;
case to_underlying(Tag::kData):
PRETTY_PRINT_INCDEPTH();
ReturnErrorOnFailure(CheckIMPayload(reader, 0, "EventData"));
PRETTY_PRINT_DECDEPTH();
break;
default:
PRETTY_PRINT("Unknown tag num %" PRIu32, tagNum);
break;
}
}
PRETTY_PRINT("},");
PRETTY_PRINT_BLANK_LINE();
// if we have exhausted this container
if (CHIP_END_OF_TLV == err)
{
err = CHIP_NO_ERROR;
}
ReturnErrorOnFailure(err);
return reader.ExitContainer(mOuterContainerType);
}
#endif // CHIP_CONFIG_IM_PRETTY_PRINT
CHIP_ERROR EventDataIB::Parser::GetPath(EventPathIB::Parser * const apPath)
{
TLV::TLVReader reader;
ReturnErrorOnFailure(mReader.FindElementWithTag(TLV::ContextTag(Tag::kPath), reader));
ReturnErrorOnFailure(apPath->Init(reader));
return CHIP_NO_ERROR;
}
CHIP_ERROR EventDataIB::Parser::GetPriority(uint8_t * const apPriority)
{
return GetUnsignedInteger(to_underlying(Tag::kPriority), apPriority);
}
CHIP_ERROR EventDataIB::Parser::GetEventNumber(EventNumber * const apEventNumber)
{
return GetUnsignedInteger(to_underlying(Tag::kEventNumber), apEventNumber);
}
CHIP_ERROR EventDataIB::Parser::GetEpochTimestamp(uint64_t * const apEpochTimestamp)
{
return GetUnsignedInteger(to_underlying(Tag::kEpochTimestamp), apEpochTimestamp);
}
CHIP_ERROR EventDataIB::Parser::GetSystemTimestamp(uint64_t * const apSystemTimestamp)
{
return GetUnsignedInteger(to_underlying(Tag::kSystemTimestamp), apSystemTimestamp);
}
CHIP_ERROR EventDataIB::Parser::GetDeltaEpochTimestamp(uint64_t * const apDeltaEpochTimestampstamp)
{
return GetUnsignedInteger(to_underlying(Tag::kDeltaEpochTimestamp), apDeltaEpochTimestampstamp);
}
CHIP_ERROR EventDataIB::Parser::GetDeltaSystemTimestamp(uint64_t * const apDeltaSystemTimestamp)
{
return GetUnsignedInteger(to_underlying(Tag::kDeltaSystemTimestamp), apDeltaSystemTimestamp);
}
CHIP_ERROR EventDataIB::Parser::GetData(TLV::TLVReader * const apReader) const
{
return mReader.FindElementWithTag(TLV::ContextTag(Tag::kData), *apReader);
}
CHIP_ERROR EventDataIB::Parser::ProcessEventPath(EventPathIB::Parser & aEventPath, ConcreteEventPath & aConcreteEventPath)
{
// The ReportData must contain a concrete event path
CHIP_ERROR err = aEventPath.GetEndpoint(&(aConcreteEventPath.mEndpointId));
VerifyOrReturnError(err == CHIP_NO_ERROR, CHIP_ERROR_IM_MALFORMED_EVENT_PATH_IB);
err = aEventPath.GetCluster(&(aConcreteEventPath.mClusterId));
VerifyOrReturnError(err == CHIP_NO_ERROR, CHIP_ERROR_IM_MALFORMED_EVENT_PATH_IB);
err = aEventPath.GetEvent(&(aConcreteEventPath.mEventId));
VerifyOrReturnError(err == CHIP_NO_ERROR, CHIP_ERROR_IM_MALFORMED_EVENT_PATH_IB);
return CHIP_NO_ERROR;
}
CHIP_ERROR EventDataIB::Parser::ProcessEventTimestamp(EventHeader & aEventHeader)
{
CHIP_ERROR err = CHIP_NO_ERROR;
uint64_t timeStampVal = 0;
bool hasSystemTimestamp = false;
bool hasEpochTimestamp = false;
bool hasDeltaSystemTimestamp = false;
bool hasDeltaEpochTimestamp = false;
err = GetDeltaSystemTimestamp(&timeStampVal);
if (err == CHIP_END_OF_TLV)
{
err = CHIP_NO_ERROR;
}
else if (err == CHIP_NO_ERROR)
{
VerifyOrReturnError(aEventHeader.mTimestamp.IsSystem(), CHIP_ERROR_IM_MALFORMED_EVENT_DATA_IB);
aEventHeader.mTimestamp.mValue += timeStampVal;
hasDeltaSystemTimestamp = true;
}
ReturnErrorOnFailure(err);
err = GetDeltaEpochTimestamp(&timeStampVal);
if (err == CHIP_END_OF_TLV)
{
err = CHIP_NO_ERROR;
}
else if (err == CHIP_NO_ERROR)
{
VerifyOrReturnError(aEventHeader.mTimestamp.IsEpoch(), CHIP_ERROR_IM_MALFORMED_EVENT_DATA_IB);
aEventHeader.mTimestamp.mValue += timeStampVal;
hasDeltaEpochTimestamp = true;
}
ReturnErrorOnFailure(err);
err = GetSystemTimestamp(&timeStampVal);
if (err == CHIP_END_OF_TLV)
{
err = CHIP_NO_ERROR;
}
else if (err == CHIP_NO_ERROR)
{
aEventHeader.mTimestamp.mType = Timestamp::Type::kSystem;
aEventHeader.mTimestamp.mValue = timeStampVal;
hasSystemTimestamp = true;
}
ReturnErrorOnFailure(err);
err = GetEpochTimestamp(&timeStampVal);
if (err == CHIP_END_OF_TLV)
{
err = CHIP_NO_ERROR;
}
else if (err == CHIP_NO_ERROR)
{
aEventHeader.mTimestamp.mType = Timestamp::Type::kEpoch;
aEventHeader.mTimestamp.mValue = timeStampVal;
hasEpochTimestamp = true;
}
if (hasSystemTimestamp + hasEpochTimestamp + hasDeltaSystemTimestamp + hasDeltaEpochTimestamp == 1)
{
return CHIP_NO_ERROR;
}
return CHIP_ERROR_IM_MALFORMED_EVENT_DATA_IB;
}
CHIP_ERROR EventDataIB::Parser::DecodeEventHeader(EventHeader & aEventHeader)
{
uint8_t priorityLevel = 0;
EventPathIB::Parser path;
ReturnErrorOnFailure(GetPath(&path));
ReturnErrorOnFailure(ProcessEventPath(path, aEventHeader.mPath));
ReturnErrorOnFailure(GetEventNumber(&(aEventHeader.mEventNumber)));
ReturnErrorOnFailure(GetPriority(&priorityLevel));
aEventHeader.mPriorityLevel = static_cast<PriorityLevel>(priorityLevel);
ReturnErrorOnFailure(ProcessEventTimestamp(aEventHeader));
return CHIP_NO_ERROR;
}
EventPathIB::Builder & EventDataIB::Builder::CreatePath()
{
// skip if error has already been set
if (mError == CHIP_NO_ERROR)
{
mError = mPath.Init(mpWriter, to_underlying(Tag::kPath));
}
return mPath;
}
EventDataIB::Builder & EventDataIB::Builder::Priority(const uint8_t aPriority)
{
// skip if error has already been set
if (mError == CHIP_NO_ERROR)
{
mError = mpWriter->Put(TLV::ContextTag(Tag::kPriority), aPriority);
}
return *this;
}
EventDataIB::Builder & EventDataIB::Builder::EventNumber(const uint64_t aEventNumber)
{
// skip if error has already been set
if (mError == CHIP_NO_ERROR)
{
mError = mpWriter->Put(TLV::ContextTag(Tag::kEventNumber), aEventNumber);
}
return *this;
}
EventDataIB::Builder & EventDataIB::Builder::EpochTimestamp(const uint64_t aEpochTimestamp)
{
// skip if error has already been set
if (mError == CHIP_NO_ERROR)
{
mError = mpWriter->Put(TLV::ContextTag(Tag::kEpochTimestamp), aEpochTimestamp);
}
return *this;
}
EventDataIB::Builder & EventDataIB::Builder::SystemTimestamp(const uint64_t aSystemTimestamp)
{
// skip if error has already been set
if (mError == CHIP_NO_ERROR)
{
mError = mpWriter->Put(TLV::ContextTag(Tag::kSystemTimestamp), aSystemTimestamp);
}
return *this;
}
EventDataIB::Builder & EventDataIB::Builder::DeltaEpochTimestamp(const uint64_t aDeltaEpochTimestamp)
{
// skip if error has already been set
if (mError == CHIP_NO_ERROR)
{
mError = mpWriter->Put(TLV::ContextTag(Tag::kDeltaEpochTimestamp), aDeltaEpochTimestamp);
}
return *this;
}
EventDataIB::Builder & EventDataIB::Builder::DeltaSystemTimestamp(const uint64_t aDeltaSystemTimestamp)
{
// skip if error has already been set
if (mError == CHIP_NO_ERROR)
{
mError = mpWriter->Put(TLV::ContextTag(Tag::kDeltaSystemTimestamp), aDeltaSystemTimestamp);
}
return *this;
}
// Mark the end of this element and recover the type for outer container
CHIP_ERROR EventDataIB::Builder::EndOfEventDataIB()
{
EndOfContainer();
return GetError();
}
} // namespace app
} // namespace chip
| [
"noreply@github.com"
] | project-chip.noreply@github.com |
104feedc3ec81dcfe782a22ad39a8683cea5f33d | bcd7af39651170ef451d2781943069439bbd3507 | /Rook.hpp | 09e1009370eaef9628a83107d7580f6e9cf2ffcb | [] | no_license | jacksonlawson/chess-challenge | 39bf571a3f36b3a43c9760fec6541c8b717e273c | 358deb7ea30c7ed37e0b9e64baf1970320a04848 | refs/heads/master | 2021-09-02T04:38:13.440895 | 2017-12-30T11:27:40 | 2017-12-30T11:27:40 | 115,333,905 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,009 | hpp |
#ifndef __ROOK_HPP__
#define __ROOK_HPP__
#include <Piece.hpp>
namespace chess_console
{
class Rook : public Piece
{
public:
static PieceType const type = PieceType::ptRook;
Rook(Board *pbrdptr, PlayerColor pplayer, BoardPosition pposition)
: Piece(pbrdptr, pplayer, pposition, Piece::PieceType::ptRook)
{
}
bool isValidMove(const BoardPosition pposition)
{
const BoardPosition cpos = getCurrentPosition();
if (cpos == pposition)
return false;
auto lmbexp = [this](auto & p) {
if (p)
{
if (p->getPlayerColor() == getPlayerColor())
{
return false;
}
else
{
return true;
}
}
return true;
};
auto p = getBoard()->getPieceAt(pposition.row, pposition.column);
if (lmbexp(p) == false)
{
return false;
}
// Check for obstacles like a piece of same color is in the path / target
// piece of opposite color is in between target and current position.
// If target position has opposite color piece take it out of active list.
if (cpos.row == pposition.row)
{
// std::cout << "Inside the ROOK same row move" << std::endl;
int const COLDIFF = pposition.column - cpos.column;
int const sign = COLDIFF > 0 ? 1 : -1;
for (int i = 1; i < std::abs(COLDIFF) + 1; ++i)
{
auto p = getBoard()->getPieceAt(cpos.row, cpos.column + (i * sign));
if (lmbexp(p) == false)
{
std::cout << "Invalid move for ROOK column wise" << std::endl;
return false;
}
}
return true;
}
if (cpos.column == pposition.column)
{
int const ROWDIFF = pposition.row - cpos.row;
int const sign = ROWDIFF > 0 ? 1 : -1;
for (int i = 1; i < std::abs(ROWDIFF) + 1; ++i)
{
auto p = getBoard()->getPieceAt(cpos.row + (i * sign), cpos.column);
if (lmbexp(p) == false)
{
std::cerr << "Invalid move for ROOK row wise" << std::endl;
return false;
}
}
return true;
}
return false;
}
std::string tostring() override
{
return getPlayerColorStr() + "R";
}
};
}
#endif
| [
"gnulinux2000@gmail.com"
] | gnulinux2000@gmail.com |
5dcc7883a5e98e01ec0d735e8baae866d01db0bf | 20f67cab1d1b83517dc5e93eb5cc39857ccd2c98 | /hunt the wumpus/bats.cpp | 722a8776efa8321bf55a6b54fa61d56726d1b460 | [] | no_license | DavidSahni/past-assignments | fa1cfea0c061f66b9acdb7bb14807dbe9c08de47 | 5c5b62c77ca1d1791b0f30773b9e4ad901e7e955 | refs/heads/master | 2021-01-21T18:49:46.894408 | 2017-05-22T19:45:10 | 2017-05-22T19:45:10 | 92,083,984 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 728 | cpp | //Program Filename: bats.cpp
//Author: David Sahni
//Date: 3/6/17
//Description: bats implementation file
//Input: n/a
//Output: runs bats functions
#include "bats.hpp"
Bats::Bats(){}
void Bats::runevent(int roomnum, player& p1, bool& gamerunning) {
std::cout << std::endl << "As you enter the room, giant bats swoop down from the rafters!!" << std::endl <<
"You feel its massive talons digging into your shoulders as it lifts you into the air!" << std::endl << std::endl;
int i = rand() % roomnum;
int j = rand() % roomnum;
p1.i = i;
p1.j = j;
p1.moved = true;
}
void Bats::perception() {
std::cout << "You hear wings flapping..." << std::endl;
}
bool Bats::iswumpus() {
return false;
} | [
"noreply@github.com"
] | DavidSahni.noreply@github.com |
31c03ed837c67de8ccdf658f553c7f50320d112b | cc6fc7b8fab0b25e83dfd148c18bcbb322dd4209 | /app/src/main/jni/ModelSettingJson.h | e94de212a0c95165680210dde4e33b86e9702ab4 | [] | no_license | HuyNguyen1590/live2d-android-wear | 372071c9e96ee565d81e16c3b5e826154e14ee2a | 6b733d4d1b0c3fe0a7824e91276bebf242c1d48a | refs/heads/master | 2021-05-31T19:01:20.843536 | 2016-06-19T23:46:01 | 2016-06-19T23:46:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,919 | h | /**
*
* You can modify and use this source freely
* only for the development of application related Live2D.
*
* (c) Live2D Inc. All rights reserved.
*/
#include "ModelSetting.h"
#include "util/Json.h"
// JSONのキー
const char NAME[]="name";
const char MODEL[]="model";
const char _ID[]="id";
const char TEXTURES[]="textures";
const char TEXTURE_DIR[]="texture_dir";
const char INIT_PARAM[]="init_param";
const char INIT_PARTS_VISIBLE[]="init_parts_visible";
const char HIT_AREAS[]="hit_areas";
const char EXPRESSIONS[]="expressions";
const char POSE[]="pose";
const char PHYSICS[]="physics";
const char MOTION_GROUPS[]="motions";
const char SOUND[]="sound";
const char FADE_IN[]="fade_in";
const char FADE_OUT[]="fade_out";
const char VAL[]="val";
const char LAYOUT[]="layout";
const char _FILE[]="file";
class ModelSettingJson : public ModelSetting
{
private:
live2d::Json* json;
// キーが存在するかどうかのチェック
bool existModelName() {return ! json->getRoot()[NAME].isNull() ;}
bool existModelFile() {return ! json->getRoot()[MODEL].isNull() ;}
bool existTextureFiles() {return ! json->getRoot()[TEXTURES].isNull() ;}
bool existInitParam() {return ! json->getRoot()[INIT_PARAM].isNull() ;}
bool existInitPartsVisible(){return ! json->getRoot()[INIT_PARTS_VISIBLE].isNull();}
bool existHitAreas() {return ! json->getRoot()[HIT_AREAS].isNull() ;}
bool existPhysicsFile() {return ! json->getRoot()[PHYSICS].isNull() ;}
bool existPoseFile() {return ! json->getRoot()[POSE].isNull() ;}
bool existExpressionFile() {return ! json->getRoot()[EXPRESSIONS].isNull() ;}
bool existMotionGroups() {return ! json->getRoot()[MOTION_GROUPS].isNull() ;}
bool existMotionGroup(const char* name) {return ! json->getRoot()[MOTION_GROUPS][name].isNull() ;}
bool existMotionSound(const char* name,int n) {return ! json->getRoot()[MOTION_GROUPS][name][n][SOUND].isNull();}
bool existMotionFadeIn(const char* name,int n) {return ! json->getRoot()[MOTION_GROUPS][name][n][FADE_IN].isNull();}
bool existMotionFadeOut(const char* name,int n) {return ! json->getRoot()[MOTION_GROUPS][name][n][FADE_OUT].isNull();}
public:
ModelSettingJson(const char* buf,size_t size){
json = live2d::Json::parseFromBytes( buf,(int)size ) ;
}
~ModelSettingJson(){
delete json;
}
// モデルデータについて
const char* getModelName()
{
if(!existModelName())return "";
return json->getRoot()[NAME].toString().c_str();
}
const char* getModelFile()
{
if(!existModelFile())return "";
return json->getRoot()[MODEL].toString().c_str();
}
// テクスチャについて
int getTextureNum()
{
if(!existTextureFiles())return 0;
return json->getRoot()[TEXTURES].size() ;
}
virtual const char* getTextureDir()
{
return json->getRoot()[TEXTURE_DIR].c_str() ;
}
const char* getTextureFile(int n) { return json->getRoot()[TEXTURES][n].toString().c_str(); }
// 初期パラメータについて
int getInitParamNum()
{
if(!existInitParam())return 0;
return json->getRoot()[INIT_PARAM].size();
}
float getInitParamValue(int n) { return json->getRoot()[INIT_PARAM][n][VAL].toDouble(); }
const char* getInitParamID(int n) { return json->getRoot()[INIT_PARAM][n][_ID].toString().c_str(); }
// 初期パーツ表示について
int getInitPartsVisibleNum()
{
if(!existInitPartsVisible())return 0;
return json->getRoot()[INIT_PARTS_VISIBLE].size();
}
float getInitPartsVisibleValue(int n) { return json->getRoot()[INIT_PARTS_VISIBLE][n][VAL].toDouble(); }
const char* getInitPartsVisibleID(int n) { return json->getRoot()[INIT_PARTS_VISIBLE][n][_ID].toString().c_str(); }
// あたり判定について
int getHitAreasNum()
{
if(!existHitAreas())return 0;
return json->getRoot()[HIT_AREAS].size() ;
}
const char* getHitAreaID(int n) {return json->getRoot()[HIT_AREAS][n][_ID].toString().c_str();}
const char* getHitAreaName(int n) {return json->getRoot()[HIT_AREAS][n][NAME].toString().c_str();}
// 物理演算、パーツ切り替え、表情ファイルについて
const char* getPhysicsFile()
{
if(!existPhysicsFile())return "";
return json->getRoot()[PHYSICS].toString().c_str();
}
const char* getPoseFile()
{
if(!existPoseFile())return "";
return json->getRoot()[POSE].toString().c_str();
}
int getExpressionNum()
{
if(!existExpressionFile())return 0;
return json->getRoot()[EXPRESSIONS].size();
}
const char* getExpressionFile(int n)
{
return json->getRoot()[EXPRESSIONS][n][_FILE].toString().c_str();
}
const char* getExpressionName(int n)
{
return json->getRoot()[EXPRESSIONS][n][NAME].toString().c_str();
}
// モーションについて
int getMotionNum(const char* name)
{
if(!existMotionGroup(name))return 0;
return json->getRoot()[MOTION_GROUPS][name].size();
}
const char* getMotionFile(const char* name,int n)
{
if(!existMotionGroup(name))return "";
return json->getRoot()[MOTION_GROUPS][name][n][_FILE].toString().c_str();
}
const char* getMotionSound(const char* name,int n)
{
if(!existMotionSound(name,n))return "";
return json->getRoot()[MOTION_GROUPS][name][n][SOUND].toString().c_str();
}
int getMotionFadeIn(const char* name,int n)
{
if(!existMotionFadeIn(name,n))return 1000;
return json->getRoot()[MOTION_GROUPS][name][n][FADE_IN].toInt();
}
int getMotionFadeOut(const char* name,int n)
{
if(!existMotionFadeOut(name,n))return 1000;
return json->getRoot()[MOTION_GROUPS][name][n][FADE_OUT].toInt();
}
int getMotionGroupNum()
{
if ( ! existMotionGroups()) {
return 0;
}
return json->getRoot()[MOTION_GROUPS].getKeys().size();
}
const char* getMotionGroupName(int n)
{
if ( ! existMotionGroups()) {
return NULL;
}
return json->getRoot()[MOTION_GROUPS].getKeys()[n].c_str();
}
bool getLayout(std::map<std::string, float> & layout)
{
live2d::LDMap<live2d::LDString, live2d::Value* > * map=json->getRoot()[LAYOUT].getMap();
if (map==NULL) {
return false;
}
live2d::LDMap<live2d::LDString, live2d::Value* >::const_iterator map_ite;
bool ret=false;
for(map_ite=map->begin();map_ite!=map->end();map_ite++)
{
layout[(*map_ite).first.c_str()] = (*map_ite).second->toDouble();
ret=true;
}
return ret;
}
}; | [
"woxxy@foolz.us"
] | woxxy@foolz.us |
7a5fa94a83aa429cc64ce4375e164fe66fe4bc84 | d446ed18144ac191377c2a5e0585fb61317b96c2 | /include/eepp/scene/actions/resizewidth.hpp | fb598f67ccd0849a57799ba3790b490794af7a4b | [
"MIT"
] | permissive | thyrdmc/eepp | 6f8ee84f048efaf1b3aca931ea612e61136e15c4 | 93b72b1bcab794a43706658e7978c5e852c3b65a | refs/heads/master | 2023-06-25T11:18:16.371330 | 2019-05-22T04:26:41 | 2019-05-22T04:26:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 741 | hpp | #ifndef EE_SCENE_ACTIONS_RESIZEWIDTH_HPP
#define EE_SCENE_ACTIONS_RESIZEWIDTH_HPP
#include <eepp/scene/action.hpp>
#include <eepp/scene/actions/actioninterpolation1d.hpp>
namespace EE { namespace Scene { namespace Actions {
class EE_API ResizeWidth : public ActionInterpolation1d {
public:
static ResizeWidth * New( const Float& start, const Float& end, const Time& duration, const Ease::Interpolation& type = Ease::Linear );
Action * clone() const override;
Action * reverse() const override;
protected:
ResizeWidth();
ResizeWidth( const Float & start, const Float & end, const Time & duration, const Ease::Interpolation & type );
void onStart() override;
void onUpdate( const Time& time ) override;
};
}}}
#endif
| [
"spartanj@gmail.com"
] | spartanj@gmail.com |
2abd3f47a36c622e26d9d71239a2471b2f09906b | 35f8526b274760e72d35d426600b6bf435b91e50 | /src/component/componentstd.cpp | 206eedf6254e59dd7b15f7ecc81904946c81b550 | [] | no_license | madeso/pwn-engine | f9ca6a4551edbad719ff2c6999e5fc9e97b6a211 | c4767e5d798d5768e1bbf8a9ac73b6fb186ae497 | refs/heads/master | 2021-01-20T04:31:06.326355 | 2020-06-14T13:31:36 | 2020-06-14T13:31:36 | 33,419,254 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,831 | cpp | #include <pwn/component/componentstd.h>
#include <pwn/component/component.h>
#include <pwn/component/eventargs.h>
#include <pwn/component/property.h>
#include <pwn/component/componentdef.h>
#include <pwn/component/object.h>
namespace pwn
{
namespace component
{
class ComponentTimeout : public Component
{
public:
ComponentTimeout(const ComponentArgs& args)
: time(locals.refReal())
, ev(args.get("event")->getEvent())
{
time = args.get("time")->getReal();
}
void
onUpdate(const EventArgs& a)
{
const real delta = a[0].getReal();
time -= delta;
if (time < delta)
{
markForRemoval();
sendObjectEvent(ev, EventArgs());
}
}
DECLARE_CALLBACK();
static boost::shared_ptr<Component>
Create(const PropertyMap&, const ComponentArgs& args)
{
boost::shared_ptr<Component> c(new ComponentTimeout(args));
return c;
}
private:
core::EnumValue ev;
real& time;
};
BEGIN_EVENT_TABLE(ComponentTimeout)
REGISTER_CALLBACK(Update, onUpdate);
END_EVENT_TABLE()
//-----------------------------------------------------------------------------------------------
class ComponentReboundingHealth : public Component
{
public:
ComponentReboundingHealth(
const PropertyMap& props,
const ComponentArgs& args)
: health(props.get("health")->refReal())
, currentPauseTime(locals.refReal())
, regenPower(args.get("regen")->getReal())
, waitTime(args.get("wait")->getReal())
{
}
void
onUpdate(const EventArgs& args)
{
const real delta = args[0].getReal();
if (currentPauseTime <= 0)
{
health += regenPower * delta;
}
else
{
currentPauseTime -= delta;
}
}
void
onDamage(const EventArgs& args)
{
currentPauseTime = waitTime;
}
static boost::shared_ptr<Component>
Create(const PropertyMap& props, const ComponentArgs& args)
{
boost::shared_ptr<Component> c(
new ComponentReboundingHealth(props, args));
return c;
}
DECLARE_CALLBACK();
private:
real& health;
real& currentPauseTime;
const real regenPower;
const real waitTime;
};
BEGIN_EVENT_TABLE(ComponentReboundingHealth)
REGISTER_CALLBACK(Update, onUpdate);
REGISTER_CALLBACK(Damage, onDamage);
END_EVENT_TABLE()
//-----------------------------------------------------------------------------------------------
ComponentCreator::ComponentCreator()
{
}
ComponentCreator::~ComponentCreator()
{
}
boost::shared_ptr<Component>
ComponentCreator::create(
const ID& name,
const PropertyMap& props,
const ComponentArgs& args) const
{
Functions::const_iterator r = functions.find(name);
if (r == functions.end())
{
throw "unknown component";
}
return r->second(props, args);
}
void
ComponentCreator::add(const ID& name, CreateFunction func)
{
functions.insert(Functions::value_type(name, func));
}
//-----------------------------------------------------------------------------------------------
void
AddStandardComponents(ComponentCreator* cc)
{
cc->add("rebounding-health", ComponentReboundingHealth::Create);
cc->add("timeout", ComponentTimeout::Create);
}
}
}
| [
"sir.gustav.the.coder@gmail.com"
] | sir.gustav.the.coder@gmail.com |
fa6efda91915b3b2176b90eaefe9b1c5146f4ff1 | 19845af1616d5b81aedf7917a32cb44f61e02401 | /FunnyToys/端口扫描器/端口扫描器/源.cpp | f263aad9cc1d97c9ecdd95ef3f05b13f90e32ffc | [] | no_license | gsy3761/Pile | 560c78d471c70f69324984703cf01cd7680a3fca | e6217be03679d978a7a41b01dbb0baa159c0deec | refs/heads/master | 2020-12-21T04:04:31.661608 | 2020-01-23T13:16:05 | 2020-01-23T13:16:05 | 236,300,410 | 1 | 0 | null | 2020-01-26T11:05:01 | 2020-01-26T11:05:00 | null | UTF-8 | C++ | false | false | 5,887 | cpp | #define _CRT_SECURE_NO_WARNINGS
#define _WINSOCK_DEPRECATED_NO_WARNINGS
#include <Winsock2.h>
#include <commctrl.h>
#include <cstdlib>
#include <iostream>
#include <queue>
#include <set>
// #include <stdio.h>
// #include <stdlib.h>
//#include <windows.h> //加这个头文件后面sleep会用到
//#pragma comment(lib,"ws2_32.lib")
#pragma comment(lib, "WS2_32.lib")
#define NETWORK_ERROR -1
#define NETWORK_OK 0
#define PORT_MIN 1
#define PORT_MAX 65535
const int ThreadCount = 16;
std::set<HANDLE> hThreads;
HANDLE hThread;
std::set<DWORD> hIDs;
DWORD hID;
std::queue<int> ports;
std::string hostname;
int starting_port = 0;
int ending_port = 0;
int nopen = 0;
int ThreadOpened = ThreadCount;
DWORD portscan();
bool ThreadLock; //
int main()
{
int ret;
WSADATA dat; //库版本信息结构
// WSADATA结构被用来储存调用AfxSocketInit全局函数返回的Windows Sockets初始化信息。
DWORD version;
version = MAKEWORD(2, 2);
// MAKEWORD(2,2)表示使用WINSOCK2版本.wsaData用来存储系统传回的关于WINSOCK的资料.
ret = WSAStartup(version, &dat);
//此函数在应用程序中初始化winsockDLL,格式:int PASCAL FAR WSAStartup( WORD wVersionRequested,
// LPWSADATA lpWSAData );
if(ret != 0)
{
std::cout << "加载套接字失败!\n";
WSACleanup();
return NETWORK_ERROR;
}
if(ret == 0)
{
std::cout<<"Enter hostname:";
//scanf("%s", hostname);
std::cin >> hostname;
std::cout << ("Enter starting port:");
//scanf("%d", &starting_port);
std::cin >> starting_port;
if(starting_port < PORT_MIN)
{
std::cout << ("起始端口出错\n");
WSACleanup();
return NETWORK_ERROR;
}
std::cout << ("Enter ending port:");
// scanf("%d", &ending_port);
std::cin >> ending_port;
if(ending_port > PORT_MAX)
{
std::cout << ("终点端口出错\n");
WSACleanup();
return NETWORK_ERROR;
}
// printf("\nScanning [%s]...\n", hostname);
std::cout << "Scanning [" << hostname << "]\n";
for(int i = starting_port; i <= ending_port; i++)
{
ports.push(int(i));
} //将任务加入队列
ThreadLock = false;
for(int i = 0; i < ThreadCount; i++)
{
hThread = CreateThread(0, 0, (LPTHREAD_START_ROUTINE) portscan, 0, 0, &hID);
// Thread1 = CreateThread( 0, 默认线程堆栈大小 0(2M) ThreadProc,线程入口函数 0,创建标识
// 0代表立即执行,&Thread1ID获得线程ID);
if(hThread == 0)
{
std::cout << ("创建线程失败\n");
WSACleanup();
return NETWORK_ERROR;
}
else
{
hThreads.insert(hThread);
hIDs.insert(hID);
}
}
// Sleep(-1);//进程挂起
while(ThreadOpened)
; //等到所有进程结束后
std::cout<<("Number of ports opened = ")<< (nopen)<<std::endl;
}
WSACleanup();
// WSAStartup应该与WSACleanup成对使用,WSAStartup的功能是初始化Winsock DLL,
// WSACleanup是来解除与Socket库的绑定并且释放Socket库所占用的系统资源。
return NETWORK_OK;
}
DWORD portscan()
{
// printf("\nScanning [%s]...\n", hostname);
int i, nret;
SOCKET thesocket; //定义服务器套接字
LPHOSTENT hostent;
thesocket =
socket(AF_INET,
SOCK_STREAM,
IPPROTO_TCP); //第一个变量为协议簇,第二个变量为套接字类型,第三个变量为使用的通信协议
hostent = gethostbyname((
hostname.c_str())); // gethostbyname()返回对应于给定主机名的包含主机名字和地址信息的hostent结构指针。
// for (i = (int)ports.front(),ports.pop(); !ports.empty(); i=(int)ports.front(),ports.pop())
while(!ports.empty())
{
if(!ThreadLock)
{
ThreadLock = true;
i = ports.front(); //提取队列中第一个元素
ports.pop(); //从队列中删去第一个元素
ThreadLock = false;
} //进程锁防止读取冲突
else
{
continue;
}
if(i < 0)
{
break;
}
// printf("port:%dscaning\n", i);
SOCKADDR_IN hostinfo; //服务器地址信息结构
hostinfo.sin_family = AF_INET;
hostinfo.sin_addr = *((LPIN_ADDR) *hostent->h_addr_list); // sin.addr储存IP地址
hostinfo.sin_port = htons(i); // sin_port储存端口号
// htons 是将整型变量从主机字节顺序转变成网络字节顺序,
// 就是整数在地址空间存储方式变为:高位字节存放在内存的低地址处。
nret = connect(thesocket,
(LPSOCKADDR) &hostinfo,
sizeof(hostinfo)); // connect()函数:发送一个连接请求,返回值为 0成功。
// TCP是面向连接的、可靠的传输协议。
//参数一:套接字描述符
//参数二:指向数据机构sockaddr的指针,其中包括目的端口和IP地址
//参数三:参数二sockaddr的长度,可以通过sizeof(struct sockaddr)获得
//返回值为0代表成功
if(nret == 0)
{
//printf("\n\t%d\n", i);
++nopen;
}
}
// printf("\nScan complete.\n\n");
// printf("Number of ports opened = %d\n", nopen);
ThreadOpened--;
closesocket(thesocket);
return 0;
}
| [
"1395943920@qq.com"
] | 1395943920@qq.com |
ce6051c68c60abb7ba45e8b53ee8157246a83be1 | 7732bdbf2f7e074d5e001d5b79359629bf44090e | /django/cpp-django-react/cpp0/lights.cpp | e3c84a5cbd4fe07c11214edad5670a70e6954a3c | [] | no_license | urytururur/oldPi | 242f54fb516e25fea57b0562b8edf1196b7a2e40 | 31bd84101878e07f8cae8553f0b799be89607a68 | refs/heads/master | 2023-01-09T11:23:44.195383 | 2019-12-16T16:59:39 | 2019-12-16T16:59:39 | 228,433,540 | 0 | 0 | null | 2023-01-07T12:52:37 | 2019-12-16T16:56:12 | PHP | UTF-8 | C++ | false | false | 419 | cpp | #include "lights.h"
int Light::getOn()
{
return m_on;
}
void Light::setOn(int val)
{
m_on = val;
}
int Light::getBri()
{
return m_bri;
}
void Light::setBri(int val)
{
m_bri = val;
}
int Light::getHue()
{
return m_hue;
}
void Light::setHue(int val)
{
m_hue = val;
}
int Light::getSat()
{
return m_sat;
}
void Light::setSat(int val)
{
m_sat = val;
} | [
"torbjorn.ekstedt@hotmail.com"
] | torbjorn.ekstedt@hotmail.com |
3562faf14e4e454d1f0e6f89378b44e6a471220e | 8e58c8954b0a15d208144eabcdd7d8a7aa8852a8 | /Zjut_ACM/1322 Sums.cpp | 79774cfa4d5999a1305055031748cd2d5c8e4c49 | [] | no_license | EchoMemory/AcmSolutions | 5b0712f43904938e03dc408870dcf188787e483d | 9abe973669076ba98865359fba65fdeffa1fdcc0 | refs/heads/master | 2020-05-20T05:36:12.451011 | 2012-12-02T16:40:29 | 2012-12-02T16:40:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 389 | cpp | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
bool cmp( int a,int b)
{
return a>b;
}
int main()
{
int m,n,k;
for( cin>>n; n>0; n-- )
{
vector<int> v;
int sum=0;
for( cin>>m; m>0; m-- )
{
cin>>k;
v.push_back(k);
}
sort(v.begin(),v.end() ,cmp);
for( int i=0; i<10; i++ )
sum+=v[i];
cout<<sum<<endl;
v.clear();
}
return 0;
}
| [
"memoryhash@gmail.com"
] | memoryhash@gmail.com |
4c7d84881187403afedb78032bd478e89584cf6c | 37b1cc093229626cb58199379f39b6b1ec6f6fb0 | /src/core/NEON/kernels/arm_conv/depthwise/kernels/a64_u8q_nhwc_3x3_s2_output2x2_mla_depthfirst/generic.cpp | fb533893a60c27916f5dd71b443254e29af224af | [
"MIT",
"LicenseRef-scancode-dco-1.1",
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | ARM-software/ComputeLibrary | d4dfccb6a75b9f7bb79ae6c61b2338d519497211 | 874e0c7b3fe93a6764ecb2d8cfad924af19a9d25 | refs/heads/main | 2023-09-04T07:01:32.449866 | 2023-08-23T13:06:10 | 2023-08-23T13:06:10 | 84,570,214 | 2,706 | 810 | MIT | 2023-01-16T16:04:32 | 2017-03-10T14:51:43 | C++ | UTF-8 | C++ | false | false | 47,735 | cpp | /*
* Copyright (c) 2021-2023 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
* 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 "arm_gemm.hpp"
#include <cstddef>
#include <cstdint>
#if defined(__aarch64__)
namespace arm_conv {
namespace depthwise {
void a64_u8q_nhwc_3x3_s2_output2x2_mla_depthfirst_impl(
const unsigned int n_channels,
const uint8_t *const *const inptrs,
const uint8_t *const weights,
const int32_t *const bias,
const arm_gemm::Requantize32 &qp,
const int32_t *const requant_muls,
const int32_t *const requant_shifts,
uint8_t *const *const outptrs
)
{
struct Params
{
long unsigned int n_channels;
const void *weights;
const int32_t *bias;
const arm_gemm::Requantize32 *requant;
const int32_t *const requant_muls;
const int32_t *const requant_shifts;
uint8_t *const *const outptrs;
const uint8_t *inptrs[25];
Params(
long unsigned int n_channels,
const uint8_t *const *inptrs_raw,
const void *const weights,
const int32_t *const bias,
const arm_gemm::Requantize32 &qp,
const int32_t *const requant_muls,
const int32_t *const requant_shifts,
uint8_t *const *outptrs
) : n_channels(n_channels), weights(weights), bias(bias),
requant(&qp), requant_muls(requant_muls),
requant_shifts(requant_shifts), outptrs(outptrs)
{
inptrs[0] = inptrs_raw[12];
inptrs[1] = inptrs_raw[0];
inptrs[2] = inptrs_raw[1];
inptrs[3] = inptrs_raw[3];
inptrs[4] = inptrs_raw[4];
inptrs[5] = inptrs_raw[5];
inptrs[6] = inptrs_raw[6];
inptrs[7] = inptrs_raw[2];
inptrs[8] = inptrs_raw[8];
inptrs[9] = inptrs_raw[9];
inptrs[10] = inptrs_raw[7];
inptrs[11] = inptrs_raw[15];
inptrs[12] = inptrs_raw[10];
inptrs[13] = inptrs_raw[16];
inptrs[14] = inptrs_raw[11];
inptrs[15] = inptrs_raw[18];
inptrs[16] = inptrs_raw[13];
inptrs[17] = inptrs_raw[19];
inptrs[18] = inptrs_raw[20];
inptrs[19] = inptrs_raw[14];
inptrs[20] = inptrs_raw[21];
inptrs[21] = inptrs_raw[17];
inptrs[22] = inptrs_raw[23];
inptrs[23] = inptrs_raw[22];
inptrs[24] = inptrs_raw[24];
}
};
const Params params(n_channels, inptrs, weights, bias, qp,
requant_muls, requant_shifts, outptrs);
__asm__ __volatile__(
"ldr x7, [%x[params], %[offsetof_Params_n_channels]]\n"
"ldr x23, [%x[params], %[offsetof_Params_requant]]\n"
"lsr x8, x7, #0x3\n"
"add x20, x23, %[offsetof_Requantize32_a_offset]\n"
"ld1r { v6.16b }, [x20]\n"
"ldr x22, [%x[params], %[offsetof_Params_outptrs]]\n"
"add x21, x23, %[offsetof_Requantize32_b_offset]\n"
"add x20, x23, %[offsetof_Requantize32_c_offset]\n"
"ld1r { v15.16b }, [x21]\n"
"ld1r { v13.8h }, [x20]\n"
"add x21, x23, %[offsetof_Requantize32_minval]\n"
"add x20, x23, %[offsetof_Requantize32_maxval]\n"
"ld1r { v17.8h }, [x21]\n"
"ld1r { v24.8h }, [x20]\n"
"mov x17, #0x0\n"
"mov x16, #0x0\n"
"add x15, %x[params], %[offsetof_Params_inptrs]\n"
"ldr x14, [%x[params], %[offsetof_Params_weights]]\n"
"ldr x13, [%x[params], %[offsetof_Params_requant_muls]]\n"
"ldr x12, [%x[params], %[offsetof_Params_requant_shifts]]\n"
"ldp x11, x10, [x22, #0x0]\n"
"ldp x9, x28, [x22, #0x10]\n"
"cbz x8, 3f\n"
"ldr d11, [x14, #0x0]\n"
"ldr d22, [x14, #0x8]\n"
"subs x8, x8, #0x1\n"
"usubl v11.8h, v11.8b, v15.8b\n"
"ldr d14, [x14, #0x10]\n"
"ldr d28, [x14, #0x18]\n"
"usubl v22.8h, v22.8b, v15.8b\n"
"usubl v14.8h, v14.8b, v15.8b\n"
"ldr d18, [x14, #0x20]\n"
"ldr d9, [x14, #0x28]\n"
"usubl v28.8h, v28.8b, v15.8b\n"
"usubl v18.8h, v18.8b, v15.8b\n"
"ldr d26, [x14, #0x30]\n"
"ldr d7, [x14, #0x38]\n"
"usubl v9.8h, v9.8b, v15.8b\n"
"usubl v26.8h, v26.8b, v15.8b\n"
"ldr d4, [x14, #0x40]\n"
"ldr x20, [%x[params], %[offsetof_Params_bias]]\n"
"usubl v7.8h, v7.8b, v15.8b\n"
"usubl v4.8h, v4.8b, v15.8b\n"
"ldr q5, [x20, #0x0]\n"
"ldr q3, [x20, #0x10]\n"
"add x20, x20, #0x20\n"
"str x20, [%x[params], %[offsetof_Params_bias]]\n"
"ldp x27, x26, [x15, #0x0]\n"
"ldp x25, x24, [x15, #0x10]\n"
"mov v21.16b, v5.16b\n"
"mov v8.16b, v3.16b\n"
"ldp x23, x22, [x15, #0x20]\n"
"ldp x21, x20, [x15, #0x30]\n"
"mov v20.16b, v5.16b\n"
"mov v0.16b, v3.16b\n"
"ldr d25, [x27, x17]\n"
"ldr d27, [x26, x17]\n"
"mov v19.16b, v5.16b\n"
"mov v31.16b, v3.16b\n"
"ldr d1, [x25, x17]\n"
"ldr d2, [x24, x17]\n"
"usubl v25.8h, v25.8b, v6.8b\n"
"usubl v27.8h, v27.8b, v6.8b\n"
"ldr d12, [x23, x17]\n"
"ldr d16, [x22, x17]\n"
"usubl v1.8h, v1.8b, v6.8b\n"
"usubl v2.8h, v2.8b, v6.8b\n"
"ldr d23, [x21, x17]\n"
"ldr d10, [x20, x17]\n"
"usubl v12.8h, v12.8b, v6.8b\n"
"usubl v16.8h, v16.8b, v6.8b\n"
"usubl v23.8h, v23.8b, v6.8b\n"
"usubl v10.8h, v10.8b, v6.8b\n"
"beq 2f\n"
"1:" // Loop
"ldr q30, [x13, #0x0]\n"
"ldr q29, [x12, #0x0]\n"
"smlal v5.4s, v25.4h, v4.4h\n"
"smlal2 v3.4s, v25.8h, v4.8h\n"
"ldr x21, [x15, #0x58]\n"
"ldr x20, [x15, #0x78]\n"
"smlal v5.4s, v27.4h, v11.4h\n"
"smlal v21.4s, v25.4h, v26.4h\n"
"ldr x25, [x15, #0x60]\n"
"ldr x24, [x15, #0x80]\n"
"smlal v20.4s, v25.4h, v14.4h\n"
"smlal v19.4s, v25.4h, v11.4h\n"
"smlal2 v3.4s, v27.8h, v11.8h\n"
"ldr d27, [x21, x17]\n"
"usubl v27.8h, v27.8b, v6.8b\n"
"smlal v5.4s, v1.4h, v22.4h\n"
"smlal2 v8.4s, v25.8h, v26.8h\n"
"smlal2 v0.4s, v25.8h, v14.8h\n"
"ldr x23, [x15, #0x68]\n"
"ldr x22, [x15, #0x88]\n"
"smlal2 v31.4s, v25.8h, v11.8h\n"
"ldr d25, [x20, x17]\n"
"usubl v25.8h, v25.8b, v6.8b\n"
"smlal v21.4s, v2.4h, v22.4h\n"
"smlal v20.4s, v27.4h, v28.4h\n"
"smlal v19.4s, v25.4h, v18.4h\n"
"ldr x21, [x15, #0x40]\n"
"ldr x20, [x15, #0x70]\n"
"smlal2 v3.4s, v1.8h, v22.8h\n"
"ldr d1, [x25, x17]\n"
"usubl v1.8h, v1.8b, v6.8b\n"
"smlal v5.4s, v16.4h, v28.4h\n"
"smlal2 v8.4s, v2.8h, v22.8h\n"
"ldr d2, [x24, x17]\n"
"usubl v2.8h, v2.8b, v6.8b\n"
"smlal2 v0.4s, v27.8h, v28.8h\n"
"ldr d27, [x23, x17]\n"
"smlal2 v31.4s, v25.8h, v18.8h\n"
"ldr d25, [x22, x17]\n"
"smlal v21.4s, v12.4h, v14.4h\n"
"ldr x25, [x15, #0x98]\n"
"smlal v20.4s, v1.4h, v11.4h\n"
"smlal v19.4s, v2.4h, v22.4h\n"
"ldr x24, [x15, #0x50]\n"
"smlal2 v3.4s, v16.8h, v28.8h\n"
"ldr d16, [x21, x17]\n"
"usubl v27.8h, v27.8b, v6.8b\n"
"smlal v5.4s, v23.4h, v18.4h\n"
"usubl v25.8h, v25.8b, v6.8b\n"
"smlal2 v8.4s, v12.8h, v14.8h\n"
"ldr d12, [x20, x17]\n"
"ldr x23, [x15, #0x48]\n"
"smlal2 v0.4s, v1.8h, v11.8h\n"
"smlal2 v31.4s, v2.8h, v22.8h\n"
"ldr x21, [x15, #0x90]\n"
"ldr x20, [x15, #0xa8]\n"
"smlal v21.4s, v10.4h, v11.4h\n"
"smlal v20.4s, v27.4h, v18.4h\n"
"usubl v16.8h, v16.8b, v6.8b\n"
"ldr x22, [x15, #0xa0]\n"
"smlal v19.4s, v25.4h, v9.4h\n"
"smlal2 v3.4s, v23.8h, v18.8h\n"
"ldr d23, [x25, x17]\n"
"usubl v12.8h, v12.8b, v6.8b\n"
"usubl v23.8h, v23.8b, v6.8b\n"
"smlal v5.4s, v10.4h, v14.4h\n"
"smlal2 v8.4s, v10.8h, v11.8h\n"
"ldr d11, [x24, x17]\n"
"usubl v11.8h, v11.8b, v6.8b\n"
"smlal2 v0.4s, v27.8h, v18.8h\n"
"ldr d27, [x23, x17]\n"
"smlal2 v31.4s, v25.8h, v9.8h\n"
"ldr d25, [x21, x17]\n"
"ldr x21, [x15, #0xb0]\n"
"smlal v21.4s, v16.4h, v18.4h\n"
"smlal v20.4s, v12.4h, v22.4h\n"
"smlal v19.4s, v23.4h, v14.4h\n"
"smlal2 v3.4s, v10.8h, v14.8h\n"
"ldr d10, [x20, x17]\n"
"usubl v27.8h, v27.8b, v6.8b\n"
"usubl v25.8h, v25.8b, v6.8b\n"
"usubl v10.8h, v10.8b, v6.8b\n"
"smlal v5.4s, v11.4h, v9.4h\n"
"ldr x20, [x15, #0xb8]\n"
"smlal2 v8.4s, v16.8h, v18.8h\n"
"ldr d18, [x22, x17]\n"
"ldr d16, [x21, x17]\n"
"smlal2 v0.4s, v12.8h, v22.8h\n"
"ldr d22, [x20, x17]\n"
"smlal2 v31.4s, v23.8h, v14.8h\n"
"ldr q14, [x13, #0x10]\n"
"smlal v21.4s, v27.4h, v9.4h\n"
"smlal v20.4s, v25.4h, v26.4h\n"
"smlal v19.4s, v10.4h, v28.4h\n"
"usubl v18.8h, v18.8b, v6.8b\n"
"ldr x21, [x15, #0xc0]\n"
"smlal2 v3.4s, v11.8h, v9.8h\n"
"usubl v16.8h, v16.8b, v6.8b\n"
"smlal v5.4s, v1.4h, v26.4h\n"
"ldr x20, [%x[params], %[offsetof_Params_bias]]\n"
"smlal2 v8.4s, v27.8h, v9.8h\n"
"ldr d27, [x21, x17]\n"
"smlal2 v0.4s, v25.8h, v26.8h\n"
"ldr q25, [x12, #0x10]\n"
"smlal2 v31.4s, v10.8h, v28.8h\n"
"smlal v21.4s, v11.4h, v28.4h\n"
"usubl v22.8h, v22.8b, v6.8b\n"
"add x14, x14, #0x48\n"
"smlal v20.4s, v18.4h, v7.4h\n"
"smlal v19.4s, v16.4h, v7.4h\n"
"usubl v27.8h, v27.8b, v6.8b\n"
"add x17, x17, #0x8\n"
"smlal2 v3.4s, v1.8h, v26.8h\n"
"smlal v5.4s, v12.4h, v7.4h\n"
"sqrdmulh v5.4s, v5.4s, v30.4s\n"
"subs x8, x8, #0x1\n"
"smlal2 v8.4s, v11.8h, v28.8h\n"
"smlal2 v0.4s, v18.8h, v7.8h\n"
"and v28.16b, v5.16b, v29.16b\n"
"add x13, x13, #0x20\n"
"smlal2 v31.4s, v16.8h, v7.8h\n"
"smlal v21.4s, v2.4h, v7.4h\n"
"sshr v28.4s, v28.4s, #0x1f\n"
"add x12, x12, #0x20\n"
"smlal v20.4s, v10.4h, v9.4h\n"
"smlal v19.4s, v22.4h, v26.4h\n"
"sqadd v5.4s, v5.4s, v28.4s\n"
"smlal2 v3.4s, v12.8h, v7.8h\n"
"smlal2 v8.4s, v2.8h, v7.8h\n"
"sqrdmulh v3.4s, v3.4s, v14.4s\n"
"smlal2 v0.4s, v10.8h, v9.8h\n"
"smlal2 v31.4s, v22.8h, v26.8h\n"
"and v16.16b, v3.16b, v25.16b\n"
"smlal v21.4s, v23.4h, v4.4h\n"
"smlal v20.4s, v22.4h, v4.4h\n"
"sqrdmulh v21.4s, v21.4s, v30.4s\n"
"smlal v19.4s, v27.4h, v4.4h\n"
"smlal2 v8.4s, v23.8h, v4.8h\n"
"sqrdmulh v20.4s, v20.4s, v30.4s\n"
"smlal2 v0.4s, v22.8h, v4.8h\n"
"smlal2 v31.4s, v27.8h, v4.8h\n"
"sqrdmulh v19.4s, v19.4s, v30.4s\n"
"sshr v16.4s, v16.4s, #0x1f\n"
"and v12.16b, v21.16b, v29.16b\n"
"sqrdmulh v8.4s, v8.4s, v14.4s\n"
"and v23.16b, v20.16b, v29.16b\n"
"sqrdmulh v0.4s, v0.4s, v14.4s\n"
"and v9.16b, v19.16b, v29.16b\n"
"sqrdmulh v31.4s, v31.4s, v14.4s\n"
"sqadd v3.4s, v3.4s, v16.4s\n"
"sshr v12.4s, v12.4s, #0x1f\n"
"and v18.16b, v8.16b, v25.16b\n"
"sshr v23.4s, v23.4s, #0x1f\n"
"and v22.16b, v0.16b, v25.16b\n"
"sshr v9.4s, v9.4s, #0x1f\n"
"and v16.16b, v31.16b, v25.16b\n"
"sqadd v21.4s, v21.4s, v12.4s\n"
"sshr v18.4s, v18.4s, #0x1f\n"
"sqadd v20.4s, v20.4s, v23.4s\n"
"sshr v22.4s, v22.4s, #0x1f\n"
"sqadd v19.4s, v19.4s, v9.4s\n"
"sshr v16.4s, v16.4s, #0x1f\n"
"srshl v5.4s, v5.4s, v29.4s\n"
"srshl v21.4s, v21.4s, v29.4s\n"
"sqadd v8.4s, v8.4s, v18.4s\n"
"srshl v20.4s, v20.4s, v29.4s\n"
"sqadd v0.4s, v0.4s, v22.4s\n"
"srshl v19.4s, v19.4s, v29.4s\n"
"sqadd v31.4s, v31.4s, v16.4s\n"
"srshl v3.4s, v3.4s, v25.4s\n"
"sqxtn v5.4h, v5.4s\n"
"srshl v8.4s, v8.4s, v25.4s\n"
"sqxtn v21.4h, v21.4s\n"
"srshl v0.4s, v0.4s, v25.4s\n"
"sqxtn v20.4h, v20.4s\n"
"srshl v31.4s, v31.4s, v25.4s\n"
"sqxtn v19.4h, v19.4s\n"
"sqxtn2 v5.8h, v3.4s\n"
"sqxtn2 v21.8h, v8.4s\n"
"sqxtn2 v20.8h, v0.4s\n"
"sqxtn2 v19.8h, v31.4s\n"
"sqadd v5.8h, v5.8h, v13.8h\n"
"sqadd v21.8h, v21.8h, v13.8h\n"
"sqadd v20.8h, v20.8h, v13.8h\n"
"sqadd v19.8h, v19.8h, v13.8h\n"
"smax v5.8h, v5.8h, v17.8h\n"
"smax v21.8h, v21.8h, v17.8h\n"
"smax v20.8h, v20.8h, v17.8h\n"
"smax v19.8h, v19.8h, v17.8h\n"
"smin v5.8h, v5.8h, v24.8h\n"
"smin v21.8h, v21.8h, v24.8h\n"
"smin v20.8h, v20.8h, v24.8h\n"
"smin v19.8h, v19.8h, v24.8h\n"
"uzp1 v5.16b, v5.16b, v5.16b\n"
"str d5, [x11, x16]\n"
"uzp1 v21.16b, v21.16b, v21.16b\n"
"uzp1 v20.16b, v20.16b, v20.16b\n"
"str d21, [x10, x16]\n"
"uzp1 v19.16b, v19.16b, v19.16b\n"
"str d20, [x9, x16]\n"
"str d19, [x28, x16]\n"
"ldr q5, [x20, #0x0]\n"
"ldr q3, [x20, #0x10]\n"
"add x20, x20, #0x20\n"
"ldr d11, [x14, #0x0]\n"
"ldr d22, [x14, #0x8]\n"
"add x16, x16, #0x8\n"
"str x20, [%x[params], %[offsetof_Params_bias]]\n"
"ldr d14, [x14, #0x10]\n"
"ldr d28, [x14, #0x18]\n"
"mov v21.16b, v5.16b\n"
"mov v8.16b, v3.16b\n"
"ldr d18, [x14, #0x20]\n"
"ldr d9, [x14, #0x28]\n"
"mov v20.16b, v5.16b\n"
"mov v0.16b, v3.16b\n"
"ldr d26, [x14, #0x30]\n"
"ldr d7, [x14, #0x38]\n"
"mov v19.16b, v5.16b\n"
"mov v31.16b, v3.16b\n"
"ldr d4, [x14, #0x40]\n"
"ldp x27, x26, [x15, #0x0]\n"
"usubl v11.8h, v11.8b, v15.8b\n"
"usubl v22.8h, v22.8b, v15.8b\n"
"ldp x25, x24, [x15, #0x10]\n"
"ldp x23, x22, [x15, #0x20]\n"
"usubl v14.8h, v14.8b, v15.8b\n"
"usubl v28.8h, v28.8b, v15.8b\n"
"ldp x21, x20, [x15, #0x30]\n"
"ldr d25, [x27, x17]\n"
"usubl v18.8h, v18.8b, v15.8b\n"
"usubl v9.8h, v9.8b, v15.8b\n"
"ldr d27, [x26, x17]\n"
"ldr d1, [x25, x17]\n"
"usubl v26.8h, v26.8b, v15.8b\n"
"usubl v7.8h, v7.8b, v15.8b\n"
"ldr d2, [x24, x17]\n"
"ldr d12, [x23, x17]\n"
"usubl v4.8h, v4.8b, v15.8b\n"
"usubl v25.8h, v25.8b, v6.8b\n"
"ldr d16, [x22, x17]\n"
"ldr d23, [x21, x17]\n"
"usubl v27.8h, v27.8b, v6.8b\n"
"usubl v1.8h, v1.8b, v6.8b\n"
"ldr d10, [x20, x17]\n"
"usubl v2.8h, v2.8b, v6.8b\n"
"usubl v12.8h, v12.8b, v6.8b\n"
"usubl v16.8h, v16.8b, v6.8b\n"
"usubl v23.8h, v23.8b, v6.8b\n"
"usubl v10.8h, v10.8b, v6.8b\n"
"bgt 1b\n"
"2:" // Tail
"ldr q29, [x13, #0x0]\n"
"ldr q30, [x12, #0x0]\n"
"smlal v5.4s, v25.4h, v4.4h\n"
"smlal2 v3.4s, v25.8h, v4.8h\n"
"ldr x21, [x15, #0x58]\n"
"ldr x20, [x15, #0x78]\n"
"smlal v5.4s, v27.4h, v11.4h\n"
"smlal v21.4s, v25.4h, v26.4h\n"
"ldr x25, [x15, #0x60]\n"
"ldr x24, [x15, #0x80]\n"
"smlal v20.4s, v25.4h, v14.4h\n"
"smlal v19.4s, v25.4h, v11.4h\n"
"smlal2 v3.4s, v27.8h, v11.8h\n"
"ldr d27, [x21, x17]\n"
"usubl v27.8h, v27.8b, v6.8b\n"
"smlal v5.4s, v1.4h, v22.4h\n"
"smlal2 v8.4s, v25.8h, v26.8h\n"
"smlal2 v0.4s, v25.8h, v14.8h\n"
"ldr x23, [x15, #0x68]\n"
"ldr x22, [x15, #0x88]\n"
"smlal2 v31.4s, v25.8h, v11.8h\n"
"ldr d25, [x20, x17]\n"
"usubl v25.8h, v25.8b, v6.8b\n"
"smlal v21.4s, v2.4h, v22.4h\n"
"smlal v20.4s, v27.4h, v28.4h\n"
"smlal v19.4s, v25.4h, v18.4h\n"
"ldr x21, [x15, #0x40]\n"
"ldr x20, [x15, #0x70]\n"
"smlal2 v3.4s, v1.8h, v22.8h\n"
"ldr d1, [x25, x17]\n"
"usubl v1.8h, v1.8b, v6.8b\n"
"smlal v5.4s, v16.4h, v28.4h\n"
"smlal2 v8.4s, v2.8h, v22.8h\n"
"ldr d2, [x24, x17]\n"
"usubl v2.8h, v2.8b, v6.8b\n"
"smlal2 v0.4s, v27.8h, v28.8h\n"
"ldr d27, [x23, x17]\n"
"smlal2 v31.4s, v25.8h, v18.8h\n"
"ldr d25, [x22, x17]\n"
"smlal v21.4s, v12.4h, v14.4h\n"
"ldr x25, [x15, #0x98]\n"
"smlal v20.4s, v1.4h, v11.4h\n"
"smlal v19.4s, v2.4h, v22.4h\n"
"ldr x24, [x15, #0x50]\n"
"smlal2 v3.4s, v16.8h, v28.8h\n"
"ldr d16, [x21, x17]\n"
"usubl v27.8h, v27.8b, v6.8b\n"
"smlal v5.4s, v23.4h, v18.4h\n"
"usubl v25.8h, v25.8b, v6.8b\n"
"smlal2 v8.4s, v12.8h, v14.8h\n"
"ldr d12, [x20, x17]\n"
"ldr x23, [x15, #0x48]\n"
"smlal2 v0.4s, v1.8h, v11.8h\n"
"smlal2 v31.4s, v2.8h, v22.8h\n"
"ldr x21, [x15, #0x90]\n"
"ldr x20, [x15, #0xa8]\n"
"smlal v21.4s, v10.4h, v11.4h\n"
"smlal v20.4s, v27.4h, v18.4h\n"
"usubl v16.8h, v16.8b, v6.8b\n"
"ldr x22, [x15, #0xa0]\n"
"smlal v19.4s, v25.4h, v9.4h\n"
"smlal2 v3.4s, v23.8h, v18.8h\n"
"ldr d23, [x25, x17]\n"
"usubl v12.8h, v12.8b, v6.8b\n"
"usubl v23.8h, v23.8b, v6.8b\n"
"smlal v5.4s, v10.4h, v14.4h\n"
"smlal2 v8.4s, v10.8h, v11.8h\n"
"ldr d11, [x24, x17]\n"
"usubl v11.8h, v11.8b, v6.8b\n"
"smlal2 v0.4s, v27.8h, v18.8h\n"
"ldr d27, [x23, x17]\n"
"smlal2 v31.4s, v25.8h, v9.8h\n"
"ldr d25, [x21, x17]\n"
"ldr x21, [x15, #0xb0]\n"
"smlal v21.4s, v16.4h, v18.4h\n"
"smlal v20.4s, v12.4h, v22.4h\n"
"smlal v19.4s, v23.4h, v14.4h\n"
"smlal2 v3.4s, v10.8h, v14.8h\n"
"ldr d10, [x20, x17]\n"
"usubl v27.8h, v27.8b, v6.8b\n"
"usubl v25.8h, v25.8b, v6.8b\n"
"usubl v10.8h, v10.8b, v6.8b\n"
"smlal v5.4s, v11.4h, v9.4h\n"
"ldr x20, [x15, #0xb8]\n"
"smlal2 v8.4s, v16.8h, v18.8h\n"
"ldr d16, [x22, x17]\n"
"ldr d18, [x21, x17]\n"
"smlal2 v0.4s, v12.8h, v22.8h\n"
"ldr d22, [x20, x17]\n"
"smlal2 v31.4s, v23.8h, v14.8h\n"
"ldr q14, [x13, #0x10]\n"
"smlal v21.4s, v27.4h, v9.4h\n"
"smlal v20.4s, v25.4h, v26.4h\n"
"smlal v19.4s, v10.4h, v28.4h\n"
"usubl v16.8h, v16.8b, v6.8b\n"
"ldr x20, [x15, #0xc0]\n"
"smlal2 v3.4s, v11.8h, v9.8h\n"
"usubl v18.8h, v18.8b, v6.8b\n"
"smlal v5.4s, v1.4h, v26.4h\n"
"tst x7, #0x7\n"
"smlal2 v8.4s, v27.8h, v9.8h\n"
"ldr d27, [x20, x17]\n"
"smlal2 v0.4s, v25.8h, v26.8h\n"
"ldr q25, [x12, #0x10]\n"
"smlal2 v31.4s, v10.8h, v28.8h\n"
"smlal v21.4s, v11.4h, v28.4h\n"
"usubl v22.8h, v22.8b, v6.8b\n"
"add x17, x17, #0x8\n"
"smlal v20.4s, v16.4h, v7.4h\n"
"smlal v19.4s, v18.4h, v7.4h\n"
"usubl v27.8h, v27.8b, v6.8b\n"
"add x13, x13, #0x20\n"
"smlal2 v3.4s, v1.8h, v26.8h\n"
"smlal v5.4s, v12.4h, v7.4h\n"
"sqrdmulh v5.4s, v5.4s, v29.4s\n"
"add x12, x12, #0x20\n"
"smlal2 v8.4s, v11.8h, v28.8h\n"
"smlal2 v0.4s, v16.8h, v7.8h\n"
"and v16.16b, v5.16b, v30.16b\n"
"smlal2 v31.4s, v18.8h, v7.8h\n"
"smlal v21.4s, v2.4h, v7.4h\n"
"sshr v16.4s, v16.4s, #0x1f\n"
"smlal v20.4s, v10.4h, v9.4h\n"
"smlal v19.4s, v22.4h, v26.4h\n"
"sqadd v5.4s, v5.4s, v16.4s\n"
"smlal2 v3.4s, v12.8h, v7.8h\n"
"smlal2 v8.4s, v2.8h, v7.8h\n"
"sqrdmulh v3.4s, v3.4s, v14.4s\n"
"smlal2 v0.4s, v10.8h, v9.8h\n"
"smlal2 v31.4s, v22.8h, v26.8h\n"
"and v16.16b, v3.16b, v25.16b\n"
"smlal v21.4s, v23.4h, v4.4h\n"
"smlal v20.4s, v22.4h, v4.4h\n"
"sqrdmulh v21.4s, v21.4s, v29.4s\n"
"smlal v19.4s, v27.4h, v4.4h\n"
"smlal2 v8.4s, v23.8h, v4.8h\n"
"sqrdmulh v20.4s, v20.4s, v29.4s\n"
"smlal2 v0.4s, v22.8h, v4.8h\n"
"smlal2 v31.4s, v27.8h, v4.8h\n"
"sqrdmulh v19.4s, v19.4s, v29.4s\n"
"sshr v16.4s, v16.4s, #0x1f\n"
"and v23.16b, v21.16b, v30.16b\n"
"sqrdmulh v8.4s, v8.4s, v14.4s\n"
"and v27.16b, v20.16b, v30.16b\n"
"sqrdmulh v0.4s, v0.4s, v14.4s\n"
"and v22.16b, v19.16b, v30.16b\n"
"sqrdmulh v31.4s, v31.4s, v14.4s\n"
"sqadd v3.4s, v3.4s, v16.4s\n"
"sshr v23.4s, v23.4s, #0x1f\n"
"and v14.16b, v8.16b, v25.16b\n"
"sshr v27.4s, v27.4s, #0x1f\n"
"and v18.16b, v0.16b, v25.16b\n"
"sshr v22.4s, v22.4s, #0x1f\n"
"and v16.16b, v31.16b, v25.16b\n"
"sqadd v21.4s, v21.4s, v23.4s\n"
"sshr v14.4s, v14.4s, #0x1f\n"
"sqadd v20.4s, v20.4s, v27.4s\n"
"sshr v18.4s, v18.4s, #0x1f\n"
"sqadd v19.4s, v19.4s, v22.4s\n"
"sshr v16.4s, v16.4s, #0x1f\n"
"srshl v5.4s, v5.4s, v30.4s\n"
"srshl v21.4s, v21.4s, v30.4s\n"
"sqadd v8.4s, v8.4s, v14.4s\n"
"srshl v20.4s, v20.4s, v30.4s\n"
"sqadd v0.4s, v0.4s, v18.4s\n"
"srshl v19.4s, v19.4s, v30.4s\n"
"sqadd v31.4s, v31.4s, v16.4s\n"
"srshl v3.4s, v3.4s, v25.4s\n"
"sqxtn v5.4h, v5.4s\n"
"srshl v8.4s, v8.4s, v25.4s\n"
"sqxtn v21.4h, v21.4s\n"
"srshl v0.4s, v0.4s, v25.4s\n"
"sqxtn v20.4h, v20.4s\n"
"srshl v31.4s, v31.4s, v25.4s\n"
"sqxtn v19.4h, v19.4s\n"
"sqxtn2 v5.8h, v3.4s\n"
"sqxtn2 v21.8h, v8.4s\n"
"sqxtn2 v20.8h, v0.4s\n"
"sqxtn2 v19.8h, v31.4s\n"
"sqadd v5.8h, v5.8h, v13.8h\n"
"sqadd v21.8h, v21.8h, v13.8h\n"
"sqadd v20.8h, v20.8h, v13.8h\n"
"sqadd v19.8h, v19.8h, v13.8h\n"
"smax v5.8h, v5.8h, v17.8h\n"
"smax v21.8h, v21.8h, v17.8h\n"
"smax v20.8h, v20.8h, v17.8h\n"
"smax v19.8h, v19.8h, v17.8h\n"
"smin v5.8h, v5.8h, v24.8h\n"
"smin v21.8h, v21.8h, v24.8h\n"
"smin v20.8h, v20.8h, v24.8h\n"
"smin v19.8h, v19.8h, v24.8h\n"
"uzp1 v5.16b, v5.16b, v5.16b\n"
"str d5, [x11, x16]\n"
"uzp1 v21.16b, v21.16b, v21.16b\n"
"uzp1 v20.16b, v20.16b, v20.16b\n"
"str d21, [x10, x16]\n"
"uzp1 v19.16b, v19.16b, v19.16b\n"
"str d20, [x9, x16]\n"
"str d19, [x28, x16]\n"
"add x16, x16, #0x8\n"
"beq 88f\n"
"add x14, x14, #0x48\n"
"3:" // Oddments
"ldr x20, [%x[params], %[offsetof_Params_bias]]\n"
"tbz x7, #2, 5f\n"
"ld1 { v5.4s }, [x20], #0x10\n"
"tbz x7, #1, 4f\n"
"ld1 { v3.d }[0], [x20], #0x8\n"
"tbz x7, #0, 7f\n"
"ld1 { v3.s }[2], [x20]\n"
"b 7f\n"
"4:" // Oddments: Load bias: Bit 2: Bit 1: Unset
"tbz x7, #0, 7f\n"
"ld1 { v3.s }[0], [x20]\n"
"b 7f\n"
"5:" // Oddments: Load bias: Bit 2: Unset
"tbz x7, #1, 6f\n"
"ld1 { v5.d }[0], [x20], #0x8\n"
"tbz x7, #0, 7f\n"
"ld1 { v5.s }[2], [x20]\n"
"b 7f\n"
"6:" // Oddments: Load bias: Bit 2: Unset: Bit 1: Unset
"tbz x7, #0, 7f\n"
"ld1 { v5.s }[0], [x20]\n"
"7:" // Oddments: Load bias: Bit 2: End
"ldr d11, [x14, #0x0]\n"
"ldr d22, [x14, #0x8]\n"
"mov v21.16b, v5.16b\n"
"mov v8.16b, v3.16b\n"
"ldr d14, [x14, #0x10]\n"
"ldr d28, [x14, #0x18]\n"
"mov v20.16b, v5.16b\n"
"mov v0.16b, v3.16b\n"
"ldr d18, [x14, #0x20]\n"
"ldr d9, [x14, #0x28]\n"
"mov v19.16b, v5.16b\n"
"mov v31.16b, v3.16b\n"
"ldr d26, [x14, #0x30]\n"
"ldr d7, [x14, #0x38]\n"
"usubl v11.8h, v11.8b, v15.8b\n"
"usubl v22.8h, v22.8b, v15.8b\n"
"ldr d4, [x14, #0x40]\n"
"ldp x27, x26, [x15, #0x0]\n"
"usubl v14.8h, v14.8b, v15.8b\n"
"usubl v28.8h, v28.8b, v15.8b\n"
"ldp x25, x24, [x15, #0x10]\n"
"ldp x23, x22, [x15, #0x20]\n"
"usubl v18.8h, v18.8b, v15.8b\n"
"usubl v9.8h, v9.8b, v15.8b\n"
"ldp x21, x20, [x15, #0x30]\n"
"usubl v26.8h, v26.8b, v15.8b\n"
"usubl v7.8h, v7.8b, v15.8b\n"
"usubl v4.8h, v4.8b, v15.8b\n"
"add x27, x27, x17\n"
"add x26, x26, x17\n"
"add x25, x25, x17\n"
"add x24, x24, x17\n"
"add x23, x23, x17\n"
"add x22, x22, x17\n"
"add x21, x21, x17\n"
"add x20, x20, x17\n"
"tbz x7, #2, 9f\n"
"ld1 { v25.s }[0], [x27], #0x4\n"
"ld1 { v27.s }[0], [x26], #0x4\n"
"ld1 { v1.s }[0], [x25], #0x4\n"
"ld1 { v2.s }[0], [x24], #0x4\n"
"ld1 { v12.s }[0], [x23], #0x4\n"
"ld1 { v16.s }[0], [x22], #0x4\n"
"ld1 { v23.s }[0], [x21], #0x4\n"
"ld1 { v10.s }[0], [x20], #0x4\n"
"tbz x7, #1, 8f\n"
"ld1 { v25.h }[2], [x27], #0x2\n"
"ld1 { v27.h }[2], [x26], #0x2\n"
"ld1 { v1.h }[2], [x25], #0x2\n"
"ld1 { v2.h }[2], [x24], #0x2\n"
"ld1 { v12.h }[2], [x23], #0x2\n"
"ld1 { v16.h }[2], [x22], #0x2\n"
"ld1 { v23.h }[2], [x21], #0x2\n"
"ld1 { v10.h }[2], [x20], #0x2\n"
"tbz x7, #0, 11f\n"
"ld1 { v25.b }[6], [x27]\n"
"ld1 { v27.b }[6], [x26]\n"
"ld1 { v1.b }[6], [x25]\n"
"ld1 { v2.b }[6], [x24]\n"
"ld1 { v12.b }[6], [x23]\n"
"ld1 { v16.b }[6], [x22]\n"
"ld1 { v23.b }[6], [x21]\n"
"ld1 { v10.b }[6], [x20]\n"
"b 11f\n"
"8:" // Oddments: Initial loads: Bit 2: Bit 1: Unset
"tbz x7, #0, 11f\n"
"ld1 { v25.b }[4], [x27]\n"
"ld1 { v27.b }[4], [x26]\n"
"ld1 { v1.b }[4], [x25]\n"
"ld1 { v2.b }[4], [x24]\n"
"ld1 { v12.b }[4], [x23]\n"
"ld1 { v16.b }[4], [x22]\n"
"ld1 { v23.b }[4], [x21]\n"
"ld1 { v10.b }[4], [x20]\n"
"b 11f\n"
"9:" // Oddments: Initial loads: Bit 2: Unset
"tbz x7, #1, 10f\n"
"ld1 { v25.h }[0], [x27], #0x2\n"
"ld1 { v27.h }[0], [x26], #0x2\n"
"ld1 { v1.h }[0], [x25], #0x2\n"
"ld1 { v2.h }[0], [x24], #0x2\n"
"ld1 { v12.h }[0], [x23], #0x2\n"
"ld1 { v16.h }[0], [x22], #0x2\n"
"ld1 { v23.h }[0], [x21], #0x2\n"
"ld1 { v10.h }[0], [x20], #0x2\n"
"tbz x7, #0, 11f\n"
"ld1 { v25.b }[2], [x27]\n"
"ld1 { v27.b }[2], [x26]\n"
"ld1 { v1.b }[2], [x25]\n"
"ld1 { v2.b }[2], [x24]\n"
"ld1 { v12.b }[2], [x23]\n"
"ld1 { v16.b }[2], [x22]\n"
"ld1 { v23.b }[2], [x21]\n"
"ld1 { v10.b }[2], [x20]\n"
"b 11f\n"
"10:" // Oddments: Initial loads: Bit 2: Unset: Bit 1: Unset
"tbz x7, #0, 11f\n"
"ld1 { v25.b }[0], [x27]\n"
"ld1 { v27.b }[0], [x26]\n"
"ld1 { v1.b }[0], [x25]\n"
"ld1 { v2.b }[0], [x24]\n"
"ld1 { v12.b }[0], [x23]\n"
"ld1 { v16.b }[0], [x22]\n"
"ld1 { v23.b }[0], [x21]\n"
"ld1 { v10.b }[0], [x20]\n"
"11:" // Oddments: Initial loads: Bit 2: End
"usubl v25.8h, v25.8b, v6.8b\n"
"smlal v5.4s, v25.4h, v4.4h\n"
"smlal2 v3.4s, v25.8h, v4.8h\n"
"ldr x20, [x15, #0x40]\n"
"usubl v27.8h, v27.8b, v6.8b\n"
"smlal v5.4s, v27.4h, v11.4h\n"
"smlal2 v3.4s, v27.8h, v11.8h\n"
"usubl v1.8h, v1.8b, v6.8b\n"
"smlal v21.4s, v25.4h, v26.4h\n"
"smlal2 v8.4s, v25.8h, v26.8h\n"
"add x20, x20, x17\n"
"smlal v5.4s, v1.4h, v22.4h\n"
"smlal2 v3.4s, v1.8h, v22.8h\n"
"usubl v2.8h, v2.8b, v6.8b\n"
"usubl v16.8h, v16.8b, v6.8b\n"
"smlal v21.4s, v2.4h, v22.4h\n"
"smlal2 v8.4s, v2.8h, v22.8h\n"
"smlal v5.4s, v16.4h, v28.4h\n"
"smlal2 v3.4s, v16.8h, v28.8h\n"
"usubl v12.8h, v12.8b, v6.8b\n"
"usubl v23.8h, v23.8b, v6.8b\n"
"smlal v21.4s, v12.4h, v14.4h\n"
"smlal2 v8.4s, v12.8h, v14.8h\n"
"smlal v5.4s, v23.4h, v18.4h\n"
"smlal2 v3.4s, v23.8h, v18.8h\n"
"usubl v10.8h, v10.8b, v6.8b\n"
"smlal v20.4s, v25.4h, v14.4h\n"
"smlal2 v0.4s, v25.8h, v14.8h\n"
"smlal v19.4s, v25.4h, v11.4h\n"
"smlal2 v31.4s, v25.8h, v11.8h\n"
"smlal v5.4s, v10.4h, v14.4h\n"
"smlal2 v3.4s, v10.8h, v14.8h\n"
"smlal v21.4s, v10.4h, v11.4h\n"
"smlal2 v8.4s, v10.8h, v11.8h\n"
"tbz x7, #2, 13f\n"
"ld1 { v15.s }[0], [x20], #0x4\n"
"tbz x7, #1, 12f\n"
"ld1 { v15.h }[2], [x20], #0x2\n"
"tbz x7, #0, 15f\n"
"ld1 { v15.b }[6], [x20]\n"
"b 15f\n"
"12:" // Oddments: Load (1, 3): Bit 2: Bit 1: Unset
"tbz x7, #0, 15f\n"
"ld1 { v15.b }[4], [x20]\n"
"b 15f\n"
"13:" // Oddments: Load (1, 3): Bit 2: Unset
"tbz x7, #1, 14f\n"
"ld1 { v15.h }[0], [x20], #0x2\n"
"tbz x7, #0, 15f\n"
"ld1 { v15.b }[2], [x20]\n"
"b 15f\n"
"14:" // Oddments: Load (1, 3): Bit 2: Unset: Bit 1: Unset
"tbz x7, #0, 15f\n"
"ld1 { v15.b }[0], [x20]\n"
"15:" // Oddments: Load (1, 3): Bit 2: End
"usubl v15.8h, v15.8b, v6.8b\n"
"ldr x20, [x15, #0x48]\n"
"smlal v21.4s, v15.4h, v18.4h\n"
"smlal2 v8.4s, v15.8h, v18.8h\n"
"add x20, x20, x17\n"
"tbz x7, #2, 17f\n"
"ld1 { v16.s }[0], [x20], #0x4\n"
"tbz x7, #1, 16f\n"
"ld1 { v16.h }[2], [x20], #0x2\n"
"tbz x7, #0, 19f\n"
"ld1 { v16.b }[6], [x20]\n"
"b 19f\n"
"16:" // Oddments: Load (1, 4): Bit 2: Bit 1: Unset
"tbz x7, #0, 19f\n"
"ld1 { v16.b }[4], [x20]\n"
"b 19f\n"
"17:" // Oddments: Load (1, 4): Bit 2: Unset
"tbz x7, #1, 18f\n"
"ld1 { v16.h }[0], [x20], #0x2\n"
"tbz x7, #0, 19f\n"
"ld1 { v16.b }[2], [x20]\n"
"b 19f\n"
"18:" // Oddments: Load (1, 4): Bit 2: Unset: Bit 1: Unset
"tbz x7, #0, 19f\n"
"ld1 { v16.b }[0], [x20]\n"
"19:" // Oddments: Load (1, 4): Bit 2: End
"usubl v16.8h, v16.8b, v6.8b\n"
"ldr x20, [x15, #0x50]\n"
"smlal v21.4s, v16.4h, v9.4h\n"
"smlal2 v8.4s, v16.8h, v9.8h\n"
"add x20, x20, x17\n"
"tbz x7, #2, 21f\n"
"ld1 { v16.s }[0], [x20], #0x4\n"
"tbz x7, #1, 20f\n"
"ld1 { v16.h }[2], [x20], #0x2\n"
"tbz x7, #0, 23f\n"
"ld1 { v16.b }[6], [x20]\n"
"b 23f\n"
"20:" // Oddments: Load (1, 2): Bit 2: Bit 1: Unset
"tbz x7, #0, 23f\n"
"ld1 { v16.b }[4], [x20]\n"
"b 23f\n"
"21:" // Oddments: Load (1, 2): Bit 2: Unset
"tbz x7, #1, 22f\n"
"ld1 { v16.h }[0], [x20], #0x2\n"
"tbz x7, #0, 23f\n"
"ld1 { v16.b }[2], [x20]\n"
"b 23f\n"
"22:" // Oddments: Load (1, 2): Bit 2: Unset: Bit 1: Unset
"tbz x7, #0, 23f\n"
"ld1 { v16.b }[0], [x20]\n"
"23:" // Oddments: Load (1, 2): Bit 2: End
"usubl v16.8h, v16.8b, v6.8b\n"
"ldr x20, [x15, #0x58]\n"
"smlal v5.4s, v16.4h, v9.4h\n"
"smlal2 v3.4s, v16.8h, v9.8h\n"
"smlal v21.4s, v16.4h, v28.4h\n"
"smlal2 v8.4s, v16.8h, v28.8h\n"
"add x20, x20, x17\n"
"tbz x7, #2, 25f\n"
"ld1 { v16.s }[0], [x20], #0x4\n"
"tbz x7, #1, 24f\n"
"ld1 { v16.h }[2], [x20], #0x2\n"
"tbz x7, #0, 27f\n"
"ld1 { v16.b }[6], [x20]\n"
"b 27f\n"
"24:" // Oddments: Load (3, 0): Bit 2: Bit 1: Unset
"tbz x7, #0, 27f\n"
"ld1 { v16.b }[4], [x20]\n"
"b 27f\n"
"25:" // Oddments: Load (3, 0): Bit 2: Unset
"tbz x7, #1, 26f\n"
"ld1 { v16.h }[0], [x20], #0x2\n"
"tbz x7, #0, 27f\n"
"ld1 { v16.b }[2], [x20]\n"
"b 27f\n"
"26:" // Oddments: Load (3, 0): Bit 2: Unset: Bit 1: Unset
"tbz x7, #0, 27f\n"
"ld1 { v16.b }[0], [x20]\n"
"27:" // Oddments: Load (3, 0): Bit 2: End
"usubl v16.8h, v16.8b, v6.8b\n"
"ldr x20, [x15, #0x60]\n"
"smlal v20.4s, v16.4h, v28.4h\n"
"smlal2 v0.4s, v16.8h, v28.8h\n"
"add x20, x20, x17\n"
"tbz x7, #2, 29f\n"
"ld1 { v16.s }[0], [x20], #0x4\n"
"tbz x7, #1, 28f\n"
"ld1 { v16.h }[2], [x20], #0x2\n"
"tbz x7, #0, 31f\n"
"ld1 { v16.b }[6], [x20]\n"
"b 31f\n"
"28:" // Oddments: Load (2, 0): Bit 2: Bit 1: Unset
"tbz x7, #0, 31f\n"
"ld1 { v16.b }[4], [x20]\n"
"b 31f\n"
"29:" // Oddments: Load (2, 0): Bit 2: Unset
"tbz x7, #1, 30f\n"
"ld1 { v16.h }[0], [x20], #0x2\n"
"tbz x7, #0, 31f\n"
"ld1 { v16.b }[2], [x20]\n"
"b 31f\n"
"30:" // Oddments: Load (2, 0): Bit 2: Unset: Bit 1: Unset
"tbz x7, #0, 31f\n"
"ld1 { v16.b }[0], [x20]\n"
"31:" // Oddments: Load (2, 0): Bit 2: End
"usubl v16.8h, v16.8b, v6.8b\n"
"ldr x20, [x15, #0x68]\n"
"smlal v5.4s, v16.4h, v26.4h\n"
"smlal2 v3.4s, v16.8h, v26.8h\n"
"smlal v20.4s, v16.4h, v11.4h\n"
"smlal2 v0.4s, v16.8h, v11.8h\n"
"add x20, x20, x17\n"
"tbz x7, #2, 33f\n"
"ld1 { v16.s }[0], [x20], #0x4\n"
"tbz x7, #1, 32f\n"
"ld1 { v16.h }[2], [x20], #0x2\n"
"tbz x7, #0, 35f\n"
"ld1 { v16.b }[6], [x20]\n"
"b 35f\n"
"32:" // Oddments: Load (3, 1): Bit 2: Bit 1: Unset
"tbz x7, #0, 35f\n"
"ld1 { v16.b }[4], [x20]\n"
"b 35f\n"
"33:" // Oddments: Load (3, 1): Bit 2: Unset
"tbz x7, #1, 34f\n"
"ld1 { v16.h }[0], [x20], #0x2\n"
"tbz x7, #0, 35f\n"
"ld1 { v16.b }[2], [x20]\n"
"b 35f\n"
"34:" // Oddments: Load (3, 1): Bit 2: Unset: Bit 1: Unset
"tbz x7, #0, 35f\n"
"ld1 { v16.b }[0], [x20]\n"
"35:" // Oddments: Load (3, 1): Bit 2: End
"usubl v16.8h, v16.8b, v6.8b\n"
"ldr x20, [x15, #0x70]\n"
"smlal v20.4s, v16.4h, v18.4h\n"
"smlal2 v0.4s, v16.8h, v18.8h\n"
"add x20, x20, x17\n"
"tbz x7, #2, 37f\n"
"ld1 { v16.s }[0], [x20], #0x4\n"
"tbz x7, #1, 36f\n"
"ld1 { v16.h }[2], [x20], #0x2\n"
"tbz x7, #0, 39f\n"
"ld1 { v16.b }[6], [x20]\n"
"b 39f\n"
"36:" // Oddments: Load (2, 1): Bit 2: Bit 1: Unset
"tbz x7, #0, 39f\n"
"ld1 { v16.b }[4], [x20]\n"
"b 39f\n"
"37:" // Oddments: Load (2, 1): Bit 2: Unset
"tbz x7, #1, 38f\n"
"ld1 { v16.h }[0], [x20], #0x2\n"
"tbz x7, #0, 39f\n"
"ld1 { v16.b }[2], [x20]\n"
"b 39f\n"
"38:" // Oddments: Load (2, 1): Bit 2: Unset: Bit 1: Unset
"tbz x7, #0, 39f\n"
"ld1 { v16.b }[0], [x20]\n"
"39:" // Oddments: Load (2, 1): Bit 2: End
"usubl v16.8h, v16.8b, v6.8b\n"
"ldr x20, [x15, #0x78]\n"
"smlal v5.4s, v16.4h, v7.4h\n"
"smlal2 v3.4s, v16.8h, v7.8h\n"
"smlal v20.4s, v16.4h, v22.4h\n"
"smlal2 v0.4s, v16.8h, v22.8h\n"
"add x20, x20, x17\n"
"tbz x7, #2, 41f\n"
"ld1 { v16.s }[0], [x20], #0x4\n"
"tbz x7, #1, 40f\n"
"ld1 { v16.h }[2], [x20], #0x2\n"
"tbz x7, #0, 43f\n"
"ld1 { v16.b }[6], [x20]\n"
"b 43f\n"
"40:" // Oddments: Load (3, 3): Bit 2: Bit 1: Unset
"tbz x7, #0, 43f\n"
"ld1 { v16.b }[4], [x20]\n"
"b 43f\n"
"41:" // Oddments: Load (3, 3): Bit 2: Unset
"tbz x7, #1, 42f\n"
"ld1 { v16.h }[0], [x20], #0x2\n"
"tbz x7, #0, 43f\n"
"ld1 { v16.b }[2], [x20]\n"
"b 43f\n"
"42:" // Oddments: Load (3, 3): Bit 2: Unset: Bit 1: Unset
"tbz x7, #0, 43f\n"
"ld1 { v16.b }[0], [x20]\n"
"43:" // Oddments: Load (3, 3): Bit 2: End
"usubl v16.8h, v16.8b, v6.8b\n"
"ldr x20, [x15, #0x80]\n"
"smlal v19.4s, v16.4h, v18.4h\n"
"smlal2 v31.4s, v16.8h, v18.8h\n"
"add x20, x20, x17\n"
"tbz x7, #2, 45f\n"
"ld1 { v16.s }[0], [x20], #0x4\n"
"tbz x7, #1, 44f\n"
"ld1 { v16.h }[2], [x20], #0x2\n"
"tbz x7, #0, 47f\n"
"ld1 { v16.b }[6], [x20]\n"
"b 47f\n"
"44:" // Oddments: Load (2, 3): Bit 2: Bit 1: Unset
"tbz x7, #0, 47f\n"
"ld1 { v16.b }[4], [x20]\n"
"b 47f\n"
"45:" // Oddments: Load (2, 3): Bit 2: Unset
"tbz x7, #1, 46f\n"
"ld1 { v16.h }[0], [x20], #0x2\n"
"tbz x7, #0, 47f\n"
"ld1 { v16.b }[2], [x20]\n"
"b 47f\n"
"46:" // Oddments: Load (2, 3): Bit 2: Unset: Bit 1: Unset
"tbz x7, #0, 47f\n"
"ld1 { v16.b }[0], [x20]\n"
"47:" // Oddments: Load (2, 3): Bit 2: End
"usubl v16.8h, v16.8b, v6.8b\n"
"ldr x20, [x15, #0x88]\n"
"smlal v21.4s, v16.4h, v7.4h\n"
"smlal2 v8.4s, v16.8h, v7.8h\n"
"smlal v19.4s, v16.4h, v22.4h\n"
"smlal2 v31.4s, v16.8h, v22.8h\n"
"add x20, x20, x17\n"
"tbz x7, #2, 49f\n"
"ld1 { v16.s }[0], [x20], #0x4\n"
"tbz x7, #1, 48f\n"
"ld1 { v16.h }[2], [x20], #0x2\n"
"tbz x7, #0, 51f\n"
"ld1 { v16.b }[6], [x20]\n"
"b 51f\n"
"48:" // Oddments: Load (3, 4): Bit 2: Bit 1: Unset
"tbz x7, #0, 51f\n"
"ld1 { v16.b }[4], [x20]\n"
"b 51f\n"
"49:" // Oddments: Load (3, 4): Bit 2: Unset
"tbz x7, #1, 50f\n"
"ld1 { v16.h }[0], [x20], #0x2\n"
"tbz x7, #0, 51f\n"
"ld1 { v16.b }[2], [x20]\n"
"b 51f\n"
"50:" // Oddments: Load (3, 4): Bit 2: Unset: Bit 1: Unset
"tbz x7, #0, 51f\n"
"ld1 { v16.b }[0], [x20]\n"
"51:" // Oddments: Load (3, 4): Bit 2: End
"usubl v16.8h, v16.8b, v6.8b\n"
"ldr x20, [x15, #0x90]\n"
"smlal v19.4s, v16.4h, v9.4h\n"
"smlal2 v31.4s, v16.8h, v9.8h\n"
"add x20, x20, x17\n"
"tbz x7, #2, 53f\n"
"ld1 { v16.s }[0], [x20], #0x4\n"
"tbz x7, #1, 52f\n"
"ld1 { v16.h }[2], [x20], #0x2\n"
"tbz x7, #0, 55f\n"
"ld1 { v16.b }[6], [x20]\n"
"b 55f\n"
"52:" // Oddments: Load (4, 0): Bit 2: Bit 1: Unset
"tbz x7, #0, 55f\n"
"ld1 { v16.b }[4], [x20]\n"
"b 55f\n"
"53:" // Oddments: Load (4, 0): Bit 2: Unset
"tbz x7, #1, 54f\n"
"ld1 { v16.h }[0], [x20], #0x2\n"
"tbz x7, #0, 55f\n"
"ld1 { v16.b }[2], [x20]\n"
"b 55f\n"
"54:" // Oddments: Load (4, 0): Bit 2: Unset: Bit 1: Unset
"tbz x7, #0, 55f\n"
"ld1 { v16.b }[0], [x20]\n"
"55:" // Oddments: Load (4, 0): Bit 2: End
"usubl v16.8h, v16.8b, v6.8b\n"
"ldr x20, [x15, #0x98]\n"
"smlal v20.4s, v16.4h, v26.4h\n"
"smlal2 v0.4s, v16.8h, v26.8h\n"
"add x20, x20, x17\n"
"tbz x7, #2, 57f\n"
"ld1 { v16.s }[0], [x20], #0x4\n"
"tbz x7, #1, 56f\n"
"ld1 { v16.h }[2], [x20], #0x2\n"
"tbz x7, #0, 59f\n"
"ld1 { v16.b }[6], [x20]\n"
"b 59f\n"
"56:" // Oddments: Load (2, 4): Bit 2: Bit 1: Unset
"tbz x7, #0, 59f\n"
"ld1 { v16.b }[4], [x20]\n"
"b 59f\n"
"57:" // Oddments: Load (2, 4): Bit 2: Unset
"tbz x7, #1, 58f\n"
"ld1 { v16.h }[0], [x20], #0x2\n"
"tbz x7, #0, 59f\n"
"ld1 { v16.b }[2], [x20]\n"
"b 59f\n"
"58:" // Oddments: Load (2, 4): Bit 2: Unset: Bit 1: Unset
"tbz x7, #0, 59f\n"
"ld1 { v16.b }[0], [x20]\n"
"59:" // Oddments: Load (2, 4): Bit 2: End
"usubl v16.8h, v16.8b, v6.8b\n"
"ldr x20, [x15, #0xa0]\n"
"smlal v21.4s, v16.4h, v4.4h\n"
"smlal2 v8.4s, v16.8h, v4.8h\n"
"smlal v19.4s, v16.4h, v14.4h\n"
"smlal2 v31.4s, v16.8h, v14.8h\n"
"add x20, x20, x17\n"
"tbz x7, #2, 61f\n"
"ld1 { v16.s }[0], [x20], #0x4\n"
"tbz x7, #1, 60f\n"
"ld1 { v16.h }[2], [x20], #0x2\n"
"tbz x7, #0, 63f\n"
"ld1 { v16.b }[6], [x20]\n"
"b 63f\n"
"60:" // Oddments: Load (4, 1): Bit 2: Bit 1: Unset
"tbz x7, #0, 63f\n"
"ld1 { v16.b }[4], [x20]\n"
"b 63f\n"
"61:" // Oddments: Load (4, 1): Bit 2: Unset
"tbz x7, #1, 62f\n"
"ld1 { v16.h }[0], [x20], #0x2\n"
"tbz x7, #0, 63f\n"
"ld1 { v16.b }[2], [x20]\n"
"b 63f\n"
"62:" // Oddments: Load (4, 1): Bit 2: Unset: Bit 1: Unset
"tbz x7, #0, 63f\n"
"ld1 { v16.b }[0], [x20]\n"
"63:" // Oddments: Load (4, 1): Bit 2: End
"usubl v16.8h, v16.8b, v6.8b\n"
"ldr x20, [x15, #0xa8]\n"
"smlal v20.4s, v16.4h, v7.4h\n"
"smlal2 v0.4s, v16.8h, v7.8h\n"
"add x20, x20, x17\n"
"tbz x7, #2, 65f\n"
"ld1 { v16.s }[0], [x20], #0x4\n"
"tbz x7, #1, 64f\n"
"ld1 { v16.h }[2], [x20], #0x2\n"
"tbz x7, #0, 67f\n"
"ld1 { v16.b }[6], [x20]\n"
"b 67f\n"
"64:" // Oddments: Load (3, 2): Bit 2: Bit 1: Unset
"tbz x7, #0, 67f\n"
"ld1 { v16.b }[4], [x20]\n"
"b 67f\n"
"65:" // Oddments: Load (3, 2): Bit 2: Unset
"tbz x7, #1, 66f\n"
"ld1 { v16.h }[0], [x20], #0x2\n"
"tbz x7, #0, 67f\n"
"ld1 { v16.b }[2], [x20]\n"
"b 67f\n"
"66:" // Oddments: Load (3, 2): Bit 2: Unset: Bit 1: Unset
"tbz x7, #0, 67f\n"
"ld1 { v16.b }[0], [x20]\n"
"67:" // Oddments: Load (3, 2): Bit 2: End
"usubl v16.8h, v16.8b, v6.8b\n"
"ldr x20, [x15, #0xb0]\n"
"smlal v20.4s, v16.4h, v9.4h\n"
"smlal2 v0.4s, v16.8h, v9.8h\n"
"smlal v19.4s, v16.4h, v28.4h\n"
"smlal2 v31.4s, v16.8h, v28.8h\n"
"add x20, x20, x17\n"
"tbz x7, #2, 69f\n"
"ld1 { v16.s }[0], [x20], #0x4\n"
"tbz x7, #1, 68f\n"
"ld1 { v16.h }[2], [x20], #0x2\n"
"tbz x7, #0, 71f\n"
"ld1 { v16.b }[6], [x20]\n"
"b 71f\n"
"68:" // Oddments: Load (4, 3): Bit 2: Bit 1: Unset
"tbz x7, #0, 71f\n"
"ld1 { v16.b }[4], [x20]\n"
"b 71f\n"
"69:" // Oddments: Load (4, 3): Bit 2: Unset
"tbz x7, #1, 70f\n"
"ld1 { v16.h }[0], [x20], #0x2\n"
"tbz x7, #0, 71f\n"
"ld1 { v16.b }[2], [x20]\n"
"b 71f\n"
"70:" // Oddments: Load (4, 3): Bit 2: Unset: Bit 1: Unset
"tbz x7, #0, 71f\n"
"ld1 { v16.b }[0], [x20]\n"
"71:" // Oddments: Load (4, 3): Bit 2: End
"usubl v16.8h, v16.8b, v6.8b\n"
"ldr x20, [x15, #0xb8]\n"
"smlal v19.4s, v16.4h, v7.4h\n"
"smlal2 v31.4s, v16.8h, v7.8h\n"
"add x20, x20, x17\n"
"tbz x7, #2, 73f\n"
"ld1 { v16.s }[0], [x20], #0x4\n"
"tbz x7, #1, 72f\n"
"ld1 { v16.h }[2], [x20], #0x2\n"
"tbz x7, #0, 75f\n"
"ld1 { v16.b }[6], [x20]\n"
"b 75f\n"
"72:" // Oddments: Load (4, 2): Bit 2: Bit 1: Unset
"tbz x7, #0, 75f\n"
"ld1 { v16.b }[4], [x20]\n"
"b 75f\n"
"73:" // Oddments: Load (4, 2): Bit 2: Unset
"tbz x7, #1, 74f\n"
"ld1 { v16.h }[0], [x20], #0x2\n"
"tbz x7, #0, 75f\n"
"ld1 { v16.b }[2], [x20]\n"
"b 75f\n"
"74:" // Oddments: Load (4, 2): Bit 2: Unset: Bit 1: Unset
"tbz x7, #0, 75f\n"
"ld1 { v16.b }[0], [x20]\n"
"75:" // Oddments: Load (4, 2): Bit 2: End
"usubl v16.8h, v16.8b, v6.8b\n"
"ldr x20, [x15, #0xc0]\n"
"smlal v20.4s, v16.4h, v4.4h\n"
"smlal2 v0.4s, v16.8h, v4.8h\n"
"smlal v19.4s, v16.4h, v26.4h\n"
"smlal2 v31.4s, v16.8h, v26.8h\n"
"add x20, x20, x17\n"
"tbz x7, #2, 77f\n"
"ld1 { v16.s }[0], [x20], #0x4\n"
"tbz x7, #1, 76f\n"
"ld1 { v16.h }[2], [x20], #0x2\n"
"tbz x7, #0, 79f\n"
"ld1 { v16.b }[6], [x20]\n"
"b 79f\n"
"76:" // Oddments: Load (4, 4): Bit 2: Bit 1: Unset
"tbz x7, #0, 79f\n"
"ld1 { v16.b }[4], [x20]\n"
"b 79f\n"
"77:" // Oddments: Load (4, 4): Bit 2: Unset
"tbz x7, #1, 78f\n"
"ld1 { v16.h }[0], [x20], #0x2\n"
"tbz x7, #0, 79f\n"
"ld1 { v16.b }[2], [x20]\n"
"b 79f\n"
"78:" // Oddments: Load (4, 4): Bit 2: Unset: Bit 1: Unset
"tbz x7, #0, 79f\n"
"ld1 { v16.b }[0], [x20]\n"
"79:" // Oddments: Load (4, 4): Bit 2: End
"usubl v16.8h, v16.8b, v6.8b\n"
"smlal v19.4s, v16.4h, v4.4h\n"
"smlal2 v31.4s, v16.8h, v4.8h\n"
"tbz x7, #2, 81f\n"
"ld1 { v14.4s }, [x13], #0x10\n"
"ld1 { v25.4s }, [x12], #0x10\n"
"tbz x7, #1, 80f\n"
"ld1 { v18.d }[0], [x13], #0x8\n"
"ld1 { v12.d }[0], [x12], #0x8\n"
"tbz x7, #0, 83f\n"
"ld1 { v18.s }[2], [x13]\n"
"ld1 { v12.s }[2], [x12]\n"
"b 83f\n"
"80:" // Oddments: Load requant params: Bit 2: Bit 1: Unset
"tbz x7, #0, 83f\n"
"ld1 { v18.s }[0], [x13]\n"
"ld1 { v12.s }[0], [x12]\n"
"b 83f\n"
"81:" // Oddments: Load requant params: Bit 2: Unset
"tbz x7, #1, 82f\n"
"ld1 { v14.d }[0], [x13], #0x8\n"
"ld1 { v25.d }[0], [x12], #0x8\n"
"tbz x7, #0, 83f\n"
"ld1 { v14.s }[2], [x13]\n"
"ld1 { v25.s }[2], [x12]\n"
"b 83f\n"
"82:" // Oddments: Load requant params: Bit 2: Unset: Bit 1: Unset
"tbz x7, #0, 83f\n"
"ld1 { v14.s }[0], [x13]\n"
"ld1 { v25.s }[0], [x12]\n"
"83:" // Oddments: Load requant params: Bit 2: End
"sqrdmulh v5.4s, v5.4s, v14.4s\n"
"and v28.16b, v5.16b, v25.16b\n"
"add x11, x11, x16\n"
"add x10, x10, x16\n"
"sqrdmulh v3.4s, v3.4s, v18.4s\n"
"sshr v28.4s, v28.4s, #0x1f\n"
"add x9, x9, x16\n"
"add x28, x28, x16\n"
"and v16.16b, v3.16b, v12.16b\n"
"sqrdmulh v21.4s, v21.4s, v14.4s\n"
"sqrdmulh v20.4s, v20.4s, v14.4s\n"
"sqrdmulh v19.4s, v19.4s, v14.4s\n"
"sqadd v5.4s, v5.4s, v28.4s\n"
"sshr v16.4s, v16.4s, #0x1f\n"
"and v14.16b, v21.16b, v25.16b\n"
"sqrdmulh v8.4s, v8.4s, v18.4s\n"
"and v6.16b, v20.16b, v25.16b\n"
"sqrdmulh v0.4s, v0.4s, v18.4s\n"
"and v4.16b, v19.16b, v25.16b\n"
"sqrdmulh v31.4s, v31.4s, v18.4s\n"
"sqadd v3.4s, v3.4s, v16.4s\n"
"sshr v14.4s, v14.4s, #0x1f\n"
"and v18.16b, v8.16b, v12.16b\n"
"sshr v6.4s, v6.4s, #0x1f\n"
"and v7.16b, v0.16b, v12.16b\n"
"sshr v4.4s, v4.4s, #0x1f\n"
"and v16.16b, v31.16b, v12.16b\n"
"sqadd v21.4s, v21.4s, v14.4s\n"
"sshr v18.4s, v18.4s, #0x1f\n"
"sqadd v20.4s, v20.4s, v6.4s\n"
"sshr v7.4s, v7.4s, #0x1f\n"
"sqadd v19.4s, v19.4s, v4.4s\n"
"sshr v16.4s, v16.4s, #0x1f\n"
"srshl v5.4s, v5.4s, v25.4s\n"
"srshl v21.4s, v21.4s, v25.4s\n"
"sqadd v8.4s, v8.4s, v18.4s\n"
"srshl v20.4s, v20.4s, v25.4s\n"
"sqadd v0.4s, v0.4s, v7.4s\n"
"srshl v19.4s, v19.4s, v25.4s\n"
"sqadd v31.4s, v31.4s, v16.4s\n"
"srshl v3.4s, v3.4s, v12.4s\n"
"sqxtn v5.4h, v5.4s\n"
"srshl v8.4s, v8.4s, v12.4s\n"
"sqxtn v21.4h, v21.4s\n"
"srshl v0.4s, v0.4s, v12.4s\n"
"sqxtn v20.4h, v20.4s\n"
"srshl v31.4s, v31.4s, v12.4s\n"
"sqxtn v19.4h, v19.4s\n"
"sqxtn2 v5.8h, v3.4s\n"
"sqxtn2 v21.8h, v8.4s\n"
"sqxtn2 v20.8h, v0.4s\n"
"sqxtn2 v19.8h, v31.4s\n"
"sqadd v5.8h, v5.8h, v13.8h\n"
"sqadd v21.8h, v21.8h, v13.8h\n"
"sqadd v20.8h, v20.8h, v13.8h\n"
"sqadd v19.8h, v19.8h, v13.8h\n"
"smax v5.8h, v5.8h, v17.8h\n"
"smax v21.8h, v21.8h, v17.8h\n"
"smax v20.8h, v20.8h, v17.8h\n"
"smax v19.8h, v19.8h, v17.8h\n"
"smin v5.8h, v5.8h, v24.8h\n"
"smin v21.8h, v21.8h, v24.8h\n"
"smin v20.8h, v20.8h, v24.8h\n"
"smin v19.8h, v19.8h, v24.8h\n"
"uzp1 v5.16b, v5.16b, v5.16b\n"
"uzp1 v21.16b, v21.16b, v21.16b\n"
"uzp1 v20.16b, v20.16b, v20.16b\n"
"uzp1 v19.16b, v19.16b, v19.16b\n"
"tbz x7, #2, 85f\n"
"st1 { v5.s }[0], [x11], #0x4\n"
"st1 { v21.s }[0], [x10], #0x4\n"
"st1 { v20.s }[0], [x9], #0x4\n"
"st1 { v19.s }[0], [x28], #0x4\n"
"tbz x7, #1, 84f\n"
"st1 { v5.h }[2], [x11], #0x2\n"
"st1 { v21.h }[2], [x10], #0x2\n"
"st1 { v20.h }[2], [x9], #0x2\n"
"st1 { v19.h }[2], [x28], #0x2\n"
"tbz x7, #0, 87f\n"
"st1 { v5.b }[6], [x11], #0x1\n"
"st1 { v21.b }[6], [x10], #0x1\n"
"st1 { v20.b }[6], [x9], #0x1\n"
"st1 { v19.b }[6], [x28], #0x1\n"
"b 87f\n"
"84:" // Oddments: Bit 2: Bit 1: Unset
"tbz x7, #0, 87f\n"
"st1 { v5.b }[4], [x11], #0x1\n"
"st1 { v21.b }[4], [x10], #0x1\n"
"st1 { v20.b }[4], [x9], #0x1\n"
"st1 { v19.b }[4], [x28], #0x1\n"
"b 87f\n"
"85:" // Oddments: Bit 2: Unset
"tbz x7, #1, 86f\n"
"st1 { v5.h }[0], [x11], #0x2\n"
"st1 { v21.h }[0], [x10], #0x2\n"
"st1 { v20.h }[0], [x9], #0x2\n"
"st1 { v19.h }[0], [x28], #0x2\n"
"tbz x7, #0, 87f\n"
"st1 { v5.b }[2], [x11], #0x1\n"
"st1 { v21.b }[2], [x10], #0x1\n"
"st1 { v20.b }[2], [x9], #0x1\n"
"st1 { v19.b }[2], [x28], #0x1\n"
"b 87f\n"
"86:" // Oddments: Bit 2: Unset: Bit 1: Unset
"tbz x7, #0, 87f\n"
"st1 { v5.b }[0], [x11], #0x1\n"
"st1 { v21.b }[0], [x10], #0x1\n"
"st1 { v20.b }[0], [x9], #0x1\n"
"st1 { v19.b }[0], [x28], #0x1\n"
"87:" // Oddments: Bit 2: End
"88:" // End
:
: [offsetof_Params_bias] "I" (offsetof(Params, bias)), [offsetof_Params_inptrs] "I" (offsetof(Params, inptrs)), [offsetof_Params_n_channels] "I" (offsetof(Params, n_channels)), [offsetof_Params_outptrs] "I" (offsetof(Params, outptrs)), [offsetof_Params_requant] "I" (offsetof(Params, requant)), [offsetof_Params_requant_muls] "I" (offsetof(Params, requant_muls)), [offsetof_Params_requant_shifts] "I" (offsetof(Params, requant_shifts)), [offsetof_Params_weights] "I" (offsetof(Params, weights)), [offsetof_Requantize32_a_offset] "I" (offsetof(arm_gemm::Requantize32, a_offset)), [offsetof_Requantize32_b_offset] "I" (offsetof(arm_gemm::Requantize32, b_offset)), [offsetof_Requantize32_c_offset] "I" (offsetof(arm_gemm::Requantize32, c_offset)), [offsetof_Requantize32_maxval] "I" (offsetof(arm_gemm::Requantize32, maxval)), [offsetof_Requantize32_minval] "I" (offsetof(arm_gemm::Requantize32, minval)), [params] "r" (¶ms)
: "cc", "memory", "v0", "v1", "v2", "v3", "v4", "v5", "v6", "v7", "v8", "v9", "v10", "v11", "v12", "v13", "v14", "v15", "v16", "v17", "v18", "v19", "v20", "v21", "v22", "v23", "v24", "v25", "v26", "v27", "v28", "v29", "v30", "v31", "x7", "x8", "x9", "x10", "x11", "x12", "x13", "x14", "x15", "x16", "x17", "x20", "x21", "x22", "x23", "x24", "x25", "x26", "x27", "x28"
);
}
} // namespace depthwise
} // namespace arm_conv
#endif // defined(__aarch64__)
| [
"bsgcomp@arm.com"
] | bsgcomp@arm.com |
6bf4928d6de113fff89dbe8129111a7fe34bc3b8 | 6f8441f7e78f2014fdaf22675c12d991634a47da | /main.cpp | 920877d9cd3042f7a0316f5f553e957243f17146 | [
"MIT"
] | permissive | sheepy0125/SDL2-Pong | d52059e92cf5e7eeee663d678bd9403fb44bd72e | 9271280704394d13a266caaacb5167b05da322df | refs/heads/main | 2023-08-19T04:00:01.798562 | 2021-10-20T16:52:01 | 2021-10-20T16:52:01 | 418,721,353 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,682 | cpp | /* ===== *\
|* Setup *|
\* ===== */
#include <SDL2/SDL.h>
#include <SDL2/SDL_ttf.h>
#include <iostream>
#include <string>
using namespace std;
/* Initialize SDL2 */
SDL_Renderer *renderer;
SDL_Window *window;
TTF_Font *font;
SDL_Color color;
/* Variables */
int frameCount;
int lastFrame;
int timerFPS;
int fps;
bool running = true;
/* Globals */
#define PI 3.14159265358979323846
#define WIDTH 720
#define HEIGHT 720
#define FONT_SIZE 32
#define FONT_PATH "assets/Peepo.ttf"
#define BALL_SIZE 16
#define BALL_START_SPEED 8
#define BALL_MAX_SPEED 16
#define BALL_SPEED_INC 1
#define PADDLE_SPEED 16
#define PADDLE_WIDTH 12
#define PADDLE_HEIGHT (HEIGHT / 8)
#define PADDLE_OFFSET 32
#define COMPUTER_PADDLE_SPEED (PADDLE_SPEED / 4)
/* Ball and paddles */
SDL_Rect scoreBoard;
SDL_Rect leftPaddle;
int leftScore;
SDL_Rect rightPaddle;
int rightScore;
SDL_Rect ball; /* TODO: turn into a circle */
int ballSpeed = BALL_START_SPEED;
float ballVelX, ballVelY = ballSpeed;
string score;
bool leftPlayerTurn;
/* ======================= *\
|* Turn bool into -1 or +1 *|
\* ======================= */
int turnPositiveOrNegative(bool theBool) {
if (theBool)
return 1;
return -1;
}
/* ======================= *\
|* Draw text to scoreboard *|
\* ======================= */
int drawTextToScoreboard(string text) {
int x = ((WIDTH / 2) + FONT_SIZE);
int y = (FONT_SIZE * 2);
SDL_Surface *surface;
SDL_Texture *texture;
/* Ensure font is loaded */
if (font == NULL) {
cerr << "Attempted to draw text, but font is null";
return 1;
}
/* Create surface and texture */
const char *textString = text.c_str();
surface = TTF_RenderText_Solid(font, textString, color);
texture = SDL_CreateTextureFromSurface(renderer, surface);
/* Update scoreboard */
scoreBoard.w = surface->w;
scoreBoard.h = surface->h;
scoreBoard.x = x - scoreBoard.w;
scoreBoard.y = y - scoreBoard.h;
/* We don't have a rect here (not needed), hence the NULL */
SDL_RenderCopy(renderer, texture, NULL, &scoreBoard);
/* Cleanup */
SDL_FreeSurface(surface);
SDL_DestroyTexture(texture);
return 0;
}
/* ===== *\
|* Serve *|
\* ===== */
void serve(void) {
/* Reset paddles*/
leftPaddle.y = rightPaddle.y = (HEIGHT / 2) - (PADDLE_HEIGHT / 2);
/* Reset ball */
ballSpeed = BALL_START_SPEED;
ball.x = (WIDTH / 2) - (BALL_SIZE / 2);
ball.y = (HEIGHT / 2) - (BALL_SIZE / 2);
ballVelY = 0;
/* Ball velocity */
if (leftPlayerTurn)
ballVelX = ballSpeed;
else
ballVelX = -ballSpeed;
/* Switch turn (whoever's turn currently is the person who won */
leftPlayerTurn = !leftPlayerTurn;
return;
}
/* ============= *\
|* Ball movement *|
\* ============= */
void ballMovement(void) {
ball.x += ballVelX;
ball.y += ballVelY;
return;
}
/* ================= *\
|* Computer movement *|
\* ================= */
void computerMovement(void) {
/* Go to the ball */
/* Need to go higher */
if (ball.y < (rightPaddle.y + (PADDLE_HEIGHT / 2)))
rightPaddle.y -= COMPUTER_PADDLE_SPEED;
/* Need to go lower */
if (ball.y > (rightPaddle.y + (PADDLE_HEIGHT / 2)))
rightPaddle.y += COMPUTER_PADDLE_SPEED;
return;
}
/* ================== *\
|* Get opposite angle *|
\* ================== */
double getOppositeAngle(int paddleY) {
/* Gets the opposite angle of where the ball hit the paddle */
/* What Y value on the paddle is the ball touching (from 0-PADDLE_HEIGHT) */
double rel_y = (paddleY + (PADDLE_HEIGHT / 2)) - (ball.y + (BALL_SIZE / 2));
/* Turn the relative Y value to be a number from 0-1 or 1-2, with the
* turning point being halfway through the paddle */
double normalized_y = rel_y / (PADDLE_HEIGHT / 2);
/* Turn that into an angle using glorious π
* The maximum angle will be 75° */
double angle = normalized_y * (5 * PI / 12);
return angle;
}
/* ======================= *\
|* Ball collision checking *|
\* ======================= */
void ballCollisionCheck(void) {
/* Top or bottom */
if (ball.y <= 0 || (ball.y + BALL_SIZE) >= HEIGHT)
ballVelY *= -1;
/* Off screen */
else if ((ball.x - BALL_SIZE) > WIDTH) { /* left scored */
serve();
leftScore++;
} else if (ball.x < 0) { /* right scored */
serve();
rightScore++;
}
double oppositeAngle;
/* Touching paddles */
if (SDL_HasIntersection(&ball, &leftPaddle)) {
oppositeAngle = getOppositeAngle(leftPaddle.y);
leftPlayerTurn = false;
} else if (SDL_HasIntersection(&ball, &rightPaddle)) {
oppositeAngle = -getOppositeAngle(rightPaddle.y);
leftPlayerTurn = true;
} else
return;
/* Touched one of the paddles */
ballSpeed += BALL_SPEED_INC;
if (ballSpeed > BALL_MAX_SPEED)
ballSpeed = BALL_MAX_SPEED;
/* Velocities */
ballVelX = turnPositiveOrNegative(!leftPlayerTurn) * ballSpeed *
cos(oppositeAngle);
ballVelY = (sin(oppositeAngle) * ballSpeed);
// ballVelY = (ballSpeed - abs(ballVelX)); /* Too slow, see updated */
return;
}
/* ====== *\
|* Update *|
\* ====== */
void update(void) {
/* Score */
score = to_string(leftScore) + " " + to_string(rightScore);
/* Disallow paddles moving past the screen */
/* Left paddle */
if ((leftPaddle.y + PADDLE_HEIGHT) >= HEIGHT)
leftPaddle.y = (HEIGHT - PADDLE_HEIGHT);
else if (leftPaddle.y <= 0)
leftPaddle.y = 0;
/* Right paddle */
if ((rightPaddle.y + PADDLE_HEIGHT) >= HEIGHT)
rightPaddle.y = (HEIGHT - PADDLE_HEIGHT);
else if (rightPaddle.y <= 0)
rightPaddle.y = 0;
/* Only move computer paddle when it's their turn */
if (!leftPlayerTurn)
computerMovement();
ballMovement();
ballCollisionCheck();
return;
}
/* ===== *\
|* Input *|
\* ===== */
void input(void) {
/* Pull events */
SDL_Event event;
const Uint8 *keystates = SDL_GetKeyboardState(NULL);
/* Events */
while (SDL_PollEvent(&event)) {
if (event.type == SDL_QUIT) /* exit */
running = false;
}
/* Keys */
/* exit */
if (keystates[SDL_SCANCODE_ESCAPE]) {
running = false;
}
/* up */
if (keystates[SDL_SCANCODE_UP]) {
leftPaddle.y -= PADDLE_SPEED;
}
/* down */
if (keystates[SDL_SCANCODE_DOWN]) {
leftPaddle.y += PADDLE_SPEED;
}
return;
}
/* ====== *\
|* Render *|
\* ====== */
void render(void) {
SDL_SetRenderDrawColor(renderer, 0x00, 0x00, 0x00, 255);
SDL_RenderClear(renderer);
SDL_SetRenderDrawColor(renderer, 0xFF, 0xFF, 0xFF, 255);
/* Delay for stable FPS, like clock.tick */
++frameCount;
timerFPS = SDL_GetTicks() - lastFrame;
if (timerFPS < (1000 / 60)) {
SDL_Delay((1000 / 60) - timerFPS);
}
/* Paddles and ball */
SDL_RenderFillRect(renderer, &leftPaddle);
SDL_RenderFillRect(renderer, &rightPaddle);
SDL_RenderFillRect(renderer, &ball);
/* Scoreboard */
drawTextToScoreboard(score);
/* Show everything */
SDL_RenderPresent(renderer);
return;
}
/* ==== *\
|* Main *|
\* ==== */
int main(void) {
/* Create window with error handling */
if (SDL_Init(SDL_INIT_EVERYTHING) < 0) {
cerr << "Failed to initialize SDL" << endl;
return 1;
}
if (SDL_CreateWindowAndRenderer(WIDTH, HEIGHT, 0, &window, &renderer) < 0) {
cerr << "Failed to create window" << endl;
return 1;
}
static int lastTime = 0;
/* Intialize other stuffs */
TTF_Init();
font = TTF_OpenFont(FONT_PATH, FONT_SIZE);
/* Color */
color.r = color.g = color.b = 255;
/* Ball and paddles */
leftScore = rightScore = 0;
leftPaddle.x = PADDLE_OFFSET;
leftPaddle.h = PADDLE_HEIGHT;
leftPaddle.y = (HEIGHT / 2) - (PADDLE_HEIGHT / 2); /* serve(); */
leftPaddle.w = PADDLE_WIDTH;
rightPaddle = leftPaddle; /* Right paddle is almost the same as
the left paddle except for position */
rightPaddle.x = (WIDTH - rightPaddle.w - 32);
ball.w = ball.h = BALL_SIZE;
/* Serve ball for first time */
serve();
/* Main loop */
do {
/* Frame and FPS stuff */
lastFrame = SDL_GetTicks();
if (lastFrame >= (lastTime + 1000)) { /* A second has passed */
lastTime = lastFrame;
fps = frameCount;
frameCount = 0;
}
/* Game code */
input();
update();
render();
} while (running);
return 0;
} | [
"sheepy404@gmail.com"
] | sheepy404@gmail.com |
900d2b837cda9abc64a190f39b29a1df747d1a35 | 18c5e87536673646f670e82585e386bbb5ccebc5 | /sketch_mar11a/sketch_mar11a.ino | 6bfdb6308aaf3adc50ba5dde365fe43a4c7e9713 | [] | no_license | ChenRuHsieh/2018-Room-escape | 4260f575f0280fefdc0597bfce5e9998f77f5307 | 004963add1dac9482f951ee42629ebc027ae2b80 | refs/heads/master | 2020-05-26T03:52:16.978511 | 2019-05-22T19:01:00 | 2019-05-22T19:01:00 | 188,097,380 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 256 | ino | #include <SoftwareSerial.h>
void setup() {
// put your setup code here, to run once:
pinMode(OUTPUT,13);
}
void loop() {
// put your main code here, to run repeatedly:
if (digitalRead(13) !=LOW)
Serial.print("1\n");
else Serial.print("0\n");
}
| [
"peter105060016@gapp.nthu.edu.tw"
] | peter105060016@gapp.nthu.edu.tw |
5e93432b739bc2abd741ad052ba8772342d8e8e0 | d8effd075768aecbf0a590804e6c94127954d01c | /noz/src/noz/Nodes/Layout/Layout.h | f65bd5d4f5844c4ba61eafbfcd8c6f9c341d193a | [] | no_license | nozgames/noz-cpp | 55c88e0ea92408433ca34399f31007418d46a063 | 0466c938f54edf846c01dd195ce870b366821e99 | refs/heads/master | 2022-11-24T04:20:51.348835 | 2020-07-30T21:42:48 | 2020-07-30T21:42:48 | 283,881,452 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 490 | h | ///////////////////////////////////////////////////////////////////////////////
// NoZ Engine Framework
// Copyright (C) 2015 NoZ Games, LLC
// http://www.nozgames.com
///////////////////////////////////////////////////////////////////////////////
#ifndef __noz_Layout_h__
#define __noz_Layout_h__
namespace noz {
class Layout : public Node {
NOZ_OBJECT()
/// Default constructor for layout
protected: Layout (void);
};
} // namespace noz
#endif //__noz_Layout_h__
| [
"bryan.dube@resultstack.com"
] | bryan.dube@resultstack.com |
f5b95393023973b99fa2fafcfaf9bf981c6ea32e | 1e2b69476b2b174ac210ba525b197c621280a390 | /L1Trigger/TrackFindingTracklet/test/PlotMacros/z0_and_rinv.cc | bffa3c5476e9e2a52f0154dfd64594be5d984137 | [
"Apache-2.0"
] | permissive | skinnari/cmssw | 640e5fe2f23a423ccb7afe82d43ea1b80a2603f0 | 62b49319e475fbcf14484d77814d47a552c61f63 | refs/heads/L1TK_CMSSW_11-1-0-pre4 | 2022-10-27T03:55:33.402157 | 2020-03-24T14:18:04 | 2020-03-24T14:18:04 | 11,660,178 | 2 | 3 | Apache-2.0 | 2020-03-24T14:16:54 | 2013-07-25T12:44:13 | C++ | UTF-8 | C++ | false | false | 2,181 | cc | #include "TMath.h"
#include "TRint.h"
#include "TROOT.h"
#include "TStyle.h"
#include "TLorentzVector.h"
#include "TCanvas.h"
#include "TH1.h"
#include "TGaxis.h"
#include <fstream>
#include <iostream>
#include "TMath.h"
void z0_and_rinv(){
//
// To see the output of this macro, click here.
//
#include "TMath.h"
gROOT->Reset();
gROOT->SetStyle("Plain");
gStyle->SetCanvasColor(kWhite);
gStyle->SetCanvasBorderMode(0); // turn off canvas borders
gStyle->SetPadBorderMode(0);
gStyle->SetOptStat(0);
gStyle->SetOptTitle(1);
// For publishing:
gStyle->SetLineWidth(1.5);
gStyle->SetTextSize(1.1);
gStyle->SetLabelSize(0.06,"xy");
gStyle->SetTitleSize(0.06,"xy");
gStyle->SetTitleOffset(1.2,"x");
gStyle->SetTitleOffset(1.0,"y");
gStyle->SetPadTopMargin(0.1);
gStyle->SetPadRightMargin(0.1);
gStyle->SetPadBottomMargin(0.16);
gStyle->SetPadLeftMargin(0.12);
TCanvas* c1 = new TCanvas("c1","Track performance",200,10,700,800);
c1->Divide(2,3);
c1->SetFillColor(0);
c1->SetGrid();
TH1 *hist1 = new TH1F("h1","z0 for accepted stub pairs L1L2",50,-50.0,50.0);
TH1 *hist2 = new TH1F("h2","rinv for acceptes stub pairs L1L2",50,-0.01,0.01);
TH1 *hist3 = new TH1F("h3","z0 for accepted stub pairs L3L4",50,-50.0,50.0);
TH1 *hist4 = new TH1F("h4","rinv for acceptes stub pairs L3L4",50,-0.01,0.01);
TH1 *hist5 = new TH1F("h5","z0 for accepted stub pairs L5L6",50,-50.0,50.0);
TH1 *hist6 = new TH1F("h6","rinv for acceptes stub pairs L5L6",50,-0.01,0.01);
ifstream in("z0_and_rinv.txt");
int count=0;
while (in.good()){
double z0,rinv;
int layer;
in>>layer>>z0>>rinv;
if (!in.good()) continue;
if (layer==1) {
hist1->Fill(z0);
hist2->Fill(rinv);
}
if (layer==3) {
hist3->Fill(z0);
hist4->Fill(rinv);
}
if (layer==5) {
hist5->Fill(z0);
hist6->Fill(rinv);
}
count++;
}
cout << "Processed: "<<count<<" events"<<endl;
c1->cd(1);
hist1->Draw();
c1->cd(2);
hist2->Draw();
c1->cd(3);
hist3->Draw();
c1->cd(4);
hist4->Draw();
c1->cd(5);
hist5->Draw();
c1->cd(6);
hist6->Draw();
c1->Print("z0_and_rinv.png");
c1->Print("z0_and_rinv.pdf");
}
| [
"louise.skinnari@cern.ch"
] | louise.skinnari@cern.ch |
85f7bb09f4230d594e5b784c78c7dbcf2c65f3b3 | 1c9d4bfb2e1252dd077f3cf6ea68544d8c9387e7 | /SimpleRayCaster/main.cpp | 248c2525742ee01529a0a144a3d3027ccbc1150b | [] | no_license | krishnaprasadsoundararajan/VolVis | ae5d952bf618a236c8a20cdfae67fc56c67d1ade | d6e1ce76494b065442f5d1d53aac0cab4bcf187e | refs/heads/master | 2020-04-06T04:59:40.584911 | 2014-09-22T13:15:17 | 2014-09-22T13:15:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,633 | cpp | // SimpleRaycaster
// Program to demonstrate single pass raycasting using OpenGL 2.0 functionality.
// The implementation uses GLEW for extension handling and GLUT for the user
// interface. The program requires vertex and fragment shaders in the
// subdirectory /shaders.
// Max Hermann, 2013
#include "GLConfig.h"
#ifdef __APPLE__
#include <GLUT/glut.h>
#else
#include <GL/glut.h>
#endif
#include <iostream>
#include "SimpleRaycaster.h"
#include "VolumeData.h"
#include "LookupTable.h"
#include "Filename.h"
#include "glm-0.9.5.4\glm\glm\glm.hpp"
#include "glm-0.9.5.4\glm\glm\ext.hpp"
#include "glm-0.9.5.4\glm\glm\gtc\matrix_transform.hpp"
using namespace std;
//------------------------------------------------------------------------------
// Globals
//------------------------------------------------------------------------------
const char g_usage[] =
"Simple raycaster application \n"
"Max Hermann 2013 \n"
"\n"
"Usage: SimpleRaycaster <volume.mhd> <lookup.table> \n"
"\n";
SimpleRaycaster g_raycaster;
VolumeDataHeader* g_volume;
//LookupTable g_lookuptable;
float g_rotx=0.f, g_roty=0.f, g_rotz= 90.f;
//------------------------------------------------------------------------------
// Forward declarations
//------------------------------------------------------------------------------
/// Helper function to load a MHD image volume from disk.
VolumeDataHeader* load_volume( const char* filename, int verb, void** data_ptr );
//------------------------------------------------------------------------------
// Application menu
//------------------------------------------------------------------------------
enum Menu {
MENU_SHADER_ISO,
MENU_SHADER_TAGGED,
MENU_SHADER_RISK,
MENU_PROBABILITY_WEIGTED,
DIFFUSE_SWITCH
};
string vsName, fsName;
void menu( int entry )
{
switch( entry )
{
case MENU_SHADER_ISO:
fsName = "shader/raycast-iso.fs.glsl";
vsName = "shader/raycast.vs.glsl";
g_raycaster.getRaycastShader().load_shader
("shader/raycast.vs.glsl","shader/raycast-iso.fs.glsl");
break;
case MENU_SHADER_TAGGED:
g_raycaster.getRaycastShader().load_shader
("shader/raycast.vs.glsl","shader/raycast-tagged_new.fs.glsl");
break;
case MENU_SHADER_RISK:
g_raycaster.getRaycastShader().load_shader
("shader/raycast.vs.glsl","shader/risk-based.fs.glsl");
break;
case MENU_PROBABILITY_WEIGTED:
g_raycaster.getRaycastShader().load_shader
("shader/raycast.vs.glsl","shader/raycast-probability-weighted.fs.glsl");
//g_lookuptable.reload();
//g_raycaster.setLookupTable( );
break;
case DIFFUSE_SWITCH:
g_raycaster.getRaycastShader().diffuseSwitch();
g_raycaster.getRaycastShader().load_shader
("shader/raycast.vs.glsl","shader/raycast-tagged.fs.glsl");
break;
}
glutPostRedisplay();
}
void setupMenu()
{
glutCreateMenu( menu );
glutAddMenuEntry( "Shader ISO", MENU_SHADER_ISO );
glutAddMenuEntry( "Shader TAGGED", MENU_SHADER_TAGGED );
glutAddMenuEntry( "Shader RISK", MENU_SHADER_RISK );
glutAddMenuEntry( "PROBABILITY WEIGHTED", MENU_PROBABILITY_WEIGTED );
glutAddMenuEntry( "DiffuseLight On/Off", DIFFUSE_SWITCH);
glutAttachMenu( GLUT_RIGHT_BUTTON );
}
//------------------------------------------------------------------------------
// Application setup
//------------------------------------------------------------------------------
int init( const char* filename, const char* filename_lookupTable,
int width=512, int height=512 )
{
// --- Check for required OpenGL version and extensions ---
const char extRequired[] =
// GL core 1.2
"GL_EXT_texture3D "
// GL core 2.0
"GL_ARB_shading_language_100 "
"GL_ARB_fragment_shader "
"GL_ARB_vertex_shader "
// GL core 3.0
"GL_ARB_texture_float "
"GL_EXT_framebuffer_object ";
// Required GL extensions
if( !glewIsSupported( "GL_ARB_vertex_shader" )) //extRequired ))
{
cerr << "Error: Insufficient GPU capabilities, maybe installing an "
" new driver version will help." << endl
<< "The following capabilities / extensions are required: " << endl
<< extRequired << endl;
return -67;
}
// Optional GL extensions
if( !glewIsSupported("GL_ARB_texture_non_power_of_two") )
{
cerr << "Warning: GL_ARB_texture_non_power_of_two not supported, i.e. "
"only image volumes width power of two edge lengths are "
"supported." << endl;
}
// --- Load volume dataset ---
void* dataptr = NULL;
g_volume = load_volume( filename, 3, &dataptr );
if( !g_volume )
{
cerr << "Error: Couldn't load volume data from " << filename << "!"
<< endl;
return -1;
}
// --- Load lookup table ---
//if( !g_lookuptable.read( filename_lookupTable ) )
//{
//return -4;
//}
// --- Init RaycastShader ---
// Setup raycaster
if( !g_raycaster.init( width, height ) )
{
cerr << "Error: Initializing raycaster failed!" << endl;
return -2;
}
// Set default shader
if( !g_raycaster.getRaycastShader().load_shader
("shader/raycast.vs.glsl","shader/risk-based.fs.glsl") )
{
cerr << "Error: Could not load default shader!" << endl;
return -5;
}
// Download lookup table
g_raycaster.setLookupTable( );
// Download volume
if( !g_raycaster.downloadVolume(
g_volume->resX(), g_volume->resY(), g_volume->resZ(),
GL_UNSIGNED_BYTE, dataptr ) )
{
return -3;
}
// Some default OpenGL states
glClearColor( 0,0,1,1 );
glColor4f( 1,1,1,1 );
// --- Setup GLUT menu ---
setupMenu();
return 1;
}
void destroy()
{
g_raycaster.destroy();
if( g_volume ) delete g_volume; g_volume = NULL;
}
//------------------------------------------------------------------------------
// GLUT callbacks
//------------------------------------------------------------------------------
void render()
{
glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
glEnable( GL_DEPTH_TEST );
//GLfloat dlr = 1.0f;
//GLfloat dlg = 1.0f;
//GLfloat dlb = 1.0f;
//ambient light color variables
GLfloat alr = 1.0f;
GLfloat alg = 1.0f;
GLfloat alb = 1.0f;
//light position variables
GLfloat lx = 0.0f;
GLfloat ly = 0.0f;
GLfloat lz = 0.0f;
GLfloat lw = 1.0f;
GLfloat redDiffuseMaterial[] = {1.0, 1.0, 1.0}; //set the material to red
GLfloat whiteSpecularMaterial[] = {1.0, 1, 1}; //set the material to white
GLfloat greenEmissiveMaterial[] = {1,1,1}; //set the material to green
//GLfloat whiteSpecularLight[] = {1.0, 1.0, 1.0}; //set the light specular to white
//GLfloat blackAmbientLight[] = {0.0, 0.0, 0.0}; //set the light ambient to black
//GLfloat whiteDiffuseLight[] = {1.0, 1.0, 1.0}; //set the diffuse light to white
//GLfloat blankMaterial[] = {0.0, 0.0, 0.0}; //set the diffuse light to white
//GLfloat DiffuseLight[] = {dlr, dlg, dlb};
GLfloat AmbientLight[] = {alr, alg, alb};
GLfloat mShininess[] = {128};
//glLightfv (GL_LIGHT0, GL_DIFFUSE, DiffuseLight);
glLightfv (GL_LIGHT1, GL_AMBIENT, AmbientLight);
GLfloat LightPosition[] = {lx, ly, lz, lw};
glLightfv (GL_LIGHT0, GL_POSITION, LightPosition);
gluLookAt (0.0, 0.0, 5.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0);
// Camera
glLoadIdentity();
glTranslatef( 0,0,-5.f );
glRotatef( g_rotx, 1,0,0 );
glRotatef( g_roty, 0,1,0 );
glRotatef(g_rotz,0,0,1);
glMaterialfv(GL_FRONT_AND_BACK, GL_SPECULAR,whiteSpecularMaterial);
glMaterialfv(GL_FRONT_AND_BACK, GL_SHININESS, mShininess);
glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, redDiffuseMaterial);
glMaterialfv(GL_FRONT_AND_BACK, GL_EMISSION, greenEmissiveMaterial);
// Perform raycasting
g_raycaster.render();
glutSwapBuffers();
}
void reshape( int width, int height )
{
float aspect = width / (float)height;
glViewport( 0, 0, width, height );
glMatrixMode( GL_PROJECTION );
glLoadIdentity();
gluPerspective( 30, aspect, 0.1, 100 );
glMatrixMode( GL_MODELVIEW );
glLoadIdentity();
GLfloat LightPosition[] = {0.0,0.0,0.0,1.0};
glLightfv (GL_LIGHT0, GL_POSITION, LightPosition); //added
}
void motion( int x, int y )
{
// Simple camera, where pressing in the right/left and bottom/top of the
// window produces rotation around y and x axis, respectively.
int viewport[4];
glGetIntegerv( GL_VIEWPORT, viewport );
g_rotx = (2.f*(y / (float)viewport[3]) - 1.f) * 90.f;
g_roty = (2.f*(x / (float)viewport[2]) - 1.f) * 180.f;
GLfloat LightPosition[] = {0.0,0.0,0.0,1.0};
glLightfv (GL_LIGHT0, GL_POSITION, LightPosition);
glutPostRedisplay();
}
//------------------------------------------------------------------------------
// main()
//------------------------------------------------------------------------------
int main( int argc, char* argv[] )
{
if( argc != 3 )
{
cout << g_usage << endl;
return 0;
}
// size of render texture
const int width = 512,
height = 512;
// setup GLUT
glutInit( &argc, argv );
glutInitDisplayMode( GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH );
glutInitWindowSize( width, height );
glutCreateWindow( "SimpleRaycaster" );
glutReshapeFunc ( reshape );
glutDisplayFunc ( render );
glutMotionFunc ( motion );
// setup GLEW
GLenum glew_err = glewInit();
if( glew_err != GLEW_OK )
{
cerr << "GLEW error:" << glewGetErrorString(glew_err) << endl;
return -11;
}
// init application
int ret = init( argv[1], argv[2], width, height ); // "data/Engine.mhd"
if( ret < 0 )
return ret;
// exit function
atexit( destroy );
// mainloop
glutMainLoop();
// never reached, glutMainLoop() quits with exit()
return 0;
}
//------------------------------------------------------------------------------
// Helper functions
//------------------------------------------------------------------------------
VolumeDataHeader* load_volume( const char* filename, int verb, void** data_ptr )
{
Misc::Filename fname( filename );
VolumeDataHeader* vol = NULL;
// -- load MHD/DAT header --
if( verb > 1 )
cout <<"Loading volume dataset \""<< fname.filename <<"\"..."<<endl;
VolumeDataHeaderLoaderMHD mhd;
VolumeDataHeaderLoaderDAT dat;
if( fname.ext == "mhd" )
{
if( mhd.load( fname.filename.c_str() ) )
vol = (VolumeDataHeader*)&mhd;
}
else
if( fname.ext == "dat" )
{
if( dat.load( fname.filename.c_str() ) )
vol = (VolumeDataHeader*)&dat;
}
else
{
cerr << "Error: Unknown file extension " << fname.ext << "!" << endl;
return NULL;
}
if( !vol )
{
cerr << "Error: Couldn't load " << fname.filename << "!" << endl;
return NULL;
}
// -- load RAW volume data --
std::string raw_filename = fname.path + vol->filename();
VolumeDataBase* base = VolumeDataBase::load_raw( raw_filename.c_str(), vol );
*data_ptr = base ? base->void_ptr() : NULL;
return (VolumeDataHeader*)base;
}
| [
"krishnaprasad.s89@gmail.com"
] | krishnaprasad.s89@gmail.com |
ed3dc497a53e3ae8b14931e8b6daa967a811023a | 2b53a25a83b9aa3298f7cf976dc70c734dcdb157 | /OnlineJudgeCode/0Big Number 所有運算(Trying).cpp | 05825c70e54f62ae44745e41b3282e3b28f3881e | [] | no_license | mopack/OnlineJudgeCode | 2e0ce6e77ad133e82f4d5ce3196b78b19a4631e5 | 7a8704b37a69323bd90ac885d1b90d409d877722 | refs/heads/master | 2020-03-20T16:39:46.304160 | 2018-11-23T17:06:22 | 2018-11-23T17:06:22 | 137,543,798 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,292 | cpp | //#include <bits/stdc++.h>
////#include "LeetCodeStd.h"
//// --------------- //
////static int fast = []() {ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); return 0; }();
////class Solution {
////public:
//// vector<int> findOrder(int N, vector<pair<int, int>>& L2F) {
////
//// }
////};
//#include <iostream>
//#include <cstdlib>
//#include <bitset>
//using namespace std;
//
//// max <= 10^7, thus max <= 2^24
//// max! <= max^max 24*24 <= 600
//
//struct big {
// bitset<192347> n;
// int len;
// big() {
// len = 0;
// for (int i = 0; i < 192347; i++)n[i] = 0;
// }
//}one;
//
//big shift(big n, int a);
//big power(big m, big n);
//big cn2(big n);
//big mul(big a, big b);
//big factorial(big n);
//big int2big(int in);
//
//big shift(big n, int a) {
// for (int i = 0; i < n.len - a; i++)n.n[i] = n.n[i + a];
// n.len-=a;
// return n;
//}
//big power(big m, big n) { //n>=1
// //printf("power(%d,%d)", big2int(m), big2int(n));
//
// big temp = one;
// while (n.len >1 ||(n.len==1 && n.n[0])) {
// if (n.n[0]) {
// //printf("mul(%d,%d)=%d\n", big2int(temp), big2int(m), big2int(mul(temp, m)));
// //printf("%d * %d=%d\n", big2int(temp), big2int(m), big2int(mul(temp, m)));
// temp = mul(temp, m);
//
// }
// //printf("%d * %d=%d\n", big2int(m), big2int(m), big2int(mul(m, m)));
// m = mul(m,m);
//
// // n/=2
// n = shift(n, 1);
// }
// //printf("=%lld\n",big2int(temp));
// return temp;
//}
//unsigned long long big2int(big n) {
// unsigned long long ans = 0, two = 1;
// for (int i = 0; i < n.len; i++) {
// ans += two * n.n[i];
// two *= 2;
// }
// return ans;
//}
//
//void printbi(big n) {
// for (int i = 10; i >= 0; i--) cout << n.n[i];
//
// cout << endl;
//}
//
//big cn2(big n) {
// int nint = big2int(n);
//
// // x = (2^n+1)
// big x;
// x.len = nint+1;
// x.n[0] = 1; x.n[x.len - 1] = 1;
//
// // (2^n+1)^n
// big result = power(x, n);
//
// //printf("power(%d, %d)=%d\n", big2int(x), n, big2int(result));
//
// // m = n / 2
// big m = shift(n, 1);
//
// // shift n per time, and shift m times; thus shift amount = m*n
// int sh = big2int(mul(m,n));
//
// big ans = shift(power(x, n), sh);
//
// // mask
// ans.len= n.len;
// while (ans.n[ans.len - 1] == 0)ans.len--;
//
// return ans;
//}
//big mul(big a, big b) {
// big c;
//
// for (int i = 0; i <= a.len + b.len; i++) c.n[i] = 0; //fill(a, a+N, 0)
//
// for (int ai = 0; ai < a.len; ai++) {
// for (int bi = 0; bi < b.len; bi++){
// if (a.n[ai] & b.n[bi]) {
// //c.n[ai + bi]++
// int k = ai + bi;
// while (c.n[k]) {
// c.n[k] = 0; k++;
// }
// c.n[k] = 1;
// }
// //printbi(c);
// }
// }
//
// c.len = a.len + b.len;
// if (c.n[c.len-1] == 0)c.len--;
//
// //printf("%d * %d = %d\n", big2int(a), big2int(b), big2int(c));
// return c;
//}
//big factorial(big n) {
// big m;
// if (n.len == 1 && n.n[0] == 1) {
// //cout << "=1\n";
// return one;
// }
// else if (n.n[0] == 1) {// is odd
// m = n;
// m.n[0] = 0;
// int ii = big2int(mul(n, factorial(m))) , in = big2int(n), ifm = big2int(factorial(m)), im= big2int(m);
// //printf("n=%d is odd. m=n-1=%d. return n*f(m-1)=%d*%d=%d\n", in, im, in, ifm, ii);
// return mul(n, factorial(m));
// }
// else {
// // n>> 1 (a.k.a n/=2)
// m.len = n.len-1;
// for (int i = 1; i < n.len; i++) m.n[i - 1] = n.n[i];
//
//
// m = factorial(m);
//
// int ic = big2int(cn2(n)), in = big2int(n), im = big2int(m), i2 = big2int(factorial(m)),imm=big2int(mul(m, m)),icm=big2int(mul(cn2(n), mul(m, m)));
// //printf("n=%d is even. m=(n/2)!=%d. return= cn2(n)*m*m = %d * %d = %d\n", in, im, ic, imm, icm);
//
// return mul(cn2(n), mul(m, m));
// }
//}
//big int2big(int in) {
// big d;
// //10carry->2carry
// d.len = 0;
// while (in > 0) {
// d.n[d.len++] = (in % 2);
// in >>= 1;
// }
// return d;
//}
//int main() {
// //bitset<64> s(string("1000100010001000100010001000100010001000100010001000100010001000"));
// //cout << sizeof(s) << endl;
//
//
// int qn, in;
// //cin >> qn;
// big d,f;
//
// one.len = 1; one.n[0] = 1;
//
// for (int i = 1; i <= 10; i++) {
// d = int2big(i);
// printf("%d! = %d\n",i,big2int(factorial(d)));
// }
//
// //for (int q = 1; q <= qn; q++) {
// // cin >> in;
// // d = int2big(in);
// // f = factorial(d);
// // cout << f.len << endl;
// //}
// system("pause");
// return 0;
//} | [
"mopackp@gmail.com"
] | mopackp@gmail.com |
e6fbc54092ba33cde79a5b24c2d04496949c5a4c | 474a2c29d3104cc8d8c574d9a191777012d5a821 | /samples/hypercube/HCPacket_m.cc | 5a22d6da02d49ae4524bc81aa2a883730f1a60cf | [] | no_license | OsDim/NTUT_NG-PON2 | 5eda2a3d1bc2c2b3e30b481ad0bd4e892dd71c6f | dbd78aeab3fee094142eb181288846f5eaa6f596 | refs/heads/master | 2021-01-22T10:19:08.579237 | 2017-10-06T10:21:05 | 2017-10-06T10:21:05 | 102,335,095 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,794 | cc | //
// Generated file, do not edit! Created by nedtool 4.6 from HCPacket.msg.
//
// Disable warnings about unused variables, empty switch stmts, etc:
#ifdef _MSC_VER
# pragma warning(disable:4101)
# pragma warning(disable:4065)
#endif
#include <iostream>
#include <sstream>
#include "HCPacket_m.h"
USING_NAMESPACE
// Another default rule (prevents compiler from choosing base class' doPacking())
template<typename T>
void doPacking(cCommBuffer *, T& t) {
throw cRuntimeError("Parsim error: no doPacking() function for type %s or its base class (check .msg and _m.cc/h files!)",opp_typename(typeid(t)));
}
template<typename T>
void doUnpacking(cCommBuffer *, T& t) {
throw cRuntimeError("Parsim error: no doUnpacking() function for type %s or its base class (check .msg and _m.cc/h files!)",opp_typename(typeid(t)));
}
// Template rule for outputting std::vector<T> types
template<typename T, typename A>
inline std::ostream& operator<<(std::ostream& out, const std::vector<T,A>& vec)
{
out.put('{');
for(typename std::vector<T,A>::const_iterator it = vec.begin(); it != vec.end(); ++it)
{
if (it != vec.begin()) {
out.put(','); out.put(' ');
}
out << *it;
}
out.put('}');
char buf[32];
sprintf(buf, " (size=%u)", (unsigned int)vec.size());
out.write(buf, strlen(buf));
return out;
}
// Template rule which fires if a struct or class doesn't have operator<<
template<typename T>
inline std::ostream& operator<<(std::ostream& out,const T&) {return out;}
Register_Class(HCPacket);
HCPacket::HCPacket(const char *name, int kind) : ::cPacket(name,kind)
{
this->srcAddress_var = 0;
this->destAddress_var = 0;
this->hops_var = 0;
}
HCPacket::HCPacket(const HCPacket& other) : ::cPacket(other)
{
copy(other);
}
HCPacket::~HCPacket()
{
}
HCPacket& HCPacket::operator=(const HCPacket& other)
{
if (this==&other) return *this;
::cPacket::operator=(other);
copy(other);
return *this;
}
void HCPacket::copy(const HCPacket& other)
{
this->srcAddress_var = other.srcAddress_var;
this->destAddress_var = other.destAddress_var;
this->hops_var = other.hops_var;
}
void HCPacket::parsimPack(cCommBuffer *b)
{
::cPacket::parsimPack(b);
doPacking(b,this->srcAddress_var);
doPacking(b,this->destAddress_var);
doPacking(b,this->hops_var);
}
void HCPacket::parsimUnpack(cCommBuffer *b)
{
::cPacket::parsimUnpack(b);
doUnpacking(b,this->srcAddress_var);
doUnpacking(b,this->destAddress_var);
doUnpacking(b,this->hops_var);
}
int HCPacket::getSrcAddress() const
{
return srcAddress_var;
}
void HCPacket::setSrcAddress(int srcAddress)
{
this->srcAddress_var = srcAddress;
}
int HCPacket::getDestAddress() const
{
return destAddress_var;
}
void HCPacket::setDestAddress(int destAddress)
{
this->destAddress_var = destAddress;
}
int HCPacket::getHops() const
{
return hops_var;
}
void HCPacket::setHops(int hops)
{
this->hops_var = hops;
}
class HCPacketDescriptor : public cClassDescriptor
{
public:
HCPacketDescriptor();
virtual ~HCPacketDescriptor();
virtual bool doesSupport(cObject *obj) const;
virtual const char *getProperty(const char *propertyname) const;
virtual int getFieldCount(void *object) const;
virtual const char *getFieldName(void *object, int field) const;
virtual int findField(void *object, const char *fieldName) const;
virtual unsigned int getFieldTypeFlags(void *object, int field) const;
virtual const char *getFieldTypeString(void *object, int field) const;
virtual const char *getFieldProperty(void *object, int field, const char *propertyname) const;
virtual int getArraySize(void *object, int field) const;
virtual std::string getFieldAsString(void *object, int field, int i) const;
virtual bool setFieldAsString(void *object, int field, int i, const char *value) const;
virtual const char *getFieldStructName(void *object, int field) const;
virtual void *getFieldStructPointer(void *object, int field, int i) const;
};
Register_ClassDescriptor(HCPacketDescriptor);
HCPacketDescriptor::HCPacketDescriptor() : cClassDescriptor("HCPacket", "cPacket")
{
}
HCPacketDescriptor::~HCPacketDescriptor()
{
}
bool HCPacketDescriptor::doesSupport(cObject *obj) const
{
return dynamic_cast<HCPacket *>(obj)!=NULL;
}
const char *HCPacketDescriptor::getProperty(const char *propertyname) const
{
cClassDescriptor *basedesc = getBaseClassDescriptor();
return basedesc ? basedesc->getProperty(propertyname) : NULL;
}
int HCPacketDescriptor::getFieldCount(void *object) const
{
cClassDescriptor *basedesc = getBaseClassDescriptor();
return basedesc ? 3+basedesc->getFieldCount(object) : 3;
}
unsigned int HCPacketDescriptor::getFieldTypeFlags(void *object, int field) const
{
cClassDescriptor *basedesc = getBaseClassDescriptor();
if (basedesc) {
if (field < basedesc->getFieldCount(object))
return basedesc->getFieldTypeFlags(object, field);
field -= basedesc->getFieldCount(object);
}
static unsigned int fieldTypeFlags[] = {
FD_ISEDITABLE,
FD_ISEDITABLE,
FD_ISEDITABLE,
};
return (field>=0 && field<3) ? fieldTypeFlags[field] : 0;
}
const char *HCPacketDescriptor::getFieldName(void *object, int field) const
{
cClassDescriptor *basedesc = getBaseClassDescriptor();
if (basedesc) {
if (field < basedesc->getFieldCount(object))
return basedesc->getFieldName(object, field);
field -= basedesc->getFieldCount(object);
}
static const char *fieldNames[] = {
"srcAddress",
"destAddress",
"hops",
};
return (field>=0 && field<3) ? fieldNames[field] : NULL;
}
int HCPacketDescriptor::findField(void *object, const char *fieldName) const
{
cClassDescriptor *basedesc = getBaseClassDescriptor();
int base = basedesc ? basedesc->getFieldCount(object) : 0;
if (fieldName[0]=='s' && strcmp(fieldName, "srcAddress")==0) return base+0;
if (fieldName[0]=='d' && strcmp(fieldName, "destAddress")==0) return base+1;
if (fieldName[0]=='h' && strcmp(fieldName, "hops")==0) return base+2;
return basedesc ? basedesc->findField(object, fieldName) : -1;
}
const char *HCPacketDescriptor::getFieldTypeString(void *object, int field) const
{
cClassDescriptor *basedesc = getBaseClassDescriptor();
if (basedesc) {
if (field < basedesc->getFieldCount(object))
return basedesc->getFieldTypeString(object, field);
field -= basedesc->getFieldCount(object);
}
static const char *fieldTypeStrings[] = {
"int",
"int",
"int",
};
return (field>=0 && field<3) ? fieldTypeStrings[field] : NULL;
}
const char *HCPacketDescriptor::getFieldProperty(void *object, int field, const char *propertyname) const
{
cClassDescriptor *basedesc = getBaseClassDescriptor();
if (basedesc) {
if (field < basedesc->getFieldCount(object))
return basedesc->getFieldProperty(object, field, propertyname);
field -= basedesc->getFieldCount(object);
}
switch (field) {
default: return NULL;
}
}
int HCPacketDescriptor::getArraySize(void *object, int field) const
{
cClassDescriptor *basedesc = getBaseClassDescriptor();
if (basedesc) {
if (field < basedesc->getFieldCount(object))
return basedesc->getArraySize(object, field);
field -= basedesc->getFieldCount(object);
}
HCPacket *pp = (HCPacket *)object; (void)pp;
switch (field) {
default: return 0;
}
}
std::string HCPacketDescriptor::getFieldAsString(void *object, int field, int i) const
{
cClassDescriptor *basedesc = getBaseClassDescriptor();
if (basedesc) {
if (field < basedesc->getFieldCount(object))
return basedesc->getFieldAsString(object,field,i);
field -= basedesc->getFieldCount(object);
}
HCPacket *pp = (HCPacket *)object; (void)pp;
switch (field) {
case 0: return long2string(pp->getSrcAddress());
case 1: return long2string(pp->getDestAddress());
case 2: return long2string(pp->getHops());
default: return "";
}
}
bool HCPacketDescriptor::setFieldAsString(void *object, int field, int i, const char *value) const
{
cClassDescriptor *basedesc = getBaseClassDescriptor();
if (basedesc) {
if (field < basedesc->getFieldCount(object))
return basedesc->setFieldAsString(object,field,i,value);
field -= basedesc->getFieldCount(object);
}
HCPacket *pp = (HCPacket *)object; (void)pp;
switch (field) {
case 0: pp->setSrcAddress(string2long(value)); return true;
case 1: pp->setDestAddress(string2long(value)); return true;
case 2: pp->setHops(string2long(value)); return true;
default: return false;
}
}
const char *HCPacketDescriptor::getFieldStructName(void *object, int field) const
{
cClassDescriptor *basedesc = getBaseClassDescriptor();
if (basedesc) {
if (field < basedesc->getFieldCount(object))
return basedesc->getFieldStructName(object, field);
field -= basedesc->getFieldCount(object);
}
switch (field) {
default: return NULL;
};
}
void *HCPacketDescriptor::getFieldStructPointer(void *object, int field, int i) const
{
cClassDescriptor *basedesc = getBaseClassDescriptor();
if (basedesc) {
if (field < basedesc->getFieldCount(object))
return basedesc->getFieldStructPointer(object, field, i);
field -= basedesc->getFieldCount(object);
}
HCPacket *pp = (HCPacket *)object; (void)pp;
switch (field) {
default: return NULL;
}
}
| [
"aqwszx2@gmail.com"
] | aqwszx2@gmail.com |
9d77420e92c5178d55fe53bba478d06f0f6a109c | 6831f098839af584c0a1032fa8dec9c7327ee521 | /crypto/impl_dispatch_test.cc | efe12b450e9512a4c6f02da2d7c32bb2aa01c918 | [
"ISC",
"BSD-3-Clause",
"OpenSSL",
"LicenseRef-scancode-openssl",
"LicenseRef-scancode-ssleay-windows",
"MIT"
] | permissive | opensourceyouthprogramming/boringssl | f3f1a265ce6cd9bd9add7c0dbabbea57db83d640 | 33f456b8b05c73dff13c0b4653f7d964ed2721d6 | refs/heads/master | 2020-04-20T18:18:09.582847 | 2019-01-12T15:29:10 | 2019-02-01T18:03:39 | 169,016,196 | 1 | 0 | NOASSERTION | 2019-02-04T01:57:51 | 2019-02-04T01:57:51 | null | UTF-8 | C++ | false | false | 5,150 | cc | /* Copyright (c) 2018, Google Inc.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
* SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */
#include <openssl/base.h>
#if !defined(NDEBUG) && !defined(BORINGSSL_FIPS) && \
!defined(BORINGSSL_SHARED_LIBRARY)
#include <functional>
#include <utility>
#include <vector>
#include <openssl/aead.h>
#include <openssl/aes.h>
#include <openssl/cpu.h>
#include <openssl/mem.h>
#include <gtest/gtest.h>
#include "internal.h"
class ImplDispatchTest : public ::testing::Test {
public:
void SetUp() override {
#if defined(OPENSSL_X86) || defined(OPENSSL_X86_64)
aesni_ = OPENSSL_ia32cap_P[1] & (1 << (57 - 32));
avx_movbe_ = ((OPENSSL_ia32cap_P[1] >> 22) & 0x41) == 0x41;
ssse3_ = OPENSSL_ia32cap_P[1] & (1 << (41 - 32));
is_x86_64_ =
#if defined(OPENSSL_X86_64)
true;
#else
false;
#endif
#endif // X86 || X86_64
}
protected:
// AssertFunctionsHit takes a list of pairs (flag index, boolean), and a
// function to test. It runs the given function and asserts, for each flag
// index, that the boolean reflects whether that flag index was written or
// not, and that no other flagged functions were triggered.
void AssertFunctionsHit(std::vector<std::pair<size_t, bool>> flags,
std::function<void()> f) {
OPENSSL_memset(BORINGSSL_function_hit, 0, sizeof(BORINGSSL_function_hit));
f();
for (const auto flag : flags) {
SCOPED_TRACE(flag.first);
ASSERT_LT(flag.first, sizeof(BORINGSSL_function_hit));
EXPECT_EQ(flag.second, BORINGSSL_function_hit[flag.first] == 1);
BORINGSSL_function_hit[flag.first] = 0;
}
for (size_t i = 0; i < sizeof(BORINGSSL_function_hit); i++) {
EXPECT_EQ(0u, BORINGSSL_function_hit[i])
<< "Flag " << i << " unexpectedly hit";
}
}
#if defined(OPENSSL_X86) || defined(OPENSSL_X86_64)
bool aesni_ = false;
bool avx_movbe_ = false;
bool ssse3_ = false;
bool is_x86_64_ = false;
#endif
};
#if !defined(OPENSSL_NO_ASM) && \
(defined(OPENSSL_X86) || defined(OPENSSL_X86_64))
constexpr size_t kFlag_aes_hw_ctr32_encrypt_blocks = 0;
constexpr size_t kFlag_aes_hw_encrypt = 1;
constexpr size_t kFlag_aesni_gcm_encrypt = 2;
constexpr size_t kFlag_aes_hw_set_encrypt_key = 3;
constexpr size_t kFlag_vpaes_encrypt = 4;
constexpr size_t kFlag_vpaes_set_encrypt_key = 5;
constexpr size_t kFlag_bsaes_ctr32_encrypt_blocks = 6;
TEST_F(ImplDispatchTest, AEAD_AES_GCM) {
AssertFunctionsHit(
{
{kFlag_aes_hw_ctr32_encrypt_blocks, aesni_},
{kFlag_aes_hw_encrypt, aesni_},
{kFlag_aes_hw_set_encrypt_key, aesni_},
{kFlag_aesni_gcm_encrypt, is_x86_64_ && aesni_ && avx_movbe_},
{kFlag_vpaes_encrypt, !is_x86_64_ && ssse3_ && !aesni_},
{kFlag_vpaes_set_encrypt_key, !is_x86_64_ && ssse3_ && !aesni_},
{kFlag_bsaes_ctr32_encrypt_blocks, is_x86_64_ && ssse3_ && !aesni_},
},
[] {
const uint8_t kZeros[16] = {0};
const uint8_t kPlaintext[40] = {1, 2, 3, 4, 0};
uint8_t ciphertext[sizeof(kPlaintext) + 16];
size_t ciphertext_len;
EVP_AEAD_CTX ctx;
ASSERT_TRUE(EVP_AEAD_CTX_init(&ctx, EVP_aead_aes_128_gcm(), kZeros,
sizeof(kZeros),
EVP_AEAD_DEFAULT_TAG_LENGTH, nullptr));
ASSERT_TRUE(EVP_AEAD_CTX_seal(
&ctx, ciphertext, &ciphertext_len, sizeof(ciphertext), kZeros,
EVP_AEAD_nonce_length(EVP_aead_aes_128_gcm()), kPlaintext,
sizeof(kPlaintext), nullptr, 0));
});
}
TEST_F(ImplDispatchTest, AES_set_encrypt_key) {
AssertFunctionsHit(
{
{kFlag_aes_hw_set_encrypt_key, aesni_},
// VPAES / BSAES will not be used for the |AES_*| functions.
},
[] {
AES_KEY key;
static const uint8_t kZeros[16] = {0};
AES_set_encrypt_key(kZeros, sizeof(kZeros) * 8, &key);
});
}
TEST_F(ImplDispatchTest, AES_single_block) {
AES_KEY key;
static const uint8_t kZeros[16] = {0};
AES_set_encrypt_key(kZeros, sizeof(kZeros) * 8, &key);
AssertFunctionsHit(
{
{kFlag_aes_hw_encrypt, aesni_},
// VPAES / BSAES will not be used for the |AES_*| functions.
},
[&key] {
uint8_t in[AES_BLOCK_SIZE] = {0};
uint8_t out[AES_BLOCK_SIZE];
AES_encrypt(in, out, &key);
});
}
#endif // X86 || X86_64
#endif // !NDEBUG && !FIPS && !SHARED_LIBRARY
| [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
2e2b8efe82116af32d3ed949e37a6ccf6ebbcb60 | 4aef7908c86d0857d4571bc26e2c486b57010a0c | /Realisation/Programs/QTms/DataFrame.cpp | 00b36c1d60497eb57675ded46f5cab88adb00993 | [] | no_license | raviluminy/gk | 3d9b5e27d808b56a510bb9b5ef5b3a81818c2443 | 3c017394e12a36e922c93e0ddcb0baffc4849db5 | refs/heads/master | 2020-04-05T23:24:55.230480 | 2014-03-29T11:08:36 | 2014-03-29T11:08:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 195 | cpp | #include "DataFrame.h"
#include "ui_DataFrame.h"
DataFrame::DataFrame(QWidget* parent) :
QFrame(parent),
ui(new Ui::DataFrame) {
ui->setupUi(this);
}
DataFrame::~DataFrame() {
delete ui;
}
| [
"mehdi-jonathan@hotmail.fr"
] | mehdi-jonathan@hotmail.fr |
d5703c908ec90d71233883490bd6bb06444893be | 64e4fabf9b43b6b02b14b9df7e1751732b30ad38 | /src/chromium/gen/gen_combined/third_party/blink/renderer/core/css/properties/shorthands/webkit_mask_box_image.h | 5f285b1303f00980efcca375b9770615131ebb30 | [
"BSD-3-Clause"
] | permissive | ivan-kits/skia-opengl-emscripten | 8a5ee0eab0214c84df3cd7eef37c8ba54acb045e | 79573e1ee794061bdcfd88cacdb75243eff5f6f0 | refs/heads/master | 2023-02-03T16:39:20.556706 | 2020-12-25T14:00:49 | 2020-12-25T14:00:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,240 | h | // Copyright 2016 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.
// Generated from template:
// core/css/properties/templates/css_property_subclass.h.tmpl
// and input files:
// ../../third_party/blink/renderer/core/css/computed_style_field_aliases.json5
// ../../third_party/blink/renderer/core/css/css_properties.json5
// ../../third_party/blink/renderer/core/css/properties/css_property_methods.json5
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_CSS_PROPERTIES_SHORTHAND_WEBKIT_MASK_BOX_IMAGE_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_CSS_PROPERTIES_SHORTHAND_WEBKIT_MASK_BOX_IMAGE_H_
#include "third_party/blink/renderer/core/css/css_identifier_value.h"
#include "third_party/blink/renderer/core/css/css_primitive_value_mappings.h"
#include "third_party/blink/renderer/core/css/properties/shorthand.h"
#include "third_party/blink/renderer/core/css/resolver/style_resolver_state.h"
#include "third_party/blink/renderer/core/style/computed_style.h"
namespace blink {
namespace css_shorthand {
// Implements the '-webkit-mask-box-image' CSS property
// See src/third_party/blink/renderer/core/css/properties/README.md
class WebkitMaskBoxImage final : public Shorthand {
public:
constexpr WebkitMaskBoxImage() : Shorthand(CSSPropertyID::kWebkitMaskBoxImage,
0
| kProperty
,
'\0'
) {}
const char* GetPropertyName() const override { return "-webkit-mask-box-image"; }
const WTF::AtomicString& GetPropertyNameAtomicString() const override {
DEFINE_STATIC_LOCAL(const AtomicString, name, ("-webkit-mask-box-image"));
return name;
}
const char* GetJSPropertyName() const override {
return "webkitMaskBoxImage";
}
bool ParseShorthand(bool, CSSParserTokenRange&, const CSSParserContext&, const CSSParserLocalContext&, HeapVector<CSSPropertyValue, 256>&) const override;
const CSSValue* CSSValueFromComputedStyleInternal(const ComputedStyle&, const SVGComputedStyle&, const LayoutObject*, Node*, bool allow_visited_style) const override;
};
} // namespace css_shorthand
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_CORE_CSS_PROPERTIES_SHORTHAND_WEBKIT_MASK_BOX_IMAGE_H_
| [
"trofimov_d_a@magnit.ru"
] | trofimov_d_a@magnit.ru |
d5cfc0091b51c33a5bcbe20896cbd6b792274f77 | 17f37b79643b9c6acd181c55c43a3ab4c889433e | /cavity/47.2/p | 6f59c00a88716e930dc004c3f7a8ff0ed1e74b2b | [] | no_license | aashay201297/OpenFOAM-simulations | 5208b766ab1e715178e42c73d028cc43d17ec4c9 | 273f60ef66e6f5b0c99a53ac52de406be0e876a2 | refs/heads/master | 2021-01-23T06:34:17.044650 | 2017-06-04T19:02:27 | 2017-06-04T19:02:27 | 86,373,858 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,138 | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "47.2";
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0];
internalField nonuniform List<scalar>
400
(
-9.81328e-10
-0.00582998
-0.0129685
-0.018421
-0.0204388
-0.0182452
-0.0117807
-0.00149052
0.0118306
0.0271426
0.043238
0.0588168
0.0725725
0.0833023
0.0900467
0.0922608
0.0900197
0.0842377
0.0768744
0.0710609
0.00577609
-0.000223583
-0.00580974
-0.00954862
-0.0106052
-0.00843919
-0.00297655
0.00546744
0.0162962
0.0287051
0.0417433
0.0543796
0.0655802
0.0744038
0.0801141
0.0823096
0.081071
0.0770485
0.0712678
0.0653115
0.0133298
0.00502809
-0.00100115
-0.00442918
-0.00527918
-0.00327033
0.00159581
0.00902095
0.0184954
0.0293426
0.0407588
0.0518632
0.0617622
0.0696301
0.0748008
0.0768718
0.0758353
0.0720795
0.065799
0.057529
0.020134
0.00869029
0.00121996
-0.00267463
-0.00372838
-0.00189169
0.00272479
0.00977798
0.0187737
0.0290883
0.0399853
0.0506475
0.0602265
0.0679096
0.0729969
0.0749952
0.0737594
0.0694496
0.0615964
0.0500959
0.0244965
0.00976741
0.000583877
-0.003993
-0.00530848
-0.0035137
0.00116827
0.00832801
0.0174554
0.0279424
0.0390783
0.0500633
0.0600423
0.0681586
0.0736199
0.0757913
0.0743625
0.0692833
0.0595189
0.0445304
0.0251723
0.0071443
-0.0038079
-0.00906325
-0.0105183
-0.00850631
-0.00336324
0.00442293
0.0143068
0.0256724
0.0378072
0.0498966
0.0610415
0.0702965
0.0767281
0.0795104
0.0781324
0.072327
0.0605326
0.0418832
0.0210877
-0.00026817
-0.0129404
-0.0187153
-0.020036
-0.0174202
-0.0113247
-0.00232614
0.00898393
0.0219696
0.0359031
0.0499377
0.0631055
0.0743387
0.0825153
0.0865629
0.0857142
0.0794405
0.0656137
0.043065
0.0111369
-0.0136241
-0.027881
-0.0338602
-0.0346096
-0.0308637
-0.0232192
-0.0123516
0.0010984
0.0164774
0.033046
0.0499271
0.0660768
0.0802833
0.0911941
0.0974235
0.0978637
0.0916295
0.0758897
0.0491099
-0.0059732
-0.0342725
-0.0498761
-0.0555546
-0.0550962
-0.0495207
-0.0395997
-0.0261196
-0.0097635
0.00881656
0.0288945
0.049587
0.069791
0.088148
0.103041
0.112695
0.115544
0.110185
0.0928277
0.0614049
-0.0318633
-0.0638823
-0.0804231
-0.0850133
-0.0824262
-0.0740844
-0.0609871
-0.0440429
-0.0239578
-0.00134329
0.0231392
0.0486546
0.0740892
0.0979658
0.11839
0.133119
0.139982
0.136812
0.118434
0.0819274
-0.0686735
-0.10461
-0.121351
-0.123596
-0.117522
-0.105133
-0.0877244
-0.0663317
-0.0416433
-0.0141619
0.0155992
0.0469469
0.0788494
0.109787
0.137617
0.159579
0.172721
0.173772
0.155514
0.113565
-0.119408
-0.159363
-0.174921
-0.172763
-0.161154
-0.142935
-0.119765
-0.0927831
-0.0625835
-0.0294538
0.00636693
0.0444673
0.0840489
0.123697
0.16113
0.19308
0.215662
0.224071
0.208044
0.160626
-0.188634
-0.232248
-0.243945
-0.233954
-0.2137
-0.18716
-0.156378
-0.122507
-0.0859038
-0.0464781
-0.00402041
0.0415329
0.0898362
0.139823
0.189313
0.234683
0.271069
0.291658
0.281737
0.22977
-0.28398
-0.32931
-0.331837
-0.308286
-0.274714
-0.236445
-0.19577
-0.153616
-0.109846
-0.0637507
-0.0144434
0.0388578
0.0965487
0.158271
0.222369
0.285282
0.341392
0.381569
0.384908
0.331829
-0.419324
-0.459676
-0.442356
-0.395797
-0.342134
-0.287744
-0.234621
-0.182935
-0.131614
-0.07899
-0.0232191
0.0374702
0.104548
0.178833
0.259856
0.344965
0.428611
0.499695
0.52967
0.485386
-0.620537
-0.636749
-0.578682
-0.494198
-0.411245
-0.335663
-0.267785
-0.205982
-0.147541
-0.0893875
-0.0284306
0.0383438
0.113802
0.200467
0.29997
0.41202
0.533025
0.65177
0.732767
0.722391
-0.935928
-0.878519
-0.741746
-0.597953
-0.474397
-0.372663
-0.288872
-0.217767
-0.153957
-0.092468
-0.0287215
0.0416915
0.123259
0.220714
0.338922
0.48215
0.651992
0.841337
1.01527
1.0975
-1.47643
-1.20663
-0.920507
-0.691392
-0.517309
-0.387548
-0.290065
-0.213341
-0.148128
-0.0872194
-0.0245816
0.0454535
0.128933
0.233067
0.367099
0.542674
0.771289
1.05931
1.40328
1.73014
-2.53965
-1.63055
-1.04444
-0.710962
-0.495754
-0.352097
-0.254534
-0.183587
-0.126173
-0.073599
-0.019273
0.0427829
0.119208
0.218779
0.354808
0.54798
0.826389
1.23658
1.91167
2.92419
-4.36667
-2.04464
-0.973546
-0.563184
-0.35785
-0.24015
-0.170123
-0.123787
-0.0874851
-0.0535142
-0.0166584
0.0276566
0.0846034
0.161725
0.272407
0.442095
0.718215
1.2257
2.41103
4.84853
)
;
boundaryField
{
movingWall
{
type zeroGradient;
}
fixedWalls
{
type zeroGradient;
}
frontAndBack
{
type empty;
}
}
// ************************************************************************* //
| [
"aashay225@gmail.com"
] | aashay225@gmail.com | |
5354b4e1f1ae2a51bc6ddf6bd23c8bdd5baefeee | c9a156314b7d1c54b8e5fdfc72dd4adcabdb6575 | /VulkanRave/Engine/Libraries/glm/gtx/optimum_pow.hpp | 3d9e0185ac9ea44dfb8884be4188918529a69163 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-happy-bunny",
"MIT"
] | permissive | BullynckVictor/VulkanRave | 96d88734bf792493013dbe48c3c8533ba2198e90 | 28e543a0ce3ad0543f7e0f0be404d9f0ba67adb7 | refs/heads/master | 2023-07-24T03:08:30.624841 | 2021-09-04T13:50:08 | 2021-09-04T13:50:08 | 376,907,593 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,324 | hpp | /// @ref gtx_optimum_pow
/// @file glm/gtx/optimum_pow.hpp
///
/// @see core (dependence)
///
/// @defgroup gtx_optimum_pow GLM_GTX_optimum_pow
/// @ingroup gtx
///
/// Include <Engine/Libraries/glm/gtx/optimum_pow.hpp> to use the features of this extension.
///
/// Integer exponentiation of power functions.
#pragma once
// Dependency:
#include "../glm.hpp"
#if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
# ifndef GLM_ENABLE_EXPERIMENTAL
# pragma message("GLM: GLM_GTX_optimum_pow is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
# else
# pragma message("GLM: GLM_GTX_optimum_pow extension included")
# endif
#endif
namespace glm{
namespace gtx
{
/// @addtogroup gtx_optimum_pow
/// @{
/// Returns x raised to the power of 2.
///
/// @see gtx_optimum_pow
template<typename genType>
GLM_FUNC_DECL genType pow2(genType const& x);
/// Returns x raised to the power of 3.
///
/// @see gtx_optimum_pow
template<typename genType>
GLM_FUNC_DECL genType pow3(genType const& x);
/// Returns x raised to the power of 4.
///
/// @see gtx_optimum_pow
template<typename genType>
GLM_FUNC_DECL genType pow4(genType const& x);
/// @}
}//namespace gtx
}//namespace glm
#include "optimum_pow.inl"
| [
"victor.bullynck@gmail.com"
] | victor.bullynck@gmail.com |
0ef2f4bd8ad808407aaafec1a777a93145ccb48d | efeda21c44f8703c408b0e9b2a33f7c8742ad258 | /tests/stdexcept/stdexcept_full.hpp | 2a2d74e86f289a1200f83e20004a286f1490f43b | [
"MIT"
] | permissive | olegpublicprofile/stdfwd | 9d6987a49e57f73e3b625552c43c65818f91d041 | 19671bcc8e53bd4c008f07656eaf25a22495e093 | refs/heads/master | 2023-08-15T00:32:13.591955 | 2021-09-18T17:36:29 | 2021-09-18T17:36:29 | 347,794,330 | 18 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 309 | hpp | #pragma once
//------------------------------------------------------------------------------
namespace stdexcept_tests {
//------------------------------------------------------------------------------
void run_full();
//------------------------------------------------------------------------------
}
| [
"oleg.public.profile@ya.ru"
] | oleg.public.profile@ya.ru |
590b722d0dc55016ddcf5ae6511ba2a7c5a6c87d | eb2f8b3271e8ef9c9b092fcaeff3ff8307f7af86 | /Grade 8-9/Models for algorithms/完全背包(一维).cpp | 447965dd5b0c8211cf6842a46374337d5f3ba06e | [] | no_license | Orion545/OI-Record | 0071ecde8f766c6db1f67b9c2adf07d98fd4634f | fa7d3a36c4a184fde889123d0a66d896232ef14c | refs/heads/master | 2022-01-13T19:39:22.590840 | 2019-05-26T07:50:17 | 2019-05-26T07:50:17 | 188,645,194 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 319 | cpp | #include<iostream>
#include<cstdio>
using namespace std;
int c[101],w[101],f[10001];
int main(){
int n,v;cin>>n>>v;
for(int i=1;i<=n;i++){
cin>>c[i]>>w[i];
}
for(int i=1;i<=n;i++){
for(int j=0;j<=v;j++){
if(j-c[i]>=0) f[j]=max(f[j],f[j-c[i]]+w[i]);
printf("%3d",f[j]);
}
cout<<endl;
}
cout<<f[v];
}
| [
"orion545@qq.com"
] | orion545@qq.com |
9b65e24c6266329452abfa0b6020a348bc09757e | a3c71ebd227678b0ad1df6f8af51e126dffabd28 | /common/vectormath/ppu/cpp/vectormath_aos.h | 8d0ed8346e3fdf89e193492e3547129988e1ed5e | [
"MIT"
] | permissive | foobar-d/PSL1GHT | e713b46caede667740d4cb1bd94a652b3731c136 | ada438777ca5276a674babbbe22bddbb5a844730 | refs/heads/master | 2022-12-27T11:54:58.562760 | 2020-10-09T11:14:33 | 2020-10-09T11:14:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 76,755 | h | /*
Copyright (C) 2006, 2007 Sony Computer Entertainment Inc.
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 Sony Computer Entertainment Inc 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 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 _VECTORMATH_AOS_CPP_PPU_H
#define _VECTORMATH_AOS_CPP_PPU_H
#include <math.h>
#include <altivec.h>
#include "vecidx_aos.h"
#include "floatInVec.h"
#include "boolInVec.h"
#ifdef _VECTORMATH_DEBUG
#include <stdio.h>
#endif
namespace Vectormath {
namespace Aos {
//-----------------------------------------------------------------------------
// Forward Declarations
//
class Vector3;
class Vector4;
class Point3;
class Quat;
class Matrix3;
class Matrix4;
class Transform3;
// A 3-D vector in array-of-structures format
//
class Vector3
{
vec_float4 mVec128;
public:
// Default constructor; does no initialization
//
inline Vector3( ) : mVec128((vec_float4){0.0f, 0.0f, 0.0f, 0.0f}) { };
// Construct a 3-D vector from x, y, and z elements
//
inline Vector3( float x, float y, float z );
// Construct a 3-D vector from x, y, and z elements (scalar data contained in vector data type)
//
inline Vector3( floatInVec x, floatInVec y, floatInVec z );
// Copy elements from a 3-D point into a 3-D vector
//
explicit inline Vector3( Point3 pnt );
// Set all elements of a 3-D vector to the same scalar value
//
explicit inline Vector3( float scalar );
// Set all elements of a 3-D vector to the same scalar value (scalar data contained in vector data type)
//
explicit inline Vector3( floatInVec scalar );
// Set vector float data in a 3-D vector
//
explicit inline Vector3( vec_float4 vf4 );
// Get vector float data from a 3-D vector
//
inline vec_float4 get128( ) const;
// Assign one 3-D vector to another
//
inline Vector3 & operator =( Vector3 vec );
// Set the x element of a 3-D vector
//
inline Vector3 & setX( float x );
// Set the y element of a 3-D vector
//
inline Vector3 & setY( float y );
// Set the z element of a 3-D vector
//
inline Vector3 & setZ( float z );
// Set the x element of a 3-D vector (scalar data contained in vector data type)
//
inline Vector3 & setX( floatInVec x );
// Set the y element of a 3-D vector (scalar data contained in vector data type)
//
inline Vector3 & setY( floatInVec y );
// Set the z element of a 3-D vector (scalar data contained in vector data type)
//
inline Vector3 & setZ( floatInVec z );
// Get the x element of a 3-D vector
//
inline const floatInVec getX( ) const;
// Get the y element of a 3-D vector
//
inline const floatInVec getY( ) const;
// Get the z element of a 3-D vector
//
inline const floatInVec getZ( ) const;
// Set an x, y, or z element of a 3-D vector by index
//
inline Vector3 & setElem( int idx, float value );
// Set an x, y, or z element of a 3-D vector by index (scalar data contained in vector data type)
//
inline Vector3 & setElem( int idx, floatInVec value );
// Get an x, y, or z element of a 3-D vector by index
//
inline const floatInVec getElem( int idx ) const;
// Subscripting operator to set or get an element
//
inline VecIdx operator []( int idx );
// Subscripting operator to get an element
//
inline const floatInVec operator []( int idx ) const;
// Add two 3-D vectors
//
inline const Vector3 operator +( Vector3 vec ) const;
// Subtract a 3-D vector from another 3-D vector
//
inline const Vector3 operator -( Vector3 vec ) const;
// Add a 3-D vector to a 3-D point
//
inline const Point3 operator +( Point3 pnt ) const;
// Multiply a 3-D vector by a scalar
//
inline const Vector3 operator *( float scalar ) const;
// Divide a 3-D vector by a scalar
//
inline const Vector3 operator /( float scalar ) const;
// Multiply a 3-D vector by a scalar (scalar data contained in vector data type)
//
inline const Vector3 operator *( floatInVec scalar ) const;
// Divide a 3-D vector by a scalar (scalar data contained in vector data type)
//
inline const Vector3 operator /( floatInVec scalar ) const;
// Perform compound assignment and addition with a 3-D vector
//
inline Vector3 & operator +=( Vector3 vec );
// Perform compound assignment and subtraction by a 3-D vector
//
inline Vector3 & operator -=( Vector3 vec );
// Perform compound assignment and multiplication by a scalar
//
inline Vector3 & operator *=( float scalar );
// Perform compound assignment and division by a scalar
//
inline Vector3 & operator /=( float scalar );
// Perform compound assignment and multiplication by a scalar (scalar data contained in vector data type)
//
inline Vector3 & operator *=( floatInVec scalar );
// Perform compound assignment and division by a scalar (scalar data contained in vector data type)
//
inline Vector3 & operator /=( floatInVec scalar );
// Negate all elements of a 3-D vector
//
inline const Vector3 operator -( ) const;
// Perform equality comparsion of two 3-D vector
//
inline bool operator == (const Vector3& vec) const;
// Perform equality comparsion of two 3-D vector
//
inline bool operator != (const Vector3& vec) const;
// Perform lower than comparsion of two 3-D vector
//
inline bool operator < (const Vector3& vec) const;
// Perform lower or equal comparsion of two 3-D vector
//
inline bool operator <= (const Vector3& vec) const;
// Perform greater than comparsion of two 3-D vector
//
inline bool operator > (const Vector3& vec) const;
// Perform greater or equal comparsion of two 3-D vector
//
inline bool operator >= (const Vector3& vec) const;
// Construct x axis
//
static inline const Vector3 xAxis( );
// Construct y axis
//
static inline const Vector3 yAxis( );
// Construct z axis
//
static inline const Vector3 zAxis( );
};
// Multiply a 3-D vector by a scalar
//
inline const Vector3 operator *( float scalar, Vector3 vec );
// Multiply a 3-D vector by a scalar (scalar data contained in vector data type)
//
inline const Vector3 operator *( floatInVec scalar, Vector3 vec );
// Multiply two 3-D vectors per element
//
inline const Vector3 mulPerElem( Vector3 vec0, Vector3 vec1 );
// Divide two 3-D vectors per element
// NOTE:
// Floating-point behavior matches standard library function divf4.
//
inline const Vector3 divPerElem( Vector3 vec0, Vector3 vec1 );
// Compute the reciprocal of a 3-D vector per element
// NOTE:
// Floating-point behavior matches standard library function recipf4.
//
inline const Vector3 recipPerElem( Vector3 vec );
// Compute the square root of a 3-D vector per element
// NOTE:
// Floating-point behavior matches standard library function sqrtf4.
//
inline const Vector3 sqrtPerElem( Vector3 vec );
// Compute the reciprocal square root of a 3-D vector per element
// NOTE:
// Floating-point behavior matches standard library function rsqrtf4.
//
inline const Vector3 rsqrtPerElem( Vector3 vec );
// Compute the absolute value of a 3-D vector per element
//
inline const Vector3 absPerElem( Vector3 vec );
// Copy sign from one 3-D vector to another, per element
//
inline const Vector3 copySignPerElem( Vector3 vec0, Vector3 vec1 );
// Maximum of two 3-D vectors per element
//
inline const Vector3 maxPerElem( Vector3 vec0, Vector3 vec1 );
// Minimum of two 3-D vectors per element
//
inline const Vector3 minPerElem( Vector3 vec0, Vector3 vec1 );
// Maximum element of a 3-D vector
//
inline const floatInVec maxElem( Vector3 vec );
// Minimum element of a 3-D vector
//
inline const floatInVec minElem( Vector3 vec );
// Compute the sum of all elements of a 3-D vector
//
inline const floatInVec sum( Vector3 vec );
// Compute the dot product of two 3-D vectors
//
inline const floatInVec dot( Vector3 vec0, Vector3 vec1 );
// Compute the square of the length of a 3-D vector
//
inline const floatInVec lengthSqr( Vector3 vec );
// Compute the length of a 3-D vector
//
inline const floatInVec length( Vector3 vec );
// Normalize a 3-D vector
// NOTE:
// The result is unpredictable when all elements of vec are at or near zero.
//
inline const Vector3 normalize( Vector3 vec );
// Compute cross product of two 3-D vectors
//
inline const Vector3 cross( Vector3 vec0, Vector3 vec1 );
// Outer product of two 3-D vectors
//
inline const Matrix3 outer( Vector3 vec0, Vector3 vec1 );
// Pre-multiply a row vector by a 3x3 matrix
// NOTE:
// Slower than column post-multiply.
//
inline const Vector3 rowMul( Vector3 vec, const Matrix3 & mat );
// Cross-product matrix of a 3-D vector
//
inline const Matrix3 crossMatrix( Vector3 vec );
// Create cross-product matrix and multiply
// NOTE:
// Faster than separately creating a cross-product matrix and multiplying.
//
inline const Matrix3 crossMatrixMul( Vector3 vec, const Matrix3 & mat );
// Linear interpolation between two 3-D vectors
// NOTE:
// Does not clamp t between 0 and 1.
//
inline const Vector3 lerp( float t, Vector3 vec0, Vector3 vec1 );
// Linear interpolation between two 3-D vectors (scalar data contained in vector data type)
// NOTE:
// Does not clamp t between 0 and 1.
//
inline const Vector3 lerp( floatInVec t, Vector3 vec0, Vector3 vec1 );
// Spherical linear interpolation between two 3-D vectors
// NOTE:
// The result is unpredictable if the vectors point in opposite directions.
// Does not clamp t between 0 and 1.
//
inline const Vector3 slerp( float t, Vector3 unitVec0, Vector3 unitVec1 );
// Spherical linear interpolation between two 3-D vectors (scalar data contained in vector data type)
// NOTE:
// The result is unpredictable if the vectors point in opposite directions.
// Does not clamp t between 0 and 1.
//
inline const Vector3 slerp( floatInVec t, Vector3 unitVec0, Vector3 unitVec1 );
// Conditionally select between two 3-D vectors
// NOTE:
// This function uses a conditional select instruction to avoid a branch.
// However, the transfer of select1 to a VMX register may use more processing time than a branch.
// Use the boolInVec version for better performance.
//
inline const Vector3 select( Vector3 vec0, Vector3 vec1, bool select1 );
// Conditionally select between two 3-D vectors (scalar data contained in vector data type)
// NOTE:
// This function uses a conditional select instruction to avoid a branch.
//
inline const Vector3 select( Vector3 vec0, Vector3 vec1, boolInVec select1 );
// Load x, y, and z elements from the first three words of a quadword.
//
//
inline void loadXYZ( Vector3 & vec, const vec_float4 * quad );
// Load x, y, and z elements from the first three words of a float array.
//
//
inline void loadXYZ( Vector3 & vec, const float * fptr );
// Store x, y, and z elements of a 3-D vector in the first three words of a quadword.
// The value of the fourth word (the word with the highest address) remains unchanged
//
inline void storeXYZ( Vector3 vec, vec_float4 * quad );
// Store x, y, and z elements of a 3-D vector in the first three words of a float array.
// Memory area of previous 16 bytes and next 32 bytes from fptr might be accessed
//
inline void storeXYZ( Vector3 vec, float * fptr );
// Load four three-float 3-D vectors, stored in three quadwords
//
inline void loadXYZArray( Vector3 & vec0, Vector3 & vec1, Vector3 & vec2, Vector3 & vec3, const vec_float4 * threeQuads );
// Store four 3-D vectors in three quadwords
//
inline void storeXYZArray( Vector3 vec0, Vector3 vec1, Vector3 vec2, Vector3 vec3, vec_float4 * threeQuads );
// Store eight 3-D vectors as half-floats
//
inline void storeHalfFloats( Vector3 vec0, Vector3 vec1, Vector3 vec2, Vector3 vec3, Vector3 vec4, Vector3 vec5, Vector3 vec6, Vector3 vec7, vec_ushort8 * threeQuads );
#ifdef _VECTORMATH_DEBUG
// Print a 3-D vector
// NOTE:
// Function is only defined when _VECTORMATH_DEBUG is defined.
//
inline void print( Vector3 vec );
// Print a 3-D vector and an associated string identifier
// NOTE:
// Function is only defined when _VECTORMATH_DEBUG is defined.
//
inline void print( Vector3 vec, const char * name );
#endif
// A 4-D vector in array-of-structures format
//
class Vector4
{
vec_float4 mVec128;
public:
// Default constructor; does no initialization
//
inline Vector4( ) : mVec128((vec_float4){0.0f, 0.0f, 0.0f, 0.0f}) { };
// Construct a 4-D vector from x, y, z, and w elements
//
inline Vector4( float x, float y, float z, float w );
// Construct a 4-D vector from x, y, z, and w elements (scalar data contained in vector data type)
//
inline Vector4( floatInVec x, floatInVec y, floatInVec z, floatInVec w );
// Construct a 4-D vector from a 3-D vector and a scalar
//
inline Vector4( Vector3 xyz, float w );
// Construct a 4-D vector from a 3-D vector and a scalar (scalar data contained in vector data type)
//
inline Vector4( Vector3 xyz, floatInVec w );
// Copy x, y, and z from a 3-D vector into a 4-D vector, and set w to 0
//
explicit inline Vector4( Vector3 vec );
// Copy x, y, and z from a 3-D point into a 4-D vector, and set w to 1
//
explicit inline Vector4( Point3 pnt );
// Copy elements from a quaternion into a 4-D vector
//
explicit inline Vector4( Quat quat );
// Set all elements of a 4-D vector to the same scalar value
//
explicit inline Vector4( float scalar );
// Set all elements of a 4-D vector to the same scalar value (scalar data contained in vector data type)
//
explicit inline Vector4( floatInVec scalar );
// Set vector float data in a 4-D vector
//
explicit inline Vector4( vec_float4 vf4 );
// Get vector float data from a 4-D vector
//
inline vec_float4 get128( ) const;
// Assign one 4-D vector to another
//
inline Vector4 & operator =( Vector4 vec );
// Set the x, y, and z elements of a 4-D vector
// NOTE:
// This function does not change the w element.
//
inline Vector4 & setXYZ( Vector3 vec );
// Get the x, y, and z elements of a 4-D vector
//
inline const Vector3 getXYZ( ) const;
// Set the x element of a 4-D vector
//
inline Vector4 & setX( float x );
// Set the y element of a 4-D vector
//
inline Vector4 & setY( float y );
// Set the z element of a 4-D vector
//
inline Vector4 & setZ( float z );
// Set the w element of a 4-D vector
//
inline Vector4 & setW( float w );
// Set the x element of a 4-D vector (scalar data contained in vector data type)
//
inline Vector4 & setX( floatInVec x );
// Set the y element of a 4-D vector (scalar data contained in vector data type)
//
inline Vector4 & setY( floatInVec y );
// Set the z element of a 4-D vector (scalar data contained in vector data type)
//
inline Vector4 & setZ( floatInVec z );
// Set the w element of a 4-D vector (scalar data contained in vector data type)
//
inline Vector4 & setW( floatInVec w );
// Get the x element of a 4-D vector
//
inline const floatInVec getX( ) const;
// Get the y element of a 4-D vector
//
inline const floatInVec getY( ) const;
// Get the z element of a 4-D vector
//
inline const floatInVec getZ( ) const;
// Get the w element of a 4-D vector
//
inline const floatInVec getW( ) const;
// Set an x, y, z, or w element of a 4-D vector by index
//
inline Vector4 & setElem( int idx, float value );
// Set an x, y, z, or w element of a 4-D vector by index (scalar data contained in vector data type)
//
inline Vector4 & setElem( int idx, floatInVec value );
// Get an x, y, z, or w element of a 4-D vector by index
//
inline const floatInVec getElem( int idx ) const;
// Subscripting operator to set or get an element
//
inline VecIdx operator []( int idx );
// Subscripting operator to get an element
//
inline const floatInVec operator []( int idx ) const;
// Add two 4-D vectors
//
inline const Vector4 operator +( Vector4 vec ) const;
// Subtract a 4-D vector from another 4-D vector
//
inline const Vector4 operator -( Vector4 vec ) const;
// Multiply a 4-D vector by a scalar
//
inline const Vector4 operator *( float scalar ) const;
// Divide a 4-D vector by a scalar
//
inline const Vector4 operator /( float scalar ) const;
// Multiply a 4-D vector by a scalar (scalar data contained in vector data type)
//
inline const Vector4 operator *( floatInVec scalar ) const;
// Divide a 4-D vector by a scalar (scalar data contained in vector data type)
//
inline const Vector4 operator /( floatInVec scalar ) const;
// Perform compound assignment and addition with a 4-D vector
//
inline Vector4 & operator +=( Vector4 vec );
// Perform compound assignment and subtraction by a 4-D vector
//
inline Vector4 & operator -=( Vector4 vec );
// Perform compound assignment and multiplication by a scalar
//
inline Vector4 & operator *=( float scalar );
// Perform compound assignment and division by a scalar
//
inline Vector4 & operator /=( float scalar );
// Perform compound assignment and multiplication by a scalar (scalar data contained in vector data type)
//
inline Vector4 & operator *=( floatInVec scalar );
// Perform compound assignment and division by a scalar (scalar data contained in vector data type)
//
inline Vector4 & operator /=( floatInVec scalar );
// Negate all elements of a 4-D vector
//
inline const Vector4 operator -( ) const;
// Perform equality comparsion of two 4-D vector
//
inline bool operator == (const Vector4& vec) const;
// Perform equality comparsion of two 4-D vector
//
inline bool operator != (const Vector4& vec) const;
// Perform lower than comparsion of two 4-D vector
//
inline bool operator < (const Vector4& vec) const;
// Perform lower or equal comparsion of two 4-D vector
//
inline bool operator <= (const Vector4& vec) const;
// Perform greater than comparsion of two 4-D vector
//
inline bool operator > (const Vector4& vec) const;
// Perform greater or equal comparsion of two 4-D vector
//
inline bool operator >= (const Vector4& vec) const;
// Construct x axis
//
static inline const Vector4 xAxis( );
// Construct y axis
//
static inline const Vector4 yAxis( );
// Construct z axis
//
static inline const Vector4 zAxis( );
// Construct w axis
//
static inline const Vector4 wAxis( );
};
// Multiply a 4-D vector by a scalar
//
inline const Vector4 operator *( float scalar, Vector4 vec );
// Multiply a 4-D vector by a scalar (scalar data contained in vector data type)
//
inline const Vector4 operator *( floatInVec scalar, Vector4 vec );
// Multiply two 4-D vectors per element
//
inline const Vector4 mulPerElem( Vector4 vec0, Vector4 vec1 );
// Divide two 4-D vectors per element
// NOTE:
// Floating-point behavior matches standard library function divf4.
//
inline const Vector4 divPerElem( Vector4 vec0, Vector4 vec1 );
// Compute the reciprocal of a 4-D vector per element
// NOTE:
// Floating-point behavior matches standard library function recipf4.
//
inline const Vector4 recipPerElem( Vector4 vec );
// Compute the square root of a 4-D vector per element
// NOTE:
// Floating-point behavior matches standard library function sqrtf4.
//
inline const Vector4 sqrtPerElem( Vector4 vec );
// Compute the reciprocal square root of a 4-D vector per element
// NOTE:
// Floating-point behavior matches standard library function rsqrtf4.
//
inline const Vector4 rsqrtPerElem( Vector4 vec );
// Compute the absolute value of a 4-D vector per element
//
inline const Vector4 absPerElem( Vector4 vec );
// Copy sign from one 4-D vector to another, per element
//
inline const Vector4 copySignPerElem( Vector4 vec0, Vector4 vec1 );
// Maximum of two 4-D vectors per element
//
inline const Vector4 maxPerElem( Vector4 vec0, Vector4 vec1 );
// Minimum of two 4-D vectors per element
//
inline const Vector4 minPerElem( Vector4 vec0, Vector4 vec1 );
// Maximum element of a 4-D vector
//
inline const floatInVec maxElem( Vector4 vec );
// Minimum element of a 4-D vector
//
inline const floatInVec minElem( Vector4 vec );
// Compute the sum of all elements of a 4-D vector
//
inline const floatInVec sum( Vector4 vec );
// Compute the dot product of two 4-D vectors
//
inline const floatInVec dot( Vector4 vec0, Vector4 vec1 );
// Compute the square of the length of a 4-D vector
//
inline const floatInVec lengthSqr( Vector4 vec );
// Compute the length of a 4-D vector
//
inline const floatInVec length( Vector4 vec );
// Normalize a 4-D vector
// NOTE:
// The result is unpredictable when all elements of vec are at or near zero.
//
inline const Vector4 normalize( Vector4 vec );
// Outer product of two 4-D vectors
//
inline const Matrix4 outer( Vector4 vec0, Vector4 vec1 );
// Linear interpolation between two 4-D vectors
// NOTE:
// Does not clamp t between 0 and 1.
//
inline const Vector4 lerp( float t, Vector4 vec0, Vector4 vec1 );
// Linear interpolation between two 4-D vectors (scalar data contained in vector data type)
// NOTE:
// Does not clamp t between 0 and 1.
//
inline const Vector4 lerp( floatInVec t, Vector4 vec0, Vector4 vec1 );
// Spherical linear interpolation between two 4-D vectors
// NOTE:
// The result is unpredictable if the vectors point in opposite directions.
// Does not clamp t between 0 and 1.
//
inline const Vector4 slerp( float t, Vector4 unitVec0, Vector4 unitVec1 );
// Spherical linear interpolation between two 4-D vectors (scalar data contained in vector data type)
// NOTE:
// The result is unpredictable if the vectors point in opposite directions.
// Does not clamp t between 0 and 1.
//
inline const Vector4 slerp( floatInVec t, Vector4 unitVec0, Vector4 unitVec1 );
// Conditionally select between two 4-D vectors
// NOTE:
// This function uses a conditional select instruction to avoid a branch.
// However, the transfer of select1 to a VMX register may use more processing time than a branch.
// Use the boolInVec version for better performance.
//
inline const Vector4 select( Vector4 vec0, Vector4 vec1, bool select1 );
// Conditionally select between two 4-D vectors (scalar data contained in vector data type)
// NOTE:
// This function uses a conditional select instruction to avoid a branch.
//
inline const Vector4 select( Vector4 vec0, Vector4 vec1, boolInVec select1 );
// Store four 4-D vectors as half-floats
//
inline void storeHalfFloats( Vector4 vec0, Vector4 vec1, Vector4 vec2, Vector4 vec3, vec_ushort8 * twoQuads );
// Load x, y, z, and w elements from the first four words of a float array.
//
//
inline void loadXYZW( Vector4 & vec, const float * fptr );
// Store x, y, z, and w elements of a 4-D vector in the first four words of a float array.
// Memory area of previous 16 bytes and next 32 bytes from fptr might be accessed
//
inline void storeXYZW( Vector4 vec, float * fptr );
#ifdef _VECTORMATH_DEBUG
// Print a 4-D vector
// NOTE:
// Function is only defined when _VECTORMATH_DEBUG is defined.
//
inline void print( Vector4 vec );
// Print a 4-D vector and an associated string identifier
// NOTE:
// Function is only defined when _VECTORMATH_DEBUG is defined.
//
inline void print( Vector4 vec, const char * name );
#endif
// A 3-D point in array-of-structures format
//
class Point3
{
vec_float4 mVec128;
public:
// Default constructor; does no initialization
//
inline Point3( ) : mVec128((vec_float4){0.0f, 0.0f, 0.0f, 0.0f}) { };
// Construct a 3-D point from x, y, and z elements
//
inline Point3( float x, float y, float z );
// Construct a 3-D point from x, y, and z elements (scalar data contained in vector data type)
//
inline Point3( floatInVec x, floatInVec y, floatInVec z );
// Copy elements from a 3-D vector into a 3-D point
//
explicit inline Point3( Vector3 vec );
// Set all elements of a 3-D point to the same scalar value
//
explicit inline Point3( float scalar );
// Set all elements of a 3-D point to the same scalar value (scalar data contained in vector data type)
//
explicit inline Point3( floatInVec scalar );
// Set vector float data in a 3-D point
//
explicit inline Point3( vec_float4 vf4 );
// Get vector float data from a 3-D point
//
inline vec_float4 get128( ) const;
// Assign one 3-D point to another
//
inline Point3 & operator =( Point3 pnt );
// Set the x element of a 3-D point
//
inline Point3 & setX( float x );
// Set the y element of a 3-D point
//
inline Point3 & setY( float y );
// Set the z element of a 3-D point
//
inline Point3 & setZ( float z );
// Set the x element of a 3-D point (scalar data contained in vector data type)
//
inline Point3 & setX( floatInVec x );
// Set the y element of a 3-D point (scalar data contained in vector data type)
//
inline Point3 & setY( floatInVec y );
// Set the z element of a 3-D point (scalar data contained in vector data type)
//
inline Point3 & setZ( floatInVec z );
// Get the x element of a 3-D point
//
inline const floatInVec getX( ) const;
// Get the y element of a 3-D point
//
inline const floatInVec getY( ) const;
// Get the z element of a 3-D point
//
inline const floatInVec getZ( ) const;
// Set an x, y, or z element of a 3-D point by index
//
inline Point3 & setElem( int idx, float value );
// Set an x, y, or z element of a 3-D point by index (scalar data contained in vector data type)
//
inline Point3 & setElem( int idx, floatInVec value );
// Get an x, y, or z element of a 3-D point by index
//
inline const floatInVec getElem( int idx ) const;
// Subscripting operator to set or get an element
//
inline VecIdx operator []( int idx );
// Subscripting operator to get an element
//
inline const floatInVec operator []( int idx ) const;
// Subtract a 3-D point from another 3-D point
//
inline const Vector3 operator -( Point3 pnt ) const;
// Add a 3-D point to a 3-D vector
//
inline const Point3 operator +( Vector3 vec ) const;
// Subtract a 3-D vector from a 3-D point
//
inline const Point3 operator -( Vector3 vec ) const;
// Perform compound assignment and addition with a 3-D vector
//
inline Point3 & operator +=( Vector3 vec );
// Perform compound assignment and subtraction by a 3-D vector
//
inline Point3 & operator -=( Vector3 vec );
// Perform equality comparsion of two 3-D point
//
inline bool operator == (const Point3& vec) const;
// Perform equality comparsion of two 3-D point
//
inline bool operator != (const Point3& vec) const;
// Perform lower than comparsion of two 3-D point
//
inline bool operator < (const Point3& vec) const;
// Perform lower or equal comparsion of two 3-D point
//
inline bool operator <= (const Point3& vec) const;
// Perform greater than comparsion of two 3-D point
//
inline bool operator > (const Point3& vec) const;
// Perform greater or equal comparsion of two 3-D point
//
inline bool operator >= (const Point3& vec) const;
};
// Multiply two 3-D points per element
//
inline const Point3 mulPerElem( Point3 pnt0, Point3 pnt1 );
// Divide two 3-D points per element
// NOTE:
// Floating-point behavior matches standard library function divf4.
//
inline const Point3 divPerElem( Point3 pnt0, Point3 pnt1 );
// Compute the reciprocal of a 3-D point per element
// NOTE:
// Floating-point behavior matches standard library function recipf4.
//
inline const Point3 recipPerElem( Point3 pnt );
// Compute the square root of a 3-D point per element
// NOTE:
// Floating-point behavior matches standard library function sqrtf4.
//
inline const Point3 sqrtPerElem( Point3 pnt );
// Compute the reciprocal square root of a 3-D point per element
// NOTE:
// Floating-point behavior matches standard library function rsqrtf4.
//
inline const Point3 rsqrtPerElem( Point3 pnt );
// Compute the absolute value of a 3-D point per element
//
inline const Point3 absPerElem( Point3 pnt );
// Copy sign from one 3-D point to another, per element
//
inline const Point3 copySignPerElem( Point3 pnt0, Point3 pnt1 );
// Maximum of two 3-D points per element
//
inline const Point3 maxPerElem( Point3 pnt0, Point3 pnt1 );
// Minimum of two 3-D points per element
//
inline const Point3 minPerElem( Point3 pnt0, Point3 pnt1 );
// Maximum element of a 3-D point
//
inline const floatInVec maxElem( Point3 pnt );
// Minimum element of a 3-D point
//
inline const floatInVec minElem( Point3 pnt );
// Compute the sum of all elements of a 3-D point
//
inline const floatInVec sum( Point3 pnt );
// Apply uniform scale to a 3-D point
//
inline const Point3 scale( Point3 pnt, float scaleVal );
// Apply uniform scale to a 3-D point (scalar data contained in vector data type)
//
inline const Point3 scale( Point3 pnt, floatInVec scaleVal );
// Apply non-uniform scale to a 3-D point
//
inline const Point3 scale( Point3 pnt, Vector3 scaleVec );
// Scalar projection of a 3-D point on a unit-length 3-D vector
//
inline const floatInVec projection( Point3 pnt, Vector3 unitVec );
// Compute the square of the distance of a 3-D point from the coordinate-system origin
//
inline const floatInVec distSqrFromOrigin( Point3 pnt );
// Compute the distance of a 3-D point from the coordinate-system origin
//
inline const floatInVec distFromOrigin( Point3 pnt );
// Compute the square of the distance between two 3-D points
//
inline const floatInVec distSqr( Point3 pnt0, Point3 pnt1 );
// Compute the distance between two 3-D points
//
inline const floatInVec dist( Point3 pnt0, Point3 pnt1 );
// Linear interpolation between two 3-D points
// NOTE:
// Does not clamp t between 0 and 1.
//
inline const Point3 lerp( float t, Point3 pnt0, Point3 pnt1 );
// Linear interpolation between two 3-D points (scalar data contained in vector data type)
// NOTE:
// Does not clamp t between 0 and 1.
//
inline const Point3 lerp( floatInVec t, Point3 pnt0, Point3 pnt1 );
// Conditionally select between two 3-D points
// NOTE:
// This function uses a conditional select instruction to avoid a branch.
// However, the transfer of select1 to a VMX register may use more processing time than a branch.
// Use the boolInVec version for better performance.
//
inline const Point3 select( Point3 pnt0, Point3 pnt1, bool select1 );
// Conditionally select between two 3-D points (scalar data contained in vector data type)
// NOTE:
// This function uses a conditional select instruction to avoid a branch.
//
inline const Point3 select( Point3 pnt0, Point3 pnt1, boolInVec select1 );
// Load x, y, and z elements from the first three words of a quadword.
//
//
inline void loadXYZ( Point3 & pnt, const vec_float4 * quad );
// Load x, y, and z elements from the first three words of a float array.
//
//
inline void loadXYZ( Point3 & pnt, const float * fptr );
// Store x, y, and z elements of a 3-D point in the first three words of a quadword.
// The value of the fourth word (the word with the highest address) remains unchanged
//
inline void storeXYZ( Point3 pnt, vec_float4 * quad );
// Store x, y, and z elements of a 3-D point in the first three words of a float array.
// Memory area of previous 16 bytes and next 32 bytes from fptr might be accessed
//
inline void storeXYZ( Point3 pnt, float * fptr );
// Load four three-float 3-D points, stored in three quadwords
//
inline void loadXYZArray( Point3 & pnt0, Point3 & pnt1, Point3 & pnt2, Point3 & pnt3, const vec_float4 * threeQuads );
// Store four 3-D points in three quadwords
//
inline void storeXYZArray( Point3 pnt0, Point3 pnt1, Point3 pnt2, Point3 pnt3, vec_float4 * threeQuads );
// Store eight 3-D points as half-floats
//
inline void storeHalfFloats( Point3 pnt0, Point3 pnt1, Point3 pnt2, Point3 pnt3, Point3 pnt4, Point3 pnt5, Point3 pnt6, Point3 pnt7, vec_ushort8 * threeQuads );
#ifdef _VECTORMATH_DEBUG
// Print a 3-D point
// NOTE:
// Function is only defined when _VECTORMATH_DEBUG is defined.
//
inline void print( Point3 pnt );
// Print a 3-D point and an associated string identifier
// NOTE:
// Function is only defined when _VECTORMATH_DEBUG is defined.
//
inline void print( Point3 pnt, const char * name );
#endif
// A quaternion in array-of-structures format
//
class Quat
{
vec_float4 mVec128;
public:
// Default constructor; does no initialization
//
inline Quat( ) : mVec128((vec_float4){0.0f, 0.0f, 0.0f, 0.0f}) { };
// Construct a quaternion from x, y, z, and w elements
//
inline Quat( float x, float y, float z, float w );
// Construct a quaternion from x, y, z, and w elements (scalar data contained in vector data type)
//
inline Quat( floatInVec x, floatInVec y, floatInVec z, floatInVec w );
// Construct a quaternion from a 3-D vector and a scalar
//
inline Quat( Vector3 xyz, float w );
// Construct a quaternion from a 3-D vector and a scalar (scalar data contained in vector data type)
//
inline Quat( Vector3 xyz, floatInVec w );
// Copy elements from a 4-D vector into a quaternion
//
explicit inline Quat( Vector4 vec );
// Convert a rotation matrix to a unit-length quaternion
//
explicit inline Quat( const Matrix3 & rotMat );
// Set all elements of a quaternion to the same scalar value
//
explicit inline Quat( float scalar );
// Set all elements of a quaternion to the same scalar value (scalar data contained in vector data type)
//
explicit inline Quat( floatInVec scalar );
// Set vector float data in a quaternion
//
explicit inline Quat( vec_float4 vf4 );
// Get vector float data from a quaternion
//
inline vec_float4 get128( ) const;
// Assign one quaternion to another
//
inline Quat & operator =( Quat quat );
// Set the x, y, and z elements of a quaternion
// NOTE:
// This function does not change the w element.
//
inline Quat & setXYZ( Vector3 vec );
// Get the x, y, and z elements of a quaternion
//
inline const Vector3 getXYZ( ) const;
// Set the x element of a quaternion
//
inline Quat & setX( float x );
// Set the y element of a quaternion
//
inline Quat & setY( float y );
// Set the z element of a quaternion
//
inline Quat & setZ( float z );
// Set the w element of a quaternion
//
inline Quat & setW( float w );
// Set the x element of a quaternion (scalar data contained in vector data type)
//
inline Quat & setX( floatInVec x );
// Set the y element of a quaternion (scalar data contained in vector data type)
//
inline Quat & setY( floatInVec y );
// Set the z element of a quaternion (scalar data contained in vector data type)
//
inline Quat & setZ( floatInVec z );
// Set the w element of a quaternion (scalar data contained in vector data type)
//
inline Quat & setW( floatInVec w );
// Get the x element of a quaternion
//
inline const floatInVec getX( ) const;
// Get the y element of a quaternion
//
inline const floatInVec getY( ) const;
// Get the z element of a quaternion
//
inline const floatInVec getZ( ) const;
// Get the w element of a quaternion
//
inline const floatInVec getW( ) const;
// Set an x, y, z, or w element of a quaternion by index
//
inline Quat & setElem( int idx, float value );
// Set an x, y, z, or w element of a quaternion by index (scalar data contained in vector data type)
//
inline Quat & setElem( int idx, floatInVec value );
// Get an x, y, z, or w element of a quaternion by index
//
inline const floatInVec getElem( int idx ) const;
// Subscripting operator to set or get an element
//
inline VecIdx operator []( int idx );
// Subscripting operator to get an element
//
inline const floatInVec operator []( int idx ) const;
// Add two quaternions
//
inline const Quat operator +( Quat quat ) const;
// Subtract a quaternion from another quaternion
//
inline const Quat operator -( Quat quat ) const;
// Multiply two quaternions
//
inline const Quat operator *( Quat quat ) const;
// Multiply a quaternion by a scalar
//
inline const Quat operator *( float scalar ) const;
// Divide a quaternion by a scalar
//
inline const Quat operator /( float scalar ) const;
// Multiply a quaternion by a scalar (scalar data contained in vector data type)
//
inline const Quat operator *( floatInVec scalar ) const;
// Divide a quaternion by a scalar (scalar data contained in vector data type)
//
inline const Quat operator /( floatInVec scalar ) const;
// Perform compound assignment and addition with a quaternion
//
inline Quat & operator +=( Quat quat );
// Perform compound assignment and subtraction by a quaternion
//
inline Quat & operator -=( Quat quat );
// Perform compound assignment and multiplication by a quaternion
//
inline Quat & operator *=( Quat quat );
// Perform compound assignment and multiplication by a scalar
//
inline Quat & operator *=( float scalar );
// Perform compound assignment and division by a scalar
//
inline Quat & operator /=( float scalar );
// Perform compound assignment and multiplication by a scalar (scalar data contained in vector data type)
//
inline Quat & operator *=( floatInVec scalar );
// Perform compound assignment and division by a scalar (scalar data contained in vector data type)
//
inline Quat & operator /=( floatInVec scalar );
// Negate all elements of a quaternion
//
inline const Quat operator -( ) const;
// Construct an identity quaternion
//
static inline const Quat identity( );
// Construct a quaternion to rotate between two unit-length 3-D vectors
// NOTE:
// The result is unpredictable if unitVec0 and unitVec1 point in opposite directions.
//
static inline const Quat rotation( Vector3 unitVec0, Vector3 unitVec1 );
// Construct a quaternion to rotate around a unit-length 3-D vector
//
static inline const Quat rotation( float radians, Vector3 unitVec );
// Construct a quaternion to rotate around a unit-length 3-D vector (scalar data contained in vector data type)
//
static inline const Quat rotation( floatInVec radians, Vector3 unitVec );
// Construct a quaternion to rotate around the x axis
//
static inline const Quat rotationX( float radians );
// Construct a quaternion to rotate around the y axis
//
static inline const Quat rotationY( float radians );
// Construct a quaternion to rotate around the z axis
//
static inline const Quat rotationZ( float radians );
// Construct a quaternion to rotate around the x axis (scalar data contained in vector data type)
//
static inline const Quat rotationX( floatInVec radians );
// Construct a quaternion to rotate around the y axis (scalar data contained in vector data type)
//
static inline const Quat rotationY( floatInVec radians );
// Construct a quaternion to rotate around the z axis (scalar data contained in vector data type)
//
static inline const Quat rotationZ( floatInVec radians );
};
// Multiply a quaternion by a scalar
//
inline const Quat operator *( float scalar, Quat quat );
// Multiply a quaternion by a scalar (scalar data contained in vector data type)
//
inline const Quat operator *( floatInVec scalar, Quat quat );
// Compute the conjugate of a quaternion
//
inline const Quat conj( Quat quat );
// Use a unit-length quaternion to rotate a 3-D vector
//
inline const Vector3 rotate( Quat unitQuat, Vector3 vec );
// Compute the dot product of two quaternions
//
inline const floatInVec dot( Quat quat0, Quat quat1 );
// Compute the norm of a quaternion
//
inline const floatInVec norm( Quat quat );
// Compute the length of a quaternion
//
inline const floatInVec length( Quat quat );
// Normalize a quaternion
// NOTE:
// The result is unpredictable when all elements of quat are at or near zero.
//
inline const Quat normalize( Quat quat );
// Linear interpolation between two quaternions
// NOTE:
// Does not clamp t between 0 and 1.
//
inline const Quat lerp( float t, Quat quat0, Quat quat1 );
// Linear interpolation between two quaternions (scalar data contained in vector data type)
// NOTE:
// Does not clamp t between 0 and 1.
//
inline const Quat lerp( floatInVec t, Quat quat0, Quat quat1 );
// Spherical linear interpolation between two quaternions
// NOTE:
// Interpolates along the shortest path between orientations.
// Does not clamp t between 0 and 1.
//
inline const Quat slerp( float t, Quat unitQuat0, Quat unitQuat1 );
// Spherical linear interpolation between two quaternions (scalar data contained in vector data type)
// NOTE:
// Interpolates along the shortest path between orientations.
// Does not clamp t between 0 and 1.
//
inline const Quat slerp( floatInVec t, Quat unitQuat0, Quat unitQuat1 );
// Spherical quadrangle interpolation
//
inline const Quat squad( float t, Quat unitQuat0, Quat unitQuat1, Quat unitQuat2, Quat unitQuat3 );
// Spherical quadrangle interpolation (scalar data contained in vector data type)
//
inline const Quat squad( floatInVec t, Quat unitQuat0, Quat unitQuat1, Quat unitQuat2, Quat unitQuat3 );
// Load x, y, z, and w elements from the first four words of a float array.
//
//
inline void loadXYZW( Quat & quat, const float * fptr );
// Store x, y, z, and w elements of a quaternion in the first four words of a float array.
// Memory area of previous 16 bytes and next 32 bytes from fptr might be accessed
//
inline void storeXYZW( Quat quat, float * fptr );
// Conditionally select between two quaternions
// NOTE:
// This function uses a conditional select instruction to avoid a branch.
// However, the transfer of select1 to a VMX register may use more processing time than a branch.
// Use the boolInVec version for better performance.
//
inline const Quat select( Quat quat0, Quat quat1, bool select1 );
// Conditionally select between two quaternions (scalar data contained in vector data type)
// NOTE:
// This function uses a conditional select instruction to avoid a branch.
//
inline const Quat select( Quat quat0, Quat quat1, boolInVec select1 );
#ifdef _VECTORMATH_DEBUG
// Print a quaternion
// NOTE:
// Function is only defined when _VECTORMATH_DEBUG is defined.
//
inline void print( Quat quat );
// Print a quaternion and an associated string identifier
// NOTE:
// Function is only defined when _VECTORMATH_DEBUG is defined.
//
inline void print( Quat quat, const char * name );
#endif
// A 3x3 matrix in array-of-structures format
//
class Matrix3
{
Vector3 mCol0;
Vector3 mCol1;
Vector3 mCol2;
public:
// Default constructor; does no initialization
//
inline Matrix3( ) { };
// Copy a 3x3 matrix
//
inline Matrix3( const Matrix3 & mat );
// Construct a 3x3 matrix containing the specified columns
//
inline Matrix3( Vector3 col0, Vector3 col1, Vector3 col2 );
// Construct a 3x3 rotation matrix from a unit-length quaternion
//
explicit inline Matrix3( Quat unitQuat );
// Set all elements of a 3x3 matrix to the same scalar value
//
explicit inline Matrix3( float scalar );
// Set all elements of a 3x3 matrix to the same scalar value (scalar data contained in vector data type)
//
explicit inline Matrix3( floatInVec scalar );
// Assign one 3x3 matrix to another
//
inline Matrix3 & operator =( const Matrix3 & mat );
// Set column 0 of a 3x3 matrix
//
inline Matrix3 & setCol0( Vector3 col0 );
// Set column 1 of a 3x3 matrix
//
inline Matrix3 & setCol1( Vector3 col1 );
// Set column 2 of a 3x3 matrix
//
inline Matrix3 & setCol2( Vector3 col2 );
// Get column 0 of a 3x3 matrix
//
inline const Vector3 getCol0( ) const;
// Get column 1 of a 3x3 matrix
//
inline const Vector3 getCol1( ) const;
// Get column 2 of a 3x3 matrix
//
inline const Vector3 getCol2( ) const;
// Set the column of a 3x3 matrix referred to by the specified index
//
inline Matrix3 & setCol( int col, Vector3 vec );
// Set the row of a 3x3 matrix referred to by the specified index
//
inline Matrix3 & setRow( int row, Vector3 vec );
// Get the column of a 3x3 matrix referred to by the specified index
//
inline const Vector3 getCol( int col ) const;
// Get the row of a 3x3 matrix referred to by the specified index
//
inline const Vector3 getRow( int row ) const;
// Subscripting operator to set or get a column
//
inline Vector3 & operator []( int col );
// Subscripting operator to get a column
//
inline const Vector3 operator []( int col ) const;
// Set the element of a 3x3 matrix referred to by column and row indices
//
inline Matrix3 & setElem( int col, int row, float val );
// Set the element of a 3x3 matrix referred to by column and row indices (scalar data contained in vector data type)
//
inline Matrix3 & setElem( int col, int row, floatInVec val );
// Get the element of a 3x3 matrix referred to by column and row indices
//
inline const floatInVec getElem( int col, int row ) const;
// Add two 3x3 matrices
//
inline const Matrix3 operator +( const Matrix3 & mat ) const;
// Subtract a 3x3 matrix from another 3x3 matrix
//
inline const Matrix3 operator -( const Matrix3 & mat ) const;
// Negate all elements of a 3x3 matrix
//
inline const Matrix3 operator -( ) const;
// Multiply a 3x3 matrix by a scalar
//
inline const Matrix3 operator *( float scalar ) const;
// Multiply a 3x3 matrix by a scalar (scalar data contained in vector data type)
//
inline const Matrix3 operator *( floatInVec scalar ) const;
// Multiply a 3x3 matrix by a 3-D vector
//
inline const Vector3 operator *( Vector3 vec ) const;
// Multiply two 3x3 matrices
//
inline const Matrix3 operator *( const Matrix3 & mat ) const;
// Perform compound assignment and addition with a 3x3 matrix
//
inline Matrix3 & operator +=( const Matrix3 & mat );
// Perform compound assignment and subtraction by a 3x3 matrix
//
inline Matrix3 & operator -=( const Matrix3 & mat );
// Perform compound assignment and multiplication by a scalar
//
inline Matrix3 & operator *=( float scalar );
// Perform compound assignment and multiplication by a scalar (scalar data contained in vector data type)
//
inline Matrix3 & operator *=( floatInVec scalar );
// Perform compound assignment and multiplication by a 3x3 matrix
//
inline Matrix3 & operator *=( const Matrix3 & mat );
// Construct an identity 3x3 matrix
//
static inline const Matrix3 identity( );
// Construct a 3x3 matrix to rotate around the x axis
//
static inline const Matrix3 rotationX( float radians );
// Construct a 3x3 matrix to rotate around the y axis
//
static inline const Matrix3 rotationY( float radians );
// Construct a 3x3 matrix to rotate around the z axis
//
static inline const Matrix3 rotationZ( float radians );
// Construct a 3x3 matrix to rotate around the x axis (scalar data contained in vector data type)
//
static inline const Matrix3 rotationX( floatInVec radians );
// Construct a 3x3 matrix to rotate around the y axis (scalar data contained in vector data type)
//
static inline const Matrix3 rotationY( floatInVec radians );
// Construct a 3x3 matrix to rotate around the z axis (scalar data contained in vector data type)
//
static inline const Matrix3 rotationZ( floatInVec radians );
// Construct a 3x3 matrix to rotate around the x, y, and z axes
//
static inline const Matrix3 rotationZYX( Vector3 radiansXYZ );
// Construct a 3x3 matrix to rotate around a unit-length 3-D vector
//
static inline const Matrix3 rotation( float radians, Vector3 unitVec );
// Construct a 3x3 matrix to rotate around a unit-length 3-D vector (scalar data contained in vector data type)
//
static inline const Matrix3 rotation( floatInVec radians, Vector3 unitVec );
// Construct a rotation matrix from a unit-length quaternion
//
static inline const Matrix3 rotation( Quat unitQuat );
// Construct a 3x3 matrix to perform scaling
//
static inline const Matrix3 scale( Vector3 scaleVec );
};
// Multiply a 3x3 matrix by a scalar
//
inline const Matrix3 operator *( float scalar, const Matrix3 & mat );
// Multiply a 3x3 matrix by a scalar (scalar data contained in vector data type)
//
inline const Matrix3 operator *( floatInVec scalar, const Matrix3 & mat );
// Append (post-multiply) a scale transformation to a 3x3 matrix
// NOTE:
// Faster than creating and multiplying a scale transformation matrix.
//
inline const Matrix3 appendScale( const Matrix3 & mat, Vector3 scaleVec );
// Prepend (pre-multiply) a scale transformation to a 3x3 matrix
// NOTE:
// Faster than creating and multiplying a scale transformation matrix.
//
inline const Matrix3 prependScale( Vector3 scaleVec, const Matrix3 & mat );
// Multiply two 3x3 matrices per element
//
inline const Matrix3 mulPerElem( const Matrix3 & mat0, const Matrix3 & mat1 );
// Compute the absolute value of a 3x3 matrix per element
//
inline const Matrix3 absPerElem( const Matrix3 & mat );
// Transpose of a 3x3 matrix
//
inline const Matrix3 transpose( const Matrix3 & mat );
// Compute the inverse of a 3x3 matrix
// NOTE:
// Result is unpredictable when the determinant of mat is equal to or near 0.
//
inline const Matrix3 inverse( const Matrix3 & mat );
// Determinant of a 3x3 matrix
//
inline const floatInVec determinant( const Matrix3 & mat );
// Conditionally select between two 3x3 matrices
// NOTE:
// This function uses a conditional select instruction to avoid a branch.
// However, the transfer of select1 to a VMX register may use more processing time than a branch.
// Use the boolInVec version for better performance.
//
inline const Matrix3 select( const Matrix3 & mat0, const Matrix3 & mat1, bool select1 );
// Conditionally select between two 3x3 matrices (scalar data contained in vector data type)
// NOTE:
// This function uses a conditional select instruction to avoid a branch.
//
inline const Matrix3 select( const Matrix3 & mat0, const Matrix3 & mat1, boolInVec select1 );
#ifdef _VECTORMATH_DEBUG
// Print a 3x3 matrix
// NOTE:
// Function is only defined when _VECTORMATH_DEBUG is defined.
//
inline void print( const Matrix3 & mat );
// Print a 3x3 matrix and an associated string identifier
// NOTE:
// Function is only defined when _VECTORMATH_DEBUG is defined.
//
inline void print( const Matrix3 & mat, const char * name );
#endif
// A 4x4 matrix in array-of-structures format
//
class Matrix4
{
Vector4 mCol0;
Vector4 mCol1;
Vector4 mCol2;
Vector4 mCol3;
public:
// Default constructor; does no initialization
//
inline Matrix4( ) { };
// Copy a 4x4 matrix
//
inline Matrix4( const Matrix4 & mat );
// Construct a 4x4 matrix containing the specified columns
//
inline Matrix4( Vector4 col0, Vector4 col1, Vector4 col2, Vector4 col3 );
// Construct a 4x4 matrix from a 3x4 transformation matrix
//
explicit inline Matrix4( const Transform3 & mat );
// Construct a 4x4 matrix from a 3x3 matrix and a 3-D vector
//
inline Matrix4( const Matrix3 & mat, Vector3 translateVec );
// Construct a 4x4 matrix from a unit-length quaternion and a 3-D vector
//
inline Matrix4( Quat unitQuat, Vector3 translateVec );
// Set all elements of a 4x4 matrix to the same scalar value
//
explicit inline Matrix4( float scalar );
// Set all elements of a 4x4 matrix to the same scalar value (scalar data contained in vector data type)
//
explicit inline Matrix4( floatInVec scalar );
// Assign one 4x4 matrix to another
//
inline Matrix4 & operator =( const Matrix4 & mat );
// Set the upper-left 3x3 submatrix
// NOTE:
// This function does not change the bottom row elements.
//
inline Matrix4 & setUpper3x3( const Matrix3 & mat3 );
// Get the upper-left 3x3 submatrix of a 4x4 matrix
//
inline const Matrix3 getUpper3x3( ) const;
// Set translation component
// NOTE:
// This function does not change the bottom row elements.
//
inline Matrix4 & setTranslation( Vector3 translateVec );
// Get the translation component of a 4x4 matrix
//
inline const Vector3 getTranslation( ) const;
// Set column 0 of a 4x4 matrix
//
inline Matrix4 & setCol0( Vector4 col0 );
// Set column 1 of a 4x4 matrix
//
inline Matrix4 & setCol1( Vector4 col1 );
// Set column 2 of a 4x4 matrix
//
inline Matrix4 & setCol2( Vector4 col2 );
// Set column 3 of a 4x4 matrix
//
inline Matrix4 & setCol3( Vector4 col3 );
// Get column 0 of a 4x4 matrix
//
inline const Vector4 getCol0( ) const;
// Get column 1 of a 4x4 matrix
//
inline const Vector4 getCol1( ) const;
// Get column 2 of a 4x4 matrix
//
inline const Vector4 getCol2( ) const;
// Get column 3 of a 4x4 matrix
//
inline const Vector4 getCol3( ) const;
// Set the column of a 4x4 matrix referred to by the specified index
//
inline Matrix4 & setCol( int col, Vector4 vec );
// Set the row of a 4x4 matrix referred to by the specified index
//
inline Matrix4 & setRow( int row, Vector4 vec );
// Get the column of a 4x4 matrix referred to by the specified index
//
inline const Vector4 getCol( int col ) const;
// Get the row of a 4x4 matrix referred to by the specified index
//
inline const Vector4 getRow( int row ) const;
// Subscripting operator to set or get a column
//
inline Vector4 & operator []( int col );
// Subscripting operator to get a column
//
inline const Vector4 operator []( int col ) const;
// Set the element of a 4x4 matrix referred to by column and row indices
//
inline Matrix4 & setElem( int col, int row, float val );
// Set the element of a 4x4 matrix referred to by column and row indices (scalar data contained in vector data type)
//
inline Matrix4 & setElem( int col, int row, floatInVec val );
// Get the element of a 4x4 matrix referred to by column and row indices
//
inline const floatInVec getElem( int col, int row ) const;
// Add two 4x4 matrices
//
inline const Matrix4 operator +( const Matrix4 & mat ) const;
// Subtract a 4x4 matrix from another 4x4 matrix
//
inline const Matrix4 operator -( const Matrix4 & mat ) const;
// Negate all elements of a 4x4 matrix
//
inline const Matrix4 operator -( ) const;
// Multiply a 4x4 matrix by a scalar
//
inline const Matrix4 operator *( float scalar ) const;
// Multiply a 4x4 matrix by a scalar (scalar data contained in vector data type)
//
inline const Matrix4 operator *( floatInVec scalar ) const;
// Multiply a 4x4 matrix by a 4-D vector
//
inline const Vector4 operator *( Vector4 vec ) const;
// Multiply a 4x4 matrix by a 3-D vector
//
inline const Vector4 operator *( Vector3 vec ) const;
// Multiply a 4x4 matrix by a 3-D point
//
inline const Vector4 operator *( Point3 pnt ) const;
// Multiply two 4x4 matrices
//
inline const Matrix4 operator *( const Matrix4 & mat ) const;
// Multiply a 4x4 matrix by a 3x4 transformation matrix
//
inline const Matrix4 operator *( const Transform3 & tfrm ) const;
// Perform compound assignment and addition with a 4x4 matrix
//
inline Matrix4 & operator +=( const Matrix4 & mat );
// Perform compound assignment and subtraction by a 4x4 matrix
//
inline Matrix4 & operator -=( const Matrix4 & mat );
// Perform compound assignment and multiplication by a scalar
//
inline Matrix4 & operator *=( float scalar );
// Perform compound assignment and multiplication by a scalar (scalar data contained in vector data type)
//
inline Matrix4 & operator *=( floatInVec scalar );
// Perform compound assignment and multiplication by a 4x4 matrix
//
inline Matrix4 & operator *=( const Matrix4 & mat );
// Perform compound assignment and multiplication by a 3x4 transformation matrix
//
inline Matrix4 & operator *=( const Transform3 & tfrm );
inline bool operator == (const Matrix4& mat) const;
inline bool operator != (const Matrix4& mat) const;
// Construct an identity 4x4 matrix
//
static inline const Matrix4 identity( );
// Construct a 4x4 matrix to rotate around the x axis
//
static inline const Matrix4 rotationX( float radians );
// Construct a 4x4 matrix to rotate around the y axis
//
static inline const Matrix4 rotationY( float radians );
// Construct a 4x4 matrix to rotate around the z axis
//
static inline const Matrix4 rotationZ( float radians );
// Construct a 4x4 matrix to rotate around the x axis (scalar data contained in vector data type)
//
static inline const Matrix4 rotationX( floatInVec radians );
// Construct a 4x4 matrix to rotate around the y axis (scalar data contained in vector data type)
//
static inline const Matrix4 rotationY( floatInVec radians );
// Construct a 4x4 matrix to rotate around the z axis (scalar data contained in vector data type)
//
static inline const Matrix4 rotationZ( floatInVec radians );
// Construct a 4x4 matrix to rotate around the x, y, and z axes
//
static inline const Matrix4 rotationZYX( Vector3 radiansXYZ );
// Construct a 4x4 matrix to rotate around a unit-length 3-D vector
//
static inline const Matrix4 rotation( float radians, Vector3 unitVec );
// Construct a 4x4 matrix to rotate around a unit-length 3-D vector (scalar data contained in vector data type)
//
static inline const Matrix4 rotation( floatInVec radians, Vector3 unitVec );
// Construct a rotation matrix from a unit-length quaternion
//
static inline const Matrix4 rotation( Quat unitQuat );
// Construct a 4x4 matrix to perform scaling
//
static inline const Matrix4 scale( Vector3 scaleVec );
// Construct a 4x4 matrix to perform translation
//
static inline const Matrix4 translation( Vector3 translateVec );
// Construct viewing matrix based on eye position, position looked at, and up direction
//
static inline const Matrix4 lookAt( Point3 eyePos, Point3 lookAtPos, Vector3 upVec );
// Construct a perspective projection matrix
//
static inline const Matrix4 perspective( float fovyRadians, float aspect, float zNear, float zFar );
// Construct a perspective projection matrix based on frustum
//
static inline const Matrix4 frustum( float left, float right, float bottom, float top, float zNear, float zFar );
// Construct an orthographic projection matrix
//
static inline const Matrix4 orthographic( float left, float right, float bottom, float top, float zNear, float zFar );
};
// Multiply a 4x4 matrix by a scalar
//
inline const Matrix4 operator *( float scalar, const Matrix4 & mat );
// Multiply a 4x4 matrix by a scalar (scalar data contained in vector data type)
//
inline const Matrix4 operator *( floatInVec scalar, const Matrix4 & mat );
// Append (post-multiply) a scale transformation to a 4x4 matrix
// NOTE:
// Faster than creating and multiplying a scale transformation matrix.
//
inline const Matrix4 appendScale( const Matrix4 & mat, Vector3 scaleVec );
// Prepend (pre-multiply) a scale transformation to a 4x4 matrix
// NOTE:
// Faster than creating and multiplying a scale transformation matrix.
//
inline const Matrix4 prependScale( Vector3 scaleVec, const Matrix4 & mat );
// Multiply two 4x4 matrices per element
//
inline const Matrix4 mulPerElem( const Matrix4 & mat0, const Matrix4 & mat1 );
// Compute the absolute value of a 4x4 matrix per element
//
inline const Matrix4 absPerElem( const Matrix4 & mat );
// Transpose of a 4x4 matrix
//
inline const Matrix4 transpose( const Matrix4 & mat );
// Compute the inverse of a 4x4 matrix
// NOTE:
// Result is unpredictable when the determinant of mat is equal to or near 0.
//
inline const Matrix4 inverse( const Matrix4 & mat );
// Compute the inverse of a 4x4 matrix, which is expected to be an affine matrix
// NOTE:
// This can be used to achieve better performance than a general inverse when the specified 4x4 matrix meets the given restrictions. The result is unpredictable when the determinant of mat is equal to or near 0.
//
inline const Matrix4 affineInverse( const Matrix4 & mat );
// Compute the inverse of a 4x4 matrix, which is expected to be an affine matrix with an orthogonal upper-left 3x3 submatrix
// NOTE:
// This can be used to achieve better performance than a general inverse when the specified 4x4 matrix meets the given restrictions.
//
inline const Matrix4 orthoInverse( const Matrix4 & mat );
// Determinant of a 4x4 matrix
//
inline const floatInVec determinant( const Matrix4 & mat );
// Conditionally select between two 4x4 matrices
// NOTE:
// This function uses a conditional select instruction to avoid a branch.
// However, the transfer of select1 to a VMX register may use more processing time than a branch.
// Use the boolInVec version for better performance.
//
inline const Matrix4 select( const Matrix4 & mat0, const Matrix4 & mat1, bool select1 );
// Conditionally select between two 4x4 matrices (scalar data contained in vector data type)
// NOTE:
// This function uses a conditional select instruction to avoid a branch.
//
inline const Matrix4 select( const Matrix4 & mat0, const Matrix4 & mat1, boolInVec select1 );
#ifdef _VECTORMATH_DEBUG
// Print a 4x4 matrix
// NOTE:
// Function is only defined when _VECTORMATH_DEBUG is defined.
//
inline void print( const Matrix4 & mat );
// Print a 4x4 matrix and an associated string identifier
// NOTE:
// Function is only defined when _VECTORMATH_DEBUG is defined.
//
inline void print( const Matrix4 & mat, const char * name );
#endif
// A 3x4 transformation matrix in array-of-structures format
//
class Transform3
{
Vector3 mCol0;
Vector3 mCol1;
Vector3 mCol2;
Vector3 mCol3;
public:
// Default constructor; does no initialization
//
inline Transform3( ) { };
// Copy a 3x4 transformation matrix
//
inline Transform3( const Transform3 & tfrm );
// Construct a 3x4 transformation matrix containing the specified columns
//
inline Transform3( Vector3 col0, Vector3 col1, Vector3 col2, Vector3 col3 );
// Construct a 3x4 transformation matrix from a 3x3 matrix and a 3-D vector
//
inline Transform3( const Matrix3 & tfrm, Vector3 translateVec );
// Construct a 3x4 transformation matrix from a unit-length quaternion and a 3-D vector
//
inline Transform3( Quat unitQuat, Vector3 translateVec );
// Set all elements of a 3x4 transformation matrix to the same scalar value
//
explicit inline Transform3( float scalar );
// Set all elements of a 3x4 transformation matrix to the same scalar value (scalar data contained in vector data type)
//
explicit inline Transform3( floatInVec scalar );
// Assign one 3x4 transformation matrix to another
//
inline Transform3 & operator =( const Transform3 & tfrm );
// Set the upper-left 3x3 submatrix
//
inline Transform3 & setUpper3x3( const Matrix3 & mat3 );
// Get the upper-left 3x3 submatrix of a 3x4 transformation matrix
//
inline const Matrix3 getUpper3x3( ) const;
// Set translation component
//
inline Transform3 & setTranslation( Vector3 translateVec );
// Get the translation component of a 3x4 transformation matrix
//
inline const Vector3 getTranslation( ) const;
// Set column 0 of a 3x4 transformation matrix
//
inline Transform3 & setCol0( Vector3 col0 );
// Set column 1 of a 3x4 transformation matrix
//
inline Transform3 & setCol1( Vector3 col1 );
// Set column 2 of a 3x4 transformation matrix
//
inline Transform3 & setCol2( Vector3 col2 );
// Set column 3 of a 3x4 transformation matrix
//
inline Transform3 & setCol3( Vector3 col3 );
// Get column 0 of a 3x4 transformation matrix
//
inline const Vector3 getCol0( ) const;
// Get column 1 of a 3x4 transformation matrix
//
inline const Vector3 getCol1( ) const;
// Get column 2 of a 3x4 transformation matrix
//
inline const Vector3 getCol2( ) const;
// Get column 3 of a 3x4 transformation matrix
//
inline const Vector3 getCol3( ) const;
// Set the column of a 3x4 transformation matrix referred to by the specified index
//
inline Transform3 & setCol( int col, Vector3 vec );
// Set the row of a 3x4 transformation matrix referred to by the specified index
//
inline Transform3 & setRow( int row, Vector4 vec );
// Get the column of a 3x4 transformation matrix referred to by the specified index
//
inline const Vector3 getCol( int col ) const;
// Get the row of a 3x4 transformation matrix referred to by the specified index
//
inline const Vector4 getRow( int row ) const;
// Subscripting operator to set or get a column
//
inline Vector3 & operator []( int col );
// Subscripting operator to get a column
//
inline const Vector3 operator []( int col ) const;
// Set the element of a 3x4 transformation matrix referred to by column and row indices
//
inline Transform3 & setElem( int col, int row, float val );
// Set the element of a 3x4 transformation matrix referred to by column and row indices (scalar data contained in vector data type)
//
inline Transform3 & setElem( int col, int row, floatInVec val );
// Get the element of a 3x4 transformation matrix referred to by column and row indices
//
inline const floatInVec getElem( int col, int row ) const;
// Multiply a 3x4 transformation matrix by a 3-D vector
//
inline const Vector3 operator *( Vector3 vec ) const;
// Multiply a 3x4 transformation matrix by a 3-D point
//
inline const Point3 operator *( Point3 pnt ) const;
// Multiply two 3x4 transformation matrices
//
inline const Transform3 operator *( const Transform3 & tfrm ) const;
// Perform compound assignment and multiplication by a 3x4 transformation matrix
//
inline Transform3 & operator *=( const Transform3 & tfrm );
// Construct an identity 3x4 transformation matrix
//
static inline const Transform3 identity( );
// Construct a 3x4 transformation matrix to rotate around the x axis
//
static inline const Transform3 rotationX( float radians );
// Construct a 3x4 transformation matrix to rotate around the y axis
//
static inline const Transform3 rotationY( float radians );
// Construct a 3x4 transformation matrix to rotate around the z axis
//
static inline const Transform3 rotationZ( float radians );
// Construct a 3x4 transformation matrix to rotate around the x axis (scalar data contained in vector data type)
//
static inline const Transform3 rotationX( floatInVec radians );
// Construct a 3x4 transformation matrix to rotate around the y axis (scalar data contained in vector data type)
//
static inline const Transform3 rotationY( floatInVec radians );
// Construct a 3x4 transformation matrix to rotate around the z axis (scalar data contained in vector data type)
//
static inline const Transform3 rotationZ( floatInVec radians );
// Construct a 3x4 transformation matrix to rotate around the x, y, and z axes
//
static inline const Transform3 rotationZYX( Vector3 radiansXYZ );
// Construct a 3x4 transformation matrix to rotate around a unit-length 3-D vector
//
static inline const Transform3 rotation( float radians, Vector3 unitVec );
// Construct a 3x4 transformation matrix to rotate around a unit-length 3-D vector (scalar data contained in vector data type)
//
static inline const Transform3 rotation( floatInVec radians, Vector3 unitVec );
// Construct a rotation matrix from a unit-length quaternion
//
static inline const Transform3 rotation( Quat unitQuat );
// Construct a 3x4 transformation matrix to perform scaling
//
static inline const Transform3 scale( Vector3 scaleVec );
// Construct a 3x4 transformation matrix to perform translation
//
static inline const Transform3 translation( Vector3 translateVec );
};
// Append (post-multiply) a scale transformation to a 3x4 transformation matrix
// NOTE:
// Faster than creating and multiplying a scale transformation matrix.
//
inline const Transform3 appendScale( const Transform3 & tfrm, Vector3 scaleVec );
// Prepend (pre-multiply) a scale transformation to a 3x4 transformation matrix
// NOTE:
// Faster than creating and multiplying a scale transformation matrix.
//
inline const Transform3 prependScale( Vector3 scaleVec, const Transform3 & tfrm );
// Multiply two 3x4 transformation matrices per element
//
inline const Transform3 mulPerElem( const Transform3 & tfrm0, const Transform3 & tfrm1 );
// Compute the absolute value of a 3x4 transformation matrix per element
//
inline const Transform3 absPerElem( const Transform3 & tfrm );
// Inverse of a 3x4 transformation matrix
// NOTE:
// Result is unpredictable when the determinant of the left 3x3 submatrix is equal to or near 0.
//
inline const Transform3 inverse( const Transform3 & tfrm );
// Compute the inverse of a 3x4 transformation matrix, expected to have an orthogonal upper-left 3x3 submatrix
// NOTE:
// This can be used to achieve better performance than a general inverse when the specified 3x4 transformation matrix meets the given restrictions.
//
inline const Transform3 orthoInverse( const Transform3 & tfrm );
// Conditionally select between two 3x4 transformation matrices
// NOTE:
// This function uses a conditional select instruction to avoid a branch.
// However, the transfer of select1 to a VMX register may use more processing time than a branch.
// Use the boolInVec version for better performance.
//
inline const Transform3 select( const Transform3 & tfrm0, const Transform3 & tfrm1, bool select1 );
// Conditionally select between two 3x4 transformation matrices (scalar data contained in vector data type)
// NOTE:
// This function uses a conditional select instruction to avoid a branch.
//
inline const Transform3 select( const Transform3 & tfrm0, const Transform3 & tfrm1, boolInVec select1 );
#ifdef _VECTORMATH_DEBUG
// Print a 3x4 transformation matrix
// NOTE:
// Function is only defined when _VECTORMATH_DEBUG is defined.
//
inline void print( const Transform3 & tfrm );
// Print a 3x4 transformation matrix and an associated string identifier
// NOTE:
// Function is only defined when _VECTORMATH_DEBUG is defined.
//
inline void print( const Transform3 & tfrm, const char * name );
#endif
} // namespace Aos
} // namespace Vectormath
#include "vec_aos.h"
#include "quat_aos.h"
#include "mat_aos.h"
#endif
| [
"shagkur@gmx.net"
] | shagkur@gmx.net |
8dfb0e2cc9cab9aa23fd46f3377dcdd841635a27 | ece30e7058d8bd42bc13c54560228bd7add50358 | /DataCollector/mozilla/xulrunner-sdk/include/mozilla/a11y/Role.h | dab6c53079f1fb2152ed8104c6342fed5f1c9546 | [
"Apache-2.0"
] | permissive | andrasigneczi/TravelOptimizer | b0fe4d53f6494d40ba4e8b98cc293cb5451542ee | b08805f97f0823fd28975a36db67193386aceb22 | refs/heads/master | 2022-07-22T02:07:32.619451 | 2018-12-03T13:58:21 | 2018-12-03T13:58:21 | 53,926,539 | 1 | 0 | Apache-2.0 | 2022-07-06T20:05:38 | 2016-03-15T08:16:59 | C++ | UTF-8 | C++ | false | false | 23,227 | h | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=2 et sw=2 tw=80: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef _role_h_
#define _role_h_
/**
* @note Make sure to update the localized role names when changing the list.
* @note When adding a new role, be sure to also add it to base/RoleMap.h and
* update nsIAccessibleRole.
*/
namespace mozilla {
namespace a11y {
namespace roles {
enum Role {
/**
* Used when accessible hans't strong defined role.
*/
NOTHING = 0,
/**
* Represents a title or caption bar for a window. It is used by MSAA only,
* supported automatically by MS Windows.
*/
TITLEBAR = 1,
/**
* Represents the menu bar (positioned beneath the title bar of a window)
* from which menus are selected by the user. The role is used by
* xul:menubar or role="menubar".
*/
MENUBAR = 2,
/**
* Represents a vertical or horizontal scroll bar, which is part of the client
* area or used in a control.
*/
SCROLLBAR = 3,
/**
* Represents a special mouse pointer, which allows a user to manipulate user
* interface elements such as windows. For example, a user clicks and drags
* a sizing grip in the lower-right corner of a window to resize it.
*/
GRIP = 4,
/**
* Represents a system sound, which is associated with various system events.
*/
SOUND = 5,
/**
* Represents the system mouse pointer.
*/
CURSOR = 6,
/**
* Represents the system caret. The role is supported for caret.
*/
CARET = 7,
/**
* Represents an alert or a condition that a user should be notified about.
* Assistive Technologies typically respond to the role by reading the entire
* onscreen contents of containers advertising this role. Should be used for
* warning dialogs, etc. The role is used by xul:browsermessage,
* role="alert".
*/
ALERT = 8,
/**
* Represents the window frame, which contains child objects such as
* a title bar, client, and other objects contained in a window. The role
* is supported automatically by MS Windows.
*/
WINDOW = 9,
/**
* A sub-document (<frame> or <iframe>)
*/
INTERNAL_FRAME = 10,
/**
* Represents a menu, which presents a list of options from which the user can
* make a selection to perform an action. It is used for role="menu".
*/
MENUPOPUP = 11,
/**
* Represents a menu item, which is an entry in a menu that a user can choose
* to carry out a command, select an option. It is used for xul:menuitem,
* role="menuitem".
*/
MENUITEM = 12,
/**
* Represents a ToolTip that provides helpful hints.
*/
TOOLTIP = 13,
/**
* Represents a main window for an application. It is used for
* role="application". Also refer to APP_ROOT
*/
APPLICATION = 14,
/**
* Represents a document window. A document window is always contained within
* an application window. It is used for role="document".
*/
DOCUMENT = 15,
/**
* Represents a pane within a frame or document window. Users can navigate
* between panes and within the contents of the current pane, but cannot
* navigate between items in different panes. Thus, panes represent a level
* of grouping lower than frame windows or documents, but above individual
* controls. It is used for the first child of a <frame> or <iframe>.
*/
PANE = 16,
/**
* Represents a graphical image used to represent data.
*/
CHART = 17,
/**
* Represents a dialog box or message box. It is used for xul:dialog,
* role="dialog".
*/
DIALOG = 18,
/**
* Represents a window border.
*/
BORDER = 19,
/**
* Logically groups other objects. There is not always a parent-child
* relationship between the grouping object and the objects it contains. It
* is used for html:textfield, xul:groupbox, role="group".
*/
GROUPING = 20,
/**
* Used to visually divide a space into two regions, such as a separator menu
* item or a bar that divides split panes within a window. It is used for
* xul:separator, html:hr, role="separator".
*/
SEPARATOR = 21,
/**
* Represents a toolbar, which is a grouping of controls (push buttons or
* toggle buttons) that provides easy access to frequently used features. It
* is used for xul:toolbar, role="toolbar".
*/
TOOLBAR = 22,
/**
* Represents a status bar, which is an area at the bottom of a window that
* displays information about the current operation, state of the application,
* or selected object. The status bar has multiple fields, which display
* different kinds of information. It is used for xul:statusbar.
*/
STATUSBAR = 23,
/**
* Represents a table that contains rows and columns of cells, and optionally,
* row headers and column headers. It is used for html:table,
* role="grid". Also refer to the following role: COLUMNHEADER,
* ROWHEADER, COLUMN, ROW, CELL.
*/
TABLE = 24,
/**
* Represents a column header, providing a visual label for a column in
* a table. It is used for XUL tree column headers, html:th,
* role="colheader". Also refer to TABLE.
*/
COLUMNHEADER = 25,
/**
* Represents a row header, which provides a visual label for a table row.
* It is used for role="rowheader". Also, see TABLE.
*/
ROWHEADER = 26,
/**
* Represents a column of cells within a table. Also, see TABLE.
*/
COLUMN = 27,
/**
* Represents a row of cells within a table. Also, see TABLE.
*/
ROW = 28,
/**
* Represents a cell within a table. It is used for html:td,
* xul:tree cell and xul:listcell. Also, see TABLE.
*/
CELL = 29,
/**
* Represents a link to something else. This object might look like text or
* a graphic, but it acts like a button. It is used for
* xul:label@class="text-link", html:a, html:area.
*/
LINK = 30,
/**
* Displays a Help topic in the form of a ToolTip or Help balloon.
*/
HELPBALLOON = 31,
/**
* Represents a cartoon-like graphic object, such as Microsoft Office
* Assistant, which is displayed to provide help to users of an application.
*/
CHARACTER = 32,
/**
* Represents a list box, allowing the user to select one or more items. It
* is used for xul:listbox, html:select@size, role="list". See also
* LIST_ITEM.
*/
LIST = 33,
/**
* Represents an item in a list. See also LIST.
*/
LISTITEM = 34,
/**
* Represents an outline or tree structure, such as a tree view control,
* that displays a hierarchical list and allows the user to expand and
* collapse branches. Is is used for role="tree".
*/
OUTLINE = 35,
/**
* Represents an item in an outline or tree structure. It is used for
* role="treeitem".
*/
OUTLINEITEM = 36,
/**
* Represents a page tab, it is a child of a page tab list. It is used for
* xul:tab, role="treeitem". Also refer to PAGETABLIST.
*/
PAGETAB = 37,
/**
* Represents a property sheet. It is used for xul:tabpanel,
* role="tabpanel".
*/
PROPERTYPAGE = 38,
/**
* Represents an indicator, such as a pointer graphic, that points to the
* current item.
*/
INDICATOR = 39,
/**
* Represents a picture. Is is used for xul:image, html:img.
*/
GRAPHIC = 40,
/**
* Represents read-only text, such as labels for other controls or
* instructions in a dialog box. Static text cannot be modified or selected.
* Is is used for xul:label, xul:description, html:label, role="label".
*/
STATICTEXT = 41,
/**
* Represents selectable text that allows edits or is designated read-only.
*/
TEXT_LEAF = 42,
/**
* Represents a push button control. It is used for xul:button, html:button,
* role="button".
*/
PUSHBUTTON = 43,
/**
* Represents a check box control. It is used for xul:checkbox,
* html:input@type="checkbox", role="checkbox".
*/
CHECKBUTTON = 44,
/**
* Represents an option button, also called a radio button. It is one of a
* group of mutually exclusive options. All objects sharing a single parent
* that have this attribute are assumed to be part of single mutually
* exclusive group. It is used for xul:radio, html:input@type="radio",
* role="radio".
*/
RADIOBUTTON = 45,
/**
* Represents a combo box; an edit control with an associated list box that
* provides a set of predefined choices. It is used for html:select,
* xul:menulist, role="combobox".
*/
COMBOBOX = 46,
/**
* Represents the calendar control.
*/
DROPLIST = 47,
/**
* Represents a progress bar, dynamically showing the user the percent
* complete of an operation in progress. It is used for xul:progressmeter,
* role="progressbar".
*/
PROGRESSBAR = 48,
/**
* Represents a dial or knob whose purpose is to allow a user to set a value.
*/
DIAL = 49,
/**
* Represents a hot-key field that allows the user to enter a combination or
* sequence of keystrokes.
*/
HOTKEYFIELD = 50,
/**
* Represents a slider, which allows the user to adjust a setting in given
* increments between minimum and maximum values. It is used by xul:scale,
* role="slider".
*/
SLIDER = 51,
/**
* Represents a spin box, which is a control that allows the user to increment
* or decrement the value displayed in a separate "buddy" control associated
* with the spin box. It is used for xul:spinbuttons.
*/
SPINBUTTON = 52,
/**
* Represents a graphical image used to diagram data. It is used for svg:svg.
*/
DIAGRAM = 53,
/**
* Represents an animation control, which contains content that changes over
* time, such as a control that displays a series of bitmap frames.
*/
ANIMATION = 54,
/**
* Represents a mathematical equation. It is used by MATHML, where there is a
* rich DOM subtree for an equation. Use FLAT_EQUATION for <img role="math" alt="[TeX]"/>
*/
EQUATION = 55,
/**
* Represents a button that drops down a list of items.
*/
BUTTONDROPDOWN = 56,
/**
* Represents a button that drops down a menu.
*/
BUTTONMENU = 57,
/**
* Represents a button that drops down a grid. It is used for xul:colorpicker.
*/
BUTTONDROPDOWNGRID = 58,
/**
* Represents blank space between other objects.
*/
WHITESPACE = 59,
/**
* Represents a container of page tab controls. Is it used for xul:tabs,
* DHTML: role="tabs". Also refer to PAGETAB.
*/
PAGETABLIST = 60,
/**
* Represents a control that displays time.
*/
CLOCK = 61,
/**
* Represents a button on a toolbar that has a drop-down list icon directly
* adjacent to the button.
*/
SPLITBUTTON = 62,
/**
* Represents an edit control designed for an Internet Protocol (IP) address.
* The edit control is divided into sections for the different parts of the
* IP address.
*/
IPADDRESS = 63,
/**
* Represents a label control that has an accelerator.
*/
ACCEL_LABEL = 64,
/**
* Represents an arrow in one of the four cardinal directions.
*/
ARROW = 65,
/**
* Represents a control that can be drawn into and is used to trap events.
* It is used for html:canvas.
*/
CANVAS = 66,
/**
* Represents a menu item with a check box.
*/
CHECK_MENU_ITEM = 67,
/**
* Represents a specialized dialog that lets the user choose a color.
*/
COLOR_CHOOSER = 68,
/**
* Represents control whose purpose is to allow a user to edit a date.
*/
DATE_EDITOR = 69,
/**
* An iconified internal frame in an DESKTOP_PANE. Also refer to
* INTERNAL_FRAME.
*/
DESKTOP_ICON = 70,
/**
* A desktop pane. A pane that supports internal frames and iconified
* versions of those internal frames.
*/
DESKTOP_FRAME = 71,
/**
* A directory pane. A pane that allows the user to navigate through
* and select the contents of a directory. May be used by a file chooser.
* Also refer to FILE_CHOOSER.
*/
DIRECTORY_PANE = 72,
/**
* A file chooser. A specialized dialog that displays the files in the
* directory and lets the user select a file, browse a different directory,
* or specify a filename. May use the directory pane to show the contents of
* a directory. Also refer to DIRECTORY_PANE.
*/
FILE_CHOOSER = 73,
/**
* A font chooser. A font chooser is a component that lets the user pick
* various attributes for fonts.
*/
FONT_CHOOSER = 74,
/**
* Frame role. A top level window with a title bar, border, menu bar, etc.
* It is often used as the primary window for an application.
*/
CHROME_WINDOW = 75,
/**
* A glass pane. A pane that is guaranteed to be painted on top of all
* panes beneath it. Also refer to ROOT_PANE.
*/
GLASS_PANE = 76,
/**
* A document container for HTML, whose children represent the document
* content.
*/
HTML_CONTAINER = 77,
/**
* A small fixed size picture, typically used to decorate components.
*/
ICON = 78,
/**
* Presents an icon or short string in an interface.
*/
LABEL = 79,
/**
* A layered pane. A specialized pane that allows its children to be drawn
* in layers, providing a form of stacking order. This is usually the pane
* that holds the menu bar as well as the pane that contains most of the
* visual components in a window. Also refer to GLASS_PANE and
* ROOT_PANE.
*/
LAYERED_PANE = 80,
/**
* A specialized pane whose primary use is inside a dialog.
*/
OPTION_PANE = 81,
/**
* A text object uses for passwords, or other places where the text content
* is not shown visibly to the user.
*/
PASSWORD_TEXT = 82,
/**
* A temporary window that is usually used to offer the user a list of
* choices, and then hides when the user selects one of those choices.
*/
POPUP_MENU = 83,
/**
* A radio button that is a menu item.
*/
RADIO_MENU_ITEM = 84,
/**
* A root pane. A specialized pane that has a glass pane and a layered pane
* as its children. Also refer to GLASS_PANE and LAYERED_PANE.
*/
ROOT_PANE = 85,
/**
* A scroll pane. An object that allows a user to incrementally view a large
* amount of information. Its children can include scroll bars and a
* viewport. Also refer to VIEW_PORT.
*/
SCROLL_PANE = 86,
/**
* A split pane. A specialized panel that presents two other panels at the
* same time. Between the two panels is a divider the user can manipulate to
* make one panel larger and the other panel smaller.
*/
SPLIT_PANE = 87,
/**
* The header for a column of a table.
* XXX: it looks this role is dupe of COLUMNHEADER.
*/
TABLE_COLUMN_HEADER = 88,
/**
* The header for a row of a table.
* XXX: it looks this role is dupe of ROWHEADER
*/
TABLE_ROW_HEADER = 89,
/**
* A menu item used to tear off and reattach its menu.
*/
TEAR_OFF_MENU_ITEM = 90,
/**
* Represents an accessible terminal.
*/
TERMINAL = 91,
/**
* Collection of objects that constitute a logical text entity.
*/
TEXT_CONTAINER = 92,
/**
* A toggle button. A specialized push button that can be checked or
* unchecked, but does not provide a separate indicator for the current state.
*/
TOGGLE_BUTTON = 93,
/**
* Represent a control that is capable of expanding and collapsing rows as
* well as showing multiple columns of data.
*/
TREE_TABLE = 94,
/**
* A viewport. An object usually used in a scroll pane. It represents the
* portion of the entire data that the user can see. As the user manipulates
* the scroll bars, the contents of the viewport can change. Also refer to
* SCROLL_PANE.
*/
VIEWPORT = 95,
/**
* Header of a document page. Also refer to FOOTER.
*/
HEADER = 96,
/**
* Footer of a document page. Also refer to HEADER.
*/
FOOTER = 97,
/**
* A paragraph of text.
*/
PARAGRAPH = 98,
/**
* A ruler such as those used in word processors.
*/
RULER = 99,
/**
* A text entry having dialog or list containing items for insertion into
* an entry widget, for instance a list of words for completion of a
* text entry. It is used for xul:textbox@autocomplete
*/
AUTOCOMPLETE = 100,
/**
* An editable text object in a toolbar.
*/
EDITBAR = 101,
/**
* An control whose textual content may be entered or modified by the user.
*/
ENTRY = 102,
/**
* A caption describing another object.
*/
CAPTION = 103,
/**
* A visual frame or container which contains a view of document content.
* Document frames may occur within another Document instance, in which case
* the second document may be said to be embedded in the containing instance.
* HTML frames are often DOCUMENT_FRAME. Either this object, or a
* singleton descendant, should implement the Document interface.
*/
DOCUMENT_FRAME = 104,
/**
* Heading.
*/
HEADING = 105,
/**
* An object representing a page of document content. It is used in documents
* which are accessed by the user on a page by page basis.
*/
PAGE = 106,
/**
* A container of document content. An example of the use of this role is to
* represent an html:div.
*/
SECTION = 107,
/**
* An object which is redundant with another object in the accessible
* hierarchy. ATs typically ignore objects with this role.
*/
REDUNDANT_OBJECT = 108,
/**
* A container of form controls. An example of the use of this role is to
* represent an html:form.
*/
FORM = 109,
/**
* An object which is used to allow input of characters not found on a
* keyboard, such as the input of Chinese characters on a Western keyboard.
*/
IME = 110,
/**
* XXX: document this.
*/
APP_ROOT = 111,
/**
* Represents a menu item, which is an entry in a menu that a user can choose
* to display another menu.
*/
PARENT_MENUITEM = 112,
/**
* A calendar that allows the user to select a date.
*/
CALENDAR = 113,
/**
* A list of items that is shown by combobox.
*/
COMBOBOX_LIST = 114,
/**
* A item of list that is shown by combobox.
*/
COMBOBOX_OPTION = 115,
/**
* An image map -- has child links representing the areas
*/
IMAGE_MAP = 116,
/**
* An option in a listbox
*/
OPTION = 117,
/**
* A rich option in a listbox, it can have other widgets as children
*/
RICH_OPTION = 118,
/**
* A list of options
*/
LISTBOX = 119,
/**
* Represents a mathematical equation in the accessible name
*/
FLAT_EQUATION = 120,
/**
* Represents a cell within a grid. It is used for role="gridcell". Unlike
* CELL, it allows the calculation of the accessible name from subtree.
* Also, see TABLE.
*/
GRID_CELL = 121,
/**
* Represents an embedded object. It is used for html:object or html:embed.
*/
EMBEDDED_OBJECT = 122,
/**
* A note. Originally intended to be hidden until activated, but now also used
* for things like html 'aside'.
*/
NOTE = 123,
/**
* A figure. Used for things like HTML5 figure element.
*/
FIGURE = 124,
/**
* Represents a rich item with a check box.
*/
CHECK_RICH_OPTION = 125,
/**
* Represent a definition list (dl in HTML).
*/
DEFINITION_LIST = 126,
/**
* Represent a term in a definition list (dt in HTML).
*/
TERM = 127,
/**
* Represent a definition in a definition list (dd in HTML)
*/
DEFINITION = 128,
/**
* Represent a keyboard or keypad key (ARIA role "key").
*/
KEY = 129,
/**
* Represent a switch control widget (ARIA role "switch").
*/
SWITCH = 130,
/**
* A block of MathML code (math).
*/
MATHML_MATH = 131,
/**
* A MathML identifier (mi in MathML).
*/
MATHML_IDENTIFIER = 132,
/**
* A MathML number (mn in MathML).
*/
MATHML_NUMBER = 133,
/**
* A MathML operator (mo in MathML).
*/
MATHML_OPERATOR = 134,
/**
* A MathML text (mtext in MathML).
*/
MATHML_TEXT = 135,
/**
* A MathML string literal (ms in MathML).
*/
MATHML_STRING_LITERAL = 136,
/**
* A MathML glyph (mglyph in MathML).
*/
MATHML_GLYPH = 137,
/**
* A MathML row (mrow in MathML).
*/
MATHML_ROW = 138,
/**
* A MathML fraction (mfrac in MathML).
*/
MATHML_FRACTION = 139,
/**
* A MathML square root (msqrt in MathML).
*/
MATHML_SQUARE_ROOT = 140,
/**
* A MathML root (mroot in MathML).
*/
MATHML_ROOT = 141,
/**
* A MathML fenced element (mfenced in MathML).
*/
MATHML_FENCED = 142,
/**
* A MathML enclosed element (menclose in MathML).
*/
MATHML_ENCLOSED = 143,
/**
* A MathML styling element (mstyle in MathML).
*/
MATHML_STYLE = 144,
/**
* A MathML subscript (msub in MathML).
*/
MATHML_SUB = 145,
/**
* A MathML superscript (msup in MathML).
*/
MATHML_SUP = 146,
/**
* A MathML subscript and superscript (msubsup in MathML).
*/
MATHML_SUB_SUP = 147,
/**
* A MathML underscript (munder in MathML).
*/
MATHML_UNDER = 148,
/**
* A MathML overscript (mover in MathML).
*/
MATHML_OVER = 149,
/**
* A MathML underscript and overscript (munderover in MathML).
*/
MATHML_UNDER_OVER = 150,
/**
* A MathML multiple subscript and superscript element (mmultiscripts in
* MathML).
*/
MATHML_MULTISCRIPTS = 151,
/**
* A MathML table (mtable in MathML).
*/
MATHML_TABLE = 152,
/**
* A MathML labelled table row (mlabeledtr in MathML).
*/
MATHML_LABELED_ROW = 153,
/**
* A MathML table row (mtr in MathML).
*/
MATHML_TABLE_ROW = 154,
/**
* A MathML table entry or cell (mtd in MathML).
*/
MATHML_CELL = 155,
/**
* A MathML interactive element (maction in MathML).
*/
MATHML_ACTION = 156,
/**
* A MathML error message (merror in MathML).
*/
MATHML_ERROR = 157,
/**
* A MathML stacked (rows of numbers) element (mstack in MathML).
*/
MATHML_STACK = 158,
/**
* A MathML long division element (mlongdiv in MathML).
*/
MATHML_LONG_DIVISION = 159,
/**
* A MathML stack group (msgroup in MathML).
*/
MATHML_STACK_GROUP = 160,
/**
* A MathML stack row (msrow in MathML).
*/
MATHML_STACK_ROW = 161,
/**
* MathML carries, borrows, or crossouts for a row (mscarries in MathML).
*/
MATHML_STACK_CARRIES = 162,
/**
* A MathML carry, borrow, or crossout for a column (mscarry in MathML).
*/
MATHML_STACK_CARRY = 163,
/**
* A MathML line in a stack (msline in MathML).
*/
MATHML_STACK_LINE = 164,
/**
* A group containing radio buttons
*/
RADIO_GROUP = 165,
/**
* A text container exposing brief amount of information. See related
* TEXT_CONTAINER role.
*/
TEXT = 166,
LAST_ROLE = TEXT
};
} // namespace role
typedef enum mozilla::a11y::roles::Role role;
} // namespace a11y
} // namespace mozilla
#endif
| [
"andras.igneczi@doclerholding.com"
] | andras.igneczi@doclerholding.com |
aebacd9b68f92fe6ce7565d5c3971da05db3c013 | 53dc18be732e90bd8163fe42ead0d6a3ce0a939c | /Arduino_IRLearning/irLearning/irLearning.ino | 6b6fb665ceaaf085e3bfa7e13809ae4f80d24101 | [] | no_license | zdiubaldo/IRLearning_ReSpeaker | 12b128f008c65caea21378bf9bdda1589437fe26 | 7e74886471983ec5e1722f38ffcfb4819412e55c | refs/heads/master | 2020-05-22T05:32:07.087494 | 2016-09-05T09:24:34 | 2016-09-05T09:24:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,865 | ino |
#include "SPI.h"
#include "respeaker.h"
#include <Adafruit_NeoPixel.h>
#include "irlearning.h"
#define PIXELS_PIN 11
#define PIXELS_NUM 12
#define PIXELS_SPACE 128
IRLearning myir;
uint8_t commandIndex;
Adafruit_NeoPixel pixels = Adafruit_NeoPixel(PIXELS_NUM, PIXELS_PIN, NEO_GRB + NEO_KHZ800);
int pixels_state = 0;
// 0 1 2 3 4 5 6 7 8
const char *pixels_patterns[] = {"sleep", "wakeup", "wait", "answer", "offline", "online","irlearning","stoplearning","control"};
void touch_event(uint8_t id, uint8_t event) {
// Serial << "id:" << id << " event:" << event << "\r\n";
}
void spi_event(uint8_t addr, uint8_t *data, uint8_t len)
{
for (uint8_t i = 0; i < sizeof(pixels_patterns) / sizeof(*pixels_patterns); i++) {
if (!strcmp(pixels_patterns[i], (char *)data)) {
pixels_state = i;
break;
}
}
}
void setup() {
pixels.begin();
for (int i = 0; i < PIXELS_NUM; i++) {
pixels.setPixelColor(i, 0, 0, 32);
}
pixels.show();
respeaker.begin();
respeaker.attach_touch_isr(touch_event);
respeaker.attach_spi_isr(spi_event);
delay(1000);
pixels.clear();
pixels.show();
myir.init();
commandIndex = 0;
// pixels_state = 3;
}
void loop() {
static uint32_t last_time = 0;
// Serial.print("1");
if (pixels_state == 0) {
pixels.clear();
pixels.show();
pixels_state = -1;
} else if (pixels_state == 1) {
for (int i = 0; i < PIXELS_NUM; i++) {
pixels.setPixelColor(i, 0, 0xFF, 0);
}
pixels.show();
pixels_state = -1;
} else if (pixels_state == 2) {
static uint32_t t = 0;
for (int i = 0; i < PIXELS_NUM; i++) {
pixels.setPixelColor(i, triangular_color((t + i * PIXELS_SPACE) % (PIXELS_SPACE * PIXELS_NUM)));
}
pixels.show();
t++;
if (t >= (PIXELS_SPACE * PIXELS_NUM)) {
t = 0;
}
} else if (pixels_state == 3) {
static uint32_t arc[PIXELS_NUM] = {0x10, 0x20, 0x30, 0x50, 0x80, 0xC0, 0xFF, 0xC0, 0x80, 0x50, 0x30, 0x20};
static uint8_t t = 0x80;
static int8_t deta = 1;
uint32_t current = millis();
if ((uint32_t)(current - last_time) > 5) {
last_time = current;
for (int i = 0; i < PIXELS_NUM; i++) {
int16_t c = arc[i] - t;
if (c < 0) {
c = 0;
}
pixels.setPixelColor(i, 0, c, 0);
}
pixels.show();
t += deta;
if (t <= 0x40 || t >= 0xF0) {
deta = -deta;
}
}
} else if (pixels_state == 4) {
for (int i = 0; i < PIXELS_NUM; i++) {
pixels.setPixelColor(i, 0xFF, 0, 0);
}
pixels.show();
pixels_state = -1;
} else if (pixels_state == 5) {
static uint8_t on = 0;
if (!on) {
for (int i = 0; i < PIXELS_NUM; i++) {
pixels.setPixelColor(i, 0, 0xFF, 0);
}
pixels.show();
on = 1;
last_time = millis();
} else {
uint32_t current = millis();
if ((uint32_t)(current - last_time) >= 1000) {
for (int i = 0; i < PIXELS_NUM; i++) {
pixels.setPixelColor(i, 0, 0, 0);
}
pixels.show();
on = 0;
pixels_state = -1;
}
}
} else if (pixels_state == 6) {
while(!myir.IRCommandRec()) {
if (pixels_state == 7){
break;
}
}
if(++commandIndex == 20) {
commandIndex == 0;
}
pixels_state = -1;
} else if (pixels_state == 7) {
pixels_state = -1;
} else if (pixels_state == 8) {
if(commandIndex == 0) {
myir.IRCommandSend(commandIndex);
} else {
myir.IRCommandSend(commandIndex-1);
}
}
}
uint32_t triangular_color(uint32_t t)
{
uint32_t c;
if (t < 256) {
c = pixels.Color(0, t, 0);
} else if (t < 512) {
c = pixels.Color(0, 511 - t, 0);
}
return c;
}
| [
"jiankai.li@seeed.cc"
] | jiankai.li@seeed.cc |
3da062f23d4b2475514ca8df5eb8c697301bcb3e | 890fa475719c2742bc191f7cbab6144630cfc48f | /space invader/src/Bullet.hpp | ef0abe5a210d6c30eb32a70092fc3f230b9f2ba5 | [] | no_license | Balagurovskiy/CPP_basic | e28d5e930a7f32a21ab880dbc8996c3d95a1e613 | 8b32899efd6d0d8043120aa3b6bbc6561692690d | refs/heads/master | 2021-04-11T15:19:58.839891 | 2020-03-21T19:12:52 | 2020-03-21T19:12:52 | 249,032,919 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,328 | hpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Bullet.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: abutok <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/06/30 13:56:17 by abutok #+# #+# */
/* Updated: 2019/06/30 15:59:51 by abutok ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FT_RETRO_BULLET_HPP
#define FT_RETRO_BULLET_HPP
#include "GameEntity.hpp"
class Bullet: public GameEntity {
protected:
int _dmg;
Bullet();
public:
Bullet(int x, int y, int h, std::string *p, int dmg);
Bullet(const Bullet &);
Bullet &operator=(const Bullet &);
virtual ~Bullet();
virtual void move() = 0;
virtual bool isEdge() const = 0;
int getDmg() const;
virtual bool status();
};
#endif //FT_RETRO_BULLET_HPP
| [
"noreply@github.com"
] | Balagurovskiy.noreply@github.com |
1cd091e1f6e563be4ba24c7a41f10109a454b80b | 55759f7fbc356445d3516ad66f5836633c15a105 | /UnitTest/gvariant_test.cpp | 2cf1fc4e4556ddfecf38cd6c36e68ebb312cf1f8 | [] | no_license | asankar1/GFramework | 403f91f17ba997eaf058e18e9730a28f5686e4ab | ce118d669a0e0fae4b06ada6db01708421085468 | refs/heads/master | 2021-10-02T09:07:05.454947 | 2021-08-28T09:27:17 | 2021-08-28T09:27:17 | 100,350,290 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,017 | cpp | #include <iostream>
#include <iomanip>
#include <vector>
#include <list>
#include <array>
#include <stack>
#include <map>
#include <cassert>
#include <limits>
#include <cmath>
#include <array>
#include <functional>
#include <gtest/gtest.h>
#include <GFramework/GVariant/GTypes.h>
#include <GFramework/GVariant/GVariant.h>
#include <GFramework/GVariant/GObject.h>
#include "gvariant_test.h"
using namespace std;
using namespace GFramework;
template<typename T>
struct is_vector : std::false_type {};
template<typename T>
struct is_vector<std::vector<T>> : std::true_type {};
template<typename T>
struct is_list : std::false_type {};
template<typename T>
struct is_list<std::list<T>> : std::true_type {};
template<typename T>
struct is_stack : std::false_type {};
template<typename T, typename C>
struct is_stack<std::stack<T, C>> : std::true_type {};
template<typename T>
struct is_map : std::false_type {};
template<class K, class T, class C, class A>
struct is_map<std::map<K, T, C, A>> : std::true_type {};
template<typename T>
struct is_tuple : std::false_type {};
template<class... Types>
struct is_tuple<std::tuple<Types...>> : std::true_type {};
template<typename T>
struct is_function_object : std::false_type {};
template<typename T>
struct is_function_object<std::function<T>> : std::true_type {};
template<typename T, typename U = T>
typename T::DUMMY_TYPE
gvariant_arithmetic_test(GVariant);
template<typename T, typename U = T>
typename T::DUMMY_TYPE
gvariant_floatingpoint_test(GVariant);
template<typename T>
typename T::DUMMY_TYPE
gvariant_class_test(GVariant, T);
template<typename T>
bool gvariant_pointer_test(GVariant gv, T v1)
{
bool result = true;
//raw pointer
T* v6 = &v1;
gv = GVariant::create<T*>(v6);
result = result && (GVariant::cast<T*>(gv) == v6);
result = result && (*GVariant::cast<T*>(gv) == v1);
return result;
}
template<typename T>
bool gvariant_reference_test(GVariant gv, T v1)
{
bool result = true;
//lvalue reference
T& v2 = v1;
gv = GVariant::create<T>(v2);
result = result && (GVariant::cast<T>(gv) == v2);
//const lvalue
const T v3 = v1;
gv = GVariant::create<T>(v3);
result = result && (GVariant::cast<T>(gv) == v3);
//const lvalue reference
const T& v4 = v1;
gv = GVariant::create<T>(v4);
result = result && (GVariant::cast<T>(gv) == v4);
//rvalue
auto ret_rvalue = [v1]()->T {T v = v1; return v; };
gv = GVariant::create<T>(ret_rvalue());
result = result && (GVariant::cast<T>(gv) == ret_rvalue());
//rvalue reference
T&& v5 = std::move(v1);
gv = GVariant::create<T>(v5);
result = result && (GVariant::cast<T>(gv) == v5);
result = result && gvariant_pointer_test<T>(gv, v1);
return result;
}
template<typename T, typename U = T>
typename std::enable_if<std::is_arithmetic<U>::value, bool>::type
gvariant_arithmetic_test(GVariant gv)
{
bool result = true;
//constexpr range
gv = GVariant::create<T>(numeric_limits<U>::min());
result = result && (GVariant::cast<T>(gv) == numeric_limits<U>::min());
gv = GVariant::create<T>(numeric_limits<U>::lowest());
result = result && (GVariant::cast<T>(gv) == numeric_limits<U>::lowest());
gv = GVariant::create<T>(numeric_limits<U>::max());
result = result && (GVariant::cast<T>(gv) == numeric_limits<U>::max());
//lvalue
T v1 = numeric_limits<U>::min();
gv = GVariant::create<T>(v1);
result = result && (GVariant::cast<T>(gv) == v1);
result = result && gvariant_reference_test<T>(gv, v1);
return result;
}
template<typename T, typename U = T>
typename std::enable_if<std::is_floating_point<U>::value, bool>::type
gvariant_floatingpoint_test(GVariant gv)
{
bool result = true;
result = result && gvariant_arithmetic_test<T, U>(gv);
if (numeric_limits<U>::has_infinity)
{
gv = GVariant::create<T>(numeric_limits<U>::infinity());
result = result && (GVariant::cast<T>(gv) == numeric_limits<U>::infinity());
}
if (numeric_limits<U>::has_quiet_NaN)
{
gv = GVariant::create<T>(numeric_limits<U>::quiet_NaN());
result = result && (std::isnan((U)GVariant::cast<T>(gv))); //NaN is always != Nan, use std::isnan
}
if (numeric_limits<U>::has_signaling_NaN)
{
gv = GVariant::create<T>(numeric_limits<U>::signaling_NaN());
result = result && (std::isnan((U)GVariant::cast<T>(gv))); //NaN is always != Nan, use std::isnan
}
if (numeric_limits<U>::has_denorm)
{
gv = GVariant::create<T>(numeric_limits<U>::denorm_min());
result = result && (GVariant::cast<T>(gv) == numeric_limits<U>::denorm_min());
}
return result;
}
template<typename T>
typename std::enable_if<std::is_class<T>::value, bool>::type
gvariant_class_test(GVariant gv, T t)
{
bool result = true;
result = result && gvariant_reference_test<T>(gv, t);
return result;
}
template<typename T, typename = void>
struct dataType {};
template<typename T>
struct dataType <T, typename std::enable_if< std::is_void<T>::value >::type>
{
static bool variant_test(GVariant gv)
{
bool result = true;
int i = 23;
//raw void pointer
void* v6 = static_cast<void*>(&i);
gv = GVariant::create<void*>(v6);
result = result && (GVariant::cast<void*>(gv) == v6);
result = result && (*(static_cast<int*>(GVariant::cast<void*>(gv))) == i);
return result;
}
};
template<typename T>
struct dataType <T, typename std::enable_if< std::is_null_pointer<T>::value >::type>
{
static bool variant_test(GVariant gv)
{
bool result = true;
//raw null pointer
gv = GVariant::create<nullptr_t>(nullptr);
result = result && (GVariant::cast<nullptr_t>(gv) == nullptr);
return result;
}
};
template<typename T>
struct dataType <T, typename std::enable_if< std::is_integral<T>::value >::type>
{
static bool variant_test(GVariant gv)
{
return gvariant_arithmetic_test<T>(gv);
}
};
template<typename T>
struct dataType <T, typename std::enable_if< std::is_floating_point<T>::value >::type>
{
static bool variant_test(GVariant gv)
{
bool result = true;
result = result && gvariant_arithmetic_test<T>(gv);
result = result && gvariant_floatingpoint_test<T>(gv);
return result;
}
};
template<typename T>
struct dataType <T, typename std::enable_if< std::is_array<T>::value >::type>
{
static_assert(std::rank<T>::value == 1, "Multi dimensional array is not supported");
static bool variant_test(GVariant gv, T t)
{
bool result = true;
gv = GVariant::create<T>(t);
result = result && (GVariant::cast<typename std::decay<T>::type>(gv)[0] == t[0]);
result = result && (GVariant::cast<typename std::decay<T>::type>(gv)[std::extent<T>::value-1] == t[std::extent<T>::value-1]);
return result;
}
};
template<typename T>
struct dataType <T, typename std::enable_if< is_vector<T>::value >::type>
{
static bool variant_test(GVariant gv, T t)
{
bool result = true;
gv = GVariant::create<T>(t);
result = result && (GVariant::cast<T>(gv) == t);
if (t.size() > 0)
result = result && dataType<typename T::value_type>::variant_test(t[0]);
return result;
}
};
template<typename T>
struct dataType <T, typename std::enable_if< is_list<T>::value >::type>
{
static bool variant_test(GVariant gv, T t)
{
bool result = true;
gv = GVariant::create<T>(t);
result = result && (GVariant::cast<T>(gv) == t);
if (t.size() > 0)
result = result && dataType<typename T::value_type>::variant_test(t.front());
return result;
}
};
template<typename T>
struct dataType <T, typename std::enable_if< is_map<T>::value >::type>
{
static bool variant_test(GVariant gv, T t)
{
bool result = true;
gv = GVariant::create<T>(t);
result = result && (GVariant::cast<T>(gv) == t);
if (t.size() > 0) {
result = result && dataType<typename T::value_type>::variant_test(t.begin()->first);
result = result && dataType<typename T::value_type>::variant_test(t.begin()->second);
}
return result;
}
};
template<class... Types>
struct dataType <std::tuple<Types...>>
{
static bool variant_test(GVariant gv, std::tuple<Types...> t)
{
bool result = true;
gv = GVariant::create<std::tuple<Types...>>(t);
result = result && (GVariant::cast<std::tuple<Types...>>(gv) == t);
result = result && forEachType<Types...>::variant_test(gv);
return result;
}
private:
template<class U, class... Types_Intenal>
struct forEachType
{
static bool variant_test(GVariant gv)
{
bool result = dataType<U>::variant_test(gv);
result = result && forEachType<Types_Intenal...>::variant_test(gv);
return result;
}
};
template<class U>
struct forEachType<U>
{
static bool variant_test(GVariant gv)
{
return dataType<U>::variant_test(gv);
}
};
};
template<typename T>
struct dataType <T, typename std::enable_if< is_function_object<T>::value >::type>
{
template<typename R>
static bool variant_test(GVariant gv, T t, R r)
{
bool result = true;
gv = GVariant::create(t);
result = result && ((GVariant::cast<T>(gv))() == r);
return result;
}
};
template<typename T>
struct dataType <T, typename std::enable_if< is_shared_ptr<T>::value >::type>
{
static bool variant_test(GVariant gv, T t)
{
bool result = true;
gv = GVariant::create(t);
result = result && ((GVariant::cast<T>(gv)) == t);
return result;
}
};
template<typename T>
struct dataType <T, typename std::enable_if < std::is_class<T>::value && ! ( is_function_object<T>::value ||
std::is_base_of<GPropertyInterface, T>::value ||
is_vector<T>::value ||
is_list<T>::value ||
std::is_array<T>::value ||
is_stack<T>::value ||
is_map<T>::value ||
is_tuple<T>::value ||
is_shared_ptr<T>::value
)>::type>
{
static bool variant_test(GVariant gv, T t=T())
{
bool result = true;
gv = GVariant::create(t);
result = result && (GVariant::cast<T>(gv) == t);
result = gvariant_reference_test<T>(gv, t);
return result;
}
};
template<typename T>
struct dataType <T, typename std::enable_if< std::is_base_of<GPropertyInterface, T>::value>::type>
{
static bool variant_test(GVariant gv)
{
bool result = true;
T t;
result = result && gvariant_class_test<T>(gv, t);
result = result && dataType_internal<typename T::type>::variant_test(gv);
return result;
}
private:
template<typename U, typename = void>
struct dataType_internal {};
template<typename U>
struct dataType_internal <U, typename std::enable_if< std::is_integral<U>::value >::type>
{
static bool variant_test(GVariant gv)
{
return gvariant_arithmetic_test<T, U>(gv);
}
};
template<typename U>
struct dataType_internal <U, typename std::enable_if< std::is_floating_point<U>::value >::type>
{
static bool variant_test(GVariant gv)
{
bool result = true;
result = result && gvariant_arithmetic_test<T, U>(gv);
result = result && gvariant_floatingpoint_test<T, U>(gv);
return result;
}
};
template<typename U>
struct dataType_internal <U, typename std::enable_if< std::is_class<U>::value >::type>
{
static bool variant_test(GVariant gv)
{
bool result = true;
U u;
result = result && gvariant_class_test<U>(gv, u);
return result;
}
};
};
class Color
{
public:
Color() {}
Color(uint8 _r, uint8 _g, uint8 _b, uint8 _a) : r(_r), g(_g), b(_b), a(_a) {}
uint8 r = 0, g = 0, b = 0, a = 0;
bool operator==(const Color& rhs) { return (this->r == rhs.r && this->g == rhs.g && this->b == rhs.b && this->a == rhs.a); }
};
class GVariantTest$$CompoundTypes : public ::testing::Test {
protected:
void SetUp() override {
intVector.push_back(11);
intVector.push_back(12);
intVector.push_back(13);
floatList.push_back(1.1f);
floatList.push_back(2.2f);
floatList.push_back(3.3f);
stringDoubleMap["1.23"] = 1.23;
stringDoubleMap["4.56"] = 4.56;
stringDoubleMap["7.89"] = 7.89;
boolIntStringTuple = std::make_tuple(true, 768, "large number");
}
protected:
string str = "Default test string";
wstring wstr = L"\x6f\x6c\xc3\xa9";
int arr1[5] = { 1,2,3,4,5 };
int arr2[2][5] = { { 1,2,3,4,5 }, { 1,2,3,4,5 } };
glm::vec3 arr3[3] = { glm::vec3(1),glm::vec3(2), glm::vec3(3) };
std::vector<int> intVector;
std::list<float> floatList;
std::map < std::string, double> stringDoubleMap;
std::tuple<bool, int, std::string > boolIntStringTuple;
Color red{ 255,0,0,255 };
std::shared_ptr<Color> green = std::make_shared<Color>(0, 255, 0, 255);
};
GVariant gv;
#define GTEST_GVARIANT2( SUITE, NAME, TYPE ) \
TEST(SUITE, NAME ) { \
EXPECT_EQ(true, dataType<TYPE>::variant_test(gv)); \
}
#define GTEST_GVARIANT( SUITE, TYPE ) GTEST_GVARIANT2(SUITE, TYPE, TYPE)
GTEST_GVARIANT(GVariantTest$$FundementalTypes, void)
GTEST_GVARIANT2(GVariantTest$$FundementalTypes, nullptrType, nullptr_t)
GTEST_GVARIANT(GVariantTest$$FundementalTypes, bool)
GTEST_GVARIANT(GVariantTest$$FundementalTypes, int8)
GTEST_GVARIANT(GVariantTest$$FundementalTypes, uint8)
GTEST_GVARIANT(GVariantTest$$FundementalTypes, char)
GTEST_GVARIANT2(GVariantTest$$FundementalTypes, char16Type, char16_t)
GTEST_GVARIANT2(GVariantTest$$FundementalTypes, char32Type, char32_t)
GTEST_GVARIANT(GVariantTest$$FundementalTypes, int16)
GTEST_GVARIANT(GVariantTest$$FundementalTypes, uint16)
GTEST_GVARIANT(GVariantTest$$FundementalTypes, int32)
GTEST_GVARIANT(GVariantTest$$FundementalTypes, uint32)
GTEST_GVARIANT(GVariantTest$$FundementalTypes, int64)
GTEST_GVARIANT(GVariantTest$$FundementalTypes, uint64)
GTEST_GVARIANT(GVariantTest$$FundementalTypes, float32)
GTEST_GVARIANT(GVariantTest$$FundementalTypes, float64)
GTEST_GVARIANT(GVariantTest$$FundementalTypes, float80)
TEST_F(GVariantTest$$CompoundTypes, OneDimensionalArray) {
EXPECT_EQ(true, dataType<decltype(arr1)>::variant_test(gv, arr1));
//EXPECT_EQ(true, dataType<decltype(arr2)>::variant_test(gv, arr2)); //Must give compilation error
EXPECT_EQ(true, dataType<decltype(arr3)>::variant_test(gv, arr3));
}
TEST_F(GVariantTest$$CompoundTypes, FunctionObject) {
bool result = true;
std::function<int()> f1 = []()->int {return 345; };
EXPECT_EQ(true, dataType<decltype(f1)>::variant_test(gv, f1, 345));
int i = 23;
std::function<int()> f2 = [=]()->int {return i; };
EXPECT_EQ(true, dataType<decltype(f2)>::variant_test(gv, f2, i));
int j = 47;
std::function<int()> f3 = [&]()->int {return ++j; };
EXPECT_EQ(true, dataType<decltype(f3)>::variant_test(gv, f3, 48));
}
TEST_F(GVariantTest$$CompoundTypes, Class) {
EXPECT_EQ(true, dataType<Color>::variant_test(gv, red));
}
TEST_F(GVariantTest$$CompoundTypes, SharedPtr) {
EXPECT_EQ(true, dataType< std::shared_ptr<Color> >::variant_test(gv, green));
}
TEST_F(GVariantTest$$CompoundTypes, string) {
EXPECT_EQ(true, dataType< string >::variant_test(gv, str));
}
TEST_F(GVariantTest$$CompoundTypes, wstring) {
EXPECT_EQ(true, dataType< wstring >::variant_test(gv, wstr));
}
//STL Container types
TEST_F(GVariantTest$$CompoundTypes, Vector) {
EXPECT_EQ(true, dataType< std::vector<int>>::variant_test(gv, intVector));
}
TEST_F(GVariantTest$$CompoundTypes, List) {
EXPECT_EQ(true, dataType< std::list<float>>::variant_test(gv, floatList));
}
TEST_F(GVariantTest$$CompoundTypes, Map) {
bool result = dataType< std::map < std::string, double> >::variant_test(gv, stringDoubleMap);
EXPECT_EQ(true, result);
}
TEST_F(GVariantTest$$CompoundTypes, Tuple) {
bool result = dataType< std::tuple<bool, int, std::string > >::variant_test(gv, boolIntStringTuple);
EXPECT_EQ(true, result);
}
TEST(DISABLED_GVariantTest$$CompoundTypes, Multi_Dim_Array) {
bool result = false;
EXPECT_EQ(true, result);
}
TEST(DISABLED_GVariantTest$$CompoundTypes, unique_ptr) {
bool result = false;
EXPECT_EQ(true, result);
}
TEST(DISABLED_GVariantTest$$CompoundTypes, lvalue_ref) {
bool result = false;
EXPECT_EQ(true, result);
}
//GProperty types
GTEST_GVARIANT(GVariantTest$$GPropertyTypes, GBoolProperty)
GTEST_GVARIANT(GVariantTest$$GPropertyTypes, GCharProperty)
GTEST_GVARIANT(GVariantTest$$GPropertyTypes, GInt8Property)
GTEST_GVARIANT(GVariantTest$$GPropertyTypes, GUint8Property)
GTEST_GVARIANT(GVariantTest$$GPropertyTypes, GInt16Property)
GTEST_GVARIANT(GVariantTest$$GPropertyTypes, GUint16Property)
GTEST_GVARIANT(GVariantTest$$GPropertyTypes, GInt32Property)
GTEST_GVARIANT(GVariantTest$$GPropertyTypes, GUint32Property)
GTEST_GVARIANT(GVariantTest$$GPropertyTypes, GInt64Property)
GTEST_GVARIANT(GVariantTest$$GPropertyTypes, GUint64Property)
GTEST_GVARIANT(GVariantTest$$GPropertyTypes, GFloatProperty)
GTEST_GVARIANT(GVariantTest$$GPropertyTypes, GDoubleProperty)
GTEST_GVARIANT(GVariantTest$$GPropertyTypes, GVec2Property)
GTEST_GVARIANT(GVariantTest$$GPropertyTypes, GVec3Property)
GTEST_GVARIANT(GVariantTest$$GPropertyTypes, GVec4Property)
GTEST_GVARIANT(GVariantTest$$GPropertyTypes, GMat2Property)
GTEST_GVARIANT(GVariantTest$$GPropertyTypes, GMat3Property)
GTEST_GVARIANT(GVariantTest$$GPropertyTypes, GMat4Property)
GTEST_GVARIANT(GVariantTest$$GPropertyTypes, GObjectPointerProperty)
//Serialization test
//GTEST_GSERIALIZATION(GVariantTest$$FundementalTypes, int8)
void variant_test()
{
}
| [
"asankar1@outlook.com"
] | asankar1@outlook.com |
752d1f08c922e76f68551529c4722eae50f01a72 | e95adb59feacfe95904c3a8e90a4159860b6c26a | /build/Android/Preview/outsideTheBox/app/src/main/include/Android.Fallbacks.Android_android_media_MediaPlayerDLROnErrorListener.h | d0aca6aeaf561cf6bd872cebacb36ec8f066ac77 | [] | no_license | deliloka/bethebox | 837dff20c1ff55db631db1e0f6cb51d935497e91 | f9bc71b8593dd54b8aaf86bc0a654d233432c362 | refs/heads/master | 2021-01-21T08:20:42.970891 | 2016-02-19T10:00:37 | 2016-02-19T10:00:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,854 | h | // This file was generated based on '/usr/local/share/uno/Packages/Android/0.23.1/Android/Fallbacks/$.uno'.
// WARNING: Changes might be lost if you edit this file directly.
#pragma once
#include <Android.android.media.MediaPlayerDLROnErrorListener.h>
#include <Android.Base.Wrappers.IJWrapper.h>
#include <Android.java.lang.Object.h>
#include <jni.h>
#include <Uno.IDisposable.h>
namespace g{namespace Android{namespace android{namespace media{struct MediaPlayer;}}}}
namespace g{namespace Android{namespace Fallbacks{struct Android_android_media_MediaPlayerDLROnErrorListener;}}}
namespace g{
namespace Android{
namespace Fallbacks{
// public sealed extern class Android_android_media_MediaPlayerDLROnErrorListener :28265
// {
struct Android_android_media_MediaPlayerDLROnErrorListener_type : ::g::Android::java::lang::Object_type
{
::g::Android::android::media::MediaPlayerDLROnErrorListener interface2;
};
Android_android_media_MediaPlayerDLROnErrorListener_type* Android_android_media_MediaPlayerDLROnErrorListener_typeof();
void Android_android_media_MediaPlayerDLROnErrorListener__onError_fn(Android_android_media_MediaPlayerDLROnErrorListener* __this, ::g::Android::android::media::MediaPlayer* arg0, int* arg1, int* arg2, bool* __retval);
void Android_android_media_MediaPlayerDLROnErrorListener__onError_IMPL_9438_fn(bool* arg0_, jobject* arg1_, uObject* arg2_, int* arg3_, int* arg4_, bool* __retval);
struct Android_android_media_MediaPlayerDLROnErrorListener : ::g::Android::java::lang::Object
{
static jmethodID onError_9438_ID_;
static jmethodID& onError_9438_ID() { return onError_9438_ID_; }
bool onError(::g::Android::android::media::MediaPlayer* arg0, int arg1, int arg2);
static bool onError_IMPL_9438(bool arg0_, jobject arg1_, uObject* arg2_, int arg3_, int arg4_);
};
// }
}}} // ::g::Android::Fallbacks
| [
"Havard.Halse@nrk.no"
] | Havard.Halse@nrk.no |
e0641d743e50b9ce4c62da3450faff6ca6d7ae7c | 1992f8fbd2ee5b3537f1106a6bdd81f692b161fa | /swarsim-3d/display/model_3ds.h | 9f17edb2a275c92263411439fd3acb2a34da054f | [
"MIT"
] | permissive | grohith327/MARL-Drones | 5e569794d0c7a2726a042c9501b974ebb3802c71 | ddaaff57266e7092b44a843ca671a4dc405fd7b8 | refs/heads/master | 2022-11-25T10:03:19.114297 | 2020-07-21T01:27:44 | 2020-07-21T01:27:44 | 256,265,495 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 7,758 | h | //////////////////////////////////////////////////////////////////////
//
// 3D Studio Model Class
// by: Matthew Fairfax
// Taken from: https://github.com/adamwdennis/Frogger/blob/master/src/Model3DS.h
//
// This is a simple class for loading and viewing
// 3D Studio model files (.3ds). It supports models
// with multiple objects. It also supports multiple
// textures per object. It does not support the animation
// for 3D Studio models b/c there are simply too many
// ways for an artist to animate a 3D Studio model and
// I didn't want to impose huge limitations on the artists.
// However, I have imposed a limitation on how the models are
// textured:
// 1) Every faces must be assigned a material
// 2) If you want the face to be textured assign the
// texture to the Diffuse Color map
// 3) The texture must be supported by the GLTexture class
// which only supports bitmap and targa right now
// 4) The texture must be located in the same directory as
// the model
//
// Support for non-textured faces is done by reading the color
// from the material's diffuse color.
//
// Some models have problems loading even if you follow all of
// the restrictions I have stated and I don't know why. If you
// can import the 3D Studio file into Milkshape 3D
// (http://www.swissquake.ch/chumbalum-soft) and then export it
// to a new 3D Studio file. This seems to fix many of the problems
// but there is a limit on the number of faces and vertices Milkshape 3D
// can read.
//
// Usage:
// Model3DS m;
//
// m.Load("model.3ds"); // Load the model
// m.Draw(); // Renders the model to the screen
//
// // If you want to show the model's normals
// m.shownormals = true;
//
// // If the model is not going to be lit then set the lit
// // variable to false. It defaults to true.
// m.lit = false;
//
// // You can disable the rendering of the model
// m.visible = false;
//
// // You can move and rotate the model like this:
// m.rot.x = 90.0f;
// m.rot.y = 30.0f;
// m.rot.z = 0.0f;
//
// m.pos.x = 10.0f;
// m.pos.y = 0.0f;
// m.pos.z = 0.0f;
//
// // If you want to move or rotate individual objects
// m.Objects[0].rot.x = 90.0f;
// m.Objects[0].rot.y = 30.0f;
// m.Objects[0].rot.z = 0.0f;
//
// m.Objects[0].pos.x = 10.0f;
// m.Objects[0].pos.y = 0.0f;
// m.Objects[0].pos.z = 0.0f;
//
//////////////////////////////////////////////////////////////////////
#ifndef MODEL_3DS_H
#define MODEL_3DS_H
#include <stdio.h>
#include <stdint.h>
#ifdef MAC
#include <OpenGL/gl.h>
#include <GLUT/glut.h>
#else
#include <GL/gl.h>
#include <GL/glut.h>
#endif
#include "texture_manager.h"
class Model3DS
{
public:
// A VERY simple vector struct
// I could have included a complex class but I wanted the model class to stand alone
struct Vector {
float x;
float y;
float z;
};
// Vertex struct to make code easier to read in places
struct Vertex {
float x;
float y;
float z;
};
// Color struct holds the diffuse color of the material
struct Color4i {
unsigned char r;
unsigned char g;
unsigned char b;
unsigned char a;
};
// Holds the material info
// TODO: add color support for non textured polys
struct Material {
char name[80]; // The material's name
GLuint tex; // The texture (this is the only outside reference in this class)
bool textured; // whether or not it is textured
Color4i color;
};
// Every chunk in the 3ds file starts with this struct
struct ChunkHeader {
uint16_t id; // The chunk's id
uint32_t len; // The lenght of the chunk
};
// I sort the mesh by material so that I won't have to switch textures a great deal
struct MaterialFaces {
unsigned short *subFaces; // Index to our vertex array of all the faces that use this material
int numSubFaces; // The number of faces
int MatIndex; // An index to our materials
};
// The 3ds file can be made up of several objects
struct Object {
char name[80]; // The object name
float *Vertexes; // The array of vertices
float *Normals; // The array of the normals for the vertices
float *TexCoords; // The array of texture coordinates for the vertices
unsigned short *Faces; // The array of face indices
int numFaces; // The number of faces
int numMatFaces; // The number of differnet material faces
int numVerts; // The number of vertices
int numTexCoords; // The number of vertices
bool textured; // True: the object has textures
MaterialFaces *MatFaces; // The faces are divided by materials
Vector pos; // The position to move the object to
Vector rot; // The angles to rotate the object
};
char *modelname; // The name of the model
char *path; // The path of the model
int numObjects; // Total number of objects in the model
int numMaterials; // Total number of materials in the model
int totalVerts; // Total number of vertices in the model
int totalFaces; // Total number of faces in the model
bool shownormals; // True: show the normals
Material *Materials; // The array of materials
Object *Objects; // The array of objects in the model
Vector pos; // The position to move the model to
Vector rot; // The angles to rotate the model
float scale; // The size you want the model scaled to
bool lit; // True: the model is lit
bool visible; // True: the model gets rendered
void Load(const char *name); // Loads a model
void Draw(); // Draws the model
FILE *bin3ds; // The binary 3ds file
Model3DS(); // Constructor
~Model3DS(); // Destructor
private:
void IntColorChunkProcessor(long length, long findex, int matindex);
void FloatColorChunkProcessor(long length, long findex, int matindex);
// Processes the Main Chunk that all the other chunks exist is
void MainChunkProcessor(long length, long findex);
// Processes the model's info
void EditChunkProcessor(long length, long findex);
// Processes the model's materials
void MaterialChunkProcessor(long length, long findex, int matindex);
// Processes the names of the materials
void MaterialNameChunkProcessor(long length, long findex, int matindex);
// Processes the material's diffuse color
void DiffuseColorChunkProcessor(long length, long findex, int matindex);
// Processes the material's texture maps
void TextureMapChunkProcessor(long length, long findex, int matindex);
// Processes the names of the textures and load the textures
void MapNameChunkProcessor(long length, long findex, int matindex);
// Processes the model's geometry
void ObjectChunkProcessor(long length, long findex, int objindex);
// Processes the triangles of the model
void TriangularMeshChunkProcessor(long length, long findex, int objindex);
// Processes the vertices of the model and loads them
void VertexListChunkProcessor(long length, long findex, int objindex);
// Processes the texture cordiantes of the vertices and loads them
void TexCoordsChunkProcessor(long length, long findex, int objindex);
// Processes the faces of the model and loads the faces
void FacesDescriptionChunkProcessor(long length, long findex, int objindex);
// Processes the materials of the faces and splits them up by material
void FacesMaterialsListChunkProcessor(long length, long findex, int objindex, int subfacesindex);
// Calculates the normals of the vertices by averaging
// the normals of the faces that use that vertex
void CalculateNormals();
TextureManager textureManager;
};
#endif
| [
"grohith327@gmail.com"
] | grohith327@gmail.com |
f22bb9efcd60729e0052495dcc6ba2fe4a1a3e42 | 0d0548fd104467d3e2f55b6fc5b40b289221d910 | /TileList.h | f67c9de09af2d0938084c1830541fe6c5c4f3d6b | [] | no_license | JohanssonDaniel/tiles | 83aca4e897861720daadb22c83dfdd71a12642b8 | 154517a2f8a7cc269a5d4dd95b91515a640c2161 | refs/heads/master | 2016-09-05T12:51:32.980865 | 2014-10-13T09:12:44 | 2014-10-13T09:12:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 919 | h | // This is the .h file you will edit and turn in.
// We have provided a skeleton for you,
// but you must finish it as described in the spec.
// Also remove these comments here and add your own, as well as on the members.
// TODO: remove this comment header
#ifndef TILELIST_H
#define TILELIST_H
#include <QGraphicsScene>
#include "Tile.h"
class TileList {
public:
TileList();
~TileList();
void addTile(Tile tile);
void drawAll(QGraphicsScene* scene) const;
int indexOfTopTile(int x, int y) const;
void lower(int x, int y);
void raise(int x, int y);
void remove(int x, int y);
void removeAll(int x, int y);
private:
int m_size = 0; // number of elements added
int m_capacity = 10; // length of array
Tile* m_elements = new Tile[m_capacity]; // array of elements
void checkResize();
};
#endif // TILELIST_H
| [
"johanssondaniel93@gmail.com"
] | johanssondaniel93@gmail.com |
10644066854696eed24425aa6a8e3e9f84abf814 | ed2330a2992c53490d100b8f56b60bae20380429 | /source/SplayTree.cpp | f4dd981b0b5666d9e67faa817318678c1629d00e | [] | no_license | ILLLIGION/SplayTree | dde2a82a155bd25c5beedb9979b21348e1280463 | 10596103537153ed0d83fdbd875fa0d24da4c492 | refs/heads/master | 2021-05-11T13:14:06.712661 | 2018-02-01T12:40:25 | 2018-02-01T12:40:25 | 117,675,562 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,829 | cpp | #include "../include/SplayTree.hpp"
template <typename T>
SplayTree<T>::Node::Node(short key_, T value_) : key(key_), value(value_), left_(nullptr), right_(nullptr),
parent_(nullptr) {};
template <typename T>
SplayTree<T>::Node::~Node()
{
left_ = nullptr;
right_ = nullptr;
};
template <typename T>
auto SplayTree<T>::Node::equal(std::shared_ptr<Node> tree) const noexcept -> bool
{
if ((left_ && !tree->left_) || (right_ && !tree->right_))
return false;
if ((!left_ && tree->left_) || (!right_ && tree->right_))
return false;
bool equalLeft = true; bool equalRight = true;
if ((value != tree->value) || (key != tree->key))
return false;
else
{
if (!left_ && !right_)
return true;
if (left_)
equalLeft = left_->equal(tree->left_);
if (right_)
equalRight = right_->equal(tree->right_);
return equalLeft && equalRight;
}
}
template <typename T>
SplayTree<T>::SplayTree() : root_(nullptr) {};
/*template <typename T>
SplayTree<T>::SplayTree(const std::initializer_list<T>& list) : root_(nullptr)
{
for (auto it = list.begin(); it != list.end(); ++it)
insert(*it);
};
*/
template <typename T>
auto SplayTree<T>::rotate_left(std::shared_ptr<Node> node) -> void
{
std::shared_ptr<Node> tmp = node->left_;
if (node->parent_ == nullptr)
root_ = tmp;
else if (node == node->parent_->left_)
node->parent_->left_ = tmp;
else
node->parent_->right_ = tmp;
tmp->parent_ = node->parent_;
node->left_ = tmp->right_;
if (node->left_ != nullptr)
node->left_->parent_ = node;
tmp->right_ = node;
node->parent_ = tmp;
}
template <typename T>
auto SplayTree<T>::rotate_right(std::shared_ptr<Node> node) -> void
{
std::shared_ptr<Node> tmp = node->right_;
if (node->parent_ == nullptr)
root_ = tmp;
else if (node == node->parent_->left_)
node->parent_->left_ = tmp;
else
node->parent_->right_ = tmp;
tmp->parent_ = node->parent_;
node->right_ = tmp->left_;
if (node->right_ != nullptr)
node->right_->parent_ = node;
tmp->left_ = node;
node->parent_ = tmp;
}
template <typename T>
auto SplayTree<T>::splay(std::shared_ptr<Node> node) -> void
{
if (node == nullptr)
return;
while (node->parent_ != nullptr && node->parent_->parent_ != nullptr) {
if (node == node->parent_->left_) {
if (node->parent_ == node->parent_->parent_->left_) {
// ZigZig
rotate_left(node->parent_->parent_);
rotate_left(node->parent_);
}
else {
// ZigZag
rotate_left(node->parent_);
rotate_right(node->parent_);
}
}
else {
if (node->parent_ == node->parent_->parent_->right_) {
// ZigZig
rotate_right(node->parent_->parent_);
rotate_right(node->parent_);
}
else {
// ZigZag
rotate_right(node->parent_);
rotate_left(node->parent_);
}
}
}
if (node->parent_ == nullptr) {
return;
}
if (node == node->parent_->left_) {
// Zig
rotate_left(node->parent_);
}
else {
// Zig
rotate_right(node->parent_);
}
}
template <typename T>
auto SplayTree<T>::insert(const short key, const T& value) -> bool
{
bool foundPlace = false;
if (root_ == nullptr)
{
root_ = std::make_shared<Node>(key, value);
return true;
}
std::shared_ptr<Node> thisNode = root_;
while (!foundPlace)
{
if (key == thisNode->key)
return false;
if (key < thisNode->key)
{
if (!thisNode->left_)
{
thisNode->left_ = std::make_shared<Node>(key, value);
thisNode->left_->parent_ = thisNode;
thisNode = thisNode->left_;
foundPlace = true;
}
else
thisNode = thisNode->left_;
}
else if (!thisNode->right_)
{
thisNode->right_ = std::make_shared<Node>(key, value);
thisNode->right_->parent_ = thisNode;
thisNode = thisNode -> right_;
foundPlace = true;
}
else
thisNode = thisNode->right_;
}
splay(thisNode);
this -> root_ = thisNode;
return foundPlace;
};
template <typename T>
auto SplayTree<T>::search(const short key) -> const T*
{
if (!root_)
return nullptr;
std::shared_ptr<Node> thisNode = root_;
while (1)
{
if (key == thisNode->key)
{
splay(thisNode);
this -> root_ = thisNode;
return &thisNode->value;
}
else if (key < thisNode->key)
if (thisNode->left_)
thisNode = thisNode->left_;
else
{
splay(thisNode);
this -> root_ = thisNode;
return nullptr;
}
else
{
if (thisNode->right_)
thisNode = thisNode->right_;
else
{
splay(thisNode);
this -> root_ = thisNode;
return nullptr;
}
}
}
};
template <typename T>
auto SplayTree<T>::max() const -> const T*
{
if (root_ == nullptr)
return nullptr;
std::shared_ptr<Node> tmp = root_;
while (tmp->right_ != nullptr)
tmp = tmp->right_;
return &tmp -> value;
}
template <typename T>
auto SplayTree<T>::merge(std::shared_ptr<Node> left_tree, std::shared_ptr<Node> right_tree) -> bool
{
std::shared_ptr<Node> new_root = max_merge(left_tree);
if (new_root == nullptr)
return false;
splay(new_root);
new_root->right_ = right_tree;
if (right_tree != nullptr)
right_tree->parent_ = new_root;
return true;
}
template <typename T>
auto SplayTree<T>::max_merge(std::shared_ptr<Node> left_tree) const -> std::shared_ptr<Node>
{
if (left_tree == nullptr)
return nullptr;
std::shared_ptr<Node> tmp = left_tree;
while (tmp->right_ != nullptr)
tmp = tmp->right_;
return tmp;
}
template <typename T>
auto SplayTree<T>::remove(const short key) -> bool
{
if(search(key))
{
search(key);
if (root_->right_ == nullptr) {
root_ = root_->left_;
if (root_ != nullptr)
root_->parent_ = nullptr;
return true;
}
if (!merge(root_->left_, root_->right_)) {
root_ = root_->right_;
if (root_ != nullptr)
root_->parent_ = nullptr;
return true;
}
return true;
}
else return false;
}
template <typename T>
auto SplayTree<T>::min() const -> const T*
{
if (root_ == nullptr)
return nullptr;
std::shared_ptr<Node> tmp = root_;
while (tmp->left_ != nullptr)
tmp = tmp->left_;
return &tmp->value;
}
template <typename T>
auto SplayTree<T>::operator == (const SplayTree& tree) -> bool
{
return (root_->equal(tree.root_));
};
template <typename T>
auto SplayTree<T>::print(std::ostream& out, std::shared_ptr<Node> node, int level) const noexcept -> bool
{
if (node)
{
print(out, node->right_, level + 1);
for(int i = 0; i< level; i++) std::cout<<" ";
std::cout << '[' << node->key << ' ' << node->value << ']' << std::endl;
print(out, node->left_, level + 1);
return true;
}
else return false;
} | [
"dazuk07@yandex.ru"
] | dazuk07@yandex.ru |
e1363abfd13160892d66553229fa2b9366cfcd5e | fe2362eda423bb3574b651c21ebacbd6a1a9ac2a | /VTK-7.1.1/Deprecated/vtkTimePointToString.h | 95df7bccf67d7f5bc1daf13ab1de128093e53deb | [
"BSD-3-Clause"
] | permissive | likewatchk/python-pcl | 1c09c6b3e9de0acbe2f88ac36a858fe4b27cfaaf | 2a66797719f1b5af7d6a0d0893f697b3786db461 | refs/heads/master | 2023-01-04T06:17:19.652585 | 2020-10-15T21:26:58 | 2020-10-15T21:26:58 | 262,235,188 | 0 | 0 | NOASSERTION | 2020-05-08T05:29:02 | 2020-05-08T05:29:01 | null | UTF-8 | C++ | false | false | 3,163 | h | /*=========================================================================
Program: Visualization Toolkit
Module: vtkTimePointToString.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
/*-------------------------------------------------------------------------
Copyright 2008 Sandia Corporation.
Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
the U.S. Government retains certain rights in this software.
-------------------------------------------------------------------------*/
/**
* @class vtkTimePointToString
* @brief Converts a timestamp array to a string array
*
*
*
* vtkTimePointToString is a filter for converting a timestamp array
* into string array using one of the formats defined in vtkTimePointUtility.h.
*
* Use SetInputArrayToProcess to indicate the array to process.
* This array must be an unsigned 64-bit integer array for
* DATETIME formats, and may be either an unsigned 32-bit or
* unsigned 64-bit array for DATE and TIME formats.
*
* If the new array name is not specified, the array name will be
* the old name appended by " [to string]".
*/
#ifndef vtkTimePointToString_h
#define vtkTimePointToString_h
#include "vtkDataObjectAlgorithm.h"
class VTK_INFOVIS_EXPORT vtkTimePointToString : public vtkDataObjectAlgorithm
{
public:
static vtkTimePointToString* New();
vtkTypeMacro(vtkTimePointToString,vtkDataObjectAlgorithm);
void PrintSelf(ostream& os, vtkIndent indent);
//@{
/**
* The format to use when converting the timestamp to a string.
*/
vtkSetMacro(ISO8601Format, int);
vtkGetMacro(ISO8601Format, int);
//@}
//@{
/**
* The name of the output array.
* If this is not specified, the name will be the input array name with
* " [to string]" appended to it.
*/
vtkSetStringMacro(OutputArrayName);
vtkGetStringMacro(OutputArrayName);
//@}
/**
* This is required to capture REQUEST_DATA_OBJECT requests.
*/
virtual int ProcessRequest(vtkInformation* request,
vtkInformationVector** inputVector,
vtkInformationVector* outputVector);
protected:
vtkTimePointToString();
~vtkTimePointToString();
/**
* Creates the same output type as the input type.
*/
virtual int RequestDataObject(vtkInformation* request,
vtkInformationVector** inputVector,
vtkInformationVector* outputVector);
int ISO8601Format;
char* OutputArrayName;
int RequestData(
vtkInformation*,
vtkInformationVector**,
vtkInformationVector*);
private:
vtkTimePointToString(const vtkTimePointToString&) VTK_DELETE_FUNCTION;
void operator=(const vtkTimePointToString&) VTK_DELETE_FUNCTION;
};
#endif
| [
"likewatchk@gmail.com"
] | likewatchk@gmail.com |
2526a533d063f5f20b534f4335c6eb4b3d51c1c0 | cae83fb974436ea3be3c2fcee7d9f889b12760b3 | /src/test/test_bitcoin.cpp | e648c97c50cc7a506d3484cb8bc0f25b1e54cdd4 | [
"MIT"
] | permissive | Thepokeyman/String | 26f376ff192238ffeb99eae19f820c153a9c9008 | dac28ad0631fcec3879ed313a15a354c62c1597c | refs/heads/master | 2021-04-28T03:53:44.436306 | 2018-02-27T03:58:31 | 2018-02-27T03:58:31 | 122,148,590 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,749 | cpp | #define BOOST_TEST_MODULE String Test Suite
#include <boost/test/unit_test.hpp>
#include <boost/filesystem.hpp>
#include "db.h"
#include "txdb.h"
#include "main.h"
#include "wallet.h"
#include "util.h"
CWallet* pwalletMain;
CClientUIInterface uiInterface;
extern bool fPrintToConsole;
extern void noui_connect();
struct TestingSetup {
CCoinsViewDB *pcoinsdbview;
boost::filesystem::path pathTemp;
boost::thread_group threadGroup;
TestingSetup() {
fPrintToDebugger = true; // don't want to write to debug.log file
noui_connect();
bitdb.MakeMock();
pathTemp = GetTempPath() / strprintf("test_string_%lu_%i", (unsigned long)GetTime(), (int)(GetRand(100000)));
boost::filesystem::create_directories(pathTemp);
mapArgs["-datadir"] = pathTemp.string();
pblocktree = new CBlockTreeDB(1 << 20, true);
pcoinsdbview = new CCoinsViewDB(1 << 23, true);
pcoinsTip = new CCoinsViewCache(*pcoinsdbview);
InitBlockIndex();
bool fFirstRun;
pwalletMain = new CWallet("wallet.dat");
pwalletMain->LoadWallet(fFirstRun);
RegisterWallet(pwalletMain);
nScriptCheckThreads = 3;
for (int i=0; i < nScriptCheckThreads-1; i++)
threadGroup.create_thread(&ThreadScriptCheck);
}
~TestingSetup()
{
threadGroup.interrupt_all();
threadGroup.join_all();
delete pwalletMain;
pwalletMain = NULL;
delete pcoinsTip;
delete pcoinsdbview;
delete pblocktree;
bitdb.Flush(true);
boost::filesystem::remove_all(pathTemp);
}
};
BOOST_GLOBAL_FIXTURE(TestingSetup);
void Shutdown(void* parg)
{
exit(0);
}
void StartShutdown()
{
exit(0);
}
| [
"Thepokeymanvideos@gmail.com"
] | Thepokeymanvideos@gmail.com |
1f696edce8c8ea67e98ed6ca726a77e37d28378e | b23a7f3d087d0218d63b6f246a5009cfc91cca03 | /Solvers/Il2CppOutputProject/Source/il2cppOutput/Il2CppCompilerCalculateTypeValues_11Table.cpp | 47dcb69d18880e1022bdf5fd6659867ea0269cbe | [] | no_license | willguest/MRTK-Solvers | 2a77abf34bfc45528678040b2761e1ac4c28dc2a | 29d466d8200db11c65c9084a57d85f243ef879ae | refs/heads/master | 2022-10-15T04:41:55.835153 | 2020-06-09T10:54:31 | 2020-06-09T10:54:31 | 270,976,279 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 237,708 | cpp | #include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
#include <stdint.h>
#include "il2cpp-class-internals.h"
#include "codegen/il2cpp-codegen.h"
#include "il2cpp-object-internals.h"
// System.Action
struct Action_t591D2A86165F896B4B800BB5C25CE18672A55579;
// System.Byte[]
struct ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821;
// System.Char[]
struct CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2;
// System.Collections.IDictionary
struct IDictionary_t1BD5C1546718A374EA8122FBD6C6EE45331E8CE7;
// System.Collections.IDictionaryEnumerator
struct IDictionaryEnumerator_t456EB67407D2045A257B66A3A25A825E883FD027;
// System.Diagnostics.StackTrace[]
struct StackTraceU5BU5D_t855F09649EA34DEE7C1B6F088E0538E3CCC3F196;
// System.Exception
struct Exception_t;
// System.Int32[]
struct Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83;
// System.IntPtr[]
struct IntPtrU5BU5D_t4DC01DCB9A6DF6C9792A6513595D7A11E637DCDD;
// System.MarshalByRefObject
struct MarshalByRefObject_tC4577953D0A44D0AB8597CFA868E01C858B1C9AF;
// System.Object[]
struct ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A;
// System.Reflection.MethodBase
struct MethodBase_t;
// System.Reflection.MonoMethod
struct MonoMethod_t;
// System.Runtime.CompilerServices.IAsyncStateMachine
struct IAsyncStateMachine_tEFDFBE18E061A6065AB2FF735F1425FB59F919BC;
// System.Runtime.Remoting.Identity
struct Identity_tB4E8BEFF42D505C9B24C9284934E6538F29606B6;
// System.Runtime.Remoting.Messaging.ArgInfo
struct ArgInfo_t67419B6DE53980148631C33DF785307579134942;
// System.Runtime.Remoting.Messaging.AsyncResult
struct AsyncResult_tCCDC69FF29D3DE32F7BD57870BBC329EFF8E58E2;
// System.Runtime.Remoting.Messaging.IMessageSink
struct IMessageSink_tB1CED1C3E8A2782C843D48468DB443B7940FC76C;
// System.Runtime.Remoting.Messaging.IMethodCallMessage
struct IMethodCallMessage_t9A3B0B9D1DCB71D44BB799FD5CA1100C4824C386;
// System.Runtime.Remoting.Messaging.IMethodMessage
struct IMethodMessage_tAF63A8DBD140DA0E8F5D8385270F81429CAA6420;
// System.Runtime.Remoting.Messaging.LogicalCallContext
struct LogicalCallContext_t3A9A7C02A28577F0879F6E950E46EEC595731D7E;
// System.Runtime.Remoting.Messaging.MCMDictionary
struct MCMDictionary_tD801081CC84A219F173B4A5A90A53A75A43D5434;
// System.Runtime.Remoting.Messaging.MessageDictionary
struct MessageDictionary_tC2DDCAFD65B74954A76393BCE90E57F58298F5C5;
// System.Runtime.Remoting.Messaging.MethodReturnDictionary
struct MethodReturnDictionary_tFCD4ADFA43AA2736517130020BBB9E60A253EB48;
// System.Runtime.Remoting.Messaging.ObjRefSurrogate
struct ObjRefSurrogate_tE2F801FFAE2DBDE6B44A528F7E537922F3840547;
// System.Runtime.Remoting.Messaging.RemotingSurrogate
struct RemotingSurrogate_t722F41294C1F4DEA38A993DB43F51AC8CBB494BA;
// System.Runtime.Remoting.Proxies.RealProxy
struct RealProxy_t4B0A745F7C99373132CC67FE86D13421411361EF;
// System.Runtime.Remoting.ServerIdentity
struct ServerIdentity_t93C5C5C4D608C5E714F0C5061B9BFC17B3B567D2;
// System.Runtime.Serialization.ISurrogateSelector
struct ISurrogateSelector_t4C99617DAC31689CEC0EDB09B067A65E80E1C3EA;
// System.Runtime.Serialization.SafeSerializationManager
struct SafeSerializationManager_t4A754D86B0F784B18CBC36C073BA564BED109770;
// System.String
struct String_t;
// System.String[]
struct StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E;
// System.Threading.ContextCallback
struct ContextCallback_t8AE8A965AC6C7ECD396F527F15CDC8E683BE1676;
// System.Threading.ExecutionContext
struct ExecutionContext_t0E11C30308A4CC964D8A2EA9132F9BDCE5362C70;
// System.Threading.SendOrPostCallback
struct SendOrPostCallback_t3F9C0164860E4AA5138DF8B4488DFB0D33147F01;
// System.Threading.SynchronizationContext
struct SynchronizationContext_t06AEFE2C7CFCFC242D0A5729A74464AF18CF84E7;
// System.Threading.Tasks.Task
struct Task_t1F48C203E163126EBC69ACCA679D1A462DEE9EB2;
// System.Threading.Tasks.Task`1<System.Boolean>
struct Task_1_tD6131FE3A3A2F1D58DB886B6CF31A2672B75B439;
// System.Threading.Tasks.Task`1<System.Int32>[]
struct Task_1U5BU5D_tF1E5C7D356B3C934B63AB0B3384819D681C4FD20;
// System.Threading.Tasks.Task`1<System.Threading.Tasks.VoidTaskResult>
struct Task_1_t1359D75350E9D976BFA28AD96E417450DE277673;
// System.Threading.WaitCallback
struct WaitCallback_t61C5F053CAC7A7FE923208EFA060693D7997B4EC;
// System.Type
struct Type_t;
// System.Type[]
struct TypeU5BU5D_t7FE623A666B49176DE123306221193E888A12F5F;
// System.UInt32[]
struct UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB;
struct AsyncResult_tCCDC69FF29D3DE32F7BD57870BBC329EFF8E58E2_marshaled_com;
struct AsyncResult_tCCDC69FF29D3DE32F7BD57870BBC329EFF8E58E2_marshaled_pinvoke;
struct Exception_t_marshaled_com;
struct Exception_t_marshaled_pinvoke;
#ifndef RUNTIMEOBJECT_H
#define RUNTIMEOBJECT_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Object
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // RUNTIMEOBJECT_H
#ifndef ATTRIBUTE_TF048C13FB3C8CFCC53F82290E4A3F621089F9A74_H
#define ATTRIBUTE_TF048C13FB3C8CFCC53F82290E4A3F621089F9A74_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Attribute
struct Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74 : public RuntimeObject
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // ATTRIBUTE_TF048C13FB3C8CFCC53F82290E4A3F621089F9A74_H
#ifndef EVENTARGS_T8E6CA180BE0E56674C6407011A94BAF7C757352E_H
#define EVENTARGS_T8E6CA180BE0E56674C6407011A94BAF7C757352E_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.EventArgs
struct EventArgs_t8E6CA180BE0E56674C6407011A94BAF7C757352E : public RuntimeObject
{
public:
public:
};
struct EventArgs_t8E6CA180BE0E56674C6407011A94BAF7C757352E_StaticFields
{
public:
// System.EventArgs System.EventArgs::Empty
EventArgs_t8E6CA180BE0E56674C6407011A94BAF7C757352E * ___Empty_0;
public:
inline static int32_t get_offset_of_Empty_0() { return static_cast<int32_t>(offsetof(EventArgs_t8E6CA180BE0E56674C6407011A94BAF7C757352E_StaticFields, ___Empty_0)); }
inline EventArgs_t8E6CA180BE0E56674C6407011A94BAF7C757352E * get_Empty_0() const { return ___Empty_0; }
inline EventArgs_t8E6CA180BE0E56674C6407011A94BAF7C757352E ** get_address_of_Empty_0() { return &___Empty_0; }
inline void set_Empty_0(EventArgs_t8E6CA180BE0E56674C6407011A94BAF7C757352E * value)
{
___Empty_0 = value;
Il2CppCodeGenWriteBarrier((&___Empty_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // EVENTARGS_T8E6CA180BE0E56674C6407011A94BAF7C757352E_H
#ifndef EXCEPTION_T_H
#define EXCEPTION_T_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Exception
struct Exception_t : public RuntimeObject
{
public:
// System.String System.Exception::_className
String_t* ____className_1;
// System.String System.Exception::_message
String_t* ____message_2;
// System.Collections.IDictionary System.Exception::_data
RuntimeObject* ____data_3;
// System.Exception System.Exception::_innerException
Exception_t * ____innerException_4;
// System.String System.Exception::_helpURL
String_t* ____helpURL_5;
// System.Object System.Exception::_stackTrace
RuntimeObject * ____stackTrace_6;
// System.String System.Exception::_stackTraceString
String_t* ____stackTraceString_7;
// System.String System.Exception::_remoteStackTraceString
String_t* ____remoteStackTraceString_8;
// System.Int32 System.Exception::_remoteStackIndex
int32_t ____remoteStackIndex_9;
// System.Object System.Exception::_dynamicMethods
RuntimeObject * ____dynamicMethods_10;
// System.Int32 System.Exception::_HResult
int32_t ____HResult_11;
// System.String System.Exception::_source
String_t* ____source_12;
// System.Runtime.Serialization.SafeSerializationManager System.Exception::_safeSerializationManager
SafeSerializationManager_t4A754D86B0F784B18CBC36C073BA564BED109770 * ____safeSerializationManager_13;
// System.Diagnostics.StackTrace[] System.Exception::captured_traces
StackTraceU5BU5D_t855F09649EA34DEE7C1B6F088E0538E3CCC3F196* ___captured_traces_14;
// System.IntPtr[] System.Exception::native_trace_ips
IntPtrU5BU5D_t4DC01DCB9A6DF6C9792A6513595D7A11E637DCDD* ___native_trace_ips_15;
public:
inline static int32_t get_offset_of__className_1() { return static_cast<int32_t>(offsetof(Exception_t, ____className_1)); }
inline String_t* get__className_1() const { return ____className_1; }
inline String_t** get_address_of__className_1() { return &____className_1; }
inline void set__className_1(String_t* value)
{
____className_1 = value;
Il2CppCodeGenWriteBarrier((&____className_1), value);
}
inline static int32_t get_offset_of__message_2() { return static_cast<int32_t>(offsetof(Exception_t, ____message_2)); }
inline String_t* get__message_2() const { return ____message_2; }
inline String_t** get_address_of__message_2() { return &____message_2; }
inline void set__message_2(String_t* value)
{
____message_2 = value;
Il2CppCodeGenWriteBarrier((&____message_2), value);
}
inline static int32_t get_offset_of__data_3() { return static_cast<int32_t>(offsetof(Exception_t, ____data_3)); }
inline RuntimeObject* get__data_3() const { return ____data_3; }
inline RuntimeObject** get_address_of__data_3() { return &____data_3; }
inline void set__data_3(RuntimeObject* value)
{
____data_3 = value;
Il2CppCodeGenWriteBarrier((&____data_3), value);
}
inline static int32_t get_offset_of__innerException_4() { return static_cast<int32_t>(offsetof(Exception_t, ____innerException_4)); }
inline Exception_t * get__innerException_4() const { return ____innerException_4; }
inline Exception_t ** get_address_of__innerException_4() { return &____innerException_4; }
inline void set__innerException_4(Exception_t * value)
{
____innerException_4 = value;
Il2CppCodeGenWriteBarrier((&____innerException_4), value);
}
inline static int32_t get_offset_of__helpURL_5() { return static_cast<int32_t>(offsetof(Exception_t, ____helpURL_5)); }
inline String_t* get__helpURL_5() const { return ____helpURL_5; }
inline String_t** get_address_of__helpURL_5() { return &____helpURL_5; }
inline void set__helpURL_5(String_t* value)
{
____helpURL_5 = value;
Il2CppCodeGenWriteBarrier((&____helpURL_5), value);
}
inline static int32_t get_offset_of__stackTrace_6() { return static_cast<int32_t>(offsetof(Exception_t, ____stackTrace_6)); }
inline RuntimeObject * get__stackTrace_6() const { return ____stackTrace_6; }
inline RuntimeObject ** get_address_of__stackTrace_6() { return &____stackTrace_6; }
inline void set__stackTrace_6(RuntimeObject * value)
{
____stackTrace_6 = value;
Il2CppCodeGenWriteBarrier((&____stackTrace_6), value);
}
inline static int32_t get_offset_of__stackTraceString_7() { return static_cast<int32_t>(offsetof(Exception_t, ____stackTraceString_7)); }
inline String_t* get__stackTraceString_7() const { return ____stackTraceString_7; }
inline String_t** get_address_of__stackTraceString_7() { return &____stackTraceString_7; }
inline void set__stackTraceString_7(String_t* value)
{
____stackTraceString_7 = value;
Il2CppCodeGenWriteBarrier((&____stackTraceString_7), value);
}
inline static int32_t get_offset_of__remoteStackTraceString_8() { return static_cast<int32_t>(offsetof(Exception_t, ____remoteStackTraceString_8)); }
inline String_t* get__remoteStackTraceString_8() const { return ____remoteStackTraceString_8; }
inline String_t** get_address_of__remoteStackTraceString_8() { return &____remoteStackTraceString_8; }
inline void set__remoteStackTraceString_8(String_t* value)
{
____remoteStackTraceString_8 = value;
Il2CppCodeGenWriteBarrier((&____remoteStackTraceString_8), value);
}
inline static int32_t get_offset_of__remoteStackIndex_9() { return static_cast<int32_t>(offsetof(Exception_t, ____remoteStackIndex_9)); }
inline int32_t get__remoteStackIndex_9() const { return ____remoteStackIndex_9; }
inline int32_t* get_address_of__remoteStackIndex_9() { return &____remoteStackIndex_9; }
inline void set__remoteStackIndex_9(int32_t value)
{
____remoteStackIndex_9 = value;
}
inline static int32_t get_offset_of__dynamicMethods_10() { return static_cast<int32_t>(offsetof(Exception_t, ____dynamicMethods_10)); }
inline RuntimeObject * get__dynamicMethods_10() const { return ____dynamicMethods_10; }
inline RuntimeObject ** get_address_of__dynamicMethods_10() { return &____dynamicMethods_10; }
inline void set__dynamicMethods_10(RuntimeObject * value)
{
____dynamicMethods_10 = value;
Il2CppCodeGenWriteBarrier((&____dynamicMethods_10), value);
}
inline static int32_t get_offset_of__HResult_11() { return static_cast<int32_t>(offsetof(Exception_t, ____HResult_11)); }
inline int32_t get__HResult_11() const { return ____HResult_11; }
inline int32_t* get_address_of__HResult_11() { return &____HResult_11; }
inline void set__HResult_11(int32_t value)
{
____HResult_11 = value;
}
inline static int32_t get_offset_of__source_12() { return static_cast<int32_t>(offsetof(Exception_t, ____source_12)); }
inline String_t* get__source_12() const { return ____source_12; }
inline String_t** get_address_of__source_12() { return &____source_12; }
inline void set__source_12(String_t* value)
{
____source_12 = value;
Il2CppCodeGenWriteBarrier((&____source_12), value);
}
inline static int32_t get_offset_of__safeSerializationManager_13() { return static_cast<int32_t>(offsetof(Exception_t, ____safeSerializationManager_13)); }
inline SafeSerializationManager_t4A754D86B0F784B18CBC36C073BA564BED109770 * get__safeSerializationManager_13() const { return ____safeSerializationManager_13; }
inline SafeSerializationManager_t4A754D86B0F784B18CBC36C073BA564BED109770 ** get_address_of__safeSerializationManager_13() { return &____safeSerializationManager_13; }
inline void set__safeSerializationManager_13(SafeSerializationManager_t4A754D86B0F784B18CBC36C073BA564BED109770 * value)
{
____safeSerializationManager_13 = value;
Il2CppCodeGenWriteBarrier((&____safeSerializationManager_13), value);
}
inline static int32_t get_offset_of_captured_traces_14() { return static_cast<int32_t>(offsetof(Exception_t, ___captured_traces_14)); }
inline StackTraceU5BU5D_t855F09649EA34DEE7C1B6F088E0538E3CCC3F196* get_captured_traces_14() const { return ___captured_traces_14; }
inline StackTraceU5BU5D_t855F09649EA34DEE7C1B6F088E0538E3CCC3F196** get_address_of_captured_traces_14() { return &___captured_traces_14; }
inline void set_captured_traces_14(StackTraceU5BU5D_t855F09649EA34DEE7C1B6F088E0538E3CCC3F196* value)
{
___captured_traces_14 = value;
Il2CppCodeGenWriteBarrier((&___captured_traces_14), value);
}
inline static int32_t get_offset_of_native_trace_ips_15() { return static_cast<int32_t>(offsetof(Exception_t, ___native_trace_ips_15)); }
inline IntPtrU5BU5D_t4DC01DCB9A6DF6C9792A6513595D7A11E637DCDD* get_native_trace_ips_15() const { return ___native_trace_ips_15; }
inline IntPtrU5BU5D_t4DC01DCB9A6DF6C9792A6513595D7A11E637DCDD** get_address_of_native_trace_ips_15() { return &___native_trace_ips_15; }
inline void set_native_trace_ips_15(IntPtrU5BU5D_t4DC01DCB9A6DF6C9792A6513595D7A11E637DCDD* value)
{
___native_trace_ips_15 = value;
Il2CppCodeGenWriteBarrier((&___native_trace_ips_15), value);
}
};
struct Exception_t_StaticFields
{
public:
// System.Object System.Exception::s_EDILock
RuntimeObject * ___s_EDILock_0;
public:
inline static int32_t get_offset_of_s_EDILock_0() { return static_cast<int32_t>(offsetof(Exception_t_StaticFields, ___s_EDILock_0)); }
inline RuntimeObject * get_s_EDILock_0() const { return ___s_EDILock_0; }
inline RuntimeObject ** get_address_of_s_EDILock_0() { return &___s_EDILock_0; }
inline void set_s_EDILock_0(RuntimeObject * value)
{
___s_EDILock_0 = value;
Il2CppCodeGenWriteBarrier((&___s_EDILock_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// Native definition for P/Invoke marshalling of System.Exception
struct Exception_t_marshaled_pinvoke
{
char* ____className_1;
char* ____message_2;
RuntimeObject* ____data_3;
Exception_t_marshaled_pinvoke* ____innerException_4;
char* ____helpURL_5;
Il2CppIUnknown* ____stackTrace_6;
char* ____stackTraceString_7;
char* ____remoteStackTraceString_8;
int32_t ____remoteStackIndex_9;
Il2CppIUnknown* ____dynamicMethods_10;
int32_t ____HResult_11;
char* ____source_12;
SafeSerializationManager_t4A754D86B0F784B18CBC36C073BA564BED109770 * ____safeSerializationManager_13;
StackTraceU5BU5D_t855F09649EA34DEE7C1B6F088E0538E3CCC3F196* ___captured_traces_14;
intptr_t* ___native_trace_ips_15;
};
// Native definition for COM marshalling of System.Exception
struct Exception_t_marshaled_com
{
Il2CppChar* ____className_1;
Il2CppChar* ____message_2;
RuntimeObject* ____data_3;
Exception_t_marshaled_com* ____innerException_4;
Il2CppChar* ____helpURL_5;
Il2CppIUnknown* ____stackTrace_6;
Il2CppChar* ____stackTraceString_7;
Il2CppChar* ____remoteStackTraceString_8;
int32_t ____remoteStackIndex_9;
Il2CppIUnknown* ____dynamicMethods_10;
int32_t ____HResult_11;
Il2CppChar* ____source_12;
SafeSerializationManager_t4A754D86B0F784B18CBC36C073BA564BED109770 * ____safeSerializationManager_13;
StackTraceU5BU5D_t855F09649EA34DEE7C1B6F088E0538E3CCC3F196* ___captured_traces_14;
intptr_t* ___native_trace_ips_15;
};
#endif // EXCEPTION_T_H
#ifndef U3CU3EC_TFBB9560424DFB5E39123CDE092BE03875E657079_H
#define U3CU3EC_TFBB9560424DFB5E39123CDE092BE03875E657079_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.CompilerServices.AsyncMethodBuilderCore_<>c
struct U3CU3Ec_tFBB9560424DFB5E39123CDE092BE03875E657079 : public RuntimeObject
{
public:
public:
};
struct U3CU3Ec_tFBB9560424DFB5E39123CDE092BE03875E657079_StaticFields
{
public:
// System.Runtime.CompilerServices.AsyncMethodBuilderCore_<>c System.Runtime.CompilerServices.AsyncMethodBuilderCore_<>c::<>9
U3CU3Ec_tFBB9560424DFB5E39123CDE092BE03875E657079 * ___U3CU3E9_0;
// System.Threading.SendOrPostCallback System.Runtime.CompilerServices.AsyncMethodBuilderCore_<>c::<>9__6_0
SendOrPostCallback_t3F9C0164860E4AA5138DF8B4488DFB0D33147F01 * ___U3CU3E9__6_0_1;
// System.Threading.WaitCallback System.Runtime.CompilerServices.AsyncMethodBuilderCore_<>c::<>9__6_1
WaitCallback_t61C5F053CAC7A7FE923208EFA060693D7997B4EC * ___U3CU3E9__6_1_2;
public:
inline static int32_t get_offset_of_U3CU3E9_0() { return static_cast<int32_t>(offsetof(U3CU3Ec_tFBB9560424DFB5E39123CDE092BE03875E657079_StaticFields, ___U3CU3E9_0)); }
inline U3CU3Ec_tFBB9560424DFB5E39123CDE092BE03875E657079 * get_U3CU3E9_0() const { return ___U3CU3E9_0; }
inline U3CU3Ec_tFBB9560424DFB5E39123CDE092BE03875E657079 ** get_address_of_U3CU3E9_0() { return &___U3CU3E9_0; }
inline void set_U3CU3E9_0(U3CU3Ec_tFBB9560424DFB5E39123CDE092BE03875E657079 * value)
{
___U3CU3E9_0 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3E9_0), value);
}
inline static int32_t get_offset_of_U3CU3E9__6_0_1() { return static_cast<int32_t>(offsetof(U3CU3Ec_tFBB9560424DFB5E39123CDE092BE03875E657079_StaticFields, ___U3CU3E9__6_0_1)); }
inline SendOrPostCallback_t3F9C0164860E4AA5138DF8B4488DFB0D33147F01 * get_U3CU3E9__6_0_1() const { return ___U3CU3E9__6_0_1; }
inline SendOrPostCallback_t3F9C0164860E4AA5138DF8B4488DFB0D33147F01 ** get_address_of_U3CU3E9__6_0_1() { return &___U3CU3E9__6_0_1; }
inline void set_U3CU3E9__6_0_1(SendOrPostCallback_t3F9C0164860E4AA5138DF8B4488DFB0D33147F01 * value)
{
___U3CU3E9__6_0_1 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3E9__6_0_1), value);
}
inline static int32_t get_offset_of_U3CU3E9__6_1_2() { return static_cast<int32_t>(offsetof(U3CU3Ec_tFBB9560424DFB5E39123CDE092BE03875E657079_StaticFields, ___U3CU3E9__6_1_2)); }
inline WaitCallback_t61C5F053CAC7A7FE923208EFA060693D7997B4EC * get_U3CU3E9__6_1_2() const { return ___U3CU3E9__6_1_2; }
inline WaitCallback_t61C5F053CAC7A7FE923208EFA060693D7997B4EC ** get_address_of_U3CU3E9__6_1_2() { return &___U3CU3E9__6_1_2; }
inline void set_U3CU3E9__6_1_2(WaitCallback_t61C5F053CAC7A7FE923208EFA060693D7997B4EC * value)
{
___U3CU3E9__6_1_2 = value;
Il2CppCodeGenWriteBarrier((&___U3CU3E9__6_1_2), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // U3CU3EC_TFBB9560424DFB5E39123CDE092BE03875E657079_H
#ifndef U3CU3EC__DISPLAYCLASS4_0_T91BE7D82E3148DC17AD2CF3AFA190EE3018F2368_H
#define U3CU3EC__DISPLAYCLASS4_0_T91BE7D82E3148DC17AD2CF3AFA190EE3018F2368_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.CompilerServices.AsyncMethodBuilderCore_<>c__DisplayClass4_0
struct U3CU3Ec__DisplayClass4_0_t91BE7D82E3148DC17AD2CF3AFA190EE3018F2368 : public RuntimeObject
{
public:
// System.Threading.Tasks.Task System.Runtime.CompilerServices.AsyncMethodBuilderCore_<>c__DisplayClass4_0::innerTask
Task_t1F48C203E163126EBC69ACCA679D1A462DEE9EB2 * ___innerTask_0;
// System.Action System.Runtime.CompilerServices.AsyncMethodBuilderCore_<>c__DisplayClass4_0::continuation
Action_t591D2A86165F896B4B800BB5C25CE18672A55579 * ___continuation_1;
public:
inline static int32_t get_offset_of_innerTask_0() { return static_cast<int32_t>(offsetof(U3CU3Ec__DisplayClass4_0_t91BE7D82E3148DC17AD2CF3AFA190EE3018F2368, ___innerTask_0)); }
inline Task_t1F48C203E163126EBC69ACCA679D1A462DEE9EB2 * get_innerTask_0() const { return ___innerTask_0; }
inline Task_t1F48C203E163126EBC69ACCA679D1A462DEE9EB2 ** get_address_of_innerTask_0() { return &___innerTask_0; }
inline void set_innerTask_0(Task_t1F48C203E163126EBC69ACCA679D1A462DEE9EB2 * value)
{
___innerTask_0 = value;
Il2CppCodeGenWriteBarrier((&___innerTask_0), value);
}
inline static int32_t get_offset_of_continuation_1() { return static_cast<int32_t>(offsetof(U3CU3Ec__DisplayClass4_0_t91BE7D82E3148DC17AD2CF3AFA190EE3018F2368, ___continuation_1)); }
inline Action_t591D2A86165F896B4B800BB5C25CE18672A55579 * get_continuation_1() const { return ___continuation_1; }
inline Action_t591D2A86165F896B4B800BB5C25CE18672A55579 ** get_address_of_continuation_1() { return &___continuation_1; }
inline void set_continuation_1(Action_t591D2A86165F896B4B800BB5C25CE18672A55579 * value)
{
___continuation_1 = value;
Il2CppCodeGenWriteBarrier((&___continuation_1), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // U3CU3EC__DISPLAYCLASS4_0_T91BE7D82E3148DC17AD2CF3AFA190EE3018F2368_H
#ifndef CONTINUATIONWRAPPER_TCC429E05B578FB77DAD5970B18B3DD07748DB201_H
#define CONTINUATIONWRAPPER_TCC429E05B578FB77DAD5970B18B3DD07748DB201_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.CompilerServices.AsyncMethodBuilderCore_ContinuationWrapper
struct ContinuationWrapper_tCC429E05B578FB77DAD5970B18B3DD07748DB201 : public RuntimeObject
{
public:
// System.Action System.Runtime.CompilerServices.AsyncMethodBuilderCore_ContinuationWrapper::m_continuation
Action_t591D2A86165F896B4B800BB5C25CE18672A55579 * ___m_continuation_0;
// System.Action System.Runtime.CompilerServices.AsyncMethodBuilderCore_ContinuationWrapper::m_invokeAction
Action_t591D2A86165F896B4B800BB5C25CE18672A55579 * ___m_invokeAction_1;
// System.Threading.Tasks.Task System.Runtime.CompilerServices.AsyncMethodBuilderCore_ContinuationWrapper::m_innerTask
Task_t1F48C203E163126EBC69ACCA679D1A462DEE9EB2 * ___m_innerTask_2;
public:
inline static int32_t get_offset_of_m_continuation_0() { return static_cast<int32_t>(offsetof(ContinuationWrapper_tCC429E05B578FB77DAD5970B18B3DD07748DB201, ___m_continuation_0)); }
inline Action_t591D2A86165F896B4B800BB5C25CE18672A55579 * get_m_continuation_0() const { return ___m_continuation_0; }
inline Action_t591D2A86165F896B4B800BB5C25CE18672A55579 ** get_address_of_m_continuation_0() { return &___m_continuation_0; }
inline void set_m_continuation_0(Action_t591D2A86165F896B4B800BB5C25CE18672A55579 * value)
{
___m_continuation_0 = value;
Il2CppCodeGenWriteBarrier((&___m_continuation_0), value);
}
inline static int32_t get_offset_of_m_invokeAction_1() { return static_cast<int32_t>(offsetof(ContinuationWrapper_tCC429E05B578FB77DAD5970B18B3DD07748DB201, ___m_invokeAction_1)); }
inline Action_t591D2A86165F896B4B800BB5C25CE18672A55579 * get_m_invokeAction_1() const { return ___m_invokeAction_1; }
inline Action_t591D2A86165F896B4B800BB5C25CE18672A55579 ** get_address_of_m_invokeAction_1() { return &___m_invokeAction_1; }
inline void set_m_invokeAction_1(Action_t591D2A86165F896B4B800BB5C25CE18672A55579 * value)
{
___m_invokeAction_1 = value;
Il2CppCodeGenWriteBarrier((&___m_invokeAction_1), value);
}
inline static int32_t get_offset_of_m_innerTask_2() { return static_cast<int32_t>(offsetof(ContinuationWrapper_tCC429E05B578FB77DAD5970B18B3DD07748DB201, ___m_innerTask_2)); }
inline Task_t1F48C203E163126EBC69ACCA679D1A462DEE9EB2 * get_m_innerTask_2() const { return ___m_innerTask_2; }
inline Task_t1F48C203E163126EBC69ACCA679D1A462DEE9EB2 ** get_address_of_m_innerTask_2() { return &___m_innerTask_2; }
inline void set_m_innerTask_2(Task_t1F48C203E163126EBC69ACCA679D1A462DEE9EB2 * value)
{
___m_innerTask_2 = value;
Il2CppCodeGenWriteBarrier((&___m_innerTask_2), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // CONTINUATIONWRAPPER_TCC429E05B578FB77DAD5970B18B3DD07748DB201_H
#ifndef MOVENEXTRUNNER_T6A0B9DE31628DAC797ABC84945D4C62B07C3E65A_H
#define MOVENEXTRUNNER_T6A0B9DE31628DAC797ABC84945D4C62B07C3E65A_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.CompilerServices.AsyncMethodBuilderCore_MoveNextRunner
struct MoveNextRunner_t6A0B9DE31628DAC797ABC84945D4C62B07C3E65A : public RuntimeObject
{
public:
// System.Threading.ExecutionContext System.Runtime.CompilerServices.AsyncMethodBuilderCore_MoveNextRunner::m_context
ExecutionContext_t0E11C30308A4CC964D8A2EA9132F9BDCE5362C70 * ___m_context_0;
// System.Runtime.CompilerServices.IAsyncStateMachine System.Runtime.CompilerServices.AsyncMethodBuilderCore_MoveNextRunner::m_stateMachine
RuntimeObject* ___m_stateMachine_1;
public:
inline static int32_t get_offset_of_m_context_0() { return static_cast<int32_t>(offsetof(MoveNextRunner_t6A0B9DE31628DAC797ABC84945D4C62B07C3E65A, ___m_context_0)); }
inline ExecutionContext_t0E11C30308A4CC964D8A2EA9132F9BDCE5362C70 * get_m_context_0() const { return ___m_context_0; }
inline ExecutionContext_t0E11C30308A4CC964D8A2EA9132F9BDCE5362C70 ** get_address_of_m_context_0() { return &___m_context_0; }
inline void set_m_context_0(ExecutionContext_t0E11C30308A4CC964D8A2EA9132F9BDCE5362C70 * value)
{
___m_context_0 = value;
Il2CppCodeGenWriteBarrier((&___m_context_0), value);
}
inline static int32_t get_offset_of_m_stateMachine_1() { return static_cast<int32_t>(offsetof(MoveNextRunner_t6A0B9DE31628DAC797ABC84945D4C62B07C3E65A, ___m_stateMachine_1)); }
inline RuntimeObject* get_m_stateMachine_1() const { return ___m_stateMachine_1; }
inline RuntimeObject** get_address_of_m_stateMachine_1() { return &___m_stateMachine_1; }
inline void set_m_stateMachine_1(RuntimeObject* value)
{
___m_stateMachine_1 = value;
Il2CppCodeGenWriteBarrier((&___m_stateMachine_1), value);
}
};
struct MoveNextRunner_t6A0B9DE31628DAC797ABC84945D4C62B07C3E65A_StaticFields
{
public:
// System.Threading.ContextCallback System.Runtime.CompilerServices.AsyncMethodBuilderCore_MoveNextRunner::s_invokeMoveNext
ContextCallback_t8AE8A965AC6C7ECD396F527F15CDC8E683BE1676 * ___s_invokeMoveNext_2;
public:
inline static int32_t get_offset_of_s_invokeMoveNext_2() { return static_cast<int32_t>(offsetof(MoveNextRunner_t6A0B9DE31628DAC797ABC84945D4C62B07C3E65A_StaticFields, ___s_invokeMoveNext_2)); }
inline ContextCallback_t8AE8A965AC6C7ECD396F527F15CDC8E683BE1676 * get_s_invokeMoveNext_2() const { return ___s_invokeMoveNext_2; }
inline ContextCallback_t8AE8A965AC6C7ECD396F527F15CDC8E683BE1676 ** get_address_of_s_invokeMoveNext_2() { return &___s_invokeMoveNext_2; }
inline void set_s_invokeMoveNext_2(ContextCallback_t8AE8A965AC6C7ECD396F527F15CDC8E683BE1676 * value)
{
___s_invokeMoveNext_2 = value;
Il2CppCodeGenWriteBarrier((&___s_invokeMoveNext_2), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // MOVENEXTRUNNER_T6A0B9DE31628DAC797ABC84945D4C62B07C3E65A_H
#ifndef ASYNCTASKCACHE_T34A97832FCD6948CE68777740FA37AEAB550E6CF_H
#define ASYNCTASKCACHE_T34A97832FCD6948CE68777740FA37AEAB550E6CF_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.CompilerServices.AsyncTaskCache
struct AsyncTaskCache_t34A97832FCD6948CE68777740FA37AEAB550E6CF : public RuntimeObject
{
public:
public:
};
struct AsyncTaskCache_t34A97832FCD6948CE68777740FA37AEAB550E6CF_StaticFields
{
public:
// System.Threading.Tasks.Task`1<System.Boolean> System.Runtime.CompilerServices.AsyncTaskCache::TrueTask
Task_1_tD6131FE3A3A2F1D58DB886B6CF31A2672B75B439 * ___TrueTask_0;
// System.Threading.Tasks.Task`1<System.Boolean> System.Runtime.CompilerServices.AsyncTaskCache::FalseTask
Task_1_tD6131FE3A3A2F1D58DB886B6CF31A2672B75B439 * ___FalseTask_1;
// System.Threading.Tasks.Task`1<System.Int32>[] System.Runtime.CompilerServices.AsyncTaskCache::Int32Tasks
Task_1U5BU5D_tF1E5C7D356B3C934B63AB0B3384819D681C4FD20* ___Int32Tasks_2;
public:
inline static int32_t get_offset_of_TrueTask_0() { return static_cast<int32_t>(offsetof(AsyncTaskCache_t34A97832FCD6948CE68777740FA37AEAB550E6CF_StaticFields, ___TrueTask_0)); }
inline Task_1_tD6131FE3A3A2F1D58DB886B6CF31A2672B75B439 * get_TrueTask_0() const { return ___TrueTask_0; }
inline Task_1_tD6131FE3A3A2F1D58DB886B6CF31A2672B75B439 ** get_address_of_TrueTask_0() { return &___TrueTask_0; }
inline void set_TrueTask_0(Task_1_tD6131FE3A3A2F1D58DB886B6CF31A2672B75B439 * value)
{
___TrueTask_0 = value;
Il2CppCodeGenWriteBarrier((&___TrueTask_0), value);
}
inline static int32_t get_offset_of_FalseTask_1() { return static_cast<int32_t>(offsetof(AsyncTaskCache_t34A97832FCD6948CE68777740FA37AEAB550E6CF_StaticFields, ___FalseTask_1)); }
inline Task_1_tD6131FE3A3A2F1D58DB886B6CF31A2672B75B439 * get_FalseTask_1() const { return ___FalseTask_1; }
inline Task_1_tD6131FE3A3A2F1D58DB886B6CF31A2672B75B439 ** get_address_of_FalseTask_1() { return &___FalseTask_1; }
inline void set_FalseTask_1(Task_1_tD6131FE3A3A2F1D58DB886B6CF31A2672B75B439 * value)
{
___FalseTask_1 = value;
Il2CppCodeGenWriteBarrier((&___FalseTask_1), value);
}
inline static int32_t get_offset_of_Int32Tasks_2() { return static_cast<int32_t>(offsetof(AsyncTaskCache_t34A97832FCD6948CE68777740FA37AEAB550E6CF_StaticFields, ___Int32Tasks_2)); }
inline Task_1U5BU5D_tF1E5C7D356B3C934B63AB0B3384819D681C4FD20* get_Int32Tasks_2() const { return ___Int32Tasks_2; }
inline Task_1U5BU5D_tF1E5C7D356B3C934B63AB0B3384819D681C4FD20** get_address_of_Int32Tasks_2() { return &___Int32Tasks_2; }
inline void set_Int32Tasks_2(Task_1U5BU5D_tF1E5C7D356B3C934B63AB0B3384819D681C4FD20* value)
{
___Int32Tasks_2 = value;
Il2CppCodeGenWriteBarrier((&___Int32Tasks_2), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // ASYNCTASKCACHE_T34A97832FCD6948CE68777740FA37AEAB550E6CF_H
#ifndef ISVOLATILE_TF1A54712356B3B8EABAFA930B5C9372D27A18AEC_H
#define ISVOLATILE_TF1A54712356B3B8EABAFA930B5C9372D27A18AEC_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.CompilerServices.IsVolatile
struct IsVolatile_tF1A54712356B3B8EABAFA930B5C9372D27A18AEC : public RuntimeObject
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // ISVOLATILE_TF1A54712356B3B8EABAFA930B5C9372D27A18AEC_H
#ifndef JITHELPERS_T6BCD6CAFCA9C54EDD15CC80B7D7416E8711E8AAB_H
#define JITHELPERS_T6BCD6CAFCA9C54EDD15CC80B7D7416E8711E8AAB_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.CompilerServices.JitHelpers
struct JitHelpers_t6BCD6CAFCA9C54EDD15CC80B7D7416E8711E8AAB : public RuntimeObject
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // JITHELPERS_T6BCD6CAFCA9C54EDD15CC80B7D7416E8711E8AAB_H
#ifndef RUNTIMEHELPERS_TB6CD53A56BCACB431A632ACD2709F245DBE3FA2E_H
#define RUNTIMEHELPERS_TB6CD53A56BCACB431A632ACD2709F245DBE3FA2E_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.CompilerServices.RuntimeHelpers
struct RuntimeHelpers_tB6CD53A56BCACB431A632ACD2709F245DBE3FA2E : public RuntimeObject
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // RUNTIMEHELPERS_TB6CD53A56BCACB431A632ACD2709F245DBE3FA2E_H
#ifndef CRITICALFINALIZEROBJECT_T8B006E1DEE084E781F5C0F3283E9226E28894DD9_H
#define CRITICALFINALIZEROBJECT_T8B006E1DEE084E781F5C0F3283E9226E28894DD9_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.ConstrainedExecution.CriticalFinalizerObject
struct CriticalFinalizerObject_t8B006E1DEE084E781F5C0F3283E9226E28894DD9 : public RuntimeObject
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // CRITICALFINALIZEROBJECT_T8B006E1DEE084E781F5C0F3283E9226E28894DD9_H
#ifndef EXCEPTIONDISPATCHINFO_T0C54083F3909DAF986A4DEAA7C047559531E0E2A_H
#define EXCEPTIONDISPATCHINFO_T0C54083F3909DAF986A4DEAA7C047559531E0E2A_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.ExceptionServices.ExceptionDispatchInfo
struct ExceptionDispatchInfo_t0C54083F3909DAF986A4DEAA7C047559531E0E2A : public RuntimeObject
{
public:
// System.Exception System.Runtime.ExceptionServices.ExceptionDispatchInfo::m_Exception
Exception_t * ___m_Exception_0;
// System.Object System.Runtime.ExceptionServices.ExceptionDispatchInfo::m_stackTrace
RuntimeObject * ___m_stackTrace_1;
public:
inline static int32_t get_offset_of_m_Exception_0() { return static_cast<int32_t>(offsetof(ExceptionDispatchInfo_t0C54083F3909DAF986A4DEAA7C047559531E0E2A, ___m_Exception_0)); }
inline Exception_t * get_m_Exception_0() const { return ___m_Exception_0; }
inline Exception_t ** get_address_of_m_Exception_0() { return &___m_Exception_0; }
inline void set_m_Exception_0(Exception_t * value)
{
___m_Exception_0 = value;
Il2CppCodeGenWriteBarrier((&___m_Exception_0), value);
}
inline static int32_t get_offset_of_m_stackTrace_1() { return static_cast<int32_t>(offsetof(ExceptionDispatchInfo_t0C54083F3909DAF986A4DEAA7C047559531E0E2A, ___m_stackTrace_1)); }
inline RuntimeObject * get_m_stackTrace_1() const { return ___m_stackTrace_1; }
inline RuntimeObject ** get_address_of_m_stackTrace_1() { return &___m_stackTrace_1; }
inline void set_m_stackTrace_1(RuntimeObject * value)
{
___m_stackTrace_1 = value;
Il2CppCodeGenWriteBarrier((&___m_stackTrace_1), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // EXCEPTIONDISPATCHINFO_T0C54083F3909DAF986A4DEAA7C047559531E0E2A_H
#ifndef MESSAGEDICTIONARY_TC2DDCAFD65B74954A76393BCE90E57F58298F5C5_H
#define MESSAGEDICTIONARY_TC2DDCAFD65B74954A76393BCE90E57F58298F5C5_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.Remoting.Messaging.MessageDictionary
struct MessageDictionary_tC2DDCAFD65B74954A76393BCE90E57F58298F5C5 : public RuntimeObject
{
public:
// System.Collections.IDictionary System.Runtime.Remoting.Messaging.MessageDictionary::_internalProperties
RuntimeObject* ____internalProperties_0;
// System.Runtime.Remoting.Messaging.IMethodMessage System.Runtime.Remoting.Messaging.MessageDictionary::_message
RuntimeObject* ____message_1;
// System.String[] System.Runtime.Remoting.Messaging.MessageDictionary::_methodKeys
StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* ____methodKeys_2;
// System.Boolean System.Runtime.Remoting.Messaging.MessageDictionary::_ownProperties
bool ____ownProperties_3;
public:
inline static int32_t get_offset_of__internalProperties_0() { return static_cast<int32_t>(offsetof(MessageDictionary_tC2DDCAFD65B74954A76393BCE90E57F58298F5C5, ____internalProperties_0)); }
inline RuntimeObject* get__internalProperties_0() const { return ____internalProperties_0; }
inline RuntimeObject** get_address_of__internalProperties_0() { return &____internalProperties_0; }
inline void set__internalProperties_0(RuntimeObject* value)
{
____internalProperties_0 = value;
Il2CppCodeGenWriteBarrier((&____internalProperties_0), value);
}
inline static int32_t get_offset_of__message_1() { return static_cast<int32_t>(offsetof(MessageDictionary_tC2DDCAFD65B74954A76393BCE90E57F58298F5C5, ____message_1)); }
inline RuntimeObject* get__message_1() const { return ____message_1; }
inline RuntimeObject** get_address_of__message_1() { return &____message_1; }
inline void set__message_1(RuntimeObject* value)
{
____message_1 = value;
Il2CppCodeGenWriteBarrier((&____message_1), value);
}
inline static int32_t get_offset_of__methodKeys_2() { return static_cast<int32_t>(offsetof(MessageDictionary_tC2DDCAFD65B74954A76393BCE90E57F58298F5C5, ____methodKeys_2)); }
inline StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* get__methodKeys_2() const { return ____methodKeys_2; }
inline StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E** get_address_of__methodKeys_2() { return &____methodKeys_2; }
inline void set__methodKeys_2(StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* value)
{
____methodKeys_2 = value;
Il2CppCodeGenWriteBarrier((&____methodKeys_2), value);
}
inline static int32_t get_offset_of__ownProperties_3() { return static_cast<int32_t>(offsetof(MessageDictionary_tC2DDCAFD65B74954A76393BCE90E57F58298F5C5, ____ownProperties_3)); }
inline bool get__ownProperties_3() const { return ____ownProperties_3; }
inline bool* get_address_of__ownProperties_3() { return &____ownProperties_3; }
inline void set__ownProperties_3(bool value)
{
____ownProperties_3 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // MESSAGEDICTIONARY_TC2DDCAFD65B74954A76393BCE90E57F58298F5C5_H
#ifndef DICTIONARYENUMERATOR_TA162086B57068DE62A7BAD2CAA7003E632DE2AB9_H
#define DICTIONARYENUMERATOR_TA162086B57068DE62A7BAD2CAA7003E632DE2AB9_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.Remoting.Messaging.MessageDictionary_DictionaryEnumerator
struct DictionaryEnumerator_tA162086B57068DE62A7BAD2CAA7003E632DE2AB9 : public RuntimeObject
{
public:
// System.Runtime.Remoting.Messaging.MessageDictionary System.Runtime.Remoting.Messaging.MessageDictionary_DictionaryEnumerator::_methodDictionary
MessageDictionary_tC2DDCAFD65B74954A76393BCE90E57F58298F5C5 * ____methodDictionary_0;
// System.Collections.IDictionaryEnumerator System.Runtime.Remoting.Messaging.MessageDictionary_DictionaryEnumerator::_hashtableEnum
RuntimeObject* ____hashtableEnum_1;
// System.Int32 System.Runtime.Remoting.Messaging.MessageDictionary_DictionaryEnumerator::_posMethod
int32_t ____posMethod_2;
public:
inline static int32_t get_offset_of__methodDictionary_0() { return static_cast<int32_t>(offsetof(DictionaryEnumerator_tA162086B57068DE62A7BAD2CAA7003E632DE2AB9, ____methodDictionary_0)); }
inline MessageDictionary_tC2DDCAFD65B74954A76393BCE90E57F58298F5C5 * get__methodDictionary_0() const { return ____methodDictionary_0; }
inline MessageDictionary_tC2DDCAFD65B74954A76393BCE90E57F58298F5C5 ** get_address_of__methodDictionary_0() { return &____methodDictionary_0; }
inline void set__methodDictionary_0(MessageDictionary_tC2DDCAFD65B74954A76393BCE90E57F58298F5C5 * value)
{
____methodDictionary_0 = value;
Il2CppCodeGenWriteBarrier((&____methodDictionary_0), value);
}
inline static int32_t get_offset_of__hashtableEnum_1() { return static_cast<int32_t>(offsetof(DictionaryEnumerator_tA162086B57068DE62A7BAD2CAA7003E632DE2AB9, ____hashtableEnum_1)); }
inline RuntimeObject* get__hashtableEnum_1() const { return ____hashtableEnum_1; }
inline RuntimeObject** get_address_of__hashtableEnum_1() { return &____hashtableEnum_1; }
inline void set__hashtableEnum_1(RuntimeObject* value)
{
____hashtableEnum_1 = value;
Il2CppCodeGenWriteBarrier((&____hashtableEnum_1), value);
}
inline static int32_t get_offset_of__posMethod_2() { return static_cast<int32_t>(offsetof(DictionaryEnumerator_tA162086B57068DE62A7BAD2CAA7003E632DE2AB9, ____posMethod_2)); }
inline int32_t get__posMethod_2() const { return ____posMethod_2; }
inline int32_t* get_address_of__posMethod_2() { return &____posMethod_2; }
inline void set__posMethod_2(int32_t value)
{
____posMethod_2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // DICTIONARYENUMERATOR_TA162086B57068DE62A7BAD2CAA7003E632DE2AB9_H
#ifndef METHODCALL_TF8FFD68F9EB80746F22EA5B9C23E9701A440E5CA_H
#define METHODCALL_TF8FFD68F9EB80746F22EA5B9C23E9701A440E5CA_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.Remoting.Messaging.MethodCall
struct MethodCall_tF8FFD68F9EB80746F22EA5B9C23E9701A440E5CA : public RuntimeObject
{
public:
// System.String System.Runtime.Remoting.Messaging.MethodCall::_uri
String_t* ____uri_0;
// System.String System.Runtime.Remoting.Messaging.MethodCall::_typeName
String_t* ____typeName_1;
// System.String System.Runtime.Remoting.Messaging.MethodCall::_methodName
String_t* ____methodName_2;
// System.Object[] System.Runtime.Remoting.Messaging.MethodCall::_args
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* ____args_3;
// System.Type[] System.Runtime.Remoting.Messaging.MethodCall::_methodSignature
TypeU5BU5D_t7FE623A666B49176DE123306221193E888A12F5F* ____methodSignature_4;
// System.Reflection.MethodBase System.Runtime.Remoting.Messaging.MethodCall::_methodBase
MethodBase_t * ____methodBase_5;
// System.Runtime.Remoting.Messaging.LogicalCallContext System.Runtime.Remoting.Messaging.MethodCall::_callContext
LogicalCallContext_t3A9A7C02A28577F0879F6E950E46EEC595731D7E * ____callContext_6;
// System.Runtime.Remoting.Identity System.Runtime.Remoting.Messaging.MethodCall::_targetIdentity
Identity_tB4E8BEFF42D505C9B24C9284934E6538F29606B6 * ____targetIdentity_7;
// System.Type[] System.Runtime.Remoting.Messaging.MethodCall::_genericArguments
TypeU5BU5D_t7FE623A666B49176DE123306221193E888A12F5F* ____genericArguments_8;
// System.Collections.IDictionary System.Runtime.Remoting.Messaging.MethodCall::ExternalProperties
RuntimeObject* ___ExternalProperties_9;
// System.Collections.IDictionary System.Runtime.Remoting.Messaging.MethodCall::InternalProperties
RuntimeObject* ___InternalProperties_10;
public:
inline static int32_t get_offset_of__uri_0() { return static_cast<int32_t>(offsetof(MethodCall_tF8FFD68F9EB80746F22EA5B9C23E9701A440E5CA, ____uri_0)); }
inline String_t* get__uri_0() const { return ____uri_0; }
inline String_t** get_address_of__uri_0() { return &____uri_0; }
inline void set__uri_0(String_t* value)
{
____uri_0 = value;
Il2CppCodeGenWriteBarrier((&____uri_0), value);
}
inline static int32_t get_offset_of__typeName_1() { return static_cast<int32_t>(offsetof(MethodCall_tF8FFD68F9EB80746F22EA5B9C23E9701A440E5CA, ____typeName_1)); }
inline String_t* get__typeName_1() const { return ____typeName_1; }
inline String_t** get_address_of__typeName_1() { return &____typeName_1; }
inline void set__typeName_1(String_t* value)
{
____typeName_1 = value;
Il2CppCodeGenWriteBarrier((&____typeName_1), value);
}
inline static int32_t get_offset_of__methodName_2() { return static_cast<int32_t>(offsetof(MethodCall_tF8FFD68F9EB80746F22EA5B9C23E9701A440E5CA, ____methodName_2)); }
inline String_t* get__methodName_2() const { return ____methodName_2; }
inline String_t** get_address_of__methodName_2() { return &____methodName_2; }
inline void set__methodName_2(String_t* value)
{
____methodName_2 = value;
Il2CppCodeGenWriteBarrier((&____methodName_2), value);
}
inline static int32_t get_offset_of__args_3() { return static_cast<int32_t>(offsetof(MethodCall_tF8FFD68F9EB80746F22EA5B9C23E9701A440E5CA, ____args_3)); }
inline ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* get__args_3() const { return ____args_3; }
inline ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A** get_address_of__args_3() { return &____args_3; }
inline void set__args_3(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* value)
{
____args_3 = value;
Il2CppCodeGenWriteBarrier((&____args_3), value);
}
inline static int32_t get_offset_of__methodSignature_4() { return static_cast<int32_t>(offsetof(MethodCall_tF8FFD68F9EB80746F22EA5B9C23E9701A440E5CA, ____methodSignature_4)); }
inline TypeU5BU5D_t7FE623A666B49176DE123306221193E888A12F5F* get__methodSignature_4() const { return ____methodSignature_4; }
inline TypeU5BU5D_t7FE623A666B49176DE123306221193E888A12F5F** get_address_of__methodSignature_4() { return &____methodSignature_4; }
inline void set__methodSignature_4(TypeU5BU5D_t7FE623A666B49176DE123306221193E888A12F5F* value)
{
____methodSignature_4 = value;
Il2CppCodeGenWriteBarrier((&____methodSignature_4), value);
}
inline static int32_t get_offset_of__methodBase_5() { return static_cast<int32_t>(offsetof(MethodCall_tF8FFD68F9EB80746F22EA5B9C23E9701A440E5CA, ____methodBase_5)); }
inline MethodBase_t * get__methodBase_5() const { return ____methodBase_5; }
inline MethodBase_t ** get_address_of__methodBase_5() { return &____methodBase_5; }
inline void set__methodBase_5(MethodBase_t * value)
{
____methodBase_5 = value;
Il2CppCodeGenWriteBarrier((&____methodBase_5), value);
}
inline static int32_t get_offset_of__callContext_6() { return static_cast<int32_t>(offsetof(MethodCall_tF8FFD68F9EB80746F22EA5B9C23E9701A440E5CA, ____callContext_6)); }
inline LogicalCallContext_t3A9A7C02A28577F0879F6E950E46EEC595731D7E * get__callContext_6() const { return ____callContext_6; }
inline LogicalCallContext_t3A9A7C02A28577F0879F6E950E46EEC595731D7E ** get_address_of__callContext_6() { return &____callContext_6; }
inline void set__callContext_6(LogicalCallContext_t3A9A7C02A28577F0879F6E950E46EEC595731D7E * value)
{
____callContext_6 = value;
Il2CppCodeGenWriteBarrier((&____callContext_6), value);
}
inline static int32_t get_offset_of__targetIdentity_7() { return static_cast<int32_t>(offsetof(MethodCall_tF8FFD68F9EB80746F22EA5B9C23E9701A440E5CA, ____targetIdentity_7)); }
inline Identity_tB4E8BEFF42D505C9B24C9284934E6538F29606B6 * get__targetIdentity_7() const { return ____targetIdentity_7; }
inline Identity_tB4E8BEFF42D505C9B24C9284934E6538F29606B6 ** get_address_of__targetIdentity_7() { return &____targetIdentity_7; }
inline void set__targetIdentity_7(Identity_tB4E8BEFF42D505C9B24C9284934E6538F29606B6 * value)
{
____targetIdentity_7 = value;
Il2CppCodeGenWriteBarrier((&____targetIdentity_7), value);
}
inline static int32_t get_offset_of__genericArguments_8() { return static_cast<int32_t>(offsetof(MethodCall_tF8FFD68F9EB80746F22EA5B9C23E9701A440E5CA, ____genericArguments_8)); }
inline TypeU5BU5D_t7FE623A666B49176DE123306221193E888A12F5F* get__genericArguments_8() const { return ____genericArguments_8; }
inline TypeU5BU5D_t7FE623A666B49176DE123306221193E888A12F5F** get_address_of__genericArguments_8() { return &____genericArguments_8; }
inline void set__genericArguments_8(TypeU5BU5D_t7FE623A666B49176DE123306221193E888A12F5F* value)
{
____genericArguments_8 = value;
Il2CppCodeGenWriteBarrier((&____genericArguments_8), value);
}
inline static int32_t get_offset_of_ExternalProperties_9() { return static_cast<int32_t>(offsetof(MethodCall_tF8FFD68F9EB80746F22EA5B9C23E9701A440E5CA, ___ExternalProperties_9)); }
inline RuntimeObject* get_ExternalProperties_9() const { return ___ExternalProperties_9; }
inline RuntimeObject** get_address_of_ExternalProperties_9() { return &___ExternalProperties_9; }
inline void set_ExternalProperties_9(RuntimeObject* value)
{
___ExternalProperties_9 = value;
Il2CppCodeGenWriteBarrier((&___ExternalProperties_9), value);
}
inline static int32_t get_offset_of_InternalProperties_10() { return static_cast<int32_t>(offsetof(MethodCall_tF8FFD68F9EB80746F22EA5B9C23E9701A440E5CA, ___InternalProperties_10)); }
inline RuntimeObject* get_InternalProperties_10() const { return ___InternalProperties_10; }
inline RuntimeObject** get_address_of_InternalProperties_10() { return &___InternalProperties_10; }
inline void set_InternalProperties_10(RuntimeObject* value)
{
___InternalProperties_10 = value;
Il2CppCodeGenWriteBarrier((&___InternalProperties_10), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // METHODCALL_TF8FFD68F9EB80746F22EA5B9C23E9701A440E5CA_H
#ifndef METHODRESPONSE_T185820C6B3E7D56E9026084CB2CEF1387151D907_H
#define METHODRESPONSE_T185820C6B3E7D56E9026084CB2CEF1387151D907_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.Remoting.Messaging.MethodResponse
struct MethodResponse_t185820C6B3E7D56E9026084CB2CEF1387151D907 : public RuntimeObject
{
public:
// System.String System.Runtime.Remoting.Messaging.MethodResponse::_methodName
String_t* ____methodName_0;
// System.String System.Runtime.Remoting.Messaging.MethodResponse::_uri
String_t* ____uri_1;
// System.String System.Runtime.Remoting.Messaging.MethodResponse::_typeName
String_t* ____typeName_2;
// System.Reflection.MethodBase System.Runtime.Remoting.Messaging.MethodResponse::_methodBase
MethodBase_t * ____methodBase_3;
// System.Object System.Runtime.Remoting.Messaging.MethodResponse::_returnValue
RuntimeObject * ____returnValue_4;
// System.Exception System.Runtime.Remoting.Messaging.MethodResponse::_exception
Exception_t * ____exception_5;
// System.Type[] System.Runtime.Remoting.Messaging.MethodResponse::_methodSignature
TypeU5BU5D_t7FE623A666B49176DE123306221193E888A12F5F* ____methodSignature_6;
// System.Runtime.Remoting.Messaging.ArgInfo System.Runtime.Remoting.Messaging.MethodResponse::_inArgInfo
ArgInfo_t67419B6DE53980148631C33DF785307579134942 * ____inArgInfo_7;
// System.Object[] System.Runtime.Remoting.Messaging.MethodResponse::_args
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* ____args_8;
// System.Object[] System.Runtime.Remoting.Messaging.MethodResponse::_outArgs
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* ____outArgs_9;
// System.Runtime.Remoting.Messaging.IMethodCallMessage System.Runtime.Remoting.Messaging.MethodResponse::_callMsg
RuntimeObject* ____callMsg_10;
// System.Runtime.Remoting.Messaging.LogicalCallContext System.Runtime.Remoting.Messaging.MethodResponse::_callContext
LogicalCallContext_t3A9A7C02A28577F0879F6E950E46EEC595731D7E * ____callContext_11;
// System.Runtime.Remoting.Identity System.Runtime.Remoting.Messaging.MethodResponse::_targetIdentity
Identity_tB4E8BEFF42D505C9B24C9284934E6538F29606B6 * ____targetIdentity_12;
// System.Collections.IDictionary System.Runtime.Remoting.Messaging.MethodResponse::ExternalProperties
RuntimeObject* ___ExternalProperties_13;
// System.Collections.IDictionary System.Runtime.Remoting.Messaging.MethodResponse::InternalProperties
RuntimeObject* ___InternalProperties_14;
public:
inline static int32_t get_offset_of__methodName_0() { return static_cast<int32_t>(offsetof(MethodResponse_t185820C6B3E7D56E9026084CB2CEF1387151D907, ____methodName_0)); }
inline String_t* get__methodName_0() const { return ____methodName_0; }
inline String_t** get_address_of__methodName_0() { return &____methodName_0; }
inline void set__methodName_0(String_t* value)
{
____methodName_0 = value;
Il2CppCodeGenWriteBarrier((&____methodName_0), value);
}
inline static int32_t get_offset_of__uri_1() { return static_cast<int32_t>(offsetof(MethodResponse_t185820C6B3E7D56E9026084CB2CEF1387151D907, ____uri_1)); }
inline String_t* get__uri_1() const { return ____uri_1; }
inline String_t** get_address_of__uri_1() { return &____uri_1; }
inline void set__uri_1(String_t* value)
{
____uri_1 = value;
Il2CppCodeGenWriteBarrier((&____uri_1), value);
}
inline static int32_t get_offset_of__typeName_2() { return static_cast<int32_t>(offsetof(MethodResponse_t185820C6B3E7D56E9026084CB2CEF1387151D907, ____typeName_2)); }
inline String_t* get__typeName_2() const { return ____typeName_2; }
inline String_t** get_address_of__typeName_2() { return &____typeName_2; }
inline void set__typeName_2(String_t* value)
{
____typeName_2 = value;
Il2CppCodeGenWriteBarrier((&____typeName_2), value);
}
inline static int32_t get_offset_of__methodBase_3() { return static_cast<int32_t>(offsetof(MethodResponse_t185820C6B3E7D56E9026084CB2CEF1387151D907, ____methodBase_3)); }
inline MethodBase_t * get__methodBase_3() const { return ____methodBase_3; }
inline MethodBase_t ** get_address_of__methodBase_3() { return &____methodBase_3; }
inline void set__methodBase_3(MethodBase_t * value)
{
____methodBase_3 = value;
Il2CppCodeGenWriteBarrier((&____methodBase_3), value);
}
inline static int32_t get_offset_of__returnValue_4() { return static_cast<int32_t>(offsetof(MethodResponse_t185820C6B3E7D56E9026084CB2CEF1387151D907, ____returnValue_4)); }
inline RuntimeObject * get__returnValue_4() const { return ____returnValue_4; }
inline RuntimeObject ** get_address_of__returnValue_4() { return &____returnValue_4; }
inline void set__returnValue_4(RuntimeObject * value)
{
____returnValue_4 = value;
Il2CppCodeGenWriteBarrier((&____returnValue_4), value);
}
inline static int32_t get_offset_of__exception_5() { return static_cast<int32_t>(offsetof(MethodResponse_t185820C6B3E7D56E9026084CB2CEF1387151D907, ____exception_5)); }
inline Exception_t * get__exception_5() const { return ____exception_5; }
inline Exception_t ** get_address_of__exception_5() { return &____exception_5; }
inline void set__exception_5(Exception_t * value)
{
____exception_5 = value;
Il2CppCodeGenWriteBarrier((&____exception_5), value);
}
inline static int32_t get_offset_of__methodSignature_6() { return static_cast<int32_t>(offsetof(MethodResponse_t185820C6B3E7D56E9026084CB2CEF1387151D907, ____methodSignature_6)); }
inline TypeU5BU5D_t7FE623A666B49176DE123306221193E888A12F5F* get__methodSignature_6() const { return ____methodSignature_6; }
inline TypeU5BU5D_t7FE623A666B49176DE123306221193E888A12F5F** get_address_of__methodSignature_6() { return &____methodSignature_6; }
inline void set__methodSignature_6(TypeU5BU5D_t7FE623A666B49176DE123306221193E888A12F5F* value)
{
____methodSignature_6 = value;
Il2CppCodeGenWriteBarrier((&____methodSignature_6), value);
}
inline static int32_t get_offset_of__inArgInfo_7() { return static_cast<int32_t>(offsetof(MethodResponse_t185820C6B3E7D56E9026084CB2CEF1387151D907, ____inArgInfo_7)); }
inline ArgInfo_t67419B6DE53980148631C33DF785307579134942 * get__inArgInfo_7() const { return ____inArgInfo_7; }
inline ArgInfo_t67419B6DE53980148631C33DF785307579134942 ** get_address_of__inArgInfo_7() { return &____inArgInfo_7; }
inline void set__inArgInfo_7(ArgInfo_t67419B6DE53980148631C33DF785307579134942 * value)
{
____inArgInfo_7 = value;
Il2CppCodeGenWriteBarrier((&____inArgInfo_7), value);
}
inline static int32_t get_offset_of__args_8() { return static_cast<int32_t>(offsetof(MethodResponse_t185820C6B3E7D56E9026084CB2CEF1387151D907, ____args_8)); }
inline ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* get__args_8() const { return ____args_8; }
inline ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A** get_address_of__args_8() { return &____args_8; }
inline void set__args_8(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* value)
{
____args_8 = value;
Il2CppCodeGenWriteBarrier((&____args_8), value);
}
inline static int32_t get_offset_of__outArgs_9() { return static_cast<int32_t>(offsetof(MethodResponse_t185820C6B3E7D56E9026084CB2CEF1387151D907, ____outArgs_9)); }
inline ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* get__outArgs_9() const { return ____outArgs_9; }
inline ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A** get_address_of__outArgs_9() { return &____outArgs_9; }
inline void set__outArgs_9(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* value)
{
____outArgs_9 = value;
Il2CppCodeGenWriteBarrier((&____outArgs_9), value);
}
inline static int32_t get_offset_of__callMsg_10() { return static_cast<int32_t>(offsetof(MethodResponse_t185820C6B3E7D56E9026084CB2CEF1387151D907, ____callMsg_10)); }
inline RuntimeObject* get__callMsg_10() const { return ____callMsg_10; }
inline RuntimeObject** get_address_of__callMsg_10() { return &____callMsg_10; }
inline void set__callMsg_10(RuntimeObject* value)
{
____callMsg_10 = value;
Il2CppCodeGenWriteBarrier((&____callMsg_10), value);
}
inline static int32_t get_offset_of__callContext_11() { return static_cast<int32_t>(offsetof(MethodResponse_t185820C6B3E7D56E9026084CB2CEF1387151D907, ____callContext_11)); }
inline LogicalCallContext_t3A9A7C02A28577F0879F6E950E46EEC595731D7E * get__callContext_11() const { return ____callContext_11; }
inline LogicalCallContext_t3A9A7C02A28577F0879F6E950E46EEC595731D7E ** get_address_of__callContext_11() { return &____callContext_11; }
inline void set__callContext_11(LogicalCallContext_t3A9A7C02A28577F0879F6E950E46EEC595731D7E * value)
{
____callContext_11 = value;
Il2CppCodeGenWriteBarrier((&____callContext_11), value);
}
inline static int32_t get_offset_of__targetIdentity_12() { return static_cast<int32_t>(offsetof(MethodResponse_t185820C6B3E7D56E9026084CB2CEF1387151D907, ____targetIdentity_12)); }
inline Identity_tB4E8BEFF42D505C9B24C9284934E6538F29606B6 * get__targetIdentity_12() const { return ____targetIdentity_12; }
inline Identity_tB4E8BEFF42D505C9B24C9284934E6538F29606B6 ** get_address_of__targetIdentity_12() { return &____targetIdentity_12; }
inline void set__targetIdentity_12(Identity_tB4E8BEFF42D505C9B24C9284934E6538F29606B6 * value)
{
____targetIdentity_12 = value;
Il2CppCodeGenWriteBarrier((&____targetIdentity_12), value);
}
inline static int32_t get_offset_of_ExternalProperties_13() { return static_cast<int32_t>(offsetof(MethodResponse_t185820C6B3E7D56E9026084CB2CEF1387151D907, ___ExternalProperties_13)); }
inline RuntimeObject* get_ExternalProperties_13() const { return ___ExternalProperties_13; }
inline RuntimeObject** get_address_of_ExternalProperties_13() { return &___ExternalProperties_13; }
inline void set_ExternalProperties_13(RuntimeObject* value)
{
___ExternalProperties_13 = value;
Il2CppCodeGenWriteBarrier((&___ExternalProperties_13), value);
}
inline static int32_t get_offset_of_InternalProperties_14() { return static_cast<int32_t>(offsetof(MethodResponse_t185820C6B3E7D56E9026084CB2CEF1387151D907, ___InternalProperties_14)); }
inline RuntimeObject* get_InternalProperties_14() const { return ___InternalProperties_14; }
inline RuntimeObject** get_address_of_InternalProperties_14() { return &___InternalProperties_14; }
inline void set_InternalProperties_14(RuntimeObject* value)
{
___InternalProperties_14 = value;
Il2CppCodeGenWriteBarrier((&___InternalProperties_14), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // METHODRESPONSE_T185820C6B3E7D56E9026084CB2CEF1387151D907_H
#ifndef OBJREFSURROGATE_TE2F801FFAE2DBDE6B44A528F7E537922F3840547_H
#define OBJREFSURROGATE_TE2F801FFAE2DBDE6B44A528F7E537922F3840547_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.Remoting.Messaging.ObjRefSurrogate
struct ObjRefSurrogate_tE2F801FFAE2DBDE6B44A528F7E537922F3840547 : public RuntimeObject
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // OBJREFSURROGATE_TE2F801FFAE2DBDE6B44A528F7E537922F3840547_H
#ifndef REMOTINGSURROGATE_T722F41294C1F4DEA38A993DB43F51AC8CBB494BA_H
#define REMOTINGSURROGATE_T722F41294C1F4DEA38A993DB43F51AC8CBB494BA_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.Remoting.Messaging.RemotingSurrogate
struct RemotingSurrogate_t722F41294C1F4DEA38A993DB43F51AC8CBB494BA : public RuntimeObject
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // REMOTINGSURROGATE_T722F41294C1F4DEA38A993DB43F51AC8CBB494BA_H
#ifndef REMOTINGSURROGATESELECTOR_TEABB3D5ACF04B7270F565E8BC105DDD94DDFFE44_H
#define REMOTINGSURROGATESELECTOR_TEABB3D5ACF04B7270F565E8BC105DDD94DDFFE44_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.Remoting.Messaging.RemotingSurrogateSelector
struct RemotingSurrogateSelector_tEABB3D5ACF04B7270F565E8BC105DDD94DDFFE44 : public RuntimeObject
{
public:
// System.Runtime.Serialization.ISurrogateSelector System.Runtime.Remoting.Messaging.RemotingSurrogateSelector::_next
RuntimeObject* ____next_3;
public:
inline static int32_t get_offset_of__next_3() { return static_cast<int32_t>(offsetof(RemotingSurrogateSelector_tEABB3D5ACF04B7270F565E8BC105DDD94DDFFE44, ____next_3)); }
inline RuntimeObject* get__next_3() const { return ____next_3; }
inline RuntimeObject** get_address_of__next_3() { return &____next_3; }
inline void set__next_3(RuntimeObject* value)
{
____next_3 = value;
Il2CppCodeGenWriteBarrier((&____next_3), value);
}
};
struct RemotingSurrogateSelector_tEABB3D5ACF04B7270F565E8BC105DDD94DDFFE44_StaticFields
{
public:
// System.Type System.Runtime.Remoting.Messaging.RemotingSurrogateSelector::s_cachedTypeObjRef
Type_t * ___s_cachedTypeObjRef_0;
// System.Runtime.Remoting.Messaging.ObjRefSurrogate System.Runtime.Remoting.Messaging.RemotingSurrogateSelector::_objRefSurrogate
ObjRefSurrogate_tE2F801FFAE2DBDE6B44A528F7E537922F3840547 * ____objRefSurrogate_1;
// System.Runtime.Remoting.Messaging.RemotingSurrogate System.Runtime.Remoting.Messaging.RemotingSurrogateSelector::_objRemotingSurrogate
RemotingSurrogate_t722F41294C1F4DEA38A993DB43F51AC8CBB494BA * ____objRemotingSurrogate_2;
public:
inline static int32_t get_offset_of_s_cachedTypeObjRef_0() { return static_cast<int32_t>(offsetof(RemotingSurrogateSelector_tEABB3D5ACF04B7270F565E8BC105DDD94DDFFE44_StaticFields, ___s_cachedTypeObjRef_0)); }
inline Type_t * get_s_cachedTypeObjRef_0() const { return ___s_cachedTypeObjRef_0; }
inline Type_t ** get_address_of_s_cachedTypeObjRef_0() { return &___s_cachedTypeObjRef_0; }
inline void set_s_cachedTypeObjRef_0(Type_t * value)
{
___s_cachedTypeObjRef_0 = value;
Il2CppCodeGenWriteBarrier((&___s_cachedTypeObjRef_0), value);
}
inline static int32_t get_offset_of__objRefSurrogate_1() { return static_cast<int32_t>(offsetof(RemotingSurrogateSelector_tEABB3D5ACF04B7270F565E8BC105DDD94DDFFE44_StaticFields, ____objRefSurrogate_1)); }
inline ObjRefSurrogate_tE2F801FFAE2DBDE6B44A528F7E537922F3840547 * get__objRefSurrogate_1() const { return ____objRefSurrogate_1; }
inline ObjRefSurrogate_tE2F801FFAE2DBDE6B44A528F7E537922F3840547 ** get_address_of__objRefSurrogate_1() { return &____objRefSurrogate_1; }
inline void set__objRefSurrogate_1(ObjRefSurrogate_tE2F801FFAE2DBDE6B44A528F7E537922F3840547 * value)
{
____objRefSurrogate_1 = value;
Il2CppCodeGenWriteBarrier((&____objRefSurrogate_1), value);
}
inline static int32_t get_offset_of__objRemotingSurrogate_2() { return static_cast<int32_t>(offsetof(RemotingSurrogateSelector_tEABB3D5ACF04B7270F565E8BC105DDD94DDFFE44_StaticFields, ____objRemotingSurrogate_2)); }
inline RemotingSurrogate_t722F41294C1F4DEA38A993DB43F51AC8CBB494BA * get__objRemotingSurrogate_2() const { return ____objRemotingSurrogate_2; }
inline RemotingSurrogate_t722F41294C1F4DEA38A993DB43F51AC8CBB494BA ** get_address_of__objRemotingSurrogate_2() { return &____objRemotingSurrogate_2; }
inline void set__objRemotingSurrogate_2(RemotingSurrogate_t722F41294C1F4DEA38A993DB43F51AC8CBB494BA * value)
{
____objRemotingSurrogate_2 = value;
Il2CppCodeGenWriteBarrier((&____objRemotingSurrogate_2), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // REMOTINGSURROGATESELECTOR_TEABB3D5ACF04B7270F565E8BC105DDD94DDFFE44_H
#ifndef RETURNMESSAGE_TCB42BAB06521388D0FC8E5745FC9A74FCC4E6E03_H
#define RETURNMESSAGE_TCB42BAB06521388D0FC8E5745FC9A74FCC4E6E03_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.Remoting.Messaging.ReturnMessage
struct ReturnMessage_tCB42BAB06521388D0FC8E5745FC9A74FCC4E6E03 : public RuntimeObject
{
public:
// System.Object[] System.Runtime.Remoting.Messaging.ReturnMessage::_outArgs
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* ____outArgs_0;
// System.Object[] System.Runtime.Remoting.Messaging.ReturnMessage::_args
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* ____args_1;
// System.Runtime.Remoting.Messaging.LogicalCallContext System.Runtime.Remoting.Messaging.ReturnMessage::_callCtx
LogicalCallContext_t3A9A7C02A28577F0879F6E950E46EEC595731D7E * ____callCtx_2;
// System.Object System.Runtime.Remoting.Messaging.ReturnMessage::_returnValue
RuntimeObject * ____returnValue_3;
// System.String System.Runtime.Remoting.Messaging.ReturnMessage::_uri
String_t* ____uri_4;
// System.Exception System.Runtime.Remoting.Messaging.ReturnMessage::_exception
Exception_t * ____exception_5;
// System.Reflection.MethodBase System.Runtime.Remoting.Messaging.ReturnMessage::_methodBase
MethodBase_t * ____methodBase_6;
// System.String System.Runtime.Remoting.Messaging.ReturnMessage::_methodName
String_t* ____methodName_7;
// System.Type[] System.Runtime.Remoting.Messaging.ReturnMessage::_methodSignature
TypeU5BU5D_t7FE623A666B49176DE123306221193E888A12F5F* ____methodSignature_8;
// System.String System.Runtime.Remoting.Messaging.ReturnMessage::_typeName
String_t* ____typeName_9;
// System.Runtime.Remoting.Messaging.MethodReturnDictionary System.Runtime.Remoting.Messaging.ReturnMessage::_properties
MethodReturnDictionary_tFCD4ADFA43AA2736517130020BBB9E60A253EB48 * ____properties_10;
// System.Runtime.Remoting.Identity System.Runtime.Remoting.Messaging.ReturnMessage::_targetIdentity
Identity_tB4E8BEFF42D505C9B24C9284934E6538F29606B6 * ____targetIdentity_11;
// System.Runtime.Remoting.Messaging.ArgInfo System.Runtime.Remoting.Messaging.ReturnMessage::_inArgInfo
ArgInfo_t67419B6DE53980148631C33DF785307579134942 * ____inArgInfo_12;
public:
inline static int32_t get_offset_of__outArgs_0() { return static_cast<int32_t>(offsetof(ReturnMessage_tCB42BAB06521388D0FC8E5745FC9A74FCC4E6E03, ____outArgs_0)); }
inline ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* get__outArgs_0() const { return ____outArgs_0; }
inline ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A** get_address_of__outArgs_0() { return &____outArgs_0; }
inline void set__outArgs_0(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* value)
{
____outArgs_0 = value;
Il2CppCodeGenWriteBarrier((&____outArgs_0), value);
}
inline static int32_t get_offset_of__args_1() { return static_cast<int32_t>(offsetof(ReturnMessage_tCB42BAB06521388D0FC8E5745FC9A74FCC4E6E03, ____args_1)); }
inline ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* get__args_1() const { return ____args_1; }
inline ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A** get_address_of__args_1() { return &____args_1; }
inline void set__args_1(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* value)
{
____args_1 = value;
Il2CppCodeGenWriteBarrier((&____args_1), value);
}
inline static int32_t get_offset_of__callCtx_2() { return static_cast<int32_t>(offsetof(ReturnMessage_tCB42BAB06521388D0FC8E5745FC9A74FCC4E6E03, ____callCtx_2)); }
inline LogicalCallContext_t3A9A7C02A28577F0879F6E950E46EEC595731D7E * get__callCtx_2() const { return ____callCtx_2; }
inline LogicalCallContext_t3A9A7C02A28577F0879F6E950E46EEC595731D7E ** get_address_of__callCtx_2() { return &____callCtx_2; }
inline void set__callCtx_2(LogicalCallContext_t3A9A7C02A28577F0879F6E950E46EEC595731D7E * value)
{
____callCtx_2 = value;
Il2CppCodeGenWriteBarrier((&____callCtx_2), value);
}
inline static int32_t get_offset_of__returnValue_3() { return static_cast<int32_t>(offsetof(ReturnMessage_tCB42BAB06521388D0FC8E5745FC9A74FCC4E6E03, ____returnValue_3)); }
inline RuntimeObject * get__returnValue_3() const { return ____returnValue_3; }
inline RuntimeObject ** get_address_of__returnValue_3() { return &____returnValue_3; }
inline void set__returnValue_3(RuntimeObject * value)
{
____returnValue_3 = value;
Il2CppCodeGenWriteBarrier((&____returnValue_3), value);
}
inline static int32_t get_offset_of__uri_4() { return static_cast<int32_t>(offsetof(ReturnMessage_tCB42BAB06521388D0FC8E5745FC9A74FCC4E6E03, ____uri_4)); }
inline String_t* get__uri_4() const { return ____uri_4; }
inline String_t** get_address_of__uri_4() { return &____uri_4; }
inline void set__uri_4(String_t* value)
{
____uri_4 = value;
Il2CppCodeGenWriteBarrier((&____uri_4), value);
}
inline static int32_t get_offset_of__exception_5() { return static_cast<int32_t>(offsetof(ReturnMessage_tCB42BAB06521388D0FC8E5745FC9A74FCC4E6E03, ____exception_5)); }
inline Exception_t * get__exception_5() const { return ____exception_5; }
inline Exception_t ** get_address_of__exception_5() { return &____exception_5; }
inline void set__exception_5(Exception_t * value)
{
____exception_5 = value;
Il2CppCodeGenWriteBarrier((&____exception_5), value);
}
inline static int32_t get_offset_of__methodBase_6() { return static_cast<int32_t>(offsetof(ReturnMessage_tCB42BAB06521388D0FC8E5745FC9A74FCC4E6E03, ____methodBase_6)); }
inline MethodBase_t * get__methodBase_6() const { return ____methodBase_6; }
inline MethodBase_t ** get_address_of__methodBase_6() { return &____methodBase_6; }
inline void set__methodBase_6(MethodBase_t * value)
{
____methodBase_6 = value;
Il2CppCodeGenWriteBarrier((&____methodBase_6), value);
}
inline static int32_t get_offset_of__methodName_7() { return static_cast<int32_t>(offsetof(ReturnMessage_tCB42BAB06521388D0FC8E5745FC9A74FCC4E6E03, ____methodName_7)); }
inline String_t* get__methodName_7() const { return ____methodName_7; }
inline String_t** get_address_of__methodName_7() { return &____methodName_7; }
inline void set__methodName_7(String_t* value)
{
____methodName_7 = value;
Il2CppCodeGenWriteBarrier((&____methodName_7), value);
}
inline static int32_t get_offset_of__methodSignature_8() { return static_cast<int32_t>(offsetof(ReturnMessage_tCB42BAB06521388D0FC8E5745FC9A74FCC4E6E03, ____methodSignature_8)); }
inline TypeU5BU5D_t7FE623A666B49176DE123306221193E888A12F5F* get__methodSignature_8() const { return ____methodSignature_8; }
inline TypeU5BU5D_t7FE623A666B49176DE123306221193E888A12F5F** get_address_of__methodSignature_8() { return &____methodSignature_8; }
inline void set__methodSignature_8(TypeU5BU5D_t7FE623A666B49176DE123306221193E888A12F5F* value)
{
____methodSignature_8 = value;
Il2CppCodeGenWriteBarrier((&____methodSignature_8), value);
}
inline static int32_t get_offset_of__typeName_9() { return static_cast<int32_t>(offsetof(ReturnMessage_tCB42BAB06521388D0FC8E5745FC9A74FCC4E6E03, ____typeName_9)); }
inline String_t* get__typeName_9() const { return ____typeName_9; }
inline String_t** get_address_of__typeName_9() { return &____typeName_9; }
inline void set__typeName_9(String_t* value)
{
____typeName_9 = value;
Il2CppCodeGenWriteBarrier((&____typeName_9), value);
}
inline static int32_t get_offset_of__properties_10() { return static_cast<int32_t>(offsetof(ReturnMessage_tCB42BAB06521388D0FC8E5745FC9A74FCC4E6E03, ____properties_10)); }
inline MethodReturnDictionary_tFCD4ADFA43AA2736517130020BBB9E60A253EB48 * get__properties_10() const { return ____properties_10; }
inline MethodReturnDictionary_tFCD4ADFA43AA2736517130020BBB9E60A253EB48 ** get_address_of__properties_10() { return &____properties_10; }
inline void set__properties_10(MethodReturnDictionary_tFCD4ADFA43AA2736517130020BBB9E60A253EB48 * value)
{
____properties_10 = value;
Il2CppCodeGenWriteBarrier((&____properties_10), value);
}
inline static int32_t get_offset_of__targetIdentity_11() { return static_cast<int32_t>(offsetof(ReturnMessage_tCB42BAB06521388D0FC8E5745FC9A74FCC4E6E03, ____targetIdentity_11)); }
inline Identity_tB4E8BEFF42D505C9B24C9284934E6538F29606B6 * get__targetIdentity_11() const { return ____targetIdentity_11; }
inline Identity_tB4E8BEFF42D505C9B24C9284934E6538F29606B6 ** get_address_of__targetIdentity_11() { return &____targetIdentity_11; }
inline void set__targetIdentity_11(Identity_tB4E8BEFF42D505C9B24C9284934E6538F29606B6 * value)
{
____targetIdentity_11 = value;
Il2CppCodeGenWriteBarrier((&____targetIdentity_11), value);
}
inline static int32_t get_offset_of__inArgInfo_12() { return static_cast<int32_t>(offsetof(ReturnMessage_tCB42BAB06521388D0FC8E5745FC9A74FCC4E6E03, ____inArgInfo_12)); }
inline ArgInfo_t67419B6DE53980148631C33DF785307579134942 * get__inArgInfo_12() const { return ____inArgInfo_12; }
inline ArgInfo_t67419B6DE53980148631C33DF785307579134942 ** get_address_of__inArgInfo_12() { return &____inArgInfo_12; }
inline void set__inArgInfo_12(ArgInfo_t67419B6DE53980148631C33DF785307579134942 * value)
{
____inArgInfo_12 = value;
Il2CppCodeGenWriteBarrier((&____inArgInfo_12), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // RETURNMESSAGE_TCB42BAB06521388D0FC8E5745FC9A74FCC4E6E03_H
#ifndef SERVERCONTEXTTERMINATORSINK_T11FA44A0CACACA4A89B73434FB6D685479C6B8E0_H
#define SERVERCONTEXTTERMINATORSINK_T11FA44A0CACACA4A89B73434FB6D685479C6B8E0_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.Remoting.Messaging.ServerContextTerminatorSink
struct ServerContextTerminatorSink_t11FA44A0CACACA4A89B73434FB6D685479C6B8E0 : public RuntimeObject
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // SERVERCONTEXTTERMINATORSINK_T11FA44A0CACACA4A89B73434FB6D685479C6B8E0_H
#ifndef SERVEROBJECTREPLYSINK_TE1CEF247A2AC5DFD53842706CFE097CE9556CCB8_H
#define SERVEROBJECTREPLYSINK_TE1CEF247A2AC5DFD53842706CFE097CE9556CCB8_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.Remoting.Messaging.ServerObjectReplySink
struct ServerObjectReplySink_tE1CEF247A2AC5DFD53842706CFE097CE9556CCB8 : public RuntimeObject
{
public:
// System.Runtime.Remoting.Messaging.IMessageSink System.Runtime.Remoting.Messaging.ServerObjectReplySink::_replySink
RuntimeObject* ____replySink_0;
// System.Runtime.Remoting.ServerIdentity System.Runtime.Remoting.Messaging.ServerObjectReplySink::_identity
ServerIdentity_t93C5C5C4D608C5E714F0C5061B9BFC17B3B567D2 * ____identity_1;
public:
inline static int32_t get_offset_of__replySink_0() { return static_cast<int32_t>(offsetof(ServerObjectReplySink_tE1CEF247A2AC5DFD53842706CFE097CE9556CCB8, ____replySink_0)); }
inline RuntimeObject* get__replySink_0() const { return ____replySink_0; }
inline RuntimeObject** get_address_of__replySink_0() { return &____replySink_0; }
inline void set__replySink_0(RuntimeObject* value)
{
____replySink_0 = value;
Il2CppCodeGenWriteBarrier((&____replySink_0), value);
}
inline static int32_t get_offset_of__identity_1() { return static_cast<int32_t>(offsetof(ServerObjectReplySink_tE1CEF247A2AC5DFD53842706CFE097CE9556CCB8, ____identity_1)); }
inline ServerIdentity_t93C5C5C4D608C5E714F0C5061B9BFC17B3B567D2 * get__identity_1() const { return ____identity_1; }
inline ServerIdentity_t93C5C5C4D608C5E714F0C5061B9BFC17B3B567D2 ** get_address_of__identity_1() { return &____identity_1; }
inline void set__identity_1(ServerIdentity_t93C5C5C4D608C5E714F0C5061B9BFC17B3B567D2 * value)
{
____identity_1 = value;
Il2CppCodeGenWriteBarrier((&____identity_1), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // SERVEROBJECTREPLYSINK_TE1CEF247A2AC5DFD53842706CFE097CE9556CCB8_H
#ifndef SERVEROBJECTTERMINATORSINK_T635122FE05BCEDE34F4B07AA9590AD77509752FD_H
#define SERVEROBJECTTERMINATORSINK_T635122FE05BCEDE34F4B07AA9590AD77509752FD_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.Remoting.Messaging.ServerObjectTerminatorSink
struct ServerObjectTerminatorSink_t635122FE05BCEDE34F4B07AA9590AD77509752FD : public RuntimeObject
{
public:
// System.Runtime.Remoting.Messaging.IMessageSink System.Runtime.Remoting.Messaging.ServerObjectTerminatorSink::_nextSink
RuntimeObject* ____nextSink_0;
public:
inline static int32_t get_offset_of__nextSink_0() { return static_cast<int32_t>(offsetof(ServerObjectTerminatorSink_t635122FE05BCEDE34F4B07AA9590AD77509752FD, ____nextSink_0)); }
inline RuntimeObject* get__nextSink_0() const { return ____nextSink_0; }
inline RuntimeObject** get_address_of__nextSink_0() { return &____nextSink_0; }
inline void set__nextSink_0(RuntimeObject* value)
{
____nextSink_0 = value;
Il2CppCodeGenWriteBarrier((&____nextSink_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // SERVEROBJECTTERMINATORSINK_T635122FE05BCEDE34F4B07AA9590AD77509752FD_H
#ifndef STACKBUILDERSINK_T312B8C166D43B3871C33905CA64E57520C479897_H
#define STACKBUILDERSINK_T312B8C166D43B3871C33905CA64E57520C479897_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.Remoting.Messaging.StackBuilderSink
struct StackBuilderSink_t312B8C166D43B3871C33905CA64E57520C479897 : public RuntimeObject
{
public:
// System.MarshalByRefObject System.Runtime.Remoting.Messaging.StackBuilderSink::_target
MarshalByRefObject_tC4577953D0A44D0AB8597CFA868E01C858B1C9AF * ____target_0;
// System.Runtime.Remoting.Proxies.RealProxy System.Runtime.Remoting.Messaging.StackBuilderSink::_rp
RealProxy_t4B0A745F7C99373132CC67FE86D13421411361EF * ____rp_1;
public:
inline static int32_t get_offset_of__target_0() { return static_cast<int32_t>(offsetof(StackBuilderSink_t312B8C166D43B3871C33905CA64E57520C479897, ____target_0)); }
inline MarshalByRefObject_tC4577953D0A44D0AB8597CFA868E01C858B1C9AF * get__target_0() const { return ____target_0; }
inline MarshalByRefObject_tC4577953D0A44D0AB8597CFA868E01C858B1C9AF ** get_address_of__target_0() { return &____target_0; }
inline void set__target_0(MarshalByRefObject_tC4577953D0A44D0AB8597CFA868E01C858B1C9AF * value)
{
____target_0 = value;
Il2CppCodeGenWriteBarrier((&____target_0), value);
}
inline static int32_t get_offset_of__rp_1() { return static_cast<int32_t>(offsetof(StackBuilderSink_t312B8C166D43B3871C33905CA64E57520C479897, ____rp_1)); }
inline RealProxy_t4B0A745F7C99373132CC67FE86D13421411361EF * get__rp_1() const { return ____rp_1; }
inline RealProxy_t4B0A745F7C99373132CC67FE86D13421411361EF ** get_address_of__rp_1() { return &____rp_1; }
inline void set__rp_1(RealProxy_t4B0A745F7C99373132CC67FE86D13421411361EF * value)
{
____rp_1 = value;
Il2CppCodeGenWriteBarrier((&____rp_1), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // STACKBUILDERSINK_T312B8C166D43B3871C33905CA64E57520C479897_H
#ifndef VALUETYPE_T4D0C27076F7C36E76190FB3328E232BCB1CD1FFF_H
#define VALUETYPE_T4D0C27076F7C36E76190FB3328E232BCB1CD1FFF_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.ValueType
struct ValueType_t4D0C27076F7C36E76190FB3328E232BCB1CD1FFF : public RuntimeObject
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// Native definition for P/Invoke marshalling of System.ValueType
struct ValueType_t4D0C27076F7C36E76190FB3328E232BCB1CD1FFF_marshaled_pinvoke
{
};
// Native definition for COM marshalling of System.ValueType
struct ValueType_t4D0C27076F7C36E76190FB3328E232BCB1CD1FFF_marshaled_com
{
};
#endif // VALUETYPE_T4D0C27076F7C36E76190FB3328E232BCB1CD1FFF_H
#ifndef DATETIME_T349B7449FBAAFF4192636E2B7A07694DA9236132_H
#define DATETIME_T349B7449FBAAFF4192636E2B7A07694DA9236132_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.DateTime
struct DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132
{
public:
// System.UInt64 System.DateTime::dateData
uint64_t ___dateData_44;
public:
inline static int32_t get_offset_of_dateData_44() { return static_cast<int32_t>(offsetof(DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132, ___dateData_44)); }
inline uint64_t get_dateData_44() const { return ___dateData_44; }
inline uint64_t* get_address_of_dateData_44() { return &___dateData_44; }
inline void set_dateData_44(uint64_t value)
{
___dateData_44 = value;
}
};
struct DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132_StaticFields
{
public:
// System.Int32[] System.DateTime::DaysToMonth365
Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* ___DaysToMonth365_29;
// System.Int32[] System.DateTime::DaysToMonth366
Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* ___DaysToMonth366_30;
// System.DateTime System.DateTime::MinValue
DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 ___MinValue_31;
// System.DateTime System.DateTime::MaxValue
DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 ___MaxValue_32;
public:
inline static int32_t get_offset_of_DaysToMonth365_29() { return static_cast<int32_t>(offsetof(DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132_StaticFields, ___DaysToMonth365_29)); }
inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* get_DaysToMonth365_29() const { return ___DaysToMonth365_29; }
inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83** get_address_of_DaysToMonth365_29() { return &___DaysToMonth365_29; }
inline void set_DaysToMonth365_29(Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* value)
{
___DaysToMonth365_29 = value;
Il2CppCodeGenWriteBarrier((&___DaysToMonth365_29), value);
}
inline static int32_t get_offset_of_DaysToMonth366_30() { return static_cast<int32_t>(offsetof(DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132_StaticFields, ___DaysToMonth366_30)); }
inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* get_DaysToMonth366_30() const { return ___DaysToMonth366_30; }
inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83** get_address_of_DaysToMonth366_30() { return &___DaysToMonth366_30; }
inline void set_DaysToMonth366_30(Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* value)
{
___DaysToMonth366_30 = value;
Il2CppCodeGenWriteBarrier((&___DaysToMonth366_30), value);
}
inline static int32_t get_offset_of_MinValue_31() { return static_cast<int32_t>(offsetof(DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132_StaticFields, ___MinValue_31)); }
inline DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 get_MinValue_31() const { return ___MinValue_31; }
inline DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 * get_address_of_MinValue_31() { return &___MinValue_31; }
inline void set_MinValue_31(DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 value)
{
___MinValue_31 = value;
}
inline static int32_t get_offset_of_MaxValue_32() { return static_cast<int32_t>(offsetof(DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132_StaticFields, ___MaxValue_32)); }
inline DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 get_MaxValue_32() const { return ___MaxValue_32; }
inline DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 * get_address_of_MaxValue_32() { return &___MaxValue_32; }
inline void set_MaxValue_32(DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 value)
{
___MaxValue_32 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // DATETIME_T349B7449FBAAFF4192636E2B7A07694DA9236132_H
#ifndef DECIMAL_T44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8_H
#define DECIMAL_T44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Decimal
struct Decimal_t44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8
{
public:
// System.Int32 System.Decimal::flags
int32_t ___flags_14;
// System.Int32 System.Decimal::hi
int32_t ___hi_15;
// System.Int32 System.Decimal::lo
int32_t ___lo_16;
// System.Int32 System.Decimal::mid
int32_t ___mid_17;
public:
inline static int32_t get_offset_of_flags_14() { return static_cast<int32_t>(offsetof(Decimal_t44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8, ___flags_14)); }
inline int32_t get_flags_14() const { return ___flags_14; }
inline int32_t* get_address_of_flags_14() { return &___flags_14; }
inline void set_flags_14(int32_t value)
{
___flags_14 = value;
}
inline static int32_t get_offset_of_hi_15() { return static_cast<int32_t>(offsetof(Decimal_t44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8, ___hi_15)); }
inline int32_t get_hi_15() const { return ___hi_15; }
inline int32_t* get_address_of_hi_15() { return &___hi_15; }
inline void set_hi_15(int32_t value)
{
___hi_15 = value;
}
inline static int32_t get_offset_of_lo_16() { return static_cast<int32_t>(offsetof(Decimal_t44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8, ___lo_16)); }
inline int32_t get_lo_16() const { return ___lo_16; }
inline int32_t* get_address_of_lo_16() { return &___lo_16; }
inline void set_lo_16(int32_t value)
{
___lo_16 = value;
}
inline static int32_t get_offset_of_mid_17() { return static_cast<int32_t>(offsetof(Decimal_t44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8, ___mid_17)); }
inline int32_t get_mid_17() const { return ___mid_17; }
inline int32_t* get_address_of_mid_17() { return &___mid_17; }
inline void set_mid_17(int32_t value)
{
___mid_17 = value;
}
};
struct Decimal_t44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8_StaticFields
{
public:
// System.UInt32[] System.Decimal::Powers10
UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* ___Powers10_6;
// System.Decimal System.Decimal::Zero
Decimal_t44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8 ___Zero_7;
// System.Decimal System.Decimal::One
Decimal_t44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8 ___One_8;
// System.Decimal System.Decimal::MinusOne
Decimal_t44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8 ___MinusOne_9;
// System.Decimal System.Decimal::MaxValue
Decimal_t44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8 ___MaxValue_10;
// System.Decimal System.Decimal::MinValue
Decimal_t44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8 ___MinValue_11;
// System.Decimal System.Decimal::NearNegativeZero
Decimal_t44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8 ___NearNegativeZero_12;
// System.Decimal System.Decimal::NearPositiveZero
Decimal_t44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8 ___NearPositiveZero_13;
public:
inline static int32_t get_offset_of_Powers10_6() { return static_cast<int32_t>(offsetof(Decimal_t44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8_StaticFields, ___Powers10_6)); }
inline UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* get_Powers10_6() const { return ___Powers10_6; }
inline UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB** get_address_of_Powers10_6() { return &___Powers10_6; }
inline void set_Powers10_6(UInt32U5BU5D_t9AA834AF2940E75BBF8E3F08FF0D20D266DB71CB* value)
{
___Powers10_6 = value;
Il2CppCodeGenWriteBarrier((&___Powers10_6), value);
}
inline static int32_t get_offset_of_Zero_7() { return static_cast<int32_t>(offsetof(Decimal_t44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8_StaticFields, ___Zero_7)); }
inline Decimal_t44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8 get_Zero_7() const { return ___Zero_7; }
inline Decimal_t44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8 * get_address_of_Zero_7() { return &___Zero_7; }
inline void set_Zero_7(Decimal_t44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8 value)
{
___Zero_7 = value;
}
inline static int32_t get_offset_of_One_8() { return static_cast<int32_t>(offsetof(Decimal_t44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8_StaticFields, ___One_8)); }
inline Decimal_t44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8 get_One_8() const { return ___One_8; }
inline Decimal_t44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8 * get_address_of_One_8() { return &___One_8; }
inline void set_One_8(Decimal_t44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8 value)
{
___One_8 = value;
}
inline static int32_t get_offset_of_MinusOne_9() { return static_cast<int32_t>(offsetof(Decimal_t44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8_StaticFields, ___MinusOne_9)); }
inline Decimal_t44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8 get_MinusOne_9() const { return ___MinusOne_9; }
inline Decimal_t44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8 * get_address_of_MinusOne_9() { return &___MinusOne_9; }
inline void set_MinusOne_9(Decimal_t44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8 value)
{
___MinusOne_9 = value;
}
inline static int32_t get_offset_of_MaxValue_10() { return static_cast<int32_t>(offsetof(Decimal_t44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8_StaticFields, ___MaxValue_10)); }
inline Decimal_t44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8 get_MaxValue_10() const { return ___MaxValue_10; }
inline Decimal_t44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8 * get_address_of_MaxValue_10() { return &___MaxValue_10; }
inline void set_MaxValue_10(Decimal_t44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8 value)
{
___MaxValue_10 = value;
}
inline static int32_t get_offset_of_MinValue_11() { return static_cast<int32_t>(offsetof(Decimal_t44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8_StaticFields, ___MinValue_11)); }
inline Decimal_t44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8 get_MinValue_11() const { return ___MinValue_11; }
inline Decimal_t44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8 * get_address_of_MinValue_11() { return &___MinValue_11; }
inline void set_MinValue_11(Decimal_t44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8 value)
{
___MinValue_11 = value;
}
inline static int32_t get_offset_of_NearNegativeZero_12() { return static_cast<int32_t>(offsetof(Decimal_t44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8_StaticFields, ___NearNegativeZero_12)); }
inline Decimal_t44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8 get_NearNegativeZero_12() const { return ___NearNegativeZero_12; }
inline Decimal_t44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8 * get_address_of_NearNegativeZero_12() { return &___NearNegativeZero_12; }
inline void set_NearNegativeZero_12(Decimal_t44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8 value)
{
___NearNegativeZero_12 = value;
}
inline static int32_t get_offset_of_NearPositiveZero_13() { return static_cast<int32_t>(offsetof(Decimal_t44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8_StaticFields, ___NearPositiveZero_13)); }
inline Decimal_t44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8 get_NearPositiveZero_13() const { return ___NearPositiveZero_13; }
inline Decimal_t44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8 * get_address_of_NearPositiveZero_13() { return &___NearPositiveZero_13; }
inline void set_NearPositiveZero_13(Decimal_t44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8 value)
{
___NearPositiveZero_13 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // DECIMAL_T44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8_H
#ifndef ENUM_T2AF27C02B8653AE29442467390005ABC74D8F521_H
#define ENUM_T2AF27C02B8653AE29442467390005ABC74D8F521_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Enum
struct Enum_t2AF27C02B8653AE29442467390005ABC74D8F521 : public ValueType_t4D0C27076F7C36E76190FB3328E232BCB1CD1FFF
{
public:
public:
};
struct Enum_t2AF27C02B8653AE29442467390005ABC74D8F521_StaticFields
{
public:
// System.Char[] System.Enum::enumSeperatorCharArray
CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* ___enumSeperatorCharArray_0;
public:
inline static int32_t get_offset_of_enumSeperatorCharArray_0() { return static_cast<int32_t>(offsetof(Enum_t2AF27C02B8653AE29442467390005ABC74D8F521_StaticFields, ___enumSeperatorCharArray_0)); }
inline CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* get_enumSeperatorCharArray_0() const { return ___enumSeperatorCharArray_0; }
inline CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2** get_address_of_enumSeperatorCharArray_0() { return &___enumSeperatorCharArray_0; }
inline void set_enumSeperatorCharArray_0(CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* value)
{
___enumSeperatorCharArray_0 = value;
Il2CppCodeGenWriteBarrier((&___enumSeperatorCharArray_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// Native definition for P/Invoke marshalling of System.Enum
struct Enum_t2AF27C02B8653AE29442467390005ABC74D8F521_marshaled_pinvoke
{
};
// Native definition for COM marshalling of System.Enum
struct Enum_t2AF27C02B8653AE29442467390005ABC74D8F521_marshaled_com
{
};
#endif // ENUM_T2AF27C02B8653AE29442467390005ABC74D8F521_H
#ifndef ASYNCMETHODBUILDERCORE_T4CE6C1E4B0621A6EC45CF6E0E8F1F633FFF9FF01_H
#define ASYNCMETHODBUILDERCORE_T4CE6C1E4B0621A6EC45CF6E0E8F1F633FFF9FF01_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.CompilerServices.AsyncMethodBuilderCore
struct AsyncMethodBuilderCore_t4CE6C1E4B0621A6EC45CF6E0E8F1F633FFF9FF01
{
public:
// System.Runtime.CompilerServices.IAsyncStateMachine System.Runtime.CompilerServices.AsyncMethodBuilderCore::m_stateMachine
RuntimeObject* ___m_stateMachine_0;
// System.Action System.Runtime.CompilerServices.AsyncMethodBuilderCore::m_defaultContextAction
Action_t591D2A86165F896B4B800BB5C25CE18672A55579 * ___m_defaultContextAction_1;
public:
inline static int32_t get_offset_of_m_stateMachine_0() { return static_cast<int32_t>(offsetof(AsyncMethodBuilderCore_t4CE6C1E4B0621A6EC45CF6E0E8F1F633FFF9FF01, ___m_stateMachine_0)); }
inline RuntimeObject* get_m_stateMachine_0() const { return ___m_stateMachine_0; }
inline RuntimeObject** get_address_of_m_stateMachine_0() { return &___m_stateMachine_0; }
inline void set_m_stateMachine_0(RuntimeObject* value)
{
___m_stateMachine_0 = value;
Il2CppCodeGenWriteBarrier((&___m_stateMachine_0), value);
}
inline static int32_t get_offset_of_m_defaultContextAction_1() { return static_cast<int32_t>(offsetof(AsyncMethodBuilderCore_t4CE6C1E4B0621A6EC45CF6E0E8F1F633FFF9FF01, ___m_defaultContextAction_1)); }
inline Action_t591D2A86165F896B4B800BB5C25CE18672A55579 * get_m_defaultContextAction_1() const { return ___m_defaultContextAction_1; }
inline Action_t591D2A86165F896B4B800BB5C25CE18672A55579 ** get_address_of_m_defaultContextAction_1() { return &___m_defaultContextAction_1; }
inline void set_m_defaultContextAction_1(Action_t591D2A86165F896B4B800BB5C25CE18672A55579 * value)
{
___m_defaultContextAction_1 = value;
Il2CppCodeGenWriteBarrier((&___m_defaultContextAction_1), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// Native definition for P/Invoke marshalling of System.Runtime.CompilerServices.AsyncMethodBuilderCore
struct AsyncMethodBuilderCore_t4CE6C1E4B0621A6EC45CF6E0E8F1F633FFF9FF01_marshaled_pinvoke
{
RuntimeObject* ___m_stateMachine_0;
Il2CppMethodPointer ___m_defaultContextAction_1;
};
// Native definition for COM marshalling of System.Runtime.CompilerServices.AsyncMethodBuilderCore
struct AsyncMethodBuilderCore_t4CE6C1E4B0621A6EC45CF6E0E8F1F633FFF9FF01_marshaled_com
{
RuntimeObject* ___m_stateMachine_0;
Il2CppMethodPointer ___m_defaultContextAction_1;
};
#endif // ASYNCMETHODBUILDERCORE_T4CE6C1E4B0621A6EC45CF6E0E8F1F633FFF9FF01_H
#ifndef COMPILATIONRELAXATIONSATTRIBUTE_T0067C359924196418CFB0DE4C07C5F4C4BCD54FF_H
#define COMPILATIONRELAXATIONSATTRIBUTE_T0067C359924196418CFB0DE4C07C5F4C4BCD54FF_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.CompilerServices.CompilationRelaxationsAttribute
struct CompilationRelaxationsAttribute_t0067C359924196418CFB0DE4C07C5F4C4BCD54FF : public Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74
{
public:
// System.Int32 System.Runtime.CompilerServices.CompilationRelaxationsAttribute::m_relaxations
int32_t ___m_relaxations_0;
public:
inline static int32_t get_offset_of_m_relaxations_0() { return static_cast<int32_t>(offsetof(CompilationRelaxationsAttribute_t0067C359924196418CFB0DE4C07C5F4C4BCD54FF, ___m_relaxations_0)); }
inline int32_t get_m_relaxations_0() const { return ___m_relaxations_0; }
inline int32_t* get_address_of_m_relaxations_0() { return &___m_relaxations_0; }
inline void set_m_relaxations_0(int32_t value)
{
___m_relaxations_0 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // COMPILATIONRELAXATIONSATTRIBUTE_T0067C359924196418CFB0DE4C07C5F4C4BCD54FF_H
#ifndef COMPILERGENERATEDATTRIBUTE_T29C03D4EB4F2193B5BF85D03923EA47423C946FC_H
#define COMPILERGENERATEDATTRIBUTE_T29C03D4EB4F2193B5BF85D03923EA47423C946FC_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.CompilerServices.CompilerGeneratedAttribute
struct CompilerGeneratedAttribute_t29C03D4EB4F2193B5BF85D03923EA47423C946FC : public Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // COMPILERGENERATEDATTRIBUTE_T29C03D4EB4F2193B5BF85D03923EA47423C946FC_H
#ifndef CONFIGUREDTASKAWAITER_TF1AAA16B8A1250CA037E32157A3424CD2BA47874_H
#define CONFIGUREDTASKAWAITER_TF1AAA16B8A1250CA037E32157A3424CD2BA47874_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.CompilerServices.ConfiguredTaskAwaitable_ConfiguredTaskAwaiter
struct ConfiguredTaskAwaiter_tF1AAA16B8A1250CA037E32157A3424CD2BA47874
{
public:
// System.Threading.Tasks.Task System.Runtime.CompilerServices.ConfiguredTaskAwaitable_ConfiguredTaskAwaiter::m_task
Task_t1F48C203E163126EBC69ACCA679D1A462DEE9EB2 * ___m_task_0;
// System.Boolean System.Runtime.CompilerServices.ConfiguredTaskAwaitable_ConfiguredTaskAwaiter::m_continueOnCapturedContext
bool ___m_continueOnCapturedContext_1;
public:
inline static int32_t get_offset_of_m_task_0() { return static_cast<int32_t>(offsetof(ConfiguredTaskAwaiter_tF1AAA16B8A1250CA037E32157A3424CD2BA47874, ___m_task_0)); }
inline Task_t1F48C203E163126EBC69ACCA679D1A462DEE9EB2 * get_m_task_0() const { return ___m_task_0; }
inline Task_t1F48C203E163126EBC69ACCA679D1A462DEE9EB2 ** get_address_of_m_task_0() { return &___m_task_0; }
inline void set_m_task_0(Task_t1F48C203E163126EBC69ACCA679D1A462DEE9EB2 * value)
{
___m_task_0 = value;
Il2CppCodeGenWriteBarrier((&___m_task_0), value);
}
inline static int32_t get_offset_of_m_continueOnCapturedContext_1() { return static_cast<int32_t>(offsetof(ConfiguredTaskAwaiter_tF1AAA16B8A1250CA037E32157A3424CD2BA47874, ___m_continueOnCapturedContext_1)); }
inline bool get_m_continueOnCapturedContext_1() const { return ___m_continueOnCapturedContext_1; }
inline bool* get_address_of_m_continueOnCapturedContext_1() { return &___m_continueOnCapturedContext_1; }
inline void set_m_continueOnCapturedContext_1(bool value)
{
___m_continueOnCapturedContext_1 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// Native definition for P/Invoke marshalling of System.Runtime.CompilerServices.ConfiguredTaskAwaitable/ConfiguredTaskAwaiter
struct ConfiguredTaskAwaiter_tF1AAA16B8A1250CA037E32157A3424CD2BA47874_marshaled_pinvoke
{
Task_t1F48C203E163126EBC69ACCA679D1A462DEE9EB2 * ___m_task_0;
int32_t ___m_continueOnCapturedContext_1;
};
// Native definition for COM marshalling of System.Runtime.CompilerServices.ConfiguredTaskAwaitable/ConfiguredTaskAwaiter
struct ConfiguredTaskAwaiter_tF1AAA16B8A1250CA037E32157A3424CD2BA47874_marshaled_com
{
Task_t1F48C203E163126EBC69ACCA679D1A462DEE9EB2 * ___m_task_0;
int32_t ___m_continueOnCapturedContext_1;
};
#endif // CONFIGUREDTASKAWAITER_TF1AAA16B8A1250CA037E32157A3424CD2BA47874_H
#ifndef CUSTOMCONSTANTATTRIBUTE_TBAC64D25BCB4BE5CAC32AC430CA8BEF070923191_H
#define CUSTOMCONSTANTATTRIBUTE_TBAC64D25BCB4BE5CAC32AC430CA8BEF070923191_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.CompilerServices.CustomConstantAttribute
struct CustomConstantAttribute_tBAC64D25BCB4BE5CAC32AC430CA8BEF070923191 : public Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // CUSTOMCONSTANTATTRIBUTE_TBAC64D25BCB4BE5CAC32AC430CA8BEF070923191_H
#ifndef EPHEMERON_T6F0B12401657FF132AB44052E5BCD06D358FF1BA_H
#define EPHEMERON_T6F0B12401657FF132AB44052E5BCD06D358FF1BA_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.CompilerServices.Ephemeron
struct Ephemeron_t6F0B12401657FF132AB44052E5BCD06D358FF1BA
{
public:
// System.Object System.Runtime.CompilerServices.Ephemeron::key
RuntimeObject * ___key_0;
// System.Object System.Runtime.CompilerServices.Ephemeron::value
RuntimeObject * ___value_1;
public:
inline static int32_t get_offset_of_key_0() { return static_cast<int32_t>(offsetof(Ephemeron_t6F0B12401657FF132AB44052E5BCD06D358FF1BA, ___key_0)); }
inline RuntimeObject * get_key_0() const { return ___key_0; }
inline RuntimeObject ** get_address_of_key_0() { return &___key_0; }
inline void set_key_0(RuntimeObject * value)
{
___key_0 = value;
Il2CppCodeGenWriteBarrier((&___key_0), value);
}
inline static int32_t get_offset_of_value_1() { return static_cast<int32_t>(offsetof(Ephemeron_t6F0B12401657FF132AB44052E5BCD06D358FF1BA, ___value_1)); }
inline RuntimeObject * get_value_1() const { return ___value_1; }
inline RuntimeObject ** get_address_of_value_1() { return &___value_1; }
inline void set_value_1(RuntimeObject * value)
{
___value_1 = value;
Il2CppCodeGenWriteBarrier((&___value_1), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// Native definition for P/Invoke marshalling of System.Runtime.CompilerServices.Ephemeron
struct Ephemeron_t6F0B12401657FF132AB44052E5BCD06D358FF1BA_marshaled_pinvoke
{
Il2CppIUnknown* ___key_0;
Il2CppIUnknown* ___value_1;
};
// Native definition for COM marshalling of System.Runtime.CompilerServices.Ephemeron
struct Ephemeron_t6F0B12401657FF132AB44052E5BCD06D358FF1BA_marshaled_com
{
Il2CppIUnknown* ___key_0;
Il2CppIUnknown* ___value_1;
};
#endif // EPHEMERON_T6F0B12401657FF132AB44052E5BCD06D358FF1BA_H
#ifndef EXTENSIONATTRIBUTE_T34A17741DB6F2A390F30532BD50B269ECDB8F124_H
#define EXTENSIONATTRIBUTE_T34A17741DB6F2A390F30532BD50B269ECDB8F124_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.CompilerServices.ExtensionAttribute
struct ExtensionAttribute_t34A17741DB6F2A390F30532BD50B269ECDB8F124 : public Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // EXTENSIONATTRIBUTE_T34A17741DB6F2A390F30532BD50B269ECDB8F124_H
#ifndef FIXEDBUFFERATTRIBUTE_TF3065E17C7BDDEAEDC5D80CED0509DB83C558743_H
#define FIXEDBUFFERATTRIBUTE_TF3065E17C7BDDEAEDC5D80CED0509DB83C558743_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.CompilerServices.FixedBufferAttribute
struct FixedBufferAttribute_tF3065E17C7BDDEAEDC5D80CED0509DB83C558743 : public Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74
{
public:
// System.Type System.Runtime.CompilerServices.FixedBufferAttribute::elementType
Type_t * ___elementType_0;
// System.Int32 System.Runtime.CompilerServices.FixedBufferAttribute::length
int32_t ___length_1;
public:
inline static int32_t get_offset_of_elementType_0() { return static_cast<int32_t>(offsetof(FixedBufferAttribute_tF3065E17C7BDDEAEDC5D80CED0509DB83C558743, ___elementType_0)); }
inline Type_t * get_elementType_0() const { return ___elementType_0; }
inline Type_t ** get_address_of_elementType_0() { return &___elementType_0; }
inline void set_elementType_0(Type_t * value)
{
___elementType_0 = value;
Il2CppCodeGenWriteBarrier((&___elementType_0), value);
}
inline static int32_t get_offset_of_length_1() { return static_cast<int32_t>(offsetof(FixedBufferAttribute_tF3065E17C7BDDEAEDC5D80CED0509DB83C558743, ___length_1)); }
inline int32_t get_length_1() const { return ___length_1; }
inline int32_t* get_address_of_length_1() { return &___length_1; }
inline void set_length_1(int32_t value)
{
___length_1 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // FIXEDBUFFERATTRIBUTE_TF3065E17C7BDDEAEDC5D80CED0509DB83C558743_H
#ifndef FRIENDACCESSALLOWEDATTRIBUTE_T7924C8657D64E9FCB405FD7457DDF6EFA131BE96_H
#define FRIENDACCESSALLOWEDATTRIBUTE_T7924C8657D64E9FCB405FD7457DDF6EFA131BE96_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.CompilerServices.FriendAccessAllowedAttribute
struct FriendAccessAllowedAttribute_t7924C8657D64E9FCB405FD7457DDF6EFA131BE96 : public Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // FRIENDACCESSALLOWEDATTRIBUTE_T7924C8657D64E9FCB405FD7457DDF6EFA131BE96_H
#ifndef INTERNALSVISIBLETOATTRIBUTE_T3AEE3C8B7B894E54091E79A5A1C570B6DBB82767_H
#define INTERNALSVISIBLETOATTRIBUTE_T3AEE3C8B7B894E54091E79A5A1C570B6DBB82767_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.CompilerServices.InternalsVisibleToAttribute
struct InternalsVisibleToAttribute_t3AEE3C8B7B894E54091E79A5A1C570B6DBB82767 : public Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74
{
public:
// System.String System.Runtime.CompilerServices.InternalsVisibleToAttribute::_assemblyName
String_t* ____assemblyName_0;
// System.Boolean System.Runtime.CompilerServices.InternalsVisibleToAttribute::_allInternalsVisible
bool ____allInternalsVisible_1;
public:
inline static int32_t get_offset_of__assemblyName_0() { return static_cast<int32_t>(offsetof(InternalsVisibleToAttribute_t3AEE3C8B7B894E54091E79A5A1C570B6DBB82767, ____assemblyName_0)); }
inline String_t* get__assemblyName_0() const { return ____assemblyName_0; }
inline String_t** get_address_of__assemblyName_0() { return &____assemblyName_0; }
inline void set__assemblyName_0(String_t* value)
{
____assemblyName_0 = value;
Il2CppCodeGenWriteBarrier((&____assemblyName_0), value);
}
inline static int32_t get_offset_of__allInternalsVisible_1() { return static_cast<int32_t>(offsetof(InternalsVisibleToAttribute_t3AEE3C8B7B894E54091E79A5A1C570B6DBB82767, ____allInternalsVisible_1)); }
inline bool get__allInternalsVisible_1() const { return ____allInternalsVisible_1; }
inline bool* get_address_of__allInternalsVisible_1() { return &____allInternalsVisible_1; }
inline void set__allInternalsVisible_1(bool value)
{
____allInternalsVisible_1 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // INTERNALSVISIBLETOATTRIBUTE_T3AEE3C8B7B894E54091E79A5A1C570B6DBB82767_H
#ifndef ISREADONLYATTRIBUTE_TD69A056AD347DF5A551044EAB596F41434DF462D_H
#define ISREADONLYATTRIBUTE_TD69A056AD347DF5A551044EAB596F41434DF462D_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.CompilerServices.IsReadOnlyAttribute
struct IsReadOnlyAttribute_tD69A056AD347DF5A551044EAB596F41434DF462D : public Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // ISREADONLYATTRIBUTE_TD69A056AD347DF5A551044EAB596F41434DF462D_H
#ifndef RUNTIMECOMPATIBILITYATTRIBUTE_TF386C60D3DD4A0E1759F1D8F76841FC4522A6126_H
#define RUNTIMECOMPATIBILITYATTRIBUTE_TF386C60D3DD4A0E1759F1D8F76841FC4522A6126_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.CompilerServices.RuntimeCompatibilityAttribute
struct RuntimeCompatibilityAttribute_tF386C60D3DD4A0E1759F1D8F76841FC4522A6126 : public Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74
{
public:
// System.Boolean System.Runtime.CompilerServices.RuntimeCompatibilityAttribute::m_wrapNonExceptionThrows
bool ___m_wrapNonExceptionThrows_0;
public:
inline static int32_t get_offset_of_m_wrapNonExceptionThrows_0() { return static_cast<int32_t>(offsetof(RuntimeCompatibilityAttribute_tF386C60D3DD4A0E1759F1D8F76841FC4522A6126, ___m_wrapNonExceptionThrows_0)); }
inline bool get_m_wrapNonExceptionThrows_0() const { return ___m_wrapNonExceptionThrows_0; }
inline bool* get_address_of_m_wrapNonExceptionThrows_0() { return &___m_wrapNonExceptionThrows_0; }
inline void set_m_wrapNonExceptionThrows_0(bool value)
{
___m_wrapNonExceptionThrows_0 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // RUNTIMECOMPATIBILITYATTRIBUTE_TF386C60D3DD4A0E1759F1D8F76841FC4522A6126_H
#ifndef RUNTIMEWRAPPEDEXCEPTION_T5E7538D9FD99A8A0FB32B396776E294A29866C0D_H
#define RUNTIMEWRAPPEDEXCEPTION_T5E7538D9FD99A8A0FB32B396776E294A29866C0D_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.CompilerServices.RuntimeWrappedException
struct RuntimeWrappedException_t5E7538D9FD99A8A0FB32B396776E294A29866C0D : public Exception_t
{
public:
// System.Object System.Runtime.CompilerServices.RuntimeWrappedException::m_wrappedException
RuntimeObject * ___m_wrappedException_17;
public:
inline static int32_t get_offset_of_m_wrappedException_17() { return static_cast<int32_t>(offsetof(RuntimeWrappedException_t5E7538D9FD99A8A0FB32B396776E294A29866C0D, ___m_wrappedException_17)); }
inline RuntimeObject * get_m_wrappedException_17() const { return ___m_wrappedException_17; }
inline RuntimeObject ** get_address_of_m_wrappedException_17() { return &___m_wrappedException_17; }
inline void set_m_wrappedException_17(RuntimeObject * value)
{
___m_wrappedException_17 = value;
Il2CppCodeGenWriteBarrier((&___m_wrappedException_17), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // RUNTIMEWRAPPEDEXCEPTION_T5E7538D9FD99A8A0FB32B396776E294A29866C0D_H
#ifndef STATEMACHINEATTRIBUTE_T0F08DD69D5AB4A30C6A13E245143DD5335A4DA93_H
#define STATEMACHINEATTRIBUTE_T0F08DD69D5AB4A30C6A13E245143DD5335A4DA93_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.CompilerServices.StateMachineAttribute
struct StateMachineAttribute_t0F08DD69D5AB4A30C6A13E245143DD5335A4DA93 : public Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74
{
public:
// System.Type System.Runtime.CompilerServices.StateMachineAttribute::<StateMachineType>k__BackingField
Type_t * ___U3CStateMachineTypeU3Ek__BackingField_0;
public:
inline static int32_t get_offset_of_U3CStateMachineTypeU3Ek__BackingField_0() { return static_cast<int32_t>(offsetof(StateMachineAttribute_t0F08DD69D5AB4A30C6A13E245143DD5335A4DA93, ___U3CStateMachineTypeU3Ek__BackingField_0)); }
inline Type_t * get_U3CStateMachineTypeU3Ek__BackingField_0() const { return ___U3CStateMachineTypeU3Ek__BackingField_0; }
inline Type_t ** get_address_of_U3CStateMachineTypeU3Ek__BackingField_0() { return &___U3CStateMachineTypeU3Ek__BackingField_0; }
inline void set_U3CStateMachineTypeU3Ek__BackingField_0(Type_t * value)
{
___U3CStateMachineTypeU3Ek__BackingField_0 = value;
Il2CppCodeGenWriteBarrier((&___U3CStateMachineTypeU3Ek__BackingField_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // STATEMACHINEATTRIBUTE_T0F08DD69D5AB4A30C6A13E245143DD5335A4DA93_H
#ifndef STRINGFREEZINGATTRIBUTE_T7ECA21C06003DECA46ECDD205612C746907ECA7C_H
#define STRINGFREEZINGATTRIBUTE_T7ECA21C06003DECA46ECDD205612C746907ECA7C_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.CompilerServices.StringFreezingAttribute
struct StringFreezingAttribute_t7ECA21C06003DECA46ECDD205612C746907ECA7C : public Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // STRINGFREEZINGATTRIBUTE_T7ECA21C06003DECA46ECDD205612C746907ECA7C_H
#ifndef TASKAWAITER_T0CDE8DBB564F0A0EA55FA6B3D43EEF96BC26252F_H
#define TASKAWAITER_T0CDE8DBB564F0A0EA55FA6B3D43EEF96BC26252F_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.CompilerServices.TaskAwaiter
struct TaskAwaiter_t0CDE8DBB564F0A0EA55FA6B3D43EEF96BC26252F
{
public:
// System.Threading.Tasks.Task System.Runtime.CompilerServices.TaskAwaiter::m_task
Task_t1F48C203E163126EBC69ACCA679D1A462DEE9EB2 * ___m_task_0;
public:
inline static int32_t get_offset_of_m_task_0() { return static_cast<int32_t>(offsetof(TaskAwaiter_t0CDE8DBB564F0A0EA55FA6B3D43EEF96BC26252F, ___m_task_0)); }
inline Task_t1F48C203E163126EBC69ACCA679D1A462DEE9EB2 * get_m_task_0() const { return ___m_task_0; }
inline Task_t1F48C203E163126EBC69ACCA679D1A462DEE9EB2 ** get_address_of_m_task_0() { return &___m_task_0; }
inline void set_m_task_0(Task_t1F48C203E163126EBC69ACCA679D1A462DEE9EB2 * value)
{
___m_task_0 = value;
Il2CppCodeGenWriteBarrier((&___m_task_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// Native definition for P/Invoke marshalling of System.Runtime.CompilerServices.TaskAwaiter
struct TaskAwaiter_t0CDE8DBB564F0A0EA55FA6B3D43EEF96BC26252F_marshaled_pinvoke
{
Task_t1F48C203E163126EBC69ACCA679D1A462DEE9EB2 * ___m_task_0;
};
// Native definition for COM marshalling of System.Runtime.CompilerServices.TaskAwaiter
struct TaskAwaiter_t0CDE8DBB564F0A0EA55FA6B3D43EEF96BC26252F_marshaled_com
{
Task_t1F48C203E163126EBC69ACCA679D1A462DEE9EB2 * ___m_task_0;
};
#endif // TASKAWAITER_T0CDE8DBB564F0A0EA55FA6B3D43EEF96BC26252F_H
#ifndef TYPEDEPENDENCYATTRIBUTE_TD04CE2948B22A3881F260D03D1440D7678A0EEBE_H
#define TYPEDEPENDENCYATTRIBUTE_TD04CE2948B22A3881F260D03D1440D7678A0EEBE_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.CompilerServices.TypeDependencyAttribute
struct TypeDependencyAttribute_tD04CE2948B22A3881F260D03D1440D7678A0EEBE : public Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74
{
public:
// System.String System.Runtime.CompilerServices.TypeDependencyAttribute::typeName
String_t* ___typeName_0;
public:
inline static int32_t get_offset_of_typeName_0() { return static_cast<int32_t>(offsetof(TypeDependencyAttribute_tD04CE2948B22A3881F260D03D1440D7678A0EEBE, ___typeName_0)); }
inline String_t* get_typeName_0() const { return ___typeName_0; }
inline String_t** get_address_of_typeName_0() { return &___typeName_0; }
inline void set_typeName_0(String_t* value)
{
___typeName_0 = value;
Il2CppCodeGenWriteBarrier((&___typeName_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // TYPEDEPENDENCYATTRIBUTE_TD04CE2948B22A3881F260D03D1440D7678A0EEBE_H
#ifndef TYPEFORWARDEDFROMATTRIBUTE_TEE8D8DA95C9112F53D8E66EA00F476C923A003E2_H
#define TYPEFORWARDEDFROMATTRIBUTE_TEE8D8DA95C9112F53D8E66EA00F476C923A003E2_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.CompilerServices.TypeForwardedFromAttribute
struct TypeForwardedFromAttribute_tEE8D8DA95C9112F53D8E66EA00F476C923A003E2 : public Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74
{
public:
// System.String System.Runtime.CompilerServices.TypeForwardedFromAttribute::assemblyFullName
String_t* ___assemblyFullName_0;
public:
inline static int32_t get_offset_of_assemblyFullName_0() { return static_cast<int32_t>(offsetof(TypeForwardedFromAttribute_tEE8D8DA95C9112F53D8E66EA00F476C923A003E2, ___assemblyFullName_0)); }
inline String_t* get_assemblyFullName_0() const { return ___assemblyFullName_0; }
inline String_t** get_address_of_assemblyFullName_0() { return &___assemblyFullName_0; }
inline void set_assemblyFullName_0(String_t* value)
{
___assemblyFullName_0 = value;
Il2CppCodeGenWriteBarrier((&___assemblyFullName_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // TYPEFORWARDEDFROMATTRIBUTE_TEE8D8DA95C9112F53D8E66EA00F476C923A003E2_H
#ifndef UNSAFEVALUETYPEATTRIBUTE_T9ADB28EC5F3BD460026EA31456FBBAF7C27B8EE1_H
#define UNSAFEVALUETYPEATTRIBUTE_T9ADB28EC5F3BD460026EA31456FBBAF7C27B8EE1_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.CompilerServices.UnsafeValueTypeAttribute
struct UnsafeValueTypeAttribute_t9ADB28EC5F3BD460026EA31456FBBAF7C27B8EE1 : public Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // UNSAFEVALUETYPEATTRIBUTE_T9ADB28EC5F3BD460026EA31456FBBAF7C27B8EE1_H
#ifndef YIELDAWAITABLE_T5A938EAA492F9B8ABA2EEFF16C7A83EA606B9911_H
#define YIELDAWAITABLE_T5A938EAA492F9B8ABA2EEFF16C7A83EA606B9911_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.CompilerServices.YieldAwaitable
struct YieldAwaitable_t5A938EAA492F9B8ABA2EEFF16C7A83EA606B9911
{
public:
union
{
struct
{
};
uint8_t YieldAwaitable_t5A938EAA492F9B8ABA2EEFF16C7A83EA606B9911__padding[1];
};
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // YIELDAWAITABLE_T5A938EAA492F9B8ABA2EEFF16C7A83EA606B9911_H
#ifndef YIELDAWAITER_TB7F5AF2447B8FF2021CAD11FFA95F095CE2C2C3B_H
#define YIELDAWAITER_TB7F5AF2447B8FF2021CAD11FFA95F095CE2C2C3B_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.CompilerServices.YieldAwaitable_YieldAwaiter
struct YieldAwaiter_tB7F5AF2447B8FF2021CAD11FFA95F095CE2C2C3B
{
public:
union
{
struct
{
};
uint8_t YieldAwaiter_tB7F5AF2447B8FF2021CAD11FFA95F095CE2C2C3B__padding[1];
};
public:
};
struct YieldAwaiter_tB7F5AF2447B8FF2021CAD11FFA95F095CE2C2C3B_StaticFields
{
public:
// System.Threading.WaitCallback System.Runtime.CompilerServices.YieldAwaitable_YieldAwaiter::s_waitCallbackRunAction
WaitCallback_t61C5F053CAC7A7FE923208EFA060693D7997B4EC * ___s_waitCallbackRunAction_0;
// System.Threading.SendOrPostCallback System.Runtime.CompilerServices.YieldAwaitable_YieldAwaiter::s_sendOrPostCallbackRunAction
SendOrPostCallback_t3F9C0164860E4AA5138DF8B4488DFB0D33147F01 * ___s_sendOrPostCallbackRunAction_1;
public:
inline static int32_t get_offset_of_s_waitCallbackRunAction_0() { return static_cast<int32_t>(offsetof(YieldAwaiter_tB7F5AF2447B8FF2021CAD11FFA95F095CE2C2C3B_StaticFields, ___s_waitCallbackRunAction_0)); }
inline WaitCallback_t61C5F053CAC7A7FE923208EFA060693D7997B4EC * get_s_waitCallbackRunAction_0() const { return ___s_waitCallbackRunAction_0; }
inline WaitCallback_t61C5F053CAC7A7FE923208EFA060693D7997B4EC ** get_address_of_s_waitCallbackRunAction_0() { return &___s_waitCallbackRunAction_0; }
inline void set_s_waitCallbackRunAction_0(WaitCallback_t61C5F053CAC7A7FE923208EFA060693D7997B4EC * value)
{
___s_waitCallbackRunAction_0 = value;
Il2CppCodeGenWriteBarrier((&___s_waitCallbackRunAction_0), value);
}
inline static int32_t get_offset_of_s_sendOrPostCallbackRunAction_1() { return static_cast<int32_t>(offsetof(YieldAwaiter_tB7F5AF2447B8FF2021CAD11FFA95F095CE2C2C3B_StaticFields, ___s_sendOrPostCallbackRunAction_1)); }
inline SendOrPostCallback_t3F9C0164860E4AA5138DF8B4488DFB0D33147F01 * get_s_sendOrPostCallbackRunAction_1() const { return ___s_sendOrPostCallbackRunAction_1; }
inline SendOrPostCallback_t3F9C0164860E4AA5138DF8B4488DFB0D33147F01 ** get_address_of_s_sendOrPostCallbackRunAction_1() { return &___s_sendOrPostCallbackRunAction_1; }
inline void set_s_sendOrPostCallbackRunAction_1(SendOrPostCallback_t3F9C0164860E4AA5138DF8B4488DFB0D33147F01 * value)
{
___s_sendOrPostCallbackRunAction_1 = value;
Il2CppCodeGenWriteBarrier((&___s_sendOrPostCallbackRunAction_1), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // YIELDAWAITER_TB7F5AF2447B8FF2021CAD11FFA95F095CE2C2C3B_H
#ifndef FIRSTCHANCEEXCEPTIONEVENTARGS_T0FA7904C9F4BAA2FC640BE3E5AC348F153AD8B6D_H
#define FIRSTCHANCEEXCEPTIONEVENTARGS_T0FA7904C9F4BAA2FC640BE3E5AC348F153AD8B6D_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs
struct FirstChanceExceptionEventArgs_t0FA7904C9F4BAA2FC640BE3E5AC348F153AD8B6D : public EventArgs_t8E6CA180BE0E56674C6407011A94BAF7C757352E
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // FIRSTCHANCEEXCEPTIONEVENTARGS_T0FA7904C9F4BAA2FC640BE3E5AC348F153AD8B6D_H
#ifndef HANDLEPROCESSCORRUPTEDSTATEEXCEPTIONSATTRIBUTE_TA72E0974E174E223166E56C7E2B20C319C322260_H
#define HANDLEPROCESSCORRUPTEDSTATEEXCEPTIONSATTRIBUTE_TA72E0974E174E223166E56C7E2B20C319C322260_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.ExceptionServices.HandleProcessCorruptedStateExceptionsAttribute
struct HandleProcessCorruptedStateExceptionsAttribute_tA72E0974E174E223166E56C7E2B20C319C322260 : public Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // HANDLEPROCESSCORRUPTEDSTATEEXCEPTIONSATTRIBUTE_TA72E0974E174E223166E56C7E2B20C319C322260_H
#ifndef COMCOMPATIBLEVERSIONATTRIBUTE_T8D9E26E5596ECAF4286A2E3FBAC2753AFBE825D2_H
#define COMCOMPATIBLEVERSIONATTRIBUTE_T8D9E26E5596ECAF4286A2E3FBAC2753AFBE825D2_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.InteropServices.ComCompatibleVersionAttribute
struct ComCompatibleVersionAttribute_t8D9E26E5596ECAF4286A2E3FBAC2753AFBE825D2 : public Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74
{
public:
// System.Int32 System.Runtime.InteropServices.ComCompatibleVersionAttribute::_major
int32_t ____major_0;
// System.Int32 System.Runtime.InteropServices.ComCompatibleVersionAttribute::_minor
int32_t ____minor_1;
// System.Int32 System.Runtime.InteropServices.ComCompatibleVersionAttribute::_build
int32_t ____build_2;
// System.Int32 System.Runtime.InteropServices.ComCompatibleVersionAttribute::_revision
int32_t ____revision_3;
public:
inline static int32_t get_offset_of__major_0() { return static_cast<int32_t>(offsetof(ComCompatibleVersionAttribute_t8D9E26E5596ECAF4286A2E3FBAC2753AFBE825D2, ____major_0)); }
inline int32_t get__major_0() const { return ____major_0; }
inline int32_t* get_address_of__major_0() { return &____major_0; }
inline void set__major_0(int32_t value)
{
____major_0 = value;
}
inline static int32_t get_offset_of__minor_1() { return static_cast<int32_t>(offsetof(ComCompatibleVersionAttribute_t8D9E26E5596ECAF4286A2E3FBAC2753AFBE825D2, ____minor_1)); }
inline int32_t get__minor_1() const { return ____minor_1; }
inline int32_t* get_address_of__minor_1() { return &____minor_1; }
inline void set__minor_1(int32_t value)
{
____minor_1 = value;
}
inline static int32_t get_offset_of__build_2() { return static_cast<int32_t>(offsetof(ComCompatibleVersionAttribute_t8D9E26E5596ECAF4286A2E3FBAC2753AFBE825D2, ____build_2)); }
inline int32_t get__build_2() const { return ____build_2; }
inline int32_t* get_address_of__build_2() { return &____build_2; }
inline void set__build_2(int32_t value)
{
____build_2 = value;
}
inline static int32_t get_offset_of__revision_3() { return static_cast<int32_t>(offsetof(ComCompatibleVersionAttribute_t8D9E26E5596ECAF4286A2E3FBAC2753AFBE825D2, ____revision_3)); }
inline int32_t get__revision_3() const { return ____revision_3; }
inline int32_t* get_address_of__revision_3() { return &____revision_3; }
inline void set__revision_3(int32_t value)
{
____revision_3 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // COMCOMPATIBLEVERSIONATTRIBUTE_T8D9E26E5596ECAF4286A2E3FBAC2753AFBE825D2_H
#ifndef COMDEFAULTINTERFACEATTRIBUTE_TBBC585373029E9376B0BBA3472A3EC7372F79C2A_H
#define COMDEFAULTINTERFACEATTRIBUTE_TBBC585373029E9376B0BBA3472A3EC7372F79C2A_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.InteropServices.ComDefaultInterfaceAttribute
struct ComDefaultInterfaceAttribute_tBBC585373029E9376B0BBA3472A3EC7372F79C2A : public Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74
{
public:
// System.Type System.Runtime.InteropServices.ComDefaultInterfaceAttribute::_val
Type_t * ____val_0;
public:
inline static int32_t get_offset_of__val_0() { return static_cast<int32_t>(offsetof(ComDefaultInterfaceAttribute_tBBC585373029E9376B0BBA3472A3EC7372F79C2A, ____val_0)); }
inline Type_t * get__val_0() const { return ____val_0; }
inline Type_t ** get_address_of__val_0() { return &____val_0; }
inline void set__val_0(Type_t * value)
{
____val_0 = value;
Il2CppCodeGenWriteBarrier((&____val_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // COMDEFAULTINTERFACEATTRIBUTE_TBBC585373029E9376B0BBA3472A3EC7372F79C2A_H
#ifndef COMIMPORTATTRIBUTE_T274D44BA1076F587D6AC97C2AFBA0A7B25EFDF40_H
#define COMIMPORTATTRIBUTE_T274D44BA1076F587D6AC97C2AFBA0A7B25EFDF40_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.InteropServices.ComImportAttribute
struct ComImportAttribute_t274D44BA1076F587D6AC97C2AFBA0A7B25EFDF40 : public Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // COMIMPORTATTRIBUTE_T274D44BA1076F587D6AC97C2AFBA0A7B25EFDF40_H
#ifndef COMVISIBLEATTRIBUTE_T3815D768D1DE3E84BAF7FC90E9F2F283FB1C74B3_H
#define COMVISIBLEATTRIBUTE_T3815D768D1DE3E84BAF7FC90E9F2F283FB1C74B3_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.InteropServices.ComVisibleAttribute
struct ComVisibleAttribute_t3815D768D1DE3E84BAF7FC90E9F2F283FB1C74B3 : public Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74
{
public:
// System.Boolean System.Runtime.InteropServices.ComVisibleAttribute::_val
bool ____val_0;
public:
inline static int32_t get_offset_of__val_0() { return static_cast<int32_t>(offsetof(ComVisibleAttribute_t3815D768D1DE3E84BAF7FC90E9F2F283FB1C74B3, ____val_0)); }
inline bool get__val_0() const { return ____val_0; }
inline bool* get_address_of__val_0() { return &____val_0; }
inline void set__val_0(bool value)
{
____val_0 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // COMVISIBLEATTRIBUTE_T3815D768D1DE3E84BAF7FC90E9F2F283FB1C74B3_H
#ifndef DISPIDATTRIBUTE_TCA8BD48980DDAABEEB1213041A0B83FFAA8A16C3_H
#define DISPIDATTRIBUTE_TCA8BD48980DDAABEEB1213041A0B83FFAA8A16C3_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.InteropServices.DispIdAttribute
struct DispIdAttribute_tCA8BD48980DDAABEEB1213041A0B83FFAA8A16C3 : public Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74
{
public:
// System.Int32 System.Runtime.InteropServices.DispIdAttribute::_val
int32_t ____val_0;
public:
inline static int32_t get_offset_of__val_0() { return static_cast<int32_t>(offsetof(DispIdAttribute_tCA8BD48980DDAABEEB1213041A0B83FFAA8A16C3, ____val_0)); }
inline int32_t get__val_0() const { return ____val_0; }
inline int32_t* get_address_of__val_0() { return &____val_0; }
inline void set__val_0(int32_t value)
{
____val_0 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // DISPIDATTRIBUTE_TCA8BD48980DDAABEEB1213041A0B83FFAA8A16C3_H
#ifndef FIELDOFFSETATTRIBUTE_T0DC41E3845F489E8751A1087AE893D8F5A9ABA49_H
#define FIELDOFFSETATTRIBUTE_T0DC41E3845F489E8751A1087AE893D8F5A9ABA49_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.InteropServices.FieldOffsetAttribute
struct FieldOffsetAttribute_t0DC41E3845F489E8751A1087AE893D8F5A9ABA49 : public Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74
{
public:
// System.Int32 System.Runtime.InteropServices.FieldOffsetAttribute::_val
int32_t ____val_0;
public:
inline static int32_t get_offset_of__val_0() { return static_cast<int32_t>(offsetof(FieldOffsetAttribute_t0DC41E3845F489E8751A1087AE893D8F5A9ABA49, ____val_0)); }
inline int32_t get__val_0() const { return ____val_0; }
inline int32_t* get_address_of__val_0() { return &____val_0; }
inline void set__val_0(int32_t value)
{
____val_0 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // FIELDOFFSETATTRIBUTE_T0DC41E3845F489E8751A1087AE893D8F5A9ABA49_H
#ifndef GUIDATTRIBUTE_T12D6C9EA1C65F4B67401C657AB97CD253FC09D34_H
#define GUIDATTRIBUTE_T12D6C9EA1C65F4B67401C657AB97CD253FC09D34_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.InteropServices.GuidAttribute
struct GuidAttribute_t12D6C9EA1C65F4B67401C657AB97CD253FC09D34 : public Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74
{
public:
// System.String System.Runtime.InteropServices.GuidAttribute::_val
String_t* ____val_0;
public:
inline static int32_t get_offset_of__val_0() { return static_cast<int32_t>(offsetof(GuidAttribute_t12D6C9EA1C65F4B67401C657AB97CD253FC09D34, ____val_0)); }
inline String_t* get__val_0() const { return ____val_0; }
inline String_t** get_address_of__val_0() { return &____val_0; }
inline void set__val_0(String_t* value)
{
____val_0 = value;
Il2CppCodeGenWriteBarrier((&____val_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // GUIDATTRIBUTE_T12D6C9EA1C65F4B67401C657AB97CD253FC09D34_H
#ifndef INATTRIBUTE_T753C98BE87DB84ECCEEB09841007A0D30C8B8A91_H
#define INATTRIBUTE_T753C98BE87DB84ECCEEB09841007A0D30C8B8A91_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.InteropServices.InAttribute
struct InAttribute_t753C98BE87DB84ECCEEB09841007A0D30C8B8A91 : public Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // INATTRIBUTE_T753C98BE87DB84ECCEEB09841007A0D30C8B8A91_H
#ifndef OPTIONALATTRIBUTE_T9C49E42A48E6C513B8CFB077C07C7AEF7AF96113_H
#define OPTIONALATTRIBUTE_T9C49E42A48E6C513B8CFB077C07C7AEF7AF96113_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.InteropServices.OptionalAttribute
struct OptionalAttribute_t9C49E42A48E6C513B8CFB077C07C7AEF7AF96113 : public Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // OPTIONALATTRIBUTE_T9C49E42A48E6C513B8CFB077C07C7AEF7AF96113_H
#ifndef OUTATTRIBUTE_T171E39DD5144590B737DC30724E1886B20B1E94D_H
#define OUTATTRIBUTE_T171E39DD5144590B737DC30724E1886B20B1E94D_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.InteropServices.OutAttribute
struct OutAttribute_t171E39DD5144590B737DC30724E1886B20B1E94D : public Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // OUTATTRIBUTE_T171E39DD5144590B737DC30724E1886B20B1E94D_H
#ifndef PRESERVESIGATTRIBUTE_T60367CFFE2AFD385EAC54659911B50279DFFA576_H
#define PRESERVESIGATTRIBUTE_T60367CFFE2AFD385EAC54659911B50279DFFA576_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.InteropServices.PreserveSigAttribute
struct PreserveSigAttribute_t60367CFFE2AFD385EAC54659911B50279DFFA576 : public Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // PRESERVESIGATTRIBUTE_T60367CFFE2AFD385EAC54659911B50279DFFA576_H
#ifndef TYPELIBIMPORTCLASSATTRIBUTE_TF096AB90A395D44FFFC7AAEDBFC5D8DD85EA74C1_H
#define TYPELIBIMPORTCLASSATTRIBUTE_TF096AB90A395D44FFFC7AAEDBFC5D8DD85EA74C1_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.InteropServices.TypeLibImportClassAttribute
struct TypeLibImportClassAttribute_tF096AB90A395D44FFFC7AAEDBFC5D8DD85EA74C1 : public Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74
{
public:
// System.String System.Runtime.InteropServices.TypeLibImportClassAttribute::_importClassName
String_t* ____importClassName_0;
public:
inline static int32_t get_offset_of__importClassName_0() { return static_cast<int32_t>(offsetof(TypeLibImportClassAttribute_tF096AB90A395D44FFFC7AAEDBFC5D8DD85EA74C1, ____importClassName_0)); }
inline String_t* get__importClassName_0() const { return ____importClassName_0; }
inline String_t** get_address_of__importClassName_0() { return &____importClassName_0; }
inline void set__importClassName_0(String_t* value)
{
____importClassName_0 = value;
Il2CppCodeGenWriteBarrier((&____importClassName_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // TYPELIBIMPORTCLASSATTRIBUTE_TF096AB90A395D44FFFC7AAEDBFC5D8DD85EA74C1_H
#ifndef MCMDICTIONARY_TD801081CC84A219F173B4A5A90A53A75A43D5434_H
#define MCMDICTIONARY_TD801081CC84A219F173B4A5A90A53A75A43D5434_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.Remoting.Messaging.MCMDictionary
struct MCMDictionary_tD801081CC84A219F173B4A5A90A53A75A43D5434 : public MessageDictionary_tC2DDCAFD65B74954A76393BCE90E57F58298F5C5
{
public:
public:
};
struct MCMDictionary_tD801081CC84A219F173B4A5A90A53A75A43D5434_StaticFields
{
public:
// System.String[] System.Runtime.Remoting.Messaging.MCMDictionary::InternalKeys
StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* ___InternalKeys_4;
public:
inline static int32_t get_offset_of_InternalKeys_4() { return static_cast<int32_t>(offsetof(MCMDictionary_tD801081CC84A219F173B4A5A90A53A75A43D5434_StaticFields, ___InternalKeys_4)); }
inline StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* get_InternalKeys_4() const { return ___InternalKeys_4; }
inline StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E** get_address_of_InternalKeys_4() { return &___InternalKeys_4; }
inline void set_InternalKeys_4(StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* value)
{
___InternalKeys_4 = value;
Il2CppCodeGenWriteBarrier((&___InternalKeys_4), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // MCMDICTIONARY_TD801081CC84A219F173B4A5A90A53A75A43D5434_H
#ifndef METHODRETURNDICTIONARY_TFCD4ADFA43AA2736517130020BBB9E60A253EB48_H
#define METHODRETURNDICTIONARY_TFCD4ADFA43AA2736517130020BBB9E60A253EB48_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.Remoting.Messaging.MethodReturnDictionary
struct MethodReturnDictionary_tFCD4ADFA43AA2736517130020BBB9E60A253EB48 : public MessageDictionary_tC2DDCAFD65B74954A76393BCE90E57F58298F5C5
{
public:
public:
};
struct MethodReturnDictionary_tFCD4ADFA43AA2736517130020BBB9E60A253EB48_StaticFields
{
public:
// System.String[] System.Runtime.Remoting.Messaging.MethodReturnDictionary::InternalReturnKeys
StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* ___InternalReturnKeys_4;
// System.String[] System.Runtime.Remoting.Messaging.MethodReturnDictionary::InternalExceptionKeys
StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* ___InternalExceptionKeys_5;
public:
inline static int32_t get_offset_of_InternalReturnKeys_4() { return static_cast<int32_t>(offsetof(MethodReturnDictionary_tFCD4ADFA43AA2736517130020BBB9E60A253EB48_StaticFields, ___InternalReturnKeys_4)); }
inline StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* get_InternalReturnKeys_4() const { return ___InternalReturnKeys_4; }
inline StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E** get_address_of_InternalReturnKeys_4() { return &___InternalReturnKeys_4; }
inline void set_InternalReturnKeys_4(StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* value)
{
___InternalReturnKeys_4 = value;
Il2CppCodeGenWriteBarrier((&___InternalReturnKeys_4), value);
}
inline static int32_t get_offset_of_InternalExceptionKeys_5() { return static_cast<int32_t>(offsetof(MethodReturnDictionary_tFCD4ADFA43AA2736517130020BBB9E60A253EB48_StaticFields, ___InternalExceptionKeys_5)); }
inline StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* get_InternalExceptionKeys_5() const { return ___InternalExceptionKeys_5; }
inline StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E** get_address_of_InternalExceptionKeys_5() { return &___InternalExceptionKeys_5; }
inline void set_InternalExceptionKeys_5(StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* value)
{
___InternalExceptionKeys_5 = value;
Il2CppCodeGenWriteBarrier((&___InternalExceptionKeys_5), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // METHODRETURNDICTIONARY_TFCD4ADFA43AA2736517130020BBB9E60A253EB48_H
#ifndef ONEWAYATTRIBUTE_T848DB2BC395D34A01B2932EEC85CEA65CA9C9B43_H
#define ONEWAYATTRIBUTE_T848DB2BC395D34A01B2932EEC85CEA65CA9C9B43_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.Remoting.Messaging.OneWayAttribute
struct OneWayAttribute_t848DB2BC395D34A01B2932EEC85CEA65CA9C9B43 : public Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // ONEWAYATTRIBUTE_T848DB2BC395D34A01B2932EEC85CEA65CA9C9B43_H
#ifndef ASYNCSTATEMACHINEATTRIBUTE_T71790D316286529022E8E3342C82150023358A00_H
#define ASYNCSTATEMACHINEATTRIBUTE_T71790D316286529022E8E3342C82150023358A00_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.CompilerServices.AsyncStateMachineAttribute
struct AsyncStateMachineAttribute_t71790D316286529022E8E3342C82150023358A00 : public StateMachineAttribute_t0F08DD69D5AB4A30C6A13E245143DD5335A4DA93
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // ASYNCSTATEMACHINEATTRIBUTE_T71790D316286529022E8E3342C82150023358A00_H
#ifndef ASYNCTASKMETHODBUILDER_1_T66ED1808B26B8081A2804D6A750D13386E360BD9_H
#define ASYNCTASKMETHODBUILDER_1_T66ED1808B26B8081A2804D6A750D13386E360BD9_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<System.Threading.Tasks.VoidTaskResult>
struct AsyncTaskMethodBuilder_1_t66ED1808B26B8081A2804D6A750D13386E360BD9
{
public:
// System.Runtime.CompilerServices.AsyncMethodBuilderCore System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1::m_coreState
AsyncMethodBuilderCore_t4CE6C1E4B0621A6EC45CF6E0E8F1F633FFF9FF01 ___m_coreState_1;
// System.Threading.Tasks.Task`1<TResult> System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1::m_task
Task_1_t1359D75350E9D976BFA28AD96E417450DE277673 * ___m_task_2;
public:
inline static int32_t get_offset_of_m_coreState_1() { return static_cast<int32_t>(offsetof(AsyncTaskMethodBuilder_1_t66ED1808B26B8081A2804D6A750D13386E360BD9, ___m_coreState_1)); }
inline AsyncMethodBuilderCore_t4CE6C1E4B0621A6EC45CF6E0E8F1F633FFF9FF01 get_m_coreState_1() const { return ___m_coreState_1; }
inline AsyncMethodBuilderCore_t4CE6C1E4B0621A6EC45CF6E0E8F1F633FFF9FF01 * get_address_of_m_coreState_1() { return &___m_coreState_1; }
inline void set_m_coreState_1(AsyncMethodBuilderCore_t4CE6C1E4B0621A6EC45CF6E0E8F1F633FFF9FF01 value)
{
___m_coreState_1 = value;
}
inline static int32_t get_offset_of_m_task_2() { return static_cast<int32_t>(offsetof(AsyncTaskMethodBuilder_1_t66ED1808B26B8081A2804D6A750D13386E360BD9, ___m_task_2)); }
inline Task_1_t1359D75350E9D976BFA28AD96E417450DE277673 * get_m_task_2() const { return ___m_task_2; }
inline Task_1_t1359D75350E9D976BFA28AD96E417450DE277673 ** get_address_of_m_task_2() { return &___m_task_2; }
inline void set_m_task_2(Task_1_t1359D75350E9D976BFA28AD96E417450DE277673 * value)
{
___m_task_2 = value;
Il2CppCodeGenWriteBarrier((&___m_task_2), value);
}
};
struct AsyncTaskMethodBuilder_1_t66ED1808B26B8081A2804D6A750D13386E360BD9_StaticFields
{
public:
// System.Threading.Tasks.Task`1<TResult> System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1::s_defaultResultTask
Task_1_t1359D75350E9D976BFA28AD96E417450DE277673 * ___s_defaultResultTask_0;
public:
inline static int32_t get_offset_of_s_defaultResultTask_0() { return static_cast<int32_t>(offsetof(AsyncTaskMethodBuilder_1_t66ED1808B26B8081A2804D6A750D13386E360BD9_StaticFields, ___s_defaultResultTask_0)); }
inline Task_1_t1359D75350E9D976BFA28AD96E417450DE277673 * get_s_defaultResultTask_0() const { return ___s_defaultResultTask_0; }
inline Task_1_t1359D75350E9D976BFA28AD96E417450DE277673 ** get_address_of_s_defaultResultTask_0() { return &___s_defaultResultTask_0; }
inline void set_s_defaultResultTask_0(Task_1_t1359D75350E9D976BFA28AD96E417450DE277673 * value)
{
___s_defaultResultTask_0 = value;
Il2CppCodeGenWriteBarrier((&___s_defaultResultTask_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // ASYNCTASKMETHODBUILDER_1_T66ED1808B26B8081A2804D6A750D13386E360BD9_H
#ifndef ASYNCVOIDMETHODBUILDER_T44E3C9B52B019BB5BDCC0E1BB83188B536161CFF_H
#define ASYNCVOIDMETHODBUILDER_T44E3C9B52B019BB5BDCC0E1BB83188B536161CFF_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.CompilerServices.AsyncVoidMethodBuilder
struct AsyncVoidMethodBuilder_t44E3C9B52B019BB5BDCC0E1BB83188B536161CFF
{
public:
// System.Threading.SynchronizationContext System.Runtime.CompilerServices.AsyncVoidMethodBuilder::m_synchronizationContext
SynchronizationContext_t06AEFE2C7CFCFC242D0A5729A74464AF18CF84E7 * ___m_synchronizationContext_0;
// System.Runtime.CompilerServices.AsyncMethodBuilderCore System.Runtime.CompilerServices.AsyncVoidMethodBuilder::m_coreState
AsyncMethodBuilderCore_t4CE6C1E4B0621A6EC45CF6E0E8F1F633FFF9FF01 ___m_coreState_1;
// System.Threading.Tasks.Task System.Runtime.CompilerServices.AsyncVoidMethodBuilder::m_task
Task_t1F48C203E163126EBC69ACCA679D1A462DEE9EB2 * ___m_task_2;
public:
inline static int32_t get_offset_of_m_synchronizationContext_0() { return static_cast<int32_t>(offsetof(AsyncVoidMethodBuilder_t44E3C9B52B019BB5BDCC0E1BB83188B536161CFF, ___m_synchronizationContext_0)); }
inline SynchronizationContext_t06AEFE2C7CFCFC242D0A5729A74464AF18CF84E7 * get_m_synchronizationContext_0() const { return ___m_synchronizationContext_0; }
inline SynchronizationContext_t06AEFE2C7CFCFC242D0A5729A74464AF18CF84E7 ** get_address_of_m_synchronizationContext_0() { return &___m_synchronizationContext_0; }
inline void set_m_synchronizationContext_0(SynchronizationContext_t06AEFE2C7CFCFC242D0A5729A74464AF18CF84E7 * value)
{
___m_synchronizationContext_0 = value;
Il2CppCodeGenWriteBarrier((&___m_synchronizationContext_0), value);
}
inline static int32_t get_offset_of_m_coreState_1() { return static_cast<int32_t>(offsetof(AsyncVoidMethodBuilder_t44E3C9B52B019BB5BDCC0E1BB83188B536161CFF, ___m_coreState_1)); }
inline AsyncMethodBuilderCore_t4CE6C1E4B0621A6EC45CF6E0E8F1F633FFF9FF01 get_m_coreState_1() const { return ___m_coreState_1; }
inline AsyncMethodBuilderCore_t4CE6C1E4B0621A6EC45CF6E0E8F1F633FFF9FF01 * get_address_of_m_coreState_1() { return &___m_coreState_1; }
inline void set_m_coreState_1(AsyncMethodBuilderCore_t4CE6C1E4B0621A6EC45CF6E0E8F1F633FFF9FF01 value)
{
___m_coreState_1 = value;
}
inline static int32_t get_offset_of_m_task_2() { return static_cast<int32_t>(offsetof(AsyncVoidMethodBuilder_t44E3C9B52B019BB5BDCC0E1BB83188B536161CFF, ___m_task_2)); }
inline Task_t1F48C203E163126EBC69ACCA679D1A462DEE9EB2 * get_m_task_2() const { return ___m_task_2; }
inline Task_t1F48C203E163126EBC69ACCA679D1A462DEE9EB2 ** get_address_of_m_task_2() { return &___m_task_2; }
inline void set_m_task_2(Task_t1F48C203E163126EBC69ACCA679D1A462DEE9EB2 * value)
{
___m_task_2 = value;
Il2CppCodeGenWriteBarrier((&___m_task_2), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// Native definition for P/Invoke marshalling of System.Runtime.CompilerServices.AsyncVoidMethodBuilder
struct AsyncVoidMethodBuilder_t44E3C9B52B019BB5BDCC0E1BB83188B536161CFF_marshaled_pinvoke
{
SynchronizationContext_t06AEFE2C7CFCFC242D0A5729A74464AF18CF84E7 * ___m_synchronizationContext_0;
AsyncMethodBuilderCore_t4CE6C1E4B0621A6EC45CF6E0E8F1F633FFF9FF01_marshaled_pinvoke ___m_coreState_1;
Task_t1F48C203E163126EBC69ACCA679D1A462DEE9EB2 * ___m_task_2;
};
// Native definition for COM marshalling of System.Runtime.CompilerServices.AsyncVoidMethodBuilder
struct AsyncVoidMethodBuilder_t44E3C9B52B019BB5BDCC0E1BB83188B536161CFF_marshaled_com
{
SynchronizationContext_t06AEFE2C7CFCFC242D0A5729A74464AF18CF84E7 * ___m_synchronizationContext_0;
AsyncMethodBuilderCore_t4CE6C1E4B0621A6EC45CF6E0E8F1F633FFF9FF01_marshaled_com ___m_coreState_1;
Task_t1F48C203E163126EBC69ACCA679D1A462DEE9EB2 * ___m_task_2;
};
#endif // ASYNCVOIDMETHODBUILDER_T44E3C9B52B019BB5BDCC0E1BB83188B536161CFF_H
#ifndef COMPILATIONRELAXATIONS_TCFC58143CB8E81E1E407EEA8FF9C9DF876F0750B_H
#define COMPILATIONRELAXATIONS_TCFC58143CB8E81E1E407EEA8FF9C9DF876F0750B_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.CompilerServices.CompilationRelaxations
struct CompilationRelaxations_tCFC58143CB8E81E1E407EEA8FF9C9DF876F0750B
{
public:
// System.Int32 System.Runtime.CompilerServices.CompilationRelaxations::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(CompilationRelaxations_tCFC58143CB8E81E1E407EEA8FF9C9DF876F0750B, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // COMPILATIONRELAXATIONS_TCFC58143CB8E81E1E407EEA8FF9C9DF876F0750B_H
#ifndef CONFIGUREDTASKAWAITABLE_T24DE1415466EE20060BE5AD528DC5C812CFA53A9_H
#define CONFIGUREDTASKAWAITABLE_T24DE1415466EE20060BE5AD528DC5C812CFA53A9_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.CompilerServices.ConfiguredTaskAwaitable
struct ConfiguredTaskAwaitable_t24DE1415466EE20060BE5AD528DC5C812CFA53A9
{
public:
// System.Runtime.CompilerServices.ConfiguredTaskAwaitable_ConfiguredTaskAwaiter System.Runtime.CompilerServices.ConfiguredTaskAwaitable::m_configuredTaskAwaiter
ConfiguredTaskAwaiter_tF1AAA16B8A1250CA037E32157A3424CD2BA47874 ___m_configuredTaskAwaiter_0;
public:
inline static int32_t get_offset_of_m_configuredTaskAwaiter_0() { return static_cast<int32_t>(offsetof(ConfiguredTaskAwaitable_t24DE1415466EE20060BE5AD528DC5C812CFA53A9, ___m_configuredTaskAwaiter_0)); }
inline ConfiguredTaskAwaiter_tF1AAA16B8A1250CA037E32157A3424CD2BA47874 get_m_configuredTaskAwaiter_0() const { return ___m_configuredTaskAwaiter_0; }
inline ConfiguredTaskAwaiter_tF1AAA16B8A1250CA037E32157A3424CD2BA47874 * get_address_of_m_configuredTaskAwaiter_0() { return &___m_configuredTaskAwaiter_0; }
inline void set_m_configuredTaskAwaiter_0(ConfiguredTaskAwaiter_tF1AAA16B8A1250CA037E32157A3424CD2BA47874 value)
{
___m_configuredTaskAwaiter_0 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// Native definition for P/Invoke marshalling of System.Runtime.CompilerServices.ConfiguredTaskAwaitable
struct ConfiguredTaskAwaitable_t24DE1415466EE20060BE5AD528DC5C812CFA53A9_marshaled_pinvoke
{
ConfiguredTaskAwaiter_tF1AAA16B8A1250CA037E32157A3424CD2BA47874_marshaled_pinvoke ___m_configuredTaskAwaiter_0;
};
// Native definition for COM marshalling of System.Runtime.CompilerServices.ConfiguredTaskAwaitable
struct ConfiguredTaskAwaitable_t24DE1415466EE20060BE5AD528DC5C812CFA53A9_marshaled_com
{
ConfiguredTaskAwaiter_tF1AAA16B8A1250CA037E32157A3424CD2BA47874_marshaled_com ___m_configuredTaskAwaiter_0;
};
#endif // CONFIGUREDTASKAWAITABLE_T24DE1415466EE20060BE5AD528DC5C812CFA53A9_H
#ifndef DATETIMECONSTANTATTRIBUTE_T4E7414CDD051958BEA1F01140F38441AA442D9BE_H
#define DATETIMECONSTANTATTRIBUTE_T4E7414CDD051958BEA1F01140F38441AA442D9BE_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.CompilerServices.DateTimeConstantAttribute
struct DateTimeConstantAttribute_t4E7414CDD051958BEA1F01140F38441AA442D9BE : public CustomConstantAttribute_tBAC64D25BCB4BE5CAC32AC430CA8BEF070923191
{
public:
// System.DateTime System.Runtime.CompilerServices.DateTimeConstantAttribute::date
DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 ___date_0;
public:
inline static int32_t get_offset_of_date_0() { return static_cast<int32_t>(offsetof(DateTimeConstantAttribute_t4E7414CDD051958BEA1F01140F38441AA442D9BE, ___date_0)); }
inline DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 get_date_0() const { return ___date_0; }
inline DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 * get_address_of_date_0() { return &___date_0; }
inline void set_date_0(DateTime_t349B7449FBAAFF4192636E2B7A07694DA9236132 value)
{
___date_0 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // DATETIMECONSTANTATTRIBUTE_T4E7414CDD051958BEA1F01140F38441AA442D9BE_H
#ifndef DECIMALCONSTANTATTRIBUTE_T3DFC057911F4AF28AD6A0472300EBE4C038BD9B5_H
#define DECIMALCONSTANTATTRIBUTE_T3DFC057911F4AF28AD6A0472300EBE4C038BD9B5_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.CompilerServices.DecimalConstantAttribute
struct DecimalConstantAttribute_t3DFC057911F4AF28AD6A0472300EBE4C038BD9B5 : public Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74
{
public:
// System.Decimal System.Runtime.CompilerServices.DecimalConstantAttribute::dec
Decimal_t44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8 ___dec_0;
public:
inline static int32_t get_offset_of_dec_0() { return static_cast<int32_t>(offsetof(DecimalConstantAttribute_t3DFC057911F4AF28AD6A0472300EBE4C038BD9B5, ___dec_0)); }
inline Decimal_t44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8 get_dec_0() const { return ___dec_0; }
inline Decimal_t44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8 * get_address_of_dec_0() { return &___dec_0; }
inline void set_dec_0(Decimal_t44EE9DA309A1BF848308DE4DDFC070CAE6D95EE8 value)
{
___dec_0 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // DECIMALCONSTANTATTRIBUTE_T3DFC057911F4AF28AD6A0472300EBE4C038BD9B5_H
#ifndef ITERATORSTATEMACHINEATTRIBUTE_TECB2E5CA9F79A291BC0E217CD60F706C5AFC563E_H
#define ITERATORSTATEMACHINEATTRIBUTE_TECB2E5CA9F79A291BC0E217CD60F706C5AFC563E_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.CompilerServices.IteratorStateMachineAttribute
struct IteratorStateMachineAttribute_tECB2E5CA9F79A291BC0E217CD60F706C5AFC563E : public StateMachineAttribute_t0F08DD69D5AB4A30C6A13E245143DD5335A4DA93
{
public:
public:
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // ITERATORSTATEMACHINEATTRIBUTE_TECB2E5CA9F79A291BC0E217CD60F706C5AFC563E_H
#ifndef LOADHINT_TAD3279A5DC1810A6D778793F6D5D2B52F8E7D4AF_H
#define LOADHINT_TAD3279A5DC1810A6D778793F6D5D2B52F8E7D4AF_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.CompilerServices.LoadHint
struct LoadHint_tAD3279A5DC1810A6D778793F6D5D2B52F8E7D4AF
{
public:
// System.Int32 System.Runtime.CompilerServices.LoadHint::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(LoadHint_tAD3279A5DC1810A6D778793F6D5D2B52F8E7D4AF, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // LOADHINT_TAD3279A5DC1810A6D778793F6D5D2B52F8E7D4AF_H
#ifndef CER_T26325DB2296A2720F6F7C6608A867BCCC7739807_H
#define CER_T26325DB2296A2720F6F7C6608A867BCCC7739807_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.ConstrainedExecution.Cer
struct Cer_t26325DB2296A2720F6F7C6608A867BCCC7739807
{
public:
// System.Int32 System.Runtime.ConstrainedExecution.Cer::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(Cer_t26325DB2296A2720F6F7C6608A867BCCC7739807, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // CER_T26325DB2296A2720F6F7C6608A867BCCC7739807_H
#ifndef CONSISTENCY_TDE0B5998ED48C4408C59644E7E13E309B2309729_H
#define CONSISTENCY_TDE0B5998ED48C4408C59644E7E13E309B2309729_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.ConstrainedExecution.Consistency
struct Consistency_tDE0B5998ED48C4408C59644E7E13E309B2309729
{
public:
// System.Int32 System.Runtime.ConstrainedExecution.Consistency::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(Consistency_tDE0B5998ED48C4408C59644E7E13E309B2309729, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // CONSISTENCY_TDE0B5998ED48C4408C59644E7E13E309B2309729_H
#ifndef CALLINGCONVENTION_T1CA20C42BA91F62017CDE4192C0FF930E81A1193_H
#define CALLINGCONVENTION_T1CA20C42BA91F62017CDE4192C0FF930E81A1193_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.InteropServices.CallingConvention
struct CallingConvention_t1CA20C42BA91F62017CDE4192C0FF930E81A1193
{
public:
// System.Int32 System.Runtime.InteropServices.CallingConvention::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(CallingConvention_t1CA20C42BA91F62017CDE4192C0FF930E81A1193, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // CALLINGCONVENTION_T1CA20C42BA91F62017CDE4192C0FF930E81A1193_H
#ifndef CHARSET_T2DEB2DA03477AAFC8FD2E1EC33F49904F85632A5_H
#define CHARSET_T2DEB2DA03477AAFC8FD2E1EC33F49904F85632A5_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.InteropServices.CharSet
struct CharSet_t2DEB2DA03477AAFC8FD2E1EC33F49904F85632A5
{
public:
// System.Int32 System.Runtime.InteropServices.CharSet::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(CharSet_t2DEB2DA03477AAFC8FD2E1EC33F49904F85632A5, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // CHARSET_T2DEB2DA03477AAFC8FD2E1EC33F49904F85632A5_H
#ifndef CLASSINTERFACETYPE_TC166DABAA0841D0021D87E2F422AC8110E7601FB_H
#define CLASSINTERFACETYPE_TC166DABAA0841D0021D87E2F422AC8110E7601FB_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.InteropServices.ClassInterfaceType
struct ClassInterfaceType_tC166DABAA0841D0021D87E2F422AC8110E7601FB
{
public:
// System.Int32 System.Runtime.InteropServices.ClassInterfaceType::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(ClassInterfaceType_tC166DABAA0841D0021D87E2F422AC8110E7601FB, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // CLASSINTERFACETYPE_TC166DABAA0841D0021D87E2F422AC8110E7601FB_H
#ifndef COMINTERFACETYPE_T06F9ED45C423386837E822765B7A00AC4A2EE607_H
#define COMINTERFACETYPE_T06F9ED45C423386837E822765B7A00AC4A2EE607_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.InteropServices.ComInterfaceType
struct ComInterfaceType_t06F9ED45C423386837E822765B7A00AC4A2EE607
{
public:
// System.Int32 System.Runtime.InteropServices.ComInterfaceType::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(ComInterfaceType_t06F9ED45C423386837E822765B7A00AC4A2EE607, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // COMINTERFACETYPE_T06F9ED45C423386837E822765B7A00AC4A2EE607_H
#ifndef DLLIMPORTSEARCHPATH_T87FBB9B032F725A0F0850D3506147F8479C6C962_H
#define DLLIMPORTSEARCHPATH_T87FBB9B032F725A0F0850D3506147F8479C6C962_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.InteropServices.DllImportSearchPath
struct DllImportSearchPath_t87FBB9B032F725A0F0850D3506147F8479C6C962
{
public:
// System.Int32 System.Runtime.InteropServices.DllImportSearchPath::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(DllImportSearchPath_t87FBB9B032F725A0F0850D3506147F8479C6C962, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // DLLIMPORTSEARCHPATH_T87FBB9B032F725A0F0850D3506147F8479C6C962_H
#ifndef UNMANAGEDTYPE_T87C9136E3089DE290F40B9993907743F4E3102E3_H
#define UNMANAGEDTYPE_T87C9136E3089DE290F40B9993907743F4E3102E3_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.InteropServices.UnmanagedType
struct UnmanagedType_t87C9136E3089DE290F40B9993907743F4E3102E3
{
public:
// System.Int32 System.Runtime.InteropServices.UnmanagedType::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(UnmanagedType_t87C9136E3089DE290F40B9993907743F4E3102E3, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // UNMANAGEDTYPE_T87C9136E3089DE290F40B9993907743F4E3102E3_H
#ifndef VARENUM_TBFABAADE217FFEE0854CF0555E8A719CC5E0BDA0_H
#define VARENUM_TBFABAADE217FFEE0854CF0555E8A719CC5E0BDA0_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.InteropServices.VarEnum
struct VarEnum_tBFABAADE217FFEE0854CF0555E8A719CC5E0BDA0
{
public:
// System.Int32 System.Runtime.InteropServices.VarEnum::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(VarEnum_tBFABAADE217FFEE0854CF0555E8A719CC5E0BDA0, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // VARENUM_TBFABAADE217FFEE0854CF0555E8A719CC5E0BDA0_H
#ifndef CALLTYPE_TBE39760BBF734FCF6769A65BFA1F512B1D107243_H
#define CALLTYPE_TBE39760BBF734FCF6769A65BFA1F512B1D107243_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.Remoting.Messaging.CallType
struct CallType_tBE39760BBF734FCF6769A65BFA1F512B1D107243
{
public:
// System.Int32 System.Runtime.Remoting.Messaging.CallType::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(CallType_tBE39760BBF734FCF6769A65BFA1F512B1D107243, ___value___2)); }
inline int32_t get_value___2() const { return ___value___2; }
inline int32_t* get_address_of_value___2() { return &___value___2; }
inline void set_value___2(int32_t value)
{
___value___2 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // CALLTYPE_TBE39760BBF734FCF6769A65BFA1F512B1D107243_H
#ifndef ASYNCTASKMETHODBUILDER_T0CD1893D670405BED201BE8CA6F2E811F2C0F487_H
#define ASYNCTASKMETHODBUILDER_T0CD1893D670405BED201BE8CA6F2E811F2C0F487_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.CompilerServices.AsyncTaskMethodBuilder
struct AsyncTaskMethodBuilder_t0CD1893D670405BED201BE8CA6F2E811F2C0F487
{
public:
// System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<System.Threading.Tasks.VoidTaskResult> System.Runtime.CompilerServices.AsyncTaskMethodBuilder::m_builder
AsyncTaskMethodBuilder_1_t66ED1808B26B8081A2804D6A750D13386E360BD9 ___m_builder_1;
public:
inline static int32_t get_offset_of_m_builder_1() { return static_cast<int32_t>(offsetof(AsyncTaskMethodBuilder_t0CD1893D670405BED201BE8CA6F2E811F2C0F487, ___m_builder_1)); }
inline AsyncTaskMethodBuilder_1_t66ED1808B26B8081A2804D6A750D13386E360BD9 get_m_builder_1() const { return ___m_builder_1; }
inline AsyncTaskMethodBuilder_1_t66ED1808B26B8081A2804D6A750D13386E360BD9 * get_address_of_m_builder_1() { return &___m_builder_1; }
inline void set_m_builder_1(AsyncTaskMethodBuilder_1_t66ED1808B26B8081A2804D6A750D13386E360BD9 value)
{
___m_builder_1 = value;
}
};
struct AsyncTaskMethodBuilder_t0CD1893D670405BED201BE8CA6F2E811F2C0F487_StaticFields
{
public:
// System.Threading.Tasks.Task`1<System.Threading.Tasks.VoidTaskResult> System.Runtime.CompilerServices.AsyncTaskMethodBuilder::s_cachedCompleted
Task_1_t1359D75350E9D976BFA28AD96E417450DE277673 * ___s_cachedCompleted_0;
public:
inline static int32_t get_offset_of_s_cachedCompleted_0() { return static_cast<int32_t>(offsetof(AsyncTaskMethodBuilder_t0CD1893D670405BED201BE8CA6F2E811F2C0F487_StaticFields, ___s_cachedCompleted_0)); }
inline Task_1_t1359D75350E9D976BFA28AD96E417450DE277673 * get_s_cachedCompleted_0() const { return ___s_cachedCompleted_0; }
inline Task_1_t1359D75350E9D976BFA28AD96E417450DE277673 ** get_address_of_s_cachedCompleted_0() { return &___s_cachedCompleted_0; }
inline void set_s_cachedCompleted_0(Task_1_t1359D75350E9D976BFA28AD96E417450DE277673 * value)
{
___s_cachedCompleted_0 = value;
Il2CppCodeGenWriteBarrier((&___s_cachedCompleted_0), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// Native definition for P/Invoke marshalling of System.Runtime.CompilerServices.AsyncTaskMethodBuilder
struct AsyncTaskMethodBuilder_t0CD1893D670405BED201BE8CA6F2E811F2C0F487_marshaled_pinvoke
{
AsyncTaskMethodBuilder_1_t66ED1808B26B8081A2804D6A750D13386E360BD9 ___m_builder_1;
};
// Native definition for COM marshalling of System.Runtime.CompilerServices.AsyncTaskMethodBuilder
struct AsyncTaskMethodBuilder_t0CD1893D670405BED201BE8CA6F2E811F2C0F487_marshaled_com
{
AsyncTaskMethodBuilder_1_t66ED1808B26B8081A2804D6A750D13386E360BD9 ___m_builder_1;
};
#endif // ASYNCTASKMETHODBUILDER_T0CD1893D670405BED201BE8CA6F2E811F2C0F487_H
#ifndef DEFAULTDEPENDENCYATTRIBUTE_T5401DA33101638B630ABCB8C22120ABDB29FE191_H
#define DEFAULTDEPENDENCYATTRIBUTE_T5401DA33101638B630ABCB8C22120ABDB29FE191_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.CompilerServices.DefaultDependencyAttribute
struct DefaultDependencyAttribute_t5401DA33101638B630ABCB8C22120ABDB29FE191 : public Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74
{
public:
// System.Runtime.CompilerServices.LoadHint System.Runtime.CompilerServices.DefaultDependencyAttribute::loadHint
int32_t ___loadHint_0;
public:
inline static int32_t get_offset_of_loadHint_0() { return static_cast<int32_t>(offsetof(DefaultDependencyAttribute_t5401DA33101638B630ABCB8C22120ABDB29FE191, ___loadHint_0)); }
inline int32_t get_loadHint_0() const { return ___loadHint_0; }
inline int32_t* get_address_of_loadHint_0() { return &___loadHint_0; }
inline void set_loadHint_0(int32_t value)
{
___loadHint_0 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // DEFAULTDEPENDENCYATTRIBUTE_T5401DA33101638B630ABCB8C22120ABDB29FE191_H
#ifndef DEPENDENCYATTRIBUTE_TA90C07E3131623E3AEA30E4DDF8F6B188985EA57_H
#define DEPENDENCYATTRIBUTE_TA90C07E3131623E3AEA30E4DDF8F6B188985EA57_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.CompilerServices.DependencyAttribute
struct DependencyAttribute_tA90C07E3131623E3AEA30E4DDF8F6B188985EA57 : public Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74
{
public:
// System.String System.Runtime.CompilerServices.DependencyAttribute::dependentAssembly
String_t* ___dependentAssembly_0;
// System.Runtime.CompilerServices.LoadHint System.Runtime.CompilerServices.DependencyAttribute::loadHint
int32_t ___loadHint_1;
public:
inline static int32_t get_offset_of_dependentAssembly_0() { return static_cast<int32_t>(offsetof(DependencyAttribute_tA90C07E3131623E3AEA30E4DDF8F6B188985EA57, ___dependentAssembly_0)); }
inline String_t* get_dependentAssembly_0() const { return ___dependentAssembly_0; }
inline String_t** get_address_of_dependentAssembly_0() { return &___dependentAssembly_0; }
inline void set_dependentAssembly_0(String_t* value)
{
___dependentAssembly_0 = value;
Il2CppCodeGenWriteBarrier((&___dependentAssembly_0), value);
}
inline static int32_t get_offset_of_loadHint_1() { return static_cast<int32_t>(offsetof(DependencyAttribute_tA90C07E3131623E3AEA30E4DDF8F6B188985EA57, ___loadHint_1)); }
inline int32_t get_loadHint_1() const { return ___loadHint_1; }
inline int32_t* get_address_of_loadHint_1() { return &___loadHint_1; }
inline void set_loadHint_1(int32_t value)
{
___loadHint_1 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // DEPENDENCYATTRIBUTE_TA90C07E3131623E3AEA30E4DDF8F6B188985EA57_H
#ifndef RELIABILITYCONTRACTATTRIBUTE_T784D3086C6F43192DE3A8676636DE98EE2CBEE45_H
#define RELIABILITYCONTRACTATTRIBUTE_T784D3086C6F43192DE3A8676636DE98EE2CBEE45_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.ConstrainedExecution.ReliabilityContractAttribute
struct ReliabilityContractAttribute_t784D3086C6F43192DE3A8676636DE98EE2CBEE45 : public Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74
{
public:
// System.Runtime.ConstrainedExecution.Consistency System.Runtime.ConstrainedExecution.ReliabilityContractAttribute::_consistency
int32_t ____consistency_0;
// System.Runtime.ConstrainedExecution.Cer System.Runtime.ConstrainedExecution.ReliabilityContractAttribute::_cer
int32_t ____cer_1;
public:
inline static int32_t get_offset_of__consistency_0() { return static_cast<int32_t>(offsetof(ReliabilityContractAttribute_t784D3086C6F43192DE3A8676636DE98EE2CBEE45, ____consistency_0)); }
inline int32_t get__consistency_0() const { return ____consistency_0; }
inline int32_t* get_address_of__consistency_0() { return &____consistency_0; }
inline void set__consistency_0(int32_t value)
{
____consistency_0 = value;
}
inline static int32_t get_offset_of__cer_1() { return static_cast<int32_t>(offsetof(ReliabilityContractAttribute_t784D3086C6F43192DE3A8676636DE98EE2CBEE45, ____cer_1)); }
inline int32_t get__cer_1() const { return ____cer_1; }
inline int32_t* get_address_of__cer_1() { return &____cer_1; }
inline void set__cer_1(int32_t value)
{
____cer_1 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // RELIABILITYCONTRACTATTRIBUTE_T784D3086C6F43192DE3A8676636DE98EE2CBEE45_H
#ifndef CLASSINTERFACEATTRIBUTE_TC3F85A84242581EC37E2682E71720E10AC189154_H
#define CLASSINTERFACEATTRIBUTE_TC3F85A84242581EC37E2682E71720E10AC189154_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.InteropServices.ClassInterfaceAttribute
struct ClassInterfaceAttribute_tC3F85A84242581EC37E2682E71720E10AC189154 : public Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74
{
public:
// System.Runtime.InteropServices.ClassInterfaceType System.Runtime.InteropServices.ClassInterfaceAttribute::_val
int32_t ____val_0;
public:
inline static int32_t get_offset_of__val_0() { return static_cast<int32_t>(offsetof(ClassInterfaceAttribute_tC3F85A84242581EC37E2682E71720E10AC189154, ____val_0)); }
inline int32_t get__val_0() const { return ____val_0; }
inline int32_t* get_address_of__val_0() { return &____val_0; }
inline void set__val_0(int32_t value)
{
____val_0 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // CLASSINTERFACEATTRIBUTE_TC3F85A84242581EC37E2682E71720E10AC189154_H
#ifndef DEFAULTDLLIMPORTSEARCHPATHSATTRIBUTE_T78F841C413557838706F822862BAE029C8CF9B87_H
#define DEFAULTDLLIMPORTSEARCHPATHSATTRIBUTE_T78F841C413557838706F822862BAE029C8CF9B87_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.InteropServices.DefaultDllImportSearchPathsAttribute
struct DefaultDllImportSearchPathsAttribute_t78F841C413557838706F822862BAE029C8CF9B87 : public Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74
{
public:
// System.Runtime.InteropServices.DllImportSearchPath System.Runtime.InteropServices.DefaultDllImportSearchPathsAttribute::_paths
int32_t ____paths_0;
public:
inline static int32_t get_offset_of__paths_0() { return static_cast<int32_t>(offsetof(DefaultDllImportSearchPathsAttribute_t78F841C413557838706F822862BAE029C8CF9B87, ____paths_0)); }
inline int32_t get__paths_0() const { return ____paths_0; }
inline int32_t* get_address_of__paths_0() { return &____paths_0; }
inline void set__paths_0(int32_t value)
{
____paths_0 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // DEFAULTDLLIMPORTSEARCHPATHSATTRIBUTE_T78F841C413557838706F822862BAE029C8CF9B87_H
#ifndef DLLIMPORTATTRIBUTE_T75AED23F20C2D5E5D64417CAF2E886FC827D2048_H
#define DLLIMPORTATTRIBUTE_T75AED23F20C2D5E5D64417CAF2E886FC827D2048_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.InteropServices.DllImportAttribute
struct DllImportAttribute_t75AED23F20C2D5E5D64417CAF2E886FC827D2048 : public Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74
{
public:
// System.String System.Runtime.InteropServices.DllImportAttribute::_val
String_t* ____val_0;
// System.String System.Runtime.InteropServices.DllImportAttribute::EntryPoint
String_t* ___EntryPoint_1;
// System.Runtime.InteropServices.CharSet System.Runtime.InteropServices.DllImportAttribute::CharSet
int32_t ___CharSet_2;
// System.Boolean System.Runtime.InteropServices.DllImportAttribute::SetLastError
bool ___SetLastError_3;
// System.Boolean System.Runtime.InteropServices.DllImportAttribute::ExactSpelling
bool ___ExactSpelling_4;
// System.Boolean System.Runtime.InteropServices.DllImportAttribute::PreserveSig
bool ___PreserveSig_5;
// System.Runtime.InteropServices.CallingConvention System.Runtime.InteropServices.DllImportAttribute::CallingConvention
int32_t ___CallingConvention_6;
// System.Boolean System.Runtime.InteropServices.DllImportAttribute::BestFitMapping
bool ___BestFitMapping_7;
// System.Boolean System.Runtime.InteropServices.DllImportAttribute::ThrowOnUnmappableChar
bool ___ThrowOnUnmappableChar_8;
public:
inline static int32_t get_offset_of__val_0() { return static_cast<int32_t>(offsetof(DllImportAttribute_t75AED23F20C2D5E5D64417CAF2E886FC827D2048, ____val_0)); }
inline String_t* get__val_0() const { return ____val_0; }
inline String_t** get_address_of__val_0() { return &____val_0; }
inline void set__val_0(String_t* value)
{
____val_0 = value;
Il2CppCodeGenWriteBarrier((&____val_0), value);
}
inline static int32_t get_offset_of_EntryPoint_1() { return static_cast<int32_t>(offsetof(DllImportAttribute_t75AED23F20C2D5E5D64417CAF2E886FC827D2048, ___EntryPoint_1)); }
inline String_t* get_EntryPoint_1() const { return ___EntryPoint_1; }
inline String_t** get_address_of_EntryPoint_1() { return &___EntryPoint_1; }
inline void set_EntryPoint_1(String_t* value)
{
___EntryPoint_1 = value;
Il2CppCodeGenWriteBarrier((&___EntryPoint_1), value);
}
inline static int32_t get_offset_of_CharSet_2() { return static_cast<int32_t>(offsetof(DllImportAttribute_t75AED23F20C2D5E5D64417CAF2E886FC827D2048, ___CharSet_2)); }
inline int32_t get_CharSet_2() const { return ___CharSet_2; }
inline int32_t* get_address_of_CharSet_2() { return &___CharSet_2; }
inline void set_CharSet_2(int32_t value)
{
___CharSet_2 = value;
}
inline static int32_t get_offset_of_SetLastError_3() { return static_cast<int32_t>(offsetof(DllImportAttribute_t75AED23F20C2D5E5D64417CAF2E886FC827D2048, ___SetLastError_3)); }
inline bool get_SetLastError_3() const { return ___SetLastError_3; }
inline bool* get_address_of_SetLastError_3() { return &___SetLastError_3; }
inline void set_SetLastError_3(bool value)
{
___SetLastError_3 = value;
}
inline static int32_t get_offset_of_ExactSpelling_4() { return static_cast<int32_t>(offsetof(DllImportAttribute_t75AED23F20C2D5E5D64417CAF2E886FC827D2048, ___ExactSpelling_4)); }
inline bool get_ExactSpelling_4() const { return ___ExactSpelling_4; }
inline bool* get_address_of_ExactSpelling_4() { return &___ExactSpelling_4; }
inline void set_ExactSpelling_4(bool value)
{
___ExactSpelling_4 = value;
}
inline static int32_t get_offset_of_PreserveSig_5() { return static_cast<int32_t>(offsetof(DllImportAttribute_t75AED23F20C2D5E5D64417CAF2E886FC827D2048, ___PreserveSig_5)); }
inline bool get_PreserveSig_5() const { return ___PreserveSig_5; }
inline bool* get_address_of_PreserveSig_5() { return &___PreserveSig_5; }
inline void set_PreserveSig_5(bool value)
{
___PreserveSig_5 = value;
}
inline static int32_t get_offset_of_CallingConvention_6() { return static_cast<int32_t>(offsetof(DllImportAttribute_t75AED23F20C2D5E5D64417CAF2E886FC827D2048, ___CallingConvention_6)); }
inline int32_t get_CallingConvention_6() const { return ___CallingConvention_6; }
inline int32_t* get_address_of_CallingConvention_6() { return &___CallingConvention_6; }
inline void set_CallingConvention_6(int32_t value)
{
___CallingConvention_6 = value;
}
inline static int32_t get_offset_of_BestFitMapping_7() { return static_cast<int32_t>(offsetof(DllImportAttribute_t75AED23F20C2D5E5D64417CAF2E886FC827D2048, ___BestFitMapping_7)); }
inline bool get_BestFitMapping_7() const { return ___BestFitMapping_7; }
inline bool* get_address_of_BestFitMapping_7() { return &___BestFitMapping_7; }
inline void set_BestFitMapping_7(bool value)
{
___BestFitMapping_7 = value;
}
inline static int32_t get_offset_of_ThrowOnUnmappableChar_8() { return static_cast<int32_t>(offsetof(DllImportAttribute_t75AED23F20C2D5E5D64417CAF2E886FC827D2048, ___ThrowOnUnmappableChar_8)); }
inline bool get_ThrowOnUnmappableChar_8() const { return ___ThrowOnUnmappableChar_8; }
inline bool* get_address_of_ThrowOnUnmappableChar_8() { return &___ThrowOnUnmappableChar_8; }
inline void set_ThrowOnUnmappableChar_8(bool value)
{
___ThrowOnUnmappableChar_8 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // DLLIMPORTATTRIBUTE_T75AED23F20C2D5E5D64417CAF2E886FC827D2048_H
#ifndef INTERFACETYPEATTRIBUTE_T4FD9BC97FD0CCFF82FA0562D6F897A54C00F9BEF_H
#define INTERFACETYPEATTRIBUTE_T4FD9BC97FD0CCFF82FA0562D6F897A54C00F9BEF_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.InteropServices.InterfaceTypeAttribute
struct InterfaceTypeAttribute_t4FD9BC97FD0CCFF82FA0562D6F897A54C00F9BEF : public Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74
{
public:
// System.Runtime.InteropServices.ComInterfaceType System.Runtime.InteropServices.InterfaceTypeAttribute::_val
int32_t ____val_0;
public:
inline static int32_t get_offset_of__val_0() { return static_cast<int32_t>(offsetof(InterfaceTypeAttribute_t4FD9BC97FD0CCFF82FA0562D6F897A54C00F9BEF, ____val_0)); }
inline int32_t get__val_0() const { return ____val_0; }
inline int32_t* get_address_of__val_0() { return &____val_0; }
inline void set__val_0(int32_t value)
{
____val_0 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // INTERFACETYPEATTRIBUTE_T4FD9BC97FD0CCFF82FA0562D6F897A54C00F9BEF_H
#ifndef UNMANAGEDFUNCTIONPOINTERATTRIBUTE_TC8718CB0B83BA5FA2F5BD5E9C7F2C67D59ED532F_H
#define UNMANAGEDFUNCTIONPOINTERATTRIBUTE_TC8718CB0B83BA5FA2F5BD5E9C7F2C67D59ED532F_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.InteropServices.UnmanagedFunctionPointerAttribute
struct UnmanagedFunctionPointerAttribute_tC8718CB0B83BA5FA2F5BD5E9C7F2C67D59ED532F : public Attribute_tF048C13FB3C8CFCC53F82290E4A3F621089F9A74
{
public:
// System.Runtime.InteropServices.CallingConvention System.Runtime.InteropServices.UnmanagedFunctionPointerAttribute::m_callingConvention
int32_t ___m_callingConvention_0;
// System.Runtime.InteropServices.CharSet System.Runtime.InteropServices.UnmanagedFunctionPointerAttribute::CharSet
int32_t ___CharSet_1;
// System.Boolean System.Runtime.InteropServices.UnmanagedFunctionPointerAttribute::BestFitMapping
bool ___BestFitMapping_2;
// System.Boolean System.Runtime.InteropServices.UnmanagedFunctionPointerAttribute::ThrowOnUnmappableChar
bool ___ThrowOnUnmappableChar_3;
// System.Boolean System.Runtime.InteropServices.UnmanagedFunctionPointerAttribute::SetLastError
bool ___SetLastError_4;
public:
inline static int32_t get_offset_of_m_callingConvention_0() { return static_cast<int32_t>(offsetof(UnmanagedFunctionPointerAttribute_tC8718CB0B83BA5FA2F5BD5E9C7F2C67D59ED532F, ___m_callingConvention_0)); }
inline int32_t get_m_callingConvention_0() const { return ___m_callingConvention_0; }
inline int32_t* get_address_of_m_callingConvention_0() { return &___m_callingConvention_0; }
inline void set_m_callingConvention_0(int32_t value)
{
___m_callingConvention_0 = value;
}
inline static int32_t get_offset_of_CharSet_1() { return static_cast<int32_t>(offsetof(UnmanagedFunctionPointerAttribute_tC8718CB0B83BA5FA2F5BD5E9C7F2C67D59ED532F, ___CharSet_1)); }
inline int32_t get_CharSet_1() const { return ___CharSet_1; }
inline int32_t* get_address_of_CharSet_1() { return &___CharSet_1; }
inline void set_CharSet_1(int32_t value)
{
___CharSet_1 = value;
}
inline static int32_t get_offset_of_BestFitMapping_2() { return static_cast<int32_t>(offsetof(UnmanagedFunctionPointerAttribute_tC8718CB0B83BA5FA2F5BD5E9C7F2C67D59ED532F, ___BestFitMapping_2)); }
inline bool get_BestFitMapping_2() const { return ___BestFitMapping_2; }
inline bool* get_address_of_BestFitMapping_2() { return &___BestFitMapping_2; }
inline void set_BestFitMapping_2(bool value)
{
___BestFitMapping_2 = value;
}
inline static int32_t get_offset_of_ThrowOnUnmappableChar_3() { return static_cast<int32_t>(offsetof(UnmanagedFunctionPointerAttribute_tC8718CB0B83BA5FA2F5BD5E9C7F2C67D59ED532F, ___ThrowOnUnmappableChar_3)); }
inline bool get_ThrowOnUnmappableChar_3() const { return ___ThrowOnUnmappableChar_3; }
inline bool* get_address_of_ThrowOnUnmappableChar_3() { return &___ThrowOnUnmappableChar_3; }
inline void set_ThrowOnUnmappableChar_3(bool value)
{
___ThrowOnUnmappableChar_3 = value;
}
inline static int32_t get_offset_of_SetLastError_4() { return static_cast<int32_t>(offsetof(UnmanagedFunctionPointerAttribute_tC8718CB0B83BA5FA2F5BD5E9C7F2C67D59ED532F, ___SetLastError_4)); }
inline bool get_SetLastError_4() const { return ___SetLastError_4; }
inline bool* get_address_of_SetLastError_4() { return &___SetLastError_4; }
inline void set_SetLastError_4(bool value)
{
___SetLastError_4 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#endif // UNMANAGEDFUNCTIONPOINTERATTRIBUTE_TC8718CB0B83BA5FA2F5BD5E9C7F2C67D59ED532F_H
#ifndef MONOMETHODMESSAGE_T0846334ADE91F66FECE638BEF57256CFF6EEA234_H
#define MONOMETHODMESSAGE_T0846334ADE91F66FECE638BEF57256CFF6EEA234_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Runtime.Remoting.Messaging.MonoMethodMessage
struct MonoMethodMessage_t0846334ADE91F66FECE638BEF57256CFF6EEA234 : public RuntimeObject
{
public:
// System.Reflection.MonoMethod System.Runtime.Remoting.Messaging.MonoMethodMessage::method
MonoMethod_t * ___method_0;
// System.Object[] System.Runtime.Remoting.Messaging.MonoMethodMessage::args
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* ___args_1;
// System.String[] System.Runtime.Remoting.Messaging.MonoMethodMessage::names
StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* ___names_2;
// System.Byte[] System.Runtime.Remoting.Messaging.MonoMethodMessage::arg_types
ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* ___arg_types_3;
// System.Runtime.Remoting.Messaging.LogicalCallContext System.Runtime.Remoting.Messaging.MonoMethodMessage::ctx
LogicalCallContext_t3A9A7C02A28577F0879F6E950E46EEC595731D7E * ___ctx_4;
// System.Object System.Runtime.Remoting.Messaging.MonoMethodMessage::rval
RuntimeObject * ___rval_5;
// System.Exception System.Runtime.Remoting.Messaging.MonoMethodMessage::exc
Exception_t * ___exc_6;
// System.Runtime.Remoting.Messaging.AsyncResult System.Runtime.Remoting.Messaging.MonoMethodMessage::asyncResult
AsyncResult_tCCDC69FF29D3DE32F7BD57870BBC329EFF8E58E2 * ___asyncResult_7;
// System.Runtime.Remoting.Messaging.CallType System.Runtime.Remoting.Messaging.MonoMethodMessage::call_type
int32_t ___call_type_8;
// System.String System.Runtime.Remoting.Messaging.MonoMethodMessage::uri
String_t* ___uri_9;
// System.Runtime.Remoting.Messaging.MCMDictionary System.Runtime.Remoting.Messaging.MonoMethodMessage::properties
MCMDictionary_tD801081CC84A219F173B4A5A90A53A75A43D5434 * ___properties_10;
// System.Type[] System.Runtime.Remoting.Messaging.MonoMethodMessage::methodSignature
TypeU5BU5D_t7FE623A666B49176DE123306221193E888A12F5F* ___methodSignature_11;
// System.Runtime.Remoting.Identity System.Runtime.Remoting.Messaging.MonoMethodMessage::identity
Identity_tB4E8BEFF42D505C9B24C9284934E6538F29606B6 * ___identity_12;
public:
inline static int32_t get_offset_of_method_0() { return static_cast<int32_t>(offsetof(MonoMethodMessage_t0846334ADE91F66FECE638BEF57256CFF6EEA234, ___method_0)); }
inline MonoMethod_t * get_method_0() const { return ___method_0; }
inline MonoMethod_t ** get_address_of_method_0() { return &___method_0; }
inline void set_method_0(MonoMethod_t * value)
{
___method_0 = value;
Il2CppCodeGenWriteBarrier((&___method_0), value);
}
inline static int32_t get_offset_of_args_1() { return static_cast<int32_t>(offsetof(MonoMethodMessage_t0846334ADE91F66FECE638BEF57256CFF6EEA234, ___args_1)); }
inline ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* get_args_1() const { return ___args_1; }
inline ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A** get_address_of_args_1() { return &___args_1; }
inline void set_args_1(ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* value)
{
___args_1 = value;
Il2CppCodeGenWriteBarrier((&___args_1), value);
}
inline static int32_t get_offset_of_names_2() { return static_cast<int32_t>(offsetof(MonoMethodMessage_t0846334ADE91F66FECE638BEF57256CFF6EEA234, ___names_2)); }
inline StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* get_names_2() const { return ___names_2; }
inline StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E** get_address_of_names_2() { return &___names_2; }
inline void set_names_2(StringU5BU5D_t933FB07893230EA91C40FF900D5400665E87B14E* value)
{
___names_2 = value;
Il2CppCodeGenWriteBarrier((&___names_2), value);
}
inline static int32_t get_offset_of_arg_types_3() { return static_cast<int32_t>(offsetof(MonoMethodMessage_t0846334ADE91F66FECE638BEF57256CFF6EEA234, ___arg_types_3)); }
inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* get_arg_types_3() const { return ___arg_types_3; }
inline ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821** get_address_of_arg_types_3() { return &___arg_types_3; }
inline void set_arg_types_3(ByteU5BU5D_tD06FDBE8142446525DF1C40351D523A228373821* value)
{
___arg_types_3 = value;
Il2CppCodeGenWriteBarrier((&___arg_types_3), value);
}
inline static int32_t get_offset_of_ctx_4() { return static_cast<int32_t>(offsetof(MonoMethodMessage_t0846334ADE91F66FECE638BEF57256CFF6EEA234, ___ctx_4)); }
inline LogicalCallContext_t3A9A7C02A28577F0879F6E950E46EEC595731D7E * get_ctx_4() const { return ___ctx_4; }
inline LogicalCallContext_t3A9A7C02A28577F0879F6E950E46EEC595731D7E ** get_address_of_ctx_4() { return &___ctx_4; }
inline void set_ctx_4(LogicalCallContext_t3A9A7C02A28577F0879F6E950E46EEC595731D7E * value)
{
___ctx_4 = value;
Il2CppCodeGenWriteBarrier((&___ctx_4), value);
}
inline static int32_t get_offset_of_rval_5() { return static_cast<int32_t>(offsetof(MonoMethodMessage_t0846334ADE91F66FECE638BEF57256CFF6EEA234, ___rval_5)); }
inline RuntimeObject * get_rval_5() const { return ___rval_5; }
inline RuntimeObject ** get_address_of_rval_5() { return &___rval_5; }
inline void set_rval_5(RuntimeObject * value)
{
___rval_5 = value;
Il2CppCodeGenWriteBarrier((&___rval_5), value);
}
inline static int32_t get_offset_of_exc_6() { return static_cast<int32_t>(offsetof(MonoMethodMessage_t0846334ADE91F66FECE638BEF57256CFF6EEA234, ___exc_6)); }
inline Exception_t * get_exc_6() const { return ___exc_6; }
inline Exception_t ** get_address_of_exc_6() { return &___exc_6; }
inline void set_exc_6(Exception_t * value)
{
___exc_6 = value;
Il2CppCodeGenWriteBarrier((&___exc_6), value);
}
inline static int32_t get_offset_of_asyncResult_7() { return static_cast<int32_t>(offsetof(MonoMethodMessage_t0846334ADE91F66FECE638BEF57256CFF6EEA234, ___asyncResult_7)); }
inline AsyncResult_tCCDC69FF29D3DE32F7BD57870BBC329EFF8E58E2 * get_asyncResult_7() const { return ___asyncResult_7; }
inline AsyncResult_tCCDC69FF29D3DE32F7BD57870BBC329EFF8E58E2 ** get_address_of_asyncResult_7() { return &___asyncResult_7; }
inline void set_asyncResult_7(AsyncResult_tCCDC69FF29D3DE32F7BD57870BBC329EFF8E58E2 * value)
{
___asyncResult_7 = value;
Il2CppCodeGenWriteBarrier((&___asyncResult_7), value);
}
inline static int32_t get_offset_of_call_type_8() { return static_cast<int32_t>(offsetof(MonoMethodMessage_t0846334ADE91F66FECE638BEF57256CFF6EEA234, ___call_type_8)); }
inline int32_t get_call_type_8() const { return ___call_type_8; }
inline int32_t* get_address_of_call_type_8() { return &___call_type_8; }
inline void set_call_type_8(int32_t value)
{
___call_type_8 = value;
}
inline static int32_t get_offset_of_uri_9() { return static_cast<int32_t>(offsetof(MonoMethodMessage_t0846334ADE91F66FECE638BEF57256CFF6EEA234, ___uri_9)); }
inline String_t* get_uri_9() const { return ___uri_9; }
inline String_t** get_address_of_uri_9() { return &___uri_9; }
inline void set_uri_9(String_t* value)
{
___uri_9 = value;
Il2CppCodeGenWriteBarrier((&___uri_9), value);
}
inline static int32_t get_offset_of_properties_10() { return static_cast<int32_t>(offsetof(MonoMethodMessage_t0846334ADE91F66FECE638BEF57256CFF6EEA234, ___properties_10)); }
inline MCMDictionary_tD801081CC84A219F173B4A5A90A53A75A43D5434 * get_properties_10() const { return ___properties_10; }
inline MCMDictionary_tD801081CC84A219F173B4A5A90A53A75A43D5434 ** get_address_of_properties_10() { return &___properties_10; }
inline void set_properties_10(MCMDictionary_tD801081CC84A219F173B4A5A90A53A75A43D5434 * value)
{
___properties_10 = value;
Il2CppCodeGenWriteBarrier((&___properties_10), value);
}
inline static int32_t get_offset_of_methodSignature_11() { return static_cast<int32_t>(offsetof(MonoMethodMessage_t0846334ADE91F66FECE638BEF57256CFF6EEA234, ___methodSignature_11)); }
inline TypeU5BU5D_t7FE623A666B49176DE123306221193E888A12F5F* get_methodSignature_11() const { return ___methodSignature_11; }
inline TypeU5BU5D_t7FE623A666B49176DE123306221193E888A12F5F** get_address_of_methodSignature_11() { return &___methodSignature_11; }
inline void set_methodSignature_11(TypeU5BU5D_t7FE623A666B49176DE123306221193E888A12F5F* value)
{
___methodSignature_11 = value;
Il2CppCodeGenWriteBarrier((&___methodSignature_11), value);
}
inline static int32_t get_offset_of_identity_12() { return static_cast<int32_t>(offsetof(MonoMethodMessage_t0846334ADE91F66FECE638BEF57256CFF6EEA234, ___identity_12)); }
inline Identity_tB4E8BEFF42D505C9B24C9284934E6538F29606B6 * get_identity_12() const { return ___identity_12; }
inline Identity_tB4E8BEFF42D505C9B24C9284934E6538F29606B6 ** get_address_of_identity_12() { return &___identity_12; }
inline void set_identity_12(Identity_tB4E8BEFF42D505C9B24C9284934E6538F29606B6 * value)
{
___identity_12 = value;
Il2CppCodeGenWriteBarrier((&___identity_12), value);
}
};
struct MonoMethodMessage_t0846334ADE91F66FECE638BEF57256CFF6EEA234_StaticFields
{
public:
// System.String System.Runtime.Remoting.Messaging.MonoMethodMessage::CallContextKey
String_t* ___CallContextKey_13;
// System.String System.Runtime.Remoting.Messaging.MonoMethodMessage::UriKey
String_t* ___UriKey_14;
public:
inline static int32_t get_offset_of_CallContextKey_13() { return static_cast<int32_t>(offsetof(MonoMethodMessage_t0846334ADE91F66FECE638BEF57256CFF6EEA234_StaticFields, ___CallContextKey_13)); }
inline String_t* get_CallContextKey_13() const { return ___CallContextKey_13; }
inline String_t** get_address_of_CallContextKey_13() { return &___CallContextKey_13; }
inline void set_CallContextKey_13(String_t* value)
{
___CallContextKey_13 = value;
Il2CppCodeGenWriteBarrier((&___CallContextKey_13), value);
}
inline static int32_t get_offset_of_UriKey_14() { return static_cast<int32_t>(offsetof(MonoMethodMessage_t0846334ADE91F66FECE638BEF57256CFF6EEA234_StaticFields, ___UriKey_14)); }
inline String_t* get_UriKey_14() const { return ___UriKey_14; }
inline String_t** get_address_of_UriKey_14() { return &___UriKey_14; }
inline void set_UriKey_14(String_t* value)
{
___UriKey_14 = value;
Il2CppCodeGenWriteBarrier((&___UriKey_14), value);
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// Native definition for P/Invoke marshalling of System.Runtime.Remoting.Messaging.MonoMethodMessage
struct MonoMethodMessage_t0846334ADE91F66FECE638BEF57256CFF6EEA234_marshaled_pinvoke
{
MonoMethod_t * ___method_0;
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* ___args_1;
char** ___names_2;
uint8_t* ___arg_types_3;
LogicalCallContext_t3A9A7C02A28577F0879F6E950E46EEC595731D7E * ___ctx_4;
Il2CppIUnknown* ___rval_5;
Exception_t_marshaled_pinvoke* ___exc_6;
AsyncResult_tCCDC69FF29D3DE32F7BD57870BBC329EFF8E58E2_marshaled_pinvoke* ___asyncResult_7;
int32_t ___call_type_8;
char* ___uri_9;
MCMDictionary_tD801081CC84A219F173B4A5A90A53A75A43D5434 * ___properties_10;
TypeU5BU5D_t7FE623A666B49176DE123306221193E888A12F5F* ___methodSignature_11;
Identity_tB4E8BEFF42D505C9B24C9284934E6538F29606B6 * ___identity_12;
};
// Native definition for COM marshalling of System.Runtime.Remoting.Messaging.MonoMethodMessage
struct MonoMethodMessage_t0846334ADE91F66FECE638BEF57256CFF6EEA234_marshaled_com
{
MonoMethod_t * ___method_0;
ObjectU5BU5D_t3C9242B5C88A48B2A5BD9FDA6CD0024E792AF08A* ___args_1;
Il2CppChar** ___names_2;
uint8_t* ___arg_types_3;
LogicalCallContext_t3A9A7C02A28577F0879F6E950E46EEC595731D7E * ___ctx_4;
Il2CppIUnknown* ___rval_5;
Exception_t_marshaled_com* ___exc_6;
AsyncResult_tCCDC69FF29D3DE32F7BD57870BBC329EFF8E58E2_marshaled_com* ___asyncResult_7;
int32_t ___call_type_8;
Il2CppChar* ___uri_9;
MCMDictionary_tD801081CC84A219F173B4A5A90A53A75A43D5434 * ___properties_10;
TypeU5BU5D_t7FE623A666B49176DE123306221193E888A12F5F* ___methodSignature_11;
Identity_tB4E8BEFF42D505C9B24C9284934E6538F29606B6 * ___identity_12;
};
#endif // MONOMETHODMESSAGE_T0846334ADE91F66FECE638BEF57256CFF6EEA234_H
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1100 = { 0, -1, 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1101 = { 0, -1, 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1102 = { sizeof (MethodCall_tF8FFD68F9EB80746F22EA5B9C23E9701A440E5CA), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable1102[11] =
{
MethodCall_tF8FFD68F9EB80746F22EA5B9C23E9701A440E5CA::get_offset_of__uri_0(),
MethodCall_tF8FFD68F9EB80746F22EA5B9C23E9701A440E5CA::get_offset_of__typeName_1(),
MethodCall_tF8FFD68F9EB80746F22EA5B9C23E9701A440E5CA::get_offset_of__methodName_2(),
MethodCall_tF8FFD68F9EB80746F22EA5B9C23E9701A440E5CA::get_offset_of__args_3(),
MethodCall_tF8FFD68F9EB80746F22EA5B9C23E9701A440E5CA::get_offset_of__methodSignature_4(),
MethodCall_tF8FFD68F9EB80746F22EA5B9C23E9701A440E5CA::get_offset_of__methodBase_5(),
MethodCall_tF8FFD68F9EB80746F22EA5B9C23E9701A440E5CA::get_offset_of__callContext_6(),
MethodCall_tF8FFD68F9EB80746F22EA5B9C23E9701A440E5CA::get_offset_of__targetIdentity_7(),
MethodCall_tF8FFD68F9EB80746F22EA5B9C23E9701A440E5CA::get_offset_of__genericArguments_8(),
MethodCall_tF8FFD68F9EB80746F22EA5B9C23E9701A440E5CA::get_offset_of_ExternalProperties_9(),
MethodCall_tF8FFD68F9EB80746F22EA5B9C23E9701A440E5CA::get_offset_of_InternalProperties_10(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1103 = { sizeof (MCMDictionary_tD801081CC84A219F173B4A5A90A53A75A43D5434), -1, sizeof(MCMDictionary_tD801081CC84A219F173B4A5A90A53A75A43D5434_StaticFields), 0 };
extern const int32_t g_FieldOffsetTable1103[1] =
{
MCMDictionary_tD801081CC84A219F173B4A5A90A53A75A43D5434_StaticFields::get_offset_of_InternalKeys_4(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1104 = { sizeof (MessageDictionary_tC2DDCAFD65B74954A76393BCE90E57F58298F5C5), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable1104[4] =
{
MessageDictionary_tC2DDCAFD65B74954A76393BCE90E57F58298F5C5::get_offset_of__internalProperties_0(),
MessageDictionary_tC2DDCAFD65B74954A76393BCE90E57F58298F5C5::get_offset_of__message_1(),
MessageDictionary_tC2DDCAFD65B74954A76393BCE90E57F58298F5C5::get_offset_of__methodKeys_2(),
MessageDictionary_tC2DDCAFD65B74954A76393BCE90E57F58298F5C5::get_offset_of__ownProperties_3(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1105 = { sizeof (DictionaryEnumerator_tA162086B57068DE62A7BAD2CAA7003E632DE2AB9), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable1105[3] =
{
DictionaryEnumerator_tA162086B57068DE62A7BAD2CAA7003E632DE2AB9::get_offset_of__methodDictionary_0(),
DictionaryEnumerator_tA162086B57068DE62A7BAD2CAA7003E632DE2AB9::get_offset_of__hashtableEnum_1(),
DictionaryEnumerator_tA162086B57068DE62A7BAD2CAA7003E632DE2AB9::get_offset_of__posMethod_2(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1106 = { sizeof (MethodResponse_t185820C6B3E7D56E9026084CB2CEF1387151D907), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable1106[15] =
{
MethodResponse_t185820C6B3E7D56E9026084CB2CEF1387151D907::get_offset_of__methodName_0(),
MethodResponse_t185820C6B3E7D56E9026084CB2CEF1387151D907::get_offset_of__uri_1(),
MethodResponse_t185820C6B3E7D56E9026084CB2CEF1387151D907::get_offset_of__typeName_2(),
MethodResponse_t185820C6B3E7D56E9026084CB2CEF1387151D907::get_offset_of__methodBase_3(),
MethodResponse_t185820C6B3E7D56E9026084CB2CEF1387151D907::get_offset_of__returnValue_4(),
MethodResponse_t185820C6B3E7D56E9026084CB2CEF1387151D907::get_offset_of__exception_5(),
MethodResponse_t185820C6B3E7D56E9026084CB2CEF1387151D907::get_offset_of__methodSignature_6(),
MethodResponse_t185820C6B3E7D56E9026084CB2CEF1387151D907::get_offset_of__inArgInfo_7(),
MethodResponse_t185820C6B3E7D56E9026084CB2CEF1387151D907::get_offset_of__args_8(),
MethodResponse_t185820C6B3E7D56E9026084CB2CEF1387151D907::get_offset_of__outArgs_9(),
MethodResponse_t185820C6B3E7D56E9026084CB2CEF1387151D907::get_offset_of__callMsg_10(),
MethodResponse_t185820C6B3E7D56E9026084CB2CEF1387151D907::get_offset_of__callContext_11(),
MethodResponse_t185820C6B3E7D56E9026084CB2CEF1387151D907::get_offset_of__targetIdentity_12(),
MethodResponse_t185820C6B3E7D56E9026084CB2CEF1387151D907::get_offset_of_ExternalProperties_13(),
MethodResponse_t185820C6B3E7D56E9026084CB2CEF1387151D907::get_offset_of_InternalProperties_14(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1107 = { sizeof (MethodReturnDictionary_tFCD4ADFA43AA2736517130020BBB9E60A253EB48), -1, sizeof(MethodReturnDictionary_tFCD4ADFA43AA2736517130020BBB9E60A253EB48_StaticFields), 0 };
extern const int32_t g_FieldOffsetTable1107[2] =
{
MethodReturnDictionary_tFCD4ADFA43AA2736517130020BBB9E60A253EB48_StaticFields::get_offset_of_InternalReturnKeys_4(),
MethodReturnDictionary_tFCD4ADFA43AA2736517130020BBB9E60A253EB48_StaticFields::get_offset_of_InternalExceptionKeys_5(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1108 = { sizeof (MonoMethodMessage_t0846334ADE91F66FECE638BEF57256CFF6EEA234), -1, sizeof(MonoMethodMessage_t0846334ADE91F66FECE638BEF57256CFF6EEA234_StaticFields), 0 };
extern const int32_t g_FieldOffsetTable1108[15] =
{
MonoMethodMessage_t0846334ADE91F66FECE638BEF57256CFF6EEA234::get_offset_of_method_0(),
MonoMethodMessage_t0846334ADE91F66FECE638BEF57256CFF6EEA234::get_offset_of_args_1(),
MonoMethodMessage_t0846334ADE91F66FECE638BEF57256CFF6EEA234::get_offset_of_names_2(),
MonoMethodMessage_t0846334ADE91F66FECE638BEF57256CFF6EEA234::get_offset_of_arg_types_3(),
MonoMethodMessage_t0846334ADE91F66FECE638BEF57256CFF6EEA234::get_offset_of_ctx_4(),
MonoMethodMessage_t0846334ADE91F66FECE638BEF57256CFF6EEA234::get_offset_of_rval_5(),
MonoMethodMessage_t0846334ADE91F66FECE638BEF57256CFF6EEA234::get_offset_of_exc_6(),
MonoMethodMessage_t0846334ADE91F66FECE638BEF57256CFF6EEA234::get_offset_of_asyncResult_7(),
MonoMethodMessage_t0846334ADE91F66FECE638BEF57256CFF6EEA234::get_offset_of_call_type_8(),
MonoMethodMessage_t0846334ADE91F66FECE638BEF57256CFF6EEA234::get_offset_of_uri_9(),
MonoMethodMessage_t0846334ADE91F66FECE638BEF57256CFF6EEA234::get_offset_of_properties_10(),
MonoMethodMessage_t0846334ADE91F66FECE638BEF57256CFF6EEA234::get_offset_of_methodSignature_11(),
MonoMethodMessage_t0846334ADE91F66FECE638BEF57256CFF6EEA234::get_offset_of_identity_12(),
MonoMethodMessage_t0846334ADE91F66FECE638BEF57256CFF6EEA234_StaticFields::get_offset_of_CallContextKey_13(),
MonoMethodMessage_t0846334ADE91F66FECE638BEF57256CFF6EEA234_StaticFields::get_offset_of_UriKey_14(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1109 = { sizeof (CallType_tBE39760BBF734FCF6769A65BFA1F512B1D107243)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 };
extern const int32_t g_FieldOffsetTable1109[5] =
{
CallType_tBE39760BBF734FCF6769A65BFA1F512B1D107243::get_offset_of_value___2() + static_cast<int32_t>(sizeof(RuntimeObject)),
0,
0,
0,
0,
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1110 = { sizeof (OneWayAttribute_t848DB2BC395D34A01B2932EEC85CEA65CA9C9B43), -1, 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1111 = { sizeof (RemotingSurrogate_t722F41294C1F4DEA38A993DB43F51AC8CBB494BA), -1, 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1112 = { sizeof (ObjRefSurrogate_tE2F801FFAE2DBDE6B44A528F7E537922F3840547), -1, 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1113 = { sizeof (RemotingSurrogateSelector_tEABB3D5ACF04B7270F565E8BC105DDD94DDFFE44), -1, sizeof(RemotingSurrogateSelector_tEABB3D5ACF04B7270F565E8BC105DDD94DDFFE44_StaticFields), 0 };
extern const int32_t g_FieldOffsetTable1113[4] =
{
RemotingSurrogateSelector_tEABB3D5ACF04B7270F565E8BC105DDD94DDFFE44_StaticFields::get_offset_of_s_cachedTypeObjRef_0(),
RemotingSurrogateSelector_tEABB3D5ACF04B7270F565E8BC105DDD94DDFFE44_StaticFields::get_offset_of__objRefSurrogate_1(),
RemotingSurrogateSelector_tEABB3D5ACF04B7270F565E8BC105DDD94DDFFE44_StaticFields::get_offset_of__objRemotingSurrogate_2(),
RemotingSurrogateSelector_tEABB3D5ACF04B7270F565E8BC105DDD94DDFFE44::get_offset_of__next_3(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1114 = { sizeof (ReturnMessage_tCB42BAB06521388D0FC8E5745FC9A74FCC4E6E03), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable1114[13] =
{
ReturnMessage_tCB42BAB06521388D0FC8E5745FC9A74FCC4E6E03::get_offset_of__outArgs_0(),
ReturnMessage_tCB42BAB06521388D0FC8E5745FC9A74FCC4E6E03::get_offset_of__args_1(),
ReturnMessage_tCB42BAB06521388D0FC8E5745FC9A74FCC4E6E03::get_offset_of__callCtx_2(),
ReturnMessage_tCB42BAB06521388D0FC8E5745FC9A74FCC4E6E03::get_offset_of__returnValue_3(),
ReturnMessage_tCB42BAB06521388D0FC8E5745FC9A74FCC4E6E03::get_offset_of__uri_4(),
ReturnMessage_tCB42BAB06521388D0FC8E5745FC9A74FCC4E6E03::get_offset_of__exception_5(),
ReturnMessage_tCB42BAB06521388D0FC8E5745FC9A74FCC4E6E03::get_offset_of__methodBase_6(),
ReturnMessage_tCB42BAB06521388D0FC8E5745FC9A74FCC4E6E03::get_offset_of__methodName_7(),
ReturnMessage_tCB42BAB06521388D0FC8E5745FC9A74FCC4E6E03::get_offset_of__methodSignature_8(),
ReturnMessage_tCB42BAB06521388D0FC8E5745FC9A74FCC4E6E03::get_offset_of__typeName_9(),
ReturnMessage_tCB42BAB06521388D0FC8E5745FC9A74FCC4E6E03::get_offset_of__properties_10(),
ReturnMessage_tCB42BAB06521388D0FC8E5745FC9A74FCC4E6E03::get_offset_of__targetIdentity_11(),
ReturnMessage_tCB42BAB06521388D0FC8E5745FC9A74FCC4E6E03::get_offset_of__inArgInfo_12(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1115 = { sizeof (ServerContextTerminatorSink_t11FA44A0CACACA4A89B73434FB6D685479C6B8E0), -1, 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1116 = { sizeof (ServerObjectTerminatorSink_t635122FE05BCEDE34F4B07AA9590AD77509752FD), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable1116[1] =
{
ServerObjectTerminatorSink_t635122FE05BCEDE34F4B07AA9590AD77509752FD::get_offset_of__nextSink_0(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1117 = { sizeof (ServerObjectReplySink_tE1CEF247A2AC5DFD53842706CFE097CE9556CCB8), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable1117[2] =
{
ServerObjectReplySink_tE1CEF247A2AC5DFD53842706CFE097CE9556CCB8::get_offset_of__replySink_0(),
ServerObjectReplySink_tE1CEF247A2AC5DFD53842706CFE097CE9556CCB8::get_offset_of__identity_1(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1118 = { sizeof (StackBuilderSink_t312B8C166D43B3871C33905CA64E57520C479897), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable1118[2] =
{
StackBuilderSink_t312B8C166D43B3871C33905CA64E57520C479897::get_offset_of__target_0(),
StackBuilderSink_t312B8C166D43B3871C33905CA64E57520C479897::get_offset_of__rp_1(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1119 = { sizeof (HandleProcessCorruptedStateExceptionsAttribute_tA72E0974E174E223166E56C7E2B20C319C322260), -1, 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1120 = { sizeof (FirstChanceExceptionEventArgs_t0FA7904C9F4BAA2FC640BE3E5AC348F153AD8B6D), -1, 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1121 = { sizeof (ExceptionDispatchInfo_t0C54083F3909DAF986A4DEAA7C047559531E0E2A), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable1121[2] =
{
ExceptionDispatchInfo_t0C54083F3909DAF986A4DEAA7C047559531E0E2A::get_offset_of_m_Exception_0(),
ExceptionDispatchInfo_t0C54083F3909DAF986A4DEAA7C047559531E0E2A::get_offset_of_m_stackTrace_1(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1122 = { sizeof (CriticalFinalizerObject_t8B006E1DEE084E781F5C0F3283E9226E28894DD9), -1, 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1123 = { sizeof (Consistency_tDE0B5998ED48C4408C59644E7E13E309B2309729)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 };
extern const int32_t g_FieldOffsetTable1123[5] =
{
Consistency_tDE0B5998ED48C4408C59644E7E13E309B2309729::get_offset_of_value___2() + static_cast<int32_t>(sizeof(RuntimeObject)),
0,
0,
0,
0,
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1124 = { sizeof (Cer_t26325DB2296A2720F6F7C6608A867BCCC7739807)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 };
extern const int32_t g_FieldOffsetTable1124[4] =
{
Cer_t26325DB2296A2720F6F7C6608A867BCCC7739807::get_offset_of_value___2() + static_cast<int32_t>(sizeof(RuntimeObject)),
0,
0,
0,
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1125 = { sizeof (ReliabilityContractAttribute_t784D3086C6F43192DE3A8676636DE98EE2CBEE45), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable1125[2] =
{
ReliabilityContractAttribute_t784D3086C6F43192DE3A8676636DE98EE2CBEE45::get_offset_of__consistency_0(),
ReliabilityContractAttribute_t784D3086C6F43192DE3A8676636DE98EE2CBEE45::get_offset_of__cer_1(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1126 = { 0, -1, 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1127 = { sizeof (IsReadOnlyAttribute_tD69A056AD347DF5A551044EAB596F41434DF462D), -1, 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1128 = { sizeof (AsyncVoidMethodBuilder_t44E3C9B52B019BB5BDCC0E1BB83188B536161CFF)+ sizeof (RuntimeObject), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable1128[3] =
{
AsyncVoidMethodBuilder_t44E3C9B52B019BB5BDCC0E1BB83188B536161CFF::get_offset_of_m_synchronizationContext_0() + static_cast<int32_t>(sizeof(RuntimeObject)),
AsyncVoidMethodBuilder_t44E3C9B52B019BB5BDCC0E1BB83188B536161CFF::get_offset_of_m_coreState_1() + static_cast<int32_t>(sizeof(RuntimeObject)),
AsyncVoidMethodBuilder_t44E3C9B52B019BB5BDCC0E1BB83188B536161CFF::get_offset_of_m_task_2() + static_cast<int32_t>(sizeof(RuntimeObject)),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1129 = { sizeof (AsyncTaskMethodBuilder_t0CD1893D670405BED201BE8CA6F2E811F2C0F487)+ sizeof (RuntimeObject), -1, sizeof(AsyncTaskMethodBuilder_t0CD1893D670405BED201BE8CA6F2E811F2C0F487_StaticFields), 0 };
extern const int32_t g_FieldOffsetTable1129[2] =
{
AsyncTaskMethodBuilder_t0CD1893D670405BED201BE8CA6F2E811F2C0F487_StaticFields::get_offset_of_s_cachedCompleted_0(),
AsyncTaskMethodBuilder_t0CD1893D670405BED201BE8CA6F2E811F2C0F487::get_offset_of_m_builder_1() + static_cast<int32_t>(sizeof(RuntimeObject)),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1130 = { 0, 0, 0, 0 };
extern const int32_t g_FieldOffsetTable1130[3] =
{
0,
0,
0,
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1131 = { sizeof (AsyncTaskCache_t34A97832FCD6948CE68777740FA37AEAB550E6CF), -1, sizeof(AsyncTaskCache_t34A97832FCD6948CE68777740FA37AEAB550E6CF_StaticFields), 0 };
extern const int32_t g_FieldOffsetTable1131[3] =
{
AsyncTaskCache_t34A97832FCD6948CE68777740FA37AEAB550E6CF_StaticFields::get_offset_of_TrueTask_0(),
AsyncTaskCache_t34A97832FCD6948CE68777740FA37AEAB550E6CF_StaticFields::get_offset_of_FalseTask_1(),
AsyncTaskCache_t34A97832FCD6948CE68777740FA37AEAB550E6CF_StaticFields::get_offset_of_Int32Tasks_2(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1132 = { sizeof (AsyncMethodBuilderCore_t4CE6C1E4B0621A6EC45CF6E0E8F1F633FFF9FF01)+ sizeof (RuntimeObject), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable1132[2] =
{
AsyncMethodBuilderCore_t4CE6C1E4B0621A6EC45CF6E0E8F1F633FFF9FF01::get_offset_of_m_stateMachine_0() + static_cast<int32_t>(sizeof(RuntimeObject)),
AsyncMethodBuilderCore_t4CE6C1E4B0621A6EC45CF6E0E8F1F633FFF9FF01::get_offset_of_m_defaultContextAction_1() + static_cast<int32_t>(sizeof(RuntimeObject)),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1133 = { sizeof (MoveNextRunner_t6A0B9DE31628DAC797ABC84945D4C62B07C3E65A), -1, sizeof(MoveNextRunner_t6A0B9DE31628DAC797ABC84945D4C62B07C3E65A_StaticFields), 0 };
extern const int32_t g_FieldOffsetTable1133[3] =
{
MoveNextRunner_t6A0B9DE31628DAC797ABC84945D4C62B07C3E65A::get_offset_of_m_context_0(),
MoveNextRunner_t6A0B9DE31628DAC797ABC84945D4C62B07C3E65A::get_offset_of_m_stateMachine_1(),
MoveNextRunner_t6A0B9DE31628DAC797ABC84945D4C62B07C3E65A_StaticFields::get_offset_of_s_invokeMoveNext_2(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1134 = { sizeof (ContinuationWrapper_tCC429E05B578FB77DAD5970B18B3DD07748DB201), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable1134[3] =
{
ContinuationWrapper_tCC429E05B578FB77DAD5970B18B3DD07748DB201::get_offset_of_m_continuation_0(),
ContinuationWrapper_tCC429E05B578FB77DAD5970B18B3DD07748DB201::get_offset_of_m_invokeAction_1(),
ContinuationWrapper_tCC429E05B578FB77DAD5970B18B3DD07748DB201::get_offset_of_m_innerTask_2(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1135 = { sizeof (U3CU3Ec__DisplayClass4_0_t91BE7D82E3148DC17AD2CF3AFA190EE3018F2368), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable1135[2] =
{
U3CU3Ec__DisplayClass4_0_t91BE7D82E3148DC17AD2CF3AFA190EE3018F2368::get_offset_of_innerTask_0(),
U3CU3Ec__DisplayClass4_0_t91BE7D82E3148DC17AD2CF3AFA190EE3018F2368::get_offset_of_continuation_1(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1136 = { sizeof (U3CU3Ec_tFBB9560424DFB5E39123CDE092BE03875E657079), -1, sizeof(U3CU3Ec_tFBB9560424DFB5E39123CDE092BE03875E657079_StaticFields), 0 };
extern const int32_t g_FieldOffsetTable1136[3] =
{
U3CU3Ec_tFBB9560424DFB5E39123CDE092BE03875E657079_StaticFields::get_offset_of_U3CU3E9_0(),
U3CU3Ec_tFBB9560424DFB5E39123CDE092BE03875E657079_StaticFields::get_offset_of_U3CU3E9__6_0_1(),
U3CU3Ec_tFBB9560424DFB5E39123CDE092BE03875E657079_StaticFields::get_offset_of_U3CU3E9__6_1_2(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1137 = { sizeof (AsyncStateMachineAttribute_t71790D316286529022E8E3342C82150023358A00), -1, 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1138 = { 0, -1, 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1139 = { 0, -1, 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1140 = { 0, -1, 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1141 = { sizeof (IteratorStateMachineAttribute_tECB2E5CA9F79A291BC0E217CD60F706C5AFC563E), -1, 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1142 = { sizeof (RuntimeCompatibilityAttribute_tF386C60D3DD4A0E1759F1D8F76841FC4522A6126), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable1142[1] =
{
RuntimeCompatibilityAttribute_tF386C60D3DD4A0E1759F1D8F76841FC4522A6126::get_offset_of_m_wrapNonExceptionThrows_0(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1143 = { sizeof (RuntimeWrappedException_t5E7538D9FD99A8A0FB32B396776E294A29866C0D), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable1143[1] =
{
RuntimeWrappedException_t5E7538D9FD99A8A0FB32B396776E294A29866C0D::get_offset_of_m_wrappedException_17(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1144 = { sizeof (StateMachineAttribute_t0F08DD69D5AB4A30C6A13E245143DD5335A4DA93), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable1144[1] =
{
StateMachineAttribute_t0F08DD69D5AB4A30C6A13E245143DD5335A4DA93::get_offset_of_U3CStateMachineTypeU3Ek__BackingField_0(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1145 = { sizeof (TaskAwaiter_t0CDE8DBB564F0A0EA55FA6B3D43EEF96BC26252F)+ sizeof (RuntimeObject), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable1145[1] =
{
TaskAwaiter_t0CDE8DBB564F0A0EA55FA6B3D43EEF96BC26252F::get_offset_of_m_task_0() + static_cast<int32_t>(sizeof(RuntimeObject)),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1146 = { 0, 0, 0, 0 };
extern const int32_t g_FieldOffsetTable1146[1] =
{
0,
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1147 = { sizeof (ConfiguredTaskAwaitable_t24DE1415466EE20060BE5AD528DC5C812CFA53A9)+ sizeof (RuntimeObject), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable1147[1] =
{
ConfiguredTaskAwaitable_t24DE1415466EE20060BE5AD528DC5C812CFA53A9::get_offset_of_m_configuredTaskAwaiter_0() + static_cast<int32_t>(sizeof(RuntimeObject)),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1148 = { sizeof (ConfiguredTaskAwaiter_tF1AAA16B8A1250CA037E32157A3424CD2BA47874)+ sizeof (RuntimeObject), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable1148[2] =
{
ConfiguredTaskAwaiter_tF1AAA16B8A1250CA037E32157A3424CD2BA47874::get_offset_of_m_task_0() + static_cast<int32_t>(sizeof(RuntimeObject)),
ConfiguredTaskAwaiter_tF1AAA16B8A1250CA037E32157A3424CD2BA47874::get_offset_of_m_continueOnCapturedContext_1() + static_cast<int32_t>(sizeof(RuntimeObject)),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1149 = { 0, 0, 0, 0 };
extern const int32_t g_FieldOffsetTable1149[1] =
{
0,
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1150 = { 0, 0, 0, 0 };
extern const int32_t g_FieldOffsetTable1150[2] =
{
0,
0,
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1151 = { sizeof (TypeForwardedFromAttribute_tEE8D8DA95C9112F53D8E66EA00F476C923A003E2), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable1151[1] =
{
TypeForwardedFromAttribute_tEE8D8DA95C9112F53D8E66EA00F476C923A003E2::get_offset_of_assemblyFullName_0(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1152 = { sizeof (YieldAwaitable_t5A938EAA492F9B8ABA2EEFF16C7A83EA606B9911)+ sizeof (RuntimeObject), sizeof(YieldAwaitable_t5A938EAA492F9B8ABA2EEFF16C7A83EA606B9911 ), 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1153 = { sizeof (YieldAwaiter_tB7F5AF2447B8FF2021CAD11FFA95F095CE2C2C3B)+ sizeof (RuntimeObject), sizeof(YieldAwaiter_tB7F5AF2447B8FF2021CAD11FFA95F095CE2C2C3B ), sizeof(YieldAwaiter_tB7F5AF2447B8FF2021CAD11FFA95F095CE2C2C3B_StaticFields), 0 };
extern const int32_t g_FieldOffsetTable1153[2] =
{
YieldAwaiter_tB7F5AF2447B8FF2021CAD11FFA95F095CE2C2C3B_StaticFields::get_offset_of_s_waitCallbackRunAction_0(),
YieldAwaiter_tB7F5AF2447B8FF2021CAD11FFA95F095CE2C2C3B_StaticFields::get_offset_of_s_sendOrPostCallbackRunAction_1(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1154 = { sizeof (LoadHint_tAD3279A5DC1810A6D778793F6D5D2B52F8E7D4AF)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 };
extern const int32_t g_FieldOffsetTable1154[4] =
{
LoadHint_tAD3279A5DC1810A6D778793F6D5D2B52F8E7D4AF::get_offset_of_value___2() + static_cast<int32_t>(sizeof(RuntimeObject)),
0,
0,
0,
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1155 = { sizeof (DefaultDependencyAttribute_t5401DA33101638B630ABCB8C22120ABDB29FE191), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable1155[1] =
{
DefaultDependencyAttribute_t5401DA33101638B630ABCB8C22120ABDB29FE191::get_offset_of_loadHint_0(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1156 = { sizeof (DependencyAttribute_tA90C07E3131623E3AEA30E4DDF8F6B188985EA57), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable1156[2] =
{
DependencyAttribute_tA90C07E3131623E3AEA30E4DDF8F6B188985EA57::get_offset_of_dependentAssembly_0(),
DependencyAttribute_tA90C07E3131623E3AEA30E4DDF8F6B188985EA57::get_offset_of_loadHint_1(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1157 = { sizeof (CompilationRelaxations_tCFC58143CB8E81E1E407EEA8FF9C9DF876F0750B)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 };
extern const int32_t g_FieldOffsetTable1157[2] =
{
CompilationRelaxations_tCFC58143CB8E81E1E407EEA8FF9C9DF876F0750B::get_offset_of_value___2() + static_cast<int32_t>(sizeof(RuntimeObject)),
0,
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1158 = { sizeof (CompilationRelaxationsAttribute_t0067C359924196418CFB0DE4C07C5F4C4BCD54FF), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable1158[1] =
{
CompilationRelaxationsAttribute_t0067C359924196418CFB0DE4C07C5F4C4BCD54FF::get_offset_of_m_relaxations_0(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1159 = { sizeof (CompilerGeneratedAttribute_t29C03D4EB4F2193B5BF85D03923EA47423C946FC), -1, 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1160 = { sizeof (CustomConstantAttribute_tBAC64D25BCB4BE5CAC32AC430CA8BEF070923191), -1, 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1161 = { sizeof (DateTimeConstantAttribute_t4E7414CDD051958BEA1F01140F38441AA442D9BE), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable1161[1] =
{
DateTimeConstantAttribute_t4E7414CDD051958BEA1F01140F38441AA442D9BE::get_offset_of_date_0(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1162 = { sizeof (DecimalConstantAttribute_t3DFC057911F4AF28AD6A0472300EBE4C038BD9B5), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable1162[1] =
{
DecimalConstantAttribute_t3DFC057911F4AF28AD6A0472300EBE4C038BD9B5::get_offset_of_dec_0(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1163 = { sizeof (ExtensionAttribute_t34A17741DB6F2A390F30532BD50B269ECDB8F124), -1, 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1164 = { sizeof (FixedBufferAttribute_tF3065E17C7BDDEAEDC5D80CED0509DB83C558743), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable1164[2] =
{
FixedBufferAttribute_tF3065E17C7BDDEAEDC5D80CED0509DB83C558743::get_offset_of_elementType_0(),
FixedBufferAttribute_tF3065E17C7BDDEAEDC5D80CED0509DB83C558743::get_offset_of_length_1(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1165 = { sizeof (InternalsVisibleToAttribute_t3AEE3C8B7B894E54091E79A5A1C570B6DBB82767), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable1165[2] =
{
InternalsVisibleToAttribute_t3AEE3C8B7B894E54091E79A5A1C570B6DBB82767::get_offset_of__assemblyName_0(),
InternalsVisibleToAttribute_t3AEE3C8B7B894E54091E79A5A1C570B6DBB82767::get_offset_of__allInternalsVisible_1(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1166 = { sizeof (FriendAccessAllowedAttribute_t7924C8657D64E9FCB405FD7457DDF6EFA131BE96), -1, 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1167 = { sizeof (IsVolatile_tF1A54712356B3B8EABAFA930B5C9372D27A18AEC), -1, 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1168 = { sizeof (TypeDependencyAttribute_tD04CE2948B22A3881F260D03D1440D7678A0EEBE), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable1168[1] =
{
TypeDependencyAttribute_tD04CE2948B22A3881F260D03D1440D7678A0EEBE::get_offset_of_typeName_0(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1169 = { sizeof (UnsafeValueTypeAttribute_t9ADB28EC5F3BD460026EA31456FBBAF7C27B8EE1), -1, 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1170 = { sizeof (StringFreezingAttribute_t7ECA21C06003DECA46ECDD205612C746907ECA7C), -1, 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1171 = { sizeof (JitHelpers_t6BCD6CAFCA9C54EDD15CC80B7D7416E8711E8AAB), -1, 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1172 = { sizeof (Ephemeron_t6F0B12401657FF132AB44052E5BCD06D358FF1BA)+ sizeof (RuntimeObject), sizeof(Ephemeron_t6F0B12401657FF132AB44052E5BCD06D358FF1BA_marshaled_pinvoke), 0, 0 };
extern const int32_t g_FieldOffsetTable1172[2] =
{
Ephemeron_t6F0B12401657FF132AB44052E5BCD06D358FF1BA::get_offset_of_key_0() + static_cast<int32_t>(sizeof(RuntimeObject)),
Ephemeron_t6F0B12401657FF132AB44052E5BCD06D358FF1BA::get_offset_of_value_1() + static_cast<int32_t>(sizeof(RuntimeObject)),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1173 = { 0, 0, 0, 0 };
extern const int32_t g_FieldOffsetTable1173[3] =
{
0,
0,
0,
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1174 = { 0, 0, 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1175 = { sizeof (RuntimeHelpers_tB6CD53A56BCACB431A632ACD2709F245DBE3FA2E), -1, 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1176 = { sizeof (UnmanagedFunctionPointerAttribute_tC8718CB0B83BA5FA2F5BD5E9C7F2C67D59ED532F), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable1176[5] =
{
UnmanagedFunctionPointerAttribute_tC8718CB0B83BA5FA2F5BD5E9C7F2C67D59ED532F::get_offset_of_m_callingConvention_0(),
UnmanagedFunctionPointerAttribute_tC8718CB0B83BA5FA2F5BD5E9C7F2C67D59ED532F::get_offset_of_CharSet_1(),
UnmanagedFunctionPointerAttribute_tC8718CB0B83BA5FA2F5BD5E9C7F2C67D59ED532F::get_offset_of_BestFitMapping_2(),
UnmanagedFunctionPointerAttribute_tC8718CB0B83BA5FA2F5BD5E9C7F2C67D59ED532F::get_offset_of_ThrowOnUnmappableChar_3(),
UnmanagedFunctionPointerAttribute_tC8718CB0B83BA5FA2F5BD5E9C7F2C67D59ED532F::get_offset_of_SetLastError_4(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1177 = { sizeof (DispIdAttribute_tCA8BD48980DDAABEEB1213041A0B83FFAA8A16C3), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable1177[1] =
{
DispIdAttribute_tCA8BD48980DDAABEEB1213041A0B83FFAA8A16C3::get_offset_of__val_0(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1178 = { sizeof (ComInterfaceType_t06F9ED45C423386837E822765B7A00AC4A2EE607)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 };
extern const int32_t g_FieldOffsetTable1178[5] =
{
ComInterfaceType_t06F9ED45C423386837E822765B7A00AC4A2EE607::get_offset_of_value___2() + static_cast<int32_t>(sizeof(RuntimeObject)),
0,
0,
0,
0,
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1179 = { sizeof (InterfaceTypeAttribute_t4FD9BC97FD0CCFF82FA0562D6F897A54C00F9BEF), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable1179[1] =
{
InterfaceTypeAttribute_t4FD9BC97FD0CCFF82FA0562D6F897A54C00F9BEF::get_offset_of__val_0(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1180 = { sizeof (ComDefaultInterfaceAttribute_tBBC585373029E9376B0BBA3472A3EC7372F79C2A), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable1180[1] =
{
ComDefaultInterfaceAttribute_tBBC585373029E9376B0BBA3472A3EC7372F79C2A::get_offset_of__val_0(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1181 = { sizeof (ClassInterfaceType_tC166DABAA0841D0021D87E2F422AC8110E7601FB)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 };
extern const int32_t g_FieldOffsetTable1181[4] =
{
ClassInterfaceType_tC166DABAA0841D0021D87E2F422AC8110E7601FB::get_offset_of_value___2() + static_cast<int32_t>(sizeof(RuntimeObject)),
0,
0,
0,
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1182 = { sizeof (ClassInterfaceAttribute_tC3F85A84242581EC37E2682E71720E10AC189154), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable1182[1] =
{
ClassInterfaceAttribute_tC3F85A84242581EC37E2682E71720E10AC189154::get_offset_of__val_0(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1183 = { sizeof (ComVisibleAttribute_t3815D768D1DE3E84BAF7FC90E9F2F283FB1C74B3), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable1183[1] =
{
ComVisibleAttribute_t3815D768D1DE3E84BAF7FC90E9F2F283FB1C74B3::get_offset_of__val_0(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1184 = { sizeof (TypeLibImportClassAttribute_tF096AB90A395D44FFFC7AAEDBFC5D8DD85EA74C1), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable1184[1] =
{
TypeLibImportClassAttribute_tF096AB90A395D44FFFC7AAEDBFC5D8DD85EA74C1::get_offset_of__importClassName_0(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1185 = { sizeof (VarEnum_tBFABAADE217FFEE0854CF0555E8A719CC5E0BDA0)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 };
extern const int32_t g_FieldOffsetTable1185[45] =
{
VarEnum_tBFABAADE217FFEE0854CF0555E8A719CC5E0BDA0::get_offset_of_value___2() + static_cast<int32_t>(sizeof(RuntimeObject)),
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1186 = { sizeof (UnmanagedType_t87C9136E3089DE290F40B9993907743F4E3102E3)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 };
extern const int32_t g_FieldOffsetTable1186[39] =
{
UnmanagedType_t87C9136E3089DE290F40B9993907743F4E3102E3::get_offset_of_value___2() + static_cast<int32_t>(sizeof(RuntimeObject)),
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1187 = { sizeof (ComImportAttribute_t274D44BA1076F587D6AC97C2AFBA0A7B25EFDF40), -1, 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1188 = { sizeof (GuidAttribute_t12D6C9EA1C65F4B67401C657AB97CD253FC09D34), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable1188[1] =
{
GuidAttribute_t12D6C9EA1C65F4B67401C657AB97CD253FC09D34::get_offset_of__val_0(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1189 = { sizeof (PreserveSigAttribute_t60367CFFE2AFD385EAC54659911B50279DFFA576), -1, 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1190 = { sizeof (InAttribute_t753C98BE87DB84ECCEEB09841007A0D30C8B8A91), -1, 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1191 = { sizeof (OutAttribute_t171E39DD5144590B737DC30724E1886B20B1E94D), -1, 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1192 = { sizeof (OptionalAttribute_t9C49E42A48E6C513B8CFB077C07C7AEF7AF96113), -1, 0, 0 };
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1193 = { sizeof (DllImportSearchPath_t87FBB9B032F725A0F0850D3506147F8479C6C962)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 };
extern const int32_t g_FieldOffsetTable1193[8] =
{
DllImportSearchPath_t87FBB9B032F725A0F0850D3506147F8479C6C962::get_offset_of_value___2() + static_cast<int32_t>(sizeof(RuntimeObject)),
0,
0,
0,
0,
0,
0,
0,
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1194 = { sizeof (DefaultDllImportSearchPathsAttribute_t78F841C413557838706F822862BAE029C8CF9B87), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable1194[1] =
{
DefaultDllImportSearchPathsAttribute_t78F841C413557838706F822862BAE029C8CF9B87::get_offset_of__paths_0(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1195 = { sizeof (DllImportAttribute_t75AED23F20C2D5E5D64417CAF2E886FC827D2048), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable1195[9] =
{
DllImportAttribute_t75AED23F20C2D5E5D64417CAF2E886FC827D2048::get_offset_of__val_0(),
DllImportAttribute_t75AED23F20C2D5E5D64417CAF2E886FC827D2048::get_offset_of_EntryPoint_1(),
DllImportAttribute_t75AED23F20C2D5E5D64417CAF2E886FC827D2048::get_offset_of_CharSet_2(),
DllImportAttribute_t75AED23F20C2D5E5D64417CAF2E886FC827D2048::get_offset_of_SetLastError_3(),
DllImportAttribute_t75AED23F20C2D5E5D64417CAF2E886FC827D2048::get_offset_of_ExactSpelling_4(),
DllImportAttribute_t75AED23F20C2D5E5D64417CAF2E886FC827D2048::get_offset_of_PreserveSig_5(),
DllImportAttribute_t75AED23F20C2D5E5D64417CAF2E886FC827D2048::get_offset_of_CallingConvention_6(),
DllImportAttribute_t75AED23F20C2D5E5D64417CAF2E886FC827D2048::get_offset_of_BestFitMapping_7(),
DllImportAttribute_t75AED23F20C2D5E5D64417CAF2E886FC827D2048::get_offset_of_ThrowOnUnmappableChar_8(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1196 = { sizeof (FieldOffsetAttribute_t0DC41E3845F489E8751A1087AE893D8F5A9ABA49), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable1196[1] =
{
FieldOffsetAttribute_t0DC41E3845F489E8751A1087AE893D8F5A9ABA49::get_offset_of__val_0(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1197 = { sizeof (ComCompatibleVersionAttribute_t8D9E26E5596ECAF4286A2E3FBAC2753AFBE825D2), -1, 0, 0 };
extern const int32_t g_FieldOffsetTable1197[4] =
{
ComCompatibleVersionAttribute_t8D9E26E5596ECAF4286A2E3FBAC2753AFBE825D2::get_offset_of__major_0(),
ComCompatibleVersionAttribute_t8D9E26E5596ECAF4286A2E3FBAC2753AFBE825D2::get_offset_of__minor_1(),
ComCompatibleVersionAttribute_t8D9E26E5596ECAF4286A2E3FBAC2753AFBE825D2::get_offset_of__build_2(),
ComCompatibleVersionAttribute_t8D9E26E5596ECAF4286A2E3FBAC2753AFBE825D2::get_offset_of__revision_3(),
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1198 = { sizeof (CallingConvention_t1CA20C42BA91F62017CDE4192C0FF930E81A1193)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 };
extern const int32_t g_FieldOffsetTable1198[6] =
{
CallingConvention_t1CA20C42BA91F62017CDE4192C0FF930E81A1193::get_offset_of_value___2() + static_cast<int32_t>(sizeof(RuntimeObject)),
0,
0,
0,
0,
0,
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1199 = { sizeof (CharSet_t2DEB2DA03477AAFC8FD2E1EC33F49904F85632A5)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 };
extern const int32_t g_FieldOffsetTable1199[5] =
{
CharSet_t2DEB2DA03477AAFC8FD2E1EC33F49904F85632A5::get_offset_of_value___2() + static_cast<int32_t>(sizeof(RuntimeObject)),
0,
0,
0,
0,
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
| [
"16102434@brookes.ac.uk"
] | 16102434@brookes.ac.uk |
d5a5a1ac5fbac5f68c861c1efdf11931cad7891c | 2d36ac7285664ce798edb27bafa00e0dbc0f25fb | /LSL/liblsl/external/lslboost/mpl/int_fwd.hpp | 818759063a72d891737996ccd6f0bf69f02af755 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | nagarjunvinukonda/Brain-Computer-Interface-for-Bionic-Arm | af1a6241df167e747a7d9426e497f95dda632fda | 839cb0dc798d2bf274d3df7c4db0fef62af3770d | refs/heads/master | 2023-02-13T12:02:36.692225 | 2021-01-14T08:32:35 | 2021-01-14T08:32:35 | 297,540,583 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 796 | hpp |
#ifndef BOOST_MPL_INT_FWD_HPP_INCLUDED
#define BOOST_MPL_INT_FWD_HPP_INCLUDED
// Copyright Aleksey Gurtovoy 2000-2004
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.lslboost.org/LICENSE_1_0.txt)
//
// See http://www.lslboost.org/libs/mpl for documentation.
// $Id: int_fwd.hpp 49267 2008-10-11 06:19:02Z agurtovoy $
// $Date: 2008-10-11 02:19:02 -0400 (Sat, 11 Oct 2008) $
// $Revision: 49267 $
#include <lslboost/mpl/aux_/adl_barrier.hpp>
#include <lslboost/mpl/aux_/nttp_decl.hpp>
BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE_OPEN
template< BOOST_MPL_AUX_NTTP_DECL(int, N) > struct int_;
BOOST_MPL_AUX_ADL_BARRIER_NAMESPACE_CLOSE
BOOST_MPL_AUX_ADL_BARRIER_DECL(int_)
#endif // BOOST_MPL_INT_FWD_HPP_INCLUDED
| [
"vinukondanagarjun4@gmail.com"
] | vinukondanagarjun4@gmail.com |
1a4dbcbed532426beaf4a588f2c115d84a280c88 | f2ed8aea695c3d64430864249d14d0dff305ff04 | /BlizzardBallBattle/Game/Scenes/SceneTemplate.cpp | a6e9301736274f7762a60228fb61ac5d3ba9c6a2 | [] | no_license | CarsonRoscoe/BlizzardBallBattle | 6f6e862b304f4235a81030ab97e6cc681ec2a164 | afb07f48399708078ea312efda08a9bd9e79fff2 | refs/heads/master | 2021-05-08T09:42:11.199715 | 2017-12-19T09:09:09 | 2017-12-19T09:09:09 | 107,194,696 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,349 | cpp | #include "SceneTemplate.h"
#include "MatchManager.h"
#include "GLHeaders.h"
#include "SpriteRendererManager.h"
#include "Shader.h"
#include "SharedConstants.h"
#include "Sender.h"
#include "Receiver.h"
#include "SpriteSheet.h"
#include <iostream>
SceneTemplate::SceneTemplate(int p1ai, int p2ai) : GameScene(p1ai, p2ai) {
this->p1ai = p1ai;
this->p2ai = p2ai;
}
void SceneTemplate::OnStart(){
BuildBaseScene();
GLuint snowTexture = SpriteRendererManager::GetInstance()->GenerateTexture(BuildPath("Game/Assets/Sprites/SnowTile.png"));
GLuint iceTexture = SpriteRendererManager::GetInstance()->GenerateTexture(BuildPath("Game/Assets/Sprites/IceTile.png"));
GLuint characterTexture = SpriteRendererManager::GetInstance()->GenerateTexture(BuildPath("Game/Assets/Sprites/Character.png"));
GLuint spriteSheetTexture = SpriteRendererManager::GetInstance()->GenerateTexture(BuildPath("Game/Assets/Sprites/WalkingSpriteSheet.png"));
// Create Players
MatchManager::GetInstance()->CreateBattlers(Shader::GetShader(), characterTexture, spriteSheetTexture, p1ai, p2ai);
}
void SceneTemplate::OnPause() {
MatchManager::GetInstance()->Stop();
ClearScene();
}
void SceneTemplate::OnEnd() {
}
void SceneTemplate::OnUpdate(int ticks) {
//player1->GetComponent<Sender*>()->SendUpdate();
//NetworkingManagerTemp::GetInstance()->SendQueuedEvents();
} | [
"CarsonRoscoe7@gmail.com"
] | CarsonRoscoe7@gmail.com |
2fc5acf3d7d6d6b6208e0daf7873c296fae3927a | ba538e2ecd586f22e5974e98cbcc77315722bb45 | /GameBend/RawModel.cpp | 64ed8945742d85902d3908e823767e5f74df177a | [] | no_license | jscotty/CPP_choocy_adventure | ec32ef99ea6b8aca0a94598554fe2ff7441f597f | b4434b3d8ba05b466e98d89cc5c2da2a68ebae05 | refs/heads/master | 2020-03-25T11:57:50.482947 | 2018-08-06T16:38:59 | 2018-08-06T16:38:59 | 143,755,508 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 194 | cpp | #include "RawModel.h"
RawModel::RawModel(const GLuint vaoID, unsigned int vertexCount){
this->vaoID = vaoID;
this->vertexCount = vertexCount;
}
RawModel::RawModel(){}
RawModel::~RawModel(){} | [
"jscotty@hotmail.nl"
] | jscotty@hotmail.nl |
99deecc0d7562fb3e289ae318cf594573ae5defc | 260e5dec446d12a7dd3f32e331c1fde8157e5cea | /Indi/SDK/Indi_HeadGear_Cowboy_Var01_classes.hpp | 409c91b2e5ccfb2349aafbaff547ffdf994fcf59 | [] | no_license | jfmherokiller/TheOuterWorldsSdkDump | 6e140fde4fcd1cade94ce0d7ea69f8a3f769e1c0 | 18a8c6b1f5d87bb1ad4334be4a9f22c52897f640 | refs/heads/main | 2023-08-30T09:27:17.723265 | 2021-09-17T00:24:52 | 2021-09-17T00:24:52 | 407,437,218 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 694 | hpp | #pragma once
// TheOuterWorlds SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "Indi_HeadGear_Cowboy_Var01_structs.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Classes
//---------------------------------------------------------------------------
// BlueprintGeneratedClass HeadGear_Cowboy_Var01.HeadGear_Cowboy_Var01_C
// 0x0000 (0x02B0 - 0x02B0)
class UHeadGear_Cowboy_Var01_C : public UHelmet
{
public:
static UClass* StaticClass()
{
static auto ptr = UObject::FindClass("BlueprintGeneratedClass HeadGear_Cowboy_Var01.HeadGear_Cowboy_Var01_C");
return ptr;
}
};
}
#ifdef _MSC_VER
#pragma pack(pop)
#endif
| [
"peterpan0413@live.com"
] | peterpan0413@live.com |
19c601747484785e681522535a265ad53d283c6b | ab83049141b3a1f35166e11c7e74e7db8be0950d | /converter/src/mapConverter/mapConverter.hpp | 7145c53aec322c29c1822bf7d66f8ef651378e37 | [
"MIT"
] | permissive | blurymind/Tiled2GBA | 773aa25cfa712c2ea37e848eb2d25bb9f2a31541 | 7f9a4f0c22803eec15e35bdd7fb36f9a9ed5f6b9 | refs/heads/master | 2021-01-26T02:28:17.502297 | 2019-01-26T21:44:49 | 2019-01-26T21:44:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 642 | hpp | #ifndef MAP_CONVERTER_H
#define MAP_CONVERTER_H
#include "../lib/tmxlite/Map.hpp"
#include "../gba/gbaMap/gbaMap.hpp"
#include "../lib/tmxlite/TileLayer.hpp"
using namespace std;
/**
* Converts a TMX Map to a GBA Map.
*/
class MapConverter {
public:
/**
* Convert a TMX Map.
* @param tmxMap The TMX Map.
* @return The GBA Map.
*/
GBAMap convert(const string &name, const tmx::Map &tmxMap);
private:
vector<const tmx::TileLayer*> getTileLayers(const vector<tmx::Layer::Ptr> &layers);
vector<const tmx::ObjectGroup*> getObjectLayers(const vector<tmx::Layer::Ptr> &layers);
};
#endif // MAP_CONVERTER_H | [
"10974297+LucvandenBrand@users.noreply.github.com"
] | 10974297+LucvandenBrand@users.noreply.github.com |
8decb66a01aef419bd2dee3877c533422d45f7ac | a590f039107aaab0980d7ded36b6f79cd47e541d | /OpenFOAM/elliot-7/Dissertation/H/Initial Cases/scalarTransportH/0.92/phi | 6e627c46393a7cd484b4324e1ec20bf0b6bf26e4 | [] | no_license | etenno/uni | 3f85179768ae5a5d77dd21879f84323278a7a2f6 | bb62570182ea239c123df954eb0893e2d681fe8d | refs/heads/master | 2023-03-04T08:30:00.034753 | 2021-02-14T12:54:03 | 2021-02-14T12:54:03 | 338,678,729 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,697 | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 6
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class surfaceScalarField;
location "0.92";
object phi;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 3 -1 0 0 0 0];
internalField uniform 0;
boundaryField
{
inlet1
{
type calculated;
value nonuniform List<scalar>
100
(
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
-0.002
)
;
}
inlet2
{
type calculated;
value nonuniform List<scalar>
100
(
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
-0.004
)
;
}
outlet1
{
type calculated;
value uniform 0;
}
outlet2
{
type calculated;
value uniform 0;
}
fixedWalls
{
type calculated;
value uniform 0;
}
}
// ************************************************************************* //
| [
"elliot.s.tennison@gmail.com"
] | elliot.s.tennison@gmail.com | |
3e210d1a552966455d2d40e6b25071604042d1f8 | 46d4712c82816290417d611a75b604d51b046ecc | /Samples/Win7Samples/multimedia/WMP/Wizards/services/templates/1033/Type1/sample.h | c5897bd4bbb2c57fd30365e84f0d930943493df1 | [
"MIT"
] | permissive | ennoherr/Windows-classic-samples | 00edd65e4808c21ca73def0a9bb2af9fa78b4f77 | a26f029a1385c7bea1c500b7f182d41fb6bcf571 | refs/heads/master | 2022-12-09T20:11:56.456977 | 2022-12-04T16:46:55 | 2022-12-04T16:46:55 | 156,835,248 | 1 | 0 | NOASSERTION | 2022-12-04T16:46:55 | 2018-11-09T08:50:41 | null | UTF-8 | C++ | false | false | 8,902 | h | //
// Copyright (c) Microsoft Corporation. All rights reserved.
//
#pragma once
#include "resource.h"
typedef struct _CONTENT_PARTNER_GLOBALS
{
LONG userLoggedIn;
LONG haveCachedCredentials;
ULONG totalDownloadFailures;
WCHAR credentialsFile[MAX_PATH];
} CONTENT_PARTNER_GLOBALS;
static const WCHAR g_rootURL[] = L"http://www.microsoft.com/windows/windowsmedia/player/11/samples/SampleType1Store/";
static const WCHAR g_audioRootURL[] = L"http://download.microsoft.com/download/a/e/b/aeb86cba-7d91-4eea-9e29-8d53c4bc05aa/";
static const WCHAR g_placeholderTrack[] = L"Placeholder.wma";
static const WCHAR* g_tracks[] =
{
L"House.wma",
L"Jeanne.wma",
L"Laure.wma",
L"Mellow.wma",
L"Multilang.wma",
};
typedef enum _ContentPartnerThreadType
{
ThreadTypeDownload = 1,
ThreadTypeBuy,
ThreadTypeRefreshLicense,
ThreadTypeLogin,
ThreadTypeSendMessage,
ThreadTypeUpdateDevice,
ThreadTypeList
} ContentPartnerThreadType;
typedef struct _DOWNLOAD_THREAD_CONTEXT2
{
UINT msgDownloadBatch;
} DOWNLOAD_THREAD_CONTEXT2;
typedef struct _DOWNLOAD_BATCH_CONTEXT
{
IStream* pIStream;
DWORD cookie;
} DOWNLOAD_BATCH_CONTEXT;
typedef struct _BUY_THREAD_CONTEXT2
{
UINT msgBuy;
} BUY_THREAD_CONTEXT2;
typedef struct _BUY_CONTEXT
{
IStream* pIStream;
DWORD cookie;
} BUY_CONTEXT;
typedef struct _REFRESH_LICENSE_THREAD_CONTEXT2
{
UINT msgRefreshLicense;
} REFRESH_LICENSE_THREAD_CONTEXT2;
typedef struct _REFRESH_LICENSE_CONTEXT
{
DWORD dwCookie;
VARIANT_BOOL fLocal;
BSTR bstrURL;
WMPStreamingType type;
ULONG contentID;
BSTR bstrRefreshReason;
VARIANT* pReasonContext;
} REFRESH_LICENSE_CONTEXT;
typedef struct _LOGIN_THREAD_CONTEXT2
{
UINT msgLogin;
UINT msgLogout;
UINT msgAuthenticate;
UINT msgVerifyPermission;
} LOGIN_THREAD_CONTEXT2;
typedef struct _LOGIN_CONTEXT
{
BLOB userInfo;
BLOB pwdInfo;
VARIANT_BOOL fUsedCachedCreds;
VARIANT_BOOL fOkToCahce;
BSTR bstrPermission;
VARIANT permissionContext;
} LOGIN_CONTEXT;
typedef struct _SEND_MESSAGE_THREAD_CONTEXT2
{
UINT msgSendMessage;
} SEND_MESSAGE_THREAD_CONTEXT2;
typedef struct _SEND_MESSAGE_CONTEXT
{
BSTR bstrMsg;
BSTR bstrParam;
} SEND_MESSAGE_CONTEXT;
typedef struct _UPDATE_DEVICE_THREAD_CONTEXT2
{
UINT msgUpdateDevice;
} UPDATE_DEVICE_THREAD_CONTEXT2;
typedef struct _UPDATE_DEVICE_CONTEXT
{
BSTR bstrDeviceName;
} UPDATE_DEVICE_CONTEXT;
typedef struct _LIST_THREAD_CONTEXT2
{
UINT msgGetListContents;
} LIST_THREAD_CONTEXT2;
typedef struct _LIST_CONTEXT
{
BSTR location;
VARIANT context;
BSTR bstrListType;
BSTR bstrParams;
DWORD dwListCookie;
} LIST_CONTEXT;
typedef struct _CONTENT_PARTNER_THREAD_CONTEXT
{
ContentPartnerThreadType threadType;
IStream* pIStream;
HANDLE hInitialized;
UINT msgExitMessageLoop;
union
{
DOWNLOAD_THREAD_CONTEXT2 downloadThreadContext;
BUY_THREAD_CONTEXT2 buyThreadContext;
REFRESH_LICENSE_THREAD_CONTEXT2 refreshLicenseThreadContext;
LOGIN_THREAD_CONTEXT2 loginThreadContext;
SEND_MESSAGE_THREAD_CONTEXT2 sendMessageThreadContext;
UPDATE_DEVICE_THREAD_CONTEXT2 updateDeviceThreadContext;
LIST_THREAD_CONTEXT2 listThreadContext;
};
} CONTENT_PARTNER_THREAD_CONTEXT;
class __declspec( uuid("{[!output CLASSID]}") )
C[!output Safe_root]:
public CComObjectRootEx<CComSingleThreadModel>,
public CComCoClass<C[!output Safe_root], &__uuidof(C[!output Safe_root])>,
public IWMPContentPartner
{
public:
DECLARE_REGISTRY_RESOURCEID(IDR_REGISTRY1)
BEGIN_COM_MAP(C[!output Safe_root])
COM_INTERFACE_ENTRY(IWMPContentPartner)
END_COM_MAP()
virtual HRESULT STDMETHODCALLTYPE SetCallback(
IWMPContentPartnerCallback* pCallback);
virtual HRESULT STDMETHODCALLTYPE Notify(
WMPPartnerNotification type,
VARIANT *pContext);
virtual HRESULT STDMETHODCALLTYPE GetItemInfo(
BSTR bstrInfoName,
VARIANT *pContext,
VARIANT *pData);
virtual HRESULT STDMETHODCALLTYPE GetContentPartnerInfo(
BSTR bstrInfoName,
VARIANT *pData);
virtual HRESULT STDMETHODCALLTYPE GetCommands(
BSTR location,
VARIANT *pLocationContext,
BSTR itemLocation,
ULONG cItemIDs,
ULONG *prgItemIDs,
ULONG *pcItemIDs,
WMPContextMenuInfo **pprgItems);
virtual HRESULT STDMETHODCALLTYPE InvokeCommand(
DWORD dwCommandID,
BSTR location,
VARIANT *pLocationContext,
BSTR itemLocation,
ULONG cItemIDs,
ULONG *rgItemIDs);
virtual HRESULT STDMETHODCALLTYPE CanBuySilent(
IWMPContentContainerList *pInfo,
BSTR *pbstrTotalPrice,
VARIANT_BOOL *pSilentOK);
virtual HRESULT STDMETHODCALLTYPE Buy(
IWMPContentContainerList *pInfo,
DWORD cookie);
virtual HRESULT STDMETHODCALLTYPE GetStreamingURL(
WMPStreamingType st,
VARIANT *pStreamContext,
BSTR *pbstrURL);
virtual HRESULT STDMETHODCALLTYPE Download(
IWMPContentContainerList *pInfo,
DWORD cookie);
virtual HRESULT STDMETHODCALLTYPE DownloadTrackComplete(
HRESULT hrResult,
ULONG contentID,
BSTR downloadTrackParam);
virtual HRESULT STDMETHODCALLTYPE RefreshLicense(
DWORD dwCookie,
VARIANT_BOOL fLocal,
BSTR bstrURL,
WMPStreamingType type,
ULONG contentID,
BSTR bstrRefreshReason,
VARIANT *pReasonContext);
virtual HRESULT STDMETHODCALLTYPE GetCatalogURL(
DWORD dwCatalogVersion,
DWORD dwCatalogSchemaVersion,
LCID catalogLCID,
DWORD *pdwNewCatalogVersion,
BSTR *pbstrCatalogURL,
VARIANT *pExpirationDate);
virtual HRESULT STDMETHODCALLTYPE GetTemplate(
WMPTaskType task,
BSTR location,
VARIANT *pContext,
BSTR clickLocation,
VARIANT *pClickContext,
BSTR bstrFilter,
BSTR bstrViewParams,
BSTR *pbstrTemplateURL,
WMPTemplateSize *pTemplateSize);
virtual HRESULT STDMETHODCALLTYPE UpdateDevice(
BSTR bstrDeviceName);
virtual HRESULT STDMETHODCALLTYPE GetListContents(
BSTR location,
VARIANT *pContext,
BSTR bstrListType,
BSTR bstrParams,
DWORD dwListCookie);
virtual HRESULT STDMETHODCALLTYPE Login(
BLOB userInfo,
BLOB pwdInfo,
VARIANT_BOOL fUsedCachedCreds,
VARIANT_BOOL fOkToCache);
virtual HRESULT STDMETHODCALLTYPE Authenticate(
BLOB userInfo,
BLOB pwdInfo);
virtual HRESULT STDMETHODCALLTYPE Logout(void);
virtual HRESULT STDMETHODCALLTYPE SendMessage(
BSTR bstrMsg,
BSTR bstrParam);
virtual HRESULT STDMETHODCALLTYPE StationEvent(
BSTR bstrStationEventType,
ULONG StationId,
ULONG PlaylistIndex,
ULONG TrackID,
BSTR TrackData,
DWORD dwSecondsPlayed);
virtual HRESULT STDMETHODCALLTYPE CompareContainerListPrices(
IWMPContentContainerList *pListBase,
IWMPContentContainerList *pListCompare,
long *pResult);
virtual HRESULT STDMETHODCALLTYPE VerifyPermission(
BSTR bstrPermission,
VARIANT *pContext);
C[!output Safe_root]();
HRESULT STDMETHODCALLTYPE FinalConstruct();
~C[!output Safe_root]();
private:
HRESULT STDMETHODCALLTYPE StartContentPartnerThread(ContentPartnerThreadType threadType);
HRESULT STDMETHODCALLTYPE ShutdownThreads();
HRESULT STDMETHODCALLTYPE CreateCredentialsFilePath();
CComPtr<IWMPContentPartnerCallback> m_spCallback;
// Members related to the download thread
HANDLE m_downloadThreadHandle;
DWORD m_downloadThreadId;
UINT m_msgDownloadBatch;
// Members related to the buy thread
HANDLE m_buyThreadHandle;
DWORD m_buyThreadId;
UINT m_msgBuy;
// Members related to the refresh-license thread
HANDLE m_refreshLicenseThreadHandle;
DWORD m_refreshLicenseThreadId;
UINT m_msgRefreshLicense;
// Members related to the log-in thread
HANDLE m_loginThreadHandle;
DWORD m_loginThreadId;
UINT m_msgLogin;
UINT m_msgLogout;
UINT m_msgAuthenticate;
UINT m_msgVerifyPermission;
// Members related to the send-message thread
HANDLE m_sendMessageThreadHandle;
DWORD m_sendMessageThreadId;
UINT m_msgSendMessage;
// Members related to the update-device thread
HANDLE m_updateDeviceThreadHandle;
DWORD m_updateDeviceThreadId;
UINT m_msgUpdateDevice;
// Members related to the list thread
HANDLE m_listThreadHandle;
DWORD m_listThreadId;
UINT m_msgGetListContents;
UINT m_msgExitMessageLoop;
};
HRESULT CacheCredentials(LOGIN_CONTEXT* pLoginCtx);
HRESULT HaveCachedCredentials(LONG* pCached);
DWORD WINAPI ContentPartnerThreadProc(LPVOID lpParameter);
| [
"chrisg@microsoft.com"
] | chrisg@microsoft.com |
4400e69c94a1678b443734a402b4f5fb5a0c7d11 | a2143118e790e800879d0bb4400454f11907443b | /src/vcml/models/generic/throttle.cpp | e6b511240b090041ad36ea6965f30b41a9839440 | [
"Apache-2.0"
] | permissive | Manewing/vcml | 555c78a4cc9c2f5da118ef4f7e6ce42f326097b2 | 023e20b961f432f86ef0b23a33d0dd7282662010 | refs/heads/master | 2023-02-09T23:45:40.072075 | 2021-01-07T20:43:46 | 2021-01-07T20:43:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,546 | cpp | /******************************************************************************
* *
* Copyright 2021 Jan Henrik Weinstock *
* *
* Licensed 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. *
* *
******************************************************************************/
#include "vcml/models/generic/throttle.h"
namespace vcml { namespace generic {
void throttle::update() {
sc_time quantum = tlm::tlm_global_quantum::instance().get();
sc_time interval = max(update_interval.get(), quantum);
next_trigger(interval);
if (rtf > 0.0) {
u64 actual = realtime_us() - m_time_real;
u64 target = time_to_us(interval) / rtf;
if (actual < target) {
usleep(target - actual);
if (!m_throttling)
log_debug("throttling started");
m_throttling = true;
} else {
if (m_throttling)
log_debug("throttling stopped");
m_throttling = false;
}
}
m_time_real = realtime_us();
}
throttle::throttle(const sc_module_name& nm):
module(nm),
m_throttling(false),
m_time_real(realtime_us()),
update_interval("update_interval", sc_time(10.0, SC_MS)),
rtf("rtf", 0.0) {
SC_HAS_PROCESS(throttle);
SC_METHOD(update);
}
throttle::~throttle() {
// nothing to do
}
}}
| [
"jan.weinstock@rwth-aachen.de"
] | jan.weinstock@rwth-aachen.de |
031af8ac4c52ab148f66f8d2c97393e0f75003b4 | 6250f3343eff1638912510b66ed936c59796635a | /src_vc141/thirdparty/stlsoft/pantheios/src/inserters/hostid.cpp | 0f45c1c8c169f382169c7dc2489aa1e2b74d811e | [
"BSD-2-Clause",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | nneesshh/mytoolkit | b4b242307a6603bc5785bc130de8f4d3b5ea9265 | 336ae9c7077c8687a8cf8a2ce4aec804c28ab90c | refs/heads/master | 2020-04-05T15:18:07.985547 | 2018-12-17T11:36:07 | 2018-12-17T11:36:07 | 156,961,652 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 5,135 | cpp | /* /////////////////////////////////////////////////////////////////////////
* File: src/inserters/hostid.cpp
*
* Purpose: Implementation of the pantheios::hostId inserter class.
*
* Created: 14th April 2008
* Updated: 29th June 2016
*
* Home: http://www.pantheios.org/
*
* Copyright (c) 2008-2016, Matthew Wilson and Synesis Software
* 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(s) of Matthew Wilson and Synesis Software nor the
* names of any 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 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.
*
* ////////////////////////////////////////////////////////////////////// */
#define PANTHEIOS_NO_INCLUDE_STLSOFT_STRING_ACCESS
/* Pantheios header files */
#include <pantheios/pantheios.h>
#include <pantheios/inserters/hostid.hpp>
#include <pantheios/util/memory/auto_buffer_selector.hpp>
#include <pantheios/util/string/strdup.h>
#include <pantheios/util/system/hostname.h>
#include <pantheios/internal/safestr.h>
/* Standard C header files */
#if defined(STLSOFT_COMPILER_IS_BORLAND)
# include <memory.h>
#endif /* compiler */
#include <string.h>
/* /////////////////////////////////////////////////////////////////////////
* warning suppression
*/
#if defined(STLSOFT_COMPILER_IS_BORLAND)
# pragma warn -8008
# pragma warn -8066
#endif /* compiler */
/* /////////////////////////////////////////////////////////////////////////
* namespace
*/
#if !defined(PANTHEIOS_NO_NAMESPACE)
namespace pantheios
{
namespace
{
} /* anonymous namespace */
#endif /* !PANTHEIOS_NO_NAMESPACE */
/* /////////////////////////////////////////////////////////////////////////
* globals
*/
struct hostId_t const* hostId = 0;
/* /////////////////////////////////////////////////////////////////////////
* namespace
*/
#if !defined(PANTHEIOS_NO_NAMESPACE) && \
!defined(STLSOFT_COMPILER_IS_BORLAND)
namespace inserters
{
#endif /* !PANTHEIOS_NO_NAMESPACE) && !STLSOFT_COMPILER_IS_BORLAND */
/* /////////////////////////////////////////////////////////////////////////
* inserter classes
*/
// host_id_t
inline void host_id_t::construct_() const
{
const_cast<class_type*>(this)->construct_();
}
void host_id_t::construct_()
{
static const pan_char_t s_localHost[] = PANTHEIOS_LITERAL_STRING("localhost");
PANTHEIOS_NS_QUAL_(util, auto_buffer_selector)<
pan_char_t
, 256
>::type hostName_(256);
size_t cch = getHostName(hostName_);
pan_char_t const* hostName = hostName_.data();
if(0 == cch)
{
cch = STLSOFT_NUM_ELEMENTS(s_localHost) - 1;
hostName = s_localHost;
}
#ifdef STLSOFT_CF_THROW_BAD_ALLOC
m_value = pantheios_util_strdup_throw(hostName);
m_len = cch;
#else /* ? STLSOFT_CF_THROW_BAD_ALLOC */
m_value = pantheios_util_strdup_nothrow(hostName);
m_len = (NULL == m_value) ? 0 : cch;
#endif /* STLSOFT_CF_THROW_BAD_ALLOC */
}
host_id_t::host_id_t()
: m_value(NULL)
, m_len(0)
{}
host_id_t::~host_id_t() STLSOFT_NOEXCEPT
{
pantheios_util_strfree(const_cast<pan_char_t*>(m_value));
}
host_id_t::operator size_t () const
{
if(NULL == m_value)
{
construct_();
}
return m_len;
}
host_id_t::operator pan_char_t const* () const
{
if(NULL == m_value)
{
construct_();
}
return m_value;
}
/* /////////////////////////////////////////////////////////////////////////
* namespace
*/
#if !defined(PANTHEIOS_NO_NAMESPACE)
# if !defined(STLSOFT_COMPILER_IS_BORLAND)
} /* namespace inserters */
# endif /* !STLSOFT_COMPILER_IS_BORLAND */
} /* namespace pantheios */
#endif /* !PANTHEIOS_NO_NAMESPACE */
/* ///////////////////////////// end of file //////////////////////////// */
| [
"nneesshh@163.com"
] | nneesshh@163.com |
4637844147a133dd437e352bd07a8c5a4d094edd | fa163d6c7d04c9d5558ad082465e3642b48a0064 | /Monopoly/building.cc | 65713d25df7801a1c7385a19aaf45f0036e38aa9 | [] | no_license | kajan-v/Monopoly-Clone | f3fb3f872b11b0e6d9d73f120a37d3a2bee8095c | ecdb47126b21038fe16c394018565ff7954fe9dd | refs/heads/master | 2021-06-03T18:06:51.531877 | 2016-06-04T04:30:55 | 2016-06-04T04:30:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,105 | cc | #include "building.h"
#include "ownable.h"
using namespace std;
Building::Building(int purchCost, int improveCost, int t[], string monopolyBlock, string name){
this->purchCost = purchCost;
this->improveCost = improveCost;
for (int i = 0; i < 6; i++){
this->tuition[i] = t[i];
}
this->monopolyBlock = monopolyBlock;
this->buildingSize = 0;
this->name = name;
this->isOwnable = true;
this->owner = -1;
}
void Building::improve(Player *p){
if(!this->mortgaged && this->buildingSize < 5 && p->money >= this->improveCost){
p->money -= this->improveCost;
this->buildingSize++;
cout << "improve to size: " << this->buildingSize << endl;
}
else if(p->money < this->improveCost){
cout << "Not enough moeny to improve, cost: " << this->improveCost << " current balance " << p->money << endl;
}
}
void Building::unimprove(Player *p){
if(this->buildingSize > 0 && p->id == this->owner){
this->buildingSize--;
p->money += this->improveCost/2;
cout << "unimprove to size: " << this->buildingSize << endl;
}
}
int Building::rent(){
return this->tuition[this->buildingSize];
}
| [
"kajan_v_24@hotmail.com"
] | kajan_v_24@hotmail.com |
d97fc07680704a314daa3310823d4e2c4e9a510d | c7be9b178105262893dbae22212fef46fd31df00 | /common/rect.h | 5a119c17e718a5d869261cc871b01213df18738b | [
"Unlicense"
] | permissive | sgorsten/workbench-archived | f2d83bd7454fbabfc1280af60d447de6d06627fa | 360332d4757e8c53debabf5ff105b3b5d26b551a | refs/heads/master | 2021-05-31T03:41:53.410406 | 2016-04-03T00:55:18 | 2016-04-03T00:55:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 652 | h | // This is free and unencumbered software released into the public domain.
// For more information, please refer to <http://unlicense.org>
#ifndef RECT_H
#define RECT_H
#include "../thirdparty/linalg/linalg.h"
using namespace linalg::aliases;
struct rect
{
int x0, y0, x1, y1;
int width() const { return x1 - x0; }
int height() const { return y1 - y0; }
int2 dims() const { return {width(), height()}; }
float aspect_ratio() const { return (float)width()/height(); }
template<class T> bool contains(const linalg::vec<T,2> & point) const { return point.x >= x0 && point.y >= y0 && point.x < x1 && point.y < y1; }
};
#endif | [
"sgorsten@gmail.com"
] | sgorsten@gmail.com |
5519f0dda757e6e3bed7cfa66c4ff9d8415cde40 | cad604b38f9257c5410751bfebded37a73b02436 | /Kernel/Storage/SATADiskDevice.h | 5d75134205c67d959eff6043d2cc732da61ef46e | [
"BSD-2-Clause"
] | permissive | govi20/serenity | 5f4d7217afbe8b98313aed26ad663d1f56553250 | 67362b1f8501b19b451c71cc28b540da15171739 | refs/heads/master | 2023-06-26T21:14:06.461110 | 2021-07-09T02:57:34 | 2021-07-09T13:36:50 | 384,451,039 | 1 | 0 | BSD-2-Clause | 2021-07-09T13:49:20 | 2021-07-09T13:49:19 | null | UTF-8 | C++ | false | false | 1,053 | h | /*
* Copyright (c) 2021, Liav A. <liavalb@hotmail.co.il>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <Kernel/Interrupts/IRQHandler.h>
#include <Kernel/Lock.h>
#include <Kernel/Storage/AHCIPort.h>
#include <Kernel/Storage/StorageDevice.h>
namespace Kernel {
class AHCIController;
class SATADiskDevice final : public StorageDevice {
friend class AHCIController;
public:
enum class InterfaceType : u8 {
SATA,
SATAPI,
};
public:
static NonnullRefPtr<SATADiskDevice> create(const AHCIController&, const AHCIPort&, size_t sector_size, u64 max_addressable_block);
virtual ~SATADiskDevice() override;
// ^StorageDevice
// ^BlockDevice
virtual void start_request(AsyncBlockDeviceRequest&) override;
virtual String device_name() const override;
private:
SATADiskDevice(const AHCIController&, const AHCIPort&, size_t sector_size, u64 max_addressable_block);
// ^DiskDevice
virtual const char* class_name() const override;
NonnullRefPtr<AHCIPort> m_port;
};
}
| [
"kling@serenityos.org"
] | kling@serenityos.org |
428475887686d64c6600e35c25362e7e1a0d324b | ec4f83e6aea2c92bdd2fbf849ec2b6a9e721970f | /프로그래머스/Level2/삼각 달팽이.cpp | 764daaf4a88b285f20ebb9a34a2bf0a5c4e147aa | [] | no_license | leejiwon6315/JEEWONs-Algorithm-Solution | 10dc6a1ade6048282ce7e06da807fd0903404103 | 1b22f09c05cc1802f96a61a60b66962e773f799b | refs/heads/master | 2023-08-18T23:56:45.057957 | 2021-10-04T16:03:28 | 2021-10-04T16:03:28 | 279,280,446 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,771 | cpp | #include <string>
#include <vector>
using namespace std;
int arr[1000][1000];
vector<int> solution(int n) {
vector<int> answer;
int level = 1, i = 1;
int y = 0, x = 0;
while(1){
int tmp = i;
if(level == 1){
while(y<n && x<n){
if(arr[y][x] == 0){
arr[y][x] = i;
i++;
y++;
}
else{
y--;
x++;
level = 2;
break;
}
}
if(level == 1){
y--;
x++;
level = 2;
}
}
if(level == 2){
while(y<n && x<n){
if(arr[y][x] == 0){
arr[y][x] = i;
i++;
x++;
}
else{
x-=2;
y--;a
level = 3;
break;
}
}
if(level == 2){
x-=2;
y--;
level = 3;
}
}
if(level = 3){
while(y<n && x<n){
if(arr[y][x] == 0){
arr[y][x] = i;
i++;
y--;
x--;
}
else{
y += 2;
x++;
level = 1;
break;
}
}
}
if(i==tmp) break;
}
for(int i=1; i<=n; i++){
for(int j=0; j<i; j++){
answer.push_back(arr[i-1][j]);
}
}
return answer;
}
| [
"noreply@github.com"
] | leejiwon6315.noreply@github.com |
0a8639f7384dda83a3f1b367f4dbed9dce985212 | 3b9b4049a8e7d38b49e07bb752780b2f1d792851 | /src/cc/trees/layer_tree_host_unittest_animation.cc | 9d7ba1fc71095231760f9b95f54b87fbfbb166e5 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | webosce/chromium53 | f8e745e91363586aee9620c609aacf15b3261540 | 9171447efcf0bb393d41d1dc877c7c13c46d8e38 | refs/heads/webosce | 2020-03-26T23:08:14.416858 | 2018-08-23T08:35:17 | 2018-09-20T14:25:18 | 145,513,343 | 0 | 2 | Apache-2.0 | 2019-08-21T22:44:55 | 2018-08-21T05:52:31 | null | UTF-8 | C++ | false | false | 64,492 | cc | // Copyright 2012 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 "cc/trees/layer_tree_host.h"
#include <stdint.h>
#include "cc/animation/animation_curve.h"
#include "cc/animation/animation_host.h"
#include "cc/animation/animation_id_provider.h"
#include "cc/animation/animation_player.h"
#include "cc/animation/animation_timeline.h"
#include "cc/animation/element_animations.h"
#include "cc/animation/scroll_offset_animation_curve.h"
#include "cc/animation/scroll_offset_animations.h"
#include "cc/animation/timing_function.h"
#include "cc/animation/transform_operations.h"
#include "cc/base/completion_event.h"
#include "cc/base/time_util.h"
#include "cc/layers/layer.h"
#include "cc/layers/layer_impl.h"
#include "cc/test/animation_test_common.h"
#include "cc/test/fake_content_layer_client.h"
#include "cc/test/fake_picture_layer.h"
#include "cc/test/layer_tree_test.h"
#include "cc/trees/layer_tree_impl.h"
namespace cc {
namespace {
class LayerTreeHostAnimationTest : public LayerTreeTest {
public:
LayerTreeHostAnimationTest()
: timeline_id_(AnimationIdProvider::NextTimelineId()),
player_id_(AnimationIdProvider::NextPlayerId()),
player_child_id_(AnimationIdProvider::NextPlayerId()) {
timeline_ = AnimationTimeline::Create(timeline_id_);
player_ = AnimationPlayer::Create(player_id_);
player_child_ = AnimationPlayer::Create(player_child_id_);
player_->set_animation_delegate(this);
}
void AttachPlayersToTimeline() {
layer_tree_host()->animation_host()->AddAnimationTimeline(timeline_.get());
layer_tree_host()->SetElementIdsForTesting();
timeline_->AttachPlayer(player_.get());
timeline_->AttachPlayer(player_child_.get());
}
protected:
scoped_refptr<AnimationTimeline> timeline_;
scoped_refptr<AnimationPlayer> player_;
scoped_refptr<AnimationPlayer> player_child_;
const int timeline_id_;
const int player_id_;
const int player_child_id_;
};
// Makes sure that SetNeedsAnimate does not cause the CommitRequested() state to
// be set.
class LayerTreeHostAnimationTestSetNeedsAnimateShouldNotSetCommitRequested
: public LayerTreeHostAnimationTest {
public:
LayerTreeHostAnimationTestSetNeedsAnimateShouldNotSetCommitRequested()
: num_commits_(0) {}
void BeginTest() override { PostSetNeedsCommitToMainThread(); }
void BeginMainFrame(const BeginFrameArgs& args) override {
// We skip the first commit because its the commit that populates the
// impl thread with a tree. After the second commit, the test is done.
if (num_commits_ != 1)
return;
layer_tree_host()->SetNeedsAnimate();
// Right now, CommitRequested is going to be true, because during
// BeginFrame, we force CommitRequested to true to prevent requests from
// hitting the impl thread. But, when the next DidCommit happens, we should
// verify that CommitRequested has gone back to false.
}
void DidCommit() override {
if (!num_commits_) {
EXPECT_FALSE(layer_tree_host()->CommitRequested());
layer_tree_host()->SetNeedsAnimate();
EXPECT_FALSE(layer_tree_host()->CommitRequested());
}
// Verifies that the SetNeedsAnimate we made in ::Animate did not
// trigger CommitRequested.
EXPECT_FALSE(layer_tree_host()->CommitRequested());
EndTest();
num_commits_++;
}
void AfterTest() override {}
private:
int num_commits_;
};
MULTI_THREAD_TEST_F(
LayerTreeHostAnimationTestSetNeedsAnimateShouldNotSetCommitRequested);
// Trigger a frame with SetNeedsCommit. Then, inside the resulting animate
// callback, request another frame using SetNeedsAnimate. End the test when
// animate gets called yet-again, indicating that the proxy is correctly
// handling the case where SetNeedsAnimate() is called inside the BeginFrame
// flow.
class LayerTreeHostAnimationTestSetNeedsAnimateInsideAnimationCallback
: public LayerTreeHostAnimationTest {
public:
LayerTreeHostAnimationTestSetNeedsAnimateInsideAnimationCallback()
: num_begin_frames_(0) {}
void BeginTest() override { PostSetNeedsCommitToMainThread(); }
void BeginMainFrame(const BeginFrameArgs& args) override {
if (!num_begin_frames_) {
layer_tree_host()->SetNeedsAnimate();
num_begin_frames_++;
return;
}
EndTest();
}
void AfterTest() override {}
private:
int num_begin_frames_;
};
SINGLE_AND_MULTI_THREAD_TEST_F(
LayerTreeHostAnimationTestSetNeedsAnimateInsideAnimationCallback);
// Add a layer animation and confirm that
// LayerTreeHostImpl::UpdateAnimationState does get called.
class LayerTreeHostAnimationTestAddAnimation
: public LayerTreeHostAnimationTest {
public:
LayerTreeHostAnimationTestAddAnimation()
: update_animation_state_was_called_(false) {}
void BeginTest() override {
AttachPlayersToTimeline();
player_->AttachElement(layer_tree_host()->root_layer()->element_id());
PostAddInstantAnimationToMainThreadPlayer(player_.get());
}
void UpdateAnimationState(LayerTreeHostImpl* host_impl,
bool has_unfinished_animation) override {
EXPECT_FALSE(has_unfinished_animation);
update_animation_state_was_called_ = true;
}
void NotifyAnimationStarted(base::TimeTicks monotonic_time,
TargetProperty::Type target_property,
int group) override {
EXPECT_LT(base::TimeTicks(), monotonic_time);
Animation* animation =
player_->element_animations()->GetAnimation(TargetProperty::OPACITY);
if (animation)
player_->RemoveAnimation(animation->id());
EndTest();
}
void AfterTest() override { EXPECT_TRUE(update_animation_state_was_called_); }
private:
bool update_animation_state_was_called_;
};
SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostAnimationTestAddAnimation);
// Add a layer animation to a layer, but continually fail to draw. Confirm that
// after a while, we do eventually force a draw.
class LayerTreeHostAnimationTestCheckerboardDoesNotStarveDraws
: public LayerTreeHostAnimationTest {
public:
LayerTreeHostAnimationTestCheckerboardDoesNotStarveDraws()
: started_animating_(false) {}
void BeginTest() override {
AttachPlayersToTimeline();
player_->AttachElement(layer_tree_host()->root_layer()->element_id());
PostAddAnimationToMainThreadPlayer(player_.get());
}
void AnimateLayers(LayerTreeHostImpl* host_impl,
base::TimeTicks monotonic_time) override {
started_animating_ = true;
}
void DrawLayersOnThread(LayerTreeHostImpl* host_impl) override {
if (started_animating_)
EndTest();
}
DrawResult PrepareToDrawOnThread(LayerTreeHostImpl* host_impl,
LayerTreeHostImpl::FrameData* frame,
DrawResult draw_result) override {
return DRAW_ABORTED_CHECKERBOARD_ANIMATIONS;
}
void AfterTest() override {}
private:
bool started_animating_;
};
// Starvation can only be an issue with the MT compositor.
MULTI_THREAD_TEST_F(LayerTreeHostAnimationTestCheckerboardDoesNotStarveDraws);
// Ensures that animations eventually get deleted.
class LayerTreeHostAnimationTestAnimationsGetDeleted
: public LayerTreeHostAnimationTest {
public:
LayerTreeHostAnimationTestAnimationsGetDeleted()
: started_animating_(false) {}
void BeginTest() override {
AttachPlayersToTimeline();
player_->AttachElement(layer_tree_host()->root_layer()->element_id());
PostAddAnimationToMainThreadPlayer(player_.get());
}
void AnimateLayers(LayerTreeHostImpl* host_impl,
base::TimeTicks monotonic_time) override {
bool have_animations = !host_impl->animation_host()
->active_element_animations_for_testing()
.empty();
if (!started_animating_ && have_animations) {
started_animating_ = true;
return;
}
if (started_animating_ && !have_animations)
EndTest();
}
void NotifyAnimationFinished(base::TimeTicks monotonic_time,
TargetProperty::Type target_property,
int group) override {
// Animations on the impl-side ElementAnimations only get deleted during
// a commit, so we need to schedule a commit.
layer_tree_host()->SetNeedsCommit();
}
void AfterTest() override {}
private:
bool started_animating_;
};
SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostAnimationTestAnimationsGetDeleted);
// Ensure that an animation's timing function is respected.
class LayerTreeHostAnimationTestAddAnimationWithTimingFunction
: public LayerTreeHostAnimationTest {
public:
void SetupTree() override {
LayerTreeHostAnimationTest::SetupTree();
picture_ = FakePictureLayer::Create(&client_);
picture_->SetBounds(gfx::Size(4, 4));
client_.set_bounds(picture_->bounds());
layer_tree_host()->root_layer()->AddChild(picture_);
AttachPlayersToTimeline();
player_child_->AttachElement(picture_->element_id());
}
void BeginTest() override {
PostAddAnimationToMainThreadPlayer(player_child_.get());
}
void AnimateLayers(LayerTreeHostImpl* host_impl,
base::TimeTicks monotonic_time) override {
// TODO(ajuma): This test only checks the active tree. Add checks for
// pending tree too.
if (!host_impl->active_tree()->root_layer_for_testing())
return;
// Wait for the commit with the animation to happen.
if (host_impl->sync_tree()->source_frame_number() != 0)
return;
scoped_refptr<AnimationTimeline> timeline_impl =
host_impl->animation_host()->GetTimelineById(timeline_id_);
scoped_refptr<AnimationPlayer> player_child_impl =
timeline_impl->GetPlayerById(player_child_id_);
Animation* animation =
player_child_impl->element_animations()->GetAnimation(
TargetProperty::OPACITY);
const FloatAnimationCurve* curve =
animation->curve()->ToFloatAnimationCurve();
float start_opacity = curve->GetValue(base::TimeDelta());
float end_opacity = curve->GetValue(curve->Duration());
float linearly_interpolated_opacity =
0.25f * end_opacity + 0.75f * start_opacity;
base::TimeDelta time = TimeUtil::Scale(curve->Duration(), 0.25f);
// If the linear timing function associated with this animation was not
// picked up, then the linearly interpolated opacity would be different
// because of the default ease timing function.
EXPECT_FLOAT_EQ(linearly_interpolated_opacity, curve->GetValue(time));
EndTest();
}
void AfterTest() override {}
FakeContentLayerClient client_;
scoped_refptr<FakePictureLayer> picture_;
};
SINGLE_AND_MULTI_THREAD_TEST_F(
LayerTreeHostAnimationTestAddAnimationWithTimingFunction);
// Ensures that main thread animations have their start times synchronized with
// impl thread animations.
class LayerTreeHostAnimationTestSynchronizeAnimationStartTimes
: public LayerTreeHostAnimationTest {
public:
void SetupTree() override {
LayerTreeHostAnimationTest::SetupTree();
picture_ = FakePictureLayer::Create(&client_);
picture_->SetBounds(gfx::Size(4, 4));
client_.set_bounds(picture_->bounds());
layer_tree_host()->root_layer()->AddChild(picture_);
AttachPlayersToTimeline();
player_child_->set_animation_delegate(this);
player_child_->AttachElement(picture_->element_id());
}
void BeginTest() override {
PostAddAnimationToMainThreadPlayer(player_child_.get());
}
void NotifyAnimationStarted(base::TimeTicks monotonic_time,
TargetProperty::Type target_property,
int group) override {
Animation* animation = player_child_->element_animations()->GetAnimation(
TargetProperty::OPACITY);
main_start_time_ = animation->start_time();
player_child_->element_animations()->RemoveAnimation(animation->id());
EndTest();
}
void UpdateAnimationState(LayerTreeHostImpl* impl_host,
bool has_unfinished_animation) override {
scoped_refptr<AnimationTimeline> timeline_impl =
impl_host->animation_host()->GetTimelineById(timeline_id_);
scoped_refptr<AnimationPlayer> player_child_impl =
timeline_impl->GetPlayerById(player_child_id_);
Animation* animation =
player_child_impl->element_animations()->GetAnimation(
TargetProperty::OPACITY);
if (!animation)
return;
impl_start_time_ = animation->start_time();
}
void AfterTest() override {
EXPECT_EQ(impl_start_time_, main_start_time_);
EXPECT_LT(base::TimeTicks(), impl_start_time_);
}
private:
base::TimeTicks main_start_time_;
base::TimeTicks impl_start_time_;
FakeContentLayerClient client_;
scoped_refptr<FakePictureLayer> picture_;
};
SINGLE_AND_MULTI_THREAD_TEST_F(
LayerTreeHostAnimationTestSynchronizeAnimationStartTimes);
// Ensures that notify animation finished is called.
class LayerTreeHostAnimationTestAnimationFinishedEvents
: public LayerTreeHostAnimationTest {
public:
void BeginTest() override {
AttachPlayersToTimeline();
player_->AttachElement(layer_tree_host()->root_layer()->element_id());
PostAddInstantAnimationToMainThreadPlayer(player_.get());
}
void NotifyAnimationFinished(base::TimeTicks monotonic_time,
TargetProperty::Type target_property,
int group) override {
Animation* animation =
player_->element_animations()->GetAnimation(TargetProperty::OPACITY);
if (animation)
player_->element_animations()->RemoveAnimation(animation->id());
EndTest();
}
void AfterTest() override {}
};
SINGLE_AND_MULTI_THREAD_TEST_F(
LayerTreeHostAnimationTestAnimationFinishedEvents);
// Ensures that when opacity is being animated, this value does not cause the
// subtree to be skipped.
class LayerTreeHostAnimationTestDoNotSkipLayersWithAnimatedOpacity
: public LayerTreeHostAnimationTest {
public:
LayerTreeHostAnimationTestDoNotSkipLayersWithAnimatedOpacity()
: update_check_layer_() {}
void SetupTree() override {
update_check_layer_ = FakePictureLayer::Create(&client_);
update_check_layer_->SetOpacity(0.f);
layer_tree_host()->SetRootLayer(update_check_layer_);
client_.set_bounds(update_check_layer_->bounds());
LayerTreeHostAnimationTest::SetupTree();
AttachPlayersToTimeline();
player_->AttachElement(update_check_layer_->element_id());
}
void BeginTest() override {
PostAddAnimationToMainThreadPlayer(player_.get());
}
void DidActivateTreeOnThread(LayerTreeHostImpl* host_impl) override {
scoped_refptr<AnimationTimeline> timeline_impl =
host_impl->animation_host()->GetTimelineById(timeline_id_);
scoped_refptr<AnimationPlayer> player_impl =
timeline_impl->GetPlayerById(player_id_);
Animation* animation_impl = player_impl->element_animations()->GetAnimation(
TargetProperty::OPACITY);
player_impl->element_animations()->RemoveAnimation(animation_impl->id());
EndTest();
}
void AfterTest() override {
// Update() should have been called once, proving that the layer was not
// skipped.
EXPECT_EQ(1, update_check_layer_->update_count());
// clear update_check_layer_ so LayerTreeHost dies.
update_check_layer_ = NULL;
}
private:
FakeContentLayerClient client_;
scoped_refptr<FakePictureLayer> update_check_layer_;
};
SINGLE_AND_MULTI_THREAD_TEST_F(
LayerTreeHostAnimationTestDoNotSkipLayersWithAnimatedOpacity);
// Layers added to tree with existing active animations should have the
// animation correctly recognized.
class LayerTreeHostAnimationTestLayerAddedWithAnimation
: public LayerTreeHostAnimationTest {
public:
void BeginTest() override { PostSetNeedsCommitToMainThread(); }
void DidCommit() override {
if (layer_tree_host()->source_frame_number() == 1) {
AttachPlayersToTimeline();
scoped_refptr<Layer> layer = Layer::Create();
layer->SetElementId(ElementId(42, 0));
player_->AttachElement(layer->element_id());
player_->set_animation_delegate(this);
// Any valid AnimationCurve will do here.
std::unique_ptr<AnimationCurve> curve(new FakeFloatAnimationCurve());
std::unique_ptr<Animation> animation(
Animation::Create(std::move(curve), 1, 1, TargetProperty::OPACITY));
player_->AddAnimation(std::move(animation));
// We add the animation *before* attaching the layer to the tree.
layer_tree_host()->root_layer()->AddChild(layer);
}
}
void AnimateLayers(LayerTreeHostImpl* impl_host,
base::TimeTicks monotonic_time) override {
EndTest();
}
void AfterTest() override {}
};
SINGLE_AND_MULTI_THREAD_TEST_F(
LayerTreeHostAnimationTestLayerAddedWithAnimation);
class LayerTreeHostAnimationTestCancelAnimateCommit
: public LayerTreeHostAnimationTest {
public:
LayerTreeHostAnimationTestCancelAnimateCommit()
: num_begin_frames_(0), num_commit_calls_(0), num_draw_calls_(0) {}
void BeginTest() override { PostSetNeedsCommitToMainThread(); }
void BeginMainFrame(const BeginFrameArgs& args) override {
num_begin_frames_++;
// No-op animate will cancel the commit.
if (layer_tree_host()->source_frame_number() == 1) {
EndTest();
return;
}
layer_tree_host()->SetNeedsAnimate();
}
void CommitCompleteOnThread(LayerTreeHostImpl* impl) override {
num_commit_calls_++;
if (impl->active_tree()->source_frame_number() > 1)
FAIL() << "Commit should have been canceled.";
}
void DrawLayersOnThread(LayerTreeHostImpl* impl) override {
num_draw_calls_++;
if (impl->active_tree()->source_frame_number() > 1)
FAIL() << "Draw should have been canceled.";
}
void AfterTest() override {
EXPECT_EQ(2, num_begin_frames_);
EXPECT_EQ(1, num_commit_calls_);
EXPECT_EQ(1, num_draw_calls_);
}
private:
int num_begin_frames_;
int num_commit_calls_;
int num_draw_calls_;
};
MULTI_THREAD_TEST_F(LayerTreeHostAnimationTestCancelAnimateCommit);
class LayerTreeHostAnimationTestForceRedraw
: public LayerTreeHostAnimationTest {
public:
LayerTreeHostAnimationTestForceRedraw()
: num_animate_(0), num_draw_layers_(0) {}
void BeginTest() override { PostSetNeedsCommitToMainThread(); }
void BeginMainFrame(const BeginFrameArgs& args) override {
if (++num_animate_ < 2)
layer_tree_host()->SetNeedsAnimate();
}
void UpdateLayerTreeHost() override {
layer_tree_host()->SetNextCommitForcesRedraw();
}
void DrawLayersOnThread(LayerTreeHostImpl* impl) override {
if (++num_draw_layers_ == 2)
EndTest();
}
void AfterTest() override {
// The first commit will always draw; make sure the second draw triggered
// by the animation was not cancelled.
EXPECT_EQ(2, num_draw_layers_);
EXPECT_EQ(2, num_animate_);
}
private:
int num_animate_;
int num_draw_layers_;
};
MULTI_THREAD_TEST_F(LayerTreeHostAnimationTestForceRedraw);
class LayerTreeHostAnimationTestAnimateAfterSetNeedsCommit
: public LayerTreeHostAnimationTest {
public:
LayerTreeHostAnimationTestAnimateAfterSetNeedsCommit()
: num_animate_(0), num_draw_layers_(0) {}
void BeginTest() override { PostSetNeedsCommitToMainThread(); }
void BeginMainFrame(const BeginFrameArgs& args) override {
if (++num_animate_ <= 2) {
layer_tree_host()->SetNeedsCommit();
layer_tree_host()->SetNeedsAnimate();
}
}
void DrawLayersOnThread(LayerTreeHostImpl* impl) override {
if (++num_draw_layers_ == 2)
EndTest();
}
void AfterTest() override {
// The first commit will always draw; make sure the second draw triggered
// by the SetNeedsCommit was not cancelled.
EXPECT_EQ(2, num_draw_layers_);
EXPECT_GE(num_animate_, 2);
}
private:
int num_animate_;
int num_draw_layers_;
};
MULTI_THREAD_TEST_F(LayerTreeHostAnimationTestAnimateAfterSetNeedsCommit);
// Animations should not be started when frames are being skipped due to
// checkerboard.
class LayerTreeHostAnimationTestCheckerboardDoesntStartAnimations
: public LayerTreeHostAnimationTest {
void SetupTree() override {
LayerTreeHostAnimationTest::SetupTree();
picture_ = FakePictureLayer::Create(&client_);
picture_->SetBounds(gfx::Size(4, 4));
client_.set_bounds(picture_->bounds());
layer_tree_host()->root_layer()->AddChild(picture_);
AttachPlayersToTimeline();
player_child_->AttachElement(picture_->element_id());
player_child_->set_animation_delegate(this);
}
void InitializeSettings(LayerTreeSettings* settings) override {
// Make sure that drawing many times doesn't cause a checkerboarded
// animation to start so we avoid flake in this test.
settings->timeout_and_draw_when_animation_checkerboards = false;
LayerTreeHostAnimationTest::InitializeSettings(settings);
}
void BeginTest() override {
prevented_draw_ = 0;
started_times_ = 0;
PostSetNeedsCommitToMainThread();
}
DrawResult PrepareToDrawOnThread(LayerTreeHostImpl* host_impl,
LayerTreeHostImpl::FrameData* frame_data,
DrawResult draw_result) override {
// Don't checkerboard when the first animation wants to start.
if (host_impl->active_tree()->source_frame_number() < 2)
return draw_result;
if (TestEnded())
return draw_result;
// Act like there is checkerboard when the second animation wants to draw.
++prevented_draw_;
if (prevented_draw_ > 2)
EndTest();
return DRAW_ABORTED_CHECKERBOARD_ANIMATIONS;
}
void DidCommitAndDrawFrame() override {
switch (layer_tree_host()->source_frame_number()) {
case 1:
// The animation is longer than 1 BeginFrame interval.
AddOpacityTransitionToPlayer(player_child_.get(), 0.1, 0.2f, 0.8f,
false);
break;
case 2:
// This second animation will not be drawn so it should not start.
AddAnimatedTransformToPlayer(player_child_.get(), 0.1, 5, 5);
break;
}
}
void NotifyAnimationStarted(base::TimeTicks monotonic_time,
TargetProperty::Type target_property,
int group) override {
if (TestEnded())
return;
started_times_++;
}
void AfterTest() override {
// Make sure we tried to draw the second animation but failed.
EXPECT_LT(0, prevented_draw_);
// The first animation should be started, but the second should not because
// of checkerboard.
EXPECT_EQ(1, started_times_);
}
int prevented_draw_;
int started_times_;
FakeContentLayerClient client_;
scoped_refptr<FakePictureLayer> picture_;
};
MULTI_THREAD_TEST_F(
LayerTreeHostAnimationTestCheckerboardDoesntStartAnimations);
// Verifies that scroll offset animations are only accepted when impl-scrolling
// is supported, and that when scroll offset animations are accepted,
// scroll offset updates are sent back to the main thread.
class LayerTreeHostAnimationTestScrollOffsetChangesArePropagated
: public LayerTreeHostAnimationTest {
public:
void SetupTree() override {
LayerTreeHostAnimationTest::SetupTree();
scroll_layer_ = FakePictureLayer::Create(&client_);
scroll_layer_->SetScrollClipLayerId(layer_tree_host()->root_layer()->id());
scroll_layer_->SetBounds(gfx::Size(1000, 1000));
client_.set_bounds(scroll_layer_->bounds());
scroll_layer_->SetScrollOffset(gfx::ScrollOffset(10, 20));
layer_tree_host()->root_layer()->AddChild(scroll_layer_);
AttachPlayersToTimeline();
player_child_->AttachElement(scroll_layer_->element_id());
}
void BeginTest() override { PostSetNeedsCommitToMainThread(); }
void DidCommit() override {
switch (layer_tree_host()->source_frame_number()) {
case 1: {
std::unique_ptr<ScrollOffsetAnimationCurve> curve(
ScrollOffsetAnimationCurve::Create(
gfx::ScrollOffset(500.f, 550.f),
CubicBezierTimingFunction::CreatePreset(
CubicBezierTimingFunction::EaseType::EASE_IN_OUT)));
std::unique_ptr<Animation> animation(Animation::Create(
std::move(curve), 1, 0, TargetProperty::SCROLL_OFFSET));
animation->set_needs_synchronized_start_time(true);
bool impl_scrolling_supported =
layer_tree_host()->proxy()->SupportsImplScrolling();
if (impl_scrolling_supported)
player_child_->AddAnimation(std::move(animation));
else
EndTest();
break;
}
default:
if (scroll_layer_->scroll_offset().x() > 10 &&
scroll_layer_->scroll_offset().y() > 20)
EndTest();
}
}
void AfterTest() override {}
private:
FakeContentLayerClient client_;
scoped_refptr<FakePictureLayer> scroll_layer_;
};
SINGLE_AND_MULTI_THREAD_TEST_F(
LayerTreeHostAnimationTestScrollOffsetChangesArePropagated);
// Verifies that when a main thread scrolling reason gets added, the
// notification to takover the animation on the main thread gets sent.
class LayerTreeHostAnimationTestScrollOffsetAnimationTakeover
: public LayerTreeHostAnimationTest {
public:
LayerTreeHostAnimationTestScrollOffsetAnimationTakeover() {}
void SetupTree() override {
LayerTreeHostAnimationTest::SetupTree();
scroll_layer_ = FakePictureLayer::Create(&client_);
scroll_layer_->SetBounds(gfx::Size(10000, 10000));
client_.set_bounds(scroll_layer_->bounds());
scroll_layer_->SetScrollOffset(gfx::ScrollOffset(10, 20));
layer_tree_host()->root_layer()->AddChild(scroll_layer_);
AttachPlayersToTimeline();
player_child_->AttachElement(scroll_layer_->element_id());
// Allows NotifyAnimationTakeover to get called.
player_child_->set_animation_delegate(this);
}
void BeginTest() override { PostSetNeedsCommitToMainThread(); }
void DidCommit() override {
if (layer_tree_host()->source_frame_number() == 1) {
// Add an update after the first commit to trigger the animation takeover
// path.
layer_tree_host()
->animation_host()
->scroll_offset_animations()
.AddTakeoverUpdate(scroll_layer_->element_id());
EXPECT_TRUE(layer_tree_host()
->animation_host()
->scroll_offset_animations()
.HasUpdatesForTesting());
}
}
void WillCommitCompleteOnThread(LayerTreeHostImpl* host_impl) override {
if (host_impl->sync_tree()->source_frame_number() == 0) {
host_impl->animation_host()->ImplOnlyScrollAnimationCreate(
scroll_layer_->element_id(), gfx::ScrollOffset(650.f, 750.f),
gfx::ScrollOffset(10, 20));
}
}
void NotifyAnimationTakeover(base::TimeTicks monotonic_time,
TargetProperty::Type target_property,
double animation_start_time,
std::unique_ptr<AnimationCurve> curve) override {
EndTest();
}
void AfterTest() override {}
private:
FakeContentLayerClient client_;
scoped_refptr<FakePictureLayer> scroll_layer_;
};
MULTI_THREAD_TEST_F(LayerTreeHostAnimationTestScrollOffsetAnimationTakeover);
// Verifies that an impl-only scroll offset animation gets updated when the
// scroll offset is adjusted on the main thread.
class LayerTreeHostAnimationTestScrollOffsetAnimationAdjusted
: public LayerTreeHostAnimationTest {
public:
LayerTreeHostAnimationTestScrollOffsetAnimationAdjusted() {}
void SetupTree() override {
LayerTreeHostAnimationTest::SetupTree();
scroll_layer_ = FakePictureLayer::Create(&client_);
scroll_layer_->SetBounds(gfx::Size(10000, 10000));
client_.set_bounds(scroll_layer_->bounds());
scroll_layer_->SetScrollOffset(gfx::ScrollOffset(10, 20));
layer_tree_host()->root_layer()->AddChild(scroll_layer_);
AttachPlayersToTimeline();
player_child_->AttachElement(scroll_layer_->element_id());
}
void BeginTest() override { PostSetNeedsCommitToMainThread(); }
void DidCommit() override {
if (layer_tree_host()->source_frame_number() == 1) {
// Add an update after the first commit to trigger the animation update
// path.
layer_tree_host()
->animation_host()
->scroll_offset_animations()
.AddAdjustmentUpdate(scroll_layer_->element_id(),
gfx::Vector2dF(100.f, 100.f));
EXPECT_TRUE(layer_tree_host()
->animation_host()
->scroll_offset_animations()
.HasUpdatesForTesting());
} else if (layer_tree_host()->source_frame_number() == 2) {
// Verify that the update queue is cleared after the update is applied.
EXPECT_FALSE(layer_tree_host()
->animation_host()
->scroll_offset_animations()
.HasUpdatesForTesting());
}
}
void BeginCommitOnThread(LayerTreeHostImpl* host_impl) override {
// Note that the frame number gets incremented after BeginCommitOnThread but
// before WillCommitCompleteOnThread and CommitCompleteOnThread.
if (host_impl->sync_tree()->source_frame_number() == 0) {
// This happens after the impl-only animation is added in
// WillCommitCompleteOnThread.
Animation* animation =
host_impl->animation_host()
->GetElementAnimationsForElementId(scroll_layer_->element_id())
->GetAnimation(TargetProperty::SCROLL_OFFSET);
ScrollOffsetAnimationCurve* curve =
animation->curve()->ToScrollOffsetAnimationCurve();
// Verifiy the initial and target position before the scroll offset
// update from MT.
EXPECT_EQ(Animation::RunState::RUNNING, animation->run_state());
EXPECT_EQ(gfx::ScrollOffset(10.f, 20.f),
curve->GetValue(base::TimeDelta()));
EXPECT_EQ(gfx::ScrollOffset(650.f, 750.f), curve->target_value());
}
}
void WillCommitCompleteOnThread(LayerTreeHostImpl* host_impl) override {
if (host_impl->sync_tree()->source_frame_number() == 0) {
host_impl->animation_host()->ImplOnlyScrollAnimationCreate(
scroll_layer_->element_id(), gfx::ScrollOffset(650.f, 750.f),
gfx::ScrollOffset(10, 20));
}
}
void CommitCompleteOnThread(LayerTreeHostImpl* host_impl) override {
if (host_impl->sync_tree()->source_frame_number() == 1) {
Animation* animation =
host_impl->animation_host()
->GetElementAnimationsForElementId(scroll_layer_->element_id())
->GetAnimation(TargetProperty::SCROLL_OFFSET);
ScrollOffsetAnimationCurve* curve =
animation->curve()->ToScrollOffsetAnimationCurve();
// Verifiy the initial and target position after the scroll offset
// update from MT
EXPECT_EQ(Animation::RunState::STARTING, animation->run_state());
EXPECT_EQ(gfx::ScrollOffset(110.f, 120.f),
curve->GetValue(base::TimeDelta()));
EXPECT_EQ(gfx::ScrollOffset(750.f, 850.f), curve->target_value());
EndTest();
}
}
void AfterTest() override {}
private:
FakeContentLayerClient client_;
scoped_refptr<FakePictureLayer> scroll_layer_;
};
MULTI_THREAD_TEST_F(LayerTreeHostAnimationTestScrollOffsetAnimationAdjusted);
// Verifies that when the main thread removes a scroll animation and sets a new
// scroll position, the active tree takes on exactly this new scroll position
// after activation, and the main thread doesn't receive a spurious scroll
// delta.
class LayerTreeHostAnimationTestScrollOffsetAnimationRemoval
: public LayerTreeHostAnimationTest {
public:
LayerTreeHostAnimationTestScrollOffsetAnimationRemoval()
: final_postion_(50.0, 100.0) {}
void SetupTree() override {
LayerTreeHostAnimationTest::SetupTree();
scroll_layer_ = FakePictureLayer::Create(&client_);
scroll_layer_->SetScrollClipLayerId(layer_tree_host()->root_layer()->id());
scroll_layer_->SetBounds(gfx::Size(10000, 10000));
client_.set_bounds(scroll_layer_->bounds());
scroll_layer_->SetScrollOffset(gfx::ScrollOffset(100.0, 200.0));
layer_tree_host()->root_layer()->AddChild(scroll_layer_);
std::unique_ptr<ScrollOffsetAnimationCurve> curve(
ScrollOffsetAnimationCurve::Create(
gfx::ScrollOffset(6500.f, 7500.f),
CubicBezierTimingFunction::CreatePreset(
CubicBezierTimingFunction::EaseType::EASE_IN_OUT)));
std::unique_ptr<Animation> animation(Animation::Create(
std::move(curve), 1, 0, TargetProperty::SCROLL_OFFSET));
animation->set_needs_synchronized_start_time(true);
AttachPlayersToTimeline();
player_child_->AttachElement(scroll_layer_->element_id());
player_child_->AddAnimation(std::move(animation));
}
void BeginTest() override { PostSetNeedsCommitToMainThread(); }
void BeginMainFrame(const BeginFrameArgs& args) override {
switch (layer_tree_host()->source_frame_number()) {
case 0:
break;
case 1: {
Animation* animation =
player_child_->element_animations()
->GetAnimation(TargetProperty::SCROLL_OFFSET);
player_child_->RemoveAnimation(animation->id());
scroll_layer_->SetScrollOffset(final_postion_);
break;
}
default:
EXPECT_EQ(final_postion_, scroll_layer_->scroll_offset());
}
}
void BeginCommitOnThread(LayerTreeHostImpl* host_impl) override {
host_impl->BlockNotifyReadyToActivateForTesting(
ShouldBlockActivation(host_impl));
}
void WillBeginImplFrameOnThread(LayerTreeHostImpl* host_impl,
const BeginFrameArgs& args) override {
host_impl->BlockNotifyReadyToActivateForTesting(
ShouldBlockActivation(host_impl));
}
void WillActivateTreeOnThread(LayerTreeHostImpl* host_impl) override {
if (host_impl->pending_tree()->source_frame_number() != 1)
return;
LayerImpl* scroll_layer_impl =
host_impl->pending_tree()->LayerById(scroll_layer_->id());
EXPECT_EQ(final_postion_, scroll_layer_impl->CurrentScrollOffset());
}
void DidActivateTreeOnThread(LayerTreeHostImpl* host_impl) override {
if (host_impl->active_tree()->source_frame_number() != 1)
return;
LayerImpl* scroll_layer_impl =
host_impl->active_tree()->LayerById(scroll_layer_->id());
EXPECT_EQ(final_postion_, scroll_layer_impl->CurrentScrollOffset());
EndTest();
}
void AfterTest() override {
EXPECT_EQ(final_postion_, scroll_layer_->scroll_offset());
}
private:
bool ShouldBlockActivation(LayerTreeHostImpl* host_impl) {
if (!host_impl->pending_tree())
return false;
if (!host_impl->active_tree()->root_layer_for_testing())
return false;
scoped_refptr<AnimationTimeline> timeline_impl =
host_impl->animation_host()->GetTimelineById(timeline_id_);
scoped_refptr<AnimationPlayer> player_impl =
timeline_impl->GetPlayerById(player_child_id_);
LayerImpl* scroll_layer_impl =
host_impl->active_tree()->LayerById(scroll_layer_->id());
Animation* animation = player_impl->element_animations()->GetAnimation(
TargetProperty::SCROLL_OFFSET);
if (!animation || animation->run_state() != Animation::RUNNING)
return false;
// Block activation until the running animation has a chance to produce a
// scroll delta.
gfx::Vector2dF scroll_delta = ScrollDelta(scroll_layer_impl);
if (scroll_delta.x() > 0.f || scroll_delta.y() > 0.f)
return false;
return true;
}
FakeContentLayerClient client_;
scoped_refptr<FakePictureLayer> scroll_layer_;
const gfx::ScrollOffset final_postion_;
};
MULTI_THREAD_TEST_F(LayerTreeHostAnimationTestScrollOffsetAnimationRemoval);
// When animations are simultaneously added to an existing layer and to a new
// layer, they should start at the same time, even when there's already a
// running animation on the existing layer.
class LayerTreeHostAnimationTestAnimationsAddedToNewAndExistingLayers
: public LayerTreeHostAnimationTest {
public:
LayerTreeHostAnimationTestAnimationsAddedToNewAndExistingLayers()
: frame_count_with_pending_tree_(0) {}
void BeginTest() override {
AttachPlayersToTimeline();
PostSetNeedsCommitToMainThread();
}
void DidCommit() override {
if (layer_tree_host()->source_frame_number() == 1) {
player_->AttachElement(layer_tree_host()->root_layer()->element_id());
AddAnimatedTransformToPlayer(player_.get(), 4, 1, 1);
} else if (layer_tree_host()->source_frame_number() == 2) {
AddOpacityTransitionToPlayer(player_.get(), 1, 0.f, 0.5f, true);
scoped_refptr<Layer> layer = Layer::Create();
layer_tree_host()->root_layer()->AddChild(layer);
layer_tree_host()->SetElementIdsForTesting();
layer->SetBounds(gfx::Size(4, 4));
player_child_->AttachElement(layer->element_id());
player_child_->set_animation_delegate(this);
AddOpacityTransitionToPlayer(player_child_.get(), 1, 0.f, 0.5f, true);
}
}
void BeginCommitOnThread(LayerTreeHostImpl* host_impl) override {
host_impl->BlockNotifyReadyToActivateForTesting(true);
}
void CommitCompleteOnThread(LayerTreeHostImpl* host_impl) override {
// For the commit that added animations to new and existing layers, keep
// blocking activation. We want to verify that even with activation blocked,
// the animation on the layer that's already in the active tree won't get a
// head start.
if (host_impl->pending_tree()->source_frame_number() != 2) {
host_impl->BlockNotifyReadyToActivateForTesting(false);
}
}
void WillBeginImplFrameOnThread(LayerTreeHostImpl* host_impl,
const BeginFrameArgs& args) override {
if (!host_impl->pending_tree() ||
host_impl->pending_tree()->source_frame_number() != 2)
return;
frame_count_with_pending_tree_++;
if (frame_count_with_pending_tree_ == 2) {
host_impl->BlockNotifyReadyToActivateForTesting(false);
}
}
void UpdateAnimationState(LayerTreeHostImpl* host_impl,
bool has_unfinished_animation) override {
scoped_refptr<AnimationTimeline> timeline_impl =
host_impl->animation_host()->GetTimelineById(timeline_id_);
scoped_refptr<AnimationPlayer> player_impl =
timeline_impl->GetPlayerById(player_id_);
scoped_refptr<AnimationPlayer> player_child_impl =
timeline_impl->GetPlayerById(player_child_id_);
// wait for tree activation.
if (!player_impl->element_animations())
return;
Animation* root_animation = player_impl->element_animations()->GetAnimation(
TargetProperty::OPACITY);
if (!root_animation || root_animation->run_state() != Animation::RUNNING)
return;
Animation* child_animation =
player_child_impl->element_animations()->GetAnimation(
TargetProperty::OPACITY);
EXPECT_EQ(Animation::RUNNING, child_animation->run_state());
EXPECT_EQ(root_animation->start_time(), child_animation->start_time());
player_impl->element_animations()->AbortAnimations(TargetProperty::OPACITY);
player_impl->element_animations()->AbortAnimations(
TargetProperty::TRANSFORM);
player_child_impl->element_animations()->AbortAnimations(
TargetProperty::OPACITY);
EndTest();
}
void AfterTest() override {}
private:
int frame_count_with_pending_tree_;
};
// This test blocks activation which is not supported for single thread mode.
MULTI_THREAD_BLOCKNOTIFY_TEST_F(
LayerTreeHostAnimationTestAnimationsAddedToNewAndExistingLayers);
class LayerTreeHostAnimationTestPendingTreeAnimatesFirstCommit
: public LayerTreeHostAnimationTest {
public:
void SetupTree() override {
LayerTreeHostAnimationTest::SetupTree();
layer_ = FakePictureLayer::Create(&client_);
layer_->SetBounds(gfx::Size(2, 2));
client_.set_bounds(layer_->bounds());
// Transform the layer to 4,4 to start.
gfx::Transform start_transform;
start_transform.Translate(4.0, 4.0);
layer_->SetTransform(start_transform);
layer_tree_host()->root_layer()->AddChild(layer_);
layer_tree_host()->SetElementIdsForTesting();
player_->AttachElement(layer_->element_id());
AttachPlayersToTimeline();
}
void BeginTest() override {
// Add a translate from 6,7 to 8,9.
TransformOperations start;
start.AppendTranslate(6.f, 7.f, 0.f);
TransformOperations end;
end.AppendTranslate(8.f, 9.f, 0.f);
AddAnimatedTransformToPlayer(player_.get(), 4.0, start, end);
PostSetNeedsCommitToMainThread();
}
void WillPrepareTiles(LayerTreeHostImpl* host_impl) override {
if (host_impl->sync_tree()->source_frame_number() != 0)
return;
// After checking this on the sync tree, we will activate, which will cause
// PrepareTiles to happen again (which races with the test exiting).
if (TestEnded())
return;
scoped_refptr<AnimationTimeline> timeline_impl =
host_impl->animation_host()->GetTimelineById(timeline_id_);
scoped_refptr<AnimationPlayer> player_impl =
timeline_impl->GetPlayerById(player_id_);
LayerImpl* child = host_impl->sync_tree()->LayerById(layer_->id());
Animation* animation = player_impl->element_animations()->GetAnimation(
TargetProperty::TRANSFORM);
// The animation should be starting for the first frame.
EXPECT_EQ(Animation::STARTING, animation->run_state());
// And the transform should be propogated to the sync tree layer, at its
// starting state which is 6,7.
gfx::Transform expected_transform;
expected_transform.Translate(6.0, 7.0);
EXPECT_TRANSFORMATION_MATRIX_EQ(expected_transform, child->DrawTransform());
// And the sync tree layer should know it is animating.
EXPECT_TRUE(child->screen_space_transform_is_animating());
player_impl->element_animations()->AbortAnimations(
TargetProperty::TRANSFORM);
EndTest();
}
void AfterTest() override {}
FakeContentLayerClient client_;
scoped_refptr<Layer> layer_;
};
SINGLE_AND_MULTI_THREAD_TEST_F(
LayerTreeHostAnimationTestPendingTreeAnimatesFirstCommit);
// When a layer with an animation is removed from the tree and later re-added,
// the animation should resume.
class LayerTreeHostAnimationTestAnimatedLayerRemovedAndAdded
: public LayerTreeHostAnimationTest {
public:
void SetupTree() override {
LayerTreeHostAnimationTest::SetupTree();
layer_ = Layer::Create();
layer_->SetBounds(gfx::Size(4, 4));
layer_tree_host()->root_layer()->AddChild(layer_);
layer_tree_host()->SetElementIdsForTesting();
layer_tree_host()->animation_host()->AddAnimationTimeline(timeline_.get());
timeline_->AttachPlayer(player_.get());
player_->AttachElement(layer_->element_id());
DCHECK(player_->element_animations());
AddOpacityTransitionToPlayer(player_.get(), 10000.0, 0.1f, 0.9f, true);
}
void BeginTest() override { PostSetNeedsCommitToMainThread(); }
void DidCommit() override {
switch (layer_tree_host()->source_frame_number()) {
case 0:
EXPECT_TRUE(
player_->element_animations()->has_element_in_active_list());
EXPECT_FALSE(
player_->element_animations()->has_element_in_pending_list());
EXPECT_TRUE(layer_tree_host()->animation_host()->NeedsAnimateLayers());
break;
case 1:
layer_->RemoveFromParent();
EXPECT_FALSE(
player_->element_animations()->has_element_in_active_list());
EXPECT_FALSE(
player_->element_animations()->has_element_in_pending_list());
EXPECT_FALSE(layer_tree_host()->animation_host()->NeedsAnimateLayers());
break;
case 2:
layer_tree_host()->root_layer()->AddChild(layer_);
EXPECT_TRUE(
player_->element_animations()->has_element_in_active_list());
EXPECT_FALSE(
player_->element_animations()->has_element_in_pending_list());
EXPECT_TRUE(layer_tree_host()->animation_host()->NeedsAnimateLayers());
break;
}
}
void DidActivateTreeOnThread(LayerTreeHostImpl* host_impl) override {
scoped_refptr<AnimationTimeline> timeline_impl =
host_impl->animation_host()->GetTimelineById(timeline_id_);
scoped_refptr<AnimationPlayer> player_impl =
timeline_impl->GetPlayerById(player_id_);
switch (host_impl->active_tree()->source_frame_number()) {
case 0:
EXPECT_TRUE(
player_impl->element_animations()->has_element_in_active_list());
EXPECT_TRUE(host_impl->animation_host()->NeedsAnimateLayers());
break;
case 1:
EXPECT_FALSE(
player_impl->element_animations()->has_element_in_active_list());
EXPECT_FALSE(host_impl->animation_host()->NeedsAnimateLayers());
break;
case 2:
EXPECT_TRUE(
player_impl->element_animations()->has_element_in_active_list());
EXPECT_TRUE(host_impl->animation_host()->NeedsAnimateLayers());
EndTest();
break;
}
}
void AfterTest() override {}
private:
scoped_refptr<Layer> layer_;
};
SINGLE_AND_MULTI_THREAD_TEST_F(
LayerTreeHostAnimationTestAnimatedLayerRemovedAndAdded);
class LayerTreeHostAnimationTestAddAnimationAfterAnimating
: public LayerTreeHostAnimationTest {
public:
void SetupTree() override {
LayerTreeHostAnimationTest::SetupTree();
layer_ = Layer::Create();
layer_->SetBounds(gfx::Size(4, 4));
layer_tree_host()->root_layer()->AddChild(layer_);
AttachPlayersToTimeline();
player_->AttachElement(layer_tree_host()->root_layer()->element_id());
player_child_->AttachElement(layer_->element_id());
}
void BeginTest() override { PostSetNeedsCommitToMainThread(); }
void DidCommit() override {
switch (layer_tree_host()->source_frame_number()) {
case 1:
// First frame: add an animation to the root layer.
AddAnimatedTransformToPlayer(player_.get(), 0.1, 5, 5);
break;
case 2:
// Second frame: add an animation to the content layer. The root layer
// animation has caused us to animate already during this frame.
AddOpacityTransitionToPlayer(player_child_.get(), 0.1, 5, 5, false);
break;
}
}
void SwapBuffersOnThread(LayerTreeHostImpl* host_impl, bool result) override {
// After both animations have started, verify that they have valid
// start times.
if (host_impl->active_tree()->source_frame_number() < 2)
return;
AnimationHost::ElementToAnimationsMap element_animations_copy =
host_impl->animation_host()->active_element_animations_for_testing();
EXPECT_EQ(2u, element_animations_copy.size());
for (auto& it : element_animations_copy) {
ElementId id = it.first;
if (id ==
host_impl->active_tree()->root_layer_for_testing()->element_id()) {
Animation* anim = it.second->GetAnimation(TargetProperty::TRANSFORM);
EXPECT_GT((anim->start_time() - base::TimeTicks()).InSecondsF(), 0);
} else if (id == layer_->element_id()) {
Animation* anim = it.second->GetAnimation(TargetProperty::OPACITY);
EXPECT_GT((anim->start_time() - base::TimeTicks()).InSecondsF(), 0);
}
EndTest();
}
}
void AfterTest() override {}
private:
scoped_refptr<Layer> layer_;
};
SINGLE_AND_MULTI_THREAD_TEST_F(
LayerTreeHostAnimationTestAddAnimationAfterAnimating);
class LayerTreeHostAnimationTestRemoveAnimation
: public LayerTreeHostAnimationTest {
public:
void SetupTree() override {
LayerTreeHostAnimationTest::SetupTree();
layer_ = FakePictureLayer::Create(&client_);
layer_->SetBounds(gfx::Size(4, 4));
client_.set_bounds(layer_->bounds());
layer_tree_host()->root_layer()->AddChild(layer_);
AttachPlayersToTimeline();
player_->AttachElement(layer_tree_host()->root_layer()->element_id());
player_child_->AttachElement(layer_->element_id());
}
void BeginTest() override { PostSetNeedsCommitToMainThread(); }
void DidCommit() override {
switch (layer_tree_host()->source_frame_number()) {
case 1:
AddAnimatedTransformToPlayer(player_child_.get(), 1.0, 5, 5);
break;
case 2:
Animation* animation =
player_child_->element_animations()->GetAnimation(
TargetProperty::TRANSFORM);
player_child_->RemoveAnimation(animation->id());
gfx::Transform transform;
transform.Translate(10.f, 10.f);
layer_->SetTransform(transform);
// Do something that causes property trees to get rebuilt. This is
// intended to simulate the conditions that caused the bug whose fix
// this is testing (the test will pass without it but won't test what
// we want it to). We were updating the wrong transform node at the end
// of an animation (we were assuming the layer with the finished
// animation still had its own transform node). But nodes can only get
// added/deleted when something triggers a rebuild. Adding a layer
// triggers a rebuild, and since the layer that had an animation before
// no longer has one, it doesn't get a transform node in the rebuild.
layer_->AddChild(Layer::Create());
break;
}
}
void DrawLayersOnThread(LayerTreeHostImpl* host_impl) override {
LayerImpl* child = host_impl->active_tree()->LayerById(layer_->id());
switch (host_impl->active_tree()->source_frame_number()) {
case 0:
// No animation yet.
break;
case 1:
// Animation is started.
EXPECT_TRUE(child->screen_space_transform_is_animating());
break;
case 2: {
// The animation is removed, the transform that was set afterward is
// applied.
gfx::Transform expected_transform;
expected_transform.Translate(10.f, 10.f);
EXPECT_TRANSFORMATION_MATRIX_EQ(expected_transform,
child->DrawTransform());
EXPECT_FALSE(child->screen_space_transform_is_animating());
EndTest();
break;
}
default:
NOTREACHED();
}
}
void AfterTest() override {}
private:
scoped_refptr<Layer> layer_;
FakeContentLayerClient client_;
};
SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostAnimationTestRemoveAnimation);
class LayerTreeHostAnimationTestIsAnimating
: public LayerTreeHostAnimationTest {
public:
void SetupTree() override {
LayerTreeHostAnimationTest::SetupTree();
layer_ = FakePictureLayer::Create(&client_);
layer_->SetBounds(gfx::Size(4, 4));
client_.set_bounds(layer_->bounds());
layer_tree_host()->root_layer()->AddChild(layer_);
AttachPlayersToTimeline();
player_->AttachElement(layer_->element_id());
}
void BeginTest() override { PostSetNeedsCommitToMainThread(); }
void DidCommit() override {
switch (layer_tree_host()->source_frame_number()) {
case 1:
AddAnimatedTransformToPlayer(player_.get(), 1.0, 5, 5);
break;
case 2:
Animation* animation = player_->element_animations()->GetAnimation(
TargetProperty::TRANSFORM);
player_->RemoveAnimation(animation->id());
break;
}
}
void CommitCompleteOnThread(LayerTreeHostImpl* host_impl) override {
LayerImpl* child = host_impl->sync_tree()->LayerById(layer_->id());
switch (host_impl->sync_tree()->source_frame_number()) {
case 0:
// No animation yet.
break;
case 1:
// Animation is started.
EXPECT_TRUE(child->screen_space_transform_is_animating());
break;
case 2:
// The animation is removed/stopped.
EXPECT_FALSE(child->screen_space_transform_is_animating());
EndTest();
break;
default:
NOTREACHED();
}
}
void DrawLayersOnThread(LayerTreeHostImpl* host_impl) override {
LayerImpl* child = host_impl->active_tree()->LayerById(layer_->id());
switch (host_impl->active_tree()->source_frame_number()) {
case 0:
// No animation yet.
break;
case 1:
// Animation is started.
EXPECT_TRUE(child->screen_space_transform_is_animating());
break;
case 2:
// The animation is removed/stopped.
EXPECT_FALSE(child->screen_space_transform_is_animating());
EndTest();
break;
default:
NOTREACHED();
}
}
void AfterTest() override {}
private:
scoped_refptr<Layer> layer_;
FakeContentLayerClient client_;
};
SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostAnimationTestIsAnimating);
class LayerTreeHostAnimationTestAnimationFinishesDuringCommit
: public LayerTreeHostAnimationTest {
public:
LayerTreeHostAnimationTestAnimationFinishesDuringCommit()
: signalled_(false) {}
void SetupTree() override {
LayerTreeHostAnimationTest::SetupTree();
layer_ = FakePictureLayer::Create(&client_);
layer_->SetBounds(gfx::Size(4, 4));
client_.set_bounds(layer_->bounds());
layer_tree_host()->root_layer()->AddChild(layer_);
AttachPlayersToTimeline();
player_->AttachElement(layer_tree_host()->root_layer()->element_id());
player_child_->AttachElement(layer_->element_id());
}
void BeginTest() override { PostSetNeedsCommitToMainThread(); }
void DidCommit() override {
if (layer_tree_host()->source_frame_number() == 1)
AddAnimatedTransformToPlayer(player_child_.get(), 0.04, 5, 5);
}
void WillCommit() override {
if (layer_tree_host()->source_frame_number() == 2) {
// Block until the animation finishes on the compositor thread. Since
// animations have already been ticked on the main thread, when the commit
// happens the state on the main thread will be consistent with having a
// running animation but the state on the compositor thread will be
// consistent with having only a finished animation.
completion_.Wait();
}
}
void CommitCompleteOnThread(LayerTreeHostImpl* host_impl) override {
switch (host_impl->sync_tree()->source_frame_number()) {
case 1:
PostSetNeedsCommitToMainThread();
break;
case 2:
gfx::Transform expected_transform;
expected_transform.Translate(5.f, 5.f);
LayerImpl* layer_impl = host_impl->sync_tree()->LayerById(layer_->id());
EXPECT_TRANSFORMATION_MATRIX_EQ(expected_transform,
layer_impl->DrawTransform());
EndTest();
break;
}
}
void UpdateAnimationState(LayerTreeHostImpl* host_impl,
bool has_unfinished_animation) override {
if (host_impl->active_tree()->source_frame_number() == 1 &&
!has_unfinished_animation && !signalled_) {
// The animation has finished, so allow the main thread to commit.
completion_.Signal();
signalled_ = true;
}
}
void AfterTest() override {}
private:
scoped_refptr<Layer> layer_;
FakeContentLayerClient client_;
CompletionEvent completion_;
bool signalled_;
};
// An animation finishing during commit can only happen when we have a separate
// compositor thread.
MULTI_THREAD_TEST_F(LayerTreeHostAnimationTestAnimationFinishesDuringCommit);
class LayerTreeHostAnimationTestNotifyAnimationFinished
: public LayerTreeHostAnimationTest {
public:
LayerTreeHostAnimationTestNotifyAnimationFinished()
: called_animation_started_(false), called_animation_finished_(false) {}
void SetupTree() override {
LayerTreeHostAnimationTest::SetupTree();
picture_ = FakePictureLayer::Create(&client_);
picture_->SetBounds(gfx::Size(4, 4));
client_.set_bounds(picture_->bounds());
layer_tree_host()->root_layer()->AddChild(picture_);
AttachPlayersToTimeline();
player_->AttachElement(picture_->element_id());
player_->set_animation_delegate(this);
}
void BeginTest() override {
PostAddLongAnimationToMainThreadPlayer(player_.get());
}
void NotifyAnimationStarted(base::TimeTicks monotonic_time,
TargetProperty::Type target_property,
int group) override {
called_animation_started_ = true;
layer_tree_host()->AnimateLayers(base::TimeTicks::FromInternalValue(
std::numeric_limits<int64_t>::max()));
PostSetNeedsCommitToMainThread();
}
void NotifyAnimationFinished(base::TimeTicks monotonic_time,
TargetProperty::Type target_property,
int group) override {
called_animation_finished_ = true;
EndTest();
}
void AfterTest() override {
EXPECT_TRUE(called_animation_started_);
EXPECT_TRUE(called_animation_finished_);
}
private:
bool called_animation_started_;
bool called_animation_finished_;
FakeContentLayerClient client_;
scoped_refptr<FakePictureLayer> picture_;
};
SINGLE_AND_MULTI_THREAD_TEST_F(
LayerTreeHostAnimationTestNotifyAnimationFinished);
// Check that transform sync happens correctly at commit when we remove and add
// a different animation player to an element.
class LayerTreeHostAnimationTestChangeAnimationPlayer
: public LayerTreeHostAnimationTest {
public:
void SetupTree() override {
LayerTreeHostAnimationTest::SetupTree();
AttachPlayersToTimeline();
timeline_->DetachPlayer(player_child_.get());
player_->AttachElement(layer_tree_host()->root_layer()->element_id());
TransformOperations start;
start.AppendTranslate(5.f, 5.f, 0.f);
TransformOperations end;
end.AppendTranslate(5.f, 5.f, 0.f);
AddAnimatedTransformToPlayer(player_.get(), 1.0, start, end);
}
void BeginTest() override { PostSetNeedsCommitToMainThread(); }
void CommitCompleteOnThread(LayerTreeHostImpl* host_impl) override {
PropertyTrees* property_trees = host_impl->sync_tree()->property_trees();
TransformNode* node =
property_trees->transform_tree.Node(host_impl->sync_tree()
->root_layer_for_testing()
->transform_tree_index());
gfx::Transform translate;
translate.Translate(5, 5);
switch (host_impl->sync_tree()->source_frame_number()) {
case 2:
EXPECT_TRANSFORMATION_MATRIX_EQ(node->data.local, translate);
EndTest();
break;
default:
break;
}
}
void DidCommit() override { PostSetNeedsCommitToMainThread(); }
void WillBeginMainFrame() override {
if (layer_tree_host()->source_frame_number() == 2) {
// Destroy player.
timeline_->DetachPlayer(player_.get());
player_ = nullptr;
timeline_->AttachPlayer(player_child_.get());
player_child_->AttachElement(
layer_tree_host()->root_layer()->element_id());
AddAnimatedTransformToPlayer(player_child_.get(), 1.0, 10, 10);
Animation* animation = player_child_->element_animations()->GetAnimation(
TargetProperty::TRANSFORM);
animation->set_start_time(base::TimeTicks::Now() +
base::TimeDelta::FromSecondsD(1000));
animation->set_fill_mode(Animation::FillMode::NONE);
}
}
void AfterTest() override {}
};
SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostAnimationTestChangeAnimationPlayer);
// Check that SetTransformIsPotentiallyAnimatingChanged is called
// if we destroy ElementAnimations.
class LayerTreeHostAnimationTestSetPotentiallyAnimatingOnLacDestruction
: public LayerTreeHostAnimationTest {
public:
void SetupTree() override {
prev_screen_space_transform_is_animating_ = true;
screen_space_transform_animation_stopped_ = false;
LayerTreeHostAnimationTest::SetupTree();
AttachPlayersToTimeline();
player_->AttachElement(layer_tree_host()->root_layer()->element_id());
AddAnimatedTransformToPlayer(player_.get(), 1.0, 5, 5);
}
void BeginTest() override { PostSetNeedsCommitToMainThread(); }
void CommitCompleteOnThread(LayerTreeHostImpl* host_impl) override {
if (host_impl->pending_tree()->source_frame_number() <= 1) {
EXPECT_TRUE(host_impl->pending_tree()
->root_layer_for_testing()
->screen_space_transform_is_animating());
} else {
EXPECT_FALSE(host_impl->pending_tree()
->root_layer_for_testing()
->screen_space_transform_is_animating());
}
}
void DidCommit() override { PostSetNeedsCommitToMainThread(); }
void UpdateLayerTreeHost() override {
if (layer_tree_host()->source_frame_number() == 2) {
// Destroy player.
timeline_->DetachPlayer(player_.get());
player_ = nullptr;
}
}
DrawResult PrepareToDrawOnThread(LayerTreeHostImpl* host_impl,
LayerTreeHostImpl::FrameData* frame_data,
DrawResult draw_result) override {
const bool screen_space_transform_is_animating =
host_impl->active_tree()
->root_layer_for_testing()
->screen_space_transform_is_animating();
// Check that screen_space_transform_is_animating changes only once.
if (screen_space_transform_is_animating &&
prev_screen_space_transform_is_animating_)
EXPECT_FALSE(screen_space_transform_animation_stopped_);
if (!screen_space_transform_is_animating &&
prev_screen_space_transform_is_animating_) {
EXPECT_FALSE(screen_space_transform_animation_stopped_);
screen_space_transform_animation_stopped_ = true;
}
if (!screen_space_transform_is_animating &&
!prev_screen_space_transform_is_animating_)
EXPECT_TRUE(screen_space_transform_animation_stopped_);
prev_screen_space_transform_is_animating_ =
screen_space_transform_is_animating;
return draw_result;
}
void DrawLayersOnThread(LayerTreeHostImpl* host_impl) override {
if (host_impl->active_tree()->source_frame_number() >= 2)
EndTest();
}
void AfterTest() override {
EXPECT_TRUE(screen_space_transform_animation_stopped_);
}
bool prev_screen_space_transform_is_animating_;
bool screen_space_transform_animation_stopped_;
};
MULTI_THREAD_TEST_F(
LayerTreeHostAnimationTestSetPotentiallyAnimatingOnLacDestruction);
// Check that we invalidate property trees on AnimationPlayer::SetNeedsCommit.
class LayerTreeHostAnimationTestRebuildPropertyTreesOnAnimationSetNeedsCommit
: public LayerTreeHostAnimationTest {
public:
void SetupTree() override {
LayerTreeHostAnimationTest::SetupTree();
layer_ = FakePictureLayer::Create(&client_);
layer_->SetBounds(gfx::Size(4, 4));
client_.set_bounds(layer_->bounds());
layer_tree_host()->root_layer()->AddChild(layer_);
AttachPlayersToTimeline();
player_->AttachElement(layer_tree_host()->root_layer()->element_id());
player_child_->AttachElement(layer_->element_id());
}
void BeginTest() override { PostSetNeedsCommitToMainThread(); }
void DidCommit() override {
if (layer_tree_host()->source_frame_number() == 1 ||
layer_tree_host()->source_frame_number() == 2)
PostSetNeedsCommitToMainThread();
}
void UpdateLayerTreeHost() override {
if (layer_tree_host()->source_frame_number() == 1) {
EXPECT_FALSE(layer_tree_host()->property_trees()->needs_rebuild);
AddAnimatedTransformToPlayer(player_child_.get(), 1.0, 5, 5);
}
EXPECT_TRUE(layer_tree_host()->property_trees()->needs_rebuild);
}
void DrawLayersOnThread(LayerTreeHostImpl* host_impl) override {
if (host_impl->active_tree()->source_frame_number() >= 2)
EndTest();
}
void AfterTest() override {}
private:
scoped_refptr<Layer> layer_;
FakeContentLayerClient client_;
};
MULTI_THREAD_TEST_F(
LayerTreeHostAnimationTestRebuildPropertyTreesOnAnimationSetNeedsCommit);
} // namespace
} // namespace cc
| [
"changhyeok.bae@lge.com"
] | changhyeok.bae@lge.com |
2f7ba33be4399db715bf211cdec167122a38112d | 9829f83187b5d4b7631f0097fd6ad46be49ed9a6 | /xitkj2028.ino | e5a858782144fd531b69c09810b192235508b849 | [] | no_license | rizkirezaadam/arduino | 912500e1270ec2f01c180c2106b47e6cd15aac60 | 3ca4edd276817de79ab6eda1482e9ea7879191b3 | refs/heads/master | 2021-01-14T11:47:26.173724 | 2016-09-18T09:18:26 | 2016-09-18T09:18:26 | 68,507,271 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 904 | ino | /*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
Most Arduinos have an on-board LED you can control. On the Uno and
Leonardo, it is attached to digital pin 5. If you're unsure what
pin the on-board LED is connected to on your Arduino model, check
the documentation at http://www.arduino.cc
This example code is in the public domain.
modified 8 May 2014
by Scott Fitzgerald
*/
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin 5 as an output.
pinMode(5, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(5, HIGH); // turn the LED on (HIGH is the voltage level)
delay(3000); // wait for a second
digitalWrite(5, LOW); // turn the LED off by making the voltage LOW
delay(3000); // wait for a second
}
| [
"noreply@github.com"
] | rizkirezaadam.noreply@github.com |
b87bae8f4e6b9e66226b18a30791f763ad0c1f7a | 772d932a0e5f6849227a38cf4b154fdc21741c6b | /CPP_Joc_Windows_Android/SH_Client_Win_Cpp_Cmake/App/src/sh/scenarios/randDungeons_a_v1/gw/zoneCommon/gw/view/mainui/IMainInGameUIView.cpp | 1fc8994d3069d2b841b7f7791dbf504f0baeb8bf | [] | no_license | AdrianNostromo/CodeSamples | 1a7b30fb6874f2059b7d03951dfe529f2464a3c0 | a0307a4b896ba722dd520f49d74c0f08c0e0042c | refs/heads/main | 2023-02-16T04:18:32.176006 | 2021-01-11T17:47:45 | 2021-01-11T17:47:45 | 328,739,437 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 108 | cpp | #include "IMainInGameUIView.h"
using namespace randDungeons_a_v1;
int IMainInGameUIView::ID = GetNewID();
| [
"adriannostromo@gmail.com"
] | adriannostromo@gmail.com |
86b9dfeec95d825fa74b939503c7d8c70e456d7b | 3309f27ee7cb46537ce566c373d9ee27ee460858 | /Akshar Singh/0,1_knapsack.cpp | 57173d7ea982b1989d39efa6dec12ea4ee7fe79e | [] | no_license | manisha069/hacktoberfest | 3e0c6d07d12fb3cb9e1728e368b5d18475f1c0a6 | 1faf4e19989604266773738e45ae44012629fd7b | refs/heads/master | 2023-08-28T12:42:06.640114 | 2021-10-19T14:17:14 | 2021-10-19T14:17:14 | 418,954,980 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 625 | cpp | #include<bits/stdc++.h>
using namespace std;
int bwdp(int wt[],int val[],int maxw,int items){
int dp[100][100]={0};
for(int i=0;i<=items;i++){
for(int j=0;j<=maxw;j++){
if(i==0|j==0){
dp[i][j]=0;
}
else{
if(j<wt[i]){
dp[i][j]=dp[i-1][j];
}
else{
dp[i][j] = max(val[i]+dp[i-1][j-wt[i]],dp[i-1][j]);
}
}
}
}
return dp[items][maxw];
}
int main(){
int wt[]={1,3,5,5};
int val[] ={1,4,5,7};
cout<<bwdp(wt,val,7,4);
} | [
"b20147@students.iitmandi.ac.in"
] | b20147@students.iitmandi.ac.in |
a4a6afc39704ccfa57132b27433685f4135dcf47 | 2573e6f265ea2b926f63f53961aff625cc8c819b | /cppwamp/include/cppwamp/internal/session.ipp | f418b3394eaa08cfa97cfaaa2a0c3954939f8b68 | [
"BSL-1.0"
] | permissive | ecorm/cppwamp | 424f8d057a8b8ebea10c2e5a6e1494980f502850 | d07a8e86e17ce92bac2a4d395aad1b5bae406ae3 | refs/heads/master | 2023-09-01T01:50:27.434040 | 2022-09-01T04:59:05 | 2022-09-01T04:59:05 | 29,992,524 | 42 | 9 | BSL-1.0 | 2022-05-15T21:59:40 | 2015-01-28T22:52:41 | C++ | UTF-8 | C++ | false | false | 26,024 | ipp | /*------------------------------------------------------------------------------
Copyright Butterfly Energy Systems 2014-2015, 2022.
Distributed under the Boost Software License, Version 1.0.
http://www.boost.org/LICENSE_1_0.txt
------------------------------------------------------------------------------*/
#include "../session.hpp"
#include "../api.hpp"
#include "client.hpp"
namespace wamp
{
//------------------------------------------------------------------------------
/** @copydetails Session(Executor) */
//------------------------------------------------------------------------------
CPPWAMP_INLINE Session::Ptr Session::create(
Executor exec /**< Executor used for internal I/O operations and as
a fallback for user-provided handlers. */
)
{
return Ptr(new Session(std::move(exec)));
}
//------------------------------------------------------------------------------
/** @copydetails Session(const Executor&, FallbackExecutor) */
//------------------------------------------------------------------------------
CPPWAMP_INLINE Session::Ptr Session::create(
const Executor& exec, /**< Executor from which Session will extract
a strand for its internal I/O operations. */
FallbackExecutor fallbackExec /**< Fallback executor to use for
user-provided handlers. */
)
{
return Ptr(new Session(exec, std::move(fallbackExec)));
}
//------------------------------------------------------------------------------
/** @details
The provided executor serves as a fallback when asynchronous operation
handlers don't bind a specific executor (in lieu of using the system
executor as fallback.
From the given connector(s), session will extract an execution strand for
use with its internal I/O operations.
@post `this->state() == SessionState::disconnected`
@post `this->fallbackExecutor() == exec`
@return A shared pointer to the created session object. */
//------------------------------------------------------------------------------
CPPWAMP_INLINE Session::Ptr Session::create(
FallbackExecutor fallbackExec, /**< Fallback executor for
user-provided handlers. */
LegacyConnector connector /**< Connection details for the transport
to use. */
)
{
return Ptr(new Session(std::move(fallbackExec),
ConnectorList{std::move(connector)}));
}
//------------------------------------------------------------------------------
/** @copydetails Session::create(FallbackExecutor, LegacyConnector)
@pre `connectors.empty() == false`
@post `this->state() == SessionState::disconnected`
@return A shared pointer to the created Session object.
@throws error::Logic if `connectors.empty() == true` */
//------------------------------------------------------------------------------
CPPWAMP_INLINE Session::Ptr Session::create(
FallbackExecutor fallbackExec, /**< Fallback executor with which to execute
user-provided handlers. */
ConnectorList connectors /**< A list of connection details for
the transports to use. */
)
{
CPPWAMP_LOGIC_CHECK(!connectors.empty(), "Connector list is empty");
return Ptr(new Session(std::move(fallbackExec), std::move(connectors)));
}
//------------------------------------------------------------------------------
/** @details
Session will extract a strand from the given executor for use with its
internal I/O operations. The given executor also serves as fallback
for user-provided handlers.
@post `this->fallbackExecutor() == exec` */
//------------------------------------------------------------------------------
CPPWAMP_INLINE Session::Session(
Executor exec /**< Executor for internal I/O operations, as well as
fallback for user-provided handlers. */
)
: impl_(internal::Client::create(std::move(exec)))
{}
//------------------------------------------------------------------------------
/** @details
@post `this->fallbackExecutor() == exec` */
//------------------------------------------------------------------------------
CPPWAMP_INLINE Session::Session(
const Executor& exec, /**< Executor from which Session will extract
a strand for its internal I/O operations */
FallbackExecutor fallbackExec /**< Fallback executor to use for
user-provided handlers. */
)
: impl_(internal::Client::create(exec, std::move(fallbackExec)))
{}
//------------------------------------------------------------------------------
/** @details
Automatically invokes disconnect() on the session, which drops the
connection and cancels all pending asynchronous operations. */
//------------------------------------------------------------------------------
CPPWAMP_INLINE Session::~Session()
{
// CoroSession does not define a destructor, so ~Session does not need
// to be virtual.
if (impl_)
impl_->safeDisconnect();
}
//------------------------------------------------------------------------------
/** @details
The dictionary is structured as per `HELLO.Details.roles`, as desribed in
the ["Client: Role and Feature Announcement"][1] section of the advanced
WAMP specification.
[1]: https://wamp-proto.org/_static/gen/wamp_latest_ietf.html#rfc.section.7.1.1.1 */
//------------------------------------------------------------------------------
CPPWAMP_INLINE const Object& Session::roles()
{
return internal::Client::roles();
}
//------------------------------------------------------------------------------
CPPWAMP_INLINE const IoStrand& Session::strand() const
{
return impl_->strand();
}
//------------------------------------------------------------------------------
CPPWAMP_INLINE Session::FallbackExecutor Session::fallbackExecutor() const
{
return impl_->userExecutor();
}
//------------------------------------------------------------------------------
CPPWAMP_INLINE Session::FallbackExecutor Session::userExecutor() const
{
return impl_->userExecutor();
}
//------------------------------------------------------------------------------
/** @deprecated Use wamp::Session::fallbackExecutor instead. */
//------------------------------------------------------------------------------
CPPWAMP_INLINE Session::FallbackExecutor Session::userIosvc() const
{
return fallbackExecutor();
}
//------------------------------------------------------------------------------
CPPWAMP_INLINE SessionState Session::state() const
{
return impl_->state();
}
//------------------------------------------------------------------------------
/** @details
Log events are emitted in the following situations:
- Errors: Protocol violations, message deserialization errors, unsupported
features, invalid states, inability to perform operations,
conversion errors, or transport payload overflows.
- Warnings: Problems that do not prevent operations from proceeding.
- Traces: Transmitted and received WAMP messages presented in JSON format.
Log events are discarded when there is no log handler set.
Copies of the handler are made when they are dispatched. If the handler
needs to be stateful, or is non-copyable, then pass a stateless copyable
proxy instead.
@note No state change events are fired when the session object is
terminating.
@see Session::setLogLevel */
//------------------------------------------------------------------------------
CPPWAMP_INLINE void Session::setLogHandler(
LogHandler handler /**< Callable handler of type `<void (LogEntry)>`. */
)
{
impl_->setLogHandler(handler);
}
//------------------------------------------------------------------------------
/** @copydetails Session::setLogHandler(LogHandler) */
//------------------------------------------------------------------------------
CPPWAMP_INLINE void Session::setLogHandler(
ThreadSafe,
LogHandler handler /**< Callable handler of type `<void (LogEntry)>`. */
)
{
impl_->safeSetLogHandler(handler);
}
//------------------------------------------------------------------------------
/** @details
The default log level is LogLevel::warning if never set.
@note This method is thread-safe.
@see Session::setLogHandler */
//------------------------------------------------------------------------------
CPPWAMP_INLINE void Session::setLogLevel(LogLevel level)
{
impl_->setLogLevel(level);
}
//------------------------------------------------------------------------------
CPPWAMP_INLINE void Session::setWarningHandler(
LogStringHandler handler /**< Callable handler of type `<void (std::string)>`. */
)
{
impl_->setWarningHandler(handler);
}
//------------------------------------------------------------------------------
CPPWAMP_INLINE void Session::setWarningHandler(
ThreadSafe,
LogStringHandler handler /**< Callable handler of type `<void (std::string)>`. */
)
{
impl_->safeSetWarningHandler(handler);
}
//------------------------------------------------------------------------------
CPPWAMP_INLINE void Session::setTraceHandler(
LogStringHandler handler /**< Callable handler of type `<void (std::string)>`. */
)
{
impl_->setTraceHandler(handler);
}
//------------------------------------------------------------------------------
CPPWAMP_INLINE void Session::setTraceHandler(
ThreadSafe,
LogStringHandler handler /**< Callable handler of type `<void (std::string)>`. */
)
{
impl_->safeSetTraceHandler(handler);
}
//------------------------------------------------------------------------------
/** @details
Copies of the handler are made when they are dispatched. If the handler
needs to be stateful, or is non-copyable, then pass a stateless copyable
proxy instead.
@note No state change events are fired when the session object is
terminating. */
//------------------------------------------------------------------------------
CPPWAMP_INLINE void Session::setStateChangeHandler(
StateChangeHandler handler /**< Callable handler of type `<void (SessionState)>`. */
)
{
impl_->setStateChangeHandler(handler);
}
//------------------------------------------------------------------------------
/** @copydetails Session::setStateChangeHandler(StateChangeHandler) */
//------------------------------------------------------------------------------
CPPWAMP_INLINE void Session::setStateChangeHandler(
ThreadSafe,
StateChangeHandler handler /**< Callable handler of type `<void (SessionState)>`. */
)
{
impl_->safeSetStateChangeHandler(handler);
}
//------------------------------------------------------------------------------
/** @details
Copies of the handler are made when they are dispatched. If the handler
needs to be stateful, or is non-copyable, then pass a stateless copyable
proxy instead.
@note No challenge events are fired when the session object is
terminating. */
//------------------------------------------------------------------------------
CPPWAMP_INLINE void Session::setChallengeHandler(
ChallengeHandler handler /**< Callable handler of type `<void (Challenge)>`. */
)
{
impl_->setChallengeHandler(handler);
}
//------------------------------------------------------------------------------
/** @copydetails Session::setChallengeHandler(ChallengeHandler) */
//------------------------------------------------------------------------------
CPPWAMP_INLINE void Session::setChallengeHandler(
ThreadSafe,
ChallengeHandler handler /**< Callable handler of type `<void (Challenge)>`. */
)
{
impl_->safeSetChallengeHandler(handler);
}
//------------------------------------------------------------------------------
/** @returns `true` if the authentication was sent, a std::error_code otherwise.
@par Error Codes
- SessionErrc::payloadSizeExceeded if the resulting AUTHENTICATE message
exceeds the transport's limits.
- SessionErrc::invalidState if the session was not authenticating
during the attempt to authenticate (can be safely discarded). */
//------------------------------------------------------------------------------
CPPWAMP_INLINE ErrorOrDone Session::authenticate(
Authentication auth /**< Contains the authentication signature
and other options. */
)
{
return impl_->authenticate(std::move(auth));
}
//------------------------------------------------------------------------------
/** @copydetails Session::authenticate(Authentication)
@note It is safe to call `get()` on the returned `std::future` within the
same thread as the one used by Session::strand. */
//------------------------------------------------------------------------------
CPPWAMP_INLINE std::future<ErrorOrDone> Session::authenticate(
ThreadSafe,
Authentication auth /**< Contains the authentication signature
and other options. */
)
{
return impl_->safeAuthenticate(std::move(auth));
}
//------------------------------------------------------------------------------
/** @details
Aborts all pending asynchronous operations, invoking their handlers
with error codes indicating that cancellation has occured.
@post `this->state() == SessionState::disconnected` */
//------------------------------------------------------------------------------
CPPWAMP_INLINE void Session::disconnect()
{
impl_->disconnect();
}
//------------------------------------------------------------------------------
/** @copydetails Session::disconnect */
//------------------------------------------------------------------------------
CPPWAMP_INLINE void Session::disconnect(ThreadSafe)
{
impl_->safeDisconnect();
}
//------------------------------------------------------------------------------
/** @details
Terminates all pending asynchronous operations, which does **not**
invoke their handlers. This is useful when a client application needs
to shutdown abruptly and cannot enforce the lifetime of objects
accessed within the asynchronous operation handlers.
@note The warning, trace, challenge, and state change handlers will *not*
be fired again until the commencement of the next connect operation.
@post `this->state() == SessionState::disconnected` */
//------------------------------------------------------------------------------
CPPWAMP_INLINE void Session::terminate()
{
impl_->terminate();
}
//------------------------------------------------------------------------------
/** @copydetails Session::terminate */
//------------------------------------------------------------------------------
CPPWAMP_INLINE void Session::terminate(ThreadSafe)
{
impl_->safeTerminate();
}
//------------------------------------------------------------------------------
/** @copydetails Session::terminate */
//------------------------------------------------------------------------------
CPPWAMP_INLINE void Session::reset()
{
impl_->terminate();
}
//------------------------------------------------------------------------------
/** @copydetails Session::terminate */
//------------------------------------------------------------------------------
CPPWAMP_INLINE void Session::reset(ThreadSafe)
{
impl_->safeTerminate();
}
//------------------------------------------------------------------------------
/** @details
This function can be safely called during any session state. If the
subscription is no longer applicable, then this operation will
effectively do nothing.
@see Subscription, ScopedSubscription
@note Duplicate unsubscribes using the same Subscription object
are safely ignored.
@pre `bool(sub) == true`
@throws error::Logic if the given subscription is empty */
//------------------------------------------------------------------------------
CPPWAMP_INLINE void Session::unsubscribe(
Subscription sub /**< The subscription to unsubscribe from. */
)
{
CPPWAMP_LOGIC_CHECK(bool(sub), "The subscription is empty");
impl_->unsubscribe(sub);
}
//------------------------------------------------------------------------------
/** @copydetails Session::unsubscribe(Subscription) */
//------------------------------------------------------------------------------
CPPWAMP_INLINE void Session::unsubscribe(
ThreadSafe,
Subscription sub /**< The subscription to unsubscribe from. */
)
{
CPPWAMP_LOGIC_CHECK(bool(sub), "The subscription is empty");
impl_->safeUnsubscribe(sub);
}
//------------------------------------------------------------------------------
/** @returns `true` if the authentication was sent, a std::error_code otherwise.
@par Error Codes
- SessionErrc::payloadSizeExceeded if the resulting PUBLISH message exceeds
the transport's limits.
- SessionErrc::invalidState if the session was not established
during the attempt to publish (can be safely discarded). */
//------------------------------------------------------------------------------
CPPWAMP_INLINE ErrorOrDone Session::publish(
Pub pub /**< The publication to publish. */
)
{
return impl_->publish(std::move(pub));
}
//------------------------------------------------------------------------------
/** @copydetails Session::publish(Pub pub)
@note It is safe to call `get()` on the returned `std::future` within the
same thread as the one used by Session::strand. */
//------------------------------------------------------------------------------
CPPWAMP_INLINE std::future<ErrorOrDone> Session::publish(
ThreadSafe,
Pub pub /**< The publication to publish. */
)
{
return impl_->safePublish(std::move(pub));
}
//------------------------------------------------------------------------------
/** @details
This function can be safely called during any session state. If the
registration is no longer applicable, then this operation will
effectively do nothing.
@see Registration, ScopedRegistration
@note Duplicate unregistrations using the same Registration handle
are safely ignored.
@pre `bool(reg) == true`
@throws error::Logic if the given registration is empty */
//------------------------------------------------------------------------------
CPPWAMP_INLINE void Session::unregister(
Registration reg /**< The RPC registration to unregister. */
)
{
CPPWAMP_LOGIC_CHECK(bool(reg), "The registration is empty");
impl_->unregister(reg);
}
//------------------------------------------------------------------------------
/** @copydetails Session::unregister(Registration) */
//------------------------------------------------------------------------------
CPPWAMP_INLINE void Session::unregister(
ThreadSafe,
Registration reg /**< The RPC registration to unregister. */
)
{
CPPWAMP_LOGIC_CHECK(bool(reg), "The registration is empty");
impl_->safeUnregister(reg);
}
//------------------------------------------------------------------------------
/** @returns `true` or `false` depending if a pending call matching the given
chit was found.
@par Error Codes
- SessionErrc::invalidState if the session was not established
during the attempt to cancel (can be safely discarded). */
//------------------------------------------------------------------------------
CPPWAMP_INLINE ErrorOrDone Session::cancel(
CallChit chit /**< Contains the request ID of the call to cancel. */
)
{
return cancel(chit, chit.cancelMode());
}
//------------------------------------------------------------------------------
/** @copydetails Session::cancel(CallChit)
@note It is safe to call `get()` on the returned `std::future` within the
same thread as the one used by Session::strand. */
//------------------------------------------------------------------------------
CPPWAMP_INLINE std::future<ErrorOrDone> Session::cancel(
ThreadSafe,
CallChit chit /**< Contains the request ID of the call to cancel. */
)
{
return cancel(threadSafe, chit, chit.cancelMode());
}
//------------------------------------------------------------------------------
/** @copydetails Session::cancel(CallChit) */
//------------------------------------------------------------------------------
CPPWAMP_INLINE ErrorOrDone Session::cancel(
CallChit chit, /**< Contains the request ID of the call to cancel. */
CallCancelMode mode /**< The mode with which to cancel the call. */
)
{
return impl_->cancelCall(chit.requestId(), mode);
}
//------------------------------------------------------------------------------
/** @copydetails Session::cancel(ThreadSafe, CallChit) */
//------------------------------------------------------------------------------
CPPWAMP_INLINE std::future<ErrorOrDone> Session::cancel(
ThreadSafe,
CallChit chit, /**< Contains the request ID of the call to cancel. */
CallCancelMode mode /**< The mode with which to cancel the call. */
)
{
return impl_->safeCancelCall(chit.requestId(), mode);
}
//------------------------------------------------------------------------------
/** @copydetails Session::cancel(CallChit) */
//------------------------------------------------------------------------------
CPPWAMP_INLINE void Session::cancel(
CallCancellation cancellation /**< Contains the request ID
and other options. */
)
{
(void)impl_->cancelCall(cancellation.requestId(), cancellation.mode());
}
//------------------------------------------------------------------------------
/** @copydetails Session::cancel(CallChit, CallCancelMode) */
//------------------------------------------------------------------------------
CPPWAMP_INLINE void Session::cancel(
ThreadSafe,
CallCancellation cancellation /**< Contains the request ID
and other options. */
)
{
impl_->safeCancelCall(cancellation.requestId(), cancellation.mode());
}
//------------------------------------------------------------------------------
CPPWAMP_INLINE Session::Session(FallbackExecutor fallbackExec,
ConnectorList connectors)
: legacyConnectors_(std::move(connectors)),
impl_(internal::Client::create(
boost::asio::make_strand(legacyConnectors_.at(0).executor()),
std::move(fallbackExec)))
{}
//------------------------------------------------------------------------------
CPPWAMP_INLINE void Session::doConnect(ConnectionWishList&& w, CompletionHandler<size_t>&& f)
{impl_->connect(std::move(w), std::move(f));}
CPPWAMP_INLINE void Session::safeConnect(ConnectionWishList&& w, CompletionHandler<size_t>&& f)
{impl_->safeConnect(std::move(w), std::move(f));}
CPPWAMP_INLINE void Session::doJoin(Realm&& r, CompletionHandler<SessionInfo>&& f)
{impl_->join(std::move(r), std::move(f));}
CPPWAMP_INLINE void Session::safeJoin(Realm&& r, CompletionHandler<SessionInfo>&& f)
{impl_->safeJoin(std::move(r), std::move(f));}
CPPWAMP_INLINE void Session::doLeave(Reason&& r, CompletionHandler<Reason>&& f)
{impl_->leave(std::move(r), std::move(f));}
CPPWAMP_INLINE void Session::safeLeave(Reason&& r, CompletionHandler<Reason>&& f)
{impl_->safeLeave(std::move(r), std::move(f));}
CPPWAMP_INLINE void Session::doSubscribe(Topic&& t, EventSlot&& s,
CompletionHandler<Subscription>&& f)
{impl_->subscribe(std::move(t), std::move(s), std::move(f));}
CPPWAMP_INLINE void Session::safeSubscribe(Topic&& t, EventSlot&& s,
CompletionHandler<Subscription>&& f)
{impl_->safeSubscribe(std::move(t), std::move(s), std::move(f));}
CPPWAMP_INLINE void Session::doUnsubscribe(const Subscription& s, CompletionHandler<bool>&& f)
{impl_->unsubscribe(std::move(s), std::move(f));}
CPPWAMP_INLINE void Session::safeUnsubscribe(const Subscription& s, CompletionHandler<bool>&& f)
{impl_->safeUnsubscribe(std::move(s), std::move(f));}
CPPWAMP_INLINE void Session::doPublish(Pub&& p, CompletionHandler<PublicationId>&& f)
{impl_->publish(std::move(p), std::move(f));}
CPPWAMP_INLINE void Session::safePublish(Pub&& p, CompletionHandler<PublicationId>&& f)
{impl_->safePublish(std::move(p), std::move(f));}
CPPWAMP_INLINE void Session::doEnroll(Procedure&& p, CallSlot&& c, InterruptSlot&& i,
CompletionHandler<Registration>&& f)
{impl_->enroll(std::move(p), std::move(c), std::move(i), std::move(f));}
CPPWAMP_INLINE void Session::safeEnroll(Procedure&& p, CallSlot&& c, InterruptSlot&& i,
CompletionHandler<Registration>&& f)
{impl_->safeEnroll(std::move(p), std::move(c), std::move(i), std::move(f));}
CPPWAMP_INLINE void Session::doUnregister(const Registration& r, CompletionHandler<bool>&& f)
{impl_->unregister(std::move(r), std::move(f));}
CPPWAMP_INLINE void Session::safeUnregister(const Registration& r, CompletionHandler<bool>&& f)
{impl_->safeUnregister(r, std::move(f));}
CPPWAMP_INLINE void Session::doOneShotCall(Rpc&& r, CallChit* c, CompletionHandler<Result>&& f)
{impl_->oneShotCall(std::move(r), c, std::move(f));}
CPPWAMP_INLINE void Session::safeOneShotCall(Rpc&& r, CallChit* c, CompletionHandler<Result>&& f)
{impl_->safeOneShotCall(std::move(r), c, std::move(f));}
CPPWAMP_INLINE void Session::doOngoingCall(Rpc&& r, CallChit* c, OngoingCallHandler&& f)
{impl_->ongoingCall(std::move(r), c, std::move(f));}
CPPWAMP_INLINE void Session::safeOngoingCall(Rpc&& r, CallChit* c, OngoingCallHandler&& f)
{impl_->safeOngoingCall(std::move(r), c, std::move(f));}
} // namespace wamp
| [
"ecorm@users.noreply.github.com"
] | ecorm@users.noreply.github.com |
2842212c6c5089ad743ce841534bfeaff4275b3c | 6753dba9d4b225770f5e641cf38c2998f19d2f73 | /Source1/Utility/Serialization/LSMemorySerializer.h | b516743c0307243ce9ffb3bfb6c4657807320da6 | [] | no_license | iTShun/Vision | b9ea51033a97518b5befd4b98f1f3d376a55d10c | 2ed766060c52736e9386ff249f3a18c0b698d81a | refs/heads/master | 2020-03-24T06:22:06.426801 | 2019-01-18T13:30:39 | 2019-01-18T13:30:39 | 142,525,122 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,842 | h | #pragma once
#include "Prerequisites/LSPrerequisitesUtil.h"
namespace ls
{
struct SerializationContext;
/** @addtogroup Serialization
* @{
*/
/** Encodes/decodes an IReflectable object from/to memory. */
class LS_UTILITY_EXPORT MemorySerializer
{
struct BufferPiece
{
UINT8* buffer;
UINT32 size;
};
public:
MemorySerializer() = default;
~MemorySerializer() = default;
/**
* Parses the provided object, serializes all of its data as specified by its RTTIType and returns the data in the
* form of raw memory.
*
* @param[in] object Object to encode.
* @param[in] bytesWritten Output value containing the total number of bytes it took to encode the object.
* @param[in] allocator Determines how is memory allocated. If not specified the default allocator is used.
* @param[in] shallow Determines how to handle referenced objects. If true then references will not be
* encoded and will be set to null. If false then references will be encoded as well
* and restored upon decoding.
* @param[in] context Optional object that will be passed along to all serialized objects through
* their serialization callbacks. Can be used for controlling serialization,
* maintaining state or sharing information between objects during
* serialization.
*
* @return A buffer containing the encoded object. It is up to the user to release the buffer
* memory when no longer needed.
*/
UINT8* encode(IReflectable* object, UINT32& bytesWritten, std::function<void*(UINT32)> allocator = nullptr,
bool shallow = false, SerializationContext* context = nullptr);
/**
* Deserializes an IReflectable object by reading the binary data from the provided memory location.
*
* @param[in] buffer Previously allocated buffer to store the data in.
* @param[in] bufferSize Size of the @p buffer in bytes.
* @param[in] context Optional object that will be passed along to all deserialized objects through
* their deserialization callbacks. Can be used for controlling deserialization,
* maintaining state or sharing information between objects during
* deserialization.
*/
SPtr<IReflectable> decode(UINT8* buffer, UINT32 bufferSize, SerializationContext* context = nullptr);
private:
Vector<BufferPiece> mBufferPieces;
/** Called by the binary serializer whenever the buffer gets full. */
UINT8* flushBuffer(UINT8* bufferStart, UINT32 bytesWritten, UINT32& newBufferSize);
/************************************************************************/
/* CONSTANTS */
/************************************************************************/
private:
static constexpr const UINT32 WRITE_BUFFER_SIZE = 16384;
};
/** @} */
}
| [
"289588408@qq.com"
] | 289588408@qq.com |
4e8628b4edb98424681ce01255f1569f05db4712 | fc70282a7bd0251e0db16afba771b565115a1774 | /beginner/basic2.cpp | ee5b66930d6e96002275a64c251b57a3b858d971 | [] | no_license | brunoricardojava/Maratona | 64dc8ab39074d81fa8d85ebcece113b5d93f1ecd | 8aa538155e7f66e939cda8cce49a0113cf9045db | refs/heads/master | 2020-12-25T06:12:59.609975 | 2016-07-07T19:09:45 | 2016-07-07T19:09:45 | 62,831,668 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 331 | cpp | #include <iostream>
#include <iomanip>
using namespace std;
int main() {
/**
* Escreva a sua solução aqui
* Code your solution here
* Escriba su solución aquí
*/
double R;
cin >> R;
cout << fixed;
cout << "A=" << setprecision(4) << (3.14159*R*R) << '\n';
return 0;
}
| [
"brunoricardojava@gmail.com"
] | brunoricardojava@gmail.com |
8e785d2d0721bac054f5ebf5511239d5b0fe0294 | 5deef214a2ca0b10472431b577dd933e23f19fc5 | /duilib/DuiLib/UICommonControls.cpp | 91e3b476846d1342679a2507173c4878d6482237 | [
"BSD-2-Clause"
] | permissive | zephyrer/my-duilibex-soc | ea03582b8c10174eae9c54d3c25a70893e2f7241 | 319dc238ce1cc0d3ba267b859c4d7b898617027b | refs/heads/master | 2020-06-06T09:18:09.734253 | 2012-06-10T07:11:16 | 2012-06-10T07:11:16 | 40,067,659 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 97,263 | cpp | #include "StdAfx.h"
namespace DuiLib {
/////////////////////////////////////////////////////////////////////////////////////
//
//
CLabelUI::CLabelUI() : m_uTextStyle(DT_VCENTER), m_dwTextColor(0),
m_dwDisabledTextColor(0), m_iFont(-1), m_bShowHtml(false)
{
::ZeroMemory(&m_rcTextPadding, sizeof(m_rcTextPadding));
}
LPCTSTR CLabelUI::GetClass() const
{
return _T("LabelUI");
}
LPVOID CLabelUI::GetInterface(LPCTSTR pstrName)
{
if( _tcscmp(pstrName, _T("Label")) == 0 ) return static_cast<CLabelUI*>(this);
return CControlUI::GetInterface(pstrName);
}
void CLabelUI::SetTextStyle(UINT uStyle)
{
m_uTextStyle = uStyle;
Invalidate();
}
UINT CLabelUI::GetTextStyle() const
{
return m_uTextStyle;
}
void CLabelUI::SetTextColor(DWORD dwTextColor)
{
m_dwTextColor = dwTextColor;
Invalidate();
}
DWORD CLabelUI::GetTextColor() const
{
return m_dwTextColor;
}
void CLabelUI::SetDisabledTextColor(DWORD dwTextColor)
{
m_dwDisabledTextColor = dwTextColor;
Invalidate();
}
DWORD CLabelUI::GetDisabledTextColor() const
{
return m_dwDisabledTextColor;
}
void CLabelUI::SetFont(int index)
{
m_iFont = index;
Invalidate();
}
int CLabelUI::GetFont() const
{
return m_iFont;
}
RECT CLabelUI::GetTextPadding() const
{
return m_rcTextPadding;
}
void CLabelUI::SetTextPadding(RECT rc)
{
m_rcTextPadding = rc;
Invalidate();
}
bool CLabelUI::IsShowHtml()
{
return m_bShowHtml;
}
void CLabelUI::SetShowHtml(bool bShowHtml)
{
if( m_bShowHtml == bShowHtml ) return;
m_bShowHtml = bShowHtml;
Invalidate();
}
SIZE CLabelUI::EstimateSize(SIZE szAvailable)
{
if( m_cxyFixed.cy == 0 ) return CSize(m_cxyFixed.cx, m_pManager->GetFontInfo(GetFont())->tm.tmHeight + 4);
return CControlUI::EstimateSize(szAvailable);
}
void CLabelUI::DoEvent(TEventUI& event)
{
if( event.Type == UIEVENT_SETFOCUS )
{
m_bFocused = true;
return;
}
if( event.Type == UIEVENT_KILLFOCUS )
{
m_bFocused = false;
return;
}
if( event.Type == UIEVENT_MOUSEENTER )
{
return;
}
if( event.Type == UIEVENT_MOUSELEAVE )
{
return;
}
CControlUI::DoEvent(event);
}
void CLabelUI::SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue)
{
if( _tcscmp(pstrName, _T("align")) == 0 ) {
if( _tcsstr(pstrValue, _T("left")) != NULL ) {
m_uTextStyle &= ~(DT_CENTER | DT_RIGHT);
m_uTextStyle |= DT_LEFT;
}
if( _tcsstr(pstrValue, _T("center")) != NULL ) {
m_uTextStyle &= ~(DT_LEFT | DT_RIGHT);
m_uTextStyle |= DT_CENTER;
}
if( _tcsstr(pstrValue, _T("right")) != NULL ) {
m_uTextStyle &= ~(DT_LEFT | DT_CENTER);
m_uTextStyle |= DT_RIGHT;
}
if( _tcsstr(pstrValue, _T("top")) != NULL ) {
m_uTextStyle &= ~(DT_BOTTOM | DT_VCENTER);
m_uTextStyle |= DT_TOP;
}
if( _tcsstr(pstrValue, _T("vcenter")) != NULL ) {
m_uTextStyle &= ~(DT_TOP | DT_BOTTOM);
m_uTextStyle |= DT_VCENTER;
}
if( _tcsstr(pstrValue, _T("bottom")) != NULL ) {
m_uTextStyle &= ~(DT_TOP | DT_VCENTER);
m_uTextStyle |= DT_BOTTOM;
}
}
else if( _tcscmp(pstrName, _T("endellipsis")) == 0 ) {
if( _tcscmp(pstrValue, _T("true")) == 0 ) m_uTextStyle |= DT_END_ELLIPSIS;
else m_uTextStyle &= ~DT_END_ELLIPSIS;
}
else if( _tcscmp(pstrName, _T("font")) == 0 ) SetFont(_ttoi(pstrValue));
else if( _tcscmp(pstrName, _T("textcolor")) == 0 ) {
if( *pstrValue == _T('#')) pstrValue = ::CharNext(pstrValue);
LPTSTR pstr = NULL;
DWORD clrColor = _tcstoul(pstrValue, &pstr, 16);
SetTextColor(clrColor);
}
else if( _tcscmp(pstrName, _T("disabledtextcolor")) == 0 ) {
if( *pstrValue == _T('#')) pstrValue = ::CharNext(pstrValue);
LPTSTR pstr = NULL;
DWORD clrColor = _tcstoul(pstrValue, &pstr, 16);
SetDisabledTextColor(clrColor);
}
else if( _tcscmp(pstrName, _T("textpadding")) == 0 ) {
RECT rcTextPadding = { 0 };
LPTSTR pstr = NULL;
rcTextPadding.left = _tcstol(pstrValue, &pstr, 10); ASSERT(pstr);
rcTextPadding.top = _tcstol(pstr + 1, &pstr, 10); ASSERT(pstr);
rcTextPadding.right = _tcstol(pstr + 1, &pstr, 10); ASSERT(pstr);
rcTextPadding.bottom = _tcstol(pstr + 1, &pstr, 10); ASSERT(pstr);
SetTextPadding(rcTextPadding);
}
else if( _tcscmp(pstrName, _T("showhtml")) == 0 ) SetShowHtml(_tcscmp(pstrValue, _T("true")) == 0);
else CControlUI::SetAttribute(pstrName, pstrValue);
}
void CLabelUI::PaintText(HDC hDC)
{
if( m_dwTextColor == 0 ) m_dwTextColor = m_pManager->GetDefaultFontColor();
if( m_dwDisabledTextColor == 0 ) m_dwDisabledTextColor = m_pManager->GetDefaultDisabledColor();
if( m_sText.IsEmpty() ) return;
int nLinks = 0;
RECT rc = m_rcItem;
rc.left += m_rcTextPadding.left;
rc.right -= m_rcTextPadding.right;
rc.top += m_rcTextPadding.top;
rc.bottom -= m_rcTextPadding.bottom;
if( IsEnabled() ) {
if( m_bShowHtml )
CRenderEngine::DrawHtmlText(hDC, m_pManager, rc, m_sText, m_dwTextColor, \
NULL, NULL, nLinks, DT_SINGLELINE | m_uTextStyle);
else
CRenderEngine::DrawText(hDC, m_pManager, rc, m_sText, m_dwTextColor, \
m_iFont, DT_SINGLELINE | m_uTextStyle);
}
else {
if( m_bShowHtml )
CRenderEngine::DrawHtmlText(hDC, m_pManager, rc, m_sText, m_dwDisabledTextColor, \
NULL, NULL, nLinks, DT_SINGLELINE | m_uTextStyle);
else
CRenderEngine::DrawText(hDC, m_pManager, rc, m_sText, m_dwDisabledTextColor, \
m_iFont, DT_SINGLELINE | m_uTextStyle);
}
}
/////////////////////////////////////////////////////////////////////////////////////
//
//
CButtonUI::CButtonUI() : m_uButtonState(0), m_dwHotTextColor(0), m_dwPushedTextColor(0), m_dwFocusedTextColor(0)
{
m_uTextStyle = DT_SINGLELINE | DT_VCENTER | DT_CENTER;
}
LPCTSTR CButtonUI::GetClass() const
{
return _T("ButtonUI");
}
LPVOID CButtonUI::GetInterface(LPCTSTR pstrName)
{
if( _tcscmp(pstrName, _T("Button")) == 0 ) return static_cast<CButtonUI*>(this);
return CLabelUI::GetInterface(pstrName);
}
UINT CButtonUI::GetControlFlags() const
{
return (IsKeyboardEnabled() ? UIFLAG_TABSTOP : 0) | (IsEnabled() ? UIFLAG_SETCURSOR : 0);
}
void CButtonUI::DoEvent(TEventUI& event)
{
if( !IsMouseEnabled() && event.Type > UIEVENT__MOUSEBEGIN && event.Type < UIEVENT__MOUSEEND ) {
if( m_pParent != NULL ) m_pParent->DoEvent(event);
else CLabelUI::DoEvent(event);
return;
}
if( event.Type == UIEVENT_SETFOCUS )
{
Invalidate();
}
if( event.Type == UIEVENT_KILLFOCUS )
{
Invalidate();
}
if( event.Type == UIEVENT_KEYDOWN )
{
if (IsKeyboardEnabled()) {
if( event.chKey == VK_SPACE || event.chKey == VK_RETURN ) {
Activate();
return;
}
}
}
if( event.Type == UIEVENT_BUTTONDOWN || event.Type == UIEVENT_DBLCLICK )
{
if( ::PtInRect(&m_rcItem, event.ptMouse) && IsEnabled() ) {
m_uButtonState |= UISTATE_PUSHED | UISTATE_CAPTURED;
Invalidate();
}
//wcy
if(m_pParent)
m_pParent->DoEvent(event);
return;
}
if( event.Type == UIEVENT_MOUSEMOVE )
{
if( (m_uButtonState & UISTATE_CAPTURED) != 0 ) {
if( ::PtInRect(&m_rcItem, event.ptMouse) ) m_uButtonState |= UISTATE_PUSHED;
else m_uButtonState &= ~UISTATE_PUSHED;
Invalidate();
}
return;
}
if( event.Type == UIEVENT_BUTTONUP )
{
//wcy
if(m_pParent)
m_pParent->DoEvent(event);
//end
if( (m_uButtonState & UISTATE_CAPTURED) != 0 ) {
if( ::PtInRect(&m_rcItem, event.ptMouse) ) Activate();
m_uButtonState &= ~(UISTATE_PUSHED | UISTATE_CAPTURED);
Invalidate();
}
return;
}
if( event.Type == UIEVENT_CONTEXTMENU )
{
if( IsContextMenuUsed() ) {
m_pManager->SendNotify(this, _T("menu"), event.wParam, event.lParam);
}
return;
}
if( event.Type == UIEVENT_MOUSEENTER )
{
if( IsEnabled() ) {
m_uButtonState |= UISTATE_HOT;
Invalidate();
}
return;
}
if( event.Type == UIEVENT_MOUSELEAVE )
{
if( IsEnabled() ) {
m_uButtonState &= ~UISTATE_HOT;
Invalidate();
}
return;
}
if( event.Type == UIEVENT_SETCURSOR ) {
::SetCursor(::LoadCursor(NULL, MAKEINTRESOURCE(IDC_HAND)));
return;
}
CLabelUI::DoEvent(event);
}
bool CButtonUI::Activate()
{
if( !CControlUI::Activate() ) return false;
if( m_pManager != NULL ) m_pManager->SendNotify(this, _T("click"));
return true;
}
void CButtonUI::SetEnabled(bool bEnable)
{
CControlUI::SetEnabled(bEnable);
if( !IsEnabled() ) {
m_uButtonState = 0;
}
}
void CButtonUI::SetHotTextColor(DWORD dwColor)
{
m_dwHotTextColor = dwColor;
}
DWORD CButtonUI::GetHotTextColor() const
{
return m_dwHotTextColor;
}
void CButtonUI::SetPushedTextColor(DWORD dwColor)
{
m_dwPushedTextColor = dwColor;
}
DWORD CButtonUI::GetPushedTextColor() const
{
return m_dwPushedTextColor;
}
void CButtonUI::SetFocusedTextColor(DWORD dwColor)
{
m_dwFocusedTextColor = dwColor;
}
DWORD CButtonUI::GetFocusedTextColor() const
{
return m_dwFocusedTextColor;
}
LPCTSTR CButtonUI::GetNormalImage()
{
return m_sNormalImage;
}
void CButtonUI::SetNormalImage(LPCTSTR pStrImage)
{
m_sNormalImage = pStrImage;
Invalidate();
}
LPCTSTR CButtonUI::GetHotImage()
{
return m_sHotImage;
}
void CButtonUI::SetHotImage(LPCTSTR pStrImage)
{
m_sHotImage = pStrImage;
Invalidate();
}
LPCTSTR CButtonUI::GetPushedImage()
{
return m_sPushedImage;
}
void CButtonUI::SetPushedImage(LPCTSTR pStrImage)
{
m_sPushedImage = pStrImage;
Invalidate();
}
LPCTSTR CButtonUI::GetFocusedImage()
{
return m_sFocusedImage;
}
void CButtonUI::SetFocusedImage(LPCTSTR pStrImage)
{
m_sFocusedImage = pStrImage;
Invalidate();
}
LPCTSTR CButtonUI::GetDisabledImage()
{
return m_sDisabledImage;
}
void CButtonUI::SetDisabledImage(LPCTSTR pStrImage)
{
m_sDisabledImage = pStrImage;
Invalidate();
}
SIZE CButtonUI::EstimateSize(SIZE szAvailable)
{
if( m_cxyFixed.cy == 0 ) return CSize(m_cxyFixed.cx, m_pManager->GetFontInfo(GetFont())->tm.tmHeight + 8);
return CControlUI::EstimateSize(szAvailable);
}
void CButtonUI::SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue)
{
if( _tcscmp(pstrName, _T("normalimage")) == 0 ) SetNormalImage(pstrValue);
else if( _tcscmp(pstrName, _T("hotimage")) == 0 ) SetHotImage(pstrValue);
else if( _tcscmp(pstrName, _T("pushedimage")) == 0 ) SetPushedImage(pstrValue);
else if( _tcscmp(pstrName, _T("focusedimage")) == 0 ) SetFocusedImage(pstrValue);
else if( _tcscmp(pstrName, _T("disabledimage")) == 0 ) SetDisabledImage(pstrValue);
else if( _tcscmp(pstrName, _T("hottextcolor")) == 0 ) {
if( *pstrValue == _T('#')) pstrValue = ::CharNext(pstrValue);
LPTSTR pstr = NULL;
DWORD clrColor = _tcstoul(pstrValue, &pstr, 16);
SetHotTextColor(clrColor);
}
else if( _tcscmp(pstrName, _T("pushedtextcolor")) == 0 ) {
if( *pstrValue == _T('#')) pstrValue = ::CharNext(pstrValue);
LPTSTR pstr = NULL;
DWORD clrColor = _tcstoul(pstrValue, &pstr, 16);
SetPushedTextColor(clrColor);
}
else if( _tcscmp(pstrName, _T("focusedtextcolor")) == 0 ) {
if( *pstrValue == _T('#')) pstrValue = ::CharNext(pstrValue);
LPTSTR pstr = NULL;
DWORD clrColor = _tcstoul(pstrValue, &pstr, 16);
SetFocusedTextColor(clrColor);
}
else CLabelUI::SetAttribute(pstrName, pstrValue);
}
void CButtonUI::PaintText(HDC hDC)
{
if( IsFocused() ) m_uButtonState |= UISTATE_FOCUSED;
else m_uButtonState &= ~ UISTATE_FOCUSED;
if( !IsEnabled() ) m_uButtonState |= UISTATE_DISABLED;
else m_uButtonState &= ~ UISTATE_DISABLED;
if( m_dwTextColor == 0 ) m_dwTextColor = m_pManager->GetDefaultFontColor();
if( m_dwDisabledTextColor == 0 ) m_dwDisabledTextColor = m_pManager->GetDefaultDisabledColor();
if( m_sText.IsEmpty() ) return;
int nLinks = 0;
RECT rc = m_rcItem;
rc.left += m_rcTextPadding.left;
rc.right -= m_rcTextPadding.right;
rc.top += m_rcTextPadding.top;
rc.bottom -= m_rcTextPadding.bottom;
DWORD clrColor = IsEnabled()?m_dwTextColor:m_dwDisabledTextColor;
if( ((m_uButtonState & UISTATE_PUSHED) != 0) && (GetPushedTextColor() != 0) )
clrColor = GetPushedTextColor();
else if( ((m_uButtonState & UISTATE_HOT) != 0) && (GetHotTextColor() != 0) )
clrColor = GetHotTextColor();
else if( ((m_uButtonState & UISTATE_FOCUSED) != 0) && (GetFocusedTextColor() != 0) )
clrColor = GetFocusedTextColor();
if( m_bShowHtml )
CRenderEngine::DrawHtmlText(hDC, m_pManager, rc, m_sText, clrColor, \
NULL, NULL, nLinks, m_uTextStyle);
else
CRenderEngine::DrawText(hDC, m_pManager, rc, m_sText, clrColor, \
m_iFont, m_uTextStyle);
}
void CButtonUI::PaintStatusImage(HDC hDC)
{
if( IsFocused() ) m_uButtonState |= UISTATE_FOCUSED;
else m_uButtonState &= ~ UISTATE_FOCUSED;
if( !IsEnabled() ) m_uButtonState |= UISTATE_DISABLED;
else m_uButtonState &= ~ UISTATE_DISABLED;
if( (m_uButtonState & UISTATE_DISABLED) != 0 ) {
if( !m_sDisabledImage.IsEmpty() ) {
if( !DrawImage(hDC, (LPCTSTR)m_sDisabledImage) ) m_sDisabledImage.Empty();
else return;
}
}
else if( (m_uButtonState & UISTATE_PUSHED) != 0 ) {
if( !m_sPushedImage.IsEmpty() ) {
if( !DrawImage(hDC, (LPCTSTR)m_sPushedImage) ) m_sPushedImage.Empty();
else return;
}
}
else if( (m_uButtonState & UISTATE_HOT) != 0 ) {
if( !m_sHotImage.IsEmpty() ) {
if( !DrawImage(hDC, (LPCTSTR)m_sHotImage) ) m_sHotImage.Empty();
else return;
}
}
else if( (m_uButtonState & UISTATE_FOCUSED) != 0 ) {
if( !m_sFocusedImage.IsEmpty() ) {
if( !DrawImage(hDC, (LPCTSTR)m_sFocusedImage) ) m_sFocusedImage.Empty();
else return;
}
}
if( !m_sNormalImage.IsEmpty() ) {
if( !DrawImage(hDC, (LPCTSTR)m_sNormalImage) ) m_sNormalImage.Empty();
else return;
}
}
/////////////////////////////////////////////////////////////////////////////////////
//
//
COptionUI::COptionUI() : m_bSelected(false), m_dwSelectedTextColor(0)
{
}
COptionUI::~COptionUI()
{
if( !m_sGroupName.IsEmpty() && m_pManager ) m_pManager->RemoveOptionGroup(m_sGroupName, this);
}
LPCTSTR COptionUI::GetClass() const
{
return _T("OptionUI");
}
LPVOID COptionUI::GetInterface(LPCTSTR pstrName)
{
if( _tcscmp(pstrName, _T("Option")) == 0 ) return static_cast<COptionUI*>(this);
return CButtonUI::GetInterface(pstrName);
}
void COptionUI::SetManager(CPaintManagerUI* pManager, CControlUI* pParent, bool bInit)
{
CControlUI::SetManager(pManager, pParent, bInit);
if( bInit && !m_sGroupName.IsEmpty() ) {
if (m_pManager) m_pManager->AddOptionGroup(m_sGroupName, this);
}
}
LPCTSTR COptionUI::GetGroup() const
{
return m_sGroupName;
}
void COptionUI::SetGroup(LPCTSTR pStrGroupName)
{
if( pStrGroupName == NULL ) {
if( m_sGroupName.IsEmpty() ) return;
m_sGroupName.Empty();
}
else {
if( m_sGroupName == pStrGroupName ) return;
if (!m_sGroupName.IsEmpty() && m_pManager) m_pManager->RemoveOptionGroup(m_sGroupName, this);
m_sGroupName = pStrGroupName;
}
if( !m_sGroupName.IsEmpty() ) {
if (m_pManager) m_pManager->AddOptionGroup(m_sGroupName, this);
}
else {
if (m_pManager) m_pManager->RemoveOptionGroup(m_sGroupName, this);
}
Selected(m_bSelected);
}
bool COptionUI::IsSelected() const
{
return m_bSelected;
}
void COptionUI::Selected(bool bSelected)
{
if( m_bSelected == bSelected ) return;
m_bSelected = bSelected;
if( m_bSelected ) m_uButtonState |= UISTATE_SELECTED;
else m_uButtonState &= ~UISTATE_SELECTED;
if( m_pManager != NULL ) {
if( !m_sGroupName.IsEmpty() ) {
if( m_bSelected ) {
CStdPtrArray* aOptionGroup = m_pManager->GetOptionGroup(m_sGroupName);
for( int i = 0; i < aOptionGroup->GetSize(); i++ ) {
COptionUI* pControl = static_cast<COptionUI*>(aOptionGroup->GetAt(i));
if( pControl != this ) {
pControl->Selected(false);
}
}
m_pManager->SendNotify(this, _T("selectchanged"));
}
}
else {
m_pManager->SendNotify(this, _T("selectchanged"));
}
}
Invalidate();
}
bool COptionUI::Activate()
{
if( !CButtonUI::Activate() ) return false;
if( !m_sGroupName.IsEmpty() ) Selected(true);
else Selected(!m_bSelected);
return true;
}
void COptionUI::SetEnabled(bool bEnable)
{
CControlUI::SetEnabled(bEnable);
if( !IsEnabled() ) {
if( m_bSelected ) m_uButtonState = UISTATE_SELECTED;
else m_uButtonState = 0;
}
}
LPCTSTR COptionUI::GetSelectedImage()
{
return m_sSelectedImage;
}
void COptionUI::SetSelectedImage(LPCTSTR pStrImage)
{
m_sSelectedImage = pStrImage;
Invalidate();
}
void COptionUI::SetSelectedTextColor(DWORD dwTextColor)
{
m_dwSelectedTextColor = dwTextColor;
}
DWORD COptionUI::GetSelectedTextColor()
{
if (m_dwSelectedTextColor == 0) m_dwSelectedTextColor = m_pManager->GetDefaultFontColor();
return m_dwSelectedTextColor;
}
LPCTSTR COptionUI::GetForeImage()
{
return m_sForeImage;
}
void COptionUI::SetForeImage(LPCTSTR pStrImage)
{
m_sForeImage = pStrImage;
Invalidate();
}
SIZE COptionUI::EstimateSize(SIZE szAvailable)
{
if( m_cxyFixed.cy == 0 ) return CSize(m_cxyFixed.cx, m_pManager->GetFontInfo(GetFont())->tm.tmHeight + 8);
return CControlUI::EstimateSize(szAvailable);
}
void COptionUI::SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue)
{
if( _tcscmp(pstrName, _T("group")) == 0 ) SetGroup(pstrValue);
else if( _tcscmp(pstrName, _T("selected")) == 0 ) Selected(_tcscmp(pstrValue, _T("true")) == 0);
else if( _tcscmp(pstrName, _T("selectedimage")) == 0 ) SetSelectedImage(pstrValue);
else if( _tcscmp(pstrName, _T("foreimage")) == 0 ) SetForeImage(pstrValue);
else if( _tcscmp(pstrName, _T("selectedtextcolor")) == 0 ) {
if( *pstrValue == _T('#')) pstrValue = ::CharNext(pstrValue);
LPTSTR pstr = NULL;
DWORD clrColor = _tcstoul(pstrValue, &pstr, 16);
SetSelectedTextColor(clrColor);
}
else CButtonUI::SetAttribute(pstrName, pstrValue);
}
void COptionUI::PaintStatusImage(HDC hDC)
{
m_uButtonState &= ~UISTATE_PUSHED;
if( (m_uButtonState & UISTATE_SELECTED) != 0 ) {
if( !m_sSelectedImage.IsEmpty() ) {
if( !DrawImage(hDC, (LPCTSTR)m_sSelectedImage) ) m_sSelectedImage.Empty();
else goto Label_ForeImage;
}
}
CButtonUI::PaintStatusImage(hDC);
Label_ForeImage:
if( !m_sForeImage.IsEmpty() ) {
if( !DrawImage(hDC, (LPCTSTR)m_sForeImage) ) m_sForeImage.Empty();
}
}
void COptionUI::PaintText(HDC hDC)
{
if( (m_uButtonState & UISTATE_SELECTED) != 0 )
{
DWORD oldTextColor = m_dwTextColor;
if( m_dwSelectedTextColor != 0 ) m_dwTextColor = m_dwSelectedTextColor;
if( m_dwTextColor == 0 ) m_dwTextColor = m_pManager->GetDefaultFontColor();
if( m_dwDisabledTextColor == 0 ) m_dwDisabledTextColor = m_pManager->GetDefaultDisabledColor();
if( m_sText.IsEmpty() ) return;
int nLinks = 0;
RECT rc = m_rcItem;
rc.left += m_rcTextPadding.left;
rc.right -= m_rcTextPadding.right;
rc.top += m_rcTextPadding.top;
rc.bottom -= m_rcTextPadding.bottom;
if( m_bShowHtml )
CRenderEngine::DrawHtmlText(hDC, m_pManager, rc, m_sText, IsEnabled()?m_dwTextColor:m_dwDisabledTextColor, \
NULL, NULL, nLinks, m_uTextStyle);
else
CRenderEngine::DrawText(hDC, m_pManager, rc, m_sText, IsEnabled()?m_dwTextColor:m_dwDisabledTextColor, \
m_iFont, m_uTextStyle);
m_dwTextColor = oldTextColor;
}
else
CButtonUI::PaintText(hDC);
}
/////////////////////////////////////////////////////////////////////////////////////
//
//
CTextUI::CTextUI() : m_nLinks(0), m_nHoverLink(-1)
{
m_uTextStyle = DT_WORDBREAK;
m_rcTextPadding.left = 2;
m_rcTextPadding.right = 2;
::ZeroMemory(m_rcLinks, sizeof(m_rcLinks));
}
CTextUI::~CTextUI()
{
}
LPCTSTR CTextUI::GetClass() const
{
return _T("TextUI");
}
LPVOID CTextUI::GetInterface(LPCTSTR pstrName)
{
if( _tcscmp(pstrName, _T("Text")) == 0 ) return static_cast<CTextUI*>(this);
return CLabelUI::GetInterface(pstrName);
}
UINT CTextUI::GetControlFlags() const
{
if( IsEnabled() && m_nLinks > 0 ) return UIFLAG_SETCURSOR;
else return 0;
}
CStdString* CTextUI::GetLinkContent(int iIndex)
{
if( iIndex >= 0 && iIndex < m_nLinks ) return &m_sLinks[iIndex];
return NULL;
}
void CTextUI::DoEvent(TEventUI& event)
{
if( !IsMouseEnabled() && event.Type > UIEVENT__MOUSEBEGIN && event.Type < UIEVENT__MOUSEEND ) {
if( m_pParent != NULL ) m_pParent->DoEvent(event);
else CLabelUI::DoEvent(event);
return;
}
if( event.Type == UIEVENT_SETCURSOR ) {
for( int i = 0; i < m_nLinks; i++ ) {
if( ::PtInRect(&m_rcLinks[i], event.ptMouse) ) {
::SetCursor(::LoadCursor(NULL, MAKEINTRESOURCE(IDC_HAND)));
return;
}
}
}
if( event.Type == UIEVENT_BUTTONDOWN || event.Type == UIEVENT_DBLCLICK && IsEnabled() ) {
for( int i = 0; i < m_nLinks; i++ ) {
if( ::PtInRect(&m_rcLinks[i], event.ptMouse) ) {
Invalidate();
return;
}
}
}
if( event.Type == UIEVENT_BUTTONUP && IsEnabled() ) {
for( int i = 0; i < m_nLinks; i++ ) {
if( ::PtInRect(&m_rcLinks[i], event.ptMouse) ) {
m_pManager->SendNotify(this, _T("link"), i);
return;
}
}
}
if( event.Type == UIEVENT_CONTEXTMENU )
{
return;
}
// When you move over a link
if( m_nLinks > 0 && event.Type == UIEVENT_MOUSEMOVE && IsEnabled() ) {
int nHoverLink = -1;
for( int i = 0; i < m_nLinks; i++ ) {
if( ::PtInRect(&m_rcLinks[i], event.ptMouse) ) {
nHoverLink = i;
break;
}
}
if(m_nHoverLink != nHoverLink) {
m_nHoverLink = nHoverLink;
Invalidate();
return;
}
}
if( event.Type == UIEVENT_MOUSELEAVE ) {
if( m_nLinks > 0 && IsEnabled() ) {
if(m_nHoverLink != -1) {
m_nHoverLink = -1;
Invalidate();
return;
}
}
}
CLabelUI::DoEvent(event);
}
SIZE CTextUI::EstimateSize(SIZE szAvailable)
{
RECT rcText = { 0, 0, MAX(szAvailable.cx, m_cxyFixed.cx), 9999 };
rcText.left += m_rcTextPadding.left;
rcText.right -= m_rcTextPadding.right;
if( m_bShowHtml ) {
int nLinks = 0;
CRenderEngine::DrawHtmlText(m_pManager->GetPaintDC(), m_pManager, rcText, m_sText, m_dwTextColor, NULL, NULL, nLinks, DT_CALCRECT | m_uTextStyle);
}
else {
CRenderEngine::DrawText(m_pManager->GetPaintDC(), m_pManager, rcText, m_sText, m_dwTextColor, m_iFont, DT_CALCRECT | m_uTextStyle);
}
SIZE cXY = {rcText.right - rcText.left + m_rcTextPadding.left + m_rcTextPadding.right,
rcText.bottom - rcText.top + m_rcTextPadding.top + m_rcTextPadding.bottom};
if( m_cxyFixed.cy != 0 ) cXY.cy = m_cxyFixed.cy;
return cXY;
}
void CTextUI::PaintText(HDC hDC)
{
if( m_sText.IsEmpty() ) {
m_nLinks = 0;
return;
}
if( m_dwTextColor == 0 ) m_dwTextColor = m_pManager->GetDefaultFontColor();
if( m_dwDisabledTextColor == 0 ) m_dwDisabledTextColor = m_pManager->GetDefaultDisabledColor();
if( m_sText.IsEmpty() ) return;
m_nLinks = lengthof(m_rcLinks);
RECT rc = m_rcItem;
rc.left += m_rcTextPadding.left;
rc.right -= m_rcTextPadding.right;
rc.top += m_rcTextPadding.top;
rc.bottom -= m_rcTextPadding.bottom;
if( IsEnabled() ) {
if( m_bShowHtml )
CRenderEngine::DrawHtmlText(hDC, m_pManager, rc, m_sText, m_dwTextColor, \
m_rcLinks, m_sLinks, m_nLinks, m_uTextStyle);
else
CRenderEngine::DrawText(hDC, m_pManager, rc, m_sText, m_dwTextColor, \
m_iFont, m_uTextStyle);
}
else {
if( m_bShowHtml )
CRenderEngine::DrawHtmlText(hDC, m_pManager, rc, m_sText, m_dwDisabledTextColor, \
m_rcLinks, m_sLinks, m_nLinks, m_uTextStyle);
else
CRenderEngine::DrawText(hDC, m_pManager, rc, m_sText, m_dwDisabledTextColor, \
m_iFont, m_uTextStyle);
}
}
/////////////////////////////////////////////////////////////////////////////////////
//
//
CProgressUI::CProgressUI() : m_bHorizontal(true), m_nMin(0), m_nMax(100), m_nValue(0), m_bStretchForeImage(true)
{
m_uTextStyle = DT_SINGLELINE | DT_CENTER;
SetFixedHeight(12);
}
LPCTSTR CProgressUI::GetClass() const
{
return _T("ProgressUI");
}
LPVOID CProgressUI::GetInterface(LPCTSTR pstrName)
{
if( _tcscmp(pstrName, _T("Progress")) == 0 ) return static_cast<CProgressUI*>(this);
return CLabelUI::GetInterface(pstrName);
}
bool CProgressUI::IsHorizontal()
{
return m_bHorizontal;
}
void CProgressUI::SetHorizontal(bool bHorizontal)
{
if( m_bHorizontal == bHorizontal ) return;
m_bHorizontal = bHorizontal;
Invalidate();
}
int CProgressUI::GetMinValue() const
{
return m_nMin;
}
void CProgressUI::SetMinValue(int nMin)
{
m_nMin = nMin;
Invalidate();
}
int CProgressUI::GetMaxValue() const
{
return m_nMax;
}
void CProgressUI::SetMaxValue(int nMax)
{
m_nMax = nMax;
Invalidate();
}
int CProgressUI::GetValue() const
{
return m_nValue;
}
void CProgressUI::SetValue(int nValue)
{
m_nValue = nValue;
Invalidate();
}
LPCTSTR CProgressUI::GetForeImage() const
{
return m_sForeImage;
}
void CProgressUI::SetForeImage(LPCTSTR pStrImage)
{
if( m_sForeImage == pStrImage ) return;
m_sForeImage = pStrImage;
Invalidate();
}
void CProgressUI::SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue)
{
if( _tcscmp(pstrName, _T("foreimage")) == 0 ) SetForeImage(pstrValue);
else if( _tcscmp(pstrName, _T("hor")) == 0 ) SetHorizontal(_tcscmp(pstrValue, _T("true")) == 0);
else if( _tcscmp(pstrName, _T("min")) == 0 ) SetMinValue(_ttoi(pstrValue));
else if( _tcscmp(pstrName, _T("max")) == 0 ) SetMaxValue(_ttoi(pstrValue));
else if( _tcscmp(pstrName, _T("value")) == 0 ) SetValue(_ttoi(pstrValue));
else if( _tcscmp(pstrName, _T("isstretchfore"))==0) SetStretchForeImage(_tcscmp(pstrValue, _T("true")) == 0? true : false);
else CLabelUI::SetAttribute(pstrName, pstrValue);
}
void CProgressUI::PaintStatusImage(HDC hDC)
{
if( m_nMax <= m_nMin ) m_nMax = m_nMin + 1;
if( m_nValue > m_nMax ) m_nValue = m_nMax;
if( m_nValue < m_nMin ) m_nValue = m_nMin;
RECT rc = {0};
if( m_bHorizontal ) {
rc.right = (m_nValue - m_nMin) * (m_rcItem.right - m_rcItem.left) / (m_nMax - m_nMin);
rc.bottom = m_rcItem.bottom - m_rcItem.top;
}
else {
rc.top = (m_rcItem.bottom - m_rcItem.top) * (m_nMax - m_nValue) / (m_nMax - m_nMin);
rc.right = m_rcItem.right - m_rcItem.left;
rc.bottom = m_rcItem.bottom - m_rcItem.top;
}
if( !m_sForeImage.IsEmpty() ) {
m_sForeImageModify.Empty();
if (m_bStretchForeImage)
m_sForeImageModify.SmallFormat(_T("dest='%d,%d,%d,%d'"), rc.left, rc.top, rc.right, rc.bottom);
else
m_sForeImageModify.SmallFormat(_T("dest='%d,%d,%d,%d' source='%d,%d,%d,%d'")
, rc.left, rc.top, rc.right, rc.bottom
, rc.left, rc.top, rc.right, rc.bottom);
if( !DrawImage(hDC, (LPCTSTR)m_sForeImage, (LPCTSTR)m_sForeImageModify) ) m_sForeImage.Empty();
else return;
}
}
bool CProgressUI::IsStretchForeImage()
{
return m_bStretchForeImage;
}
void CProgressUI::SetStretchForeImage( bool bStretchForeImage /*= true*/ )
{
if (m_bStretchForeImage==bStretchForeImage) return;
m_bStretchForeImage=bStretchForeImage;
Invalidate();
}
/////////////////////////////////////////////////////////////////////////////////////
//
//
CSliderUI::CSliderUI() : m_uButtonState(0), m_nStep(1)
{
m_uTextStyle = DT_SINGLELINE | DT_CENTER;
m_szThumb.cx = m_szThumb.cy = 10;
}
LPCTSTR CSliderUI::GetClass() const
{
return _T("SliderUI");
}
UINT CSliderUI::GetControlFlags() const
{
if( IsEnabled() ) return UIFLAG_SETCURSOR;
else return 0;
}
LPVOID CSliderUI::GetInterface(LPCTSTR pstrName)
{
if( _tcscmp(pstrName, _T("Slider")) == 0 ) return static_cast<CSliderUI*>(this);
return CProgressUI::GetInterface(pstrName);
}
void CSliderUI::SetEnabled(bool bEnable)
{
CControlUI::SetEnabled(bEnable);
if( !IsEnabled() ) {
m_uButtonState = 0;
}
}
int CSliderUI::GetChangeStep()
{
return m_nStep;
}
void CSliderUI::SetChangeStep(int step)
{
m_nStep = step;
}
void CSliderUI::SetThumbSize(SIZE szXY)
{
m_szThumb = szXY;
}
RECT CSliderUI::GetThumbRect() const
{
if( m_bHorizontal ) {
int left = m_rcItem.left + (m_rcItem.right - m_rcItem.left - m_szThumb.cx) * (m_nValue - m_nMin) / (m_nMax - m_nMin);
int top = (m_rcItem.bottom + m_rcItem.top - m_szThumb.cy) / 2;
return CRect(left, top, left + m_szThumb.cx, top + m_szThumb.cy);
}
else {
int left = (m_rcItem.right + m_rcItem.left - m_szThumb.cx) / 2;
int top = m_rcItem.bottom - m_szThumb.cy - (m_rcItem.bottom - m_rcItem.top - m_szThumb.cy) * (m_nValue - m_nMin) / (m_nMax - m_nMin);
return CRect(left, top, left + m_szThumb.cx, top + m_szThumb.cy);
}
}
LPCTSTR CSliderUI::GetThumbImage() const
{
return m_sThumbImage;
}
void CSliderUI::SetThumbImage(LPCTSTR pStrImage)
{
m_sThumbImage = pStrImage;
Invalidate();
}
LPCTSTR CSliderUI::GetThumbHotImage() const
{
return m_sThumbHotImage;
}
void CSliderUI::SetThumbHotImage(LPCTSTR pStrImage)
{
m_sThumbHotImage = pStrImage;
Invalidate();
}
LPCTSTR CSliderUI::GetThumbPushedImage() const
{
return m_sThumbPushedImage;
}
void CSliderUI::SetThumbPushedImage(LPCTSTR pStrImage)
{
m_sThumbPushedImage = pStrImage;
Invalidate();
}
void CSliderUI::DoEvent(TEventUI& event)
{
if( !IsMouseEnabled() && event.Type > UIEVENT__MOUSEBEGIN && event.Type < UIEVENT__MOUSEEND ) {
if( m_pParent != NULL ) m_pParent->DoEvent(event);
else CProgressUI::DoEvent(event);
return;
}
if( event.Type == UIEVENT_BUTTONDOWN || event.Type == UIEVENT_DBLCLICK )
{
if( IsEnabled() ) {
RECT rcThumb = GetThumbRect();
if( ::PtInRect(&rcThumb, event.ptMouse) ) {
m_uButtonState |= UISTATE_CAPTURED;
}
}
return;
}
if( event.Type == UIEVENT_BUTTONUP )
{
if( (m_uButtonState & UISTATE_CAPTURED) != 0 ) {
m_uButtonState &= ~UISTATE_CAPTURED;
}
if( m_bHorizontal ) {
if( event.ptMouse.x >= m_rcItem.right - m_szThumb.cx / 2 ) m_nValue = m_nMax;
else if( event.ptMouse.x <= m_rcItem.left + m_szThumb.cx / 2 ) m_nValue = m_nMin;
else m_nValue = m_nMin + (m_nMax - m_nMin) * (event.ptMouse.x - m_rcItem.left - m_szThumb.cx / 2 ) / (m_rcItem.right - m_rcItem.left - m_szThumb.cx);
}
else {
if( event.ptMouse.y >= m_rcItem.bottom - m_szThumb.cy / 2 ) m_nValue = m_nMin;
else if( event.ptMouse.y <= m_rcItem.top + m_szThumb.cy / 2 ) m_nValue = m_nMax;
else m_nValue = m_nMin + (m_nMax - m_nMin) * (m_rcItem.bottom - event.ptMouse.y - m_szThumb.cy / 2 ) / (m_rcItem.bottom - m_rcItem.top - m_szThumb.cy);
}
m_pManager->SendNotify(this, _T("valuechanged"));
Invalidate();
return;
}
if( event.Type == UIEVENT_CONTEXTMENU )
{
return;
}
if( event.Type == UIEVENT_SCROLLWHEEL )
{
switch( LOWORD(event.wParam) ) {
case SB_LINEUP:
SetValue(GetValue() + GetChangeStep());
m_pManager->SendNotify(this, _T("valuechanged"));
return;
case SB_LINEDOWN:
SetValue(GetValue() - GetChangeStep());
m_pManager->SendNotify(this, _T("valuechanged"));
return;
}
}
if( event.Type == UIEVENT_MOUSEMOVE )
{
if( (m_uButtonState & UISTATE_CAPTURED) != 0 ) {
if( m_bHorizontal ) {
if( event.ptMouse.x >= m_rcItem.right - m_szThumb.cx / 2 ) m_nValue = m_nMax;
else if( event.ptMouse.x <= m_rcItem.left + m_szThumb.cx / 2 ) m_nValue = m_nMin;
else m_nValue = m_nMin + (m_nMax - m_nMin) * (event.ptMouse.x - m_rcItem.left - m_szThumb.cx / 2 ) / (m_rcItem.right - m_rcItem.left - m_szThumb.cx);
}
else {
if( event.ptMouse.y >= m_rcItem.bottom - m_szThumb.cy / 2 ) m_nValue = m_nMin;
else if( event.ptMouse.y <= m_rcItem.top + m_szThumb.cy / 2 ) m_nValue = m_nMax;
else m_nValue = m_nMin + (m_nMax - m_nMin) * (m_rcItem.bottom - event.ptMouse.y - m_szThumb.cy / 2 ) / (m_rcItem.bottom - m_rcItem.top - m_szThumb.cy);
}
Invalidate();
}
return;
}
if( event.Type == UIEVENT_SETCURSOR )
{
RECT rcThumb = GetThumbRect();
if( IsEnabled() && ::PtInRect(&rcThumb, event.ptMouse) ) {
::SetCursor(::LoadCursor(NULL, MAKEINTRESOURCE(IDC_HAND)));
return;
}
}
if( event.Type == UIEVENT_MOUSEENTER )
{
if( IsEnabled() ) {
m_uButtonState |= UISTATE_HOT;
Invalidate();
}
return;
}
if( event.Type == UIEVENT_MOUSELEAVE )
{
if( IsEnabled() ) {
m_uButtonState &= ~UISTATE_HOT;
Invalidate();
}
return;
}
CControlUI::DoEvent(event);
}
void CSliderUI::SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue)
{
if( _tcscmp(pstrName, _T("thumbimage")) == 0 ) SetThumbImage(pstrValue);
else if( _tcscmp(pstrName, _T("thumbhotimage")) == 0 ) SetThumbHotImage(pstrValue);
else if( _tcscmp(pstrName, _T("thumbpushedimage")) == 0 ) SetThumbPushedImage(pstrValue);
else if( _tcscmp(pstrName, _T("thumbsize")) == 0 ) {
SIZE szXY = {0};
LPTSTR pstr = NULL;
szXY.cx = _tcstol(pstrValue, &pstr, 10); ASSERT(pstr);
szXY.cy = _tcstol(pstr + 1, &pstr, 10); ASSERT(pstr);
SetThumbSize(szXY);
}
else if( _tcscmp(pstrName, _T("step")) == 0 ) {
SetChangeStep(_ttoi(pstrValue));
}
else CProgressUI::SetAttribute(pstrName, pstrValue);
}
void CSliderUI::PaintStatusImage(HDC hDC)
{
CProgressUI::PaintStatusImage(hDC);
RECT rcThumb = GetThumbRect();
rcThumb.left -= m_rcItem.left;
rcThumb.top -= m_rcItem.top;
rcThumb.right -= m_rcItem.left;
rcThumb.bottom -= m_rcItem.top;
if( (m_uButtonState & UISTATE_CAPTURED) != 0 ) {
if( !m_sThumbPushedImage.IsEmpty() ) {
m_sImageModify.Empty();
m_sImageModify.SmallFormat(_T("dest='%d,%d,%d,%d'"), rcThumb.left, rcThumb.top, rcThumb.right, rcThumb.bottom);
if( !DrawImage(hDC, (LPCTSTR)m_sThumbPushedImage, (LPCTSTR)m_sImageModify) ) m_sThumbPushedImage.Empty();
else return;
}
}
else if( (m_uButtonState & UISTATE_HOT) != 0 ) {
if( !m_sThumbHotImage.IsEmpty() ) {
m_sImageModify.Empty();
m_sImageModify.SmallFormat(_T("dest='%d,%d,%d,%d'"), rcThumb.left, rcThumb.top, rcThumb.right, rcThumb.bottom);
if( !DrawImage(hDC, (LPCTSTR)m_sThumbHotImage, (LPCTSTR)m_sImageModify) ) m_sThumbHotImage.Empty();
else return;
}
}
if( !m_sThumbImage.IsEmpty() ) {
m_sImageModify.Empty();
m_sImageModify.SmallFormat(_T("dest='%d,%d,%d,%d'"), rcThumb.left, rcThumb.top, rcThumb.right, rcThumb.bottom);
if( !DrawImage(hDC, (LPCTSTR)m_sThumbImage, (LPCTSTR)m_sImageModify) ) m_sThumbImage.Empty();
else return;
}
}
/////////////////////////////////////////////////////////////////////////////////////
//
//
class CEditWnd : public CWindowWnd
{
public:
CEditWnd();
void Init(CEditUI* pOwner);
RECT CalPos();
LPCTSTR GetWindowClassName() const;
LPCTSTR GetSuperClassName() const;
void OnFinalMessage(HWND hWnd);
LRESULT HandleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam);
LRESULT OnKillFocus(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
LRESULT OnEditChanged(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
protected:
CEditUI* m_pOwner;
HBRUSH m_hBkBrush;
bool m_bInit;
};
CEditWnd::CEditWnd() : m_pOwner(NULL), m_hBkBrush(NULL), m_bInit(false)
{
}
void CEditWnd::Init(CEditUI* pOwner)
{
m_pOwner = pOwner;
RECT rcPos = CalPos();
UINT uStyle = WS_CHILD | ES_AUTOHSCROLL;
if( m_pOwner->IsPasswordMode() ) uStyle |= ES_PASSWORD;
Create(m_pOwner->GetManager()->GetPaintWindow(), NULL, uStyle, 0, rcPos);
SetWindowFont(m_hWnd, m_pOwner->GetManager()->GetFontInfo(m_pOwner->GetFont())->hFont, TRUE);
Edit_LimitText(m_hWnd, m_pOwner->GetMaxChar());
if( m_pOwner->IsPasswordMode() ) Edit_SetPasswordChar(m_hWnd, m_pOwner->GetPasswordChar());
Edit_SetText(m_hWnd, m_pOwner->GetText());
Edit_SetModify(m_hWnd, FALSE);
SendMessage(EM_SETMARGINS, EC_LEFTMARGIN | EC_RIGHTMARGIN, MAKELPARAM(0, 0));
Edit_Enable(m_hWnd, m_pOwner->IsEnabled() == true);
Edit_SetReadOnly(m_hWnd, m_pOwner->IsReadOnly() == true);
//Styls
LONG styleValue = ::GetWindowLong(m_hWnd, GWL_STYLE);
styleValue |= pOwner->GetWindowStyls();
::SetWindowLong(GetHWND(), GWL_STYLE, styleValue);
::ShowWindow(m_hWnd, SW_SHOWNOACTIVATE);
::SetFocus(m_hWnd);
m_bInit = true;
}
RECT CEditWnd::CalPos()
{
CRect rcPos = m_pOwner->GetPos();
RECT rcInset = m_pOwner->GetTextPadding();
rcPos.left += rcInset.left;
rcPos.top += rcInset.top;
rcPos.right -= rcInset.right;
rcPos.bottom -= rcInset.bottom;
LONG lEditHeight = m_pOwner->GetManager()->GetFontInfo(m_pOwner->GetFont())->tm.tmHeight;
if( lEditHeight < rcPos.GetHeight() ) {
rcPos.top += (rcPos.GetHeight() - lEditHeight) / 2;
rcPos.bottom = rcPos.top + lEditHeight;
}
return rcPos;
}
LPCTSTR CEditWnd::GetWindowClassName() const
{
return _T("EditWnd");
}
LPCTSTR CEditWnd::GetSuperClassName() const
{
return WC_EDIT;
}
void CEditWnd::OnFinalMessage(HWND /*hWnd*/)
{
// Clear reference and die
if( m_hBkBrush != NULL ) ::DeleteObject(m_hBkBrush);
m_pOwner->m_pWindow = NULL;
delete this;
}
LRESULT CEditWnd::HandleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam)
{
LRESULT lRes = 0;
BOOL bHandled = TRUE;
if( uMsg == WM_KILLFOCUS ) lRes = OnKillFocus(uMsg, wParam, lParam, bHandled);
else if( uMsg == OCM_COMMAND ) {
if( GET_WM_COMMAND_CMD(wParam, lParam) == EN_CHANGE ) lRes = OnEditChanged(uMsg, wParam, lParam, bHandled);
else if( GET_WM_COMMAND_CMD(wParam, lParam) == EN_UPDATE ) {
RECT rcClient;
::GetClientRect(m_hWnd, &rcClient);
::InvalidateRect(m_hWnd, &rcClient, FALSE);
}
}
else if( uMsg == WM_KEYDOWN && TCHAR(wParam) == VK_RETURN ) {
m_pOwner->GetManager()->SendNotify(m_pOwner, _T("return"));
}
else if( uMsg == OCM__BASE + WM_CTLCOLOREDIT || uMsg == OCM__BASE + WM_CTLCOLORSTATIC ) {
if( m_pOwner->GetNativeEditBkColor() == 0xFFFFFFFF ) return NULL;
::SetBkMode((HDC)wParam, TRANSPARENT);
DWORD dwTextColor = m_pOwner->GetTextColor();
::SetTextColor((HDC)wParam, RGB(GetBValue(dwTextColor),GetGValue(dwTextColor),GetRValue(dwTextColor)));
if( m_hBkBrush == NULL ) {
DWORD clrColor = m_pOwner->GetNativeEditBkColor();
m_hBkBrush = ::CreateSolidBrush(RGB(GetBValue(clrColor), GetGValue(clrColor), GetRValue(clrColor)));
}
return (LRESULT)m_hBkBrush;
}
else bHandled = FALSE;
if( !bHandled ) return CWindowWnd::HandleMessage(uMsg, wParam, lParam);
return lRes;
}
LRESULT CEditWnd::OnKillFocus(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
LRESULT lRes = ::DefWindowProc(m_hWnd, uMsg, wParam, lParam);
PostMessage(WM_CLOSE);
return lRes;
}
LRESULT CEditWnd::OnEditChanged(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
{
if( !m_bInit ) return 0;
if( m_pOwner == NULL ) return 0;
// Copy text back
int cchLen = ::GetWindowTextLength(m_hWnd) + 1;
LPTSTR pstr = static_cast<LPTSTR>(_alloca(cchLen * sizeof(TCHAR)));
ASSERT(pstr);
if( pstr == NULL ) return 0;
::GetWindowText(m_hWnd, pstr, cchLen);
m_pOwner->m_sText = pstr;
m_pOwner->GetManager()->SendNotify(m_pOwner, _T("textchanged"));
return 0;
}
/////////////////////////////////////////////////////////////////////////////////////
//
//
CEditUI::CEditUI() : m_pWindow(NULL), m_uMaxChar(255), m_bReadOnly(false),
m_bPasswordMode(false), m_cPasswordChar(_T('*')), m_uButtonState(0),
m_dwEditbkColor(0xFFFFFFFF), m_iWindowStyls(0)
{
SetTextPadding(CRect(4, 3, 4, 3));
SetBkColor(0xFFFFFFFF);
}
LPCTSTR CEditUI::GetClass() const
{
return _T("EditUI");
}
LPVOID CEditUI::GetInterface(LPCTSTR pstrName)
{
if( _tcscmp(pstrName, _T("Edit")) == 0 ) return static_cast<CEditUI*>(this);
return CLabelUI::GetInterface(pstrName);
}
UINT CEditUI::GetControlFlags() const
{
if( !IsEnabled() ) return CControlUI::GetControlFlags();
return UIFLAG_SETCURSOR | UIFLAG_TABSTOP;
}
void CEditUI::DoEvent(TEventUI& event)
{
if( !IsMouseEnabled() && event.Type > UIEVENT__MOUSEBEGIN && event.Type < UIEVENT__MOUSEEND ) {
if( m_pParent != NULL ) m_pParent->DoEvent(event);
else CLabelUI::DoEvent(event);
return;
}
if( event.Type == UIEVENT_SETCURSOR && IsEnabled() )
{
::SetCursor(::LoadCursor(NULL, MAKEINTRESOURCE(IDC_IBEAM)));
return;
}
if( event.Type == UIEVENT_WINDOWSIZE )
{
if( m_pWindow != NULL ) m_pManager->SetFocusNeeded(this);
}
if( event.Type == UIEVENT_SCROLLWHEEL )
{
if( m_pWindow != NULL ) return;
}
if( event.Type == UIEVENT_SETFOCUS && IsEnabled() )
{
if( m_pWindow ) return;
m_pWindow = new CEditWnd();
ASSERT(m_pWindow);
m_pWindow->Init(this);
Invalidate();
}
if( event.Type == UIEVENT_KILLFOCUS && IsEnabled() )
{
Invalidate();
}
if( event.Type == UIEVENT_BUTTONDOWN || event.Type == UIEVENT_DBLCLICK || event.Type == UIEVENT_RBUTTONDOWN)
{
if( IsEnabled() ) {
GetManager()->ReleaseCapture();
if( IsFocused() && m_pWindow == NULL )
{
m_pWindow = new CEditWnd();
ASSERT(m_pWindow);
m_pWindow->Init(this);
if( PtInRect(&m_rcItem, event.ptMouse) )
{
int nSize = GetWindowTextLength(*m_pWindow);
if( nSize == 0 )
nSize = 1;
Edit_SetSel(*m_pWindow, 0, nSize);
}
}
else if( m_pWindow != NULL )
{
#if 1
int nSize = GetWindowTextLength(*m_pWindow);
if( nSize == 0 )
nSize = 1;
Edit_SetSel(*m_pWindow, 0, nSize);
#else
POINT pt = event.ptMouse;
pt.x -= m_rcItem.left + m_rcTextPadding.left;
pt.y -= m_rcItem.top + m_rcTextPadding.top;
::SendMessage(*m_pWindow, WM_LBUTTONDOWN, event.wParam, MAKELPARAM(pt.x, pt.y));
#endif
}
}
return;
}
if( event.Type == UIEVENT_MOUSEMOVE )
{
return;
}
if( event.Type == UIEVENT_BUTTONUP )
{
return;
}
if( event.Type == UIEVENT_CONTEXTMENU )
{
return;
}
if( event.Type == UIEVENT_MOUSEENTER )
{
if( IsEnabled() ) {
m_uButtonState |= UISTATE_HOT;
Invalidate();
}
return;
}
if( event.Type == UIEVENT_MOUSELEAVE )
{
if( IsEnabled() ) {
m_uButtonState &= ~UISTATE_HOT;
Invalidate();
}
return;
}
CLabelUI::DoEvent(event);
}
void CEditUI::SetEnabled(bool bEnable)
{
CControlUI::SetEnabled(bEnable);
if( !IsEnabled() ) {
m_uButtonState = 0;
}
}
void CEditUI::SetText(LPCTSTR pstrText)
{
m_sText = pstrText;
if( m_pWindow != NULL ) Edit_SetText(*m_pWindow, m_sText);
Invalidate();
}
void CEditUI::SetMaxChar(UINT uMax)
{
m_uMaxChar = uMax;
if( m_pWindow != NULL ) Edit_LimitText(*m_pWindow, m_uMaxChar);
}
UINT CEditUI::GetMaxChar()
{
return m_uMaxChar;
}
void CEditUI::SetReadOnly(bool bReadOnly)
{
if( m_bReadOnly == bReadOnly ) return;
m_bReadOnly = bReadOnly;
if( m_pWindow != NULL ) Edit_SetReadOnly(*m_pWindow, m_bReadOnly);
Invalidate();
}
bool CEditUI::IsReadOnly() const
{
return m_bReadOnly;
}
void CEditUI::SetNumberOnly(bool bNumberOnly)
{
if( bNumberOnly )
{
m_iWindowStyls |= ES_NUMBER;
}
else
{
m_iWindowStyls |= ~ES_NUMBER;
}
}
bool CEditUI::IsNumberOnly() const
{
return m_iWindowStyls&ES_NUMBER ? true:false;
}
int CEditUI::GetWindowStyls() const
{
return m_iWindowStyls;
}
void CEditUI::SetPasswordMode(bool bPasswordMode)
{
if( m_bPasswordMode == bPasswordMode ) return;
m_bPasswordMode = bPasswordMode;
Invalidate();
}
bool CEditUI::IsPasswordMode() const
{
return m_bPasswordMode;
}
void CEditUI::SetPasswordChar(TCHAR cPasswordChar)
{
if( m_cPasswordChar == cPasswordChar ) return;
m_cPasswordChar = cPasswordChar;
if( m_pWindow != NULL ) Edit_SetPasswordChar(*m_pWindow, m_cPasswordChar);
Invalidate();
}
TCHAR CEditUI::GetPasswordChar() const
{
return m_cPasswordChar;
}
LPCTSTR CEditUI::GetNormalImage()
{
return m_sNormalImage;
}
void CEditUI::SetNormalImage(LPCTSTR pStrImage)
{
m_sNormalImage = pStrImage;
Invalidate();
}
LPCTSTR CEditUI::GetHotImage()
{
return m_sHotImage;
}
void CEditUI::SetHotImage(LPCTSTR pStrImage)
{
m_sHotImage = pStrImage;
Invalidate();
}
LPCTSTR CEditUI::GetFocusedImage()
{
return m_sFocusedImage;
}
void CEditUI::SetFocusedImage(LPCTSTR pStrImage)
{
m_sFocusedImage = pStrImage;
Invalidate();
}
LPCTSTR CEditUI::GetDisabledImage()
{
return m_sDisabledImage;
}
void CEditUI::SetDisabledImage(LPCTSTR pStrImage)
{
m_sDisabledImage = pStrImage;
Invalidate();
}
void CEditUI::SetNativeEditBkColor(DWORD dwBkColor)
{
m_dwEditbkColor = dwBkColor;
}
DWORD CEditUI::GetNativeEditBkColor() const
{
return m_dwEditbkColor;
}
void CEditUI::SetSel(long nStartChar, long nEndChar)
{
if( m_pWindow != NULL ) Edit_SetSel(*m_pWindow, nStartChar,nEndChar);
}
void CEditUI::SetSelAll()
{
SetSel(0,-1);
}
void CEditUI::SetReplaceSel(LPCTSTR lpszReplace)
{
if( m_pWindow != NULL ) Edit_ReplaceSel(*m_pWindow, lpszReplace);
}
void CEditUI::SetPos(RECT rc)
{
CControlUI::SetPos(rc);
if( m_pWindow != NULL ) {
RECT rcPos = m_pWindow->CalPos();
::SetWindowPos(m_pWindow->GetHWND(), NULL, rcPos.left, rcPos.top, rcPos.right - rcPos.left,
rcPos.bottom - rcPos.top, SWP_NOZORDER | SWP_NOACTIVATE);
}
}
void CEditUI::SetVisible(bool bVisible)
{
CControlUI::SetVisible(bVisible);
if( !IsVisible() && m_pWindow != NULL ) m_pManager->SetFocus(NULL);
}
void CEditUI::SetInternVisible(bool bVisible)
{
if( !IsVisible() && m_pWindow != NULL ) m_pManager->SetFocus(NULL);
}
SIZE CEditUI::EstimateSize(SIZE szAvailable)
{
if( m_cxyFixed.cy == 0 ) return CSize(m_cxyFixed.cx, m_pManager->GetFontInfo(GetFont())->tm.tmHeight + 6);
return CControlUI::EstimateSize(szAvailable);
}
void CEditUI::SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue)
{
if( _tcscmp(pstrName, _T("readonly")) == 0 ) SetReadOnly(_tcscmp(pstrValue, _T("true")) == 0);
else if( _tcscmp(pstrName, _T("numberonly")) == 0 ) SetNumberOnly(_tcscmp(pstrValue, _T("true")) == 0);
else if( _tcscmp(pstrName, _T("password")) == 0 ) SetPasswordMode(_tcscmp(pstrValue, _T("true")) == 0);
else if( _tcscmp(pstrName, _T("maxchar")) == 0 ) SetMaxChar(_ttoi(pstrValue));
else if( _tcscmp(pstrName, _T("normalimage")) == 0 ) SetNormalImage(pstrValue);
else if( _tcscmp(pstrName, _T("hotimage")) == 0 ) SetHotImage(pstrValue);
else if( _tcscmp(pstrName, _T("focusedimage")) == 0 ) SetFocusedImage(pstrValue);
else if( _tcscmp(pstrName, _T("disabledimage")) == 0 ) SetDisabledImage(pstrValue);
else if( _tcscmp(pstrName, _T("nativebkcolor")) == 0 ) {
if( *pstrValue == _T('#')) pstrValue = ::CharNext(pstrValue);
LPTSTR pstr = NULL;
DWORD clrColor = _tcstoul(pstrValue, &pstr, 16);
SetNativeEditBkColor(clrColor);
}
else CLabelUI::SetAttribute(pstrName, pstrValue);
}
void CEditUI::PaintStatusImage(HDC hDC)
{
if( IsFocused() ) m_uButtonState |= UISTATE_FOCUSED;
else m_uButtonState &= ~ UISTATE_FOCUSED;
if( !IsEnabled() ) m_uButtonState |= UISTATE_DISABLED;
else m_uButtonState &= ~ UISTATE_DISABLED;
if( (m_uButtonState & UISTATE_DISABLED) != 0 ) {
if( !m_sDisabledImage.IsEmpty() ) {
if( !DrawImage(hDC, (LPCTSTR)m_sDisabledImage) ) m_sDisabledImage.Empty();
else return;
}
}
else if( (m_uButtonState & UISTATE_FOCUSED) != 0 ) {
if( !m_sFocusedImage.IsEmpty() ) {
if( !DrawImage(hDC, (LPCTSTR)m_sFocusedImage) ) m_sFocusedImage.Empty();
else return;
}
}
else if( (m_uButtonState & UISTATE_HOT) != 0 ) {
if( !m_sHotImage.IsEmpty() ) {
if( !DrawImage(hDC, (LPCTSTR)m_sHotImage) ) m_sHotImage.Empty();
else return;
}
}
if( !m_sNormalImage.IsEmpty() ) {
if( !DrawImage(hDC, (LPCTSTR)m_sNormalImage) ) m_sNormalImage.Empty();
else return;
}
}
void CEditUI::PaintText(HDC hDC)
{
if( m_dwTextColor == 0 ) m_dwTextColor = m_pManager->GetDefaultFontColor();
if( m_dwDisabledTextColor == 0 ) m_dwDisabledTextColor = m_pManager->GetDefaultDisabledColor();
if( m_sText.IsEmpty() ) return;
CStdString sText = m_sText;
if( m_bPasswordMode ) {
sText.Empty();
LPCTSTR p = m_sText.GetData();
while( *p != _T('\0') ) {
sText += m_cPasswordChar;
p = ::CharNext(p);
}
}
RECT rc = m_rcItem;
rc.left += m_rcTextPadding.left;
rc.right -= m_rcTextPadding.right;
rc.top += m_rcTextPadding.top;
rc.bottom -= m_rcTextPadding.bottom;
if( IsEnabled() ) {
CRenderEngine::DrawText(hDC, m_pManager, rc, sText, m_dwTextColor, \
m_iFont, DT_SINGLELINE | m_uTextStyle);
}
else {
CRenderEngine::DrawText(hDC, m_pManager, rc, sText, m_dwDisabledTextColor, \
m_iFont, DT_SINGLELINE | m_uTextStyle);
}
}
/////////////////////////////////////////////////////////////////////////////////////
//
//
CScrollBarUI::CScrollBarUI() : m_bHorizontal(false), m_nRange(100), m_nScrollPos(0), m_nLineSize(8),
m_pOwner(NULL), m_nLastScrollPos(0), m_nLastScrollOffset(0), m_nScrollRepeatDelay(0), m_uButton1State(0), \
m_uButton2State(0), m_uThumbState(0), m_bShowButton1(true), m_bShowButton2(true)
{
m_cxyFixed.cx = DEFAULT_SCROLLBAR_SIZE;
ptLastMouse.x = ptLastMouse.y = 0;
::ZeroMemory(&m_rcThumb, sizeof(m_rcThumb));
::ZeroMemory(&m_rcButton1, sizeof(m_rcButton1));
::ZeroMemory(&m_rcButton2, sizeof(m_rcButton2));
}
LPCTSTR CScrollBarUI::GetClass() const
{
return _T("ScrollBarUI");
}
LPVOID CScrollBarUI::GetInterface(LPCTSTR pstrName)
{
if( _tcscmp(pstrName, _T("ScrollBar")) == 0 ) return static_cast<CScrollBarUI*>(this);
return CControlUI::GetInterface(pstrName);
}
CContainerUI* CScrollBarUI::GetOwner() const
{
return m_pOwner;
}
void CScrollBarUI::SetOwner(CContainerUI* pOwner)
{
m_pOwner = pOwner;
}
void CScrollBarUI::SetVisible(bool bVisible)
{
if( m_bVisible == bVisible ) return;
bool v = IsVisible();
m_bVisible = bVisible;
if( m_bFocused ) m_bFocused = false;
}
void CScrollBarUI::SetEnabled(bool bEnable)
{
CControlUI::SetEnabled(bEnable);
if( !IsEnabled() ) {
m_uButton1State = 0;
m_uButton2State = 0;
m_uThumbState = 0;
}
}
void CScrollBarUI::SetFocus()
{
if( m_pOwner != NULL ) m_pOwner->SetFocus();
else CControlUI::SetFocus();
}
bool CScrollBarUI::IsHorizontal()
{
return m_bHorizontal;
}
void CScrollBarUI::SetHorizontal(bool bHorizontal)
{
if( m_bHorizontal == bHorizontal ) return;
m_bHorizontal = bHorizontal;
if( m_bHorizontal ) {
if( m_cxyFixed.cy == 0 ) {
m_cxyFixed.cx = 0;
m_cxyFixed.cy = DEFAULT_SCROLLBAR_SIZE;
}
}
else {
if( m_cxyFixed.cx == 0 ) {
m_cxyFixed.cx = DEFAULT_SCROLLBAR_SIZE;
m_cxyFixed.cy = 0;
}
}
if( m_pOwner != NULL ) m_pOwner->NeedUpdate(); else NeedParentUpdate();
}
int CScrollBarUI::GetScrollRange() const
{
return m_nRange;
}
void CScrollBarUI::SetScrollRange(int nRange)
{
if( m_nRange == nRange ) return;
m_nRange = nRange;
if( m_nRange < 0 ) m_nRange = 0;
if( m_nScrollPos > m_nRange ) m_nScrollPos = m_nRange;
SetPos(m_rcItem);
}
int CScrollBarUI::GetScrollPos() const
{
return m_nScrollPos;
}
void CScrollBarUI::SetScrollPos(int nPos)
{
if( m_nScrollPos == nPos ) return;
m_nScrollPos = nPos;
if( m_nScrollPos < 0 ) m_nScrollPos = 0;
if( m_nScrollPos > m_nRange ) m_nScrollPos = m_nRange;
SetPos(m_rcItem);
}
int CScrollBarUI::GetLineSize() const
{
return m_nLineSize;
}
void CScrollBarUI::SetLineSize(int nSize)
{
m_nLineSize = nSize;
}
bool CScrollBarUI::GetShowButton1()
{
return m_bShowButton1;
}
void CScrollBarUI::SetShowButton1(bool bShow)
{
m_bShowButton1 = bShow;
SetPos(m_rcItem);
}
LPCTSTR CScrollBarUI::GetButton1NormalImage()
{
return m_sButton1NormalImage;
}
void CScrollBarUI::SetButton1NormalImage(LPCTSTR pStrImage)
{
m_sButton1NormalImage = pStrImage;
Invalidate();
}
LPCTSTR CScrollBarUI::GetButton1HotImage()
{
return m_sButton1HotImage;
}
void CScrollBarUI::SetButton1HotImage(LPCTSTR pStrImage)
{
m_sButton1HotImage = pStrImage;
Invalidate();
}
LPCTSTR CScrollBarUI::GetButton1PushedImage()
{
return m_sButton1PushedImage;
}
void CScrollBarUI::SetButton1PushedImage(LPCTSTR pStrImage)
{
m_sButton1PushedImage = pStrImage;
Invalidate();
}
LPCTSTR CScrollBarUI::GetButton1DisabledImage()
{
return m_sButton1DisabledImage;
}
void CScrollBarUI::SetButton1DisabledImage(LPCTSTR pStrImage)
{
m_sButton1DisabledImage = pStrImage;
Invalidate();
}
bool CScrollBarUI::GetShowButton2()
{
return m_bShowButton2;
}
void CScrollBarUI::SetShowButton2(bool bShow)
{
m_bShowButton2 = bShow;
SetPos(m_rcItem);
}
LPCTSTR CScrollBarUI::GetButton2NormalImage()
{
return m_sButton2NormalImage;
}
void CScrollBarUI::SetButton2NormalImage(LPCTSTR pStrImage)
{
m_sButton2NormalImage = pStrImage;
Invalidate();
}
LPCTSTR CScrollBarUI::GetButton2HotImage()
{
return m_sButton2HotImage;
}
void CScrollBarUI::SetButton2HotImage(LPCTSTR pStrImage)
{
m_sButton2HotImage = pStrImage;
Invalidate();
}
LPCTSTR CScrollBarUI::GetButton2PushedImage()
{
return m_sButton2PushedImage;
}
void CScrollBarUI::SetButton2PushedImage(LPCTSTR pStrImage)
{
m_sButton2PushedImage = pStrImage;
Invalidate();
}
LPCTSTR CScrollBarUI::GetButton2DisabledImage()
{
return m_sButton2DisabledImage;
}
void CScrollBarUI::SetButton2DisabledImage(LPCTSTR pStrImage)
{
m_sButton2DisabledImage = pStrImage;
Invalidate();
}
LPCTSTR CScrollBarUI::GetThumbNormalImage()
{
return m_sThumbNormalImage;
}
void CScrollBarUI::SetThumbNormalImage(LPCTSTR pStrImage)
{
m_sThumbNormalImage = pStrImage;
Invalidate();
}
LPCTSTR CScrollBarUI::GetThumbHotImage()
{
return m_sThumbHotImage;
}
void CScrollBarUI::SetThumbHotImage(LPCTSTR pStrImage)
{
m_sThumbHotImage = pStrImage;
Invalidate();
}
LPCTSTR CScrollBarUI::GetThumbPushedImage()
{
return m_sThumbPushedImage;
}
void CScrollBarUI::SetThumbPushedImage(LPCTSTR pStrImage)
{
m_sThumbPushedImage = pStrImage;
Invalidate();
}
LPCTSTR CScrollBarUI::GetThumbDisabledImage()
{
return m_sThumbDisabledImage;
}
void CScrollBarUI::SetThumbDisabledImage(LPCTSTR pStrImage)
{
m_sThumbDisabledImage = pStrImage;
Invalidate();
}
LPCTSTR CScrollBarUI::GetRailNormalImage()
{
return m_sRailNormalImage;
}
void CScrollBarUI::SetRailNormalImage(LPCTSTR pStrImage)
{
m_sRailNormalImage = pStrImage;
Invalidate();
}
LPCTSTR CScrollBarUI::GetRailHotImage()
{
return m_sRailHotImage;
}
void CScrollBarUI::SetRailHotImage(LPCTSTR pStrImage)
{
m_sRailHotImage = pStrImage;
Invalidate();
}
LPCTSTR CScrollBarUI::GetRailPushedImage()
{
return m_sRailPushedImage;
}
void CScrollBarUI::SetRailPushedImage(LPCTSTR pStrImage)
{
m_sRailPushedImage = pStrImage;
Invalidate();
}
LPCTSTR CScrollBarUI::GetRailDisabledImage()
{
return m_sRailDisabledImage;
}
void CScrollBarUI::SetRailDisabledImage(LPCTSTR pStrImage)
{
m_sRailDisabledImage = pStrImage;
Invalidate();
}
LPCTSTR CScrollBarUI::GetBkNormalImage()
{
return m_sBkNormalImage;
}
void CScrollBarUI::SetBkNormalImage(LPCTSTR pStrImage)
{
m_sBkNormalImage = pStrImage;
Invalidate();
}
LPCTSTR CScrollBarUI::GetBkHotImage()
{
return m_sBkHotImage;
}
void CScrollBarUI::SetBkHotImage(LPCTSTR pStrImage)
{
m_sBkHotImage = pStrImage;
Invalidate();
}
LPCTSTR CScrollBarUI::GetBkPushedImage()
{
return m_sBkPushedImage;
}
void CScrollBarUI::SetBkPushedImage(LPCTSTR pStrImage)
{
m_sBkPushedImage = pStrImage;
Invalidate();
}
LPCTSTR CScrollBarUI::GetBkDisabledImage()
{
return m_sBkDisabledImage;
}
void CScrollBarUI::SetBkDisabledImage(LPCTSTR pStrImage)
{
m_sBkDisabledImage = pStrImage;
Invalidate();
}
void CScrollBarUI::SetPos(RECT rc)
{
CControlUI::SetPos(rc);
rc = m_rcItem;
if( m_bHorizontal ) {
int cx = rc.right - rc.left;
if( m_bShowButton1 ) cx -= m_cxyFixed.cy;
if( m_bShowButton2 ) cx -= m_cxyFixed.cy;
if( cx > m_cxyFixed.cy ) {
m_rcButton1.left = rc.left;
m_rcButton1.top = rc.top;
if( m_bShowButton1 ) {
m_rcButton1.right = rc.left + m_cxyFixed.cy;
m_rcButton1.bottom = rc.top + m_cxyFixed.cy;
}
else {
m_rcButton1.right = m_rcButton1.left;
m_rcButton1.bottom = m_rcButton1.top;
}
m_rcButton2.top = rc.top;
m_rcButton2.right = rc.right;
if( m_bShowButton2 ) {
m_rcButton2.left = rc.right - m_cxyFixed.cy;
m_rcButton2.bottom = rc.top + m_cxyFixed.cy;
}
else {
m_rcButton2.left = m_rcButton2.right;
m_rcButton2.bottom = m_rcButton2.top;
}
m_rcThumb.top = rc.top;
m_rcThumb.bottom = rc.top + m_cxyFixed.cy;
if( m_nRange > 0 ) {
int cxThumb = cx * (rc.right - rc.left) / (m_nRange + rc.right - rc.left);
if( cxThumb < m_cxyFixed.cy ) cxThumb = m_cxyFixed.cy;
m_rcThumb.left = m_nScrollPos * (cx - cxThumb) / m_nRange + m_rcButton1.right;
m_rcThumb.right = m_rcThumb.left + cxThumb;
if( m_rcThumb.right > m_rcButton2.left ) {
m_rcThumb.left = m_rcButton2.left - cxThumb;
m_rcThumb.right = m_rcButton2.left;
}
}
else {
m_rcThumb.left = m_rcButton1.right;
m_rcThumb.right = m_rcButton2.left;
}
}
else {
int cxButton = (rc.right - rc.left) / 2;
if( cxButton > m_cxyFixed.cy ) cxButton = m_cxyFixed.cy;
m_rcButton1.left = rc.left;
m_rcButton1.top = rc.top;
if( m_bShowButton1 ) {
m_rcButton1.right = rc.left + cxButton;
m_rcButton1.bottom = rc.top + m_cxyFixed.cy;
}
else {
m_rcButton1.right = m_rcButton1.left;
m_rcButton1.bottom = m_rcButton1.top;
}
m_rcButton2.top = rc.top;
m_rcButton2.right = rc.right;
if( m_bShowButton2 ) {
m_rcButton2.left = rc.right - cxButton;
m_rcButton2.bottom = rc.top + m_cxyFixed.cy;
}
else {
m_rcButton2.left = m_rcButton2.right;
m_rcButton2.bottom = m_rcButton2.top;
}
::ZeroMemory(&m_rcThumb, sizeof(m_rcThumb));
}
}
else {
int cy = rc.bottom - rc.top;
if( m_bShowButton1 ) cy -= m_cxyFixed.cx;
if( m_bShowButton2 ) cy -= m_cxyFixed.cx;
if( cy > m_cxyFixed.cx ) {
m_rcButton1.left = rc.left;
m_rcButton1.top = rc.top;
if( m_bShowButton1 ) {
m_rcButton1.right = rc.left + m_cxyFixed.cx;
m_rcButton1.bottom = rc.top + m_cxyFixed.cx;
}
else {
m_rcButton1.right = m_rcButton1.left;
m_rcButton1.bottom = m_rcButton1.top;
}
m_rcButton2.left = rc.left;
m_rcButton2.bottom = rc.bottom;
if( m_bShowButton2 ) {
m_rcButton2.top = rc.bottom - m_cxyFixed.cx;
m_rcButton2.right = rc.left + m_cxyFixed.cx;
}
else {
m_rcButton2.top = m_rcButton2.bottom;
m_rcButton2.right = m_rcButton2.left;
}
m_rcThumb.left = rc.left;
m_rcThumb.right = rc.left + m_cxyFixed.cx;
if( m_nRange > 0 ) {
int cyThumb = cy * (rc.bottom - rc.top) / (m_nRange + rc.bottom - rc.top);
if( cyThumb < m_cxyFixed.cx ) cyThumb = m_cxyFixed.cx;
m_rcThumb.top = m_nScrollPos * (cy - cyThumb) / m_nRange + m_rcButton1.bottom;
m_rcThumb.bottom = m_rcThumb.top + cyThumb;
if( m_rcThumb.bottom > m_rcButton2.top ) {
m_rcThumb.top = m_rcButton2.top - cyThumb;
m_rcThumb.bottom = m_rcButton2.top;
}
}
else {
m_rcThumb.top = m_rcButton1.bottom;
m_rcThumb.bottom = m_rcButton2.top;
}
}
else {
int cyButton = (rc.bottom - rc.top) / 2;
if( cyButton > m_cxyFixed.cx ) cyButton = m_cxyFixed.cx;
m_rcButton1.left = rc.left;
m_rcButton1.top = rc.top;
if( m_bShowButton1 ) {
m_rcButton1.right = rc.left + m_cxyFixed.cx;
m_rcButton1.bottom = rc.top + cyButton;
}
else {
m_rcButton1.right = m_rcButton1.left;
m_rcButton1.bottom = m_rcButton1.top;
}
m_rcButton2.left = rc.left;
m_rcButton2.bottom = rc.bottom;
if( m_bShowButton2 ) {
m_rcButton2.top = rc.bottom - cyButton;
m_rcButton2.right = rc.left + m_cxyFixed.cx;
}
else {
m_rcButton2.top = m_rcButton2.bottom;
m_rcButton2.right = m_rcButton2.left;
}
::ZeroMemory(&m_rcThumb, sizeof(m_rcThumb));
}
}
}
void CScrollBarUI::DoEvent(TEventUI& event)
{
if( !IsMouseEnabled() && event.Type > UIEVENT__MOUSEBEGIN && event.Type < UIEVENT__MOUSEEND ) {
if( m_pOwner != NULL ) m_pOwner->DoEvent(event);
else CControlUI::DoEvent(event);
return;
}
if( event.Type == UIEVENT_SETFOCUS )
{
return;
}
if( event.Type == UIEVENT_KILLFOCUS )
{
return;
}
if( event.Type == UIEVENT_BUTTONDOWN || event.Type == UIEVENT_DBLCLICK )
{
if( !IsEnabled() ) return;
m_nLastScrollOffset = 0;
m_nScrollRepeatDelay = 0;
m_pManager->SetTimer(this, DEFAULT_TIMERID, 50U);
if( ::PtInRect(&m_rcButton1, event.ptMouse) ) {
m_uButton1State |= UISTATE_PUSHED;
if( !m_bHorizontal ) {
if( m_pOwner != NULL ) m_pOwner->LineUp();
else SetScrollPos(m_nScrollPos - m_nLineSize);
}
else {
if( m_pOwner != NULL ) m_pOwner->LineLeft();
else SetScrollPos(m_nScrollPos - m_nLineSize);
}
}
else if( ::PtInRect(&m_rcButton2, event.ptMouse) ) {
m_uButton2State |= UISTATE_PUSHED;
if( !m_bHorizontal ) {
if( m_pOwner != NULL ) m_pOwner->LineDown();
else SetScrollPos(m_nScrollPos + m_nLineSize);
}
else {
if( m_pOwner != NULL ) m_pOwner->LineRight();
else SetScrollPos(m_nScrollPos + m_nLineSize);
}
}
else if( ::PtInRect(&m_rcThumb, event.ptMouse) ) {
m_uThumbState |= UISTATE_CAPTURED | UISTATE_PUSHED;
ptLastMouse = event.ptMouse;
m_nLastScrollPos = m_nScrollPos;
}
else {
if( !m_bHorizontal ) {
if( event.ptMouse.y < m_rcThumb.top ) {
if( m_pOwner != NULL ) m_pOwner->PageUp();
else SetScrollPos(m_nScrollPos + m_rcItem.top - m_rcItem.bottom);
}
else if ( event.ptMouse.y > m_rcThumb.bottom ){
if( m_pOwner != NULL ) m_pOwner->PageDown();
else SetScrollPos(m_nScrollPos - m_rcItem.top + m_rcItem.bottom);
}
}
else {
if( event.ptMouse.x < m_rcThumb.left ) {
if( m_pOwner != NULL ) m_pOwner->PageLeft();
else SetScrollPos(m_nScrollPos + m_rcItem.left - m_rcItem.right);
}
else if ( event.ptMouse.x > m_rcThumb.right ){
if( m_pOwner != NULL ) m_pOwner->PageRight();
else SetScrollPos(m_nScrollPos - m_rcItem.left + m_rcItem.right);
}
}
}
if( m_pManager != NULL && m_pOwner == NULL ) m_pManager->SendNotify(this, _T("scroll"));
return;
}
if( event.Type == UIEVENT_BUTTONUP )
{
m_nScrollRepeatDelay = 0;
m_nLastScrollOffset = 0;
m_pManager->KillTimer(this, DEFAULT_TIMERID);
if( (m_uThumbState & UISTATE_CAPTURED) != 0 ) {
m_uThumbState &= ~( UISTATE_CAPTURED | UISTATE_PUSHED );
Invalidate();
}
else if( (m_uButton1State & UISTATE_PUSHED) != 0 ) {
m_uButton1State &= ~UISTATE_PUSHED;
Invalidate();
}
else if( (m_uButton2State & UISTATE_PUSHED) != 0 ) {
m_uButton2State &= ~UISTATE_PUSHED;
Invalidate();
}
return;
}
if( event.Type == UIEVENT_MOUSEMOVE )
{
if( (m_uThumbState & UISTATE_CAPTURED) != 0 ) {
if( !m_bHorizontal ) {
m_nLastScrollOffset = (event.ptMouse.y - ptLastMouse.y) * m_nRange / \
(m_rcItem.bottom - m_rcItem.top - m_rcThumb.bottom + m_rcThumb.top - 2 * m_cxyFixed.cx);
}
else {
m_nLastScrollOffset = (event.ptMouse.x - ptLastMouse.x) * m_nRange / \
(m_rcItem.right - m_rcItem.left - m_rcThumb.right + m_rcThumb.left - 2 * m_cxyFixed.cy);
}
}
else {
if( (m_uThumbState & UISTATE_HOT) != 0 ) {
if( !::PtInRect(&m_rcThumb, event.ptMouse) ) {
m_uThumbState &= ~UISTATE_HOT;
Invalidate();
}
}
else {
if( !IsEnabled() ) return;
if( ::PtInRect(&m_rcThumb, event.ptMouse) ) {
m_uThumbState |= UISTATE_HOT;
Invalidate();
}
}
}
return;
}
if( event.Type == UIEVENT_CONTEXTMENU )
{
return;
}
if( event.Type == UIEVENT_TIMER && event.wParam == DEFAULT_TIMERID )
{
++m_nScrollRepeatDelay;
if( (m_uThumbState & UISTATE_CAPTURED) != 0 ) {
if( !m_bHorizontal ) {
if( m_pOwner != NULL ) m_pOwner->SetScrollPos(CSize(m_pOwner->GetScrollPos().cx, \
m_nLastScrollPos + m_nLastScrollOffset));
else SetScrollPos(m_nLastScrollPos + m_nLastScrollOffset);
}
else {
if( m_pOwner != NULL ) m_pOwner->SetScrollPos(CSize(m_nLastScrollPos + m_nLastScrollOffset, \
m_pOwner->GetScrollPos().cy));
else SetScrollPos(m_nLastScrollPos + m_nLastScrollOffset);
}
Invalidate();
}
else if( (m_uButton1State & UISTATE_PUSHED) != 0 ) {
if( m_nScrollRepeatDelay <= 5 ) return;
if( !m_bHorizontal ) {
if( m_pOwner != NULL ) m_pOwner->LineUp();
else SetScrollPos(m_nScrollPos - m_nLineSize);
}
else {
if( m_pOwner != NULL ) m_pOwner->LineLeft();
else SetScrollPos(m_nScrollPos - m_nLineSize);
}
}
else if( (m_uButton2State & UISTATE_PUSHED) != 0 ) {
if( m_nScrollRepeatDelay <= 5 ) return;
if( !m_bHorizontal ) {
if( m_pOwner != NULL ) m_pOwner->LineDown();
else SetScrollPos(m_nScrollPos + m_nLineSize);
}
else {
if( m_pOwner != NULL ) m_pOwner->LineRight();
else SetScrollPos(m_nScrollPos + m_nLineSize);
}
}
else {
if( m_nScrollRepeatDelay <= 5 ) return;
POINT pt = { 0 };
::GetCursorPos(&pt);
::ScreenToClient(m_pManager->GetPaintWindow(), &pt);
if( !m_bHorizontal ) {
if( pt.y < m_rcThumb.top ) {
if( m_pOwner != NULL ) m_pOwner->PageUp();
else SetScrollPos(m_nScrollPos + m_rcItem.top - m_rcItem.bottom);
}
else if ( pt.y > m_rcThumb.bottom ){
if( m_pOwner != NULL ) m_pOwner->PageDown();
else SetScrollPos(m_nScrollPos - m_rcItem.top + m_rcItem.bottom);
}
}
else {
if( pt.x < m_rcThumb.left ) {
if( m_pOwner != NULL ) m_pOwner->PageLeft();
else SetScrollPos(m_nScrollPos + m_rcItem.left - m_rcItem.right);
}
else if ( pt.x > m_rcThumb.right ){
if( m_pOwner != NULL ) m_pOwner->PageRight();
else SetScrollPos(m_nScrollPos - m_rcItem.left + m_rcItem.right);
}
}
}
if( m_pManager != NULL && m_pOwner == NULL ) m_pManager->SendNotify(this, _T("scroll"));
return;
}
if( event.Type == UIEVENT_MOUSEENTER )
{
if( IsEnabled() ) {
m_uButton1State |= UISTATE_HOT;
m_uButton2State |= UISTATE_HOT;
if( ::PtInRect(&m_rcThumb, event.ptMouse) ) m_uThumbState |= UISTATE_HOT;
Invalidate();
}
return;
}
if( event.Type == UIEVENT_MOUSELEAVE )
{
if( IsEnabled() ) {
m_uButton1State &= ~UISTATE_HOT;
m_uButton2State &= ~UISTATE_HOT;
m_uThumbState &= ~UISTATE_HOT;
Invalidate();
}
return;
}
if( m_pOwner != NULL ) m_pOwner->DoEvent(event); else CControlUI::DoEvent(event);
}
void CScrollBarUI::SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue)
{
if( _tcscmp(pstrName, _T("button1normalimage")) == 0 ) SetButton1NormalImage(pstrValue);
else if( _tcscmp(pstrName, _T("button1hotimage")) == 0 ) SetButton1HotImage(pstrValue);
else if( _tcscmp(pstrName, _T("button1pushedimage")) == 0 ) SetButton1PushedImage(pstrValue);
else if( _tcscmp(pstrName, _T("button1disabledimage")) == 0 ) SetButton1DisabledImage(pstrValue);
else if( _tcscmp(pstrName, _T("button2normalimage")) == 0 ) SetButton2NormalImage(pstrValue);
else if( _tcscmp(pstrName, _T("button2hotimage")) == 0 ) SetButton2HotImage(pstrValue);
else if( _tcscmp(pstrName, _T("button2pushedimage")) == 0 ) SetButton2PushedImage(pstrValue);
else if( _tcscmp(pstrName, _T("button2disabledimage")) == 0 ) SetButton2DisabledImage(pstrValue);
else if( _tcscmp(pstrName, _T("thumbnormalimage")) == 0 ) SetThumbNormalImage(pstrValue);
else if( _tcscmp(pstrName, _T("thumbhotimage")) == 0 ) SetThumbHotImage(pstrValue);
else if( _tcscmp(pstrName, _T("thumbpushedimage")) == 0 ) SetThumbPushedImage(pstrValue);
else if( _tcscmp(pstrName, _T("thumbdisabledimage")) == 0 ) SetThumbDisabledImage(pstrValue);
else if( _tcscmp(pstrName, _T("railnormalimage")) == 0 ) SetRailNormalImage(pstrValue);
else if( _tcscmp(pstrName, _T("railhotimage")) == 0 ) SetRailHotImage(pstrValue);
else if( _tcscmp(pstrName, _T("railpushedimage")) == 0 ) SetRailPushedImage(pstrValue);
else if( _tcscmp(pstrName, _T("raildisabledimage")) == 0 ) SetRailDisabledImage(pstrValue);
else if( _tcscmp(pstrName, _T("bknormalimage")) == 0 ) SetBkNormalImage(pstrValue);
else if( _tcscmp(pstrName, _T("bkhotimage")) == 0 ) SetBkHotImage(pstrValue);
else if( _tcscmp(pstrName, _T("bkpushedimage")) == 0 ) SetBkPushedImage(pstrValue);
else if( _tcscmp(pstrName, _T("bkdisabledimage")) == 0 ) SetBkDisabledImage(pstrValue);
else if( _tcscmp(pstrName, _T("hor")) == 0 ) SetHorizontal(_tcscmp(pstrValue, _T("true")) == 0);
else if( _tcscmp(pstrName, _T("linesize")) == 0 ) SetLineSize(_ttoi(pstrValue));
else if( _tcscmp(pstrName, _T("range")) == 0 ) SetScrollRange(_ttoi(pstrValue));
else if( _tcscmp(pstrName, _T("value")) == 0 ) SetScrollPos(_ttoi(pstrValue));
else if( _tcscmp(pstrName, _T("showbutton1")) == 0 ) SetShowButton1(_tcscmp(pstrValue, _T("true")) == 0);
else if( _tcscmp(pstrName, _T("showbutton2")) == 0 ) SetShowButton2(_tcscmp(pstrValue, _T("true")) == 0);
else CControlUI::SetAttribute(pstrName, pstrValue);
}
void CScrollBarUI::DoPaint(HDC hDC, const RECT& rcPaint)
{
if( !::IntersectRect(&m_rcPaint, &rcPaint, &m_rcItem) ) return;
PaintBk(hDC);
PaintButton1(hDC);
PaintButton2(hDC);
PaintThumb(hDC);
PaintRail(hDC);
}
void CScrollBarUI::PaintBk(HDC hDC)
{
if( !IsEnabled() ) m_uThumbState |= UISTATE_DISABLED;
else m_uThumbState &= ~ UISTATE_DISABLED;
if( (m_uThumbState & UISTATE_DISABLED) != 0 ) {
if( !m_sBkDisabledImage.IsEmpty() ) {
if( !DrawImage(hDC, (LPCTSTR)m_sBkDisabledImage) ) m_sBkDisabledImage.Empty();
else return;
}
}
else if( (m_uThumbState & UISTATE_PUSHED) != 0 ) {
if( !m_sBkPushedImage.IsEmpty() ) {
if( !DrawImage(hDC, (LPCTSTR)m_sBkPushedImage) ) m_sBkPushedImage.Empty();
else return;
}
}
else if( (m_uThumbState & UISTATE_HOT) != 0 ) {
if( !m_sBkHotImage.IsEmpty() ) {
if( !DrawImage(hDC, (LPCTSTR)m_sBkHotImage) ) m_sBkHotImage.Empty();
else return;
}
}
if( !m_sBkNormalImage.IsEmpty() ) {
if( !DrawImage(hDC, (LPCTSTR)m_sBkNormalImage) ) m_sBkNormalImage.Empty();
else return;
}
}
void CScrollBarUI::PaintButton1(HDC hDC)
{
if( !m_bShowButton1 ) return;
if( !IsEnabled() ) m_uButton1State |= UISTATE_DISABLED;
else m_uButton1State &= ~ UISTATE_DISABLED;
m_sImageModify.Empty();
m_sImageModify.SmallFormat(_T("dest='%d,%d,%d,%d'"), m_rcButton1.left - m_rcItem.left, \
m_rcButton1.top - m_rcItem.top, m_rcButton1.right - m_rcItem.left, m_rcButton1.bottom - m_rcItem.top);
if( (m_uButton1State & UISTATE_DISABLED) != 0 ) {
if( !m_sButton1DisabledImage.IsEmpty() ) {
if( !DrawImage(hDC, (LPCTSTR)m_sButton1DisabledImage, (LPCTSTR)m_sImageModify) ) m_sButton1DisabledImage.Empty();
else return;
}
}
else if( (m_uButton1State & UISTATE_PUSHED) != 0 ) {
if( !m_sButton1PushedImage.IsEmpty() ) {
if( !DrawImage(hDC, (LPCTSTR)m_sButton1PushedImage, (LPCTSTR)m_sImageModify) ) m_sButton1PushedImage.Empty();
else return;
}
}
else if( (m_uButton1State & UISTATE_HOT) != 0 ) {
if( !m_sButton1HotImage.IsEmpty() ) {
if( !DrawImage(hDC, (LPCTSTR)m_sButton1HotImage, (LPCTSTR)m_sImageModify) ) m_sButton1HotImage.Empty();
else return;
}
}
if( !m_sButton1NormalImage.IsEmpty() ) {
if( !DrawImage(hDC, (LPCTSTR)m_sButton1NormalImage, (LPCTSTR)m_sImageModify) ) m_sButton1NormalImage.Empty();
else return;
}
DWORD dwBorderColor = 0xFF85E4FF;
int nBorderSize = 2;
CRenderEngine::DrawRect(hDC, m_rcButton1, nBorderSize, dwBorderColor);
}
void CScrollBarUI::PaintButton2(HDC hDC)
{
if( !m_bShowButton2 ) return;
if( !IsEnabled() ) m_uButton2State |= UISTATE_DISABLED;
else m_uButton2State &= ~ UISTATE_DISABLED;
m_sImageModify.Empty();
m_sImageModify.SmallFormat(_T("dest='%d,%d,%d,%d'"), m_rcButton2.left - m_rcItem.left, \
m_rcButton2.top - m_rcItem.top, m_rcButton2.right - m_rcItem.left, m_rcButton2.bottom - m_rcItem.top);
if( (m_uButton2State & UISTATE_DISABLED) != 0 ) {
if( !m_sButton2DisabledImage.IsEmpty() ) {
if( !DrawImage(hDC, (LPCTSTR)m_sButton2DisabledImage, (LPCTSTR)m_sImageModify) ) m_sButton2DisabledImage.Empty();
else return;
}
}
else if( (m_uButton2State & UISTATE_PUSHED) != 0 ) {
if( !m_sButton2PushedImage.IsEmpty() ) {
if( !DrawImage(hDC, (LPCTSTR)m_sButton2PushedImage, (LPCTSTR)m_sImageModify) ) m_sButton2PushedImage.Empty();
else return;
}
}
else if( (m_uButton2State & UISTATE_HOT) != 0 ) {
if( !m_sButton2HotImage.IsEmpty() ) {
if( !DrawImage(hDC, (LPCTSTR)m_sButton2HotImage, (LPCTSTR)m_sImageModify) ) m_sButton2HotImage.Empty();
else return;
}
}
if( !m_sButton2NormalImage.IsEmpty() ) {
if( !DrawImage(hDC, (LPCTSTR)m_sButton2NormalImage, (LPCTSTR)m_sImageModify) ) m_sButton2NormalImage.Empty();
else return;
}
DWORD dwBorderColor = 0xFF85E4FF;
int nBorderSize = 2;
CRenderEngine::DrawRect(hDC, m_rcButton2, nBorderSize, dwBorderColor);
}
void CScrollBarUI::PaintThumb(HDC hDC)
{
if( m_rcThumb.left == 0 && m_rcThumb.top == 0 && m_rcThumb.right == 0 && m_rcThumb.bottom == 0 ) return;
if( !IsEnabled() ) m_uThumbState |= UISTATE_DISABLED;
else m_uThumbState &= ~ UISTATE_DISABLED;
m_sImageModify.Empty();
m_sImageModify.SmallFormat(_T("dest='%d,%d,%d,%d'"), m_rcThumb.left - m_rcItem.left, \
m_rcThumb.top - m_rcItem.top, m_rcThumb.right - m_rcItem.left, m_rcThumb.bottom - m_rcItem.top);
if( (m_uThumbState & UISTATE_DISABLED) != 0 ) {
if( !m_sThumbDisabledImage.IsEmpty() ) {
if( !DrawImage(hDC, (LPCTSTR)m_sThumbDisabledImage, (LPCTSTR)m_sImageModify) ) m_sThumbDisabledImage.Empty();
else return;
}
}
else if( (m_uThumbState & UISTATE_PUSHED) != 0 ) {
if( !m_sThumbPushedImage.IsEmpty() ) {
if( !DrawImage(hDC, (LPCTSTR)m_sThumbPushedImage, (LPCTSTR)m_sImageModify) ) m_sThumbPushedImage.Empty();
else return;
}
}
else if( (m_uThumbState & UISTATE_HOT) != 0 ) {
if( !m_sThumbHotImage.IsEmpty() ) {
if( !DrawImage(hDC, (LPCTSTR)m_sThumbHotImage, (LPCTSTR)m_sImageModify) ) m_sThumbHotImage.Empty();
else return;
}
}
if( !m_sThumbNormalImage.IsEmpty() ) {
if( !DrawImage(hDC, (LPCTSTR)m_sThumbNormalImage, (LPCTSTR)m_sImageModify) ) m_sThumbNormalImage.Empty();
else return;
}
DWORD dwBorderColor = 0xFF85E4FF;
int nBorderSize = 2;
CRenderEngine::DrawRect(hDC, m_rcThumb, nBorderSize, dwBorderColor);
}
void CScrollBarUI::PaintRail(HDC hDC)
{
if( m_rcThumb.left == 0 && m_rcThumb.top == 0 && m_rcThumb.right == 0 && m_rcThumb.bottom == 0 ) return;
if( !IsEnabled() ) m_uThumbState |= UISTATE_DISABLED;
else m_uThumbState &= ~ UISTATE_DISABLED;
m_sImageModify.Empty();
if( !m_bHorizontal ) {
m_sImageModify.SmallFormat(_T("dest='%d,%d,%d,%d'"), m_rcThumb.left - m_rcItem.left, \
(m_rcThumb.top + m_rcThumb.bottom) / 2 - m_rcItem.top - m_cxyFixed.cx / 2, \
m_rcThumb.right - m_rcItem.left, \
(m_rcThumb.top + m_rcThumb.bottom) / 2 - m_rcItem.top + m_cxyFixed.cx - m_cxyFixed.cx / 2);
}
else {
m_sImageModify.SmallFormat(_T("dest='%d,%d,%d,%d'"), \
(m_rcThumb.left + m_rcThumb.right) / 2 - m_rcItem.left - m_cxyFixed.cy / 2, \
m_rcThumb.top - m_rcItem.top, \
(m_rcThumb.left + m_rcThumb.right) / 2 - m_rcItem.left + m_cxyFixed.cy - m_cxyFixed.cy / 2, \
m_rcThumb.bottom - m_rcItem.top);
}
if( (m_uThumbState & UISTATE_DISABLED) != 0 ) {
if( !m_sRailDisabledImage.IsEmpty() ) {
if( !DrawImage(hDC, (LPCTSTR)m_sRailDisabledImage, (LPCTSTR)m_sImageModify) ) m_sRailDisabledImage.Empty();
else return;
}
}
else if( (m_uThumbState & UISTATE_PUSHED) != 0 ) {
if( !m_sRailPushedImage.IsEmpty() ) {
if( !DrawImage(hDC, (LPCTSTR)m_sRailPushedImage, (LPCTSTR)m_sImageModify) ) m_sRailPushedImage.Empty();
else return;
}
}
else if( (m_uThumbState & UISTATE_HOT) != 0 ) {
if( !m_sRailHotImage.IsEmpty() ) {
if( !DrawImage(hDC, (LPCTSTR)m_sRailHotImage, (LPCTSTR)m_sImageModify) ) m_sRailHotImage.Empty();
else return;
}
}
if( !m_sRailNormalImage.IsEmpty() ) {
if( !DrawImage(hDC, (LPCTSTR)m_sRailNormalImage, (LPCTSTR)m_sImageModify) ) m_sRailNormalImage.Empty();
else return;
}
}
//////////////////////////////////////////////////////////////////////////
//
LPCTSTR CCheckBoxUI::GetClass() const
{
return _T("CheckBoxUI");
}
void CCheckBoxUI::SetCheck(bool bCheck)
{
Selected(bCheck);
}
bool CCheckBoxUI::GetCheck() const
{
return IsSelected();
}
//////////////////////////////////////////////////////////////////////////
//
CComboBoxUI::CComboBoxUI()
{
m_nArrowWidth = 0;
}
LPCTSTR CComboBoxUI::GetClass() const
{
return _T("ComboBoxUI");
}
void CComboBoxUI::SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue)
{
if (_tcscmp(pstrName, _T("arrowimage")) == 0)
m_sArrowImage = pstrValue;
else
CComboUI::SetAttribute(pstrName, pstrValue);
}
void CComboBoxUI::PaintStatusImage(HDC hDC)
{
if (m_sArrowImage.IsEmpty())
CComboUI::PaintStatusImage(hDC);
else
{
// get index
if( IsFocused() ) m_uButtonState |= UISTATE_FOCUSED;
else m_uButtonState &= ~ UISTATE_FOCUSED;
if( !IsEnabled() ) m_uButtonState |= UISTATE_DISABLED;
else m_uButtonState &= ~ UISTATE_DISABLED;
int nIndex = 0;
if ((m_uButtonState & UISTATE_DISABLED) != 0)
nIndex = 4;
else if ((m_uButtonState & UISTATE_PUSHED) != 0)
nIndex = 2;
else if ((m_uButtonState & UISTATE_HOT) != 0)
nIndex = 1;
else if ((m_uButtonState & UISTATE_FOCUSED) != 0)
nIndex = 3;
// make modify string
CStdString sModify = m_sArrowImage;
int nPos1 = sModify.Find(_T("source"));
int nPos2 = sModify.Find(_T("'"), nPos1 + 7);
if (nPos2 == -1) return; //first
int nPos3 = sModify.Find(_T("'"), nPos2 + 1);
if (nPos3 == -1) return; //second
CRect rcBmpPart;
LPTSTR lpszValue = NULL;
rcBmpPart.left = _tcstol(sModify.GetData() + nPos2 + 1, &lpszValue, 10); ASSERT(lpszValue);
rcBmpPart.top = _tcstol(lpszValue + 1, &lpszValue, 10); ASSERT(lpszValue);
rcBmpPart.right = _tcstol(lpszValue + 1, &lpszValue, 10); ASSERT(lpszValue);
rcBmpPart.bottom = _tcstol(lpszValue + 1, &lpszValue, 10); ASSERT(lpszValue);
m_nArrowWidth = rcBmpPart.GetWidth() / 5;
rcBmpPart.left += nIndex * m_nArrowWidth;
rcBmpPart.right = rcBmpPart.left + m_nArrowWidth;
CRect rcDest(0, 0, m_rcItem.right - m_rcItem.left, m_rcItem.bottom - m_rcItem.top);
rcDest.Deflate(GetBorderSize(), GetBorderSize());
rcDest.left = rcDest.right - m_nArrowWidth;
CStdString sSource = sModify.Mid(nPos1, nPos3 + 1 - nPos1);
CStdString sReplace;
sReplace.SmallFormat(_T("source='%d,%d,%d,%d' dest='%d,%d,%d,%d'"),
rcBmpPart.left, rcBmpPart.top, rcBmpPart.right, rcBmpPart.bottom,
rcDest.left, rcDest.top, rcDest.right, rcDest.bottom);
sModify.Replace(sSource, sReplace);
// draw image
if (!DrawImage(hDC, m_sArrowImage, sModify))
m_sNormalImage.Empty();
}
}
void CComboBoxUI::PaintText(HDC hDC)
{
RECT rcText = m_rcItem;
rcText.left += m_rcTextPadding.left;
rcText.right -= m_rcTextPadding.right;
rcText.top += m_rcTextPadding.top;
rcText.bottom -= m_rcTextPadding.bottom;
rcText.right -= m_nArrowWidth; // add this line than CComboUI::PaintText(HDC hDC)
if( m_iCurSel >= 0 ) {
CControlUI* pControl = static_cast<CControlUI*>(m_items[m_iCurSel]);
IListItemUI* pElement = static_cast<IListItemUI*>(pControl->GetInterface(_T("ListItem")));
if( pElement != NULL ) {
pElement->DrawItemText(hDC, rcText);
}
else {
RECT rcOldPos = pControl->GetPos();
pControl->SetPos(rcText);
pControl->DoPaint(hDC, rcText);
pControl->SetPos(rcOldPos);
}
}
}
//////////////////////////////////////////////////////////////////////////
//
//CDateTimeUI::m_nDTUpdateFlag
#define DT_NONE 0
#define DT_UPDATE 1
#define DT_DELETE 2
#define DT_KEEP 3
class CDateTimeWnd : public CWindowWnd
{
public:
CDateTimeWnd();
void Init(CDateTimeUI* pOwner);
RECT CalPos();
LPCTSTR GetWindowClassName() const;
LPCTSTR GetSuperClassName() const;
void OnFinalMessage(HWND hWnd);
LRESULT HandleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam);
LRESULT OnKillFocus(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
//LRESULT OnEditChanged(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
protected:
CDateTimeUI* m_pOwner;
HBRUSH m_hBkBrush;
bool m_bInit;
};
CDateTimeWnd::CDateTimeWnd() : m_pOwner(NULL), m_hBkBrush(NULL), m_bInit(false)
{
}
void CDateTimeWnd::Init(CDateTimeUI* pOwner)
{
m_pOwner = pOwner;
m_pOwner->m_nDTUpdateFlag = DT_NONE;
if (m_hWnd == NULL)
{
RECT rcPos = CalPos();
UINT uStyle = WS_CHILD;
Create(m_pOwner->GetManager()->GetPaintWindow(), NULL, uStyle, 0, rcPos);
SetWindowFont(m_hWnd, m_pOwner->GetManager()->GetFontInfo(m_pOwner->GetFont())->hFont, TRUE);
}
if (m_pOwner->GetText().IsEmpty())
::GetLocalTime(&m_pOwner->m_sysTime);
::SendMessage(m_hWnd, DTM_SETSYSTEMTIME, 0, (LPARAM)&m_pOwner->m_sysTime);
::ShowWindow(m_hWnd, SW_SHOWNOACTIVATE);
::SetFocus(m_hWnd);
m_bInit = true;
}
RECT CDateTimeWnd::CalPos()
{
CRect rcPos = m_pOwner->GetPos();
return rcPos;
}
LPCTSTR CDateTimeWnd::GetWindowClassName() const
{
return _T("DateTimeWnd");
}
LPCTSTR CDateTimeWnd::GetSuperClassName() const
{
return DATETIMEPICK_CLASS;
}
void CDateTimeWnd::OnFinalMessage(HWND /*hWnd*/)
{
// Clear reference and die
if( m_hBkBrush != NULL ) ::DeleteObject(m_hBkBrush);
m_pOwner->m_pWindow = NULL;
delete this;
}
LRESULT CDateTimeWnd::HandleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam)
{
LRESULT lRes = 0;
BOOL bHandled = TRUE;
if( uMsg == WM_KILLFOCUS )
{
lRes = OnKillFocus(uMsg, wParam, lParam, bHandled);
}
else if (uMsg == WM_KEYUP && (wParam == VK_DELETE || wParam == VK_BACK))
{
LRESULT lRes = ::DefWindowProc(m_hWnd, uMsg, wParam, lParam);
m_pOwner->m_nDTUpdateFlag = DT_DELETE;
m_pOwner->UpdateText();
PostMessage(WM_CLOSE);
return lRes;
}
else if (uMsg == WM_KEYUP && wParam == VK_ESCAPE)
{
LRESULT lRes = ::DefWindowProc(m_hWnd, uMsg, wParam, lParam);
m_pOwner->m_nDTUpdateFlag = DT_KEEP;
PostMessage(WM_CLOSE);
return lRes;
}
// else if( uMsg == OCM_COMMAND ) {
// if( GET_WM_COMMAND_CMD(wParam, lParam) == EN_CHANGE ) lRes = OnEditChanged(uMsg, wParam, lParam, bHandled);
// else if( GET_WM_COMMAND_CMD(wParam, lParam) == EN_UPDATE ) {
// RECT rcClient;
// ::GetClientRect(m_hWnd, &rcClient);
// ::InvalidateRect(m_hWnd, &rcClient, FALSE);
// }
// }
// else if( uMsg == WM_KEYDOWN && TCHAR(wParam) == VK_RETURN ) {
// m_pOwner->GetManager()->SendNotify(m_pOwner, _T("return"));
// }
// else if( uMsg == OCM__BASE + WM_CTLCOLOREDIT || uMsg == OCM__BASE + WM_CTLCOLORSTATIC ) {
// if( m_pOwner->GetNativeEditBkColor() == 0xFFFFFFFF ) return NULL;
// ::SetBkMode((HDC)wParam, TRANSPARENT);
// DWORD dwTextColor = m_pOwner->GetTextColor();
// ::SetTextColor((HDC)wParam, RGB(GetBValue(dwTextColor),GetGValue(dwTextColor),GetRValue(dwTextColor)));
// if( m_hBkBrush == NULL ) {
// DWORD clrColor = m_pOwner->GetNativeEditBkColor();
// m_hBkBrush = ::CreateSolidBrush(RGB(GetBValue(clrColor), GetGValue(clrColor), GetRValue(clrColor)));
// }
// return (LRESULT)m_hBkBrush;
// }
else bHandled = FALSE;
if( !bHandled ) return CWindowWnd::HandleMessage(uMsg, wParam, lParam);
return lRes;
}
LRESULT CDateTimeWnd::OnKillFocus(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
LRESULT lRes = ::DefWindowProc(m_hWnd, uMsg, wParam, lParam);
if (m_pOwner->m_nDTUpdateFlag == DT_NONE)
{
::SendMessage(m_hWnd, DTM_GETSYSTEMTIME, 0, (LPARAM)&m_pOwner->m_sysTime);
m_pOwner->m_nDTUpdateFlag = DT_UPDATE;
m_pOwner->UpdateText();
}
PostMessage(WM_CLOSE);
return lRes;
}
// LRESULT CDateTimeWnd::OnEditChanged(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
// {
// if( !m_bInit ) return 0;
// if( m_pOwner == NULL ) return 0;
// // Copy text back
// int cchLen = ::GetWindowTextLength(m_hWnd) + 1;
// LPTSTR pstr = static_cast<LPTSTR>(_alloca(cchLen * sizeof(TCHAR)));
// ASSERT(pstr);
// if( pstr == NULL ) return 0;
// ::GetWindowText(m_hWnd, pstr, cchLen);
// m_pOwner->m_sText = pstr;
// m_pOwner->GetManager()->SendNotify(m_pOwner, _T("textchanged"));
// return 0;
// }
//////////////////////////////////////////////////////////////////////////
//
CDateTimeUI::CDateTimeUI()
{
::GetLocalTime(&m_sysTime);
m_bReadOnly = false;
m_pWindow = NULL;
m_nDTUpdateFlag=DT_UPDATE;
UpdateText(); // add by:daviyang35 初始化界面时显示时间
m_nDTUpdateFlag = DT_NONE;
}
LPCTSTR CDateTimeUI::GetClass() const
{
return _T("DateTimeUI");
}
LPVOID CDateTimeUI::GetInterface(LPCTSTR pstrName)
{
if( _tcscmp(pstrName, _T("DateTime")) == 0 ) return static_cast<CDateTimeUI*>(this);
return CLabelUI::GetInterface(pstrName);
}
SYSTEMTIME& CDateTimeUI::GetTime()
{
return m_sysTime;
}
void CDateTimeUI::SetTime(SYSTEMTIME* pst)
{
m_sysTime = *pst;
Invalidate();
}
void CDateTimeUI::SetReadOnly(bool bReadOnly)
{
m_bReadOnly = bReadOnly;
Invalidate();
}
bool CDateTimeUI::IsReadOnly() const
{
return m_bReadOnly;
}
void CDateTimeUI::UpdateText()
{
if (m_nDTUpdateFlag == DT_DELETE)
SetText(_T(""));
else if (m_nDTUpdateFlag == DT_UPDATE)
{
CStdString sText;
sText.SmallFormat(_T("%4d-%02d-%02d"),
m_sysTime.wYear, m_sysTime.wMonth, m_sysTime.wDay, m_sysTime.wHour, m_sysTime.wMinute);
SetText(sText);
}
}
void CDateTimeUI::DoEvent(TEventUI& event)
{
if( !IsMouseEnabled() && event.Type > UIEVENT__MOUSEBEGIN && event.Type < UIEVENT__MOUSEEND ) {
if( m_pParent != NULL ) m_pParent->DoEvent(event);
else CLabelUI::DoEvent(event);
return;
}
if( event.Type == UIEVENT_SETCURSOR && IsEnabled() )
{
::SetCursor(::LoadCursor(NULL, MAKEINTRESOURCE(IDC_IBEAM)));
return;
}
if( event.Type == UIEVENT_WINDOWSIZE )
{
if( m_pWindow != NULL ) m_pManager->SetFocusNeeded(this);
}
if( event.Type == UIEVENT_SCROLLWHEEL )
{
if( m_pWindow != NULL ) return;
}
if( event.Type == UIEVENT_SETFOCUS && IsEnabled() )
{
if( m_pWindow ) return;
m_pWindow = new CDateTimeWnd();
ASSERT(m_pWindow);
m_pWindow->Init(this);
m_pWindow->ShowWindow();
}
if( event.Type == UIEVENT_KILLFOCUS && IsEnabled() )
{
Invalidate();
}
if( event.Type == UIEVENT_BUTTONDOWN || event.Type == UIEVENT_DBLCLICK || event.Type == UIEVENT_RBUTTONDOWN)
{
if( IsEnabled() ) {
GetManager()->ReleaseCapture();
if( IsFocused() && m_pWindow == NULL )
{
m_pWindow = new CDateTimeWnd();
ASSERT(m_pWindow);
}
if( m_pWindow != NULL )
{
m_pWindow->Init(this);
m_pWindow->ShowWindow();
}
}
return;
}
if( event.Type == UIEVENT_MOUSEMOVE )
{
return;
}
if( event.Type == UIEVENT_BUTTONUP )
{
return;
}
if( event.Type == UIEVENT_CONTEXTMENU )
{
return;
}
if( event.Type == UIEVENT_MOUSEENTER )
{
return;
}
if( event.Type == UIEVENT_MOUSELEAVE )
{
return;
}
CLabelUI::DoEvent(event);
}
} // namespace DuiLib
| [
"8304432@qq.com"
] | 8304432@qq.com |
e509ddf21f145578c9d6714757aa1ec4dc503528 | 51151c33a684744a9b9a5b398a8622b502e634c6 | /Tries and Huffman Coding/SearchInTrees.cpp | cd7a67628d9b748c0e9f18601c1b611d1a35b40b | [] | no_license | kartikmadan26/Coding_Ninjas_Data_Sturctures_in_Cpp | 356ef7701ae4175b67506d3e8922575dc5c65887 | 115ab8e6f0f884bb92a1606a3bfe11e509a31063 | refs/heads/master | 2023-08-24T08:47:09.537574 | 2021-09-27T06:54:04 | 2021-09-27T06:54:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,598 | cpp | class TrieNode {
public: char data;
TrieNode **children;
bool isTerminal;
TrieNode(char data) {
this->data = data;
children = new TrieNode *[26];
for (int i = 0; i < 26; i++) {
children[i] = NULL;
}
isTerminal = false;
}
};
class Trie {
TrieNode *root;
public: Trie() {
root = new TrieNode('\0');
}
void insertWord(TrieNode *root, string word) {
// Base case
if (word.size() == 0) {
root->isTerminal = true;
return;
}
// Small calculation
int index = word[0] - 'a';
TrieNode *child;
if (root->children[index] != NULL) {
child = root->children[index];
}
else {
child = new TrieNode(word[0]);
root->children[index] = child;
}
// Recursive call
insertWord(child, word.substr(1));
}
void insertWord(string word) {
insertWord(root, word);
}
bool search(TrieNode *root, string word) {
if (word.size() == 0) {
return root->isTerminal;
}
// Small calculation
int index = word[0] - 'a';
TrieNode *child;
if (root->children[index] != NULL) {
child = root->children[index];
}
else {
return false;
}
// Recursive call
return search(child, word.substr(1));
}
bool search(string word) {
return search(root, word);
}
};
| [
"noreply@github.com"
] | kartikmadan26.noreply@github.com |
401816c69fa4e8e54f57edf94f338e8580f522a3 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/CMake/CMake-gumtree/Kitware_CMake_repos_basic_block_block_21404.cpp | 5ccfe9cfcb3bace430e813a23455b8ea60ffc8c2 | [] | 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 | 2,551 | cpp | {
struct sockaddr* sa;
ULONG prefix_len;
sa = unicast_address->Address.lpSockaddr;
/* XP has no OnLinkPrefixLength field. */
if (is_vista_or_greater) {
prefix_len =
((IP_ADAPTER_UNICAST_ADDRESS_LH*) unicast_address)->OnLinkPrefixLength;
} else {
/* Prior to Windows Vista the FirstPrefix pointed to the list with
* single prefix for each IP address assigned to the adapter.
* Order of FirstPrefix does not match order of FirstUnicastAddress,
* so we need to find corresponding prefix.
*/
IP_ADAPTER_PREFIX* prefix;
prefix_len = 0;
for (prefix = adapter->FirstPrefix; prefix; prefix = prefix->Next) {
/* We want the longest matching prefix. */
if (prefix->Address.lpSockaddr->sa_family != sa->sa_family ||
prefix->PrefixLength <= prefix_len)
continue;
if (address_prefix_match(sa->sa_family, sa,
prefix->Address.lpSockaddr, prefix->PrefixLength)) {
prefix_len = prefix->PrefixLength;
}
}
/* If there is no matching prefix information, return a single-host
* subnet mask (e.g. 255.255.255.255 for IPv4).
*/
if (!prefix_len)
prefix_len = (sa->sa_family == AF_INET6) ? 128 : 32;
}
memset(uv_address, 0, sizeof *uv_address);
uv_address->name = name_buf;
if (adapter->PhysicalAddressLength == sizeof(uv_address->phys_addr)) {
memcpy(uv_address->phys_addr,
adapter->PhysicalAddress,
sizeof(uv_address->phys_addr));
}
uv_address->is_internal =
(adapter->IfType == IF_TYPE_SOFTWARE_LOOPBACK);
if (sa->sa_family == AF_INET6) {
uv_address->address.address6 = *((struct sockaddr_in6 *) sa);
uv_address->netmask.netmask6.sin6_family = AF_INET6;
memset(uv_address->netmask.netmask6.sin6_addr.s6_addr, 0xff, prefix_len >> 3);
/* This check ensures that we don't write past the size of the data. */
if (prefix_len % 8) {
uv_address->netmask.netmask6.sin6_addr.s6_addr[prefix_len >> 3] =
0xff << (8 - prefix_len % 8);
}
} else {
uv_address->address.address4 = *((struct sockaddr_in *) sa);
uv_address->netmask.netmask4.sin_family = AF_INET;
uv_address->netmask.netmask4.sin_addr.s_addr = (prefix_len > 0) ?
htonl(0xffffffff << (32 - prefix_len)) : 0;
}
uv_address++;
} | [
"993273596@qq.com"
] | 993273596@qq.com |
bc97c33de9dbd6293e68568421f85646053efd25 | 965e051ceb8edb6011ef65fba84f6a6c878991f3 | /V8SVGPathSegList.h | a101c906fff848d49869bfbea003033c5dce5ef3 | [] | no_license | Treeeater/chromium_webkit_bindings | adee51482f143328a7410e8bb5ea29323f4eb8f1 | aedbff3ba8aa839b4884929fdde38ef9d5dd02fa | refs/heads/master | 2016-09-05T16:49:28.487428 | 2010-10-14T01:51:28 | 2010-10-14T01:51:28 | 985,747 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,790 | h | /*
This file is part of the WebKit open source project.
This file has been generated by generate-bindings.pl. DO NOT MODIFY!
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., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
*/
#if ENABLE(SVG)
#ifndef V8SVGPathSegList_h
#define V8SVGPathSegList_h
#include "SVGPathSegList.h"
#include "WrapperTypeInfo.h"
#include "wtf/text/StringHash.h"
#include <v8.h>
#include <wtf/HashMap.h>
namespace WebCore {
class V8SVGPathSegList {
public:
static bool HasInstance(v8::Handle<v8::Value> value);
static v8::Persistent<v8::FunctionTemplate> GetRawTemplate();
static v8::Persistent<v8::FunctionTemplate> GetTemplate();
static SVGPathSegList* toNative(v8::Handle<v8::Object>);
static v8::Handle<v8::Object> wrap(SVGPathSegList*);
static void derefObject(void*);
static WrapperTypeInfo info;
static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0;
};
v8::Handle<v8::Value> toV8(SVGPathSegList*);
v8::Handle<v8::Value> toV8(PassRefPtr<SVGPathSegList >);
}
#endif // V8SVGPathSegList_h
#endif // ENABLE(SVG)
| [
"pinkforpeace@.(none)"
] | pinkforpeace@.(none) |
a03302f51b479492cbe67be2e3a11f145ae518dd | f8ff09623e40660a91bebec6bb45f29bf464dd9a | /Assembly.cc | 34ede7e72fd6a58a546e29f08be7df12e7b8b4ed | [] | no_license | slmtpz/Basic-compiler | f15c4d7197ba598eda7af55cbd894e5b4460f356 | 849c16c62a33b350f98351539111a92db8b96d56 | refs/heads/master | 2021-01-09T06:28:08.788434 | 2017-02-05T12:24:35 | 2017-02-05T12:24:35 | 80,990,988 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,740 | cc | #include "Assembly.h"
//Constructs Assembly object.
Assembly::Assembly(){
write = "";
is_printed = 0;
is_read = 0;
}
//Returns the Assembly code.
string Assembly::getCode(){
return write;
}
/********************CODE GENERATING*********************/
//Starts to write the code with segment opening "code segment".
void Assembly::begin(){
write.append("code segment\n");
}
//Ends to write the code with segment closeing "code ends".
//Also, adds read or print functions to the Assembly code if used.
void Assembly::end(){
write.append(" int 20h\n");
if(is_read)
call_myread();
if(is_printed)
call_myprint();
add_variables();
write.append("code ends");
}
void Assembly::push_add_var(string var){
variables.insert("v"+var);
write.append(" push offset v"+var+"\n");
}
void Assembly::push_num(string num){
write.append(" push "+num+"\n");
}
void Assembly::push_val_var(string var){
variables.insert("v"+var);
write.append(" push v"+var+" w\n");
}
void Assembly::mul(){
write.append(" pop cx\n"
" pop ax\n"
" mul cx\n"
" push ax\n");
}
void Assembly::div(){
write.append(" mov dx,0\n"
" pop cx\n"
" pop ax\n"
" div cx\n"
" push ax\n");
}
void Assembly::add(){
write.append(" pop cx\n"
" pop ax\n"
" add ax,cx\n"
" push ax\n");
}
void Assembly::sub(){
write.append(" pop cx\n"
" pop ax\n"
" sub ax,cx\n"
" push ax\n");
}
void Assembly::mod(){
write.append(" mov dx,0\n"
" pop cx\n"
" pop ax\n"
" div cx\n"
" push dx\n");
}
void Assembly::assign(){
write.append(" pop ax\n"
" pop bx\n"
" mov [bx],ax\n");
}
void Assembly::print(){
is_printed = 1;
write.append(" pop ax\n"
" call myprint\n");
}
void Assembly::call_myprint(){
write.append("myprint:\n"
" mov si,10d\n"
" xor dx,dx\n"
" push 0Ah\n"
" mov cx,1d\n"
"nonzero:\n"
" div si\n"
" add dx,48d\n"
" push dx\n"
" inc cx\n"
" xor dx,dx\n"
" cmp ax,0h\n"
" jne nonzero\n"
"writeloop:\n"
" pop dx\n"
" mov ah,02h\n"
" int 21h\n"
" dec cx\n"
" jnz writeloop\n"
" ret\n");
}
void Assembly::read(string id){
variables.insert("v"+id);
is_read = 1;
write.append("call myread\n"
" mov v"+id+",cx\n");
}
void Assembly::call_myread(){
write.append("myread:\n"
" mov cx,0\n"
"morechar:\n"
" mov ah,01h\n"
" int 21h\n"
" mov dx,0\n"
" mov dl,al\n"
" mov ax,cx\n"
" cmp dl,0d\n"
" je myret\n"
" sub dx,48d\n"
" mov bp,dx\n"
" mov ax,cx\n"
" mov cx,10d\n"
" mul cx\n"
" add ax,bp\n"
" mov cx,ax\n"
" jmp morechar\n"
"myret:\n"
" ret\n");
}
void Assembly::add_variables(){
for(set<string>::iterator it=variables.begin(); it!=variables.end(); ++it){
write.append(*it+" dw ?\n");
}
}
void Assembly::ifFirst(int i){
ss<<i;
write.append(" pop ax\n"
" if z jmp label"+ss.str()+"\n");
ss.str(string());
}
void Assembly::ifSecond(int i){
ss<<i;
write.append("label"+ss.str()+":\n");
ss.str(string());
}
void Assembly::whileFirst(int i){
ss<<i;
write.append("label"+ss.str()+":\n");
ss.str(string());
}
void Assembly::whileSecond(int i){
ss<<i;
write.append(" pop ax\n"
" cmp ax,0\n"
" if z jmp label"+ss.str()+"\n");
ss.str(string());
}
void Assembly::whileThird(int i){
ss<<(i);
write.append(" jmp label"+ss.str()+"\n");
ss.str(string());
ss<<(i+1);
write.append("label"+ss.str()+":\n");
ss.str(string());
}
| [
"seleme94@hotmail.com"
] | seleme94@hotmail.com |
9ff92a97abb3db888a48186eaedcb7f86f41b4e1 | 0463a132ec0dc22542785392976e6785181f38f9 | /src/ESP_Weather_OLED_main.cpp | 37faa34757db5ee519ab1b764cc035edaaa6d752 | [] | no_license | Abhi0803/ESP8266_OLED_Weather_API | 4f914c67c9ffc28fc0214bdac56e2a022bfa6911 | 3f51ac25d7129915def4685ddac42855afd96179 | refs/heads/master | 2022-12-28T08:26:25.802028 | 2020-10-16T05:17:03 | 2020-10-16T05:17:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,387 | cpp | /*
Libraries Required and Includes Used
*/
// I2C and SPI Libraries
#include <Wire.h>
#include <SPI.h>
// ESP8266 Related Libraries
#include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>
#include <ESP8266WebServer.h>
// JSON Parsing Library
#include <ArduinoJson.h>
// OLED Display Libraries
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
/*
Global Variables & Object Declarations and Defines for the Functions
*/
#define SCREEN_WIDTH 128 // OLED display width, in pixels
#define SCREEN_HEIGHT 64 // OLED display height, in pixels
#define OLED_RESET -1 // Reset pin # (or -1 if sharing Arduino reset pin)
// Define these MACROS You want Data of
#define CITY "ENTER YOUR CITY HERE"
#define API_KEY "ENTER YOUR API KEY HERE + #" // (If the Does Not have the "#" int rnd add it)
#define SSID "ENTER YOUR SSID HERE"
#define PASS "ENTER YOUR PASSWORD HERE"
// Weather API Data Variables
float main_temp, humidity, pressure, wind_speed;
int main_pressure, main_humidity, visibility, timezone;
long dt, sys_sunrise, sys_sunset;
const char *City, *Description;
// Size of the Document Used for JSON Parsing(Can be found in the ArduinoJSOn website)
const size_t capacity = JSON_ARRAY_SIZE(1) + JSON_OBJECT_SIZE(1) + 2 * JSON_OBJECT_SIZE(2) + JSON_OBJECT_SIZE(3) + JSON_OBJECT_SIZE(4) + JSON_OBJECT_SIZE(8) + JSON_OBJECT_SIZE(13) + 280;
DynamicJsonDocument doc(capacity);
/*Put your SSID & Password*/
const char *ssid = "Enter SSID here"; // Enter SSID here
const char *password = "Enter Password here"; //Enter Password here
// Objects
ESP8266WebServer server(80); //Object of class ESP8266WebServer
HTTPClient http; //Object of class HTTPClient
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
/*
Declarations for the Functions Used
*/
void Wifi_Init(void);
void API_Init(void);
void Display_Init(void);
/*
Declarations for the Private Functions Used
*/
String SendHTML(float temperature, float humidity, float pressure, float visibility);
void handle_OnConnect(void);
void handle_NotFound(void);
void setup()
{
Serial.begin(9600);
delay(100);
Wifi_Init();
API_Init();
Display_Init();
}
void loop()
{
server.handleClient();
}
/*
Definitions for the Functions Used
*/
void Wifi_Init(void)
{
Serial.begin(9600);
delay(100);
Serial.println("Connecting to ");
Serial.println(ssid);
//connect to your local wi-fi network
WiFi.begin(ssid, password);
//check wi-fi is connected to wi-fi network
while (WiFi.status() != WL_CONNECTED)
{
delay(1000);
Serial.print(".");
}
Serial.println("");
Serial.println("WiFi connected..!");
Serial.print("Got IP: ");
Serial.println(WiFi.localIP());
}
void API_Init(void)
{
// API Link
String LinkInit = "http://api.openweathermap.org/data/2.5/weather?q=";
String CityName = CITY;
String EndLink = "&units=metric&appid=";
String API_Key = API_KEY;
String Link = LinkInit + CityName + EndLink + API_Key;
// Check WiFi Status
if (WiFi.status() == WL_CONNECTED)
{
HTTPClient http; //Object of class HTTPClient
http.begin(Link);
int httpCode = http.GET();
//Check the returning code
if (httpCode > 0)
{
String json = http.getString();
deserializeJson(doc, json);
JsonObject weather_0 = doc["weather"][0];
// @Abhi0803_DataStructure - Consider The Readme Document for Changes In this Part of Code
const char *weather_0_description = weather_0["description"]; // "clear sky"
Description = weather_0["description"];
JsonObject main = doc["main"];
main_temp = main["temp"]; // 301.03
main_pressure = main["pressure"]; // 1007
main_humidity = main["humidity"]; // 70
visibility = doc["visibility"]; // 10000
wind_speed = doc["wind"]["speed"]; // 3.24
dt = doc["dt"]; // 1602772377
JsonObject sys = doc["sys"];
const char *sys_country = sys["country"]; // "IN"
sys_sunrise = sys["sunrise"]; // 1602721950
sys_sunset = sys["sunset"]; // 1602763695
int timezone = doc["timezone"]; // 19800
long id = doc["id"]; // 1258182
const char *name = doc["name"]; // "Rewa"
City = doc["name"];
}
http.end(); //Close connection
}
}
void Display_Init(void)
{
server.on("/", handle_OnConnect);
server.onNotFound(handle_NotFound);
server.begin();
Serial.println("HTTP server started at http://172.20.10.3/");
if (!display.begin(SSD1306_SWITCHCAPVCC, 0x3C))
{ // Address 0x3C for 128x64
Serial.println(F("SSD1306 allocation failed"));
for (;;)
; // Don't proceed, loop forever
}
display.clearDisplay();
display.setTextSize(1); // Normal 1:1 pixel scale
display.setTextColor(SSD1306_WHITE); // Draw white text
display.setTextSize(2);
display.setCursor(10, 0);
display.println(City);
display.setTextSize(1);
display.setCursor(45, 20);
display.print(main_temp);
display.write(248);
display.println("c");
display.setCursor(15, 30);
display.println(Description);
display.setCursor(0, 45);
display.println("Pressure");
display.setCursor(0, 54);
display.print(main_pressure, DEC);
display.println(" hPa");
display.setCursor(70, 45);
display.print("Humidity");
display.setCursor(90, 54);
display.print(main_humidity, DEC);
display.print(" ");
display.write(37);
display.display();
delay(2000);
}
/*
Definitions for the Private Functions Used
*/
String SendHTML(float temperature, float humidity, float pressure, float visibility)
{
String ptr = "<!DOCTYPE html>";
ptr += "<html>";
ptr += "<head>";
ptr += "<title>ESP8266 Weather Station</title>";
ptr += "<meta name='viewport' content='width=device-width, initial-scale=1.0'>";
ptr += "<link href='https://fonts.googleapis.com/css?family=Open+Sans:300,400,600' rel='stylesheet'>";
ptr += "<style>";
ptr += "html { font-family: 'Open Sans', sans-serif; display: block; margin: 0px auto; text-align: center;color: #444444;}";
ptr += "body{margin: 0px;} ";
ptr += "h1 {margin: 50px auto 30px;} ";
ptr += ".side-by-side{display: table-cell;vertical-align: middle;position: relative;}";
ptr += ".text{font-weight: 600;font-size: 19px;width: 200px;}";
ptr += ".reading{font-weight: 300;font-size: 50px;padding-right: 25px;}";
ptr += ".temperature .reading{color: #F29C1F;}";
ptr += ".humidity .reading{color: #3B97D3;}";
ptr += ".pressure .reading{color: #26B99A;}";
ptr += ".altitude .reading{color: #955BA5;}";
ptr += ".superscript{font-size: 17px;font-weight: 600;position: absolute;top: 10px;}";
ptr += ".data{padding: 10px;}";
ptr += ".container{display: table;margin: 0 auto;}";
ptr += ".icon{width:65px}";
ptr += "</style>";
ptr += "</head>";
ptr += "<body>";
ptr += "<h1>ESP8266 Weather Station</h1>";
ptr += "<div class='container'>";
ptr += "<div class='data temperature'>";
ptr += "<div class='side-by-side icon'>";
ptr += "<svg enable-background='new 0 0 19.438 54.003'height=54.003px id=Layer_1 version=1.1 viewBox='0 0 19.438 54.003'width=19.438px x=0px xml:space=preserve xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink y=0px><g><path d='M11.976,8.82v-2h4.084V6.063C16.06,2.715,13.345,0,9.996,0H9.313C5.965,0,3.252,2.715,3.252,6.063v30.982";
ptr += "C1.261,38.825,0,41.403,0,44.286c0,5.367,4.351,9.718,9.719,9.718c5.368,0,9.719-4.351,9.719-9.718";
ptr += "c0-2.943-1.312-5.574-3.378-7.355V18.436h-3.914v-2h3.914v-2.808h-4.084v-2h4.084V8.82H11.976z M15.302,44.833";
ptr += "c0,3.083-2.5,5.583-5.583,5.583s-5.583-2.5-5.583-5.583c0-2.279,1.368-4.236,3.326-5.104V24.257C7.462,23.01,8.472,22,9.719,22";
ptr += "s2.257,1.01,2.257,2.257V39.73C13.934,40.597,15.302,42.554,15.302,44.833z'fill=#F29C21 /></g></svg>";
ptr += "</div>";
ptr += "<div class='side-by-side text'>Temperature</div>";
ptr += "<div class='side-by-side reading'>";
ptr += (float)temperature;
ptr += "<span class='superscript'>°C</span></div>";
ptr += "</div>";
ptr += "<div class='data humidity'>";
ptr += "<div class='side-by-side icon'>";
ptr += "<svg enable-background='new 0 0 29.235 40.64'height=40.64px id=Layer_1 version=1.1 viewBox='0 0 29.235 40.64'width=29.235px x=0px xml:space=preserve xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink y=0px><path d='M14.618,0C14.618,0,0,17.95,0,26.022C0,34.096,6.544,40.64,14.618,40.64s14.617-6.544,14.617-14.617";
ptr += "C29.235,17.95,14.618,0,14.618,0z M13.667,37.135c-5.604,0-10.162-4.56-10.162-10.162c0-0.787,0.638-1.426,1.426-1.426";
ptr += "c0.787,0,1.425,0.639,1.425,1.426c0,4.031,3.28,7.312,7.311,7.312c0.787,0,1.425,0.638,1.425,1.425";
ptr += "C15.093,36.497,14.455,37.135,13.667,37.135z'fill=#3C97D3 /></svg>";
ptr += "</div>";
ptr += "<div class='side-by-side text'>Humidity</div>";
ptr += "<div class='side-by-side reading'>";
ptr += (int)humidity;
ptr += "<span class='superscript'>%</span></div>";
ptr += "</div>";
ptr += "<div class='data pressure'>";
ptr += "<div class='side-by-side icon'>";
ptr += "<svg enable-background='new 0 0 40.542 40.541'height=40.541px id=Layer_1 version=1.1 viewBox='0 0 40.542 40.541'width=40.542px x=0px xml:space=preserve xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink y=0px><g><path d='M34.313,20.271c0-0.552,0.447-1,1-1h5.178c-0.236-4.841-2.163-9.228-5.214-12.593l-3.425,3.424";
ptr += "c-0.195,0.195-0.451,0.293-0.707,0.293s-0.512-0.098-0.707-0.293c-0.391-0.391-0.391-1.023,0-1.414l3.425-3.424";
ptr += "c-3.375-3.059-7.776-4.987-12.634-5.215c0.015,0.067,0.041,0.13,0.041,0.202v4.687c0,0.552-0.447,1-1,1s-1-0.448-1-1V0.25";
ptr += "c0-0.071,0.026-0.134,0.041-0.202C14.39,0.279,9.936,2.256,6.544,5.385l3.576,3.577c0.391,0.391,0.391,1.024,0,1.414";
ptr += "c-0.195,0.195-0.451,0.293-0.707,0.293s-0.512-0.098-0.707-0.293L5.142,6.812c-2.98,3.348-4.858,7.682-5.092,12.459h4.804";
ptr += "c0.552,0,1,0.448,1,1s-0.448,1-1,1H0.05c0.525,10.728,9.362,19.271,20.22,19.271c10.857,0,19.696-8.543,20.22-19.271h-5.178";
ptr += "C34.76,21.271,34.313,20.823,34.313,20.271z M23.084,22.037c-0.559,1.561-2.274,2.372-3.833,1.814";
ptr += "c-1.561-0.557-2.373-2.272-1.815-3.833c0.372-1.041,1.263-1.737,2.277-1.928L25.2,7.202L22.497,19.05";
ptr += "C23.196,19.843,23.464,20.973,23.084,22.037z'fill=#26B999 /></g></svg>";
ptr += "</div>";
ptr += "<div class='side-by-side text'>Pressure</div>";
ptr += "<div class='side-by-side reading'>";
ptr += (int)pressure;
ptr += "<span class='superscript'>hPa</span></div>";
ptr += "</div>";
ptr += "<div class='data altitude'>";
ptr += "<div class='side-by-side icon'>";
ptr += "<svg enable-background='new 0 0 58.422 40.639'height=40.639px id=Layer_1 version=1.1 viewBox='0 0 58.422 40.639'width=58.422px x=0px xml:space=preserve xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink y=0px><g><path d='M58.203,37.754l0.007-0.004L42.09,9.935l-0.001,0.001c-0.356-0.543-0.969-0.902-1.667-0.902";
ptr += "c-0.655,0-1.231,0.32-1.595,0.808l-0.011-0.007l-0.039,0.067c-0.021,0.03-0.035,0.063-0.054,0.094L22.78,37.692l0.008,0.004";
ptr += "c-0.149,0.28-0.242,0.594-0.242,0.934c0,1.102,0.894,1.995,1.994,1.995v0.015h31.888c1.101,0,1.994-0.893,1.994-1.994";
ptr += "C58.422,38.323,58.339,38.024,58.203,37.754z'fill=#955BA5 /><path d='M19.704,38.674l-0.013-0.004l13.544-23.522L25.13,1.156l-0.002,0.001C24.671,0.459,23.885,0,22.985,0";
ptr += "c-0.84,0-1.582,0.41-2.051,1.038l-0.016-0.01L20.87,1.114c-0.025,0.039-0.046,0.082-0.068,0.124L0.299,36.851l0.013,0.004";
ptr += "C0.117,37.215,0,37.62,0,38.059c0,1.412,1.147,2.565,2.565,2.565v0.015h16.989c-0.091-0.256-0.149-0.526-0.149-0.813";
ptr += "C19.405,39.407,19.518,39.019,19.704,38.674z'fill=#955BA5 /></g></svg>";
ptr += "</div>";
ptr += "<div class='side-by-side text'>Visibility</div>";
ptr += "<div class='side-by-side reading'>";
ptr += (int)(visibility / 1000);
ptr += "<span class='superscript'>Km</span></div>";
ptr += "</div>";
ptr += "</div>";
ptr += "</body>";
ptr += "</html>";
return ptr;
}
void handle_OnConnect()
{
server.send(200, "text/html", SendHTML(main_temp, main_humidity, main_pressure, visibility));
}
void handle_NotFound()
{
server.send(404, "text/plain", "Not found");
} | [
"Abhi0803@github.com"
] | Abhi0803@github.com |
528916837de1a38177fd06a019341e9e0794cad4 | 8d1f66104f69be5b6358ce4d4fc94aa72766dbec | /[Source] HTlauncher/HTGuild.cpp | 325942f104c644a9e6865de6bc2820d9e99fd68d | [] | no_license | DevNightCorp/Tantra-Online | afd33702dadc85ed6b725e607ebd1669876ee7db | 6fe6f8677147d113b609e8d9311ff6789f664b9c | refs/heads/master | 2020-08-28T19:56:19.987142 | 2019-10-30T07:42:11 | 2019-10-30T07:42:11 | 217,805,912 | 8 | 2 | null | null | null | null | UHC | C++ | false | false | 132,152 | cpp | #include "stdafx.h"
#include "HTControlDef.h"
#include "HTextern.h"
#include "HTEngineHandler.h"
#include "htguild.h"
#define _GUILD_EMBLEM_NUM 72
#define _GUILD_TITLE_NUM 84
#define _GUILD_COLOR_NUM 72
#define GUILD_CREATE_NEED_MONEY 300000 // 길드 창설에 필요한 돈
#define GUILD_MARK_NEED_MONEY 3000000 // 길드 마크 만들때 필요한 돈
#define _GUILD_RECORD_NUM 9
#define _GUILD_TABLE_NUM 5
#define _DISPLAYMEMBERCOUNT 9
#define _GUILD_EDIT_ORI_COLOR HT_COLOR(221.0f/255.0f, 205.0f/255.0f, 163.0f/255.0f, 100.0f/100.0f)
#define _GUILD_EDIT_SEL_COLOR HT_COLOR(255.0f/255.0f, 255.0f/255.0f, 255.0f/255.0f, 100.0f/100.0f)
HTGuild::HTGuild(void)
{
m_iGuild_SlideBarCurPos = 0;
m_bGuild_SlideBarBtn = HT_FALSE;
//----------LL 초기화---------//
this->HT_LL_vInitList();
m_iEmblem = -1;
m_iTitle = -1;
m_iColor = -1;
m_nGuildConnectMsg = 0;
m_nAshuramGuildJoinMode = 0;
m_iMyStrongGuildIndex = -1;
// 내가 요새를 보우하고 있는지 확인
m_bMyStrongGuild = HT_FALSE;
// MessageBox Type
m_iGuild_MsgBoxType = 0;
// CargoUse
m_bAshramCargoUseSw = HT_FALSE;
}
HTGuild::~HTGuild(void)
{
HT_DELETE( m_pGuildList_Head );
HT_DELETE( m_pGuildList_Tail );
g_cUIManager->HT_DeleteWindow( _DIALOG_ASHRAMINFO );
g_cUIManager->HT_DeleteWindow( _DIALOG_ASHRAMMEMBERLISET );
g_cUIManager->HT_DeleteWindow( _DIALOG_AMBLEM );
g_cUIManager->HT_DeleteWindow( _DIALOG_SETLEVELASHCAGO );
g_cUIManager->HT_DeleteWindow( _DIALOG_SANCTIONASHCAGO );
g_cUIManager->HT_DeleteWindow( _DIALOG_ASHRAMCAGO );
}
// 데이타 삭제
HTvoid HTGuild::HT_vGuild_Delete()
{
//g_cUIManager->HT_DeleteWindow( _DIALOG_DISCONNECTSERVER );
//----------LL 데이타 전부 지우기---------//
this->HT_LL_hrDeleteAll();
}
// 초기 데이타 셋팅
HTvoid HTGuild::HT_vGuild_Init()
{
// Create Window
this->HT_vGuild_CreateWindow();
// 확인 단계
m_byGuild_ConfirmGrade = GUILDTYPE_CONFIRM_NONE;
// 확인 버튼 눌렸는지 체크
m_bGuild_ConfirmDlgBoxSw = HT_FALSE;
// 길드 장인지 아닌지.
m_byGuild_GuilAuthority = GUILD_AUTHORITY_NONE;
m_dwGuild_EmblemID = 0;
// 선택된 길드원 초기화
m_strGuild_ListSelectdName.HT_hrCleanUp();
// 길드이름 초기화
m_strGuild_GuildName.HT_hrCleanUp();
g_bGuildMarkShow = HT_TRUE;
for( HTint i=0 ; i<2 ; i++ )
{
m_strAlliedGuildName[i] = _T(" ");
m_strEnemyGuildName[i] = _T(" ");
}
// Ashram Cargo Extence Type
m_byAshramCargoExtenceType = 1;
// Ashram Cargo
m_iPageOfAshramCargo = 0;
m_iPrevPageOfAshramCargo = 0;
for( i=0 ; i<120 ; i++ )
{
ZeroMemory( &m_arrItemOfAshramCargo[0][i], sizeof(STRUCT_ITEM) );
ZeroMemory( &m_arrItemOfAshramCargo[1][i], sizeof(STRUCT_ITEM) );
ZeroMemory( &m_arrItemOfAshramCargo[2][i], sizeof(STRUCT_ITEM) );
}
}
// Create Window
HTvoid HTGuild::HT_vGuild_CreateWindow()
{
CHTString strTemp;
CHTString strMessage;
int i, j;
// [_DIALOG_ASHRAMINFO]
// Window
g_cUIManager->HT_SetScriptMessage( eMsgAshramTitle, &strMessage, _T(""), _T("") ); // Ashram
g_cUIManager->HT_CreateWindow( _DIALOG_ASHRAMINFO, strMessage, 330, 466, g_cGuildSystem->HT_vGuild_InputCheckForAshramInfo, 2 );
g_cUIManager->HT_WindowArrangement( _DIALOG_ASHRAMINFO, 5 );
// 줄 제목 표시줄
g_cUIManager->HT_AddTextureControl( _DIALOG_ASHRAMINFO, 1, 8, 3, 36, 1400, 323, 6 );
g_cUIManager->HT_AddTextureControl( _DIALOG_ASHRAMINFO, 2, 8, 3, 148, 1400, 323, 6 );
g_cUIManager->HT_AddTextureControl( _DIALOG_ASHRAMINFO, 3, 8, 3, 285, 1400, 323, 6 );
//g_cUIManager->HT_AddTextureControl( _DIALOG_ASHRAMINFO, 4, 8, 3, 330, 1400, 323, 6 );
g_cUIManager->HT_AddTextureControl( _DIALOG_ASHRAMINFO, 5, 8, 3, 375, 1400, 323, 6 );
// Texture 아쉬람정보
g_cUIManager->HT_AddTextureControl( _DIALOG_ASHRAMINFO, 6, 9, 39, 30, 1400, 90, 19 );
g_cUIManager->HT_SetScriptMessage( eMsgAshramInfo, &strMessage, _T(""), _T("") ); // 아쉬람정보
g_cUIManager->HT_AddLabelControl( _DIALOG_ASHRAMINFO, 6, strMessage, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 39, 30, 90, 19 );
// Texture 공지 사항
g_cUIManager->HT_AddTextureControl( _DIALOG_ASHRAMINFO, 7, 9, 39, 143, 1400, 152, 19 );
g_cUIManager->HT_SetScriptMessage( eMsgAshramNotice, &strMessage, _T(""), _T("") ); // 공지 사항
g_cUIManager->HT_AddLabelControl( _DIALOG_ASHRAMINFO, 7, strMessage, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 39, 143, 152, 19 );
// Texture 연합 아쉬람
g_cUIManager->HT_AddTextureControl( _DIALOG_ASHRAMINFO, 8, 9, 39, 280, 1400, 152, 19 );
g_cUIManager->HT_SetScriptMessage( eMsgAshramUnionAshram, &strMessage, _T(""), _T("") ); // 연합 아쉬람
g_cUIManager->HT_AddLabelControl( _DIALOG_ASHRAMINFO, 8, strMessage, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 39, 280, 152, 19 );
// Texture 적대 아쉬람
//g_cUIManager->HT_AddTextureControl( _DIALOG_ASHRAMINFO, 9, 9, 39, 325, 1400, 152, 19 );
//g_cUIManager->HT_AddLabelControl( _DIALOG_ASHRAMINFO, 9, _T("적대 아쉬람"), 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 39, 325, 152, 19 );
// Texture 아쉬람 명
g_cUIManager->HT_AddTextureControl( _DIALOG_ASHRAMINFO, 10, 9, 92, 68, 1400, 152, 19 );
g_cUIManager->HT_SetScriptMessage( eMsgAshramAshramName, &strMessage, _T(""), _T("") ); // 아쉬람 명
g_cUIManager->HT_AddLabelControl( _DIALOG_ASHRAMINFO, 10, strMessage, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 92, 68, 152, 19 );
// Texture 소유물
//g_cUIManager->HT_AddTextureControl( _DIALOG_ASHRAMINFO, 11, 10, 92, 79, 1400, 79, 19 );
//g_cUIManager->HT_AddLabelControl( _DIALOG_ASHRAMINFO, 11, _T("소유물"), 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 92, 79, 79, 19 );
// Texture 등록인원
g_cUIManager->HT_AddTextureControl( _DIALOG_ASHRAMINFO, 12, 10, 92, 96, 1400, 79, 19 );
g_cUIManager->HT_SetScriptMessage( eMsgAshramResigstMember, &strMessage, _T(""), _T("") ); // 등록인원
g_cUIManager->HT_AddLabelControl( _DIALOG_ASHRAMINFO, 12, strMessage, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 92, 96, 79, 19 );
// Texture 접속인원
g_cUIManager->HT_AddTextureControl( _DIALOG_ASHRAMINFO, 13, 10, 92, 119, 1400, 79, 19 );
g_cUIManager->HT_SetScriptMessage( eMsgAshramConnectMember, &strMessage, _T(""), _T("") ); // 접속인원
g_cUIManager->HT_AddLabelControl( _DIALOG_ASHRAMINFO, 13, strMessage, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 92, 119, 79, 19 );
// Texture 만다라 요새
//g_cUIManager->HT_AddTextureControl( _DIALOG_ASHRAMINFO, 14, 9, 173, 79, 1400, 152, 19 );
//g_cUIManager->HT_AddLabelControl( _DIALOG_ASHRAMINFO, 14, _T("만다라 요새"), 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 173, 79, 152, 19 );
// Texture 등록인원 값
//g_cUIManager->HT_AddTextureControl( _DIALOG_ASHRAMINFO, 15, 9, 173, 99, 1400, 79, 19 );
g_cUIManager->HT_AddLabelControl( _DIALOG_ASHRAMINFO, 15, _T("0/0"), 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 173, 99, 79, 19 );
// Texture 접속인원 값
//g_cUIManager->HT_AddTextureControl( _DIALOG_ASHRAMINFO, 16, 9, 173, 119, 1400, 79, 19 );
g_cUIManager->HT_AddLabelControl( _DIALOG_ASHRAMINFO, 16, _T("0"), 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 173, 119, 79, 19 );
// Only Label 공지 사항
g_cUIManager->HT_SetScriptMessage( eMsgAshramExplainNotice, &strMessage, _T(""), _T("") ); // 공지사항입니다.
g_cUIManager->HT_AddLabelControl( _DIALOG_ASHRAMINFO, 17, strMessage, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 10, 167, 310, 100 );
g_cUIManager->HT_SetArrangementLabelControl( _DIALOG_ASHRAMINFO, 17, 7 );
// Only Label 연합 아쉬람 정보
g_cUIManager->HT_SetScriptMessage( eMsgAshramNoUnionAshram, &strMessage, _T(""), _T("") ); // 연합 아쉬람이 없습니다.
g_cUIManager->HT_AddLabelControl( _DIALOG_ASHRAMINFO, 18, strMessage, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 10, 305, 310, 16 );
g_cUIManager->HT_SetArrangementLabelControl( _DIALOG_ASHRAMINFO, 18, 7 );
g_cUIManager->HT_AddLabelControl( _DIALOG_ASHRAMINFO, 19, _T(""), 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 10, 340, 310, 16 );
g_cUIManager->HT_SetArrangementLabelControl( _DIALOG_ASHRAMINFO, 19, 7 );
// Only Label 적대 아쉬람 정보
//g_cUIManager->HT_AddLabelControl( _DIALOG_ASHRAMINFO, 19, _T("적대 아쉬람이 없습니다."), 1, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 10, 350, 310, 16 );
//g_cUIManager->HT_SetArrangementLabelControl( _DIALOG_ASHRAMINFO, 19, 7 );
// Button 구성인원
g_cUIManager->HT_AddButtonControl( _DIALOG_ASHRAMINFO, 20, 9, 129, 37, 0, 0, 1500, 90, 19 );
g_cUIManager->HT_SetScriptMessage( eMsgAshramOrganizationMember, &strMessage, _T(""), _T("") ); // 구성인원
g_cUIManager->HT_AddLabelControl( _DIALOG_ASHRAMINFO, 20, strMessage, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 129, 37, 90, 19 );
g_cUIManager->HT_SetButtonToolTipOff( _DIALOG_ASHRAMINFO, 20 );
if( g_iInationalType == INATIONALTYPE_KOREA )
{
// Button 홈피제작
g_cUIManager->HT_AddButtonControl( _DIALOG_ASHRAMINFO, 21, 159, 125, 418, 160, 161, 1500, 79, 19 );
g_cUIManager->HT_SetScriptMessage( eMsgAshramMakeBlog, &strMessage, _T(""), _T("") ); // 홈피제작
g_cUIManager->HT_AddLabelControl( _DIALOG_ASHRAMINFO, 21, strMessage, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 125, 418, 79, 19 );
g_cUIManager->HT_SetButtonToolTipOff( _DIALOG_ASHRAMINFO, 21 );
// Button 홈피입장
g_cUIManager->HT_AddButtonControl( _DIALOG_ASHRAMINFO, 22, 159, 227, 418, 160, 161, 1500, 79, 19 );
g_cUIManager->HT_SetScriptMessage( eMsgAshramEnterBlog, &strMessage, _T(""), _T("") ); // 홈피입장
g_cUIManager->HT_AddLabelControl( _DIALOG_ASHRAMINFO, 22, strMessage, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 227, 418, 79, 19 );
g_cUIManager->HT_SetButtonToolTipOff( _DIALOG_ASHRAMINFO, 22 );
// Button 미니블로그
g_cUIManager->HT_AddButtonControl( _DIALOG_ASHRAMINFO, 27, 159, 23, 418, 160, 161, 1500, 79, 19 );
g_cUIManager->HT_SetScriptMessage( eMsgAshramMiniBlog, &strMessage, _T(""), _T("") ); // 미니블로그
g_cUIManager->HT_AddLabelControl( _DIALOG_ASHRAMINFO, 27, strMessage, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 23, 418, 79, 19 );
g_cUIManager->HT_SetButtonToolTipOff( _DIALOG_ASHRAMINFO, 27 );
}
// Texture 작은 박스
g_cUIManager->HT_AddTextureControl( _DIALOG_ASHRAMINFO, 0, 66, 292, 46, 1400, 32, 32 );
g_cUIManager->HT_AddTextureControl( _DIALOG_ASHRAMINFO, 23, 0, 294, 48, 1410, 1, 1 );
// Texture 큰 박스
g_cUIManager->HT_AddTextureControl( _DIALOG_ASHRAMINFO, 0, 66, 12, 58, 1400, 74, 77 );
g_cUIManager->HT_AddTextureControl( _DIALOG_ASHRAMINFO, 24, 0, 17, 63, 1401, 1, 1);
g_cUIManager->HT_AddTextureControl( _DIALOG_ASHRAMINFO, 25, 0, 17, 63, 1402, 1, 1);
g_cUIManager->HT_AddTextureControl( _DIALOG_ASHRAMINFO, 26, 0, 33, 79, 1403, 1, 1);
// [_DIALOG_ASHRAMMEMBERLISET]
// Window
g_cUIManager->HT_CreateWindow( _DIALOG_ASHRAMMEMBERLISET, _T(""), 330, 466, g_cGuildSystem->HT_vGuild_InputCheckForAshramMemberList, 2 );
g_cUIManager->HT_WindowArrangement( _DIALOG_ASHRAMMEMBERLISET, 5 );
// 줄 제목 표시줄
g_cUIManager->HT_AddTextureControl( _DIALOG_ASHRAMMEMBERLISET, 1, 8, 3, 36, 1400, 323, 6 );
// Texture 구성인원
g_cUIManager->HT_AddTextureControl( _DIALOG_ASHRAMMEMBERLISET, 2, 9, 129, 30, 1400, 90, 19 );
g_cUIManager->HT_SetScriptMessage( eMsgAshramOrganizationMember, &strMessage, _T(""), _T("") ); // 구성인원
g_cUIManager->HT_AddLabelControl( _DIALOG_ASHRAMMEMBERLISET, 2, strMessage, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 129, 30, 90, 19 );
// Texture 종족
g_cUIManager->HT_AddTextureControl( _DIALOG_ASHRAMMEMBERLISET, 3, 9, 4, 56, 1400, 32, 19 );
g_cUIManager->HT_SetScriptMessage( sMsgAddressTribe, &strMessage, _T(""), _T("") ); // 종족
g_cUIManager->HT_AddLabelControl( _DIALOG_ASHRAMMEMBERLISET, 3, strMessage, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 4, 56, 34, 19 );
// Texture 이름
g_cUIManager->HT_AddTextureControl( _DIALOG_ASHRAMMEMBERLISET, 4, 9, 40, 56, 1400, 134, 19 );
g_cUIManager->HT_SetScriptMessage( sMsgAddressName, &strMessage, _T(""), _T("") ); // 이름
g_cUIManager->HT_AddLabelControl( _DIALOG_ASHRAMMEMBERLISET, 4, strMessage, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 39, 56, 137, 19 );
// Texture 레벨
g_cUIManager->HT_AddTextureControl( _DIALOG_ASHRAMMEMBERLISET, 5, 9, 178, 56, 1400, 31, 19 );
g_cUIManager->HT_SetScriptMessage( eMsgAshramLevel, &strMessage, _T(""), _T("") ); // 레벨
g_cUIManager->HT_AddLabelControl( _DIALOG_ASHRAMMEMBERLISET, 5, strMessage, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 177, 56, 34, 19 );
// Texture 직위
g_cUIManager->HT_AddTextureControl( _DIALOG_ASHRAMMEMBERLISET, 6, 9, 213, 56, 1400, 61, 19 );
g_cUIManager->HT_SetScriptMessage( eMsgAshramPosition, &strMessage, _T(""), _T("") ); // 직위
g_cUIManager->HT_AddLabelControl( _DIALOG_ASHRAMMEMBERLISET, 6, strMessage, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 212, 56, 64, 19 );
// Texture 접속
g_cUIManager->HT_AddTextureControl( _DIALOG_ASHRAMMEMBERLISET, 7, 9, 278, 56, 1400, 31, 19 );
g_cUIManager->HT_SetScriptMessage( sMsgAddressConnect, &strMessage, _T(""), _T("") ); // 접속
g_cUIManager->HT_AddLabelControl( _DIALOG_ASHRAMMEMBERLISET, 7, strMessage, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 277, 56, 34, 19 );
// Schroll
g_cUIManager->HT_AddScrollBarControl( _DIALOG_ASHRAMMEMBERLISET, 8, 312, 77, 350, 50 );
// Loop
for( i=0 ; i<_DISPLAYMEMBERCOUNT ; i++ )
{
g_cUIManager->HT_AddTextureControl( _DIALOG_ASHRAMMEMBERLISET, 0, 66, 5, 77+(i*39) );
g_cUIManager->HT_AddTextureControl( _DIALOG_ASHRAMMEMBERLISET, 10+i, 0, 13, 83+(i*39), 1402, 32, 32 );
g_cUIManager->HT_SetTextureControlDisplay( _DIALOG_ASHRAMMEMBERLISET, 10+i, HT_FALSE );
g_cUIManager->HT_AddLabelControl( _DIALOG_ASHRAMMEMBERLISET, 10+i, _T(""), 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 39, 77+(i*39), 137, 31 );
g_cUIManager->HT_AddLabelControl( _DIALOG_ASHRAMMEMBERLISET, 20+i, _T(""), 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 177, 77+(i*39), 34, 31 );
g_cUIManager->HT_AddLabelControl( _DIALOG_ASHRAMMEMBERLISET, 30+i, _T(""), 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 212, 77+(i*39), 64, 31 );
g_cUIManager->HT_AddLabelControl( _DIALOG_ASHRAMMEMBERLISET, 40+i, _T(""), 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 277, 77+(i*39), 34, 31 );
g_cUIManager->HT_AddButtonControl( _DIALOG_ASHRAMMEMBERLISET, 10+i, 0, 2, 77+(i*39), 202, 0, 1500, 291, 32 );
}
// Button 아쉬람정보
g_cUIManager->HT_AddButtonControl( _DIALOG_ASHRAMMEMBERLISET, 50, 9, 39, 37, 0, 0, 1500, 90, 19 );
g_cUIManager->HT_SetScriptMessage( eMsgAshramInfo, &strMessage, _T(""), _T("") ); // 아쉬람정보
g_cUIManager->HT_AddLabelControl( _DIALOG_ASHRAMMEMBERLISET, 50, strMessage, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 39, 37, 90, 19 );
g_cUIManager->HT_SetButtonToolTipOff( _DIALOG_ASHRAMMEMBERLISET, 50 );
// Button 가입
g_cUIManager->HT_AddButtonControl( _DIALOG_ASHRAMMEMBERLISET, 51, 159, 82, 430, 160, 161 );
g_cUIManager->HT_SetScriptMessage( eMsgCommonJoin, &strMessage, _T(""), _T("") ); // 가입
g_cUIManager->HT_AddLabelControl( _DIALOG_ASHRAMMEMBERLISET, 51, strMessage, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 82, 430, 64, 19 );
g_cUIManager->HT_SetButtonToolTipOff( _DIALOG_ASHRAMMEMBERLISET, 51 );
// Button 탈퇴
g_cUIManager->HT_AddButtonControl( _DIALOG_ASHRAMMEMBERLISET, 52, 159, 201, 430, 160, 161 );
g_cUIManager->HT_SetScriptMessage( eMsgCommonSecede, &strMessage, _T(""), _T("") ); // 탈퇴
g_cUIManager->HT_AddLabelControl( _DIALOG_ASHRAMMEMBERLISET, 52, strMessage, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 201, 430, 64, 19 );
g_cUIManager->HT_SetButtonToolTipOff( _DIALOG_ASHRAMMEMBERLISET, 52 );
// 앰블럼 제작창
// 윈도우 생성 (탭 = 1, 2, 3)
g_cUIManager->HT_CreateWindow(_DIALOG_AMBLEM, "Emblem", 330, 345, g_cGuildSystem->HT_vGuild_InputCheckForEmblemSelecting, 2);
g_cUIManager->HT_WindowArrangement(_DIALOG_AMBLEM, 5);
g_cUIManager->HT_AddTextureControl(_DIALOG_AMBLEM, 0, 8, 3, 37, 1400, 324, 6);
g_cUIManager->HT_AddButtonControl(_DIALOG_AMBLEM, 1, 159, 10, 31, 160, 161, 1500, 69, 19);
g_cUIManager->HT_AddButtonControl(_DIALOG_AMBLEM, 2, 159, 80, 31, 160, 161, 1500, 69, 19);
g_cUIManager->HT_AddButtonControl(_DIALOG_AMBLEM, 3, 159, 150, 31, 160, 161, 1500, 69, 19);
g_cUIManager->HT_AddButtonControl(_DIALOG_AMBLEM, 4, 159, 220, 31, 160, 161, 1500, 69, 19);
g_cUIManager->HT_SetScriptMessage( eMsgAshramBackMark, &strMessage, _T(""), _T("") ); // 배경문양
g_cUIManager->HT_AddLabelControl(_DIALOG_AMBLEM, 1, strMessage, 0, HT_COLOR(1.0f, 1.0f, 1.0f, 1.0f), HT_COLOR(1.0f, 1.0f, 1.0f, 1.0f), 10, 31, 69, 19);
g_cUIManager->HT_SetScriptMessage( eMsgAshramMark, &strMessage, _T(""), _T("") ); // 문양
g_cUIManager->HT_AddLabelControl(_DIALOG_AMBLEM, 2, strMessage, 0, HT_COLOR(1.0f, 1.0f, 1.0f, 1.0f), HT_COLOR(1.0f, 1.0f, 1.0f, 1.0f), 80, 31, 69, 19);
g_cUIManager->HT_SetScriptMessage( eMsgAshramMark, &strMessage, _T(""), _T("") ); // 문양2
g_cUIManager->HT_AddLabelControl(_DIALOG_AMBLEM, 3, strMessage, 0, HT_COLOR(1.0f, 1.0f, 1.0f, 1.0f), HT_COLOR(1.0f, 1.0f, 1.0f, 1.0f), 150, 31, 69, 19);
g_cUIManager->HT_SetScriptMessage( eMsgAshramBackColor, &strMessage, _T(""), _T("") ); // 배경색
g_cUIManager->HT_AddLabelControl(_DIALOG_AMBLEM, 4, strMessage, 0, HT_COLOR(1.0f, 1.0f, 1.0f, 1.0f), HT_COLOR(1.0f, 1.0f, 1.0f, 1.0f), 220, 31, 69, 19);
// 앰블램 11, 12, 13
g_cUIManager->HT_AddTextureControl(_DIALOG_AMBLEM, 11, 0, 25, 80, 1401, 64, 64);
g_cUIManager->HT_AddTextureControl(_DIALOG_AMBLEM, 12, 0, 25, 80, 1402, 64, 64);
g_cUIManager->HT_AddTextureControl(_DIALOG_AMBLEM, 13, 0, 25+16, 80+16, 1403, 32, 32);
// 텍스처 시작 인덱스 101~ 112, 버튼도 동일
int id = 0;
for( i = 0; i < 7; ++i )
{
for( j = 0; j < 6; ++j )
{
id = 9;
g_cUIManager->HT_AddButtonControl(_DIALOG_AMBLEM, 100+j+(i*6), 0, 114+(32*j), 83+(32*i), 0, 0, 1500, 32, 32);
g_cUIManager->HT_AddTextureControl(_DIALOG_AMBLEM, 100+j+(i*6), 0, 114+(32*j), 83+(32*i), 1400, 32, 32);
}
}
// 앰블럼 버튼 (200 = 확인, 201 = 취소)
g_cUIManager->HT_AddButtonControl(_DIALOG_AMBLEM,200, 159, 74, 315, 160, 161, 64, 19);
g_cUIManager->HT_SetScriptMessage( eMsgCommonConfirm, &strMessage, _T(""), _T("") ); // 확인
g_cUIManager->HT_AddLabelControl(_DIALOG_AMBLEM, 1, strMessage, 0, HT_COLOR(1.0f, 1.0f, 1.0f, 1.0f), HT_COLOR(1.0f, 1.0f, 1.0f, 1.0f), 74, 315, 64, 19);
g_cUIManager->HT_AddButtonControl(_DIALOG_AMBLEM,201, 159, 188, 315, 160, 161, 64, 19);
g_cUIManager->HT_SetScriptMessage( eMsgCommonCancel, &strMessage, _T(""), _T("") ); // 취소
g_cUIManager->HT_AddLabelControl(_DIALOG_AMBLEM, 1, strMessage, 0, HT_COLOR(1.0f, 1.0f, 1.0f, 1.0f), HT_COLOR(1.0f, 1.0f, 1.0f, 1.0f), 188, 315, 64, 19);
m_iTabNo = 1;m_iBackIndex = 0;m_iTitleIndex = 0;m_iBackColor = 0;
this->HT_vGuild_DialogBoxDrawTab(1);
this->HT_bGuild_DialogBoxDrawEmblem(0);
// [_DIALOG_ASHRAMCAGO]
// Window
g_cUIManager->HT_CreateWindow( _DIALOG_ASHRAMCAGO, _T(""), 370, 540, g_cGuildSystem->HT_vGuild_InputCheckForAshramCago, 2 );
g_cUIManager->HT_WindowArrangement( _DIALOG_ASHRAMCAGO, 5 );
// 줄 제목 표시줄
g_cUIManager->HT_AddTextureControl( _DIALOG_ASHRAMCAGO, 0, 8, 2, 36, 1400, 367, 6 );
// Texture 아쉬람 창고
g_cUIManager->HT_AddTextureControl( _DIALOG_ASHRAMCAGO, 0, 9, 39, 30, 1400, 90, 17 );
g_cUIManager->HT_SetScriptMessage( eMsgAshramAshramCargo, &strMessage, _T(""), _T("") ); // 아쉬람창고
strTemp.HT_szFormat( strMessage, 1 );
g_cUIManager->HT_AddLabelControl( _DIALOG_ASHRAMCAGO, 5, strTemp, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 39, 30, 90, 17 );
// Button 창고1
g_cUIManager->HT_AddButtonControl( _DIALOG_ASHRAMCAGO, 1, 159, 45, 55, 160, 161, 1500, 64, 19 );
g_cUIManager->HT_SetScriptMessage( eMsgAshramCargo, &strMessage, _T(""), _T("") ); // 창고
strTemp.HT_szFormat( strMessage, 1 );
g_cUIManager->HT_AddLabelControl( _DIALOG_ASHRAMCAGO, 1, strTemp, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 45, 55, 64, 19 );
g_cUIManager->HT_SetButtonToolTipOff( _DIALOG_ASHRAMCAGO, 1 );
// Button 창고2
g_cUIManager->HT_AddButtonControl( _DIALOG_ASHRAMCAGO, 2, 159, 153, 55, 160, 161, 1500, 64, 19 );
g_cUIManager->HT_SetScriptMessage( eMsgAshramCargo, &strMessage, _T(""), _T("") ); // 창고
strTemp.HT_szFormat( strMessage, 2 );
g_cUIManager->HT_AddLabelControl( _DIALOG_ASHRAMCAGO, 2, strTemp, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 153, 55, 64, 19 );
g_cUIManager->HT_SetButtonToolTipOff( _DIALOG_ASHRAMCAGO, 2 );
// Button 창고3
g_cUIManager->HT_AddButtonControl( _DIALOG_ASHRAMCAGO, 3, 159, 262, 55, 160, 161, 1500, 64, 19 );
g_cUIManager->HT_SetScriptMessage( eMsgAshramCargo, &strMessage, _T(""), _T("") ); // 창고
strTemp.HT_szFormat( strMessage, 3 );
g_cUIManager->HT_AddLabelControl( _DIALOG_ASHRAMCAGO, 3, strTemp, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 262, 55, 64, 19 );
g_cUIManager->HT_SetButtonToolTipOff( _DIALOG_ASHRAMCAGO, 3 );
//// Button 창고사용
//g_cUIManager->HT_AddButtonControl( _DIALOG_ASHRAMCAGO, 4, 159, 283, 55, 160, 161, 1500, 64, 19 );
//g_cUIManager->HT_AddLabelControl( _DIALOG_ASHRAMCAGO, 4, _T("창고사용"), 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 283, 55, 64, 19 );
//g_cUIManager->HT_SetButtonToolTipOff( _DIALOG_ASHRAMCAGO, 4 );
// loop
// 세로
for( i=0 ; i<11 ; i++ )
{
g_cUIManager->HT_AddTextureControl( _DIALOG_ASHRAMCAGO, 0, 1, 3+(i*36), 82, 1400, 3, 432 );
}
// 가로
for( i=0 ; i<13 ; i++ )
{
g_cUIManager->HT_AddTextureControl( _DIALOG_ASHRAMCAGO, 0, 2, 3, 82+(i*36), 1400, 360, 3 );
}
// Slot Inven
for( i=0 ; i<10 ; i++ )
{
for( j=0 ; j<12 ; j++ )
{
g_cUIManager->HT_AddSlotBoxControl( _DIALOG_ASHRAMCAGO, 10+((j*_GOODSKEEP_INVEN_WIDTH)+i), 0, 3+(i*36), 83+(j*36) );
}
}
// [_DIALOG_SANCTIONASHCAGO]
// Window
g_cUIManager->HT_CreateWindow( _DIALOG_SANCTIONASHCAGO, _T(""), 420, 200, g_cGuildSystem->HT_vGuild_InputCheckForSanctionAshramCago, 2 );
g_cUIManager->HT_WindowArrangement( _DIALOG_SANCTIONASHCAGO, 5 );
// Texture 아쉬람 창고
g_cUIManager->HT_SetScriptMessage( eMsgAshramExplainCargo01, &strMessage, _T(""), _T("") ); // ◐ 창고사용기간확인및과금 ◐
g_cUIManager->HT_AddLabelControl( _DIALOG_SANCTIONASHCAGO, 0, strMessage, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 0, 15, 420, 17 );
// 창고명
g_cUIManager->HT_SetScriptMessage( eMsgAshramCargoName, &strMessage, _T(""), _T("") ); // 창고명
g_cUIManager->HT_AddLabelControl( _DIALOG_SANCTIONASHCAGO, 0, strMessage, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 10, 50, 80, 17 );
g_cUIManager->HT_SetScriptMessage( eMsgAshramCargo, &strMessage, _T(""), _T("") ); // 창고명
strTemp.HT_szFormat( strMessage, 1 );
g_cUIManager->HT_AddLabelControl( _DIALOG_SANCTIONASHCAGO, 0, strTemp, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 10, 90, 80, 17 );
g_cUIManager->HT_SetScriptMessage( eMsgAshramCargo, &strMessage, _T(""), _T("") ); // 창고명
strTemp.HT_szFormat( strMessage, 2 );
g_cUIManager->HT_AddLabelControl( _DIALOG_SANCTIONASHCAGO, 0, strTemp, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 10, 120, 80, 17 );
g_cUIManager->HT_SetScriptMessage( eMsgAshramCargo, &strMessage, _T(""), _T("") ); // 창고명
strTemp.HT_szFormat( strMessage, 3 );
g_cUIManager->HT_AddLabelControl( _DIALOG_SANCTIONASHCAGO, 0, strTemp, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 10, 150, 80, 17 );
// 사용여부
g_cUIManager->HT_SetScriptMessage( eMsgAshramUseYesOrNo, &strMessage, _T(""), _T("") ); // 사용여부
g_cUIManager->HT_AddLabelControl( _DIALOG_SANCTIONASHCAGO, 0, strMessage, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 80, 50, 80, 17 );
g_cUIManager->HT_SetScriptMessage( eMsgAshramNotUse, &strMessage, _T(""), _T("") ); // 사용중아님
g_cUIManager->HT_AddLabelControl( _DIALOG_SANCTIONASHCAGO, 10, strMessage, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 80, 90, 80, 17 );
g_cUIManager->HT_AddLabelControl( _DIALOG_SANCTIONASHCAGO, 11, strMessage, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 80, 120, 80, 17 );
g_cUIManager->HT_AddLabelControl( _DIALOG_SANCTIONASHCAGO, 12, strMessage, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 80, 150, 80, 17 );
// 만료기간
g_cUIManager->HT_SetScriptMessage( eMsgAshramEnddate, &strMessage, _T(""), _T("") ); // 만료기간
g_cUIManager->HT_AddLabelControl( _DIALOG_SANCTIONASHCAGO, 0, strMessage, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 140, 50, 120, 17 );
g_cUIManager->HT_SetScriptMessage( eMsgAshramEnd, &strMessage, _T(""), _T("") ); // 만료
g_cUIManager->HT_AddLabelControl( _DIALOG_SANCTIONASHCAGO, 13, strMessage, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 140, 90, 120, 17 );
g_cUIManager->HT_AddLabelControl( _DIALOG_SANCTIONASHCAGO, 14, strMessage, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 140, 120, 120, 17 );
g_cUIManager->HT_AddLabelControl( _DIALOG_SANCTIONASHCAGO, 15, strMessage, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 140, 150, 120, 17 );
// D-day
g_cUIManager->HT_SetScriptMessage( eMsgAshramDDay, &strMessage, _T(""), _T("") ); // D-day
g_cUIManager->HT_AddLabelControl( _DIALOG_SANCTIONASHCAGO, 0, strMessage, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 230, 50, 100, 17 );
g_cUIManager->HT_AddLabelControl( _DIALOG_SANCTIONASHCAGO, 16, _T("0"), 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 230, 90, 100, 17 );
g_cUIManager->HT_AddLabelControl( _DIALOG_SANCTIONASHCAGO, 17, _T("0"), 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 230, 120, 100, 17 );
g_cUIManager->HT_AddLabelControl( _DIALOG_SANCTIONASHCAGO, 18, _T("0"), 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 230, 150, 100, 17 );
// Button 창고1 사용료 지불
g_cUIManager->HT_AddButtonControl( _DIALOG_SANCTIONASHCAGO, 1, 159, 320, 90, 160, 161, 1500, 79, 19 );
g_cUIManager->HT_SetScriptMessage( eMsgAshramPayCargo, &strMessage, _T(""), _T("") ); // 사용료지불
g_cUIManager->HT_AddLabelControl( _DIALOG_SANCTIONASHCAGO, 1, strMessage, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 320, 90, 79, 19 );
g_cUIManager->HT_SetButtonToolTipOff( _DIALOG_SANCTIONASHCAGO, 1 );
// Button 창고2 사용료 지불
g_cUIManager->HT_AddButtonControl( _DIALOG_SANCTIONASHCAGO, 2, 159, 320, 120, 160, 161, 1500, 79, 19 );
g_cUIManager->HT_AddLabelControl( _DIALOG_SANCTIONASHCAGO, 2, strMessage, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 320, 120, 79, 19 );
g_cUIManager->HT_SetButtonToolTipOff( _DIALOG_SANCTIONASHCAGO, 2 );
// Button 창고3 사용료 지불
g_cUIManager->HT_AddButtonControl( _DIALOG_SANCTIONASHCAGO, 3, 159, 320, 150, 160, 161, 1500, 79, 19 );
g_cUIManager->HT_AddLabelControl( _DIALOG_SANCTIONASHCAGO, 3, strMessage, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 320, 150, 79, 19 );
g_cUIManager->HT_SetButtonToolTipOff( _DIALOG_SANCTIONASHCAGO, 3 );
// [_DIALOG_SETLEVELASHCAGO]
// Window
g_cUIManager->HT_CreateWindow( _DIALOG_SETLEVELASHCAGO, _T(""), 370, 190, g_cGuildSystem->HT_vGuild_InputCheckForSetLevelAshramCago, 2 );
g_cUIManager->HT_WindowArrangement( _DIALOG_SETLEVELASHCAGO, 5 );
// 줄 제목 표시줄
g_cUIManager->HT_AddTextureControl( _DIALOG_SETLEVELASHCAGO, 0, 8, 2, 36, 1400, 367, 6 );
// Texture 아쉬람 창고
g_cUIManager->HT_AddTextureControl( _DIALOG_SETLEVELASHCAGO, 0, 9, 39, 30, 1400, 150, 17 );
g_cUIManager->HT_SetScriptMessage( eMsgAshramSetAshramRight, &strMessage, _T(""), _T("") ); // 아쉬람창고권한설정
g_cUIManager->HT_AddLabelControl( _DIALOG_SETLEVELASHCAGO, 0, strMessage, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 39, 30, 150, 17 );
// 창고명
g_cUIManager->HT_SetScriptMessage( eMsgAshramCargo, &strMessage, _T(""), _T("") ); // 창고명
strTemp.HT_szFormat( strMessage, 1 );
g_cUIManager->HT_AddLabelControl( _DIALOG_SETLEVELASHCAGO, 0, strTemp, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 100, 60, 80, 17 );
g_cUIManager->HT_SetScriptMessage( eMsgAshramCargo, &strMessage, _T(""), _T("") ); // 창고명
strTemp.HT_szFormat( strMessage, 2 );
g_cUIManager->HT_AddLabelControl( _DIALOG_SETLEVELASHCAGO, 0, strTemp, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 180, 60, 80, 17 );
g_cUIManager->HT_SetScriptMessage( eMsgAshramCargo, &strMessage, _T(""), _T("") ); // 창고명
strTemp.HT_szFormat( strMessage, 3 );
g_cUIManager->HT_AddLabelControl( _DIALOG_SETLEVELASHCAGO, 0, strTemp, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 260, 60, 80, 17 );
// 아쉬람 등급
g_cUIManager->HT_SetScriptMessage( eMsgCommonGuildRaja, &strMessage, _T(""), _T("") ); // 라자
g_cUIManager->HT_AddLabelControl( _DIALOG_SETLEVELASHCAGO, 0, strMessage, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 20, 80, 80, 17 );
g_cUIManager->HT_SetScriptMessage( eMsgCommonGuildPrubaja, &strMessage, _T(""), _T("") ); // 푸르바자
g_cUIManager->HT_AddLabelControl( _DIALOG_SETLEVELASHCAGO, 0, strMessage, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 20, 100, 80, 17 );
g_cUIManager->HT_SetScriptMessage( eMsgCommonGuildDandeca, &strMessage, _T(""), _T("") ); // 단디카
g_cUIManager->HT_AddLabelControl( _DIALOG_SETLEVELASHCAGO, 0, strMessage, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 20, 120, 80, 17 );
g_cUIManager->HT_SetScriptMessage( eMsgCommonGuildTapasa, &strMessage, _T(""), _T("") ); // 타파사
g_cUIManager->HT_AddLabelControl( _DIALOG_SETLEVELASHCAGO, 0, strMessage, 0, HT_COLOR(1.0f,1.0f,1.0f,1.0f), HT_COLOR(1.0f,1.0f,1.0f,1.0f), 20, 140, 80, 17 );
// Slot Inven
for( i=0 ; i<3 ; i++ )
{
for( j=0 ; j<4 ; j++ )
{
g_cUIManager->HT_AddTextureControl( _DIALOG_SETLEVELASHCAGO, 0, 63, 110+(i*80), 78+(j*20), 1400, 64, 19 );
g_cUIManager->HT_AddTextureControl( _DIALOG_SETLEVELASHCAGO, 10+(i*4)+j, 175, 140+(i*80), 81+(j*20), 1402 );
g_cUIManager->HT_SetTextureControlDisplay( _DIALOG_SETLEVELASHCAGO, 10+(i*4)+j, HT_FALSE );
g_cUIManager->HT_AddButtonControl( _DIALOG_SETLEVELASHCAGO, 10+(i*4)+j, 0, 110+(i*80), 78+(j*20), 65, 64, 1500, 64, 19 );
}
}
}
// 해당 텝번호를 통해 앨블럼창을 그립니다.
HTvoid HTGuild::HT_vGuild_DialogBoxDrawTab(int iTabNo)
{
m_iTabNo = iTabNo;
g_cUIManager->HT_DelButtonControl(_DIALOG_AMBLEM, 1);
g_cUIManager->HT_DelButtonControl(_DIALOG_AMBLEM, 2);
g_cUIManager->HT_DelButtonControl(_DIALOG_AMBLEM, 3);
g_cUIManager->HT_DelButtonControl(_DIALOG_AMBLEM, 4);
switch(iTabNo)
{
case 1:
g_cUIManager->HT_AddButtonControl(_DIALOG_AMBLEM, 1, 160, 10, 31, 160, 161, 1500, 69, 19);
g_cUIManager->HT_AddButtonControl(_DIALOG_AMBLEM, 2, 159, 80, 31, 160, 161, 1500, 69, 19);
g_cUIManager->HT_AddButtonControl(_DIALOG_AMBLEM, 3, 159, 150, 31, 160, 161, 1500, 69, 19);
g_cUIManager->HT_AddButtonControl(_DIALOG_AMBLEM, 4, 159, 220, 31, 160, 161, 1500, 69, 19);
break;
case 2:
g_cUIManager->HT_AddButtonControl(_DIALOG_AMBLEM, 1, 159, 10, 31, 160, 161, 1500, 69, 19);
g_cUIManager->HT_AddButtonControl(_DIALOG_AMBLEM, 2, 160, 80, 31, 160, 161, 1500, 69, 19);
g_cUIManager->HT_AddButtonControl(_DIALOG_AMBLEM, 3, 159, 150, 31, 160, 161, 1500, 69, 19);
g_cUIManager->HT_AddButtonControl(_DIALOG_AMBLEM, 4, 159, 220, 31, 160, 161, 1500, 69, 19);
break;
case 3:
g_cUIManager->HT_AddButtonControl(_DIALOG_AMBLEM, 1, 159, 10, 31, 160, 161, 1500, 69, 19);
g_cUIManager->HT_AddButtonControl(_DIALOG_AMBLEM, 2, 159, 80, 31, 160, 161, 1500, 69, 19);
g_cUIManager->HT_AddButtonControl(_DIALOG_AMBLEM, 3, 160, 150, 31, 160, 161, 1500, 69, 19);
g_cUIManager->HT_AddButtonControl(_DIALOG_AMBLEM, 4, 159, 220, 31, 160, 161, 1500, 69, 19);
break;
case 4:
g_cUIManager->HT_AddButtonControl(_DIALOG_AMBLEM, 1, 159, 10, 31, 160, 161, 1500, 69, 19);
g_cUIManager->HT_AddButtonControl(_DIALOG_AMBLEM, 2, 159, 80, 31, 160, 161, 1500, 69, 19);
g_cUIManager->HT_AddButtonControl(_DIALOG_AMBLEM, 3, 159, 150, 31, 160, 161, 1500, 69, 19);
g_cUIManager->HT_AddButtonControl(_DIALOG_AMBLEM, 4, 160, 220, 31, 160, 161, 1500, 69, 19);
break;
}
int max = this->HT_bGuild_GetDialogBoxEmblemMaxButton();
for (int i = 0; i < 7; ++i)
for (int j = 0; j < 6; ++j)
{
if (max <= (i*6)+j)
{
iTabNo = 5;
g_cUIManager->HT_SetTextureControlImage(UI_WINDOW_EMBLEM, 100+j+(i*6), 0);
g_cUIManager->HT_SetTextureControlColor(UI_WINDOW_EMBLEM, 100+j+(i*6), HT_COLOR(0,0,0,0));
}
switch (iTabNo)
{
case 1:
switch(this->m_iSelectWindow)
{
case 0:
g_cUIManager->HT_SetTextureControlImage(UI_WINDOW_EMBLEM, 100+j+(i*6), UI_GUILD_BACKTEX_N + (j + (i*6)));
break;
case 1:
g_cUIManager->HT_SetTextureControlImage(UI_WINDOW_EMBLEM, 100+j+(i*6), UI_GUILD_BACKTEX_B + (j + (i*6)));
break;
case 2:
g_cUIManager->HT_SetTextureControlImage(UI_WINDOW_EMBLEM, 100+j+(i*6), UI_GUILD_BACKTEX_V + (j + (i*6)));
break;
case 3:
g_cUIManager->HT_SetTextureControlImage(UI_WINDOW_EMBLEM, 100+j+(i*6), UI_GUILD_BACKTEX_S + (j + (i*6)));
break;
}
g_cUIManager->HT_SetTextureControlScale(UI_WINDOW_EMBLEM, 100+j+(i*6), 32, 32, 64, 64);
g_cUIManager->HT_SetTextureControlColor(UI_WINDOW_EMBLEM, 100+j+(i*6), HT_COLOR(1.0f, 1.0f, 1.0f, 1.0f));
break;
case 2:
g_cUIManager->HT_SetTextureControlImage(UI_WINDOW_EMBLEM, 100+j+(i*6), UI_GUILD_TITLETEX + (j +(i*6)));
g_cUIManager->HT_SetTextureControlScale(UI_WINDOW_EMBLEM, 100+j+(i*6), 32, 32, 32, 32);
g_cUIManager->HT_SetTextureControlColor(UI_WINDOW_EMBLEM, 100+j+(i*6), HT_COLOR(1.0f, 1.0f, 1.0f, 1.0f));
break;
case 3:
g_cUIManager->HT_SetTextureControlImage(UI_WINDOW_EMBLEM, 100+j+(i*6), UI_GUILD_TITLETEX + (j +(i*6) + 42));
g_cUIManager->HT_SetTextureControlScale(UI_WINDOW_EMBLEM, 100+j+(i*6), 32, 32, 32, 32);
g_cUIManager->HT_SetTextureControlColor(UI_WINDOW_EMBLEM, 100+j+(i*6), HT_COLOR(1.0f, 1.0f, 1.0f, 1.0f));
break;
case 4:
g_cUIManager->HT_SetTextureControlImage(UI_WINDOW_EMBLEM, 100+j+(i*6), 0 );
g_cUIManager->HT_SetTextureControlScale(UI_WINDOW_EMBLEM, 100+j+(i*6), 32, 32, 32, 32);
switch(this->m_iSelectWindow)
{
case 0:
g_cUIManager->HT_SetTextureControlColor(UI_WINDOW_EMBLEM, 100+j+(i*6), AMBLEM_COLOR[j+(i*6)]);
break;
case 1:
g_cUIManager->HT_SetTextureControlColor(UI_WINDOW_EMBLEM, 100+j+(i*6), AMBLEM_COLOR[j+(i*6)+12]);
break;
case 2:
g_cUIManager->HT_SetTextureControlColor(UI_WINDOW_EMBLEM, 100+j+(i*6), AMBLEM_COLOR[j+(i*6)+32]);
break;
case 3:
g_cUIManager->HT_SetTextureControlColor(UI_WINDOW_EMBLEM, 100+j+(i*6), AMBLEM_COLOR[j+(i*6)+52]);
break;
}
break;
}
}
}
// 선택한 엠블럼을 입력받아 윈도우에 그려줍니다. (길드마크 제작창)
HTint HTGuild::HT_bGuild_GetDialogBoxEmblemMaxButton()
{
int max;
if ( this->m_iSelectWindow == 0 )
{
switch (m_iTabNo)
{
case 1: max = 12; break;
case 2: max = 24; break;
case 3: max = 0; break;
case 4: max = 12; break;
}
}
else
{
switch (m_iTabNo)
{
case 1: max = 20; break;
case 2: max = 42; break;
case 3: max = 42; break;
case 4: max = 20; break;
}
}
return max;
}
// 선택한 엠블럼을 입력받아 윈도우에 그려줍니다. (길드마크 제작창)
HTvoid HTGuild::HT_bGuild_DialogBoxDrawEmblem(int iIndex)
{
int max = this->HT_bGuild_GetDialogBoxEmblemMaxButton();
if (iIndex >= max) return;
// 현재 설정된 텝에 따라 인덱스를 저장합니다.
switch(m_iTabNo)
{
case 1: m_iBackIndex = iIndex; break;
case 2: m_iTitleIndex = iIndex; break;
case 3: m_iTitleIndex = iIndex+42; break;
case 4: m_iBackColor = iIndex; break;
}
// 조합을 그려 길드마크를 완성합니다.
switch(this->m_iSelectWindow)
{
case 0:
g_cUIManager->HT_SetTextureControlImage( UI_WINDOW_EMBLEM, 11, UI_GUILD_EMBLEMTEX_N + m_iBackIndex );
g_cUIManager->HT_SetTextureControlImage( UI_WINDOW_EMBLEM, 12, UI_GUILD_BACKTEX_N + m_iBackIndex );
g_cUIManager->HT_SetTextureControlColor( UI_WINDOW_EMBLEM, 11, AMBLEM_COLOR[m_iBackColor]);
break;
case 1:
g_cUIManager->HT_SetTextureControlImage( UI_WINDOW_EMBLEM, 11, UI_GUILD_EMBLEMTEX_B + m_iBackIndex );
g_cUIManager->HT_SetTextureControlImage( UI_WINDOW_EMBLEM, 12, UI_GUILD_BACKTEX_B + m_iBackIndex );
g_cUIManager->HT_SetTextureControlColor( UI_WINDOW_EMBLEM, 11, AMBLEM_COLOR[m_iBackColor+12]);
break;
case 2:
g_cUIManager->HT_SetTextureControlImage( UI_WINDOW_EMBLEM, 11, UI_GUILD_EMBLEMTEX_V + m_iBackIndex );
g_cUIManager->HT_SetTextureControlImage( UI_WINDOW_EMBLEM, 12, UI_GUILD_BACKTEX_V + m_iBackIndex );
g_cUIManager->HT_SetTextureControlColor( UI_WINDOW_EMBLEM, 11, AMBLEM_COLOR[m_iBackColor+32]);
break;
case 3:
g_cUIManager->HT_SetTextureControlImage( UI_WINDOW_EMBLEM, 11, UI_GUILD_EMBLEMTEX_S + m_iBackIndex );
g_cUIManager->HT_SetTextureControlImage( UI_WINDOW_EMBLEM, 12, UI_GUILD_BACKTEX_S + m_iBackIndex );
g_cUIManager->HT_SetTextureControlColor( UI_WINDOW_EMBLEM, 11, AMBLEM_COLOR[m_iBackColor+52]);
break;
}
g_cUIManager->HT_SetTextureControlImage( UI_WINDOW_EMBLEM, 13, UI_GUILD_TITLETEX + m_iTitleIndex );
}
// 엠블램 선택시 처리
HTvoid HTGuild::HT_bGuild_DialogBoxEmblemSelect()
{
// 본인의 주신에 따라 인덱스값 달리 계산
if (this->m_iSelectWindow != 0)
{
switch( g_oMainCharacterInfo.byTrimuriti )
{
case TRIMURITI_BRAHMA:
m_iBackIndex += 12;
m_iBackColor += 12;
break;
case TRIMURITI_VISHNU:
m_iBackIndex += 32;
m_iBackColor += 32;
break;
case TRIMURITI_SIVA:
m_iBackIndex += 52;
m_iBackColor += 52;
break;
default:
break;;
}
}
m_dwGuild_EmblemID = g_pEngineHandler->HT_dwConvertGuildMarkIdenty(m_iBackIndex+1, m_iTitleIndex+1, m_iBackColor+1);
g_cUIManager->HT_HideWindow(_DIALOG_AMBLEM);
// 길드마크 생성 요청
if (this->m_iSelectWindow == 0)
this->HT_vNetWork_CSP_MSG_GuildUpdateMark( 1 );
else // 유료 길드 마크는 다음을 호출
this->HT_vNetWork_CSP_MSG_GuildUpdateMark( 2 );
// NPC 대화내용 변경
g_cNPCControl->HT_vNPCControl_Create_GuildMark();
}
// 윈도우 제어 시도시 호출 (이곳에서 입력장치로부터 들어온 정보를 처리한다.)
void HTGuild::HT_vGuild_InputCheckForEmblemSelecting(int iAction, int iTarget, int iTargetID)
{
switch(iTarget)
{
case UI_TARGET_BUTTON: // 버튼의 경우 처리
switch(iTargetID)
{
case -2:// 백그라운드 다운시
break;
case -1:// 종료버튼
case 201: // 취소버튼
g_cUIManager->HT_HideWindow(_DIALOG_AMBLEM);
break;
case 200: // 확인버튼
g_cGuildSystem->HT_bGuild_DialogBoxEmblemSelect();
break;
case 1: // 텝 버튼 = 배경문양
case 2: // 문양
case 3: // 문양
case 4: // 배경색
g_cGuildSystem->HT_vGuild_DialogBoxDrawTab(iTargetID);
break;
}
if (iTargetID >= 100 && iTargetID < 142) // 앰블럼 버튼 클릭시
g_cGuildSystem->HT_bGuild_DialogBoxDrawEmblem(iTargetID-100);
break;
}
}
// 입력 메세지 처리
// AshramInfo
void HTGuild::HT_vGuild_InputCheckForAshramInfo(int iAction, int iTarget, int iTargetID)
{
if( iTarget == UI_TARGET_BUTTON )
{
if( iTargetID == -1 )
{
g_cUIManager->HT_HideWindow(_DIALOG_ASHRAMINFO);
}
// Button 구성인원
else if( iTargetID == 20 )
{
HTint iPosX, iPosY;
g_cUIManager->HT_GetWindowPos( _DIALOG_ASHRAMINFO, iPosX, iPosY );
g_cUIManager->HT_HideWindow( _DIALOG_ASHRAMINFO );
g_cUIManager->HT_ShowWindow( _DIALOG_ASHRAMMEMBERLISET );
g_cUIManager->HT_MoveWindow( _DIALOG_ASHRAMMEMBERLISET, iPosX, iPosY );
}
// Button 홈피제작
else if( iTargetID == 21 )
{
CHTString strString;
if ( g_cGuildSystem->m_oGuildInfo.GuildID != 0 && g_cGuildSystem->m_byGuild_GuilAuthority == GUILD_AUTHORITY_MAHARAJA )
{
if ( g_pMessageMgr->HT_bGetMessage( eMsgGuildBlogOpenWarning, &strString ) )
{
// 해당 블로그가 전체 화면으로 활성화 됩니다. 계속하시겠습니까?
g_cUIManager->HT_MessageBox( _DIALOG_ASHRAMINFO, strString.HT_szGetString(), 1 );
// MessageBox Type
g_cGuildSystem->m_iGuild_MsgBoxType = GUILDTYPE_CONFIRM_MAKEBLOG;
}
}
else
{
if ( g_pMessageMgr->HT_bGetMessage( eMsgGuildBlogMakeErr, &strString ) )
{
// 아쉬람에 가입되어 있지 않거나 마하라자가 아닌 경우 아쉬람 블로그 제작을 할 수 없습니다.
g_cUIManager->HT_MessageBox( _DIALOG_ASHRAMINFO, strString.HT_szGetString(), 0 );
// MessageBox Type
g_cGuildSystem->m_iGuild_MsgBoxType = GUILDTYPE_CONFIRM_NONE;
}
}
}
// Button 홈피입장
else if( iTargetID == 22 )
{
CHTString strString;
if ( g_cMainCharacter->m_iGuildSerial > 0 )
{
if ( g_pMessageMgr->HT_bGetMessage( eMsgGuildBlogOpenWarning, &strString ) )
{
g_cUIManager->HT_MessageBox( _DIALOG_ASHRAMINFO, strString.HT_szGetString(), 1 );
// MessageBox Type
g_cGuildSystem->m_iGuild_MsgBoxType = GUILDTYPE_CONFIRM_ENTERBLOG;
}
}
else
{
if ( g_pMessageMgr->HT_bGetMessage( eMsgGuildBlogErr, &strString ) )
{
// 아쉬람에 가입되어 있지 않은 경우 아쉬람 블로그에 접근할 수 없습니다.
g_cUIManager->HT_MessageBox( _DIALOG_ASHRAMINFO, strString.HT_szGetString(), 0 );
// MessageBox Type
g_cGuildSystem->m_iGuild_MsgBoxType = GUILDTYPE_CONFIRM_NONE;
}
}
}
// Button 개인블로그
else if( iTargetID == 27 )
{
CHTString strString;
if ( g_pMessageMgr->HT_bGetMessage( eMsgGuildBlogOpenWarning, &strString ) )
g_cUIManager->HT_MessageBox( _DIALOG_ASHRAMINFO, strString.HT_szGetString(), 1 );
// MessageBox Type
g_cGuildSystem->m_iGuild_MsgBoxType = GUILDTYPE_CONFIRM_PERSONALBLOG;
}
}
else if( iTarget == UI_TARGET_MESSAGEBOX )
{
// 확인
if( iTargetID == 2 )
{
// MessageBox Type
if( g_cGuildSystem->m_iGuild_MsgBoxType == GUILDTYPE_CONFIRM_MAKEBLOG )
{
HTint iServer = 0;
if ( g_gServerType == SERVERTYPE_TEST ) iServer = 0; // Test Server : 0
else
{
// Main Server : 졸라 하드 코딩
// 마나스 - 1, 디야나 - 2, 크리야 - 3, 아트만 - 4, 수리야 - 5
if ( g_strSelectServerName == _T("마나스") ) { iServer = 1; }
else if ( g_strSelectServerName == _T("디야나") ) { iServer = 2; }
else if ( g_strSelectServerName == _T("크리야") ) { iServer = 3; }
else if ( g_strSelectServerName == _T("아트만") ) { iServer = 4; }
else if ( g_strSelectServerName == _T("수리야") ) { iServer = 5; }
else { iServer = 6; }
}
CHTString strWeb( _T("http://www.hanbiton.com/h_game/h_tantra/guild_make.aspx") );
//CHTString strWeb( _T("http://login.hanbiton.com/h_help/tantra_login.aspx") );
CHTString strWebParam;
{
strWebParam.HT_szFormat( _T("returnurl=http://home.hanbiton.com/guild/game.aspx&GuildID=%d&World=%d&nm_game=tantra&userid=%s&userpw=%s"),
g_cGuildSystem->m_oGuildInfo.GuildID,
iServer,
(HTtchar*)g_strLoginID,
(HTtchar*)g_strLgoinPasswordMD5 );
//strWebParam.HT_szFormat(
// _T("returnurl=http://home.hanbiton.com/h_game/h_space/h_make/make01.aspx&nm_game=tantra&userid=%s&userpw=%s&nm_master=%s&nm_ashiram=%s&no_ashiram=%d&no_server=%d"),
// (HTtchar*)g_strLoginID, (HTtchar*)g_strLgoinPasswordMD5, // Log In 정보
// (HTtchar*)g_strLoginID, // 마스터 아이디 (nm_master)
// (HTtchar*)g_cGuildSystem->HT_strGuild_GetGuildName(), // 아쉬람명 (nm_ashiram)
// g_cMainCharacter->m_iGuildSerial, // 아쉬람고유번호 (no_ashiram)
// iServer ); // 서버번호 (no_server)
}
HTRESULT hResult = HT_OK;
if ( HT_FAILED( hResult = g_pEngineHandler->HT_hrOpenWebWithPost( g_hWnd, strWeb, strWebParam, 10 ) ) )
{
CHTString strString;
// 블로그 서버가 응답하지 않습니다. 잠시 후에 다시 시도해 주시기 바랍니다.
// 블로그 서버에 연결하기 위한 프로그램 초기화에 실패했습니다.
// 블로그 서버 연결 초기화에 실패했습니다.
// 블로그 서버 연결을 위한 프로그램 검색에 실패했습니다.
// 블로그 서버가 알 수 없는 오류를 알려왔습니다.
if ( hResult == HT_FAIL ) g_pMessageMgr->HT_bGetMessage( eMsgGuildBlogOpenError1, &strString );
else if ( hResult == 1 ) g_pMessageMgr->HT_bGetMessage( eMsgGuildBlogOpenError2, &strString );
else if ( hResult == 2 ) g_pMessageMgr->HT_bGetMessage( eMsgGuildBlogOpenError3, &strString );
else if ( hResult == 3 ) g_pMessageMgr->HT_bGetMessage( eMsgGuildBlogOpenError4, &strString );
else g_pMessageMgr->HT_bGetMessage( eMsgGuildBlogOpenError5, &strString );
g_cUIManager->HT_MessageBox( _DIALOG_ASHRAMINFO, strString.HT_szGetString(), 0 );
// MessageBox Type
g_cGuildSystem->m_iGuild_MsgBoxType = GUILDTYPE_CONFIRM_NONE;
}
}
else if( g_cGuildSystem->m_iGuild_MsgBoxType == GUILDTYPE_CONFIRM_ENTERBLOG )
{
HTint iServer = 0;
if ( g_gServerType == SERVERTYPE_TEST ) iServer = 0; // Test Server : 0
else
{
// Main Server : 졸라 하드 코딩
// 마나스 - 1, 디야나 - 2, 크리야 - 3, 아트만 - 4, 수리야 - 5
if ( g_strSelectServerName == _T("마나스") ) { iServer = 1; }
else if ( g_strSelectServerName == _T("디야나") ) { iServer = 2; }
else if ( g_strSelectServerName == _T("크리야") ) { iServer = 3; }
else if ( g_strSelectServerName == _T("아트만") ) { iServer = 4; }
else if ( g_strSelectServerName == _T("수리야") ) { iServer = 5; }
else { iServer = 6; }
}
HTRESULT hResult = HT_OK;
CHTString strWeb( _T("http://www.hanbiton.com/h_game/h_tantra/guild_enter.aspx") );
//CHTString strWeb( _T("http://login.hanbiton.com/h_help/tantra_login.aspx") );
CHTString strWebParam;
{
strWebParam.HT_szFormat( _T("returnurl=http://home.hanbiton.com/guild/game.aspx&GuildID=%d&World=%d&nm_game=tantra&userid=%s&userpw=%s"),
g_cGuildSystem->m_oGuildInfo.GuildID,
iServer,
(HTtchar*)g_strLoginID,
(HTtchar*)g_strLgoinPasswordMD5 ); // Log In 정보
//strWebParam.HT_szFormat( _T("returnurl=http://home.hanbiton.com/guild/game.aspx&nm_game=tantra&userid=%s&userpw=%s&nm_ashiram=%s&no_ashiram=%d&no_server=%d"),
// (HTtchar*)g_strLoginID, (HTtchar*)g_strLgoinPasswordMD5, // Log In 정보
// (HTtchar*)g_cGuildSystem->HT_strGuild_GetGuildName(), // 아쉬람명 (nm_ashiram)
// g_cMainCharacter->m_iGuildSerial, // 아쉬람고유번호 (no_ashiram)
// iServer ); // 서버번호 (no_server)
}
if ( HT_FAILED( hResult = g_pEngineHandler->HT_hrOpenWebWithPost( g_hWnd, strWeb, strWebParam, 10 ) ) )
{
CHTString strString;
if ( hResult == HT_FAIL ) g_pMessageMgr->HT_bGetMessage( eMsgGuildBlogOpenError1, &strString );
else if ( hResult == 1 ) g_pMessageMgr->HT_bGetMessage( eMsgGuildBlogOpenError2, &strString );
else if ( hResult == 2 ) g_pMessageMgr->HT_bGetMessage( eMsgGuildBlogOpenError3, &strString );
else if ( hResult == 3 ) g_pMessageMgr->HT_bGetMessage( eMsgGuildBlogOpenError4, &strString );
else g_pMessageMgr->HT_bGetMessage( eMsgGuildBlogOpenError5, &strString );
g_cUIManager->HT_MessageBox( _DIALOG_ASHRAMINFO, strString.HT_szGetString(), 0 );
// MessageBox Type
g_cGuildSystem->m_iGuild_MsgBoxType = GUILDTYPE_CONFIRM_NONE;
}
}
else if( g_cGuildSystem->m_iGuild_MsgBoxType == GUILDTYPE_CONFIRM_PERSONALBLOG )
{
HTRESULT hResult = HT_OK;
CHTString strWeb( _T("http://www.hanbiton.com/h_game/h_tantra/minibl.aspx") );
//CHTString strWeb( _T("http://login.hanbiton.com/h_help/blog_login.aspx") );
CHTString strWebParam;
strWebParam.HT_szFormat( _T("returnurl=http://home.hanbiton.com/minible/home/main.aspx&nm_game=tantra&userid=%s&userpw=%s&id=%s"), (HTtchar*)g_strLoginID, (HTtchar*)g_strLgoinPasswordMD5, (HTtchar*)g_strLoginID ); // 사용자 아이디 (userid)
if ( HT_FAILED( hResult = g_pEngineHandler->HT_hrOpenWebWithPost( g_hWnd, strWeb, strWebParam, 10 ) ) )
{
CHTString strString;
if ( hResult == HT_FAIL ) g_pMessageMgr->HT_bGetMessage( eMsgGuildBlogOpenError1, &strString );
else if ( hResult == 1 ) g_pMessageMgr->HT_bGetMessage( eMsgGuildBlogOpenError2, &strString );
else if ( hResult == 2 ) g_pMessageMgr->HT_bGetMessage( eMsgGuildBlogOpenError3, &strString );
else if ( hResult == 3 ) g_pMessageMgr->HT_bGetMessage( eMsgGuildBlogOpenError4, &strString );
else g_pMessageMgr->HT_bGetMessage( eMsgGuildBlogOpenError5, &strString );
g_cUIManager->HT_MessageBox( _DIALOG_ASHRAMINFO, strString.HT_szGetString(), 0 );
// MessageBox Type
g_cGuildSystem->m_iGuild_MsgBoxType = GUILDTYPE_CONFIRM_NONE;
}
}
else if( g_cGuildSystem->m_iGuild_MsgBoxType == GUILDTYPE_CONFIRM_OTHERBLOG )
{
CHTString strClickAccount;
if ( HT_SUCCEED( g_cOtherObjectSystem->HT_hrGetCharacterAccount( g_iBlogClickedChar, &strClickAccount) ) )
{
HTRESULT hResult = HT_OK;
CHTString strWeb( _T("http://www.hanbiton.com/h_game/h_tantra/minibl.aspx") );
//CHTString strWeb( _T("http://login.hanbiton.com/h_help/blog_login.aspx") );
CHTString strWebParam;
strWebParam.HT_szFormat( _T("returnurl=http://home.hanbiton.com/minible/home/main.aspx&nm_game=tantra&userid=%s&userpw=%s&id=%s"), (HTtchar*)g_strLoginID, (HTtchar*)g_strLgoinPasswordMD5, (HTtchar*)strClickAccount ); // 사용자 아이디 (userid)
if ( HT_FAILED( hResult = g_pEngineHandler->HT_hrOpenWebWithPost( g_hWnd, strWeb, strWebParam, 10 ) ) )
{
CHTString strString;
if ( hResult == HT_FAIL ) g_pMessageMgr->HT_bGetMessage( eMsgGuildBlogOpenError1, &strString );
else if ( hResult == 1 ) g_pMessageMgr->HT_bGetMessage( eMsgGuildBlogOpenError2, &strString );
else if ( hResult == 2 ) g_pMessageMgr->HT_bGetMessage( eMsgGuildBlogOpenError3, &strString );
else if ( hResult == 3 ) g_pMessageMgr->HT_bGetMessage( eMsgGuildBlogOpenError4, &strString );
else g_pMessageMgr->HT_bGetMessage( eMsgGuildBlogOpenError5, &strString );
g_cUIManager->HT_MessageBox( _DIALOG_ASHRAMINFO, strString.HT_szGetString(), 0 );
// MessageBox Type
g_cGuildSystem->m_iGuild_MsgBoxType = GUILDTYPE_CONFIRM_NONE;
}
}
}
else if( g_cGuildSystem->m_iGuild_MsgBoxType == GUILDTYPE_CONFIRM_PERSONALBOARD )
{
HTRESULT hResult = HT_OK;
CHTString strWeb( _T("http://www.hanbiton.com/h_game/h_tantra/guild.aspx") );
//CHTString strWeb( _T("http://login.hanbiton.com/h_help/game_login.aspx") );
CHTString strWebParam;
strWebParam.HT_szFormat( _T("returnurl=http://home.hanbiton.com/h_game/h_space/main.aspx&nm_game=tantra&userid=%s&userpw=%s"), (HTtchar*)g_strLoginID, (HTtchar*)g_strLgoinPasswordMD5 ); // 사용자 아이디 (userid)
if ( HT_FAILED( hResult = g_pEngineHandler->HT_hrOpenWebWithPost( g_hWnd, strWeb, strWebParam, 10 ) ) )
{
CHTString strString;
if ( hResult == HT_FAIL ) g_pMessageMgr->HT_bGetMessage( eMsgGuildBlogOpenError1, &strString );
else if ( hResult == 1 ) g_pMessageMgr->HT_bGetMessage( eMsgGuildBlogOpenError2, &strString );
else if ( hResult == 2 ) g_pMessageMgr->HT_bGetMessage( eMsgGuildBlogOpenError3, &strString );
else if ( hResult == 3 ) g_pMessageMgr->HT_bGetMessage( eMsgGuildBlogOpenError4, &strString );
else g_pMessageMgr->HT_bGetMessage( eMsgGuildBlogOpenError5, &strString );
g_cUIManager->HT_MessageBox( _DIALOG_ASHRAMINFO, strString.HT_szGetString(), 0 );
// MessageBox Type
g_cGuildSystem->m_iGuild_MsgBoxType = GUILDTYPE_CONFIRM_NONE;
}
}
// 연합 아쉬람 요청
else if( g_cGuildSystem->m_iGuild_MsgBoxType == GUILDTYPE_CONFIRM_REQALLIANCE )
{
CHTString strString;
HT_g_Script_SetMessage( eMsgCommonAshuramGuildMsg2, &strString, g_cGuildSystem->m_strAshuramGuildJoin_SendCharName.HT_szGetString() );
g_BasicLoadingInfo->HT_vNetWorkMessageSetHistory( HISTORY_MESSAGE_TYPE_CHAKRA, strString );
// 서버에 패킷 전송하기
g_cGuildSystem->HT_vGuildNet_CSP_AshuramGuild(1,1,0);
// 수락
g_cGuildSystem->m_byAshuramGuildJoin_ResponseReason = 1;
}
// 연합 아쉬람 요청에 대한 응답
else if( g_cGuildSystem->m_iGuild_MsgBoxType == GUILDTYPE_CONFIRM_RECIVEALLIANCE )
{
// 서버에 패킷 전송하기 (수락함)
g_cGuildSystem->HT_vGuildNet_CSP_AshuramGuild(1,1,1);
// 수락
g_cGuildSystem->m_byAshuramGuildJoin_ResponseReason = 1;
}
}
else if( iTargetID == 3 )
{
// 연합 아쉬람 요청
if( g_cGuildSystem->m_iGuild_MsgBoxType == GUILDTYPE_CONFIRM_REQALLIANCE )
{
CHTString strString;
HT_g_Script_SetMessage( eMsgCommonAshuramGuildMsg8, &strString );
g_BasicLoadingInfo->HT_vNetWorkMessageSetHistory( HISTORY_MESSAGE_TYPE_CHAKRA, strString );
g_cGuildSystem->m_byAshuramGuildJoin_ResponseReason = 0; // 취소
}
// 연합 아쉬람 요청에 대한 응답
else if( g_cGuildSystem->m_iGuild_MsgBoxType == GUILDTYPE_CONFIRM_RECIVEALLIANCE )
{
// 서버에 패킷 전송하기 (거부함)
g_cGuildSystem->HT_vGuildNet_CSP_AshuramGuild(1,1,5);
CHTString strString;
HT_g_Script_SetMessage( eMsgCommonAshuramGuildMsg8, &strString );
g_BasicLoadingInfo->HT_vNetWorkMessageSetHistory( HISTORY_MESSAGE_TYPE_CHAKRA, strString );
}
}
}
}
// AshramMemberList
void HTGuild::HT_vGuild_InputCheckForAshramMemberList(int iAction, int iTarget, int iTargetID)
{
if( iTarget == UI_TARGET_BUTTON )
{
if( iTargetID == -1 )
{
g_cUIManager->HT_HideWindow(_DIALOG_ASHRAMMEMBERLISET);
}
// Button 멤버
else if( iTargetID>=10 && iTargetID<20 )
{
g_cGuildSystem->m_strGuild_ListSelectdName = g_cUIManager->HT_GetTextLabelControl( _DIALOG_ASHRAMMEMBERLISET, iTargetID );
// 귓속말 상태로 만들어 주고..
g_cChatting->HT_vChatting_SetWisper( g_cGuildSystem->m_strGuild_ListSelectdName );
}
// Button 아쉬람정보
else if( iTargetID == 50 )
{
HTint iPosX, iPosY;
g_cUIManager->HT_GetWindowPos( _DIALOG_ASHRAMMEMBERLISET, iPosX, iPosY );
g_cUIManager->HT_HideWindow( _DIALOG_ASHRAMMEMBERLISET );
g_cUIManager->HT_ShowWindow( _DIALOG_ASHRAMINFO );
g_cUIManager->HT_MoveWindow( _DIALOG_ASHRAMINFO, iPosX, iPosY );
}
// Button 가입
else if( iTargetID == 51 )
{
g_cGuildSystem->m_byGuild_ConfirmGrade = GUILDTYPE_CONFIRM_JOIN;
// 아이콘 모양이 바뀌게 설정해 준다.
}
// Button 탈퇴
else if( iTargetID == 52 )
{
if( !g_cGuildSystem->m_strGuild_GuildName.HT_bIsEmpty() )
{
CHTString strTemp;
// 길드마스터이고, 선택한 이름이 같을때
if( !g_cGuildSystem->m_strGuild_ListSelectdName.HT_bIsEmpty() &&
g_cGuildSystem->m_byGuild_GuilAuthority == GUILD_AUTHORITY_MAHARAJA )
{
// 선택한 이름이 나자신이 아닐때
if( g_cGuildSystem->m_strGuild_ListSelectdName.HT_iStringCompare( g_oMainCharacterInfo.szCharName ) != 0 )
{
g_cGuildSystem->m_byGuild_ConfirmGrade = GUILDTYPE_CONFIRM_EXPEL;
// %s 님을 길드에서 제명 하시겠습니까?
HT_g_Script_SetMessage( eMsgGuildReqDelMemberQuestion, &strTemp, g_cGuildSystem->m_strGuild_ListSelectdName.HT_szGetString() );
g_cUIManager->HT_MessageBox( _DIALOG_ASHRAMMEMBERLISET, strTemp.HT_szGetString(), 1 );
}
else
{
// 연합아쉬람을 맺은 상태에선 탈퇴 불가
if (strcmp(g_cGuildSystem->m_strAlliedGuildName[0].HT_szGetString(), " ") != 0)
{
HT_g_Script_SetMessage( eMsgCommonAshuramGuildMsg13, &strTemp, g_cGuildSystem->m_strAshuramGuildJoin_SendCharName.HT_szGetString() );
g_BasicLoadingInfo->HT_vNetWorkMessageSetHistory( HISTORY_MESSAGE_TYPE_CHAKRA, strTemp.HT_szGetString() );
}
else
{
g_cGuildSystem->m_byGuild_ConfirmGrade = GUILDTYPE_CONFIRM_DESTROY;
// 정말 길드에서 탈퇴하시렵니까?
HT_g_Script_SetMessage( eMsgGuildReqSecessionQuestion, &strTemp, _T("") );
g_cUIManager->HT_MessageBox( _DIALOG_ASHRAMMEMBERLISET, strTemp.HT_szGetString(), 1 );
}
}
}
else
{
if( g_cGuildSystem->m_byGuild_GuilAuthority == GUILD_AUTHORITY_MAHARAJA )
{
// 연합 아쉬람을 맺은 상태에선 탈퇴 불가
if (strcmp(g_cGuildSystem->m_strAlliedGuildName[0].HT_szGetString(), " ") != 0)
{
HT_g_Script_SetMessage( eMsgCommonAshuramGuildMsg13, &strTemp, g_cGuildSystem->m_strAshuramGuildJoin_SendCharName.HT_szGetString() );
g_BasicLoadingInfo->HT_vNetWorkMessageSetHistory( HISTORY_MESSAGE_TYPE_CHAKRA, strTemp.HT_szGetString() );
}
else
{
g_cGuildSystem->m_byGuild_ConfirmGrade = GUILDTYPE_CONFIRM_DESTROY;
// 정말 길드에서 탈퇴하시렵니까?
HT_g_Script_SetMessage( eMsgGuildReqSecessionQuestion, &strTemp, _T("") );
g_cUIManager->HT_MessageBox( _DIALOG_ASHRAMMEMBERLISET, strTemp.HT_szGetString(), 1 );
}
}
else
{
g_cGuildSystem->m_byGuild_ConfirmGrade = GUILDTYPE_CONFIRM_SECEDE;
// 정말 길드에서 탈퇴하시렵니까?
HT_g_Script_SetMessage( eMsgGuildReqSecessionQuestion, &strTemp, _T("") );
g_cUIManager->HT_MessageBox( _DIALOG_ASHRAMMEMBERLISET, strTemp.HT_szGetString(), 1 );
}
}
}
}
}
else if( iTarget == UI_TARGET_MESSAGEBOX )
{
// 확인
if( iTargetID == 2 )
{
switch( g_cGuildSystem->m_byGuild_ConfirmGrade )
{
// 가입요청을 알려옴
case GUILDTYPE_CONFIRM_JOINNOTIFY :
// 길드 참여 승인
g_cGuildSystem->HT_vNetWork_CSP_CNFGuild();
break;
// 탈퇴, 제명, 해체
case GUILDTYPE_CONFIRM_SECEDE :
case GUILDTYPE_CONFIRM_EXPEL :
case GUILDTYPE_CONFIRM_DESTROY :
g_cGuildSystem->HT_vNetWork_CSP_Remove_GuildMember();
break;
}
}
// 확인 단계
g_cGuildSystem->m_byGuild_ConfirmGrade = GUILDTYPE_CONFIRM_NONE;
}
else if( iTarget == UI_TARGET_SCROLLBAR )
{
g_cGuildSystem->HT_vGuild_Display();
}
}
// AshramCago
void HTGuild::HT_vGuild_InputCheckForAshramCago(int iAction, int iTarget, int iTargetID)
{
if( iTarget == UI_TARGET_BUTTON )
{
if( iTargetID == -1 )
{
g_cUIManager->HT_HideWindow(_DIALOG_ASHRAMCAGO);
}
else if( iTargetID == 1 )
{
if( g_cUIManager->m_bSlotBoxMoving )
g_cUIManager->HT_RefuseSlotImageMoving();
g_cGuildSystem->m_iPrevPageOfAshramCargo = g_cGuildSystem->m_iPageOfAshramCargo;
g_cGuildSystem->m_iPageOfAshramCargo = 0;
g_cGuildSystem->HT_vAshram_CSPAshramItem();
}
else if( iTargetID == 2 )
{
if( g_cUIManager->m_bSlotBoxMoving )
g_cUIManager->HT_RefuseSlotImageMoving();
g_cGuildSystem->m_iPrevPageOfAshramCargo = g_cGuildSystem->m_iPageOfAshramCargo;
g_cGuildSystem->m_iPageOfAshramCargo = 1;
g_cGuildSystem->HT_vAshram_CSPAshramItem();
}
else if( iTargetID == 3 )
{
if( g_cUIManager->m_bSlotBoxMoving )
g_cUIManager->HT_RefuseSlotImageMoving();
g_cGuildSystem->m_iPrevPageOfAshramCargo = g_cGuildSystem->m_iPageOfAshramCargo;
g_cGuildSystem->m_iPageOfAshramCargo = 2;
g_cGuildSystem->HT_vAshram_CSPAshramItem();
}
else if( iTargetID == 4 )
{
g_cGuildSystem->m_iPageOfAshramCargo = 2;
}
}
else if( iTarget == UI_TARGET_SLOTBOX )
{
unsigned int iWIndex, iCIndex;
int iTextureId;
g_cUIManager->HT_GetSlotBoxControlSourInfo( iWIndex, iCIndex, iTextureId );
// 아이콘을 들고 엉뚱한 곳에 클릭했을때
if( iTargetID == -1 || iTargetID == -2 )
{
g_cUIManager->HT_RefuseSlotImageMoving();
return;
}
// 아이콘을 클릭하는 순간에도 이벤트가 발생해 줘야 함 그래서 클릭한 아이콘을 팝업할수 있는지 확인하는 절차가 필요함 일단은 여기다 둔다.
if( HT_FAILED( g_cItemControl->HT_bItemControl_ButtonCheck_SwitchOn( iWIndex, iCIndex, _DIALOG_ASHRAMCAGO, iTargetID ) ) )
{
g_cUIManager->HT_RefuseSlotImageMoving();
return;
}
if( HT_FAILED( g_cItemControl->HT_vItemControl_ButtonCheck_SwitchOff( _DIALOG_ASHRAMCAGO, iTargetID ) ) )
{
g_cUIManager->HT_RefuseSlotImageMoving();
return;
}
// 기존의 슬롯에 아이템이 있으면 덮어지지 않게 처리
if( g_cItemSystem->HT_dwItemSystem_ItemSerch(ITEM_LOCATION_ASHRAMCARGO, ITEM_LOCATION_ASHRAMCARGO_BAG1, iTargetID) == 0 )
{
g_cUIManager->HT_AcceptSlotImageMoving();
g_cUIManager->HT_SetSlotImage( _DIALOG_ASHRAMCAGO, iTargetID , 0 );
}
else
{
g_cUIManager->HT_AcceptSlotImageMoving();
}
}
}
// Sanction Ashram Cago
void HTGuild::HT_vGuild_InputCheckForSanctionAshramCago(int iAction, int iTarget, int iTargetID)
{
if( iTarget == UI_TARGET_BUTTON )
{
CHTString strMessage;
CHTString strTemp;
if( iTargetID == -1 )
{
g_cUIManager->HT_HideWindow(_DIALOG_SANCTIONASHCAGO);
}
else if( iTargetID == 1 )
{
// 현재 보유한 루피아 체크
if( g_cEquipInventory->HT_iEquipInventory_GetPCMoney() < 2000000 )
{
g_cUIManager->HT_SetScriptMessage( eMsgAshramFaildShortOfRupia, &strMessage, _T(""), _T("") ); // 루피아가 부족하여 요청하신 작업을 수행할수 없습니다.
g_BasicLoadingInfo->HT_vNetWorkMessageSetHistory( HISTORY_MESSAGE_TYPE_CHAKRA, strMessage );
return;
}
// Ashram Cargo Extence Type
g_cGuildSystem->m_byAshramCargoExtenceType = 1;
g_cUIManager->HT_SetScriptMessage( eMsgAshramReqNeedRupia, &strMessage, _T(""), _T("") ); // 선택하신 아쉬람 창고는 200만 루피아가 필요합니다.\n 정말 사용하시겠습니까?
strTemp.HT_szFormat( strMessage, 200 );
g_cUIManager->HT_MessageBox( _DIALOG_SANCTIONASHCAGO, strTemp, 1 );
}
else if( iTargetID == 2 )
{
// 현재 보유한 루피아 체크
if( g_cEquipInventory->HT_iEquipInventory_GetPCMoney() < 3000000 )
{
g_cUIManager->HT_SetScriptMessage( eMsgAshramFaildShortOfRupia, &strMessage, _T(""), _T("") ); // 루피아가 부족하여 요청하신 작업을 수행할수 없습니다.
g_BasicLoadingInfo->HT_vNetWorkMessageSetHistory( HISTORY_MESSAGE_TYPE_CHAKRA, strMessage );
return;
}
// Ashram Cargo Extence Type
g_cGuildSystem->m_byAshramCargoExtenceType = 2;
g_cUIManager->HT_SetScriptMessage( eMsgAshramReqNeedRupia, &strMessage, _T(""), _T("") ); // 선택하신 아쉬람 창고는 300만 루피아가 필요합니다.\n 정말 사용하시겠습니까?
strTemp.HT_szFormat( strMessage, 300 );
g_cUIManager->HT_MessageBox( _DIALOG_SANCTIONASHCAGO, strTemp, 1 );
}
else if( iTargetID == 3 )
{
// 현재 보유한 루피아 체크
if( g_cEquipInventory->HT_iEquipInventory_GetPCMoney() < 3500000 )
{
g_cUIManager->HT_SetScriptMessage( eMsgAshramFaildShortOfRupia, &strMessage, _T(""), _T("") ); // 루피아가 부족하여 요청하신 작업을 수행할수 없습니다.
g_BasicLoadingInfo->HT_vNetWorkMessageSetHistory( HISTORY_MESSAGE_TYPE_CHAKRA, strMessage );
return;
}
// Ashram Cargo Extence Type
g_cGuildSystem->m_byAshramCargoExtenceType = 3;
g_cUIManager->HT_SetScriptMessage( eMsgAshramReqNeedRupia, &strMessage, _T(""), _T("") ); // 선택하신 아쉬람 창고는 350만 루피아가 필요합니다.\n 정말 사용하시겠습니까?
strTemp.HT_szFormat( strMessage, 350 );
g_cUIManager->HT_MessageBox( _DIALOG_SANCTIONASHCAGO, strTemp, 1 );
}
}
else if( iTarget == UI_TARGET_MESSAGEBOX )
{
// 확인 버튼
if( iTargetID == 2 )
{
if( g_cGuildSystem->m_byAshramCargoExtenceType == 1 )
g_cGuildSystem->HT_vAshram_CSPGuildCargoTimeExtension( 1 );
else if( g_cGuildSystem->m_byAshramCargoExtenceType == 2 )
g_cGuildSystem->HT_vAshram_CSPGuildCargoTimeExtension( 2 );
else if( g_cGuildSystem->m_byAshramCargoExtenceType == 3 )
g_cGuildSystem->HT_vAshram_CSPGuildCargoTimeExtension( 3 );
}
}
}
// SetLevel Ashram Cago
void HTGuild::HT_vGuild_InputCheckForSetLevelAshramCago(int iAction, int iTarget, int iTargetID)
{
if( iTarget == UI_TARGET_BUTTON )
{
if( iTargetID == -1 )
{
g_cUIManager->HT_HideWindow(_DIALOG_SETLEVELASHCAGO);
}
// 창고1 권한
else if( iTargetID == 10 || iTargetID == 11 || iTargetID == 12 || iTargetID == 13 )
{
HTbyte byLevel;
HTint iLevel = iTargetID-10;
//for( HTint i=0 ; i<4 ; i++ )
//{
// if( iLevel>=i ) g_cUIManager->HT_SetTextureControlDisplay( _DIALOG_SETLEVELASHCAGO, 10+(0*4)+i, HT_TRUE );
// else g_cUIManager->HT_SetTextureControlDisplay( _DIALOG_SETLEVELASHCAGO, 10+(0*4)+i, HT_FALSE );
//}
if( iLevel == 0 ) byLevel = eGuildSubMaster;
else if( iLevel == 1 ) byLevel = eGuildThird;
else if( iLevel == 2 ) byLevel = eGuildForth;
else if( iLevel == 3 ) byLevel = eGuildMember;
g_cGuildSystem->HT_vAshram_CSPSetLevelAshramCargo( 0, byLevel );
}
// 창고2 권한
else if( iTargetID == 14 || iTargetID == 15 || iTargetID == 16 || iTargetID == 17 )
{
HTbyte byLevel;
HTint iLevel = iTargetID-14;
//for( HTint i=0 ; i<4 ; i++ )
//{
// if( iLevel>=i ) g_cUIManager->HT_SetTextureControlDisplay( _DIALOG_SETLEVELASHCAGO, 10+(1*4)+i, HT_TRUE );
// else g_cUIManager->HT_SetTextureControlDisplay( _DIALOG_SETLEVELASHCAGO, 10+(1*4)+i, HT_FALSE );
//}
if( iLevel == 0 ) byLevel = eGuildSubMaster;
else if( iLevel == 1 ) byLevel = eGuildThird;
else if( iLevel == 2 ) byLevel = eGuildForth;
else if( iLevel == 3 ) byLevel = eGuildMember;
g_cGuildSystem->HT_vAshram_CSPSetLevelAshramCargo( 1, byLevel );
}
// 창고3 권한
else if( iTargetID == 18 || iTargetID == 19 || iTargetID == 20 || iTargetID == 21 )
{
HTbyte byLevel;
HTint iLevel = iTargetID-18;
//for( HTint i=0 ; i<4 ; i++ )
//{
// if( iLevel>=i ) g_cUIManager->HT_SetTextureControlDisplay( _DIALOG_SETLEVELASHCAGO, 10+(2*4)+i, HT_TRUE );
// else g_cUIManager->HT_SetTextureControlDisplay( _DIALOG_SETLEVELASHCAGO, 10+(2*4)+i, HT_FALSE );
//}
if( iLevel == 0 ) byLevel = eGuildSubMaster;
else if( iLevel == 1 ) byLevel = eGuildThird;
else if( iLevel == 2 ) byLevel = eGuildForth;
else if( iLevel == 3 ) byLevel = eGuildMember;
g_cGuildSystem->HT_vAshram_CSPSetLevelAshramCargo( 2, byLevel );
}
}
}
// 길드창에 아쉬람 및 주신마크 붙이기
HTvoid HTGuild::HT_vGuild_DialogBoxActiveOutput(void)
{
HTint iToBmp1, iToBmp2;
g_cUIManager->HT_SetTextureControlColor( _DIALOG_ASHRAMINFO, 23, HT_COLOR(1.0f, 1.0f, 1.0f, 0.0f));
g_cUIManager->HT_SetTextureControlColor( _DIALOG_ASHRAMINFO, 24, HT_COLOR(1.0f, 1.0f, 1.0f, 0.0f));
g_cUIManager->HT_SetTextureControlColor( _DIALOG_ASHRAMINFO, 25, HT_COLOR(1.0f, 1.0f, 1.0f, 0.0f));
g_cUIManager->HT_SetTextureControlColor( _DIALOG_ASHRAMINFO, 26, HT_COLOR(1.0f, 1.0f, 1.0f, 0.0f));
if (g_oMainCharacterInfo.byTrimuriti == 0) return;
if ( g_oMainCharacterInfo.byTrimuriti == TRIMURITI_BRAHMA ) iToBmp1 = 23659;
else if ( g_oMainCharacterInfo.byTrimuriti == TRIMURITI_VISHNU ) iToBmp1 = 23658;
else if ( g_oMainCharacterInfo.byTrimuriti == TRIMURITI_SIVA ) iToBmp1 = 23660;
g_cUIManager->HT_SetTextureControlImage( _DIALOG_ASHRAMINFO, 23, iToBmp1 );
g_cUIManager->HT_SetTextureControlScale( _DIALOG_ASHRAMINFO, 23, 32, 32, 32, 32);
if (g_bGuildMarkShow == HT_FALSE || m_iEmblem == -1 || m_iTitle == -1 || m_iColor == -1 ) return;
if( m_iEmblem > 12 )
{
if ( g_oMainCharacterInfo.byTrimuriti == TRIMURITI_BRAHMA )
iToBmp1 = UI_GUILD_EMBLEMTEX_B + (m_iEmblem - 12), iToBmp2 = UI_GUILD_BACKTEX_B + (m_iEmblem - 12);
else if ( g_oMainCharacterInfo.byTrimuriti == TRIMURITI_VISHNU )
iToBmp1 = UI_GUILD_EMBLEMTEX_V + (m_iEmblem - 12), iToBmp2 = UI_GUILD_BACKTEX_V + (m_iEmblem - 12);
else if ( g_oMainCharacterInfo.byTrimuriti == TRIMURITI_SIVA )
iToBmp1 = UI_GUILD_EMBLEMTEX_S + (m_iEmblem - 12), iToBmp2 = UI_GUILD_BACKTEX_S + (m_iEmblem - 12);
}
else
{
iToBmp1 = UI_GUILD_EMBLEMTEX_N + m_iEmblem, iToBmp2 = UI_GUILD_BACKTEX_N + m_iEmblem;
}
g_cUIManager->HT_SetTextureControlImage( _DIALOG_ASHRAMINFO, 24, iToBmp1-1 );
g_cUIManager->HT_SetTextureControlImage( _DIALOG_ASHRAMINFO, 25, iToBmp2-1 );
g_cUIManager->HT_SetTextureControlImage( _DIALOG_ASHRAMINFO, 26, UI_GUILD_TITLETEX + m_iTitle - 1 );
g_cUIManager->HT_SetTextureControlScale( _DIALOG_ASHRAMINFO, 24, 64, 64, 64, 64);
g_cUIManager->HT_SetTextureControlScale( _DIALOG_ASHRAMINFO, 25, 64, 64, 64, 64);
g_cUIManager->HT_SetTextureControlScale( _DIALOG_ASHRAMINFO, 26, 32, 32, 32, 32);
g_cUIManager->HT_SetTextureControlColor( _DIALOG_ASHRAMINFO, 24, AMBLEM_COLOR[m_iColor-1]);
g_cUIManager->HT_SetTextureControlColor( _DIALOG_ASHRAMINFO, 25, HT_COLOR(1.0f, 1.0f, 1.0f, 1.0f));
g_cUIManager->HT_SetTextureControlColor( _DIALOG_ASHRAMINFO, 26, HT_COLOR(1.0f, 1.0f, 1.0f, 1.0f));
}
// 대화상자 활성화/비활성화
HTvoid HTGuild::HT_vGuild_DialogBoxActive()
{
// GM이면 스킵
if( g_oMainCharacterInfo.snTribe == 0x09 )
return;
// 구성요소 창이 열려 있으면 구성요소 창을 닫고
if( g_cUIManager->HT_isShowWindow( _DIALOG_ASHRAMMEMBERLISET ) )
{
g_cUIManager->HT_HideWindow( _DIALOG_ASHRAMMEMBERLISET );
}
// 길드 정보창이 열려 있으면 길드 정보창을 닫는다.
else if( g_cUIManager->HT_isShowWindow( _DIALOG_ASHRAMINFO ) )
{
g_cUIManager->HT_HideWindow( _DIALOG_ASHRAMINFO );
}
else
{
g_cUIManager->HT_ShowWindow( _DIALOG_ASHRAMINFO );
this->HT_vGuild_DialogBoxActiveOutput();
}
}
// 대화상자 비활성화
HTvoid HTGuild::HT_vGuild_DialogBoxAntiActive()
{
}
// 창설
HTvoid HTGuild::HT_vGuild_Create()
{
// 바난타에게서만 길드를 창설 할 수 있도록
if( g_cNPCControl->HT_bNPCControl_IsGuilCreateStep() == HT_TRUE )
{
if( m_strGuild_GuildName.HT_bIsEmpty() ) // 길드가 없을때만...
{
// Set Language
g_cChatting->HT_vChatting_SetOpenMessageItem( 1, 0, 0 );
}
else
{
CHTString szMessage;
// 길드에 가입되어 있지 않을때만 창설 가능합니다.
HT_vGuild_SetMessage( eMsgGuildCreateOtherJoinErr, &szMessage );
g_BasicLoadingInfo->HT_vNetWorkMessageSetHistory( HISTORY_MESSAGE_TYPE_NORMAL, szMessage );
}
}
}
// 길드 마크 생성하는 창 띄우기
HTvoid HTGuild::HT_vGuild_AmblemMakeActive()
{
if( m_strGuild_GuildMasterName.HT_iStringCompare( g_oMainCharacterInfo.szCharName ) == 0 && // 길드 마스터가 아니면 리턴
g_cEquipInventory->HT_iEquipInventory_GetPCMoney() >= GUILD_MARK_NEED_MONEY ) // 돈 체크_루피아 3000000 이상일때만 생성가능
{
this->m_iSelectWindow = 0; // 일반 아쉬람 만들기 창으로 셋팅
this->HT_vGuild_DialogBoxDrawTab(1);
this->HT_bGuild_DialogBoxDrawEmblem(0);
g_cUIManager->HT_ShowWindow(_DIALOG_AMBLEM);
}
else
{
CHTString szMessage;
// 루피아 3000000이상일때와 길드마스터만이 길드마크를 제작할수 있습니다.
HT_vGuild_SetMessage( eMsgGuildMarkConditionErr, &szMessage );
g_BasicLoadingInfo->HT_vNetWorkMessageSetHistory( HISTORY_MESSAGE_TYPE_NORMAL, szMessage );
}
}
// 가입
HTRESULT HTGuild::HT_vGuild_JoinGuild( HTint iObjectID )
{
// 길드 가입 버튼을 누른 상태가 아니면 스킵
if( m_byGuild_ConfirmGrade != GUILDTYPE_CONFIRM_JOIN )
return HT_FAIL;
// 내가 길드장이 아니면 스킵
byte byAuthority = g_cGuildSystem->HT_byGuild_GetAuthority();
if(! (byAuthority == GUILD_AUTHORITY_MAHARAJA || byAuthority == GUILD_AUTHORITY_RAJA || byAuthority == GUILD_AUTHORITY_PROOBAJA) )
return HT_FAIL;
// if( m_strGuild_GuildMasterName.HT_iStringCompare( g_oMainCharacterInfo.szCharName ) != 0 )
// return HT_FAIL;
// NPC와 대화중이거나 다른 사람과 트레이드를 하고 있는 중이면 처리 하지 않음
if( g_cUIManager->HT_isShowWindow( _DIALOG_NPCWINDOW ) )
return HT_FAIL;
// 상대방의 키아이디를 알아오고
m_dwGuild_JoinGuildKeyID = g_cOtherObjectSystem->HT_iOtherObjectSystem_GetKeyID( iObjectID );
if( m_dwGuild_JoinGuildKeyID == 0 )
return HT_FAIL;
// 상대바의 주신의 나의 주신과 동일하지 않으면 스킵
if( g_oMainCharacterInfo.byTrimuriti != g_cOtherObjectSystem->HT_byOtherObjectSystem_GetTrimuriti(m_dwGuild_JoinGuildKeyID) )
return HT_FAIL;
//----------길드 참여 요청----------//
this->HT_vNetWork_CSP_REQGuild();
// 길드 참여 요청 후에 선택한 캐릭터에게 다른 요구를 할 수 있도록 하기 위해서
// 길드 가입 버튼을 누르지 않은 상태로 초기화 한다.
m_byGuild_ConfirmGrade = GUILDTYPE_CONFIRM_NONE;
return HT_OK;
}
// 길드 초기 정보를 받습니다.
HTvoid HTGuild::HT_vNetWork_SCP_INIT_GUILD( MSG_GuildInfo* info )
{
HTint i;
CHTString strTemp;
m_strAlliedGuildName[0] = info->AlliedGuildName1; // 연합 길드 이름1
m_strAlliedGuildName[1] = info->AlliedGuildName2; // 연합 길드 이름2
m_strEnemyGuildName[0] = info->EnemyGuildName1; // 적대 길드 이름1
for( i=0 ; i<2 ; i++ )
{
if( m_strAlliedGuildName[i].HT_bIsEmpty() )
m_strAlliedGuildName[i] = _T(" ");
if( m_strEnemyGuildName[i].HT_bIsEmpty() )
m_strEnemyGuildName[i] = _T(" ");
}
if( info->GuildID == -1 )
{
// 메시지창 뛰우기
m_byGuild_ConfirmGrade = GUILDTYPE_CONFIRM_ERROR;
CHTString szMessage;
// 아쉬람 창설에 실패했습니다
HT_vGuild_SetMessage( eMsgGuildCreateFail, &szMessage );
g_cUIManager->HT_MessageBox( _DIALOG_ASHRAMMEMBERLISET, szMessage.HT_szGetString(), 0 );
g_cNPCControl->m_iResent = 1;
m_strGuild_GuildName.HT_hrCleanUp();
return;
}
// Display Ashram Name
strTemp.HT_szFormat( "%s %s", m_strAlliedGuildName[0].HT_szGetString(), m_strAlliedGuildName[1].HT_szGetString() );
g_cUIManager->HT_SetTextLabelControl( _DIALOG_ASHRAMINFO, 18, strTemp.HT_szGetString() );
memcpy( &m_oGuildInfo, info, sizeof(MSG_GuildInfo) );
m_strGuild_GuildName = m_oGuildInfo.GuildName;
m_dwGuild_EmblemID = m_oGuildInfo.Mark;
if( !m_strGuild_GuildName.HT_bIsEmpty() )
{
// 길드명
g_cUIManager->HT_SetTextLabelControl( _DIALOG_ASHRAMINFO, 10, m_oGuildInfo.GuildName );
// 길드 공지
g_cUIManager->HT_SetTextLabelControl( _DIALOG_ASHRAMINFO, 17, m_oGuildInfo.GuildMessage );
this->HT_hrGetGuildMark(info->Mark, &m_iColor, &m_iTitle, &m_iEmblem);
for( i=0 ; i<MAX_GUILD_MEMBER ; i++ )
{
CHTString strTempName = m_oGuildInfo.Member[i].MemberName;
if( !strTempName.HT_bIsEmpty() )
{
// 다른 캐릭터에게 길드 마크 셋팅 하기
g_cOtherObjectSystem->HT_vOtherObjectSystem_SetGuildMarkID( strTempName, m_dwGuild_EmblemID, m_strGuild_GuildName.HT_szGetString() );
// 길드 리스트에 삽입
S_GUILD_DATA* psNewNode;
psNewNode = new S_GUILD_DATA;
memcpy( &psNewNode->info, &info->Member[i], sizeof(STRUCT_GUILD_MEMBER) );
this->HT_LL_hrInsertAfter( psNewNode );
HT_DELETE( psNewNode );
// 나의 길드내 지위를 저장
strTempName = m_oGuildInfo.Member[i].MemberName;
if( strTempName.HT_iStringCompare(g_oMainCharacterInfo.szCharName) == 0 )
m_byGuild_GuilAuthority = m_oGuildInfo.Member[i].GuildRank;
// 길드마스트의 이름 저장
if( m_oGuildInfo.Member[i].GuildRank == GUILD_AUTHORITY_MAHARAJA )
{
m_strGuild_GuildMasterName = m_oGuildInfo.Member[i].MemberName;
}
}
}
// 길드를 처음 생성했을 때 NPC의 대화를 바꾸기 위해서
g_cNPCControl->HT_vNPCControl_Create_Guild();
}
// UI에 적용
this->HT_vGuild_Display();
if( m_dwGuild_EmblemID > 0 )
{
// 길드 마크 표현 하기
this->HT_vGuild_EmblemOn();
// 길드 마크 표현 하기
g_cOtherObjectSystem->HT_vOtherObjectSystem_SetShowGuildMark();
}
if( m_oGuildInfo.GuildMessage[0] != '\0' )
{
HT_vGuild_SetMessage( eMsgCommonSystemAshuram, &strTemp ); // [아쉬람]
strTemp += m_oGuildInfo.GuildMessage;
g_BasicLoadingInfo->HT_vNetWorkMessageSetHistory( HISTORY_MESSAGE_TYPE_NORMAL, strTemp );
}
// 내가 보유한 요새가 있는지 파악
m_iMyStrongGuildIndex = -1;
for( i=0 ; i<eStronghold_MaxCount ; i++ )
{
if( m_strGuild_GuildName.HT_iStringCompare( m_strStrongGuildName[i].HT_szGetString() ) == 0 ||
m_strAlliedGuildName[0].HT_iStringCompare( m_strStrongGuildName[i] ) == 0 ||
m_strAlliedGuildName[1].HT_iStringCompare( m_strStrongGuildName[i] ) == 0 )
{
m_bMyStrongGuild = TRUE;
m_iMyStrongGuildIndex = i;
// 나의 소유성 출력
if( m_strGuild_GuildName.HT_iStringCompare( m_strStrongGuildName[i].HT_szGetString() ) == 0 )
{
HT_vGuild_SetMessage( eMsgCommonDurga0 + m_iMyStrongGuildIndex, &strTemp );
// Display Ashram Name
g_cUIManager->HT_SetTextLabelControl( _DIALOG_ASHRAMINFO, 19, strTemp.HT_szGetString() );
}
// 연합 아쉬람의 소유성 출력
else
{
CHTString strStrongGuild;
HT_g_Script_SetMessage( eMsgCommonCommandUnionAshuram, &strTemp, _T("") );
// Display Ashram Name
g_cUIManager->HT_SetTextLabelControl( _DIALOG_ASHRAMINFO, 19, strTemp.HT_szGetString() );
}
break;
}
}
static Msg_GuildCargoTime oData;
ZeroMemory( &oData, sizeof(Msg_GuildCargoTime) );
oData.dwTime[0] = info->dwTime[0];
oData.dwTime[1] = info->dwTime[1];
oData.dwTime[2] = info->dwTime[2];
this->HT_vAshram_SCPGuildCargoTime( &oData );
static Msg_GuildCargoUsingLevel sData;
ZeroMemory( &sData, sizeof(Msg_GuildCargoUsingLevel) );
sData.byCargoLevel[0] = info->byCargoLevel[0];
sData.byCargoLevel[1] = info->byCargoLevel[1];
sData.byCargoLevel[2] = info->byCargoLevel[2];
this->HT_vAshram_SCPSetLevelAshramCargo( &sData );
}
// 길드 생성을 요청한다.
HTRESULT HTGuild::HT_hrNetWork_CSP_REQ_CREATE_GUILD( CHTString strAshramName )
{
// 주신 체크
if( g_oMainCharacterInfo.byTrimuriti == 0 )
{
CHTString szMessage;
// 주신 선택 후에 아쉬람을 생성할 수 있습니다.
HT_vGuild_SetMessage( eMsgGuildCreateNoTrimuritiErr, &szMessage );
g_BasicLoadingInfo->HT_vNetWorkMessageSetHistory( HISTORY_MESSAGE_TYPE_NORMAL, szMessage );
return HT_FAIL;
}
// 돈 체크_루피아 300000 이상일때만 생성가능
if( g_cEquipInventory->HT_iEquipInventory_GetPCMoney() < GUILD_CREATE_NEED_MONEY )
{
CHTString szMessage;
// 아쉬람을 만들기 위해서는 300000 루피아가 필요합니다.
HT_vGuild_SetMessage( eMsgGuildCreateNeedMoneyErr, &szMessage );
g_BasicLoadingInfo->HT_vNetWorkMessageSetHistory( HISTORY_MESSAGE_TYPE_NORMAL, szMessage );
return HT_FAIL;
}
// 글자가 있을때만
if( strAshramName.HT_nGetSize() < 4 ||
strAshramName.HT_nGetSize() > 18 )
{
CHTString szMessage;
// 아쉬람명의 길이는 영어기준 4자부터 만드실 수 있습니다.
HT_vGuild_SetMessage( eMsgGuildMarkConditionErr2, &szMessage );
g_BasicLoadingInfo->HT_vNetWorkMessageSetHistory( HISTORY_MESSAGE_TYPE_NORMAL, szMessage );
return HT_FAIL;
}
// %기호가 있으면 스킵
if( strAshramName.HT_bFind( "%" ) )
return HT_FAIL;
m_strGuild_GuildName = strAshramName;
// 적절치 못한 단어가 들어 있을때는 바로 스킵 해 버린다. 메시지를 넣어줘야 할것도 같은데 흠..
for( HTint i=0 ; i<NOTCHARANDGUILDNAME_COUNT ; i++ )
{
if( m_strGuild_GuildName.HT_bFind( g_szNotCharAndGuildName[i] ) == HT_TRUE )
return HT_FAIL;
}
if( m_strGuild_GuildName.HT_bFind( "," ) == HT_TRUE )
return HT_FAIL;
MSG_CreateGuild* info = HT_NULL;
info = new MSG_CreateGuild;
info->GuildMark = m_dwGuild_EmblemID;
info->Trimurity = g_oMainCharacterInfo.byTrimuriti;
CHTString::HT_hrStringCopy( info->GuildName, m_strGuild_GuildName, SZGUILD_LENGTH);
g_pNetWorkMgr->ReqestGuildCreateMsg( info );
HT_DELETE( info );
return HT_OK;
}
// 신규 길드원의 정보를 길드원들에게 전송한다.
HTvoid HTGuild::HT_vNetWork_SCP_AddGuildMember( MSG_AddGuildMember* info )
{
S_GUILD_DATA* psNewNode;
psNewNode = new S_GUILD_DATA;
memcpy( &psNewNode->info, &info->Member, sizeof(STRUCT_GUILD_MEMBER) );
// 캐릭터 정보 셋팅
this->HT_LL_hrInsertAfter( psNewNode );
HT_DELETE( psNewNode );
// UI에 적용
this->HT_vGuild_Display();
// 다른 캐릭터에게 길드 마크 셋팅 하기
g_cOtherObjectSystem->HT_vOtherObjectSystem_SetGuildMarkID( info->Member.MemberName, m_dwGuild_EmblemID, m_strGuild_GuildName.HT_szGetString() );
// 길드 마크 표현 하기
g_cOtherObjectSystem->HT_vOtherObjectSystem_SetShowGuildMark();
// 길드 마크 표현 하기
this->HT_vGuild_EmblemOn();
}
// 길드 탈퇴/해체/제명을 요청한다.
HTvoid HTGuild::HT_vNetWork_CSP_Remove_GuildMember()
{
MSG_RemoveGuildMember* info = HT_NULL;
info = new MSG_RemoveGuildMember;
info->GuildID = m_oGuildInfo.GuildID;
switch( m_byGuild_ConfirmGrade )
{
// 탈퇴
case GUILDTYPE_CONFIRM_SECEDE :
info->byRemoveType = 1;
CHTString::HT_hrStringCopy( info->CharacterName, g_oMainCharacterInfo.szCharName, SZNAME_LENGTH);
break;
// 제명
case GUILDTYPE_CONFIRM_EXPEL :
info->byRemoveType = 2;
CHTString::HT_hrStringCopy( info->CharacterName, m_strGuild_ListSelectdName, SZNAME_LENGTH);
break;
// 해체
case GUILDTYPE_CONFIRM_DESTROY :
info->byRemoveType = 3;
CHTString::HT_hrStringCopy( info->CharacterName, g_oMainCharacterInfo.szCharName, SZNAME_LENGTH);
break;
}
g_pNetWorkMgr->ReqestGuildDisbandMsg( info );
HT_DELETE( info );
//-----디버깅 테스트를 위하여-----//
//g_DebugingFont[g_DebugingFont_Count++].HT_szFormat("Send_Guild_Remove" );
//if( g_DebugingFont_Count == 10 ) g_DebugingFont_Count = 0;
}
HTvoid HTGuild::HT_vNetWork_SCP_RemoveGuildMember( MSG_RemoveGuildMember* info )
{
CHTString strTempName = g_oMainCharacterInfo.szCharName;
if( strTempName.HT_iStringCompare( info->CharacterName ) == 0 )
{
// 길드 리스트의 인원을 전부 삭제
this->HT_LL_hrDeleteAll();
// 메시지창 뛰우기
m_byGuild_ConfirmGrade = GUILDTYPE_CONFIRM_ERROR;
CHTString szMessage;
// 아쉬람이 해체되었습니다.
HT_vGuild_SetMessage( eMsgGuildDissolutionOK, &szMessage );
g_cUIManager->HT_MessageBox( _DIALOG_ASHRAMMEMBERLISET, szMessage.HT_szGetString(), 0 );
// 길드이름 클린업
m_strGuild_GuildName.HT_hrCleanUp();
// 길드 마크 표현 안하기
this->HT_vGuild_EmblemOff();
m_dwGuild_EmblemID = 0;
memcpy( &m_oGuildInfo, info, sizeof(MSG_GuildInfo) );
// 길드 정보창의 내용 삭제 2004. 11. 10 선영범
//g_bGuildMarkShow = HT_FALSE;
m_iEmblem = -1;
m_iTitle = -1;
m_iColor = -1;
// 길드마크 초기화
g_cUIManager->HT_SetTextureControlColor(_DIALOG_ASHRAMINFO, 24, HT_COLOR(1.0f, 1.0f, 1.0f, 0.0f));
g_cUIManager->HT_SetTextureControlColor(_DIALOG_ASHRAMINFO, 25, HT_COLOR(1.0f, 1.0f, 1.0f, 0.0f));
g_cUIManager->HT_SetTextureControlColor(_DIALOG_ASHRAMINFO, 26, HT_COLOR(1.0f, 1.0f, 1.0f, 0.0f));
m_byGuild_GuilAuthority = GUILD_AUTHORITY_NONE;
}
else
{
//----------LL 데이타 지우기_이름으로---------//
g_cOtherObjectSystem->HT_vOtherObjectSystem_SetInitGuild( info->CharacterName );
this->HT_LL_hrDeleteNode( info->CharacterName );
}
}
// 길드 참여를 요청한다.
HTvoid HTGuild::HT_vNetWork_CSP_REQGuild()
{
MSG_REQGuild* info = HT_NULL;
info = new MSG_REQGuild;
info->GuildID = m_oGuildInfo.GuildID;
strncpy( info->CharacterName, g_cOtherObjectSystem->HT_strOtherObjectSystem_GetNameFromKeyID(m_dwGuild_JoinGuildKeyID), SZNAME_LENGTH );
strncpy( info->GuildName, m_oGuildInfo.GuildName, SZNAME_LENGTH );
g_pNetWorkMgr->ReqestGuildJoinMsg( info );
HT_DELETE( info );
}
// 길드 참여를 요청을 받는다.
HTvoid HTGuild::HT_vNetWork_SCP_REQGuild( MSG_REQGuild* info )
{
m_byGuild_ConfirmGrade = GUILDTYPE_CONFIRM_JOINNOTIFY;
CHTString strTempMsg;
m_iGuild_TempGuildID = info->GuildID;
// %s길드에서 길드 가입을 요청했습니다.
m_szMsgSting = info->GuildName;
HT_vGuild_SetMessage( eMsgGuildReqReceive, &strTempMsg );
g_cUIManager->HT_MessageBox( _DIALOG_ASHRAMMEMBERLISET, strTempMsg.HT_szGetString(), 1 );
}
// 길드 참여 요청 결과를 서버에 전송한다.
HTvoid HTGuild::HT_vNetWork_CSP_CNFGuild()
{
MSG_CNFGuild* info = HT_NULL;
info = new MSG_CNFGuild;
info->GuildID = m_iGuild_TempGuildID;
strncpy( info->CharacterName, g_oMainCharacterInfo.szCharName, SZNAME_LENGTH );
g_pNetWorkMgr->ReqestGuildCNFGuild( info );
HT_DELETE( info );
//-----디버깅 테스트를 위하여-----//
//g_DebugingFont[g_DebugingFont_Count++].HT_szFormat("Send_ReqCnfGuild" );
//if( g_DebugingFont_Count == 10 ) g_DebugingFont_Count = 0;
}
// 길드원이 접속함
HTvoid HTGuild::HT_vNetWork_SCP_GuildMemberin( MSG_GuildMemberin* info )
{
if( m_strGuild_GuildName.HT_bIsEmpty() )
return;
CHTString strName;
m_strGuild_CharacterName = strName = info->CharacterName;
S_GUILD_DATA* t;
t = m_pGuildList_Head->pNextNode;
while( t != m_pGuildList_Tail )
{
if( strName.HT_iStringCompare( t->info.MemberName ) == 0 )
{
t->info.GuildState = 1;
break;
}
t = t->pNextNode;
}
// UI에 적용
this->HT_vGuild_Display();
/*
// 길드원이 접속함 (처음에 접속리스트와 자신의 접속에 대한 모든 패킷을 받으므로, 자신의 이름이 두번 호출되기 전까지는 이 메시지를 출력하지 않는다.)
// 2005. 1. 17 선영범 (추가 요청)
if (m_nGuildConnectMsg > 1) // 처음 접속이 모두 끝난 상태부터 출력 시작
{
if (strcmp(m_strGuild_CharacterName, g_oMainCharacterInfo.szCharName) == 0 ) // 자신과 캐릭터 이름이 같다면 플래그변수 1증가
{
m_nGuildConnectMsg = 0;
}
else
{
CHTString szMessage;
HT_vGuild_SetMessage( eMsgCommonGuildConnect, &szMessage );
g_BasicLoadingInfo->HT_vNetWorkMessageSetHistory( HISTORY_MESSAGE_TYPE_CHAKRA, szMessage.HT_szGetString() );
m_nGuildConnectMsg = 2;
}
}
if (strcmp(m_strGuild_CharacterName, g_oMainCharacterInfo.szCharName) == 0) // 자신과 캐릭터 이름이 같다면 플래그변수 1증가
m_nGuildConnectMsg++;
*/
}
// 길드원이 접속을 끊음
HTvoid HTGuild::HT_vNetWork_SCP_GuildMemberout( MSG_GuildMemberout* info )
{
if( m_strGuild_GuildName.HT_bIsEmpty() )
return;
// 길드 리스트에 삽입
CHTString strName;
m_strGuild_CharacterName = strName = info->CharacterName;
S_GUILD_DATA* t;
t = m_pGuildList_Head->pNextNode;
while( t != m_pGuildList_Tail )
{
if( strName.HT_iStringCompare( t->info.MemberName ) == 0 )
{
t->info.GuildState = 2;
break;
}
t = t->pNextNode;
}
// UI에 적용
this->HT_vGuild_Display();
// 이 메시지를 받으면 자신을 제외한 다른 길드원일 경우
// 약간의 여유 시간을 두어 접속했는지 안했는지를 체크해야 한다.
/*
// 길드원이 나가셨습니다.
CHTString szMessage;
HT_vGuild_SetMessage( eMsgCommonGuildExit, &szMessage );
g_BasicLoadingInfo->HT_vNetWorkMessageSetHistory( HISTORY_MESSAGE_TYPE_CHAKRA, szMessage.HT_szGetString() );
*/
}
// 길드마크 생성
HTvoid HTGuild::HT_vNetWork_CSP_MSG_GuildUpdateMark( HTbyte byCostType )
{
MSG_GuildUpdateMark* info = HT_NULL;
info = new MSG_GuildUpdateMark;
info->GuildID = m_oGuildInfo.GuildID;
info->Mark = m_dwGuild_EmblemID;
info->byCostType = byCostType;
g_pNetWorkMgr->ReqestGuildMarkCreateMsg( info );
//-----디버깅 테스트를 위하여-----//
//g_DebugingFont[g_DebugingFont_Count++].HT_szFormat("Send_GuildMarkCreate:%d, %d, costType = %d", info->Mark, info->byCostType, info->byCostType );
//if( g_DebugingFont_Count == 10 ) g_DebugingFont_Count = 0;
HT_DELETE( info );
}
// 길드마크 생성 결과
HTvoid HTGuild::HT_vNetWork_SCP_MSG_GuildUpdateMark( MSG_GuildUpdateMark* info )
{
if( info->byResult == REPLY_ACK_OK )
{
m_dwGuild_EmblemID = info->Mark;
// 길드 마크 표현 하기
this->HT_vGuild_EmblemOn();
if( info->byCostType == 1 )
{
g_cEquipInventory->HT_vEquipInventory_SetPCMoney( info->nMoney ); // 루피아 갱신 2004. 11. 10 선영범
}
// 길드 마크 표현 하기
g_cOtherObjectSystem->HT_vOtherObjectSystem_SetShowGuildMark();
}
else if( info->byResult == REPLY_GUILDMARK_PARAM )
{
// 부적절한 데이타입니다.
CHTString strTemp;
HT_g_Script_SetMessage( eMsgCommonSystemInvalidData, &strTemp, _T("") );
g_BasicLoadingInfo->HT_vNetWorkMessageSetHistory( HISTORY_MESSAGE_TYPE_CHAKRA, strTemp.HT_szGetString() );
}
else if( info->byResult == REPLY_GUILDMARK_RIGHT )
{
// 마크 변경 권한이 없습니다.
CHTString strTemp;
HT_g_Script_SetMessage( eMsgCommonSystemNoRight, &strTemp, _T("") );
g_BasicLoadingInfo->HT_vNetWorkMessageSetHistory( HISTORY_MESSAGE_TYPE_CHAKRA, strTemp.HT_szGetString() );
}
else if( info->byResult == REPLY_GUILDMARK_MONEY )
{
if( info->byCostType == 1 )
{
// 루피아가 부족합니다.
CHTString strTemp;
HT_g_Script_SetMessage( eMsgCommonServerMoreRupia, &strTemp, _T("") );
g_BasicLoadingInfo->HT_vNetWorkMessageSetHistory( HISTORY_MESSAGE_TYPE_CHAKRA, strTemp.HT_szGetString() );
}
else if( info->byCostType == 2 )
{
// 타니가 부족합니다.
CHTString strTemp;
HT_g_Script_SetMessage( eMsgCommonServerMoreTani, &strTemp, _T("") );
g_BasicLoadingInfo->HT_vNetWorkMessageSetHistory( HISTORY_MESSAGE_TYPE_CHAKRA, strTemp.HT_szGetString() );
}
}
else if( info->byResult == REPLY_UNKNOWN )
{
// 마크 변경에 실패 했습니다.
CHTString strTemp;
HT_g_Script_SetMessage( eMsgCommonServerFaild, &strTemp, _T("") );
g_BasicLoadingInfo->HT_vNetWorkMessageSetHistory( HISTORY_MESSAGE_TYPE_CHAKRA, strTemp.HT_szGetString() );
}
}
// 길드업데이트_CSP
HTvoid HTGuild::HT_vNetWork_CSP_MSG_GuildUpdate( CHTString strMessage )
{
// 넘버3까지만 공지 가능
if( m_byGuild_GuilAuthority == eGuildMaster ||
m_byGuild_GuilAuthority == eGuildSubMaster ||
m_byGuild_GuilAuthority == eGuildThird )
{
MSG_GuildUpdate* info;
info = new MSG_GuildUpdate;
memset( info, 0, sizeof( MSG_GuildUpdate ) );
info->GuildID = m_oGuildInfo.GuildID;
strncpy( info->GuildMessage, strMessage.HT_szGetString(), GUILDMESSAGE_LENGTH );
g_pNetWorkMgr->ReqestGuildUpdateMsg( info );
HT_DELETE( info );
}
}
// 길드업데이트_SCP
HTvoid HTGuild::HT_vNetWork_SCP_MSG_GuildUpdate( MSG_GuildUpdate* info )
{
// 길드 공지사항1
strncpy( m_oGuildInfo.GuildMessage, info->GuildMessage, GUILDMESSAGE_LENGTH );
g_cUIManager->HT_SetTextLabelControl( _DIALOG_ASHRAMINFO, 17, info->GuildMessage );
if( strcmp(info->AlliedGuildName1, _T("")) == 0)
strcpy(info->AlliedGuildName1, _T(" "));
if( strcmp(info->AlliedGuildName2, _T("")) == 0)
strcpy(info->AlliedGuildName2, _T(" "));
if( strcmp(info->EnemyGuildName1, _T("")) == 0)
strcpy(info->EnemyGuildName1, _T(" "));
// 이 업데이트 메시지는 정보 요청에 의해, 아쉬람연합정보 변경에 의해 내려온다. 후자의 경우에는 변경되었다는 메시지를 추가 출력하도록 한다.
if (! (strcmp( m_strAlliedGuildName[0].HT_szGetString(), info->AlliedGuildName1 ) == 0 &&
strcmp( m_strAlliedGuildName[1].HT_szGetString(), info->AlliedGuildName2 ) == 0 &&
strcmp( m_strEnemyGuildName[0].HT_szGetString(), info->EnemyGuildName1 ) == 0 ) )
{
if (strcmp(m_strAlliedGuildName[0].HT_szGetString(), " ") != 0)
{
CHTString strString;
HT_g_Script_SetMessage( eMsgCommonAshuramGuildMsg8, &strString ); // 아쉬람 연합 설정이 해제 되었습니다.
g_BasicLoadingInfo->HT_vNetWorkMessageSetHistory( HISTORY_MESSAGE_TYPE_CHAKRA, strString );
}
else
{
CHTString strString;
HT_g_Script_SetMessage( eMsgCommonAshuramGuildMsg9, &strString ); // 아쉬람 연합 관계가 설정 되었습니다.
g_BasicLoadingInfo->HT_vNetWorkMessageSetHistory( HISTORY_MESSAGE_TYPE_CHAKRA, strString );
}
}
m_strAlliedGuildName[0] = info->AlliedGuildName1; // 연합 길드 이름1
m_strAlliedGuildName[1] = info->AlliedGuildName2; // 연합 길드 이름2
m_strEnemyGuildName[0] = info->EnemyGuildName1; // 적대 길드 이름1
// [연합 길드명1] [연합 길드명2]
// [%s] m_strAlliedGuildName[1].HT_szGetString()
CHTString strTemp;
strTemp.HT_szFormat( "[%s]", m_strAlliedGuildName[0].HT_szGetString() );
g_cUIManager->HT_SetTextLabelControl( _DIALOG_ASHRAMINFO, 18, strTemp.HT_szGetString() );
// 연합 길드에서 탈퇴한 상태라면,
if( m_strAlliedGuildName[0].HT_iStringCompare( _T(" ") ) == 0 )
{
// 내가 길드 요새를 소유했는지 확인하고 소유하지 않았다면 소유 유새를 -1로 셋팅한다.
BOOL bTrue = HT_FALSE;
for(HTint i=0 ; i<4 ; i++ )
{
if( m_strGuild_GuildName.HT_iStringCompare( m_strStrongGuildName[i].HT_szGetString() ) == 0 )
bTrue = HT_TRUE;
}
if( !bTrue )
m_iMyStrongGuildIndex = -1;
}
// 딴시스템에 적용한다.
g_cOtherObjectSystem->HT_vOtherObjectSystem_SetStrongAshiram( m_strAlliedGuildName[0].HT_szGetString(), m_strAlliedGuildName[1].HT_szGetString() );
// Setting Targetting
g_cOtherObjectSystem->HT_vOtherObjectSystem_SetTargetting();
}
// 길드 멤버 업데이트_SCP
HTvoid HTGuild::HT_vNetWork_SCP_MSG_GuildUpdateMember( MSG_GuildUpdateMember* info )
{
CHTString strName;
strName = info->Member.MemberName;
S_GUILD_DATA* t;
t = m_pGuildList_Head->pNextNode;
while( t != m_pGuildList_Tail )
{
if( strName.HT_iStringCompare( t->info.MemberName ) == 0 )
{
t->info.GuildRank = info->Member.GuildRank;
if( t->info.GuildRank == eGuildMaster )
m_strGuild_GuildMasterName = info->Member.MemberName;
t->info.byLevel = info->Member.byLevel;
//t->info.GuildState = info->Member.GuildState;
t->info.snTribe = info->Member.snTribe;
return;
}
t = t->pNextNode;
}
this->HT_vGuild_Display();
}
// 길드 랭킹 업데이트_CSP
HTvoid HTGuild::HT_vNetWork_CSP_MSG_GuildSetRanking( CHTString strTemp )
{
// 내가 길드장일때만 가능
//if( m_byGuild_GuilAuthority != eGuildMaster )
// return;
char chName[SZNAME_LENGTH];
char chRank[SZNAME_LENGTH];
// 메시지의 최대 길이와 ID의 최대 길이가 있다면 추가 할 것.
HTchar tokenMsg[MAX_CHAT_LENGTH] = "\0";
strncpy( tokenMsg, strTemp, MAX_CHAT_LENGTH );
sscanf( tokenMsg, "%s %s", chName, chRank );
MSG_GuildSetRanking* info;
info = new MSG_GuildSetRanking;
info->nGuildID = m_oGuildInfo.GuildID;
strncpy( info->CharacterName, chName, SZNAME_LENGTH );
CHTString strRank = chRank;
CHTString szRaja, szPrubaja, szDandeca, szTapasa;
HT_vGuild_SetMessage( eMsgCommonGuildRaja , &szRaja ); // 라자
HT_vGuild_SetMessage( eMsgCommonGuildPrubaja, &szPrubaja ); // 프루바자
HT_vGuild_SetMessage( eMsgCommonGuildDandeca, &szDandeca ); // 단디카
HT_vGuild_SetMessage( eMsgCommonGuildTapasa , &szTapasa ); // 타파사
if( strRank.HT_iStringCompare( szRaja.HT_szGetString() ) == 0 ) // 라자
info->GuildRank = eGuildSubMaster;
else if( strRank.HT_iStringCompare( szPrubaja.HT_szGetString() ) == 0 ) // 프루바자
info->GuildRank = eGuildThird;
else if( strRank.HT_iStringCompare( szDandeca.HT_szGetString() ) == 0 ) // 단디카
info->GuildRank = eGuildForth;
else if( strRank.HT_iStringCompare( szTapasa.HT_szGetString() ) == 0 ) // 타파사
info->GuildRank = eGuildMember;
g_pNetWorkMgr->ReqestGuildSetRanking( info );
//-----디버깅 테스트를 위하여-----//
//g_DebugingFont[g_DebugingFont_Count++].HT_szFormat("Send_GuildSetGuildRank:%s,%s", chName, chRank );
//if( g_DebugingFont_Count == 10 ) g_DebugingFont_Count = 0;
HT_DELETE( info );
}
// 길드 랭킹 업데이트_SCP
HTvoid HTGuild::HT_vNetWork_SCP_MSG_GuildSetRanking( MSG_GuildSetRanking* info )
{
CHTString strName;
strName = info->CharacterName;
S_GUILD_DATA* t;
t = m_pGuildList_Head->pNextNode;
while( t != m_pGuildList_Tail )
{
if( strName.HT_bFind( t->info.MemberName ) == HT_TRUE )
{
t->info.GuildRank = info->GuildRank;
if( t->info.GuildRank == eGuildMaster )
{
m_strGuild_GuildMasterName = t->info.MemberName;
// 본인의 등급을 저장함.
if( m_strGuild_GuildMasterName.HT_iStringCompare(g_oMainCharacterInfo.szCharName) == 0 )
m_byGuild_GuilAuthority = eGuildMaster;
}
return;
}
t = t->pNextNode;
}
this->HT_vGuild_Display();
}
// 길드원 리스트 대화상자에 표현하기
HTvoid HTGuild::HT_vGuild_Display()
{
// 슬라이더 번호를 알아온다.
if( g_cUIManager->HT_isShowWindow( _DIALOG_ASHRAMMEMBERLISET ) )
{
m_iGuild_SlideBarCurPos = g_cUIManager->HT_GetScrollBarValue( _DIALOG_ASHRAMMEMBERLISET, 8 );
}
else
{
m_iGuild_SlideBarCurPos = 0;
}
// 멤버 카운트를 위해
HTint iMemberTotalCount;
HTint iCurMember;
CHTString strTemp;
strTemp.HT_hrCleanUp();
// 길드리스트창에 표현하기 위해
CHTString strMemberName[_DISPLAYMEMBERCOUNT];
CHTString strMemberLevel[_DISPLAYMEMBERCOUNT];
CHTString strMemberAuthority[_DISPLAYMEMBERCOUNT];
CHTString strMemberTribe[_DISPLAYMEMBERCOUNT];
HTint iMemberTribeCode[_DISPLAYMEMBERCOUNT];
CHTString strMemberConnect[_DISPLAYMEMBERCOUNT];
for( HTint i=0 ; i<_DISPLAYMEMBERCOUNT ; i++ )
{
strMemberName[i].HT_hrCleanUp();
iMemberTribeCode[i] = 0;
}
S_GUILD_DATA* t;
iMemberTotalCount = 0;
iCurMember = 0;
t = m_pGuildList_Head->pNextNode;
while( t != m_pGuildList_Tail )
{
iMemberTotalCount++;
// 접속여부
if( t->info.GuildState == 1 )
iCurMember++;
t = t->pNextNode;
}
// 현재 등록 인원 표시
strTemp.HT_szFormat( "%d/50", iMemberTotalCount );
g_cUIManager->HT_SetTextLabelControl( _DIALOG_ASHRAMINFO, 15, strTemp.HT_szGetString() );
// 현재 접속 인원 표시
strTemp.HT_szFormat( "%d", iCurMember );
g_cUIManager->HT_SetTextLabelControl( _DIALOG_ASHRAMINFO, 16, strTemp.HT_szGetString() );
if( m_iGuild_SlideBarCurPos < 0 )
{
if( iMemberTotalCount >= _DISPLAYMEMBERCOUNT )
m_iGuild_SlideBarCurPos = iMemberTotalCount-_DISPLAYMEMBERCOUNT;
else
m_iGuild_SlideBarCurPos = 0;
}
HTbool bType;
HTint iMemberCount = 0;
HTint iNextCount = 0;
HTint iInsertCount;
t = m_pGuildList_Head->pNextNode;
while( t != m_pGuildList_Tail )
{
if( iMemberTotalCount <= _DISPLAYMEMBERCOUNT )
{
bType = HT_TRUE;
iInsertCount = iMemberTotalCount-iNextCount-1;
}
else
{
if( (iMemberTotalCount-m_iGuild_SlideBarCurPos )-iNextCount > 0 && (iMemberTotalCount-m_iGuild_SlideBarCurPos )-iNextCount <= _DISPLAYMEMBERCOUNT )
{
bType = HT_TRUE;
iInsertCount = (iMemberTotalCount-m_iGuild_SlideBarCurPos )-iNextCount-1;
}
else
{
bType = HT_FALSE;
}
}
if( bType )
{
// 길드원 이름
strMemberName[iInsertCount] = t->info.MemberName;
// 레벨
strMemberLevel[iInsertCount].HT_szFormat( "%d", t->info.byLevel );
// 직위
if( t->info.GuildRank == eGuildMaster ) // 마하라자
HT_vGuild_SetMessage( eMsgCommonGuildMahaRaja, &strMemberAuthority[iInsertCount] );
else if( t->info.GuildRank == eGuildSubMaster ) // 라자
HT_vGuild_SetMessage( eMsgCommonGuildRaja, &strMemberAuthority[iInsertCount] );
else if( t->info.GuildRank == eGuildThird ) // 브루바자
HT_vGuild_SetMessage( eMsgCommonGuildPrubaja, &strMemberAuthority[iInsertCount] );
else if( t->info.GuildRank == eGuildForth ) // 단디카
HT_vGuild_SetMessage( eMsgCommonGuildDandeca, &strMemberAuthority[iInsertCount] );
else // 타파사
HT_vGuild_SetMessage( eMsgCommonGuildTapasa, &strMemberAuthority[iInsertCount] );
// 직업
if( t->info.snTribe == TRIBE_NAGA ) // 나가
{
HT_vGuild_SetMessage( eMsgCommonTribeNaga, &strMemberTribe[iInsertCount] );
iMemberTribeCode[iInsertCount] = 23642;
}
else if( t->info.snTribe == TRIBE_KINNARA ) // 킨나라
{
HT_vGuild_SetMessage( eMsgCommonTribeKimnara, &strMemberTribe[iInsertCount] );
iMemberTribeCode[iInsertCount] = 23650;
}
else if( t->info.snTribe == TRIBE_ASURA ) // 아수라
{
HT_vGuild_SetMessage( eMsgCommonTribeAsura, &strMemberTribe[iInsertCount] );
iMemberTribeCode[iInsertCount] = 23644;
}
else if( t->info.snTribe == TRIBE_RAKSHASA ) // 략샤사
{
HT_vGuild_SetMessage( eMsgCommonTribeRakshasa, &strMemberTribe[iInsertCount] );
iMemberTribeCode[iInsertCount] = 23652;
}
else if( t->info.snTribe == TRIBE_YAKSA ) // 약크샤
{
HT_vGuild_SetMessage( eMsgCommonTribeYaksha, &strMemberTribe[iInsertCount] );
iMemberTribeCode[iInsertCount] = 23646;
}
else if( t->info.snTribe == TRIBE_GANDHARVA ) // 간다르바
{
HT_vGuild_SetMessage( eMsgCommonTribeGandharva, &strMemberTribe[iInsertCount] );
iMemberTribeCode[iInsertCount] = 23654;
}
else if( t->info.snTribe == TRIBE_DEVA ) // 데바
{
HT_vGuild_SetMessage( eMsgCommonTribeDeva, &strMemberTribe[iInsertCount] );
iMemberTribeCode[iInsertCount] = 23648;
}
else if( t->info.snTribe == TRIBE_GARUDA ) // 가루다
{
HT_vGuild_SetMessage( eMsgCommonTribeGaruda, &strMemberTribe[iInsertCount] );
iMemberTribeCode[iInsertCount] = 23656;
}
// 접속여부
if( t->info.GuildState == 1 ||
strMemberName[iInsertCount].HT_iStringCompare( g_oMainCharacterInfo.szCharName ) == 0 )
strMemberConnect[iInsertCount] = _T("ON");
else
strMemberConnect[iInsertCount] = _T("OFF");
iMemberCount++;
}
if( iMemberCount >= _DISPLAYMEMBERCOUNT )
break;
iNextCount++;
t = t->pNextNode;
}
for( i=0 ; i<_DISPLAYMEMBERCOUNT ; ++i )
{
if( !strMemberName[i].HT_bIsEmpty() )
{
// 길드원 이름
g_cUIManager->HT_SetTextLabelControl( _DIALOG_ASHRAMMEMBERLISET, 10+i, strMemberName[i].HT_szGetString() );
// 레벨
g_cUIManager->HT_SetTextLabelControl( _DIALOG_ASHRAMMEMBERLISET, 20+i, strMemberLevel[i].HT_szGetString() );
// 직위
g_cUIManager->HT_SetTextLabelControl( _DIALOG_ASHRAMMEMBERLISET, 30+i, strMemberAuthority[i].HT_szGetString() );
// 접속여부
if( strMemberConnect[i].HT_bFind( _T("ON") ) )
{
g_cUIManager->HT_SetTextLabelControl( _DIALOG_ASHRAMMEMBERLISET, 40+i, strMemberConnect[i].HT_szGetString() );
g_cUIManager->HT_SetTextColorLabelControl( _DIALOG_ASHRAMMEMBERLISET, 40+i, g_ColorTable[12] );
}
else
{
g_cUIManager->HT_SetTextLabelControl( _DIALOG_ASHRAMMEMBERLISET, 40+i, strMemberConnect[i].HT_szGetString() );
g_cUIManager->HT_SetTextColorLabelControl( _DIALOG_ASHRAMMEMBERLISET, 40+i, g_ColorTable[11] );
}
// 종족
g_cUIManager->HT_SetTextureControlImage( _DIALOG_ASHRAMMEMBERLISET, 10+i, iMemberTribeCode[i] );
g_cUIManager->HT_SetTextureControlScale( _DIALOG_ASHRAMMEMBERLISET, 10+i, 0, 0 );
g_cUIManager->HT_SetTextureControlDisplay( _DIALOG_ASHRAMMEMBERLISET, 10+i, HT_TRUE );
}
else
{
// 길드원 이름
g_cUIManager->HT_SetTextLabelControl( _DIALOG_ASHRAMMEMBERLISET, 10+i, _T("") );
// 레벨
g_cUIManager->HT_SetTextLabelControl( _DIALOG_ASHRAMMEMBERLISET, 20+i, _T("") );
// 직위
g_cUIManager->HT_SetTextLabelControl( _DIALOG_ASHRAMMEMBERLISET, 30+i, _T("") );
// 접속여부
g_cUIManager->HT_SetTextLabelControl( _DIALOG_ASHRAMMEMBERLISET, 40+i, _T("") );
// 종족
g_cUIManager->HT_SetTextureControlImage( _DIALOG_ASHRAMMEMBERLISET, 10+i, 0 );
g_cUIManager->HT_SetTextureControlDisplay( _DIALOG_ASHRAMMEMBERLISET, 10+i, HT_FALSE );
}
}
}
HTvoid HTGuild::HT_vGuild_SetEmblemID( DWORD dwEmblemID )
{
m_dwGuild_EmblemID = dwEmblemID;
// 길드 마크 표현 하기
this->HT_vGuild_EmblemOn();
}
// 길드 마크 표현 하기
HTvoid HTGuild::HT_vGuild_EmblemOn()
{
if( g_bGuildMarkShow )
{
g_pEngineHandler->HT_hrAttachGuildMark( g_cMainCharacter->HT_vMainChar_GetModelID(), m_dwGuild_EmblemID );
}
}
// 길드 마크 표현 안하기
HTvoid HTGuild::HT_vGuild_EmblemOff()
{
g_pEngineHandler->HT_hrDestroyGuildMark( g_cMainCharacter->HT_vMainChar_GetModelID() );
}
// 길드 마크 표현 처리
HTvoid HTGuild::HT_vGuild_EmblemSwitch( CHTString strMessage )
{
if( g_bGuildMarkShow == HT_TRUE )
{
g_bGuildMarkShow = HT_FALSE;
// 길드 마크 표현 안하기
this->HT_vGuild_EmblemOff();
g_cOtherObjectSystem->HT_vOtherObjectSystem_SetHideGuildMark();
}
else
{
g_bGuildMarkShow = HT_TRUE;
// 길드 마크 표현 하기
this->HT_vGuild_EmblemOn();
g_cOtherObjectSystem->HT_vOtherObjectSystem_SetShowGuildMark();
}
}
// 주신 마크 표현 하기 하기
HTvoid HTGuild::HT_vTrimutiri_MarkOn()
{
if( g_bTrimuritiShow )
{
if( g_oMainCharacterInfo.byTrimuriti > 0 )
{
switch( g_oMainCharacterInfo.byTrimuriti )
{
case 1 :
g_pEngineHandler->HT_hrAttachGodMark( g_cMainCharacter->HT_vMainChar_GetModelID() , g_oMainCharacterInfo.snTribe, HT_GODTYPE_BRAHMA, 1 );
break;
case 2 :
g_pEngineHandler->HT_hrAttachGodMark( g_cMainCharacter->HT_vMainChar_GetModelID() , g_oMainCharacterInfo.snTribe, HT_GODTYPE_VISUNU, 1 );
break;
case 4 :
g_pEngineHandler->HT_hrAttachGodMark( g_cMainCharacter->HT_vMainChar_GetModelID() , g_oMainCharacterInfo.snTribe, HT_GODTYPE_SIVA, 1 );
break;
}
}
}
}
// 주신 마크 표현 하기 안하기
HTvoid HTGuild::HT_vTrimutiri_MarkOff()
{
g_pEngineHandler->HT_hrDetachGodMark( g_cMainCharacter->HT_vMainChar_GetModelID() );
}
// 주신 마크 표현 처리
HTvoid HTGuild::HT_vTrimutiri_MarkSwitch( CHTString strMessage )
{
CHTString szCommand, szToken;
HT_vGuild_SetMessage( eMsgCommonCommandTrimuritiMark, &szCommand );
szToken = szCommand + _T(" %d"); // /주신마크 %d
// 메시지의 최대 길이와 ID의 최대 길이가 있다면 추가 할 것.
char tokenMsg[MAX_CHAT_LENGTH] = "\0";
HTint iTrimuritiSw;
CHTString::HT_hrStringCopy( tokenMsg, strMessage, MAX_CHAT_LENGTH );
//sscanf( tokenMsg, "/주신마크 %d", &iTrimuritiSw );
sscanf( tokenMsg, szToken.HT_szGetString(), &iTrimuritiSw );
if( iTrimuritiSw == 0 )
{
g_bTrimuritiShow = HT_FALSE;
// 길드 마크 표현 안하기
this->HT_vTrimutiri_MarkOff();
g_cOtherObjectSystem->HT_vOtherObjectSystem_SetHideTrimuritiMark();
}
else if( iTrimuritiSw == 1 )
{
g_bTrimuritiShow = HT_TRUE;
// 길드 마크 표현 하기
this->HT_vTrimutiri_MarkOn();
g_cOtherObjectSystem->HT_vOtherObjectSystem_SetShowTrimuritiMark();
}
}
//------------------------------------------------------------------------------
// Data manipulation functions
//------------------------------------------------------------------------------
//----------링크드 리스트 구현한 부분---------//
//----------LL 초기화---------//
HTvoid HTGuild::HT_LL_vInitList()
{
m_pGuildList_Head = NULL;
m_pGuildList_Tail = NULL;
m_pGuildList_Head = new S_GUILD_DATA;
m_pGuildList_Tail = new S_GUILD_DATA;
m_pGuildList_Head->pNextNode = m_pGuildList_Tail;
}
//----------LL 데이타 삽입-같은 이름의 친구가 있으면 정보갱신 없으면 헤드 바로 뒤에---------//
HTvoid HTGuild::HT_LL_hrInsertAfter( S_GUILD_DATA* info )
{
S_GUILD_DATA *t;
t = this->HT_LL_hrSerchNode( info->info.MemberName );
// 리스트의 끝이면!
if( t == m_pGuildList_Tail )
{
S_GUILD_DATA *s;
s = NULL;
s = new S_GUILD_DATA;
memcpy( &s->info, &info->info, sizeof(STRUCT_GUILD_MEMBER) );
s->pNextNode = m_pGuildList_Head->pNextNode;
m_pGuildList_Head->pNextNode = s;
}
// 아니면
else
{
memcpy( &t->info, &info->info, sizeof(STRUCT_GUILD_MEMBER) );
}
}
//----------LL 데이타 지우기_이름으로---------//
HTvoid HTGuild::HT_LL_hrDeleteNode( CHTString strName )
{
HTint nCompare;
S_GUILD_DATA *s;
S_GUILD_DATA *p;
p = m_pGuildList_Head;
s = p->pNextNode;
while( s != m_pGuildList_Tail )
{
nCompare = strName.HT_iStringCompare( s->info.MemberName );
if( nCompare == 0 )
break;
p = p->pNextNode;
s = p->pNextNode;
}
if( s != m_pGuildList_Tail )
{
p->pNextNode = s->pNextNode;
HT_DELETE( s );
}
this->HT_vGuild_Display();
}
//----------LL 데이타 지우기_찿기_이름으로---------//
S_GUILD_DATA* HTGuild::HT_LL_hrSerchNode( CHTString strName )
{
HTint nCompare;
S_GUILD_DATA *t;
t = m_pGuildList_Head->pNextNode;
while( t != m_pGuildList_Tail )
{
nCompare = strName.HT_iStringCompare( t->info.MemberName );
if( nCompare == 0 )
return t;
t = t->pNextNode;
}
return t;
}
//----------LL 데이타 에서 조사_있는지 없는지 이름으로 조사---------//
HTRESULT HTGuild::HT_LL_hrExgistCheckName( CHTString strName )
{
HTint nCompare;
S_GUILD_DATA *t;
t = m_pGuildList_Head->pNextNode;
while( t != m_pGuildList_Tail )
{
nCompare = strName.HT_iStringCompare( t->info.MemberName );
if( nCompare == 0 )
return HT_OK;
t = t->pNextNode;
}
return HT_FAIL;
}
//----------LL 데이타 전부 지우기---------//
HTvoid HTGuild::HT_LL_hrDeleteAll()
{
S_GUILD_DATA *s;
S_GUILD_DATA *t;
t = m_pGuildList_Head->pNextNode;
while( t != m_pGuildList_Tail )
{
s = t;
t = t->pNextNode;
HT_DELETE( s );
}
m_pGuildList_Head->pNextNode = m_pGuildList_Tail;
this->HT_vGuild_Display();
}
HTvoid HTGuild::HT_vSetGuildMark(HTint iBackBmpNo, HTint iShapeBmpNo, HTint iColorNo)
{/*
HTint iGuildBackBmpNo;
HTint iGuildShapeBmpNo;
iGuildShapeBmpNo = iShapeBmpNo + _GUILD_MARK_TITLE_START - 1;
iGuildBackBmpNo = iBackBmpNo + _GUILD_MARK_BACK1_START - 1;
*/
}
HTRESULT HTGuild::HT_hrGetGuildMark(HTdword dwIdentity, HTint* dwColor, HTint* dwTitle, HTint* dwEmblem)
{
HTint dwGuildEmblem = (dwIdentity & 0x000000FF);
HTint dwGuildTitle = (dwIdentity & 0x0000FF00) >> 8;
HTint dwGuildColor = (dwIdentity & 0x00FF0000) >> 16;
if ( dwGuildEmblem < 1 || dwGuildEmblem > _GUILD_EMBLEM_NUM
|| dwGuildTitle < 1 || dwGuildTitle > _GUILD_TITLE_NUM
|| dwGuildColor < 1 || dwGuildColor > _GUILD_COLOR_NUM ) return HT_FAIL;
*dwColor = dwGuildColor;
*dwTitle = dwGuildTitle;
*dwEmblem = dwGuildEmblem;
return HT_OK;
}
HTvoid HTGuild::HT_vGuild_SetMessage( HTint idMessage, CHTString* pstrMessage )
{
CHTString szString, szParam, szParamString;
HTshort sParam1 = eMsgParamNone, sParam2 = eMsgParamNone, sParam3 = eMsgParamNone;
if( g_pMessageMgr->HT_bGetMessage( idMessage, &szString ) == true )
g_pMessageMgr->HT_bGetParameter( idMessage, &sParam1, &sParam2, &sParam3 );
else
szString.HT_hrCleanUp();
// 변수가 3개 일 때
if( sParam1 != eMsgParamNone && sParam2 != eMsgParamNone && sParam3 != eMsgParamNone )
{
CHTString szOut1, szOut2, szOut3;
// sParam1
HT_vGuild_SetParamTextForMessage( sParam1, &szOut1 );
// sParam2
HT_vGuild_SetParamTextForMessage( sParam2, &szOut2 );
// sParam3
HT_vGuild_SetParamTextForMessage( sParam3, &szOut3 );
pstrMessage->HT_szFormat( szString.HT_szGetString(), szOut1.HT_szGetString(), szOut2.HT_szGetString(), szOut3.HT_szGetString() );
}
// 변수가 2개 일 때
else if( sParam1 != eMsgParamNone && sParam2 != eMsgParamNone )
{
CHTString szOut1, szOut2;
// sParam1
HT_vGuild_SetParamTextForMessage( sParam1, &szOut1 );
// sParam2
HT_vGuild_SetParamTextForMessage( sParam2, &szOut2 );
pstrMessage->HT_szFormat( szString.HT_szGetString(), szOut1.HT_szGetString(), szOut2.HT_szGetString() );
}
// 변수가 1개 일 때
else if( sParam1 != eMsgParamNone )
{
CHTString szOut1;
// sParam1
HT_vGuild_SetParamTextForMessage( sParam1, &szOut1 );
pstrMessage->HT_szFormat( szString.HT_szGetString(), szOut1.HT_szGetString() );
}
else
*pstrMessage = szString;
}
HTvoid HTGuild::HT_vGuild_SetParamTextForMessage( HTshort sParam, CHTString* pszParam )
{
switch( sParam )
{
// 다른캐릭터 이름
case eMsgParamOthercharName :
*pszParam = m_strGuild_ListSelectdName;
break;
// 필요한 돈
case eMsgParamNeedMoney:
if( g_cNPCControl->HT_bNPCControl_IsGuilCreateStep( ) ) // 길드 창설
pszParam->HT_szFormat( "%d", GUILD_CREATE_NEED_MONEY );
else // 길드 마크 제작
pszParam->HT_szFormat( "%d", GUILD_MARK_NEED_MONEY );
break;
// 길드 이름
case eMsgParamGuildName :
*pszParam = m_szMsgSting;
break;
case eMsgParamGuildConnect :
pszParam->HT_szFormat( "%s", m_strGuild_CharacterName.HT_szGetString() );
break;
default:
break;
}
}
// 아쉬람 연합 픽업 처리
HTRESULT HTGuild::HT_hrGuild_PickCheckFromOtherObject( HTint iObjectID )
{
if( m_nAshuramGuildJoinMode == 1 )
{
m_iAshuramGuildJoin_SendCharKeyID = g_cOtherObjectSystem->HT_iOtherObjectSystem_GetKeyID( iObjectID );
// Step 1. 상대 주신이 자신의 주신과 같아야 가능
if ( g_cOtherObjectSystem->HT_byOtherObjectSystem_GetTrimuriti(m_iAshuramGuildJoin_SendCharKeyID) != g_oMainCharacterInfo.byTrimuriti )
{
CHTString strString;
HT_g_Script_SetMessage( eMsgCommonAshuramGuildMsg12, &strString ); // 같은 주신의 상대만 선택할 수 있습니다.
g_BasicLoadingInfo->HT_vNetWorkMessageSetHistory( HISTORY_MESSAGE_TYPE_CHAKRA, strString );
return HT_OK;
}
// Step 2. 자신과 상대 모두 요새를 점령하고 있는 상태라면 에러메시지 출력
if (m_bMyStrongGuild == HT_TRUE)
{
// 상대방의 길드명 추출
CHTString GuildName = g_cOtherObjectSystem->HT_strOtherObjectSystem_GetAshiramNameFromKeyID(m_iAshuramGuildJoin_SendCharKeyID);
if (GuildName.HT_szGetString() != NULL)
for (HTint i=0; i<4; ++i) // 점령한 요새 4군데의 길드명 비교
if (strcmp(m_strStrongGuildName[i].HT_szGetString(), GuildName.HT_szGetString()) == 0)
{
CHTString strString;
HT_g_Script_SetMessage( eMsgCommonAshuramGuildMsg17, &strString ); // 요새를 소유한 아쉬람끼리는 연합을 맺을 수 없습니다.
g_BasicLoadingInfo->HT_vNetWorkMessageSetHistory( HISTORY_MESSAGE_TYPE_CHAKRA, strString );
return HT_OK;
}
}
m_strAshuramGuildJoin_SendCharName = g_cOtherObjectSystem->HT_strOtherObjectSystem_GetNameFromKeyID(m_iAshuramGuildJoin_SendCharKeyID);
m_byAshuramGuildJoin_ResponseReason = 0;
// Get message and set
CHTString strString;
HT_g_Script_SetMessage( eMsgCommonAshuramGuildMsg1, &strString, m_strAshuramGuildJoin_SendCharName.HT_szGetString() );
g_cUIManager->HT_MessageBox( _DIALOG_ASHRAMINFO, strString.HT_szGetString(), 1 );
m_iGuild_MsgBoxType = GUILDTYPE_CONFIRM_REQALLIANCE;
m_nAshuramGuildJoinMode = 0;
return HT_OK;
}
return HT_FAIL;
}
HTvoid HTGuild::HT_vGuildNet_CSP_AshuramGuild(BYTE byType, BYTE byAct, BYTE byResult)
{
Msg_GuildAlliance* info = HT_NULL;
info = new Msg_GuildAlliance;
info->nID = m_iAshuramGuildJoin_SendCharKeyID ;
info->byType = byType; // 1 = 동맹 , 2 = 적대
info->byAct = byAct; // 1 = 결성 , 2 = 해체(취소)
info->byResult = byResult; // 0 = 요청, 1~ = 응답
g_pNetWorkMgr->RequestMsgAshuramGuild( info );
//-----디버깅 테스트를 위하여-----//
//g_DebugingFont[g_DebugingFont_Count++].HT_szFormat("Send_AshuramGuild : nID = %d, byType = %d, byAct = %d, byResult = %d", info->nID, info->byType, info->byAct, info->byResult );
//if( g_DebugingFont_Count == 10 ) g_DebugingFont_Count = 0;
HT_DELETE( info );
}
// Recive Challenger
HTvoid HTGuild::HT_vGuildNet_SCP_AshuramGuild( Msg_GuildAlliance* info )
{
switch(int(info->byResult))
{
case 0: // 아쉬람연합 요청에 대한 응답처리
{
m_iAshuramGuildJoin_SendCharKeyID = info->nID;
m_strAshuramGuildJoin_SendCharName = g_cOtherObjectSystem->HT_strOtherObjectSystem_GetNameFromKeyID(m_iAshuramGuildJoin_SendCharKeyID);
// Get message and set
CHTString strString;
HT_g_Script_SetMessage( eMsgCommonAshuramGuildMsg3, &strString, m_strAshuramGuildJoin_SendCharName.HT_szGetString());
g_cUIManager->HT_MessageBox( _DIALOG_ASHRAMINFO, strString.HT_szGetString(), 1 );
m_iGuild_MsgBoxType = GUILDTYPE_CONFIRM_RECIVEALLIANCE;
}
case 1: //REPLY_GUILDALLIANCE_SUCCESS
{
if (info->byAct == 1)
{
// m_iAshuramGuildJoin_SendCharKeyID = info->nID;
// m_strAshuramGuildJoin_SendCharName = g_cOtherObjectSystem->HT_strOtherObjectSystem_GetNameFromKeyID(m_iAshuramGuildJoin_SendCharKeyID);
// CHTString strString;
// HT_g_Script_SetMessage( eMsgCommonAshuramGuildMsg3, &strString, m_strAshuramGuildJoin_SendCharName.HT_szGetString() ); // %s님이 아쉬람 연합 신청을 받아들였습니다.
// g_BasicLoadingInfo->HT_vNetWorkMessageSetHistory( HISTORY_MESSAGE_TYPE_CHAKRA, strString );
}
else // 2
{
// CHTString strString;
// HT_g_Script_SetMessage( eMsgCommonAshuramGuildMsg8, &strString ); // %s님이 아쉬람 연합 신청을 받아들였습니다.
// g_BasicLoadingInfo->HT_vNetWorkMessageSetHistory( HISTORY_MESSAGE_TYPE_CHAKRA, strString );
}
}
break;
case 2: //REPLY_GUILDALLIANCE_ALREADY
break;
case 3: //REPLY_GUILDALLIANCE_DISCONNECT
break;
case 4: //REPLY_GUILDALLIANCE_LEVEL
{
CHTString strString;
HT_g_Script_SetMessage( eMsgCommonAshuramGuildMsg5, &strString );
g_BasicLoadingInfo->HT_vNetWorkMessageSetHistory( HISTORY_MESSAGE_TYPE_CHAKRA, strString );
}
break;
case 5: //REPLY_GUILDALLIANCE_CANCEL
{ // 취소
CHTString strString;
HT_g_Script_SetMessage( eMsgCommonAshuramGuildMsg4, &strString, m_strAshuramGuildJoin_SendCharName.HT_szGetString() ); // %s님이 아쉬람 연합 신청을 받아들였습니다.
g_BasicLoadingInfo->HT_vNetWorkMessageSetHistory( HISTORY_MESSAGE_TYPE_CHAKRA, strString );
}
break;
}
}
// 요새 소유 아쉬람 패킷
HTvoid HTGuild::HT_vGuildNet_SCP_StrongGuildInit( Msg_StrongHoldInit* info )
{
// 요새에 길드 마크 넣어줌.
g_pEngineHandler->HT_hrSetGuildCastleMark( info->dwMark[eStronghold_Northwest], info->dwMark[eStronghold_Northeast], info->dwMark[eStronghold_Southwest], info->dwMark[eStronghold_Southeast] );
// 소유성 출력
m_iMyStrongGuildIndex = -1;
g_cUIManager->HT_SetTextLabelControl( _DIALOG_ASHRAMINFO, 19, _T("") );
for( int i=0 ; i<eStronghold_MaxCount ; i++ )
{
// 요새를 보유한 길드 이름
m_strStrongGuildName[i] = info->szGuildName[i];
if( !m_strGuild_GuildName.HT_bIsEmpty() )
{
if( m_strGuild_GuildName.HT_iStringCompare( info->szGuildName[i] ) == 0 ||
m_strAlliedGuildName[0].HT_iStringCompare( info->szGuildName[i] ) == 0 ||
m_strAlliedGuildName[1].HT_iStringCompare( info->szGuildName[i] ) == 0 )
{
m_iMyStrongGuildIndex = i;
m_bMyStrongGuild = TRUE;
// 나의 소유성 출력
if( m_strGuild_GuildName.HT_iStringCompare( info->szGuildName[i] ) == 0 )
{
CHTString strTemp;
HT_vGuild_SetMessage( eMsgCommonDurga0 + m_iMyStrongGuildIndex, &strTemp ); // [아쉬람]
g_cUIManager->HT_SetTextLabelControl( _DIALOG_ASHRAMINFO, 19, strTemp.HT_szGetString() );
}
// 연합 아쉬람의 소유성 출력
else
{
CHTString strStrongGuild;
CHTString strTemp;
HT_g_Script_SetMessage( eMsgCommonCommandUnionAshuram, &strTemp, _T("") );
strStrongGuild.HT_szFormat( "%s(%s)", m_strStrongGuildName[m_iMyStrongGuildIndex].HT_szGetString(), strTemp.HT_szGetString() );
g_cUIManager->HT_SetTextLabelControl( _DIALOG_ASHRAMINFO, 19, strStrongGuild.HT_szGetString() );
}
break;
}
}
}
}
// 요새 소유 아쉬람 패킷 Udate
HTvoid HTGuild::HT_vGuildNet_SCP_StrongGuildUpdate( Msg_StrongHoldUpdate* info )
{
// 요새에 길드 마크 넣어줌.
g_pEngineHandler->HT_hrSetGuildCastleMark( info->dwMark[eStronghold_Northwest], info->dwMark[eStronghold_Northeast], info->dwMark[eStronghold_Southwest], info->dwMark[eStronghold_Southeast] );
// 소유성 출력
m_iMyStrongGuildIndex = -1;
g_cUIManager->HT_SetTextLabelControl( _DIALOG_ASHRAMINFO, 19, _T("") );
for( int i=0 ; i<eStronghold_MaxCount ; i++ )
{
// 요새를 보유한 길드 이름
m_strStrongGuildName[i] = info->szGuildName[i];
if( !m_strGuild_GuildName.HT_bIsEmpty() )
{
if( m_strGuild_GuildName.HT_iStringCompare( info->szGuildName[i] ) == 0 ||
m_strAlliedGuildName[0].HT_iStringCompare( info->szGuildName[i] ) == 0 ||
m_strAlliedGuildName[1].HT_iStringCompare( info->szGuildName[i] ) == 0 )
{
m_iMyStrongGuildIndex = i;
m_bMyStrongGuild = TRUE;
// 나의 소유성 출력
if( m_strGuild_GuildName.HT_iStringCompare( info->szGuildName[i] ) == 0 )
{
CHTString strTemp;
HT_vGuild_SetMessage( eMsgCommonDurga0 + m_iMyStrongGuildIndex, &strTemp ); // [아쉬람]
g_cUIManager->HT_SetTextLabelControl( _DIALOG_ASHRAMINFO, 19, strTemp.HT_szGetString() );
}
// 연합 아쉬람의 소유성 출력
else
{
CHTString strStrongGuild;
CHTString strTemp;
HT_g_Script_SetMessage( eMsgCommonCommandUnionAshuram, &strTemp, _T("") );
strStrongGuild.HT_szFormat( "%s(%s)", m_strStrongGuildName[m_iMyStrongGuildIndex].HT_szGetString(), strTemp.HT_szGetString() );
g_cUIManager->HT_SetTextLabelControl( _DIALOG_ASHRAMINFO, 19, strStrongGuild.HT_szGetString() );
}
break;
}
}
}
g_cOtherObjectSystem->HT_vOtherObjectSystem_SetStrongAshiram( m_strAlliedGuildName[0].HT_szGetString(), m_strAlliedGuildName[1].HT_szGetString() );
// Setting Targetting
g_cOtherObjectSystem->HT_vOtherObjectSystem_SetTargetting();
}
// 연합길드
CHTString HTGuild::HT_strGuild_AlliedGuildName( HTint iGuildIndex )
{
return m_strAlliedGuildName[iGuildIndex];
}
// Ashram Cargo
// Request Ashram Item
HTvoid HTGuild::HT_vAshram_CSPAshramItem()
{
Msg_GuildItem* info = HT_NULL;
info = new Msg_GuildItem;
// Send to server
g_pNetWorkMgr->RequestGuildItem( info );
//-----디버깅 테스트를 위하여-----//
g_DebugingFont[g_DebugingFont_Count++].HT_szFormat("Request_AshramItem" );
if( g_DebugingFont_Count == 10 ) g_DebugingFont_Count = 0;
HT_DELETE( info );
}
// Recive Ashram Item
HTvoid HTGuild::HT_vAshram_SCPAshramItem( Msg_GuildItem* info )
{
g_cUIManager->HT_ShowWindow(_DIALOG_ASHRAMCAGO);
// 인벤토리도 Open
if( !g_cUIManager->HT_isShowWindow( _DIALOG_EQUPINVENTORY ) )
g_cEquipInventory->HT_hrEquipPcInventoryActiveSw();
// 그리고 새롭게 셋팅하여 넣어준다.
memcpy( m_arrItemOfAshramCargo[0], info->arrItem, sizeof(STRUCT_ITEM)*120 );
memcpy( m_arrItemOfAshramCargo[1], info->arrItem+120, sizeof(STRUCT_ITEM)*120 );
memcpy( m_arrItemOfAshramCargo[2], info->arrItem+240, sizeof(STRUCT_ITEM)*120 );
// 먼저 기존의 창고 아이템을 지운다.
g_cItemSystem->HT_LL_vInsertAfter_ItemDeleteAshramCargo( m_arrItemOfAshramCargo[m_iPrevPageOfAshramCargo], m_iPrevPageOfAshramCargo );
g_cItemSystem->HT_LL_vInsertAfter_ItemCreateAshramCargo( m_arrItemOfAshramCargo[m_iPageOfAshramCargo], m_iPageOfAshramCargo );
// 아쉬람 창고 이름 갱신
CHTString strTemp;
CHTString strMessage;
strTemp.HT_hrCleanUp();
g_cUIManager->HT_SetScriptMessage( eMsgAshramAshramCargo, &strMessage, _T(""), _T("") ); // 아쉬람창고
strTemp.HT_szFormat( strMessage, m_iPageOfAshramCargo+1 );
g_cUIManager->HT_SetTextLabelControl( _DIALOG_ASHRAMCAGO, 5, strTemp.HT_szGetString() );
}
// Request Set Level Ashram Cargo
HTvoid HTGuild::HT_vAshram_CSPSetLevelAshramCargo( HTbyte byCargoNo, HTbyte byLevel )
{
Msg_GuildCargoUsingLevel* info = HT_NULL;
info = new Msg_GuildCargoUsingLevel;
info->byCargoLevel[0] = m_byUseCargoLevel[0];
info->byCargoLevel[1] = m_byUseCargoLevel[1];
info->byCargoLevel[2] = m_byUseCargoLevel[2];
info->byCargoLevel[byCargoNo] = byLevel;
// Send to server
g_pNetWorkMgr->RequestGuildCargoUsingLevel( info );
//-----디버깅 테스트를 위하여-----//
g_DebugingFont[g_DebugingFont_Count++].HT_szFormat("Request_GuildCargoUsingLevel No:%d, Level:%d", byCargoNo, byLevel );
if( g_DebugingFont_Count == 10 ) g_DebugingFont_Count = 0;
HT_DELETE( info );
}
// Recive Set Level Ashram Cargo
HTvoid HTGuild::HT_vAshram_SCPSetLevelAshramCargo( Msg_GuildCargoUsingLevel* info )
{
for( HTint i=0 ; i<3 ; i++ )
{
m_byUseCargoLevel[i] = info->byCargoLevel[i];
HTbyte byLevel;
if( info->byCargoLevel[i] == eGuildSubMaster ) byLevel = 0;
else if( info->byCargoLevel[i] == eGuildThird ) byLevel = 1;
else if( info->byCargoLevel[i] == eGuildForth ) byLevel = 2;
else byLevel = 3;//if( iLevel == eGuildMember )
for( HTbyte j=0 ; j<4 ; j++ )
{
if( byLevel>=j ) g_cUIManager->HT_SetTextureControlDisplay( _DIALOG_SETLEVELASHCAGO, 10+(i*4)+j, HT_TRUE );
else g_cUIManager->HT_SetTextureControlDisplay( _DIALOG_SETLEVELASHCAGO, 10+(i*4)+j, HT_FALSE );
}
}
}
// Request GuildCargoTimeExtension
HTvoid HTGuild::HT_vAshram_CSPGuildCargoTimeExtension( HTbyte byType )
{
Msg_GuildCargoTimeExtension* info = HT_NULL;
info = new Msg_GuildCargoTimeExtension;
info->byType = byType;
// Send to server
g_pNetWorkMgr->RequestGuildCargoTimeExtension( info );
//-----디버깅 테스트를 위하여-----//
g_DebugingFont[g_DebugingFont_Count++].HT_szFormat("Request_GuildCargoTimeExtension Type:%d", byType );
if( g_DebugingFont_Count == 10 ) g_DebugingFont_Count = 0;
HT_DELETE( info );
}
// Recive GuildCargoTimeExtension
HTvoid HTGuild::HT_vAshram_SCPGuildCargoTimeExtension( Msg_GuildCargoTimeExtension* info )
{
if( info->byResult == 0 )
{
CHTString strMessage;
CHTString strTemp;
g_cUIManager->HT_SetScriptMessage( eMsgAshramInfo, &strMessage, _T(""), _T("") ); // 아쉬람 창고%d 확장에 성공하였습니다.
strTemp.HT_szFormat( strMessage, (HTint)info->byType );
g_BasicLoadingInfo->HT_vNetWorkMessageSetHistory( HISTORY_MESSAGE_TYPE_CHAKRA, strTemp.HT_szGetString() );
}
else if( info->byResult == 1 )
{
CHTString strMessage;
g_cUIManager->HT_SetScriptMessage( eMsgAshramFaildCargoExpance, &strMessage, _T(""), _T("") ); // 아쉬람 창고 확장에 실패하였습니다.
g_BasicLoadingInfo->HT_vNetWorkMessageSetHistory( HISTORY_MESSAGE_TYPE_CHAKRA, strMessage );
}
}
// Recive GuildItemUpdate
HTvoid HTGuild::HT_vAshram_SCPGuildItemUpdate( Msg_GuildItemUpdate* info )
{
// 기존 아이템 삭제
if( info->nFromIndex != -1 )
{
HTint iKeyID = 0;
BASE_GetKey( g_cMainCharacter->HT_iMainChar_GetKeyID(), ITEM_PLACE_GUILDCARGO, info->nFromIndex, iKeyID );
g_cItemSystem->HT_LL_vInsertAfter_ItemDelete( (HTdword)iKeyID );
}
// 아이템 생성
if( info->nToIndex != -1 )
{
if (g_cItemSystem) g_cItemSystem->HT_vItemSystem_CreateAshramCargo( ITEM_PLACE_GUILDCARGO, info->nToIndex, info->item );
}
}
// Recive GuildCargoTime
HTvoid HTGuild::HT_vAshram_SCPGuildCargoTime( Msg_GuildCargoTime* info )
{
for( HTint i=0 ; i<3 ; i++ )
{
if( info->dwTime[i] > 0 )
{
time_t svTime = (time_t)info->dwTime[i];
if( svTime > 0 )
{
time_t now; time( &now );
CHTString szDay;
CHTString strMessage;
g_cUIManager->HT_SetScriptMessage( eMsgWordInUseing, &strMessage, _T(""), _T("") ); // 사용중
g_cUIManager->HT_SetTextLabelControl( _DIALOG_SANCTIONASHCAGO, 10+i, strMessage );
tm* psTmTime = localtime( &svTime );
g_cUIManager->HT_SetScriptMessage( eMsgCommonUntilAshramCargo, &strMessage, _T(""), _T("") ); // 사용중
//szDay.HT_szFormat("%d.%d.%d까지", psTmTime->tm_year+1900, psTmTime->tm_mon+1, psTmTime->tm_mday );
szDay.HT_szFormat(strMessage, psTmTime->tm_year+1900, psTmTime->tm_mon+1, psTmTime->tm_mday );
g_cUIManager->HT_SetTextLabelControl( _DIALOG_SANCTIONASHCAGO, 13+i, szDay.HT_szGetString() );
svTime -= now;
if (svTime <= 86400) svTime = 0;
else svTime /= 86400;
szDay.HT_szFormat("%d", svTime);
g_cUIManager->HT_SetTextLabelControl( _DIALOG_SANCTIONASHCAGO, 16+i, szDay.HT_szGetString() );
}
}
else
{
CHTString strMessage;
g_cUIManager->HT_SetScriptMessage( eMsgAshramNotUse, &strMessage, _T(""), _T("") ); // 사용중아님
g_cUIManager->HT_SetTextLabelControl( _DIALOG_SANCTIONASHCAGO, 10+i, strMessage );
g_cUIManager->HT_SetScriptMessage( eMsgAshramEnd, &strMessage, _T(""), _T("") ); // 만료
g_cUIManager->HT_SetTextLabelControl( _DIALOG_SANCTIONASHCAGO, 13+i, strMessage );
g_cUIManager->HT_SetTextLabelControl( _DIALOG_SANCTIONASHCAGO, 16+i, _T("0") );
}
}
}
| [
"noreply@github.com"
] | DevNightCorp.noreply@github.com |
7e99763a7936b6828c47844508cf805df03e583f | 534414b49d65e40ceab9044b749365252583869c | /xspydll/mfc_class.h | 5f33132cefdf099b2f46c5d0a0ab26f9ef9f9ea1 | [] | no_license | zhuhuibeishadiao/xspy | 0f7a1a9a6b416d6977d81c8209470d8ecd37b926 | df22380314623da7e92b421dfaa6143dbe8dd3cf | refs/heads/master | 2020-04-07T22:46:55.701900 | 2018-10-26T03:30:24 | 2018-10-26T03:30:24 | 158,784,609 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 13,571 | h | /*
*
* This file is part of xspy
* By lynnux <lynnux@qq.com>
* Copyright 2013 lynnux
*
* 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
* of the License, 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 this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
/************************************************************************/
/* 查看MFC虚函数的方法:
/d1reportAllClassLayout
*/
/************************************************************************/
#pragma once
#include <boost/format.hpp>
#define MAKE_VFN(x) \
virtual const char* x() \
{ \
return #x; \
}
typedef size_t* PVFN;
#define PRINT_VFN(x) \
result += boost::str(boost::format("[vtbl+0x%02X]%-24s= %s\r\n") % index % #x % GetCodes((LPVOID)*pStart)); \
++pStart; \
++index;
struct AFX_MSGMAP_ENTRY
{
UINT nMessage; // windows message
UINT nCode; // control code or WM_NOTIFY code
UINT nID; // control ID (or 0 for windows messages)
UINT nLastID; // used for entries specifying a range of control id's
UINT_PTR nSig; // signature type (action) or pointer to message #
//AFX_PMSG pfn; // routine to call (or special value)
LPVOID pfn;
};
struct AFX_MSGMAP
{
LPVOID pfnGetBaseMap;
//const AFX_MSGMAP* (PASCAL* pfnGetBaseMap)();
const AFX_MSGMAP_ENTRY* lpEntries;
};
struct CRuntimeClass
{
// Attributes
LPCSTR m_lpszClassName;
int m_nObjectSize;
UINT m_wSchema; // schema number of the loaded class
//CObject* (PASCAL* m_pfnCreateObject)(); // NULL => abstract class
LPVOID m_pfnCreateObject;
//#ifdef _AFXDLL
CRuntimeClass* (PASCAL* m_pfnGetBaseClass)();
//#else
// CRuntimeClass* m_pBaseClass;
//#endif
//
};
class CObject
{
public:
// 该函数可以获取类名和类大小
virtual CRuntimeClass* GetRuntimeClass() const{return 0;};
MAKE_VFN(dtor);
MAKE_VFN(Serialize);
void get_vfn_string(PVFN& pStart, DWORD& index, std::string& result)
{
index = 0;
PRINT_VFN(GetRuntimeClass);
PRINT_VFN(dtor);
PRINT_VFN(Serialize);
}
};
class CObject_dbg
{
public:
virtual CRuntimeClass* GetRuntimeClass() const {return 0;};
MAKE_VFN(dtor);
MAKE_VFN(Serialize);
MAKE_VFN(AssertValid);
MAKE_VFN(Dump);
void get_vfn_string(PVFN& pStart, DWORD& index, std::string& result)
{
index = 0;
PRINT_VFN(GetRuntimeClass);
PRINT_VFN(dtor);
PRINT_VFN(Serialize);
PRINT_VFN(AssertValid);
PRINT_VFN(Dump);
}
};
template<class T>
class CCmdTarget : public T
{
public:
MAKE_VFN(OnCmdMsg);
MAKE_VFN(OnFinalRelease);
MAKE_VFN(IsInvokeAllowed);
MAKE_VFN(GetDispatchIID);
MAKE_VFN(GetTypeInfoCount);
MAKE_VFN(GetTypeLibCache);
MAKE_VFN(GetTypeLib);
virtual const AFX_MSGMAP* GetMessageMap(){return 0;}
// 不调用的虚函数就没必要MAKE_VFN了
//#define MAKE_MEMBER(x,fmt) sTemp.Format( "[+%02X]" #x "=" fmt "\r\n",(PBYTE)&(x) - (PBYTE)this,x);str += sTemp;
// sTemp.Format( "[+%02X]vtbl address=%s\r\n",0,(LPCSTR)GetMods(vtbl));str += sTemp;
void get_member(PVFN& pStart, DWORD& index, std::string& result)
{
PDWORD pBegin = (PDWORD)pStart;
#define PRINT_MEMBER(x) \
result += boost::str(boost::format("[+0x%02X]" #x " = 0x%p\r\n") % index % ); \
++pStart; \
++index;
PRINT_MEMBER(CCmdTarget::m_dwRef); // 64位分布不知道是什么样的
PRINT_MEMBER(CCmdTarget::m_pOuterUnknown);
PRINT_MEMBER(CCmdTarget::m_xInnerUnknown);
PRINT_MEMBER(CCmdTarget::m_xDispatch.m_vtbl);
// MAKE_MEMBER(CCmdTarget::m_xDispatch.m_nOffset);
PRINT_MEMBER(CCmdTarget::m_bResultExpected);
PRINT_MEMBER(CCmdTarget::m_xConnPtContainer.m_vtbl);
// MAKE_MEMBER(CCmdTarget::m_xConnPtContainer.m_nOffset,"%p");
}
void get_vfn_string(PVFN& pStart, DWORD& index, std::string& result)
{
T::get_vfn_string(pStart, index, result);
PRINT_VFN(OnCmdMsg);
PRINT_VFN(OnFinalRelease);
PRINT_VFN(IsInvokeAllowed);
PRINT_VFN(GetDispatchIID);
PRINT_VFN(GetTypeInfoCount);
PRINT_VFN(GetTypeLibCache);
PRINT_VFN(GetTypeLib);
PRINT_VFN(GetMessageMap);
PRINT_VFN(GetCommandMap);
PRINT_VFN(GetDispatchMap);
PRINT_VFN(GetConnectionMap);
PRINT_VFN(GetInterfaceMap);
PRINT_VFN(GetEventSinkMap);
PRINT_VFN(OnCreateAggregates);
PRINT_VFN(GetInterfaceHook);
PRINT_VFN(GetExtraConnectionPoints);
PRINT_VFN(GetConnectionHook);
}
};
template<class dbg>
class CWnd42X : public CCmdTarget<dbg>
{
public:
void get_vfn_string(PVFN& pStart, DWORD& index, std::string& result)
{
CCmdTarget<dbg>::get_vfn_string(pStart, index, result);
PRINT_VFN(PreSubclassWindow);
PRINT_VFN(Create);
PRINT_VFN(DestroyWindow);
PRINT_VFN(PreCreateWindow);
PRINT_VFN(CalcWindowRect);
PRINT_VFN(OnToolHitTest);
PRINT_VFN(GetScrollBarCtrl);
PRINT_VFN(WinHelpA);
PRINT_VFN(ContinueModal);
PRINT_VFN(EndModalLoop);
PRINT_VFN(OnCommand);
PRINT_VFN(OnNotify);
PRINT_VFN(GetSuperWndProcAddr);
PRINT_VFN(DoDataExchange);
PRINT_VFN(BeginModalState);
PRINT_VFN(EndModalState);
PRINT_VFN(PreTranslateMessage);
PRINT_VFN(OnAmbientProperty);
PRINT_VFN(WindowProc);
PRINT_VFN(OnWndMsg);
PRINT_VFN(DefWindowProcA);
PRINT_VFN(PostNcDestroy);
PRINT_VFN(OnChildNotify);
PRINT_VFN(CheckAutoCenter);
PRINT_VFN(IsFrameWnd);
PRINT_VFN(SetOccDialogInfo);
}
};
template <class dbg>
class CDialog42X : public dbg
{
public:
void get_vfn_string(PVFN& pStart, DWORD& index, std::string& result)
{
dbg::get_vfn_string(pStart, index, result);
PRINT_VFN(DoModal);
PRINT_VFN(OnInitDialog);
PRINT_VFN(OnSetFont);
PRINT_VFN(OnOK);
PRINT_VFN(OnCancel);
PRINT_VFN(PreInitDialog);
}
};
template <class dbg>
class CWnd90X : public CCmdTarget<dbg>
{
public:
void get_vfn_string(PVFN& pStart, DWORD& index, std::string& result)
{
CCmdTarget<dbg>::get_vfn_string(pStart, index, result);
PRINT_VFN(PreSubclassWindow);
PRINT_VFN(Create);
PRINT_VFN(CreateEx);
PRINT_VFN(CreateEx);
PRINT_VFN(DestroyWindow);
PRINT_VFN(PreCreateWindow);
PRINT_VFN(CalcWindowRect);
PRINT_VFN(GetMenu);
PRINT_VFN(SetMenu);
PRINT_VFN(OnToolHitTest);
PRINT_VFN(GetScrollBarCtrl);
PRINT_VFN(WinHelpA);
PRINT_VFN(HtmlHelpA);
PRINT_VFN(WinHelpInternal);
PRINT_VFN(ContinueModal);
PRINT_VFN(EndModalLoop);
PRINT_VFN(EnsureStdObj);
PRINT_VFN(get_accParent);
PRINT_VFN(get_accChildCount);
PRINT_VFN(get_accChild);
PRINT_VFN(get_accName);
PRINT_VFN(get_accValue);
PRINT_VFN(get_accDescription);
PRINT_VFN(get_accRole);
PRINT_VFN(get_accState);
PRINT_VFN(get_accHelp);
PRINT_VFN(get_accHelpTopic);
PRINT_VFN(get_accKeyboardShortcut);
PRINT_VFN(get_accFocus);
PRINT_VFN(get_accSelection);
PRINT_VFN(get_accDefaultAction);
PRINT_VFN(accSelect);
PRINT_VFN(accLocation);
PRINT_VFN(accNavigate);
PRINT_VFN(accHitTest);
PRINT_VFN(accDoDefaultAction);
PRINT_VFN(put_accName);
PRINT_VFN(put_accValue);
PRINT_VFN(SetProxy);
PRINT_VFN(CreateAccessibleProxy);
PRINT_VFN(OnCommand);
PRINT_VFN(OnNotify);
PRINT_VFN(GetSuperWndProcAddr);
PRINT_VFN(DoDataExchange);
PRINT_VFN(BeginModalState);
PRINT_VFN(EndModalState);
PRINT_VFN(PreTranslateMessage);
PRINT_VFN(OnAmbientProperty);
PRINT_VFN(WindowProc);
PRINT_VFN(OnWndMsg);
PRINT_VFN(DefWindowProcA);
PRINT_VFN(PostNcDestroy);
PRINT_VFN(OnChildNotify);
PRINT_VFN(CheckAutoCenter);
PRINT_VFN(IsFrameWnd);
PRINT_VFN(CreateControlContainer);
PRINT_VFN(CreateControlSite);
PRINT_VFN(SetOccDialogInfo);
PRINT_VFN(GetOccDialogInfo);
}
};
template<class dbg>
class CDialog90X : public dbg
{
public:
void get_vfn_string(PVFN& pStart, DWORD& index, std::string& result)
{
dbg::get_vfn_string(pStart, index, result);
PRINT_VFN(Create);
PRINT_VFN(Create);
PRINT_VFN(CreateIndirect);
PRINT_VFN(CreateIndirect);
PRINT_VFN(DoModal);
PRINT_VFN(OnInitDialog);
PRINT_VFN(OnSetFont);
PRINT_VFN(OnOK);
PRINT_VFN(OnCancel);
PRINT_VFN(PreInitDialog);
}
};
// mfc 110 (test on vs2012)
template <class dbg>
class CWnd110X : public CCmdTarget<dbg>
{
public:
void get_vfn_string(PVFN& pStart, DWORD& index, std::string& result)
{
CCmdTarget<dbg>::get_vfn_string(pStart, index, result);
PRINT_VFN(PreSubclassWindow);
PRINT_VFN(Create);
PRINT_VFN(CreateEx);
PRINT_VFN(CreateEx);
PRINT_VFN(DestroyWindow);
PRINT_VFN(PreCreateWindow);
PRINT_VFN(CalcWindowRect);
PRINT_VFN(GetMenu);
PRINT_VFN(SetMenu);
PRINT_VFN(OnToolHitTest);
PRINT_VFN(GetScrollBarCtrl);
PRINT_VFN(WinHelpA);
PRINT_VFN(HtmlHelpA);
PRINT_VFN(WinHelpInternal);
PRINT_VFN(ContinueModal);
PRINT_VFN(EndModalLoop);
PRINT_VFN(OnDrawIconicThumbnailOrLivePreview); // new
PRINT_VFN(EnsureStdObj);
PRINT_VFN(get_accParent);
PRINT_VFN(get_accChildCount);
PRINT_VFN(get_accChild);
PRINT_VFN(get_accName);
PRINT_VFN(get_accValue);
PRINT_VFN(get_accDescription);
PRINT_VFN(get_accRole);
PRINT_VFN(get_accState);
PRINT_VFN(get_accHelp);
PRINT_VFN(get_accHelpTopic);
PRINT_VFN(get_accKeyboardShortcut);
PRINT_VFN(get_accFocus);
PRINT_VFN(get_accSelection);
PRINT_VFN(get_accDefaultAction);
PRINT_VFN(accSelect);
PRINT_VFN(accLocation);
PRINT_VFN(accNavigate);
PRINT_VFN(accHitTest);
PRINT_VFN(accDoDefaultAction);
PRINT_VFN(put_accName);
PRINT_VFN(put_accValue);
PRINT_VFN(SetProxy);
PRINT_VFN(CreateAccessibleProxy);
PRINT_VFN(OnCommand);
PRINT_VFN(OnNotify);
PRINT_VFN(GetSuperWndProcAddr);
PRINT_VFN(DoDataExchange);
PRINT_VFN(BeginModalState);
PRINT_VFN(EndModalState);
PRINT_VFN(PreTranslateMessage);
PRINT_VFN(OnAmbientProperty);
PRINT_VFN(WindowProc);
PRINT_VFN(OnWndMsg);
PRINT_VFN(DefWindowProcA);
PRINT_VFN(PostNcDestroy);
PRINT_VFN(OnChildNotify);
PRINT_VFN(OnTouchInputs); // new begin
PRINT_VFN(OnTouchInput);
PRINT_VFN(GetGestureStatus);
PRINT_VFN(OnGestureZoom);
PRINT_VFN(OnGesturePan);
PRINT_VFN(OnGestureRotate);
PRINT_VFN(OnGestureTwoFingerTap);
PRINT_VFN(OnGesturePressAndTap); // new end
PRINT_VFN(CheckAutoCenter);
PRINT_VFN(IsFrameWnd);
PRINT_VFN(CreateControlContainer);
PRINT_VFN(CreateControlSite);
PRINT_VFN(SetOccDialogInfo);
PRINT_VFN(GetOccDialogInfo);
}
};
// CDialog110X same as CDialog90X
// vc60到vs2008,CCmdTarget的虚函数表都是一样,vs2008的CWnd类虚函数表就多很多函数了
template <class dbg>
class CWndX : public CCmdTarget<dbg>
{
public:
};
template <class dbg>
class CDialogX : public CWndX<dbg>
{
public:
};
// 通用版本,不需要判断具体是哪个MFC版本,比如调用GetRuntimeClass的时候
typedef CWndX<CObject_dbg> CWndd;
typedef CWndX<CObject> CWnd;
typedef CDialogX<CObject_dbg> CDialogd;
typedef CDialogX<CObject> CDialog;
// 默认,对不支持的版本,至少可以显示到CCmdTarget的虚函数表
typedef CWnd CWnd00;
typedef CWndd CWnd00d;
typedef CDialog CDialog00;
typedef CDialogd CDialog00d;
// mfc42
typedef CWnd42X<CObject> CWnd42;
typedef CWnd42X<CObject_dbg> CWnd42d;
typedef CDialog42X<CWnd42> CDialog42;
typedef CDialog42X<CWnd42d> CDialog42d;
// mfc90
typedef CWnd90X<CObject> CWnd90;
typedef CWnd90X<CObject_dbg> CWnd90d;
typedef CDialog90X<CWnd90> CDialog90;
typedef CDialog90X<CWnd90d> CDialog90d;
// mfc110
typedef CWnd110X<CObject> CWnd110;
typedef CWnd110X<CObject_dbg> CWnd110d;
typedef CDialog90X<CWnd110> CDialog110;
typedef CDialog90X<CWnd110d> CDialog110d;
// mfc100
typedef CWnd110 CWnd100;
typedef CWnd110d CWnd100d;
typedef CDialog110 CDialog100;
typedef CDialog110d CDialog100d;
// mfc120
typedef CWnd110 CWnd120;
typedef CWnd110d CWnd120d;
typedef CDialog110 CDialog120;
typedef CDialog110d CDialog120d; | [
"lynnux@qq.com"
] | lynnux@qq.com |
9dafe06089f1d6ddad88a1ca518d8b005c6f0db5 | acb594d6abc0cf81b3d82c8210a76bc1825ca475 | /sources/cs/gtl/intrusive_default_functionality.h | 0e0bdede49dedb41af4aa2172e8b88511f2a845e | [] | no_license | cyberjois/xray-2-2011 | 0917503e4a3189838a422a7f14eceeb704445b7f | 1795aa33a51fdde2ff5ea10627fc6d0b2b755c56 | refs/heads/main | 2023-05-27T19:36:05.573135 | 2021-06-02T18:07:53 | 2021-06-02T18:07:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 793 | h | ////////////////////////////////////////////////////////////////////////////
// Module : intrusive_default_functionality.h
// Created : 30.06.2005
// Modified : 28.05.2007
// Author : Dmitriy Iassenev
// Description : intrusive pointer default functionality template class
////////////////////////////////////////////////////////////////////////////
#ifndef CS_GTL_INTRUSIVE_DEFAULT_FUNCTIONALITY_H_INCLUDED
#define CS_GTL_INTRUSIVE_DEFAULT_FUNCTIONALITY_H_INCLUDED
namespace gtl {
template <typename ChildType>
class intrusive_default_functionality {
protected:
inline ChildType& self ();
inline ChildType const& self () const;
};
} // namespace gtl
#include <cs/gtl/intrusive_default_functionality_inline.h>
#endif // #ifndef CS_GTL_INTRUSIVE_DEFAULT_FUNCTIONALITY_H_INCLUDED | [
"TheStalkerNest@gmail.com"
] | TheStalkerNest@gmail.com |
66ec4589074fa480315a01ec8f11beed87e2ad28 | ba340e016af7a03c403c82d543408d6ca2493795 | /AergiaX/src/graphics/rendering/Shader.cpp | e47b006eeb6c7a3c1174e1afcc9a9d53aac05324 | [] | no_license | filipecn/Direct3D | 3c3a1dc34381d07a8fb31cb1900fd4177c89de39 | 15b5e2fd5f43dd74739a3b80faae1266195da25e | refs/heads/master | 2021-01-16T18:29:17.791159 | 2015-10-03T05:06:12 | 2015-10-03T05:06:12 | 42,746,039 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 913 | cpp | #include "Shader.h"
#include "utils/DebugMessage.hpp"
#include "utils/CheckDxError.hpp"
#define _CRT_SECURE_NO_DEPRECATE
#include <stdio.h>
#pragma warning(disable:4996)
#include "utils\debug\Console.h"
#include <d3dcompiler.h>
#include <cstdio>
namespace aergiaX {
Shader::Shader() {}
Shader::~Shader() {}
void Shader::init(Microsoft::WRL::ComPtr<ID3D11Device> d3dDevice) {
// init vertex shader
CHECK_DX_ERROR(
D3DReadFileToBlob(L"Build/Debug/VertexShader.cso", &vsBlob);
)
CHECK_DX_ERROR(
d3dDevice->CreateVertexShader(vsBlob->GetBufferPointer(),
vsBlob->GetBufferSize(), nullptr, vertexShader.GetAddressOf());
)
// init pixel shader
CHECK_DX_ERROR(
D3DReadFileToBlob(L"Build/Debug/PixelShader.cso", &psBlob);
)
CHECK_DX_ERROR(
d3dDevice->CreatePixelShader(psBlob->GetBufferPointer(),
psBlob->GetBufferSize(), nullptr, pixelShader.GetAddressOf());
)
}
} | [
"fuiripecn@gmail.com"
] | fuiripecn@gmail.com |
aeb49ac3fee6b6c4d8da6f47c77a9bdddc0d236c | e6d4a87dcf98e93bab92faa03f1b16253b728ac9 | /algorithms/cpp/replaceAllDigitswithCharacters/replaceAllDigitswithCharacters.cpp | 5a99275dbded2be1b049fd96fa53cf853eb3c7fb | [] | no_license | MichelleZ/leetcode | b5a58e1822e3f6ef8021b29d9bc9aca3fd3d416f | a390adeeb71e997b3c1a56c479825d4adda07ef9 | refs/heads/main | 2023-03-06T08:16:54.891699 | 2023-02-26T07:17:47 | 2023-02-26T07:17:47 | 326,904,500 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 313 | cpp | // Source: https://leetcode.com/problems/replace-all-digits-with-characters/
// Author: Miao Zhang
// Date: 2021-06-11
class Solution {
public:
string replaceDigits(string s) {
for (int i = 1; i < s.length(); i += 2) {
s[i] = s[i - 1] + s[i] - '0';
}
return s;
}
};
| [
"zhangdaxiaomiao@163.com"
] | zhangdaxiaomiao@163.com |
4fccc4b5425386a072b847a260e92e58654f8c25 | 76adadc595cf0e27f03833036ecb9e7e9387c7d5 | /obstacle_avoidance_gazebo_and_tx2/Navigator_2D_gazebo/Path_Planning_cpp/rrt_test.cpp | 3e82ffec48ebf1326e08e91f891909a23c659927 | [
"Apache-2.0"
] | permissive | hddxds/scripts_from_gi | 2fdef4dc747b6a269a1aa9df871afaca19bbe178 | afb8977c001b860335f9062464e600d9115ea56e | refs/heads/master | 2022-12-08T21:32:42.307594 | 2020-09-07T13:25:40 | 2020-09-07T13:25:40 | 293,529,833 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 833 | cpp | //
// Created by gishr on 19-6-6.
//
#include "rrt_star.h"
int main(int argc, char **argv) {
rrt_star rrt(50);
vector<Vector3f> obstacle = rrt.create_obstacle();
for(auto& ob : obstacle)
{
cout<<ob<<endl;
}
vector<Vector3f> path = rrt.find_path(Vector3f(0, 0, 10), Vector3f(50, 0, 10), obstacle);
rrt.visualize_world();
// vector<Vector3f> line = Bresenham3D(Vector3f(0, 0, 0), Vector3f(5, 6, 7));
// for(auto& p : line){
// cout<<"line p: "<<p[0]<<", "<<p[1]<<", "<<p[2]<<endl;
// }
// vector<double> xs, ys, zs;
// for(auto& p : line){
// cout<<"p: "<<p[0]<<", "<<p[1]<<", "<<p[2]<<endl;
// xs.emplace_back(p[0]);
// ys.emplace_back(p[1]);
// zs.emplace_back(p[2]);
// }
// plt::scatter(xs, ys, zs, 50, "r");
// plt::show();
} | [
"dongshuo@giai.tech"
] | dongshuo@giai.tech |
0bb3646cf106489ce267d7561a169a9d8341c492 | 0a264c136331aa7c926df48061bbeaeae34afec6 | /muduo/muduo/base/Condition.h | 1cd1591cd06529414007f9fb973fa30af49f3979 | [
"BSD-3-Clause"
] | permissive | wenwuge/EasyLib | e28b64238cc5ebd4dafbcfb8f2eabb483cdbe52f | 2151e0246ec971024200c318d61694e23ec7df1f | refs/heads/master | 2022-10-25T15:58:09.725483 | 2022-10-19T07:37:24 | 2022-10-19T07:37:24 | 42,303,639 | 20 | 16 | null | null | null | null | UTF-8 | C++ | false | false | 1,008 | h | // Use of this source code is governed by a BSD-style license
// that can be found in the License file.
//
// Author: Shuo Chen (chenshuo at chenshuo dot com)
#ifndef MUDUO_BASE_CONDITION_H
#define MUDUO_BASE_CONDITION_H
#include <muduo/base/Mutex.h>
#include <boost/noncopyable.hpp>
#include <pthread.h>
namespace muduo
{
class Condition : boost::noncopyable
{
public:
explicit Condition(MutexLock& mutex)
: mutex_(mutex)
{
MCHECK(pthread_cond_init(&pcond_, NULL));
}
~Condition()
{
MCHECK(pthread_cond_destroy(&pcond_));
}
void wait()
{
MutexLock::UnassignGuard ug(mutex_);
MCHECK(pthread_cond_wait(&pcond_, mutex_.getPthreadMutex()));
}
// returns true if time out, false otherwise.
bool waitForSeconds(int seconds);
void notify()
{
MCHECK(pthread_cond_signal(&pcond_));
}
void notifyAll()
{
MCHECK(pthread_cond_broadcast(&pcond_));
}
private:
MutexLock& mutex_;
pthread_cond_t pcond_;
};
}
#endif // MUDUO_BASE_CONDITION_H
| [
"libin3-s@video02v.ops.corp.qihoo.net"
] | libin3-s@video02v.ops.corp.qihoo.net |
ca1592fad894c31ed42cc81e074a2c2136363227 | 6d1ea03becb18944e6dae48db076e519cb8ca328 | /day04/ex03/ClassCharacter.hpp | 77edc7e1b4b50d5ae1a087f73ae8003670336c09 | [] | no_license | ltouret/cpp | d1c4aa2263f71d4d6ed6f8d9d818a5e617ad055a | 979c6837452399e5fa4b0a3e18db3213d42b2132 | refs/heads/master | 2023-08-11T11:20:41.681021 | 2021-09-20T23:33:03 | 2021-09-20T23:33:03 | 339,862,544 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,478 | hpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ClassCharacter.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ltouret <ltouret@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/06/20 22:26:07 by ltouret #+# #+# */
/* Updated: 2021/08/03 18:18:56 by ltouret ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef CLASSCHARACTER_HPP
# define CLASSCHARACTER_HPP
# include "ClassAMateria.hpp"
# include "ClassICharacter.hpp"
class Character : public ICharacter
{
private:
AMateria *inventory[4];
std::string name;
public:
Character(void);
Character(std::string const &name);
Character(Character const &to_cpy);
virtual ~Character(void);
virtual Character &operator=(Character const &to_cpy);
virtual std::string const &getName(void) const;
virtual void equip(AMateria *m);
virtual void unequip(int idx);
virtual void use(int idx, ICharacter &target);
};
#endif
| [
"jiloh55@gmail.com"
] | jiloh55@gmail.com |
529a8ecba99ef67a9a88acc673a7b9dd7b9c1149 | 43ae0d65a9acbfbfe8c36e158e1a590f6db02ad5 | /jni/WiEngine/impl/common/wyObject.cpp | a72b34e5015f21eea84fc2c27f774fe5d66394c8 | [
"MIT"
] | permissive | identy/WiEngine | bfd0f5b95f0be72274e1dfb341d732d4a571993c | 2fb4276f558a5b1660d940b982c591cb7c73aec8 | refs/heads/master | 2020-12-25T01:27:01.452216 | 2013-04-22T03:22:24 | 2013-04-22T03:22:24 | 9,659,254 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,624 | cpp | /*
* Copyright (c) 2010 WiYun Inc.
* Author: luma(stubma@gmail.com)
*
* For all entities this program is free software; you can redistribute
* it and/or modify it under the terms of the 'WiEngine' license with
* the additional provision that 'WiEngine' must be credited in a manner
* that can be be observed by end users, for example, in the credits or during
* start up. (please find WiEngine logo in sdk's logo folder)
*
* 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 "wyObject.h"
#include <stdlib.h>
#include "wyHashSet.h"
#include "wyLog.h"
#include <pthread.h>
#include "wyTargetSelector.h"
#include <typeinfo>
#include "wyTextureManager.h"
#include "wyEventDispatcher.h"
#include "wyAutoReleasePool.h"
#include "wyUtils.h"
#include <string>
using namespace std;
extern pthread_mutex_t gMutex;
#if ANDROID
#include "wyUtils_android.h"
extern jmethodID g_mid_BaseWYObject_onTargetSelectorInvoked;
#endif
// release pools
static wyArray* sAutoReleasePool = NULL;
static wyArray* sLazyReleasePool = NULL;
// only needed when memory tracking is enabled
#ifdef WY_CFLAG_MEMORY_TRACKING
static wyArray* sLeakPool = NULL;
#endif
wyObject::wyObject() :
m_retainCount(1),
#if ANDROID
m_jTSConnector(NULL),
#endif
m_name(NULL) {
#ifdef WY_CFLAG_MEMORY_TRACKING
if(sLeakPool != NULL)
wyArrayPush(sLeakPool, this);
#endif
}
wyObject::~wyObject() {
#ifdef WY_CFLAG_DESTROY_TRACE
const char* name = getClassName();
if(name != NULL)
LOGD("Destroyed: %s, %d", name, this);
#endif
#ifdef WY_CFLAG_MEMORY_TRACKING
if(sLeakPool != NULL)
wyArrayDeleteObj(sLeakPool, this, NULL, NULL);
#endif
#if ANDROID
if(m_jTSConnector) {
JNIEnv* env = wyUtils::getJNIEnv();
env->DeleteGlobalRef(m_jTSConnector);
m_jTSConnector = NULL;
}
#endif
if(m_name)
wyFree((void*)m_name);
}
const char* wyObject::getClassName() {
char* name = (char*)typeid(*this).name();
while('0' <= *name && *name <= '9')
name++;
return (const char*)name;
}
wyObject* wyObject::retain() {
m_retainCount++;
#ifdef WY_CFLAG_RETAIN_TRACE
const char* name = getClassName();
if(name != NULL)
LOGD("Retained: %s, %d, %d", name, this, m_retainCount);
#endif
return this;
}
void wyObject::javaRelease() {
// we need find the object in lazy release pool, if found, decrease retain count
int index = wyArrayIndexOf(sLazyReleasePool, this, NULL, NULL);
if(index != -1) {
wyArrayDeleteIndex(sLazyReleasePool, index);
autoRelease();
}
}
void wyObject::release() {
if(m_retainCount <= 0)
return;
m_retainCount--;
#ifdef WY_CFLAG_RELEASE_TRACE
const char* name = getClassName();
if(name != NULL)
LOGD("Released: %s, %d, %d", name, this, m_retainCount);
#endif
if(m_retainCount <= 0)
WYDELETE(this);
}
wyObject* wyObject::lazyRelease() {
if(sLazyReleasePool != NULL) {
wyArrayPush(sLazyReleasePool, this);
}
return this;
}
wyObject* wyObject::autoRelease() {
if(isGLThread()) {
if(sAutoReleasePool != NULL)
wyArrayPush(sAutoReleasePool, this);
} else {
wyAutoReleasePool::addToPool(this);
}
return this;
}
int wyObject::getRetainCount() {
return m_retainCount;
}
void wyObject::onTargetSelectorInvoked(wyTargetSelector* ts) {
#if ANDROID
if(m_jTSConnector) {
JNIEnv* env = wyUtils::getJNIEnv();
env->CallVoidMethod(m_jTSConnector, g_mid_BaseWYObject_onTargetSelectorInvoked, ts->getId(), ts->getDelta());
}
#endif
}
void wyObject::setName(const char* name) {
if(m_name)
wyFree((void*)m_name);
m_name = wyUtils::copy(name);
}
#if ANDROID
void wyObject::setJavaTSConnector(jobject c) {
JNIEnv* env = wyUtils::getJNIEnv();
if(m_jTSConnector) {
env->DeleteGlobalRef(m_jTSConnector);
m_jTSConnector = NULL;
}
if(c) {
m_jTSConnector = env->NewGlobalRef(c);
}
}
#endif // #if ANDROID
#ifdef __cplusplus
extern "C" {
#endif
wyObject* wyObjectRetain(wyObject* obj) {
if(obj == NULL)
return NULL;
obj->retain();
return obj;
}
wyObject* wyObjectAutoRelease(wyObject* obj) {
if(obj == NULL)
return NULL;
obj->autoRelease();
return obj;
}
wyObject* wyObjectLazyRelease(wyObject* obj) {
if(obj == NULL)
return NULL;
obj->lazyRelease();
return obj;
}
void wyObjectRelease(wyObject* obj) {
if(obj != NULL) {
obj->release();
}
}
static bool releaseObject(wyArray* arr, void* ptr, int index, void* data) {
wyObjectRelease((wyObject*)ptr);
return true;
}
#ifdef WY_CFLAG_MEMORY_TRACKING
static bool outputLeak(wyArray* arr, void* ptr, int index, void* data) {
wyObject* obj = (wyObject*)ptr;
LOGD("unreleased object: %s, addr: %x, retain count: %d", obj->getClassName(), obj, obj->getRetainCount());
return true;
}
#endif
void wyInitAutoReleasePool() {
if(sAutoReleasePool == NULL) {
sAutoReleasePool = wyArrayNew(100);
}
if(sLazyReleasePool == NULL) {
sLazyReleasePool = wyArrayNew(100);
}
// for tracing leak
#ifdef WY_CFLAG_MEMORY_TRACKING
if(sLeakPool == NULL) {
sLeakPool = wyArrayNew(100);
}
#endif
}
void wyClearLazyReleasePool() {
if(sLazyReleasePool != NULL && sLazyReleasePool->num > 0) {
// clear pool
wyArrayEach(sLazyReleasePool, releaseObject, NULL);
wyArrayClear(sLazyReleasePool);
}
}
void wyClearAutoReleasePool() {
if(sAutoReleasePool != NULL && sAutoReleasePool->num > 0) {
// clear pool
wyArrayEach(sAutoReleasePool, releaseObject, NULL);
wyArrayClear(sAutoReleasePool);
}
}
void wyDestroyAutoReleasePool() {
if(sAutoReleasePool != NULL) {
// clear auto release pool
wyArrayEach(sAutoReleasePool, releaseObject, NULL);
wyArrayClear(sAutoReleasePool);
wyArrayDestroy(sAutoReleasePool);
sAutoReleasePool = NULL;
}
wyClearLazyReleasePool();
}
#ifdef WY_CFLAG_MEMORY_TRACKING
void wyOutputLeakPool() {
if(sLeakPool != NULL) {
if(sLeakPool->num > 0)
LOGD("leak pool count: %d", sLeakPool->num);
wyArrayEach(sLeakPool, outputLeak, NULL);
}
}
void wyClearLeakPool() {
if(sLeakPool != NULL) {
wyArrayClear(sLeakPool);
wyArrayDestroy(sLeakPool);
sLeakPool = NULL;
}
}
#endif
void wyOutputLazyPool() {
LOGD("+++ objects still not autoreleased +++");
for(int i = 0; i < sLazyReleasePool->num; i++) {
wyObject* obj = (wyObject*)wyArrayGet(sLazyReleasePool, i);
LOGD("%s", obj->getClassName());
}
LOGD("--- objects still not autoreleased ---");
}
#ifdef __cplusplus
}
#endif
| [
"stubma@gmail.com"
] | stubma@gmail.com |
311c8cb7e9098fcfc1554a563b48c4ef03a27529 | 07306d96ba61d744cb54293d75ed2e9a09228916 | /External/NaturalMotion/morpheme/utils/gameManagement/include/GameManagement/PhysX3/GameCharacterManagerPhysX3Threaded.h | 602e69a1cba81e0129cf26381cc3a70e4a7b87ef | [] | no_license | D34Dspy/warz-client | e57783a7c8adab1654f347f389c1dace35b81158 | 5262ea65e0baaf3f37ffaede5f41c9b7eafee7c1 | refs/heads/master | 2023-03-17T00:56:46.602407 | 2015-12-20T16:43:00 | 2015-12-20T16:43:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,189 | h | // Copyright (c) 2012 NaturalMotion. All Rights Reserved.
// Not to be copied, adapted, modified, used, distributed, sold,
// licensed or commercially exploited in any manner without the
// written consent of NaturalMotion.
//
// All non public elements of this software are the confidential
// information of NaturalMotion and may not be disclosed to any
// person nor used for any purpose not expressly approved by
// NaturalMotion in writing.
//----------------------------------------------------------------------------------------------------------------------
#ifdef _MSC_VER
#pragma once
#endif
#ifndef GAME_CHARACTER_MANAGER_PHYSX3_THREADED_H
#define GAME_CHARACTER_MANAGER_PHYSX3_THREADED_H
//----------------------------------------------------------------------------------------------------------------------
#include "GameManagement/GameThreadScheduler.h"
#include "GameManagement/PhysX3/GameCharacterPhysX3.h"
#include "GameManagement/PhysX3/GameCharacterManagerPhysX3.h"
//----------------------------------------------------------------------------------------------------------------------
namespace Game
{
//----------------------------------------------------------------------------------------------------------------------
/// \class MorphemeTaskUpdateToPreCharacterController
//----------------------------------------------------------------------------------------------------------------------
class MorphemeTaskPhysX3UpdatePreCharacterController : public MorphemeBucketTask
{
public:
void run() NM_OVERRIDE;
};
//----------------------------------------------------------------------------------------------------------------------
/// \class MorphemeTaskPhysX3UpdatePostCharacterController
//----------------------------------------------------------------------------------------------------------------------
class MorphemeTaskPhysX3UpdatePostCharacterController : public MorphemeBucketTask
{
public:
void run() NM_OVERRIDE;
};
//----------------------------------------------------------------------------------------------------------------------
/// \class MorphemeTaskUpdatePostPhysics
//----------------------------------------------------------------------------------------------------------------------
class MorphemeTaskPhysX3UpdateFinalise : public MorphemeBucketTask
{
public:
void run() NM_OVERRIDE;
};
//----------------------------------------------------------------------------------------------------------------------
/// \class MorphemeBucketPhysX3
//----------------------------------------------------------------------------------------------------------------------
class MorphemeBucketPhysX3 : public MorphemeBucket
{
public:
MorphemeBucketPhysX3() :
MorphemeBucket(NULL)
{
m_preCharacterControllerTask.setBucket(this);
m_postCharacterControllerTask.setBucket(this);
m_finaliseTask.setBucket(this);
}
MorphemeTaskPhysX3UpdatePreCharacterController* getPreCharacterControllerTask()
{
return &m_preCharacterControllerTask;
}
MorphemeTaskPhysX3UpdatePostCharacterController* getPostCharacterControllerTask()
{
return &m_postCharacterControllerTask;
}
MorphemeTaskPhysX3UpdateFinalise* getFinaliseTask()
{
return &m_finaliseTask;
}
protected:
MorphemeTaskPhysX3UpdatePreCharacterController m_preCharacterControllerTask;
MorphemeTaskPhysX3UpdatePostCharacterController m_postCharacterControllerTask;
MorphemeTaskPhysX3UpdateFinalise m_finaliseTask;
};
//----------------------------------------------------------------------------------------------------------------------
/// \class CharacterManagerPhysX3Threaded
/// \brief Provides a simplified interface to managing and updating a set of PhysX3 morpheme characters
/// across multiple threads.
//----------------------------------------------------------------------------------------------------------------------
class CharacterManagerPhysX3Threaded : public CharacterManagerPhysX3
{
public:
CharacterManagerPhysX3Threaded();
virtual ~CharacterManagerPhysX3Threaded();
/// \brief Allocate required memory and initialise.
virtual void init() NM_OVERRIDE;
void init(uint32_t numBuckets);
/// \brief Free allocated memory and shutdown.
virtual void term() NM_OVERRIDE;
/// \brief Create a CharacterPhysX3 and register it with this manager.
///
/// Characters that are created via the Manager are automatically registered with the manager
/// and the memory management of the Character remains the responsibility of the Manager.
/// The manager must already have been attached to a PhysX scene.
CharacterPhysX3* createCharacterMultiThreaded(
CharacterDef* characterDef, ///< Must have been registered with this manager.
uint32_t bucketIndex, ///< Which bucket to put this character in to.
MR::PhysicsRigPhysX3::Type physicsRigType = MR::PhysicsRigPhysX3::TYPE_ARTICULATED, ///< The type of physics rig to create,
///< MR::PhysicsRigPhysX3::TYPE_ARTICULATED or
///< MR::PhysicsRigPhysX3::TYPE_JOINTED.
physx::PxMaterial* characterControllerMaterial = NULL, ///< The material to use for the character controller we create
///< (a default will be created if one is not provided).
const NMP::Vector3& initialPosition = NMP::Vector3::InitZero,
const NMP::Quat& initialOrientation = NMP::Quat::kIdentity,
MR::AnimSetIndex initialAnimSetIndex = 0,
const char* name = "");
/// \brief How many buckets does this manager have.
uint32_t getNumBuckets() { return ((uint32_t) m_bucketsVector.size()); }
/// \brief
MorphemeBucketPhysX3* getBucket(uint32_t bucketIndex);
/// \brief Starts the specified number of threads. Each thread starts to poll the ThreadScheduler for tasks to process.
void startThreadScheduler(uint32_t numThreads);
/// \brief Stops the threads that the ThreadScheduler has active.
void stopThreadScheduler();
/// \brief Help process any remaining tasks on the queue then when it is empty
/// wait for all threads to finish any remaining task execution.
void waitForAllScheduledTasks();
/// \brief
void registerCharacter(CharacterPhysX3* character, uint32_t bucketIndex);
/// \brief
void unregisterCharacter(CharacterPhysX3* character);
/// \brief
void destroyCharacter(CharacterPhysX3* character);
//----------------------------
// Update functions.
//----------------------------
/// \brief
void schedulePreCharacterControllerTasks(float deltaTime);
/// \brief
void schedulePostCharacterControllerTasks(float deltaTime);
/// \brief
void scheduleFinaliseTasks(float deltaTime);
/// \brief
void resetBucketTemporaryMemoryAllocators();
protected:
/// \brief Initialise buckets to support multi-threaded update of characters.
void initBucketsVector(uint32_t numBuckets);
/// \brief Destroy buckets.
void termBucketsVector();
/// A vector of buckets, each one containing a set of characters that share the same temporary memory allocator.
/// Each bucket can be updated independently on a separate thread.
typedef std::vector<MorphemeBucketPhysX3*> BucketsVectorPhysX3;
BucketsVectorPhysX3 m_bucketsVector;
/// Simple scheduler to load-balance the update of networks on several threads.
ThreadScheduler m_threadScheduler;
/// Records which bucket each character has been put in to.
/// Each entry corresponds to an entry in m_characterList.
typedef std::list<uint32_t> BucketIndexList;
BucketIndexList m_characterBucketIndexList;
};
} // namespace Game
//----------------------------------------------------------------------------------------------------------------------
#endif // GAME_CHARACTER_MANAGER_PHYSX3_THREADED_H
//----------------------------------------------------------------------------------------------------------------------
| [
"hasan@openkod.com"
] | hasan@openkod.com |
749bdbacd1dc7341396e2f370224db2d9d422890 | ce9777fe1253d5db769903b7a0afc87abec5f7ed | /practice/p1/allocator.h | 9d468069eba5971c22ca90d7295da2669e5d1d4e | [] | no_license | Zhiganoff/sfera-mail-mt | 8c1dee1f2fca63f6fccd2b0d9f6ee13362e18a80 | e1bac60676bb387676af0381cdcbc9d448902c31 | refs/heads/master | 2021-01-12T21:09:38.826894 | 2017-01-18T01:39:43 | 2017-01-18T01:39:43 | 68,546,100 | 1 | 0 | null | 2016-09-18T20:40:52 | 2016-09-18T20:40:52 | null | UTF-8 | C++ | false | false | 1,923 | h | #include <stdexcept>
#include <string>
#include <list>
#include <vector>
#include <cstring>
#include <iostream>
enum class AllocErrorType {
InvalidFree,
NoMemory,
};
class AllocError: std::runtime_error {
private:
AllocErrorType type;
public:
AllocError(AllocErrorType _type, std::string message):
runtime_error(message),
type(_type)
{}
AllocErrorType getType() const { return type; }
};
class Allocator;
class Pointer {
public:
int idx;
size_t size_;
static std::vector<void*> pointers;
friend Allocator;
Pointer(void *p = nullptr, size_t new_size = 0): size_(new_size) {
pointers.push_back(p);
idx = pointers.size() - 1;
}
void *get() const { return pointers[idx]; }
void *set(void *p) { pointers[idx] = p; }
};
struct memBlock {
void *pointer_;
size_t size_;
size_t used_;
int idx_;
memBlock(void *pointer, size_t size, size_t used, int idx): pointer_(pointer),
size_(size),
used_(used),
idx_(idx) {}
};
class Allocator {
void *base_;
size_t size_;
std::list<memBlock> blocks;
public:
Allocator(void *base, size_t size): base_(base), size_(size) {}
Pointer alloc(size_t N);
void realloc(Pointer &p, size_t N);
void free(Pointer &p);
void defrag();
void dump() {
std::list< memBlock >::iterator it = blocks.begin();
std::cout << std::endl;
while (it != blocks.cend()) {
std::cout << "pointer: " << (*it).pointer_ << " idx: " << it->idx_ << " size: " << (*it).size_ << " used: " << (*it).used_ << std::endl;
it++;
}
}
void moveMem(void * destptr, void * srcptr, size_t num);
};
| [
"zhiganoff.rd@yandex.ru"
] | zhiganoff.rd@yandex.ru |
ef97d4aafacaa4c3b06777d7cbe583a6ac0f1561 | dff5780f161834db353ee91466d04c08cd6b2631 | /Kojima_lib/RegressEquation.h | 52adbf89cb31d0688a2d0b9408c5401f5bcc60d9 | [] | no_license | kojima04/Kojima_lib | bcfe4218f1ba67a0f785576718c60bd32627f671 | de5e1aebb69c53366cf8f14b3aeabbbc2b2328ab | refs/heads/master | 2016-09-02T22:03:19.871835 | 2015-09-08T03:56:48 | 2015-09-08T03:56:48 | 42,042,912 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 595 | h | #pragma once
class CRegressEquation3
{
public:
CRegressEquation3();
~CRegressEquation3();
void SetUpNode(int index);
void SetNodePara(int index,D3DXVECTOR3 * vec3)
{
m_Node[index] = *vec3;
}
void SetRegressEquation();
float B0,B1,B2;
D3DXVECTOR3 * m_Node;
//D3DXVECTOR3 m_Node[10];
int m_NodeNum;
float GetRegressSolution(float x,float y);
float SumPrdctDeviation(int i,int j);
float SumSqrDeviation(int i);
float m_VL_SumPrdctDv[3][3];
float m_VL_SumSqrDv[3];
float m_VL_Ave[3];
float m_VL_Sum[3];
float m_VL_SumSqr[3];
float m_VL_SumPrdct[3][3];
void SetUpVL();
}; | [
"kojimay04@gmail.com"
] | kojimay04@gmail.com |
22356c8d074acd7aa9a37f00c109fb53e55ea64b | baae2eda20f6777f93d155fcc10b8ebd296aba41 | /code/particle/effects/CompositeEffect.h | 1c1473087497c9ecc8fc688f3eaf8303268b0150 | [] | no_license | rodrigobmg/fs2open.github.com | 62ec24927ffacbc2126c9ab6445b8ed08e748f56 | ae17e3f4b7f956cff92c5d2dc2c46f73b142e193 | refs/heads/master | 2020-03-10T02:28:54.759459 | 2018-04-09T15:08:27 | 2018-04-09T15:08:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 847 | h | #ifndef COMPOSIE_EFFECT_H
#define COMPOSIE_EFFECT_H
#pragma once
#include "globalincs/pstypes.h"
#include "particle/ParticleEffect.h"
#include "particle/ParticleManager.h"
#include "utils/RandomRange.h"
namespace particle {
namespace effects {
/**
* @ingroup particleEffects
*/
class CompositeEffect: public ParticleEffect {
private:
SCP_vector<ParticleEffectPtr> m_childEffects;
public:
explicit CompositeEffect(const SCP_string& name);
virtual bool processSource(const ParticleSource* source) override;
virtual void parseValues(bool nocreate) override;
virtual void pageIn() override;
virtual EffectType getType() const override { return EffectType::Composite; }
const SCP_vector<ParticleEffectPtr>& getEffects() const { return m_childEffects; }
void addEffect(ParticleEffectPtr effect);
};
}
}
#endif // COMPOSIE_EFFECT_H
| [
"asarium@gmail.com"
] | asarium@gmail.com |
3fdff9ae23d6180b8cf378120c7e2075201f477d | c28655701183c1af2ee205b4077595aa6a0f6e68 | /codeforces/busiTrip2.cpp | adb705554fae863d56ef694f1c2746805a6edaf6 | [] | no_license | Divan009/CodingChallenges | a22f8b66ffe8def475a6bb1f31b0000c7af8184b | 082de264444a47ef4eb4bc5576f4786d3941a508 | refs/heads/master | 2021-07-10T20:04:23.607456 | 2020-07-09T05:50:37 | 2020-07-09T05:50:37 | 168,947,856 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 498 | cpp | #include <iostream>
#include <algorithm>
using namespace std;
int main(){
int k, a[12], total=0,sum=0, counter=0;
cin >> k;
for(size_t i=0; i<12; ++i){
cin >> a[i];
total+=a[i];
}
int n = 12; //sizeof(a)/sizeof(a[0])
if(k==0){
cout << 0;
return 0;
}
if(total < k){
cout << -1;
}else{
sort(a, a+n);
for(int i=n-1; i >= 0; --i){
counter++;
sum+=a[i];
if(sum >= k){
cout << counter;
break;
}
}
}
return 0;
} | [
"noreply@github.com"
] | Divan009.noreply@github.com |
6752a721cd580f92ea9ca8fc5c5c3adfcfc78959 | b7cb693df78d0b79ef52ee9ed5e31abe9cfafbac | /C++Tut/SizeOf_38.cpp | 87bcd477399e4b8c5a786d1412410641190c5e1c | [
"MIT"
] | permissive | dedhun/Ded_CP | 43dbda6a5448772be2ef002bb51577306be284ac | 593abfbf703199f748633600041c251c39d76cfe | refs/heads/master | 2022-11-07T04:41:23.275173 | 2020-06-25T00:33:32 | 2020-06-25T00:33:32 | 274,648,638 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 526 | cpp | //
// Created by Jihun on 6/24/2020.
//
#include <iostream>
using namespace std;
int main() {
//sizeof (size of variable,array, etc) (how many bytes it take)
//char c;
//int i;
//double d; // double is more precise (The more precise a value is, the more memory it needs)
//cout << sizeof(d) << endl;
// 10 * 8 bytes of memory
double jihun[10];
cout << sizeof(jihun) << endl;
// Number of elements in an array
cout << sizeof(jihun) / sizeof(jihun[0]) << endl;
} | [
"noreply@github.com"
] | dedhun.noreply@github.com |
2ec9199112a6d0fcf1713d923e914be49e3f9a03 | 9a784fdd879c26984ec996d39ba1bc277e54073b | /s814/dataDump/3200000.0_A6.5.cp | 9e96ab49d6cabc369732576b41b36c46244de7ac | [] | no_license | ChrisLangel/Xfoil_PyWrap | bf46eaaf27005d3b6d87e9e1bbeb53c60e6b98c5 | b3f686d780a16af2bb577c5d104559b501a1df39 | refs/heads/master | 2020-04-06T03:42:15.280513 | 2017-01-09T20:43:31 | 2017-01-09T20:43:31 | 42,878,655 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 7,199 | cp | # x Cp
1.00000 0.14413
0.99901 0.14299
0.99796 0.14179
0.99684 0.14047
0.99565 0.13903
0.99439 0.13746
0.99304 0.13570
0.99161 0.13376
0.99008 0.13161
0.98846 0.12921
0.98673 0.12652
0.98489 0.12355
0.98294 0.12022
0.98085 0.11647
0.97864 0.11229
0.97628 0.10761
0.97377 0.10238
0.97109 0.09649
0.96825 0.08989
0.96521 0.08252
0.96199 0.07431
0.95855 0.06503
0.95489 0.05484
0.95099 0.04336
0.94683 0.03075
0.94240 0.01677
0.93769 0.00143
0.93266 -0.01534
0.92730 -0.03358
0.92159 -0.05311
0.91550 -0.07406
0.90901 -0.09619
0.90209 -0.11947
0.89471 -0.14355
0.88684 -0.16830
0.87845 -0.19329
0.86950 -0.21852
0.85996 -0.24361
0.84979 -0.26821
0.83960 -0.29101
0.82939 -0.31207
0.81917 -0.33143
0.80893 -0.34969
0.79869 -0.36674
0.78843 -0.38290
0.77817 -0.39849
0.76789 -0.41359
0.75762 -0.42816
0.74733 -0.44294
0.73704 -0.45761
0.72674 -0.47251
0.71644 -0.48763
0.70614 -0.50318
0.69583 -0.51937
0.68552 -0.53599
0.67521 -0.55339
0.66489 -0.57157
0.65457 -0.59039
0.64425 -0.61027
0.63392 -0.63065
0.62359 -0.65235
0.61326 -0.67472
0.60292 -0.69841
0.59258 -0.72299
0.58224 -0.74802
0.57189 -0.77478
0.56153 -0.80214
0.55117 -0.83019
0.54081 -0.85920
0.53044 -0.88986
0.52006 -0.92030
0.50968 -0.95141
0.49929 -0.98424
0.48889 -1.01636
0.47849 -1.05079
0.46808 -1.08355
0.45766 -1.11874
0.44723 -1.15146
0.43680 -1.18708
0.42636 -1.22101
0.41592 -1.25569
0.40547 -1.28967
0.39502 -1.32223
0.38456 -1.35701
0.37410 -1.38780
0.36364 -1.42093
0.35317 -1.45150
0.34271 -1.48155
0.33225 -1.51015
0.32179 -1.53857
0.31134 -1.56275
0.30089 -1.59023
0.29045 -1.61370
0.28002 -1.63526
0.26960 -1.65534
0.25920 -1.67651
0.24881 -1.69366
0.23844 -1.70957
0.22809 -1.72311
0.21776 -1.73883
0.20746 -1.74813
0.19719 -1.76129
0.18695 -1.77051
0.17674 -1.77501
0.16657 -1.78554
0.15644 -1.78935
0.14636 -1.79706
0.13632 -1.79589
0.12634 -1.79939
0.11697 -1.79806
0.10819 -1.80372
0.09996 -1.84392
0.09225 -1.86879
0.08503 -1.87544
0.07826 -1.88192
0.07193 -1.89679
0.06600 -1.90976
0.06045 -1.92867
0.05527 -1.95046
0.05042 -1.96810
0.04590 -1.98969
0.04168 -2.02229
0.03774 -2.04593
0.03408 -2.06961
0.03067 -2.10619
0.02750 -2.13464
0.02457 -2.16841
0.02185 -2.20402
0.01933 -2.23610
0.01702 -2.26993
0.01489 -2.30237
0.01294 -2.33759
0.01115 -2.35586
0.00953 -2.38582
0.00807 -2.40622
0.00675 -2.40325
0.00557 -2.41797
0.00453 -2.41320
0.00361 -2.37539
0.00282 -2.33903
0.00215 -2.28040
0.00158 -2.20506
0.00111 -2.12073
0.00074 -2.01383
0.00045 -1.86735
0.00024 -1.77947
0.00010 -1.57156
0.00002 -1.48929
0.00000 -1.30031
0.00002 -1.14742
0.00009 -0.96084
0.00021 -0.79396
0.00039 -0.60670
0.00063 -0.41190
0.00095 -0.25343
0.00133 -0.07912
0.00180 0.07183
0.00236 0.21462
0.00300 0.35889
0.00374 0.46949
0.00458 0.56997
0.00553 0.66392
0.00659 0.73701
0.00778 0.80953
0.00908 0.85786
0.01053 0.90994
0.01211 0.94077
0.01384 0.97160
0.01572 0.98910
0.01778 1.00250
0.02001 1.00920
0.02242 1.00987
0.02504 1.00495
0.02786 0.99628
0.03091 0.98101
0.03419 0.96360
0.03773 0.94003
0.04154 0.91345
0.04564 0.88302
0.05004 0.84878
0.05478 0.81061
0.05987 0.76742
0.06534 0.72077
0.07121 0.67036
0.07752 0.61242
0.08430 0.55458
0.09159 0.48774
0.09942 0.41495
0.10784 0.33990
0.11689 0.25469
0.12662 0.16735
0.13649 0.07954
0.14649 -0.00932
0.15660 -0.09139
0.16683 -0.17179
0.17716 -0.24695
0.18758 -0.31588
0.19807 -0.37226
0.20863 -0.41925
0.21923 -0.46100
0.22986 -0.48245
0.24051 -0.49681
0.25115 -0.50070
0.26179 -0.49316
0.27240 -0.47886
0.28299 -0.45381
0.29354 -0.42711
0.30405 -0.39868
0.31451 -0.37098
0.32493 -0.34866
0.33531 -0.31266
0.34566 -0.21335
0.35596 -0.17504
0.36623 -0.14194
0.37648 -0.10795
0.38670 -0.07519
0.39689 -0.04320
0.40708 -0.01139
0.41724 0.01777
0.42740 0.04615
0.43756 0.07268
0.44771 0.09690
0.45786 0.12020
0.46802 0.14218
0.47818 0.16204
0.48834 0.18101
0.49852 0.19817
0.50870 0.21478
0.51890 0.22962
0.52910 0.24423
0.53932 0.25700
0.54955 0.26977
0.55980 0.28100
0.57005 0.29215
0.58032 0.30225
0.59061 0.31211
0.60090 0.32113
0.61121 0.33000
0.62154 0.33833
0.63187 0.34623
0.64222 0.35426
0.65258 0.36179
0.66295 0.36901
0.67334 0.37628
0.68373 0.38339
0.69414 0.39045
0.70457 0.39720
0.71500 0.40402
0.72545 0.41104
0.73590 0.41775
0.74638 0.42442
0.75686 0.43117
0.76736 0.43771
0.77787 0.44420
0.78839 0.45062
0.79893 0.45676
0.80948 0.46267
0.82005 0.46822
0.83063 0.47347
0.84123 0.47816
0.85184 0.48226
0.86181 0.48563
0.87118 0.48787
0.87999 0.48931
0.88827 0.49006
0.89605 0.48989
0.90335 0.48907
0.91021 0.48730
0.91665 0.48525
0.92269 0.48221
0.92837 0.47877
0.93369 0.47465
0.93869 0.47003
0.94337 0.46482
0.94777 0.45935
0.95190 0.45324
0.95577 0.44676
0.95940 0.43977
0.96280 0.43246
0.96599 0.42495
0.96899 0.41680
0.97180 0.40825
0.97443 0.39955
0.97690 0.39048
0.97922 0.38094
0.98140 0.37094
0.98344 0.36082
0.98535 0.35003
0.98715 0.33917
0.98883 0.32750
0.99041 0.31523
0.99189 0.30225
0.99328 0.28842
0.99459 0.27301
0.99581 0.25642
0.99696 0.23732
0.99804 0.21427
0.99905 0.18636
1.00000 0.14413
| [
"cmlangel@ucdavis.edu"
] | cmlangel@ucdavis.edu |
2213920f29e02cceb3efe43ac42140baf3274329 | 7905d0f065d56d5e4c7c73b83d4c4a11060b2f2f | /Sample2AxesControl_RTX/cpp/kinematics.cpp | 89bb1dbe8ab15153e6cf2afa72ed98257f1341f3 | [] | no_license | bxyrsxo/MaSaG | 914e6a2385e31e6a25d4769cf6552d62a0f26fe2 | bb4feba8d988d77b89a7c40c1cb93b8d216320c2 | refs/heads/master | 2021-01-22T05:15:16.480979 | 2018-03-23T23:33:31 | 2018-03-23T23:33:31 | 81,640,682 | 0 | 0 | null | 2017-02-11T08:29:23 | 2017-02-11T08:29:23 | null | UTF-8 | C++ | false | false | 7,892 | cpp | #include "kinematics.h"
#define SINGULARITY 0.49999
Transform kinematics::ForwardKinematics(Vectornf& q)
{
int i;
Transform T = transformDH(dhParams[0], q(1));
for (i = 1; i < 6; i++)
T = T * transformDH(dhParams[i], q(i+1));
return T;
}
Transform kinematics::FK_MaSaG(Vectornf& q)
{
Transform t;
float s1 = sin(q(1));
float s2 = sin(q(2));
float s3 = sin(q(3));
float s4 = sin(q(4));
float s5 = sin(q(5));
float s6 = sin(q(6));
float c1 = cos(q(1));
float c2 = cos(q(2));
float c3 = cos(q(3));
float c4 = cos(q(4));
float c5 = cos(q(5));
float c6 = cos(q(6));
float c123 = c1*c2*c3;
float s13 = s1*s3;
float c13 = c1*c3;
float c12s3 = c1*c2*s3;
float c13s2 = c1*c3*s2;
float c23s1 = c2*c3*s1;
float c1s24 = c1*s2*s4;
float c34s2 = c3*c4*s2;
float c2s4 = c2*s4;
float c24 = c2*c4;
float c3s1 = c3*s1;
float s124 = s1*s2*s4;
float s235 = s2*s3*s5;
float c3s24 = c3*s2*s4;
float c1s3 = c1*s3;
float s12 = s1*s2;
float c14s2 = c1*c4*s2;
t.matrix()(0, 0) = -c6*(c5*(c4*(s13 - c123) + c1s24) - s5*(c3s1 + c12s3)) - s6*(s4*(s13 - c123) - c14s2);
t.matrix()(0, 1) = s6*(c5*(c4*(s13 - c123) + c1s24) - s5*(c3s1 + c12s3)) - c6*(s4*(s13 - c123) - c14s2);
t.matrix()(0, 2) = -s5*(c4*(s13 - c123) + c1s24) - c5*(c3s1 + c12s3);
t.matrix()(0, 3) = 0.3575f*c1*s2 - 0.14f*c6*(c5*(c4*(s13 - c123) + c1s24) - s5*(c3s1 + c12s3)) - 0.015f*s13 + 0.015f*c4*(s13 - c123) - 0.2855f*s4*(s13 - c123) - 0.14f*s6*(s4*(s13 - c123) - c14s2) + 0.015f*c1s24 + 0.015f*c123 + 0.2855f*c14s2;
t.matrix()(1, 0) = s6*(s4*(c1s3 + c23s1) + c4*s12) + c6*(c5*(c4*(c1s3 + c23s1) - s124) - s5*(c13 - c2*s13));
t.matrix()(1, 1) = c6*(s4*(c1s3 + c23s1) + c4*s12) - s6*(c5*(c4*(c1s3 + c23s1) - s124) - s5*(c13 - c2*s13));
t.matrix()(1, 2) = s5*(c4*(c1s3 + c23s1) - s124) + c5*(c13 - c2*s13);
t.matrix()(1, 3) = 0.015f*c1s3 + 0.3575f*s12 + 0.14f*s6*(s4*(c1s3 + c23s1) + c4*s12) - 0.015f*c4*(c1s3 + c23s1) + 0.2855f*s4*(c1s3 + c23s1) + 0.14f*c6*(c5*(c4*(c1s3 + c23s1) - s124) - s5*(c13 - c2*s13)) + 0.2855f*c4*s12 + 0.015f*s124 + 0.015f*c23s1;
t.matrix()(2, 0) = c6*(c5*(c2s4 + c34s2) + s235) - s6*(c24 - c3s24);
t.matrix()(2, 1) = -s6*(c5*(c2s4 + c34s2) + s235) - c6*(c24 - c3s24);
t.matrix()(2, 2) = s5*(c2s4 + c34s2) - c5*s2*s3;
t.matrix()(2, 3) = 0.015f*c3*s2 - 0.2855f*c24 - 0.3575f*c2 - 0.015f*c2s4 + 0.14f*c6*(c5*(c2s4 + c34s2) + s235) - 0.14f*s6*(c24 - c3s24) + 0.2855f*c3s24 - 0.015f*c34s2;
return t;
}
void kinematics::updateJacobian(Vectornf& q, Matrix6nf& J)
{
float s1 = sin(q(1));
float c1 = cos(q(1));
float s2 = sin(q(2));
float c2 = cos(q(2));
float s3 = sin(q(3));
float c3 = cos(q(3));
float s4 = sin(q(4));
float c4 = cos(q(4));
float s5 = sin(q(5));
float c5 = cos(q(5));
float s6 = sin(q(6));
float c6 = cos(q(6));
J(0, 0) = 0;
J(0, 1) = -0.3575f*s1*s2 - 0.14f*(s6*(s4*(c1*s3 + c2*c3*s1) + c4*s1*s2) + c6*(c5*(c4*(c1*s3 + c2*c3*s1) - s1*s2*s4) - s5*(c1*c3 - c2*s1*s3))) - 0.2855f* (s4*(c1*s3 + c2*c3*s1) + c4*s1*s2) + 0.015f*(c4*(c1*s3 + c2*c3*s1) - c1*s3 - s1*s2*s4 - c2*c3*s1);
J(0, 2) = -c1*(0.015f*(c3*s2 - c2*s4 - c3*c4*s2) - 0.3575f*c2 - 0.2855f*(c2*c4 - c3*s2*s4) + 0.14f*(-c2*c4*s6 + c2*c5*c6*s4 + c3*s2*s4*s6 + c6*s2*s3*s5 + c3*c4*c5*c6*s2));
J(0, 3) = 0.015f* (c4*(c3*s1 + c1*c2*s3) - c3*s1 - c1*c2*s3) - 0.2855f*s4*(c3*s1 + c1*c2*s3) - 0.14f*(c6*(s5*(s1*s3 - c1*c2*c3) + c4*c5*(c3*s1 + c1*c2*s3)) + s4*s6*(c3*s1 + c1*c2*s3));
J(0, 4) = 0.14f*(c5*c6*(s4*(s1*s3 - c1*c2*c3) - c1*c4*s2) - s6*(c4*(s1*s3 - c1*c2*c3) + c1*s2*s4)) - 0.2855f*(c4*(s1*s3 - c1*c2*c3) + c1*s2*s4) + 0.015f*(c1*c4*s2 - s4*(s1*s3 - c1*c2*c3));
J(0, 5) = 0.14f * c6*(s5*(c4*(s1*s3 - c1*c2*c3) + c1*s2*s4) + c5*(c3*s1 + c1*c2*s3));
J(0, 6) = 0.14f*(s6*(c5*(c4*(s1*s3 - c1*c2*c3) + c1*s2*s4) - s5*(c3*s1 + c1*c2*s3)) - c6*(s4*(s1*s3 - c1*c2*c3) - c1*c4*s2));
J(1, 0) = 0;
J(1, 1) = 0.3575f*c1*s2 - 0.14f*(s6*(s4*(s1*s3 - c1*c2*c3) - c1*c4*s2) + c6*(c5*(c4*(s1*s3 - c1*c2*c3) + c1*s2*s4) - s5*(c3*s1 + c1*c2*s3))) + 0.2855f*(c1*c4*s2 - s4*(s1*s3 - c1*c2*c3)) + 0.015f*(c4*(s1*s3 - c1*c2*c3) + c1*s2*s4 + c1*c2*c3 - s1*s3);
J(1, 2) = -s1 * (0.015f* (c3*s2 - c2*s4 - c3*c4*s2) + 0.2855f*(c3*s2*s4 - c2*c4) - 0.3575f*c2 + 0.14f*(c2*c5*c6*s4 - c2*c4*s6 + c3*s2*s4*s6 + c6*s2*s3*s5 + c3*c4*c5*c6*s2));
J(1, 3) = 0.015f*(c1*c3 - c2*s1*s3 - c4*(c1*c3 - c2*s1*s3)) + 0.2855f*s4*(c1*c3 - c2*s1*s3) + 0.14f*(c6*(s5*(c1*s3 + c2*c3*s1) + c4*c5*(c1*c3 - c2*s1*s3)) + s4*s6*(c1*c3 - c2*s1*s3));
J(1, 4) = 0.14f* (s6*(c4*(c1*s3 + c2*c3*s1) - s1*s2*s4) - c5*c6*(s4*(c1*s3 + c2*c3*s1) + c4*s1*s2)) + 0.2855f*(c4*(c1*s3 + c2*c3*s1) - s1*s2*s4) + 0.015f*(s4*(c1*s3 + c2*c3*s1) + c4*s1*s2);
J(1, 5) = -0.14f*c6*(s5*(c4*(c1*s3 + c2*c3*s1) - s1*s2*s4) + c5*(c1*c3 - c2*s1*s3));
J(1, 6) = 0.14f*(c6*(s4*(c1*s3 + c2*c3*s1) + c4*s1*s2) - s6*(c5*(c4*(c1*s3 + c2*c3*s1) - s1*s2*s4) - s5*(c1*c3 - c2*s1*s3)));
J(2, 0) = 0;
J(2, 1) = 0;
J(2, 2) = 0.3575f*s2 + 0.2855f*(c4*s2 + c2*c3*s4) + 0.015f*(s2*s4 - c2*c3*c4 + c2*c3) - 0.14f*(c6*(c5*(s2*s4 - c2*c3*c4) - c2*s3*s5) - s6*(c4*s2 + c2*c3*s4));
J(2, 3) = -s2*(0.015f*(s3 - c4*s3) + 0.2855f*s3*s4 + 0.14f*(s3*s4*s6 - c3*c6*s5 + c4*c5*c6*s3));
J(2, 4) = 0.2855f* (c2*s4 + c3*c4*s2) + 0.015f*(c3*s2*s4 - c2*c4) + 0.14f* (s6*(c2*s4 + c3*c4*s2) + c5*c6*(c2*c4 - c3*s2*s4));
J(2, 5) = -0.14f*c6*(s5*(c2*s4 + c3*c4*s2) - c5*s2*s3);
J(2, 6) = -0.14f*(s6*(c5*(c2*s4 + c3*c4*s2) + s2*s3*s5) + c6*(c2*c4 - c3*s2*s4));
J(3, 0) = 0;
J(3, 1) = 0;
J(3, 2) = s1;
J(3, 3) = -c1*s2;
J(3, 4) = c3*s1 + c1*c2*s3;
J(3, 5) = c1*c4*s2 - s4*(s1*s3 - c1*c2*c3);
J(3, 6) = -s5*(c4*(s1*s3 - c1*c2*c3) + c1*s2*s4) - c5*(c3*s1 + c1*c2*s3);
J(4, 0) = 0;
J(4, 1) = 0;
J(4, 2) = -c1;
J(4, 3) = -s1*s2;
J(4, 4) = c2*s1*s3 - c1*c3;
J(4, 5) = s4*(c1*s3 + c2*c3*s1) + c4*s1*s2;
J(4, 6) = s5*(c4*(c1*s3 + c2*c3*s1) - s1*s2*s4) + c5*(c1*c3 - c2*s1*s3);
J(5, 0) = 0;
J(5, 1) = 1.f;
J(5, 2) = 0;
J(5, 3) = c2;
J(5, 4) = s2*s3;
J(5, 5) = c3*s2*s4 - c2*c4;
J(5, 6) = s5*(c2*s4 + c3*c4*s2) - c5*s2*s3;
}
void kinematics::InversKinematics()
{
}
Transform kinematics::transformDH(DH_Params dh, float th)
{
Transform T;
float al = dh.al;
T.matrix().block(0, 0, 3, 4) << cos(th), -cos(al)*sin(th), sin(al)*sin(th), dh.a*cos(th),
sin(th), cos(al)*cos(th), -sin(al)*cos(th), dh.a*sin(th),
0, sin(al), cos(al), dh.d;
return T;
}
Vector6f kinematics::Transform2Vector6f(Transform& t)
{
Vector6f vec6;
Eigen::Vector3f vec3;
//// according to eulerAngles() in Eigen, the domain is located in [0:pi]x[-pi:pi]x[-pi:pi]
//// convention: roll-pitch-yaw angles
//// limitation: range of yaw is located in [0:pi]
//vec3 = t.rotation().eulerAngles(1, 2, 0);
//t.rotation();
//t.rotation().eulerAngles(1,2,0);
vec6(0) = t.matrix()(0, 3);
vec6(1) = t(1, 3);
vec6(2) = t(2, 3);
Eigen::Matrix3f m = t.matrix().block(0, 0, 3, 3);
Eigen::Quaternionf qu(m);
Eigen::Vector3f vec;
quaternion2euler(qu, vec);
vec6(3) = vec(0);
vec6(4) = vec(1);
vec6(5) = vec(2);
return vec6;
}
void kinematics::quaternion2euler(Eigen::Quaternionf& qu, Eigen::Vector3f& vec)
{
qu.normalize();
float qw = qu.w();
float qx = qu.x();
float qy = qu.y();
float qz = qu.z();
float roll, yaw, pitch;
double test = qx*qy + qz*qw;
if (test > SINGULARITY)
{ // singularity at north pole
roll = 2 * atan2(qx, qw);
yaw = M_PI / 2;
pitch = 0;
vec << roll, yaw, pitch;
return;
}
if (test < -SINGULARITY)
{ // singularity at south pole
roll = -2 * atan2(qx, qw);
yaw = -M_PI / 2;
pitch = 0;
vec << roll, yaw, pitch;
return;
}
roll = atan2(2 * qy*qw - 2 * qx*qz, 1 - 2 * qy*qy - 2 * qz*qz);
yaw = asin(2 * qx*qy + 2 * qz*qw);
pitch = atan2(2 * qx*qw - 2 * qy*qz, 1 - 2 * qx*qx - 2 * qz*qz);
vec << roll, yaw, pitch;
} | [
"noreply@github.com"
] | bxyrsxo.noreply@github.com |
ad440ad142cf316d70c1ab1cc64d66aff4190a2b | 82359f927e443fe95c1e2da4eec752d9e6028502 | /main.cpp | a1783a080f95528a3cc0e73389ecbff172921373 | [] | no_license | RayhanAnandhias/cg-house | 0b153ae16c1d09fc20a937268715565979a5d413 | c1559def4c7ace00cc9986ed756bb30650e2c766 | refs/heads/main | 2023-01-03T06:13:54.588798 | 2020-10-22T15:53:44 | 2020-10-22T15:53:44 | 306,387,126 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 34,465 | cpp | #include <bits/stdc++.h>
#include <GL/glut.h>
#include "BmpLoader.h"
using namespace std;
char title[] = "Rayhan Azka Anandhias Putra - 181524028";
float angle = 0.0;
GLuint texture_wall, texture_door, texture_grass, texture_roof, texture_sky;
GLuint texture_window, texture_pagar, texture_gapura;
void init();
void keyboard_handler(unsigned char key, int x, int y);
void reshape(GLsizei w, GLsizei h);
void display();
float z_trans = -15, x_trans = 0.0, y_trans = 0.0;
float x_rot = 0.0 ,y_rot=1.0,z_rot=0.0;
GLuint load_texture(const char* fname);
void draw_house();
void draw_pagar();
void draw_gapura();
int main(int argc, char **argv) {
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);
glutInitWindowSize(800, 600);
glutInitWindowPosition(50, 50);
glutCreateWindow(title);
glEnable(GL_DEPTH_TEST);
glutDisplayFunc(display);
glutReshapeFunc(reshape);
glutKeyboardFunc(keyboard_handler);
init();
glutMainLoop();
return 0;
}
void init() {
glClearColor(0.0,0.0,0.0,1.0);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glOrtho(-1.0,1.0,-1.0,1.0,-1.0,1.0);
texture_grass = load_texture("grass.bmp");
texture_sky = load_texture("sky.bmp");
texture_wall = load_texture("wall3.bmp");
texture_roof = load_texture("roof2.bmp");
texture_door = load_texture("door2.bmp");
texture_window = load_texture("window2.bmp");
texture_pagar = load_texture("roof.bmp");
texture_gapura = load_texture("roof.bmp");
}
void keyboard_handler(unsigned char key, int x, int y) {
// d dan f
switch (key) {
case GLUT_KEY_RIGHT:
angle += 1;
if (angle > 360) angle = 0.0;
break;
case GLUT_KEY_LEFT:
angle -= 1;
if (angle > 360) angle = 0.0;
break;
case 'q':
exit(0);
break;
case 'u':
z_trans +=1;
break;
case 'i':
z_trans -=1;
break;
default:
break;
}
glutPostRedisplay();
}
void reshape(GLsizei w, GLsizei h) {
const float ar = (float) w / (float) h;
glViewport(0, 0, w, h);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glFrustum(-ar, ar, -1.0, 1.0, 2.0, 100.0);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
}
void display() {
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
//draw grass
glPushMatrix();
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, texture_grass );
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTranslatef(x_trans,y_trans,z_trans);
glRotatef(angle, x_rot, y_rot, z_rot);
glBegin(GL_QUADS);
glTexCoord3f(0.0,70.0,1); glVertex3f(-50,-1.5,50);
glTexCoord3f(0.0,0.0,1); glVertex3f(-50,-1.5,-50);
glTexCoord3f(70.0,0.0,1); glVertex3f(50,-1.5,-50);
glTexCoord3f(70.0,70.0,1); glVertex3f(50,-1.5,50);
glEnd();
glDisable(GL_TEXTURE_2D);
glPopMatrix();
//draw sky
glPushMatrix();
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, texture_sky);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTranslatef(x_trans,y_trans,z_trans);
glRotatef(angle, x_rot, y_rot, z_rot);
glBegin(GL_QUADS); //Belakang
glTexCoord3f(1.0,1.0,0); glVertex3f(-50,50,-50);
glTexCoord3f(0.0,0.0,0); glVertex3f(-50,-50,-50);
glTexCoord3f(1.0,0.0,0); glVertex3f(50,-50,-50);
glTexCoord3f(0.0,1.0,0); glVertex3f(50,50,-50);
glEnd();
glBegin(GL_QUADS); //Depan
glTexCoord3f(1.0,1.0,0); glVertex3f(-50,50,50);
glTexCoord3f(0.0,0.0,0); glVertex3f(-50,-50,50);
glTexCoord3f(1.0,0.0,0); glVertex3f(50,-50,50);
glTexCoord3f(0.0,1.0,0); glVertex3f(50,50,50);
glEnd();
glBegin(GL_QUADS); //Kanan
glTexCoord3f(1.0,1.0,0); glVertex3f(50,50,-50);
glTexCoord3f(0.0,0.0,0); glVertex3f(50,-50,-50);
glTexCoord3f(1.0,0.0,0); glVertex3f(50,-50,50);
glTexCoord3f(0.0,1.0,0); glVertex3f(50,50,50);
glEnd();
glBegin(GL_QUADS); //Kiri
glTexCoord3f(1.0,1.0,0); glVertex3f(-50,50,-50);
glTexCoord3f(0.0,0.0,0); glVertex3f(-50,-50,-50);
glTexCoord3f(1.0,0.0,0); glVertex3f(-50,-50,50);
glTexCoord3f(0.0,1.0,0); glVertex3f(-50,50,50);
glEnd();
glDisable(GL_TEXTURE_2D);
glPopMatrix();
draw_house();
draw_pagar();
draw_gapura();
glutSwapBuffers();
}
void draw_house() {
//draw front-side wall
glPushMatrix();
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, texture_wall);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTranslatef(x_trans,y_trans,z_trans);
glRotatef(angle, x_rot, y_rot, z_rot);
glBegin(GL_QUADS); // Wall
glTexCoord3f(0.0,2.0,0.1); glVertex3f(-2,0,1);
glTexCoord3f(4.0,2.0,0.1); glVertex3f(1,0,1);
glTexCoord3f(4.0,0.0,0.1); glVertex3f(1,-1.5,1);
glTexCoord3f(0.0,0.0,0.1); glVertex3f(-2,-1.5,1);
glEnd();
glDisable(GL_TEXTURE_2D);
glPopMatrix();
//draw right-side wall
glPushMatrix();
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, texture_wall);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTranslatef(x_trans,y_trans,z_trans);
glRotatef(angle, x_rot, y_rot, z_rot);
glBegin(GL_QUADS); // Wall
glTexCoord3f(0.0,2.0,0.1); glVertex3f(1,0,1);
glTexCoord3f(4.0,2.0,0.1); glVertex3f(1,0,-1.5);
glTexCoord3f(4.0,0.0,0.1); glVertex3f(1,-1.5,-1.5);
glTexCoord3f(0.0,0.0,0.1); glVertex3f(1,-1.5,1);
glEnd();
glDisable(GL_TEXTURE_2D);
glPopMatrix();
//draw left-side wall
glPushMatrix();
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, texture_wall);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTranslatef(x_trans,y_trans,z_trans);
glRotatef(angle, x_rot, y_rot, z_rot);
glBegin(GL_QUADS); // Wall
glTexCoord3f(0.0,2.0,0.1); glVertex3f(-2,0,1);
glTexCoord3f(4.0,2.0,0.1); glVertex3f(-2,0,-1.5);
glTexCoord3f(4.0,0.0,0.1); glVertex3f(-2,-1.5,-1.5);
glTexCoord3f(0.0,0.0,0.1); glVertex3f(-2,-1.5,1);
glEnd();
glDisable(GL_TEXTURE_2D);
glPopMatrix();
glPushMatrix();
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, texture_wall);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTranslatef(x_trans,y_trans,z_trans);
glRotatef(angle, x_rot, y_rot, z_rot);
glBegin(GL_QUADS); // Wall
glTexCoord3f(0.0,2.0,0.1); glVertex3f(-5,0,-1.5);
glTexCoord3f(4.0,2.0,0.1); glVertex3f(-2,0,-1.5);
glTexCoord3f(4.0,0.0,0.1); glVertex3f(-2,-1.5,-1.5);
glTexCoord3f(0.0,0.0,0.1); glVertex3f(-5,-1.5,-1.5);
glEnd();
glDisable(GL_TEXTURE_2D);
glPopMatrix();
glPushMatrix();
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, texture_wall);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTranslatef(x_trans,y_trans,z_trans);
glRotatef(angle, x_rot, y_rot, z_rot);
glBegin(GL_QUADS); // Wall
glTexCoord3f(0.0,2.0,0.1); glVertex3f(4,0,-1.5);
glTexCoord3f(4.0,2.0,0.1); glVertex3f(1,0,-1.5);
glTexCoord3f(4.0,0.0,0.1); glVertex3f(1,-1.5,-1.5);
glTexCoord3f(0.0,0.0,0.1); glVertex3f(4,-1.5,-1.5);
glEnd();
glDisable(GL_TEXTURE_2D);
glPopMatrix();
glPushMatrix();
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, texture_wall);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTranslatef(x_trans,y_trans,z_trans);
glRotatef(angle, x_rot, y_rot, z_rot);
glBegin(GL_QUADS); // Wall
glTexCoord3f(0.0,2.0,0.1); glVertex3f(4,0,-1.5);
glTexCoord3f(4.0,2.0,0.1); glVertex3f(4,0,-7);
glTexCoord3f(4.0,0.0,0.1); glVertex3f(4,-1.5,-7);
glTexCoord3f(0.0,0.0,0.1); glVertex3f(4,-1.5,-1.5);
glEnd();
glDisable(GL_TEXTURE_2D);
glPopMatrix();
glPushMatrix();
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, texture_wall);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTranslatef(x_trans,y_trans,z_trans);
glRotatef(angle, x_rot, y_rot, z_rot);
glBegin(GL_QUADS); // Wall
glTexCoord3f(0.0,2.0,0.1); glVertex3f(-5,0,-1.5);
glTexCoord3f(4.0,2.0,0.1); glVertex3f(-5,0,-7);
glTexCoord3f(4.0,0.0,0.1); glVertex3f(-5,-1.5,-7);
glTexCoord3f(0.0,0.0,0.1); glVertex3f(-5,-1.5,-1.5);
glEnd();
glDisable(GL_TEXTURE_2D);
glPopMatrix();
glPushMatrix();
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, texture_wall);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTranslatef(x_trans,y_trans,z_trans);
glRotatef(angle, x_rot, y_rot, z_rot);
glBegin(GL_QUADS); // Wall
glTexCoord3f(0.0,2.0,0.1); glVertex3f(-5,0,-7);
glTexCoord3f(4.0,2.0,0.1); glVertex3f(4,0,-7);
glTexCoord3f(4.0,0.0,0.1); glVertex3f(4,-1.5,-7);
glTexCoord3f(0.0,0.0,0.1); glVertex3f(-5,-1.5,-7);
glEnd();
glDisable(GL_TEXTURE_2D);
glPopMatrix();
//sisi kanan atap
glPushMatrix();
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, texture_wall);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTranslatef(x_trans,y_trans,z_trans);
glRotatef(angle, x_rot, y_rot, z_rot);
glBegin(GL_TRIANGLES); // Wall
glTexCoord3f(0.0,1.0,0); glVertex3f(4,1,-4.25);
glTexCoord3f(1.0,0.0,1); glVertex3f(4,0,-1.5);
glTexCoord3f(-1.0,0.0,-1); glVertex3f(4,0,-7);
glEnd();
glDisable(GL_TEXTURE_2D);
glPopMatrix();
//sisi kiri atap
glPushMatrix();
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, texture_wall);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTranslatef(x_trans,y_trans,z_trans);
glRotatef(angle, x_rot, y_rot, z_rot);
glBegin(GL_TRIANGLES); // Wall
glTexCoord3f(0.0,1.0,0); glVertex3f(-5,1,-4.25);
glTexCoord3f(1.0,0.0,1); glVertex3f(-5,0,-1.5);
glTexCoord3f(-1.0,0.0,-1); glVertex3f(-5,0,-7);
glEnd();
glDisable(GL_TEXTURE_2D);
glPopMatrix();
//genteng belakang
glPushMatrix();
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, texture_roof);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTranslatef(x_trans,y_trans,z_trans);
glRotatef(angle, x_rot, y_rot, z_rot);
glBegin(GL_QUADS); //Atap Belakang
glTexCoord3f(0.0,2.0,0); glVertex3f(-5.3,1,-4.25);
glTexCoord3f(4.0,2.0,0); glVertex3f(4.3,1,-4.25);
glTexCoord3f(4.0,0.0,-1.25); glVertex3f(4.3,-0.01,-7.1);
glTexCoord3f(0.0,.00,-1.25); glVertex3f(-5.3,-0.01,-7.1);
glEnd();
glDisable(GL_TEXTURE_2D);
glPopMatrix();
//genteng belakang
glPushMatrix();
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, texture_roof);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTranslatef(x_trans,y_trans,z_trans);
glRotatef(angle, x_rot, y_rot, z_rot);
glBegin(GL_QUADS); //Atap depan
glTexCoord3f(0.0,2.0,0); glVertex3f(-5.3,1,-4.25);
glTexCoord3f(4.0,2.0,0); glVertex3f(4.3,1,-4.25);
glTexCoord3f(4.0,0.0,-1.25); glVertex3f(4.3,-0.01,-1.4);
glTexCoord3f(0.0,.00,-1.25); glVertex3f(-5.3,-0.01,-1.4);
glEnd();
glDisable(GL_TEXTURE_2D);
glPopMatrix();
//sisi depan atap
glPushMatrix();
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, texture_wall);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTranslatef(x_trans,y_trans,z_trans);
glRotatef(angle, x_rot, y_rot, z_rot);
glBegin(GL_TRIANGLES); // Wall
glTexCoord3f(0.0,1.0,0); glVertex3f(-0.5,1,1);
glTexCoord3f(1.0,0.0,1); glVertex3f(-2,0,1);
glTexCoord3f(-1.0,0.0,-1); glVertex3f(1,0,1);
glEnd();
glDisable(GL_TEXTURE_2D);
glPopMatrix();
glPushMatrix();
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, texture_roof);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTranslatef(x_trans,y_trans,z_trans);
glRotatef(angle, x_rot, y_rot, z_rot);
glBegin(GL_QUADS); //Atap depan
glTexCoord3f(0.0,2.0,0); glVertex3f(-0.5,1,1.6);
glTexCoord3f(4.0,2.0,0); glVertex3f(-0.5,1,-4.25);
glTexCoord3f(4.0,0.0,-1.25); glVertex3f(-2.1,-0.01,-4.25);
glTexCoord3f(0.0,.00,-1.25); glVertex3f(-2.1,-0.01,1.6);
glEnd();
glDisable(GL_TEXTURE_2D);
glPopMatrix();
glPushMatrix();
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, texture_roof);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTranslatef(x_trans,y_trans,z_trans);
glRotatef(angle, x_rot, y_rot, z_rot);
glBegin(GL_QUADS); //Atap depan
glTexCoord3f(0.0,2.0,0); glVertex3f(-0.5,1,1.6);
glTexCoord3f(4.0,2.0,0); glVertex3f(-0.5,1,-4.25);
glTexCoord3f(4.0,0.0,-1.25); glVertex3f(1.1,-0.01,-4.25);
glTexCoord3f(0.0,.00,-1.25); glVertex3f(1.1,-0.01,1.6);
glEnd();
glDisable(GL_TEXTURE_2D);
glPopMatrix();
//Pintu
glPushMatrix();
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, texture_door);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTranslatef(0.0,0,z_trans);
glRotatef(angle, x_rot, y_rot, z_rot);
glBegin(GL_QUADS); // Wall
glTexCoord3f(0.0,1.0,10001); glVertex3f(-1.2,-0.4,1.0001);
glTexCoord3f(1.0,1.0,10001); glVertex3f(0.25,-0.4,1.0001);
glTexCoord3f(1.0,0.0,10001); glVertex3f(0.25,-1.5,1.0001);
glTexCoord3f(0.0,0.0,10001); glVertex3f(-1.2,-1.5,1.0001);
glEnd();
glDisable(GL_TEXTURE_2D);
glPopMatrix();
//jendela
glPushMatrix();
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, texture_window);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTranslatef(0.0,0,z_trans);
glRotatef(angle, x_rot, y_rot, z_rot);
glBegin(GL_QUADS); // Wall
glTexCoord3f(0.0,1.0,10001); glVertex3f(-4.5,-0.4,-1.49);
glTexCoord3f(1.0,1.0,10001); glVertex3f(-4.0,-0.4,-1.49);
glTexCoord3f(1.0,0.0,10001); glVertex3f(-4.0,-1.0,-1.49);
glTexCoord3f(0.0,0.0,10001); glVertex3f(-4.5,-1.0,-1.49);
glEnd();
glDisable(GL_TEXTURE_2D);
glPopMatrix();
//jendela
glPushMatrix();
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, texture_window);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTranslatef(0.0,0,z_trans);
glRotatef(angle, x_rot, y_rot, z_rot);
glBegin(GL_QUADS); // Wall
glTexCoord3f(0.0,1.0,10001); glVertex3f(-3.5,-0.4,-1.49);
glTexCoord3f(1.0,1.0,10001); glVertex3f(-3.0,-0.4,-1.49);
glTexCoord3f(1.0,0.0,10001); glVertex3f(-3.0,-1.0,-1.49);
glTexCoord3f(0.0,0.0,10001); glVertex3f(-3.5,-1.0,-1.49);
glEnd();
glDisable(GL_TEXTURE_2D);
glPopMatrix();
//jendela
glPushMatrix();
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, texture_window);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTranslatef(0.0,0,z_trans);
glRotatef(angle, x_rot, y_rot, z_rot);
glBegin(GL_QUADS); // Wall
glTexCoord3f(0.0,1.0,10001); glVertex3f(3.5,-0.4,-1.49);
glTexCoord3f(1.0,1.0,10001); glVertex3f(3.0,-0.4,-1.49);
glTexCoord3f(1.0,0.0,10001); glVertex3f(3.0,-1.0,-1.49);
glTexCoord3f(0.0,0.0,10001); glVertex3f(3.5,-1.0,-1.49);
glEnd();
glDisable(GL_TEXTURE_2D);
glPopMatrix();
//jendela
glPushMatrix();
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, texture_window);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTranslatef(0.0,0,z_trans);
glRotatef(angle, x_rot, y_rot, z_rot);
glBegin(GL_QUADS); // Wall
glTexCoord3f(0.0,1.0,10001); glVertex3f(2.5,-0.4,-1.49);
glTexCoord3f(1.0,1.0,10001); glVertex3f(2.0,-0.4,-1.49);
glTexCoord3f(1.0,0.0,10001); glVertex3f(2.0,-1.0,-1.49);
glTexCoord3f(0.0,0.0,10001); glVertex3f(2.5,-1.0,-1.49);
glEnd();
glDisable(GL_TEXTURE_2D);
glPopMatrix();
//jendela
glPushMatrix();
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, texture_window);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTranslatef(0.0,0,z_trans);
glRotatef(angle, x_rot, y_rot, z_rot);
glBegin(GL_QUADS); // Wall
glTexCoord3f(0.0,1.0,10001); glVertex3f(-4.5,-0.4,-7.1);
glTexCoord3f(1.0,1.0,10001); glVertex3f(-4.0,-0.4,-7.1);
glTexCoord3f(1.0,0.0,10001); glVertex3f(-4.0,-1.0,-7.1);
glTexCoord3f(0.0,0.0,10001); glVertex3f(-4.5,-1.0,-7.1);
glEnd();
glDisable(GL_TEXTURE_2D);
glPopMatrix();
//jendela
glPushMatrix();
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, texture_window);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTranslatef(0.0,0,z_trans);
glRotatef(angle, x_rot, y_rot, z_rot);
glBegin(GL_QUADS); // Wall
glTexCoord3f(0.0,1.0,10001); glVertex3f(-2.5,-0.4,-7.1);
glTexCoord3f(1.0,1.0,10001); glVertex3f(-2.0,-0.4,-7.1);
glTexCoord3f(1.0,0.0,10001); glVertex3f(-2.0,-1.0,-7.1);
glTexCoord3f(0.0,0.0,10001); glVertex3f(-2.5,-1.0,-7.1);
glEnd();
glDisable(GL_TEXTURE_2D);
glPopMatrix();
//jendela
glPushMatrix();
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, texture_window);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTranslatef(0.0,0,z_trans);
glRotatef(angle, x_rot, y_rot, z_rot);
glBegin(GL_QUADS); // Wall
glTexCoord3f(0.0,1.0,10001); glVertex3f(3.5,-0.4,-7.1);
glTexCoord3f(1.0,1.0,10001); glVertex3f(3.0,-0.4,-7.1);
glTexCoord3f(1.0,0.0,10001); glVertex3f(3.0,-1.0,-7.1);
glTexCoord3f(0.0,0.0,10001); glVertex3f(3.5,-1.0,-7.1);
glEnd();
glDisable(GL_TEXTURE_2D);
glPopMatrix();
//jendela
glPushMatrix();
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, texture_window);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTranslatef(0.0,0,z_trans);
glRotatef(angle, x_rot, y_rot, z_rot);
glBegin(GL_QUADS); // Wall
glTexCoord3f(0.0,1.0,10001); glVertex3f(1.5,-0.4,-7.1);
glTexCoord3f(1.0,1.0,10001); glVertex3f(1.0,-0.4,-7.1);
glTexCoord3f(1.0,0.0,10001); glVertex3f(1.0,-1.0,-7.1);
glTexCoord3f(0.0,0.0,10001); glVertex3f(1.5,-1.0,-7.1);
glEnd();
glDisable(GL_TEXTURE_2D);
glPopMatrix();
glPushMatrix();
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, texture_window);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTranslatef(0.0,0,z_trans);
glRotatef(angle, x_rot, y_rot, z_rot);
glBegin(GL_QUADS); // Wall
glTexCoord3f(0.0,1.0,10001); glVertex3f(4.1,-0.4,-3.0);
glTexCoord3f(1.0,1.0,10001); glVertex3f(4.1,-0.4,-3.5);
glTexCoord3f(1.0,0.0,10001); glVertex3f(4.1,-1.0,-3.5);
glTexCoord3f(0.0,0.0,10001); glVertex3f(4.1,-1.0,-3.0);
glEnd();
glDisable(GL_TEXTURE_2D);
glPopMatrix();
glPushMatrix();
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, texture_window);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTranslatef(0.0,0,z_trans);
glRotatef(angle, x_rot, y_rot, z_rot);
glBegin(GL_QUADS); // Wall
glTexCoord3f(0.0,1.0,10001); glVertex3f(4.1,-0.4,-5.0);
glTexCoord3f(1.0,1.0,10001); glVertex3f(4.1,-0.4,-5.5);
glTexCoord3f(1.0,0.0,10001); glVertex3f(4.1,-1.0,-5.5);
glTexCoord3f(0.0,0.0,10001); glVertex3f(4.1,-1.0,-5.0);
glEnd();
glDisable(GL_TEXTURE_2D);
glPopMatrix();
glPushMatrix();
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, texture_window);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTranslatef(0.0,0,z_trans);
glRotatef(angle, x_rot, y_rot, z_rot);
glBegin(GL_QUADS); // Wall
glTexCoord3f(0.0,1.0,10001); glVertex3f(-5.1,-0.4,-3.0);
glTexCoord3f(1.0,1.0,10001); glVertex3f(-5.1,-0.4,-3.5);
glTexCoord3f(1.0,0.0,10001); glVertex3f(-5.1,-1.0,-3.5);
glTexCoord3f(0.0,0.0,10001); glVertex3f(-5.1,-1.0,-3.0);
glEnd();
glDisable(GL_TEXTURE_2D);
glPopMatrix();
glPushMatrix();
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, texture_window);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTranslatef(0.0,0,z_trans);
glRotatef(angle, x_rot, y_rot, z_rot);
glBegin(GL_QUADS); // Wall
glTexCoord3f(0.0,1.0,10001); glVertex3f(-5.0001,-0.4,-5.0);
glTexCoord3f(1.0,1.0,10001); glVertex3f(-5.0001,-0.4,-5.5);
glTexCoord3f(1.0,0.0,10001); glVertex3f(-5.0001,-1.0,-5.5);
glTexCoord3f(0.0,0.0,10001); glVertex3f(-5.0001,-1.0,-5.0);
glEnd();
glDisable(GL_TEXTURE_2D);
glPopMatrix();
}
void draw_pagar() {
//pagar kiri
glPushMatrix();
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, texture_pagar);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTranslatef(x_trans,y_trans,z_trans);
glRotatef(angle, x_rot, y_rot, z_rot);
glBegin(GL_QUADS); // Wall
glTexCoord3f(0.0,1.0,1); glVertex3f(-6,-0.8,4);
glTexCoord3f(1.0,1.0,1); glVertex3f(-6,-0.8,-9);
glTexCoord3f(1.0,0.0,1); glVertex3f(-6,-1.5,-9);
glTexCoord3f(0.0,0.0,1); glVertex3f(-6,-1.5,4);
glEnd();
glDisable(GL_TEXTURE_2D);
glPopMatrix();
//pagar kanan
glPushMatrix();
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, texture_pagar);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTranslatef(x_trans,y_trans,z_trans);
glRotatef(angle, x_rot, y_rot, z_rot);
glBegin(GL_QUADS); // Wall
glTexCoord3f(0.0,1.0,1); glVertex3f(5,-0.8,4);
glTexCoord3f(1.0,1.0,1); glVertex3f(5,-0.8,-9);
glTexCoord3f(1.0,0.0,1); glVertex3f(5,-1.5,-9);
glTexCoord3f(0.0,0.0,1); glVertex3f(5,-1.5,4);
glEnd();
glDisable(GL_TEXTURE_2D);
glPopMatrix();
//pagar belakang
glPushMatrix();
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, texture_pagar);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTranslatef(x_trans,y_trans,z_trans);
glRotatef(angle, x_rot, y_rot, z_rot);
glBegin(GL_QUADS); // Wall
glTexCoord3f(0.0,1.0,1); glVertex3f(-6,-0.8,-9);
glTexCoord3f(1.0,1.0,1); glVertex3f(5,-0.8,-9);
glTexCoord3f(1.0,0.0,1); glVertex3f(5,-1.5,-9);
glTexCoord3f(0.0,0.0,1); glVertex3f(-6,-1.5,-9);
glEnd();
glDisable(GL_TEXTURE_2D);
glPopMatrix();
//depan kiri
glPushMatrix();
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, texture_pagar);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTranslatef(x_trans,y_trans,z_trans);
glRotatef(angle, x_rot, y_rot, z_rot);
glBegin(GL_QUADS); // Wall
glTexCoord3f(0.0,1.0,1); glVertex3f(-6,-0.8,4);
glTexCoord3f(1.0,1.0,1); glVertex3f(-1.7,-0.8,4);
glTexCoord3f(1.0,0.0,1); glVertex3f(-1.7,-1.5,4);
glTexCoord3f(0.0,0.0,1); glVertex3f(-6,-1.5,4);
glEnd();
glDisable(GL_TEXTURE_2D);
glPopMatrix();
//depan kanan
glPushMatrix();
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, texture_pagar);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTranslatef(x_trans,y_trans,z_trans);
glRotatef(angle, x_rot, y_rot, z_rot);
glBegin(GL_QUADS); // Wall
glTexCoord3f(0.0,1.0,1); glVertex3f(0.6,-0.8,4);
glTexCoord3f(1.0,1.0,1); glVertex3f(5,-0.8,4);
glTexCoord3f(1.0,0.0,1); glVertex3f(5,-1.5,4);
glTexCoord3f(0.0,0.0,1); glVertex3f(0.6,-1.5,4);
glEnd();
glDisable(GL_TEXTURE_2D);
glPopMatrix();
}
void draw_gapura() {
glPushMatrix();
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, texture_gapura);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTranslatef(0,0, z_trans);
glRotatef(angle, x_rot, y_rot, z_rot);
glBegin(GL_QUADS); // Wall
glTexCoord3f(0.0,1.0,1); glVertex3f(-1.7,1,4.2);
glTexCoord3f(1.0,1.0,1); glVertex3f(-1.4,1,4.2);
glTexCoord3f(1.0,0.0,1); glVertex3f(-1.4,-1.5,4.2);
glTexCoord3f(0.0,0.0,1); glVertex3f(-1.7,-1.5,4.2);
glTexCoord3f(0.0,1.0,1); glVertex3f(-1.4,1,4.2);
glTexCoord3f(1.0,1.0,1); glVertex3f(-1.4,1,3.8);
glTexCoord3f(1.0,0.0,1); glVertex3f(-1.4,-1.5,3.8);
glTexCoord3f(0.0,0.0,1); glVertex3f(-1.4,-1.5,4.2);
glTexCoord3f(0.0,1.0,1); glVertex3f(-1.7,1,4.2);
glTexCoord3f(1.0,1.0,1); glVertex3f(-1.7,1,3.8);
glTexCoord3f(1.0,0.0,1); glVertex3f(-1.7,-1.5,3.8);
glTexCoord3f(0.0,0.0,1); glVertex3f(-1.7,-1.5,4.2);
glTexCoord3f(0.0,1.0,1); glVertex3f(-1.7,1,3.8);
glTexCoord3f(1.0,1.0,1); glVertex3f(-1.4,1,3.8);
glTexCoord3f(1.0,0.0,1); glVertex3f(-1.4,-1.5,3.8);
glTexCoord3f(0.0,0.0,1); glVertex3f(-1.7,-1.5,3.8);
glEnd();
glDisable(GL_TEXTURE_2D);
glPopMatrix();
glPushMatrix();
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, texture_gapura);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTranslatef(0,0, z_trans);
glRotatef(angle, x_rot, y_rot, z_rot);
glBegin(GL_QUADS); // Wall
glTexCoord3f(0.0,1.0,1); glVertex3f(0.6,1,4.2);
glTexCoord3f(1.0,1.0,1); glVertex3f(0.3,1,4.2);
glTexCoord3f(1.0,0.0,1); glVertex3f(0.3,-1.5,4.2);
glTexCoord3f(0.0,0.0,1); glVertex3f(0.6,-1.5,4.2);
glTexCoord3f(0.0,1.0,1); glVertex3f(0.3,1,4.2);
glTexCoord3f(1.0,1.0,1); glVertex3f(0.3,1,3.8);
glTexCoord3f(1.0,0.0,1); glVertex3f(0.3,-1.5,3.8);
glTexCoord3f(0.0,0.0,1); glVertex3f(0.3,-1.5,4.2);
glTexCoord3f(0.0,1.0,1); glVertex3f(0.6,1,4.2);
glTexCoord3f(1.0,1.0,1); glVertex3f(0.6,1,3.8);
glTexCoord3f(1.0,0.0,1); glVertex3f(0.6,-1.5,3.8);
glTexCoord3f(0.0,0.0,1); glVertex3f(0.6,-1.5,4.2);
glTexCoord3f(0.0,1.0,1); glVertex3f(0.6,1,3.8);
glTexCoord3f(1.0,1.0,1); glVertex3f(0.3,1,3.8);
glTexCoord3f(1.0,0.0,1); glVertex3f(0.3,-1.5,3.8);
glTexCoord3f(0.0,0.0,1); glVertex3f(0.6,-1.5,3.8);
glEnd();
glDisable(GL_TEXTURE_2D);
glPopMatrix();
glPushMatrix();
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, texture_gapura);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTranslatef(0,0, z_trans);
glRotatef(angle, x_rot, y_rot, z_rot);
glBegin(GL_QUADS); // Wall
glTexCoord3f(1.0,1.0,1); glVertex3f(-1.8,1.01,4.3);
glTexCoord3f(0.0,1.0,1); glVertex3f(0.7,1.01,4.3);
glTexCoord3f(0.0,0.0,1); glVertex3f(0.7,1.01,3.7);
glTexCoord3f(1.0,0.0,1); glVertex3f(-1.8,1.01,3.7);
glTexCoord3f(1.0,1.0,1); glVertex3f(-1.8,1.01,4.3);
glTexCoord3f(0.0,1.0,1); glVertex3f(0.7,1.01,4.3);
glTexCoord3f(0.0,0.0,1); glVertex3f(0.7,1.41,4.3);
glTexCoord3f(1.0,0.0,1); glVertex3f(-1.8,1.41,4.3);
glTexCoord3f(1.0,1.0,1); glVertex3f(-1.8,1.01,3.7);
glTexCoord3f(0.0,1.0,1); glVertex3f(0.7,1.01,3.7);
glTexCoord3f(0.0,0.0,1); glVertex3f(0.7,1.41,3.7);
glTexCoord3f(1.0,0.0,1); glVertex3f(-1.8,1.41,3.7);
glTexCoord3f(1.0,1.0,1); glVertex3f(-1.8,1.41,4.3);
glTexCoord3f(0.0,1.0,1); glVertex3f(0.7,1.41,4.3);
glTexCoord3f(0.0,0.0,1); glVertex3f(0.7,1.41,3.7);
glTexCoord3f(1.0,0.0,1); glVertex3f(-1.8,1.41,3.7);
glTexCoord3f(1.0,1.0,1); glVertex3f(0.7,1.01,4.3);
glTexCoord3f(0.0,1.0,1); glVertex3f(0.7,1.01,3.7);
glTexCoord3f(0.0,0.0,1); glVertex3f(0.7,1.41,3.7);
glTexCoord3f(1.0,0.0,1); glVertex3f(0.7,1.41,4.3);
glTexCoord3f(1.0,1.0,1); glVertex3f(-1.8,1.01,4.3);
glTexCoord3f(0.0,1.0,1); glVertex3f(-1.8,1.01,3.7);
glTexCoord3f(0.0,0.0,1); glVertex3f(-1.8,1.41,3.7);
glTexCoord3f(1.0,0.0,1); glVertex3f(-1.8,1.41,4.3);
glEnd();
glDisable(GL_TEXTURE_2D);
glPopMatrix();
}
GLuint load_texture(const char* fname) {
BmpLoader bl(fname);
GLuint textureId;
glGenTextures(1, &textureId);
glBindTexture(GL_TEXTURE_2D, textureId);
glTexImage2D(GL_TEXTURE_2D,
0,
GL_RGB,
bl.iWidth, bl.iHeight,
0,
GL_RGB,
GL_UNSIGNED_BYTE,
bl.textureData);
return textureId;
} | [
"noreply@github.com"
] | RayhanAnandhias.noreply@github.com |
152e5a23eb4b0222fb6ecff55c041aafe844559f | 8171c0d36186ab01094c63436dcfa92d09a7b30a | /solve.cpp | 4834fb68c81f15b22be1d00723b1d0976ed679f9 | [] | no_license | ashleshabise/algo_assignment3 | 84a32b927c3ad64dcc8415a4f0265580828858db | 01b9b843c62083e8750e02fb8f02feb27480a319 | refs/heads/master | 2021-01-10T13:58:48.657766 | 2016-02-09T13:16:41 | 2016-02-09T13:16:41 | 51,367,486 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,620 | cpp | #include<stdio.h>
#include<string.h>
#include<stdbool.h>
#include<math.h>
#define a 16
#define SIZE 100
#define TRUE 1
#define FALSE 0
fGamma(int K, float q, char *partitionOutputFile, char *inputFileGamma, char *fileForR) {
char *str;
int gammaArray[K], i=0;
// Read gammas from inputFileGamma
FILE gammaFile = fopen(inputFileGamma,"r");
while (fgets(str,SIZE,gammaFile) != NULL) {
sscanf(str,"%f",&gamma);
gammaArray[i++] = gamma;
}
// Read file for R
FILE rFile = fopen(fileForR, "r");
//
float rArray[3];
while (fgets(str,SIZE,rFile) != NULL) {
sscanf(str,"%f %f %f",&x1,&x2,&x3);
rArray[0] = x1;
rArray[1] = x2;
rArray[2] = x3;
count++;
}
FILE pOutputFile = fopen(partitionOutputFile, "r");
while (fgets(str,SIZE,pOutputFile) != NULL) {
sscanf(str,"%f %f %f",&x1,&x2,&x2);
}
}
int summation(int l[] [], int y[],int start, int end, int i) {
int sum = 0;
for(int j=start; j<=end; j++) {
sum+=l[i][j]*y[j]
}
return sum;
}
int* LUP-SOLVE(int L[][], int U[][],int Pi[],int b[], int rowsL) {
int n=rowsL;
int P[n][n], y[n], x[n];
// Initialize P matrix
for ( int i=0; i < n; i++) {
for ( int j=0; j < n; j++) {
if ( j == Pi[i])
P[i][j] = 1;
else
P[i][j] = 0;
}
}
// Calculate Pb from P and b
for ( int i=0; i < n; i++) {
for ( int j=0; j < n; j++) {
Pb[i] += P[i][j]*b[j];
}
}
// Initialize y and x
for (int i=0; i < n; i++ )
y[i] = 0,x[i] = 0;
for(int i=1; i<n; i++)
y[i] = Pb[i]- summation(L,y,1,i-1);
for(int i=n;i>=0;i--)
x[i]=(y[i]-summation(U,x,i+1,n))/U[i][i];
int *result = x;
// returned a pointer to the array x.
return result;
}
LUP-Decomposition(int A[][]) {
int n=rowsA, temp;
int Pi[n];
for(int i=1;i<=n;i++)
Pi[i]=i;
int p, k1;
for(int k=1; k<n; k++) {
p=0;
for(int i=k; i<n; i++) {
if(abs(A[i][k]) > p) {
p=abs(A[i][k]);
k1=i;
}
}
if (p==0)
cout<<"\n Singular matrix.";
// Swap
temp=Pi[k];
Pi[k]=Pi[k1];
Pi[k1]=temp;
for(int i=1; i<n; i++) {
temp=A[k][i];
A[k][i]=A[k1][i];
A[k1][i]=temp;
}
for(int i=k+1; i<=n; i++) {
A[i][k]/= A[k][k];
for(int i=1; i<n; i++)
A[i][j]-= (A[i][k] * A[k][j]);
}
}
}
// Returns a pointer to solution array.
int* solve-ls(int A[][], int b[], int ) {
LUP-Decomposition();
int* result = LUP-SOLVE();
return result;
}
/* Code for SOLVE function goes here */
bool solve(int L, char* inputFileR, char* inputFileP, char* inputFileQ, char* inputFileGamma, char* outputFile) {
}
/*--------------------------------------------------------------------------------------------*/
/* Code for partitionAll + utility functions starts here */
// A linked list where each node represents a point r[]
struct node {
float r[3];
struct node* next;
};
void push(struct node** head, float r[3]) {
struct node* newNode = (struct node*)(malloc(sizeof(struct node)));
newNode->next = NULL;
int i;
// copy r[i] into newNode->r[i];
for (i=0; i<3; i++) newNode->r[i] = r[i];
if ( *head == NULL) {
*head = newNode;
return;
}
newNode->next = *head;
*head = newNode;
}
bool partition(float r[3],int L, int lMatrix[L][L][L], struct node* pointList[L][L][L]) {
//validity check for r[3]
fflush(stdout);
printf("Entering partition\n");
int i;
for(i=0;i<3;i++) {
if(!(r[i]>=0 && r[i] <= a)) {
printf(" Input Invalid");
return FALSE;
}
printf("%f ", r[i]);
}
printf("\n");
//validity check for L
if(!(L>0))
printf(" Input Invalid");
FILE* fPartition;
fPartition=fopen("partitionFile", "a");
if(fPartition==NULL) {
printf("Couldn't open partition file");
return FALSE;
}
float x[3];
printf("opened partition file\n");
int l[3],binary[3], bString=0, temp;
for (i=0; i<3; i++) {
printf("generating binary string: ");
x[i]=(r[i]*L)/a;
l[i] = (int)x[i];
// for x1, temp=1. binary = 0 | 1 = 1
// for x2, temp=0, binary = 1<<1 = 10 | 0 = 10
// for x3, temp=1, binary = 10<<1 = 100 | 1 = 101
printf("%f %d", x[i], l[i]);
binary[i] = (x[i]-l[i]) ? 0 : 1;
printf("binary[%d] : %d \n",i, binary[i]);
bString = bString<<1 | binary[i];
}
printf("\n");
// write 000 always.
fprintf(fPartition,"%d %d %d %f %f %f\n", l[0], l[1], l[2], r[0],r[1],r[2]);
// update the lMatrix as well.
lMatrix[l[0]][l[1]][l[2]]++;
int b1,b2,b3;
int done[8]={0,0,0,0,0,0,0,0},result;
for ( i=1; i <= bString; i++) {
printf("writing l[] into partition file\n");
result = bString & i;
if (result ) {
b1=result&4 ? 1:0;
b2=result&2 ? 1:0;
b3=result&1 ? 1:0;
// update the lMatrix
if (!done[result]) {
fprintf(fPartition,"%d %d %d %f %f %f\n", l[0]-b1, l[1]-b2, l[2]-b3, r[0],r[1],r[2]);
lMatrix[l[0]-b1][l[1]-b2][l[2]-b3]++;
// push the point corresponding to l[] to the pointList
push(&pointList[l[0]-b1][l[1]-b2][l[2]-b3],r);
done[result]=1;
}
printf("%d\n", done[result]);
}
}
fclose(fPartition);
return TRUE;
}
bool partitionAll(int L, char* inputFileName, char* outputFileName) {
printf("Entering partitionall\n");
float r[3];
float **R;
// Declaring helper variables
int i,j,k;
int a1,a2,a3;
float x1,x2,x3, temp1, temp2, temp3;
int lMatrix[L][L][L],K=0;
// initialise every element of lMatrix to 0.
for ( i=0; i<L; i++)
for ( j=0; j<L; j++)
for ( k=0; k<L; k++)
lMatrix[i][j][k]=0;
FILE *fin, *fout;
fin = fopen(inputFileName,"r");
if (fin != NULL) {
char str[SIZE];
while (fgets(str,SIZE,fin) != NULL) {
printf("getting data from input file\n");
/*
temp1 = x1;
temp2 = x2;
temp3 = x3;
*/
sscanf(str, "%f %f %f", &x1, &x2, &x3);
printf("%f %f %f\n", x1,x2,x3);
if (x1>a || x1<0 /*|| x1==temp1*/ ) {
printf("Input Failed\n");
return FALSE;
}
if (x2>a || x2<0 /*|| x2==temp2*/) {
printf("Input Failed\n");
return FALSE;
}
if (x3>a || x3<0 /*|| x3==temp3*/) {
printf("Input Failed\n");
return FALSE;
}
r[0] = x1;
r[1] = x2;
r[2] = x3;
partition(r,L,lMatrix);
// so we have K points.
K++;
}
}
else {
printf("Could not open the input File \n");
return 1;
}
fclose(fin);
fout = fopen(outputFileName, "w");
FILE *fPartition ;
char str[SIZE];
for ( i=0; i<L; i++) {
for ( j=0; j<L; j++) {
for ( k=0; k<L; k++) {
fprintf(fout,"%d %d %d\n", i, j, k);
fprintf(fout,"%d\n",lMatrix[i][j][k]);
// open the partition file
fPartition = fopen("partitionFile", "r");
while (fgets(str,SIZE,fPartition) != NULL) {
sscanf(str,"%d %d %d %f %f %f",&a1,&a2,&a3,&x1,&x2,&x2);
if (i==a1 && j==a2 && k==a3)
fprintf(fout,"%f %f %f\n",x1,x2,x3);
}
// close the partition file.
fclose(fPartition);
}
}
}
fclose(fout);
return TRUE;
}
/*----------------------------------------------------------------------------------*/
/* Code for BUILD-MATRIX function starts here */
bool MATRIX(int L, int l[3], char* fileForP, char* fileForQ, char* fileForMatrix) {
float x[3], temp1, temp2, temp3;
float x1,x2,x3;
FILE *fp, *fq, *fMatrix;
int N=0, M=0,i,j;
float P[100][3],Q[100][3];
// Initialise P and Q to 0
for (i=0; i < 100; i++) {
for ( j=0;j<3; j++) {
P[i][j] = Q[i][j] = 0;
}
}
fp = fopen(fileForP,"r");
if (fp != NULL) {
char str[SIZE];
// Checking validity of input P and pushing valid data into P matrix
while (fgets(str,SIZE,fp) != NULL) {
sscanf(str, "%f%f%f", &x[0], &x[1], &x[2]);
int flag = 0;
for ( i=0; i<3; i++) {
// check for 0<= x[i] <= a
if (x[i]>a || x[i]<0) {
printf("initial condition : Invalid Input for P");
return FALSE;
}
if (!( (((a*l[i])/L == x[i]) ||(x[i] == (a*(l[i]+1)/L))) && ( ((a*l[(i+1)%3])/L <= x[(i+1)%3]) && (x[(i+1)%3]<= (a*(l[(i+1)%3]+1)/L)) ) && ( ((a*l[(i+2)%3])/L <= x[(i+2)%3]) && (x[(i+2)%3]<= (a*(l[(i+2)%3]+1))/L) ))) {
flag++;
}
}
/*
If the condition fails for all three co-ordinates,
the point is not a boundary point
*/
if (flag==3) {
printf("Invalid Input for P\n");
return FALSE;
}
P[N][0] = x[0];
P[N][1] = x[1];
P[N][2] = x[2];
/* This will count no. of inputs in file for P*/
N++;
}
} else {
printf("Could not open the input File \n");
return 1;
}
fclose(fp);
fq = fopen(fileForQ,"r");
// Checking validity of input Q and pushing valid data into Q Matrix
if (fq != NULL) {
char str2[SIZE];
while (fgets(str2,SIZE,fq) != NULL) {
sscanf(str2, "%f%f%f", &x[0], &x[1], &x[2]);
// Calculate the radius of the sphere.
float sum= powf(2*a/(float)L,2);
// Check if the point lies on the sphere.
for(i=0; i<3 ; i++)
sum-= powf(x[i]-((2*l[i]+1)*a)/(2*L), 2);
// Decide the validity accordingly
if(sum) {
printf("Input data for Q is Invalid");
return false;
}
Q[M][0] = x[0];
Q[M][1] = x[1];
Q[M][2] = x[2];
/* This will count no. of inputs in file for Q*/
M++;
}
} else {
printf("Could not open the input File \n");
return 1;
}
fclose(fq);
// Construction of matrix A
float A[M][N];
for ( i =0; i < M; i++) {
for ( j =0; j < N; j++) {
float temp;
// sqrt( x^2 + y^2 + z^2 )
temp = sqrt( powf((Q[i][0] - P[j][0]), 2) + powf((Q[i][1] - P[j][1]), 2) + powf((Q[i][2] - P[j][2]), 2));
// here ??
// so we need to multiply each element of a[i][j] with gamma and add .
// umm.. kaise ?? i mean.
A[i][j]= temp ? (sinf(temp))/temp : 1;
}
}
// Finding the Product Matrix of A and Transpose of A
float result[N][N];
for ( i =0; i < N; i++) {
for ( j =0; j <= i; j++) {
result[i][j] = 0;
for ( int k=0; k<N; k++) {
result[i][j]+= A[k][i] * A[k][j];
}
result[j][i] = result[i][j];
}
}
fMatrix = fopen(fileForMatrix, "w");
for ( i =0; i < M; i++) {
for ( j =0; j < M; j++) {
fprintf(fMatrix, "%d %d %f\n", i, j, result[i][j]);
}
}
fclose(fMatrix);
}
/* Main for build-matrix program
int main( int argc, char* argv[]) {
// check that whether file names are provided or not at the command line.
if(argc!=4) {
printf("File Names are not provided at command line");
return 1;
}
int L;
do {
printf("Enter a Positive Integer: ");
scanf("%d",&L);
}
while(L<=0);
int l[3];
do {
printf("\nEnter 3 integers less than %d: ",L);
scanf("%d%d%d",&l[0],&l[1],&l[2]);
}
while(!(l[0]<L && l[1]<L && l[2]<L && l[0]>=0 && l[1]>=0 && l[2]>=0));
bool result=MATRIX(L,l,argv[1],argv[2],argv[3]);
switch(result) {
case true: printf("\nAlgorithm is implemented Successfully\n");
break;
case false: printf("\nAlgorithm is implemented Successfully\n");
break;
}
return 0;
}
*/
| [
"binny.arora@jugnoo.in"
] | binny.arora@jugnoo.in |
b6fd202b67208e4ecb245f269a2ac43d70da750b | 2aa54f4d4404cfcdf90d4b20d0043a835b90ae98 | /protocol/Greenstack/libgreenstack/Frame.cc | aecdcbec0d720c46b8dea8010894673c3517c42c | [] | no_license | premkumr/memcached | 1bf8f3e36f19e27668ee30aaece4f3f700004e4b | 743c7bed1ed5dca50f0fde75cfa7533a78ded919 | refs/heads/master | 2021-01-22T18:42:31.225911 | 2017-04-06T08:35:39 | 2017-04-06T15:03:58 | 85,103,393 | 0 | 0 | null | 2017-03-25T00:09:22 | 2017-03-15T17:46:14 | C++ | UTF-8 | C++ | false | false | 1,602 | cc | /* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2015 Couchbase, Inc.
*
* Licensed 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.
*/
#include <libgreenstack/Frame.h>
#include <libgreenstack/Message.h>
#include <libgreenstack/Writer.h>
#include <libgreenstack/Reader.h>
#include <cassert>
size_t Greenstack::Frame::encode(const Message* message,
std::vector<uint8_t>& vector, size_t offset) {
VectorWriter writer(vector, offset);
size_t nb = message->encode(vector, offset + 4);
writer.write(static_cast<uint32_t>(nb));
return nb + 4;
}
Greenstack::Message* Greenstack::Frame::create(Greenstack::Reader& reader) {
if (reader.getRemainder() < 4) {
return nullptr;
}
uint32_t size;
reader.read(size);
if (reader.getRemainder() < size) {
return nullptr;
}
return Message::create(reader, size);
}
Greenstack::UniqueMessagePtr Greenstack::Frame::createUnique(
Greenstack::Reader& reader) {
return UniqueMessagePtr(create(reader));
}
| [
"trond.norbye@gmail.com"
] | trond.norbye@gmail.com |
c4c394fb076e5d36b081f9ac4e8837d42045f0c1 | 5bfcd0c40509ed4f4251e5d286aa010e0a04243f | /3rdParty/Raknet/include/UDPProxyCoordinator.cpp | 4436ae8e1cc822f3418db8d74ebfdf9554673f6b | [] | no_license | CedricGuillemet/theRush | 28b912d8c90f8c7b67c7c0c3e55512ab9bb7df0c | bf1a85200f236d8eff672fb701b213a4ea24424c | refs/heads/master | 2021-09-06T09:07:56.188895 | 2018-02-04T19:06:26 | 2018-02-04T19:06:26 | 120,213,513 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 18,096 | cpp | #include "NativeFeatureIncludes.h"
#if _RAKNET_SUPPORT_UDPProxyCoordinator==1
#include "UDPProxyCoordinator.h"
#include "BitStream.h"
#include "UDPProxyCommon.h"
#include "RakPeerInterface.h"
#include "MessageIdentifiers.h"
#include "Rand.h"
#include "GetTime.h"
#include "UDPForwarder.h"
// Larger than the client version
static const int DEFAULT_CLIENT_UNRESPONSIVE_PING_TIME=2000;
static const int DEFAULT_UNRESPONSIVE_PING_TIME=DEFAULT_CLIENT_UNRESPONSIVE_PING_TIME+1000;
using namespace RakNet;
bool operator<( const DataStructures::MLKeyRef<unsigned short> &inputKey, const UDPProxyCoordinator::ServerWithPing &cls ) {return inputKey.Get() < cls.ping;}
bool operator>( const DataStructures::MLKeyRef<unsigned short> &inputKey, const UDPProxyCoordinator::ServerWithPing &cls ) {return inputKey.Get() > cls.ping;}
bool operator==( const DataStructures::MLKeyRef<unsigned short> &inputKey, const UDPProxyCoordinator::ServerWithPing &cls ) {return inputKey.Get() == cls.ping;}
bool operator<( const DataStructures::MLKeyRef<UDPProxyCoordinator::SenderAndTargetAddress> &inputKey, const UDPProxyCoordinator::ForwardingRequest *cls )
{
return inputKey.Get().senderClientAddress < cls->sata.senderClientAddress ||
(inputKey.Get().senderClientAddress == cls->sata.senderClientAddress && inputKey.Get().targetClientAddress < cls->sata.targetClientAddress);
}
bool operator>( const DataStructures::MLKeyRef<UDPProxyCoordinator::SenderAndTargetAddress> &inputKey, const UDPProxyCoordinator::ForwardingRequest *cls )
{
return inputKey.Get().senderClientAddress > cls->sata.senderClientAddress ||
(inputKey.Get().senderClientAddress == cls->sata.senderClientAddress && inputKey.Get().targetClientAddress > cls->sata.targetClientAddress);
}
bool operator==( const DataStructures::MLKeyRef<UDPProxyCoordinator::SenderAndTargetAddress> &inputKey, const UDPProxyCoordinator::ForwardingRequest *cls )
{
return inputKey.Get().senderClientAddress == cls->sata.senderClientAddress && inputKey.Get().targetClientAddress == cls->sata.targetClientAddress;
}
STATIC_FACTORY_DEFINITIONS(UDPProxyCoordinator,UDPProxyCoordinator);
UDPProxyCoordinator::UDPProxyCoordinator()
{
}
UDPProxyCoordinator::~UDPProxyCoordinator()
{
Clear();
}
void UDPProxyCoordinator::SetRemoteLoginPassword(RakNet::RakString password)
{
remoteLoginPassword=password;
}
void UDPProxyCoordinator::Update(void)
{
DataStructures::DefaultIndexType idx;
RakNet::TimeMS curTime = RakNet::GetTimeMS();
ForwardingRequest *fw;
idx=0;
while (idx < forwardingRequestList.GetSize())
{
fw=forwardingRequestList[idx];
if (fw->timeRequestedPings!=0 &&
curTime > fw->timeRequestedPings + DEFAULT_UNRESPONSIVE_PING_TIME)
{
fw->OrderRemainingServersToTry();
fw->timeRequestedPings=0;
TryNextServer(fw->sata, fw);
idx++;
}
else if (fw->timeoutAfterSuccess!=0 &&
curTime > fw->timeoutAfterSuccess)
{
// Forwarding request succeeded, we waited a bit to prevent duplicates. Can forget about the entry now.
RakNet::OP_DELETE(fw,_FILE_AND_LINE_);
forwardingRequestList.RemoveAtIndex(idx,_FILE_AND_LINE_);
}
else
idx++;
}
}
PluginReceiveResult UDPProxyCoordinator::OnReceive(Packet *packet)
{
if (packet->data[0]==ID_UDP_PROXY_GENERAL && packet->length>1)
{
switch (packet->data[1])
{
case ID_UDP_PROXY_FORWARDING_REQUEST_FROM_CLIENT_TO_COORDINATOR:
OnForwardingRequestFromClientToCoordinator(packet);
return RR_STOP_PROCESSING_AND_DEALLOCATE;
case ID_UDP_PROXY_LOGIN_REQUEST_FROM_SERVER_TO_COORDINATOR:
OnLoginRequestFromServerToCoordinator(packet);
return RR_STOP_PROCESSING_AND_DEALLOCATE;
case ID_UDP_PROXY_FORWARDING_REPLY_FROM_SERVER_TO_COORDINATOR:
OnForwardingReplyFromServerToCoordinator(packet);
return RR_STOP_PROCESSING_AND_DEALLOCATE;
case ID_UDP_PROXY_PING_SERVERS_REPLY_FROM_CLIENT_TO_COORDINATOR:
OnPingServersReplyFromClientToCoordinator(packet);
return RR_STOP_PROCESSING_AND_DEALLOCATE;
}
}
return RR_CONTINUE_PROCESSING;
}
void UDPProxyCoordinator::OnClosedConnection(const SystemAddress &systemAddress, RakNetGUID rakNetGUID, PI2_LostConnectionReason lostConnectionReason )
{
(void) lostConnectionReason;
(void) rakNetGUID;
DataStructures::DefaultIndexType idx, idx2;
idx=0;
while (idx < forwardingRequestList.GetSize())
{
if (forwardingRequestList[idx]->requestingAddress==systemAddress)
{
// Guy disconnected before the attempt completed
RakNet::OP_DELETE(forwardingRequestList[idx], _FILE_AND_LINE_);
forwardingRequestList.RemoveAtIndex(idx, _FILE_AND_LINE_ );
}
else
idx++;
}
idx = serverList.GetIndexOf(systemAddress);
if (idx!=(DataStructures::DefaultIndexType)-1)
{
ForwardingRequest *fw;
// For each pending client for this server, choose from remaining servers.
for (idx2=0; idx2 < forwardingRequestList.GetSize(); idx2++)
{
fw = forwardingRequestList[idx2];
if (fw->currentlyAttemptedServerAddress==systemAddress)
{
// Try the next server
TryNextServer(fw->sata, fw);
}
}
// Remove dead server
serverList.RemoveAtIndex(idx, _FILE_AND_LINE_ );
}
}
void UDPProxyCoordinator::OnForwardingRequestFromClientToCoordinator(Packet *packet)
{
RakNet::BitStream incomingBs(packet->data, packet->length, false);
incomingBs.IgnoreBytes(2);
SystemAddress sourceAddress;
incomingBs.Read(sourceAddress);
if (sourceAddress==UNASSIGNED_SYSTEM_ADDRESS)
sourceAddress=packet->systemAddress;
SystemAddress targetAddress;
RakNetGUID targetGuid;
bool usesAddress;
incomingBs.Read(usesAddress);
if (usesAddress)
{
incomingBs.Read(targetAddress);
}
else
{
incomingBs.Read(targetGuid);
targetAddress=rakPeerInterface->GetSystemAddressFromGuid(targetGuid);
}
ForwardingRequest *fw = RakNet::OP_NEW<ForwardingRequest>(_FILE_AND_LINE_);
fw->timeoutAfterSuccess=0;
incomingBs.Read(fw->timeoutOnNoDataMS);
bool hasServerSelectionBitstream;
incomingBs.Read(hasServerSelectionBitstream);
if (hasServerSelectionBitstream)
incomingBs.Read(&(fw->serverSelectionBitstream));
RakNet::BitStream outgoingBs;
SenderAndTargetAddress sata;
sata.senderClientAddress=sourceAddress;
sata.targetClientAddress=targetAddress;
SenderAndTargetAddress sataReversed;
sataReversed.senderClientAddress=targetAddress;
sataReversed.targetClientAddress=sourceAddress;
DataStructures::DefaultIndexType insertionIndex;
insertionIndex = forwardingRequestList.GetInsertionIndex(sata);
if (insertionIndex==(DataStructures::DefaultIndexType)-1 ||
forwardingRequestList.GetInsertionIndex(sataReversed)==(DataStructures::DefaultIndexType)-1)
{
outgoingBs.Write((MessageID)ID_UDP_PROXY_GENERAL);
outgoingBs.Write((MessageID)ID_UDP_PROXY_IN_PROGRESS);
outgoingBs.Write(sata.senderClientAddress);
outgoingBs.Write(targetAddress);
rakPeerInterface->Send(&outgoingBs, MEDIUM_PRIORITY, RELIABLE_ORDERED, 0, packet->systemAddress, false);
RakNet::OP_DELETE(fw, _FILE_AND_LINE_);
return;
}
if (serverList.GetSize()==0)
{
outgoingBs.Write((MessageID)ID_UDP_PROXY_GENERAL);
outgoingBs.Write((MessageID)ID_UDP_PROXY_NO_SERVERS_ONLINE);
outgoingBs.Write(sata.senderClientAddress);
outgoingBs.Write(targetAddress);
rakPeerInterface->Send(&outgoingBs, MEDIUM_PRIORITY, RELIABLE_ORDERED, 0, packet->systemAddress, false);
RakNet::OP_DELETE(fw, _FILE_AND_LINE_);
return;
}
if (rakPeerInterface->GetConnectionState(targetAddress)!=IS_CONNECTED && usesAddress==false)
{
outgoingBs.Write((MessageID)ID_UDP_PROXY_GENERAL);
outgoingBs.Write((MessageID)ID_UDP_PROXY_RECIPIENT_GUID_NOT_CONNECTED_TO_COORDINATOR);
outgoingBs.Write(sata.senderClientAddress);
outgoingBs.Write(targetAddress);
outgoingBs.Write(targetGuid);
rakPeerInterface->Send(&outgoingBs, MEDIUM_PRIORITY, RELIABLE_ORDERED, 0, packet->systemAddress, false);
RakNet::OP_DELETE(fw, _FILE_AND_LINE_);
return;
}
fw->sata=sata;
fw->requestingAddress=packet->systemAddress;
if (serverList.GetSize()>1)
{
outgoingBs.Write((MessageID)ID_UDP_PROXY_GENERAL);
outgoingBs.Write((MessageID)ID_UDP_PROXY_PING_SERVERS_FROM_COORDINATOR_TO_CLIENT);
outgoingBs.Write(sourceAddress);
outgoingBs.Write(targetAddress);
unsigned short serverListSize = (unsigned short) serverList.GetSize();
outgoingBs.Write(serverListSize);
DataStructures::DefaultIndexType idx;
for (idx=0; idx < serverList.GetSize(); idx++)
outgoingBs.Write(serverList[idx]);
rakPeerInterface->Send(&outgoingBs, MEDIUM_PRIORITY, RELIABLE_ORDERED, 0, sourceAddress, false);
rakPeerInterface->Send(&outgoingBs, MEDIUM_PRIORITY, RELIABLE_ORDERED, 0, targetAddress, false);
fw->timeRequestedPings=RakNet::GetTimeMS();
DataStructures::DefaultIndexType copyIndex;
for (copyIndex=0; copyIndex < serverList.GetSize(); copyIndex++)
fw->remainingServersToTry.Push(serverList[copyIndex], _FILE_AND_LINE_ );
forwardingRequestList.InsertAtIndex(fw, insertionIndex, _FILE_AND_LINE_ );
}
else
{
fw->timeRequestedPings=0;
fw->currentlyAttemptedServerAddress=serverList[0];
forwardingRequestList.InsertAtIndex(fw, insertionIndex, _FILE_AND_LINE_ );
SendForwardingRequest(sourceAddress, targetAddress, fw->currentlyAttemptedServerAddress, fw->timeoutOnNoDataMS);
}
}
void UDPProxyCoordinator::SendForwardingRequest(SystemAddress sourceAddress, SystemAddress targetAddress, SystemAddress serverAddress, RakNet::TimeMS timeoutOnNoDataMS)
{
RakNet::BitStream outgoingBs;
// Send request to desired server
outgoingBs.Write((MessageID)ID_UDP_PROXY_GENERAL);
outgoingBs.Write((MessageID)ID_UDP_PROXY_FORWARDING_REQUEST_FROM_COORDINATOR_TO_SERVER);
outgoingBs.Write(sourceAddress);
outgoingBs.Write(targetAddress);
outgoingBs.Write(timeoutOnNoDataMS);
rakPeerInterface->Send(&outgoingBs, MEDIUM_PRIORITY, RELIABLE_ORDERED, 0, serverAddress, false);
}
void UDPProxyCoordinator::OnLoginRequestFromServerToCoordinator(Packet *packet)
{
RakNet::BitStream incomingBs(packet->data, packet->length, false);
incomingBs.IgnoreBytes(2);
RakNet::RakString password;
incomingBs.Read(password);
RakNet::BitStream outgoingBs;
if (remoteLoginPassword.IsEmpty())
{
outgoingBs.Write((MessageID)ID_UDP_PROXY_GENERAL);
outgoingBs.Write((MessageID)ID_UDP_PROXY_NO_PASSWORD_SET_FROM_COORDINATOR_TO_SERVER);
outgoingBs.Write(password);
rakPeerInterface->Send(&outgoingBs, MEDIUM_PRIORITY, RELIABLE_ORDERED, 0, packet->systemAddress, false);
return;
}
if (remoteLoginPassword!=password)
{
outgoingBs.Write((MessageID)ID_UDP_PROXY_GENERAL);
outgoingBs.Write((MessageID)ID_UDP_PROXY_WRONG_PASSWORD_FROM_COORDINATOR_TO_SERVER);
outgoingBs.Write(password);
rakPeerInterface->Send(&outgoingBs, MEDIUM_PRIORITY, RELIABLE_ORDERED, 0, packet->systemAddress, false);
return;
}
DataStructures::DefaultIndexType insertionIndex;
insertionIndex=serverList.GetInsertionIndex(packet->systemAddress);
if (insertionIndex==(DataStructures::DefaultIndexType)-1)
{
outgoingBs.Write((MessageID)ID_UDP_PROXY_GENERAL);
outgoingBs.Write((MessageID)ID_UDP_PROXY_ALREADY_LOGGED_IN_FROM_COORDINATOR_TO_SERVER);
outgoingBs.Write(password);
rakPeerInterface->Send(&outgoingBs, MEDIUM_PRIORITY, RELIABLE_ORDERED, 0, packet->systemAddress, false);
return;
}
serverList.InsertAtIndex(packet->systemAddress, insertionIndex, _FILE_AND_LINE_ );
outgoingBs.Write((MessageID)ID_UDP_PROXY_GENERAL);
outgoingBs.Write((MessageID)ID_UDP_PROXY_LOGIN_SUCCESS_FROM_COORDINATOR_TO_SERVER);
outgoingBs.Write(password);
rakPeerInterface->Send(&outgoingBs, MEDIUM_PRIORITY, RELIABLE_ORDERED, 0, packet->systemAddress, false);
}
void UDPProxyCoordinator::OnForwardingReplyFromServerToCoordinator(Packet *packet)
{
RakNet::BitStream incomingBs(packet->data, packet->length, false);
incomingBs.IgnoreBytes(2);
SenderAndTargetAddress sata;
incomingBs.Read(sata.senderClientAddress);
incomingBs.Read(sata.targetClientAddress);
DataStructures::DefaultIndexType index = forwardingRequestList.GetIndexOf(sata);
if (index==(DataStructures::DefaultIndexType)-1)
{
// The guy disconnected before the request finished
return;
}
ForwardingRequest *fw = forwardingRequestList[index];
UDPForwarderResult success;
unsigned char c;
incomingBs.Read(c);
success=(UDPForwarderResult)c;
RakNet::BitStream outgoingBs;
if (success==UDPFORWARDER_SUCCESS)
{
char serverIP[64];
packet->systemAddress.ToString(false,serverIP);
unsigned short forwardingPort;
incomingBs.Read(forwardingPort);
outgoingBs.Write((MessageID)ID_UDP_PROXY_GENERAL);
outgoingBs.Write((MessageID)ID_UDP_PROXY_FORWARDING_SUCCEEDED);
outgoingBs.Write(sata.senderClientAddress);
outgoingBs.Write(sata.targetClientAddress);
outgoingBs.Write(RakNet::RakString(serverIP));
outgoingBs.Write(forwardingPort);
rakPeerInterface->Send(&outgoingBs, MEDIUM_PRIORITY, RELIABLE_ORDERED, 0, fw->requestingAddress, false);
outgoingBs.Reset();
outgoingBs.Write((MessageID)ID_UDP_PROXY_GENERAL);
outgoingBs.Write((MessageID)ID_UDP_PROXY_FORWARDING_NOTIFICATION);
outgoingBs.Write(sata.senderClientAddress);
outgoingBs.Write(sata.targetClientAddress);
outgoingBs.Write(RakNet::RakString(serverIP));
outgoingBs.Write(forwardingPort);
rakPeerInterface->Send(&outgoingBs, MEDIUM_PRIORITY, RELIABLE_ORDERED, 0, sata.targetClientAddress, false);
// 05/18/09 Keep the entry around for some time after success, so duplicates are reported if attempting forwarding from the target system before notification of success
fw->timeoutAfterSuccess=RakNet::GetTimeMS()+fw->timeoutOnNoDataMS;
// forwardingRequestList.RemoveAtIndex(index);
// RakNet::OP_DELETE(fw,_FILE_AND_LINE_);
return;
}
else if (success==UDPFORWARDER_NO_SOCKETS)
{
// Try next server
TryNextServer(sata, fw);
}
else
{
RakAssert(success==UDPFORWARDER_FORWARDING_ALREADY_EXISTS);
// Return in progress
outgoingBs.Write((MessageID)ID_UDP_PROXY_GENERAL);
outgoingBs.Write((MessageID)ID_UDP_PROXY_IN_PROGRESS);
outgoingBs.Write(sata.senderClientAddress);
outgoingBs.Write(sata.targetClientAddress);
rakPeerInterface->Send(&outgoingBs, MEDIUM_PRIORITY, RELIABLE_ORDERED, 0, fw->requestingAddress, false);
forwardingRequestList.RemoveAtIndex(index,_FILE_AND_LINE_);
RakNet::OP_DELETE(fw,_FILE_AND_LINE_);
}
}
void UDPProxyCoordinator::OnPingServersReplyFromClientToCoordinator(Packet *packet)
{
RakNet::BitStream incomingBs(packet->data, packet->length, false);
incomingBs.IgnoreBytes(2);
unsigned short serversToPingSize;
SystemAddress serverAddress;
SenderAndTargetAddress sata;
incomingBs.Read(sata.senderClientAddress);
incomingBs.Read(sata.targetClientAddress);
DataStructures::DefaultIndexType index = forwardingRequestList.GetIndexOf(sata);
if (index==(DataStructures::DefaultIndexType)-1)
return;
unsigned short idx;
ServerWithPing swp;
ForwardingRequest *fw = forwardingRequestList[index];
if (fw->timeRequestedPings==0)
return;
incomingBs.Read(serversToPingSize);
if (packet->systemAddress==sata.senderClientAddress)
{
for (idx=0; idx < serversToPingSize; idx++)
{
incomingBs.Read(swp.serverAddress);
incomingBs.Read(swp.ping);
fw->sourceServerPings.Push(swp, swp.ping, _FILE_AND_LINE_);
}
}
else
{
for (idx=0; idx < serversToPingSize; idx++)
{
incomingBs.Read(swp.serverAddress);
incomingBs.Read(swp.ping);
fw->targetServerPings.Push(swp, swp.ping, _FILE_AND_LINE_);
}
}
// Both systems have to give us pings to progress here. Otherwise will timeout in Update()
if (fw->sourceServerPings.GetSize()>0 &&
fw->targetServerPings.GetSize()>0)
{
fw->OrderRemainingServersToTry();
fw->timeRequestedPings=0;
TryNextServer(fw->sata, fw);
}
}
void UDPProxyCoordinator::TryNextServer(SenderAndTargetAddress sata, ForwardingRequest *fw)
{
bool pickedGoodServer=false;
while(fw->remainingServersToTry.GetSize()>0)
{
fw->currentlyAttemptedServerAddress=fw->remainingServersToTry.Pop(_FILE_AND_LINE_ );
if (serverList.GetIndexOf(fw->currentlyAttemptedServerAddress)!=(DataStructures::DefaultIndexType)-1)
{
pickedGoodServer=true;
break;
}
}
if (pickedGoodServer==false)
{
SendAllBusy(sata.senderClientAddress, sata.targetClientAddress, fw->requestingAddress);
forwardingRequestList.RemoveAtKey(sata,true,_FILE_AND_LINE_);
RakNet::OP_DELETE(fw,_FILE_AND_LINE_);
return;
}
SendForwardingRequest(sata.senderClientAddress, sata.targetClientAddress, fw->currentlyAttemptedServerAddress, fw->timeoutOnNoDataMS);
}
void UDPProxyCoordinator::SendAllBusy(SystemAddress senderClientAddress, SystemAddress targetClientAddress, SystemAddress requestingAddress)
{
RakNet::BitStream outgoingBs;
outgoingBs.Write((MessageID)ID_UDP_PROXY_GENERAL);
outgoingBs.Write((MessageID)ID_UDP_PROXY_ALL_SERVERS_BUSY);
outgoingBs.Write(senderClientAddress);
outgoingBs.Write(targetClientAddress);
rakPeerInterface->Send(&outgoingBs, MEDIUM_PRIORITY, RELIABLE_ORDERED, 0, requestingAddress, false);
}
void UDPProxyCoordinator::Clear(void)
{
serverList.Clear(true, _FILE_AND_LINE_);
forwardingRequestList.ClearPointers(true, _FILE_AND_LINE_);
}
void UDPProxyCoordinator::ForwardingRequest::OrderRemainingServersToTry(void)
{
DataStructures::Multilist<ML_ORDERED_LIST,UDPProxyCoordinator::ServerWithPing,unsigned short> swpList;
swpList.SetSortOrder(true);
if (sourceServerPings.GetSize()==0 && targetServerPings.GetSize()==0)
return;
DataStructures::DefaultIndexType idx;
UDPProxyCoordinator::ServerWithPing swp;
for (idx=0; idx < remainingServersToTry.GetSize(); idx++)
{
swp.serverAddress=remainingServersToTry[idx];
swp.ping=0;
if (sourceServerPings.GetSize())
swp.ping+=(unsigned short) (sourceServerPings[idx].ping);
else
swp.ping+=(unsigned short) (DEFAULT_CLIENT_UNRESPONSIVE_PING_TIME);
if (targetServerPings.GetSize())
swp.ping+=(unsigned short) (targetServerPings[idx].ping);
else
swp.ping+=(unsigned short) (DEFAULT_CLIENT_UNRESPONSIVE_PING_TIME);
swpList.Push(swp, swp.ping, _FILE_AND_LINE_);
}
remainingServersToTry.Clear(true, _FILE_AND_LINE_ );
for (idx=0; idx < swpList.GetSize(); idx++)
{
remainingServersToTry.Push(swpList[idx].serverAddress, _FILE_AND_LINE_ );
}
}
#endif // _RAKNET_SUPPORT_*
| [
"cedric.guillemet@gmail.com"
] | cedric.guillemet@gmail.com |
83209ec2e53210d960975cc0d6b35c0f23f2de70 | ac43fe21f06b0795f5a3b90471ab44baf5b9702e | /src/worker/WorkerThreadPool.cpp | ab6c0568050fb9e072d87797ae78ec7fb7ddbd09 | [
"Apache-2.0"
] | permissive | andypeng2015/Faasm | 6959ea6b85490f57cfd032ca79eb2b4651282c36 | f8f55eaa64dc74cf9ff55022df9c7ca6510874bb | refs/heads/master | 2020-12-22T22:01:19.469458 | 2020-01-28T14:20:57 | 2020-01-28T14:20:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,856 | cpp | #include <worker/WorkerThread.h>
#include "WorkerThreadPool.h"
#include <scheduler/GlobalMessageBus.h>
#include <scheduler/SharingMessageBus.h>
#include <worker/worker.h>
namespace worker {
WorkerThreadPool::WorkerThreadPool(int nThreads) :
_shutdown(false),
scheduler(scheduler::getScheduler()),
threadTokenPool(nThreads) {
// Ensure we can ping both redis instances
redis::Redis::getQueue().ping();
redis::Redis::getState().ping();
}
void WorkerThreadPool::startGlobalQueueThread() {
const std::shared_ptr<spdlog::logger> &logger = util::getLogger();
util::SystemConfig &conf = util::getSystemConfig();
logger->info("Starting global queue listener on {}", conf.queueName);
globalQueueThread = std::thread([this, &conf, &logger] {
scheduler::GlobalMessageBus &bus = scheduler::getGlobalMessageBus();
scheduler::Scheduler &sch = scheduler::getScheduler();
while (!this->isShutdown()) {
try {
message::Message msg = bus.nextMessage(conf.globalMessageTimeout);
logger->debug("Got invocation for {} on {}", util::funcToString(msg, true), conf.queueName);
sch.callFunction(msg);
}
catch (scheduler::GlobalMessageBusNoMessageException &ex) {
logger->info("No message from global bus in {}ms, dropping out", conf.globalMessageTimeout);
return;
}
}
// Will die gracefully at this point
});
// Waits for the queue to time out
globalQueueThread.join();
}
void WorkerThreadPool::startSharingThread() {
const std::shared_ptr<spdlog::logger> &logger = util::getLogger();
logger->info("Starting work sharing listener");
sharingQueueThread = std::thread([this] {
scheduler::SharingMessageBus &sharingBus = scheduler::SharingMessageBus::getInstance();
scheduler::Scheduler &sch = scheduler::getScheduler();
const std::string nodeId = util::getNodeId();
while (!this->isShutdown()) {
const std::shared_ptr<spdlog::logger> &logger = util::getLogger();
try {
message::Message msg = sharingBus.nextMessageForThisNode();
// Clear out this worker node if we've received a flush message
if(msg.isflushrequest()) {
flushWorkerHost();
preparePythonRuntime();
continue;
}
// This calls the scheduler, which will always attempt
// to execute locally. However, if not possible, this will
// again share the message, increasing the hops
const std::string funcStr = util::funcToString(msg, true);
logger->debug("{} received shared call {} (scheduled for {})", nodeId, funcStr,
msg.schedulednode());
sch.callFunction(msg);
}
catch (redis::RedisNoResponseException &ex) {
continue;
}
}
// Will die gracefully at this point
});
}
void WorkerThreadPool::startThreadPool() {
const std::shared_ptr<spdlog::logger> &logger = util::getLogger();
logger->info("Starting worker thread pool");
// Spawn worker threads until we've hit the worker limit, thus creating a pool
// that will replenish when one releases its token
poolThread = std::thread([this] {
const std::shared_ptr<spdlog::logger> &logger = util::getLogger();
while (!this->isShutdown()) {
// Try to get an available slot (blocks if none available)
int threadIdx = this->getThreadToken();
// Double check shutdown condition
if (this->isShutdown()) {
break;
}
// Spawn thread to execute function
poolThreads.emplace_back(std::thread([this, threadIdx] {
WorkerThread w(threadIdx);
// Worker will now run for a long time
w.run();
// Handle thread finishing
threadTokenPool.releaseToken(w.threadIdx);
}));
}
// Once shut down, wait for everything to die
logger->info("Waiting for {} worker threads", poolThreads.size());
for (auto &t : poolThreads) {
if (t.joinable()) {
t.join();
}
}
// Will die gracefully at this point
});
// Prepare the python runtime (no-op if not necessary)
preparePythonRuntime();
}
void WorkerThreadPool::preparePythonRuntime() {
const std::shared_ptr<spdlog::logger> &logger = util::getLogger();
util::SystemConfig &conf = util::getSystemConfig();
if(conf.pythonPreload != "on") {
logger->info("Not preloading python runtime");
return;
}
logger->info("Preparing python runtime");
message::Message msg = util::messageFactory(PYTHON_USER, PYTHON_FUNC);
msg.set_ispython(true);
msg.set_pythonuser("python");
msg.set_pythonfunction("noop");
util::setMessageId(msg);
scheduler.callFunction(msg, true);
logger->info("Python runtime prepared");
}
void WorkerThreadPool::reset() {
threadTokenPool.reset();
}
int WorkerThreadPool::getThreadToken() {
return threadTokenPool.getToken();
}
int WorkerThreadPool::getThreadCount() {
return threadTokenPool.taken();
}
bool WorkerThreadPool::isShutdown() {
return _shutdown;
}
void WorkerThreadPool::shutdown() {
_shutdown = true;
const std::shared_ptr<spdlog::logger> &logger = util::getLogger();
if (globalQueueThread.joinable()) {
logger->info("Waiting for global queue thread to finish");
globalQueueThread.join();
}
if (stateThread.joinable()) {
logger->info("Waiting for state thread to finish");
stateThread.join();
}
if (sharingQueueThread.joinable()) {
logger->info("Waiting for sharing queue thread to finish");
sharingQueueThread.join();
}
if (poolThread.joinable()) {
logger->info("Waiting for pool to finish");
poolThread.join();
}
logger->info("Worker pool successfully shut down");
}
}
| [
"noreply@github.com"
] | andypeng2015.noreply@github.com |
bcffaf73f299af37019d524bb731a93e43220db9 | 4a21fd10b9ee9e84ee3c88cf9d98e029a74b3710 | /app/GL/GLShapeElement.h | ec8c395c47d6f5f130989d4ebcabdb281b1a3b12 | [
"MIT"
] | permissive | 0x50Fc/kk-game | bb114c22162b9c94932cfb63488c91010f3e3721 | 56463c13347a5608e54ae0a069b0b9263f32d7c8 | refs/heads/master | 2022-08-04T14:17:10.879769 | 2018-10-31T03:14:47 | 2018-10-31T03:14:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 669 | h | //
// GLShapeElement.h
// KKGame
//
// Created by zhanghailong on 2018/4/27.
// Copyright © 2018年 kkmofang.cn. All rights reserved.
//
#ifndef GLShapeElement_h
#define GLShapeElement_h
#include "GLContext.h"
namespace kk {
namespace GL {
class ShapeElement : public Element {
public:
virtual void changedKey(String& key);
virtual void onDraw(Context * context);
vec4 color;
KK_DEF_ELEMENT_CREATE(ShapeElement)
DEF_SCRIPT_CLASS_NOALLOC
protected:
};
}
}
#endif /* GLShapeElement_hpp */
| [
"hailong11@staff.weibo.com"
] | hailong11@staff.weibo.com |
77515741e72bc9fa89943e5a08b1ceac9ea714c6 | 5f794e0d109fbf536ffa5cebff1080da3ded39f8 | /src/test/streams_tests.cpp | bdc682cb6e54c25d36156b964df2ed7091c46d05 | [
"MIT"
] | permissive | sighttviewliu/RoyalBitcoin-1 | dbb85ab6975d19177f6de5534dba915a98c0a462 | 5e3e3c05f346a1e1d4a8908743574db0a070d723 | refs/heads/master | 2021-09-03T09:49:37.381083 | 2018-01-08T05:48:44 | 2018-01-08T05:48:44 | 116,490,156 | 2 | 0 | null | 2018-01-08T05:48:45 | 2018-01-06T14:40:34 | C++ | UTF-8 | C++ | false | false | 4,262 | cpp | // Copyright (c) 2012-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 "streams.h"
#include "support/allocators/zeroafterfree.h"
#include "test/test_royalbitcoin.h"
#include <boost/assign/std/vector.hpp> // for 'operator+=()'
#include <boost/test/unit_test.hpp>
using namespace boost::assign; // bring 'operator+=()' into scope
BOOST_FIXTURE_TEST_SUITE(streams_tests, BasicTestingSetup)
BOOST_AUTO_TEST_CASE(streams_vector_writer)
{
unsigned char a(1);
unsigned char b(2);
unsigned char bytes[] = { 3, 4, 5, 6 };
std::vector<unsigned char> vch;
// Each test runs twice. Serializing a second time at the same starting
// point should yield the same results, even if the first test grew the
// vector.
CVectorWriter(SER_NETWORK, INIT_PROTO_VERSION, vch, 0, a, b);
BOOST_CHECK((vch == std::vector<unsigned char>{{1, 2}}));
CVectorWriter(SER_NETWORK, INIT_PROTO_VERSION, vch, 0, a, b);
BOOST_CHECK((vch == std::vector<unsigned char>{{1, 2}}));
vch.clear();
CVectorWriter(SER_NETWORK, INIT_PROTO_VERSION, vch, 2, a, b);
BOOST_CHECK((vch == std::vector<unsigned char>{{0, 0, 1, 2}}));
CVectorWriter(SER_NETWORK, INIT_PROTO_VERSION, vch, 2, a, b);
BOOST_CHECK((vch == std::vector<unsigned char>{{0, 0, 1, 2}}));
vch.clear();
vch.resize(5, 0);
CVectorWriter(SER_NETWORK, INIT_PROTO_VERSION, vch, 2, a, b);
BOOST_CHECK((vch == std::vector<unsigned char>{{0, 0, 1, 2, 0}}));
CVectorWriter(SER_NETWORK, INIT_PROTO_VERSION, vch, 2, a, b);
BOOST_CHECK((vch == std::vector<unsigned char>{{0, 0, 1, 2, 0}}));
vch.clear();
vch.resize(4, 0);
CVectorWriter(SER_NETWORK, INIT_PROTO_VERSION, vch, 3, a, b);
BOOST_CHECK((vch == std::vector<unsigned char>{{0, 0, 0, 1, 2}}));
CVectorWriter(SER_NETWORK, INIT_PROTO_VERSION, vch, 3, a, b);
BOOST_CHECK((vch == std::vector<unsigned char>{{0, 0, 0, 1, 2}}));
vch.clear();
vch.resize(4, 0);
CVectorWriter(SER_NETWORK, INIT_PROTO_VERSION, vch, 4, a, b);
BOOST_CHECK((vch == std::vector<unsigned char>{{0, 0, 0, 0, 1, 2}}));
CVectorWriter(SER_NETWORK, INIT_PROTO_VERSION, vch, 4, a, b);
BOOST_CHECK((vch == std::vector<unsigned char>{{0, 0, 0, 0, 1, 2}}));
vch.clear();
CVectorWriter(SER_NETWORK, INIT_PROTO_VERSION, vch, 0, FLATDATA(bytes));
BOOST_CHECK((vch == std::vector<unsigned char>{{3, 4, 5, 6}}));
CVectorWriter(SER_NETWORK, INIT_PROTO_VERSION, vch, 0, FLATDATA(bytes));
BOOST_CHECK((vch == std::vector<unsigned char>{{3, 4, 5, 6}}));
vch.clear();
vch.resize(4, 8);
CVectorWriter(SER_NETWORK, INIT_PROTO_VERSION, vch, 2, a, FLATDATA(bytes), b);
BOOST_CHECK((vch == std::vector<unsigned char>{{8, 8, 1, 3, 4, 5, 6, 2}}));
CVectorWriter(SER_NETWORK, INIT_PROTO_VERSION, vch, 2, a, FLATDATA(bytes), b);
BOOST_CHECK((vch == std::vector<unsigned char>{{8, 8, 1, 3, 4, 5, 6, 2}}));
vch.clear();
}
BOOST_AUTO_TEST_CASE(streams_serializedata_xor)
{
std::vector<char> in;
std::vector<char> expected_xor;
std::vector<unsigned char> key;
CDataStream ds(in, 0, 0);
// Degenerate case
key += '\x00','\x00';
ds.Xor(key);
BOOST_CHECK_EQUAL(
std::string(expected_xor.begin(), expected_xor.end()),
std::string(ds.begin(), ds.end()));
in += '\x0f','\xf0';
expected_xor += '\xf0','\x0f';
// Single character key
ds.clear();
ds.insert(ds.begin(), in.begin(), in.end());
key.clear();
key += '\xff';
ds.Xor(key);
BOOST_CHECK_EQUAL(
std::string(expected_xor.begin(), expected_xor.end()),
std::string(ds.begin(), ds.end()));
// Multi character key
in.clear();
expected_xor.clear();
in += '\xf0','\x0f';
expected_xor += '\x0f','\x00';
ds.clear();
ds.insert(ds.begin(), in.begin(), in.end());
key.clear();
key += '\xff','\x0f';
ds.Xor(key);
BOOST_CHECK_EQUAL(
std::string(expected_xor.begin(), expected_xor.end()),
std::string(ds.begin(), ds.end()));
}
BOOST_AUTO_TEST_SUITE_END()
| [
"liaoyeping@earthledger.com"
] | liaoyeping@earthledger.com |
c625f44688740a9d24dc02c6640dd91714ed3a32 | 17c3e190832a88acf7d97d22d048a927a2bacaef | /src/wam_node.cpp | 77cd1a7eb53b0beafb9ba3a6d27f2b01ef5938ff | [] | no_license | cbuscaron/wam_node | 58f4731baa5929b574f8cc8d1ff9710cda1d6794 | f7a4f60c7d84b7cddda9643387f822423ede50cc | refs/heads/master | 2021-01-09T06:11:43.107048 | 2017-02-04T19:12:28 | 2017-02-04T19:12:28 | 80,935,169 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 35,769 | cpp | /*
Copyright 2012 Barrett Technology <support@barrett.com>
This file is part of barrett-ros-pkg.
This version of barrett-ros-pkg 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 3 of the
License, or (at your option) any later version.
This version of barrett-ros-pkg 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 version of barrett-ros-pkg. If not, see
<http://www.gnu.org/licenses/>.
Barrett Technology holds all copyrights on barrett-ros-pkg. As the sole
copyright holder, Barrett reserves the right to release future versions
of barrett-ros-pkg under a different license.
File: wam_node.cpp
Date: 5 June, 2012
Author: Kyle Maroney
*/
/*Made catkin compatible and newer ROS friendly by Benjamin Blumer */
#include <unistd.h>
#include <math.h>
#include <boost/thread.hpp> // BarrettHand threading
#include <boost/bind.hpp>
#include "ros/ros.h"
#include "tf/transform_datatypes.h"
#include "wam_common/RTJointPos.h"
#include "wam_common/RTJointVel.h"
#include "wam_common/RTCartPos.h"
#include "wam_common/RTCartVel.h"
#include "wam_common/RTOrtnPos.h"
#include "wam_common/RTOrtnVel.h"
#include "wam_common/GravityComp.h"
#include "wam_common/Hold.h"
#include "wam_common/JointMove.h"
#include "wam_common/PoseMove.h"
#include "wam_common/CartPosMove.h"
#include "wam_common/OrtnMove.h"
#include "wam_common/BHandFingerPos.h"
#include "wam_common/BHandGraspPos.h"
#include "wam_common/BHandSpreadPos.h"
#include "wam_common/BHandFingerVel.h"
#include "wam_common/BHandGraspVel.h"
#include "wam_common/BHandSpreadVel.h"
#include "std_srvs/Empty.h"
#include "sensor_msgs/JointState.h"
#include "geometry_msgs/PoseStamped.h"
#include <barrett/math.h>
#include <barrett/units.h>
#include <barrett/systems.h>
#include <barrett/products/product_manager.h>
#include <barrett/standard_main_function.h>
#include <barrett/systems/wam.h>
#include <barrett/detail/stl_utils.h>
typedef tf::Quaternion btQuaternion;
typedef tf::Matrix3x3 btMatrix3x3;
static const int PUBLISH_FREQ = 250; // Default Control Loop / Publishing Frequency
static const int BHAND_PUBLISH_FREQ = 5; // Publishing Frequency for the BarretHand
static const double SPEED = 0.5; // Default Cartesian Velocity
using namespace barrett;
//Creating a templated multiplier for our real-time computation
template<typename T1, typename T2, typename OutputType>
class Multiplier : public systems::System, public systems::SingleOutput<OutputType>
{
public:
Input<T1> input1;
public:
Input<T2> input2;
public:
Multiplier(std::string sysName = "Multiplier") :
systems::System(sysName), systems::SingleOutput<OutputType>(this), input1(this), input2(this)
{
}
virtual ~Multiplier()
{
mandatoryCleanUp();
}
protected:
OutputType data;
virtual void operate()
{
data = input1.getValue() * input2.getValue();
this->outputValue->setData(&data);
}
private:
DISALLOW_COPY_AND_ASSIGN(Multiplier);
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
};
//Creating a templated converter from Roll, Pitch, Yaw to Quaternion for real-time computation
class ToQuaternion : public systems::SingleIO<math::Vector<3>::type, Eigen::Quaterniond>
{
public:
Eigen::Quaterniond outputQuat;
public:
ToQuaternion(std::string sysName = "ToQuaternion") :
systems::SingleIO<math::Vector<3>::type, Eigen::Quaterniond>(sysName)
{
}
virtual ~ToQuaternion()
{
mandatoryCleanUp();
}
protected:
btQuaternion q;
virtual void operate()
{
const math::Vector<3>::type &inputRPY = input.getValue();
q.setEulerZYX(inputRPY[2], inputRPY[1], inputRPY[0]);
outputQuat.x() = q.getX();
outputQuat.y() = q.getY();
outputQuat.z() = q.getZ();
outputQuat.w() = q.getW();
this->outputValue->setData(&outputQuat);
}
private:
DISALLOW_COPY_AND_ASSIGN(ToQuaternion);
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
};
//Simple Function for converting Quaternion to RPY
math::Vector<3>::type toRPY(Eigen::Quaterniond inquat)
{
math::Vector<3>::type newRPY;
btQuaternion q(inquat.x(), inquat.y(), inquat.z(), inquat.w());
btMatrix3x3(q).getEulerZYX(newRPY[2], newRPY[1], newRPY[0]);
return newRPY;
}
//WamNode Class
template<size_t DOF>
class WamNode
{
BARRETT_UNITS_TEMPLATE_TYPEDEFS(DOF);
protected:
bool cart_vel_status, ortn_vel_status, jnt_vel_status;
bool jnt_pos_status, cart_pos_status, ortn_pos_status, new_rt_cmd;
double cart_vel_mag, ortn_vel_mag;
systems::Wam<DOF>& wam;
Hand* hand;
jp_type jp, jp_cmd, jp_home;
jp_type rt_jp_cmd, rt_jp_rl;
jv_type rt_jv_cmd;
cp_type cp_cmd, rt_cv_cmd;
cp_type rt_cp_cmd, rt_cp_rl;
Eigen::Quaterniond ortn_cmd, rt_op_cmd, rt_op_rl;
pose_type pose_cmd;
math::Vector<3>::type rt_ortn_cmd;
systems::ExposedOutput<Eigen::Quaterniond> orientationSetPoint, current_ortn;
systems::ExposedOutput<cp_type> cart_dir, current_cart_pos, cp_track;
systems::ExposedOutput<math::Vector<3>::type> rpy_cmd, current_rpy_ortn;
systems::ExposedOutput<jv_type> jv_track;
systems::ExposedOutput<jp_type> jp_track;
systems::TupleGrouper<cp_type, Eigen::Quaterniond> rt_pose_cmd;
systems::Summer<cp_type> cart_pos_sum;
systems::Summer<math::Vector<3>::type> ortn_cmd_sum;
systems::Ramp ramp;
systems::RateLimiter<jp_type> jp_rl;
systems::RateLimiter<cp_type> cp_rl;
Multiplier<double, cp_type, cp_type> mult_linear;
Multiplier<double, math::Vector<3>::type, math::Vector<3>::type> mult_angular;
ToQuaternion to_quat, to_quat_print;
Eigen::Quaterniond ortn_print;
ros::Time last_cart_vel_msg_time, last_ortn_vel_msg_time, last_jnt_vel_msg_time;
ros::Time last_jnt_pos_msg_time, last_cart_pos_msg_time, last_ortn_pos_msg_time;
ros::Duration rt_msg_timeout;
//Subscribed Topics
wam_common::RTCartVel cart_vel_cmd;
wam_common::RTOrtnVel ortn_vel_cmd;
//Subscribers
ros::Subscriber cart_vel_sub;
ros::Subscriber ortn_vel_sub;
ros::Subscriber jnt_vel_sub;
ros::Subscriber jnt_pos_sub;
ros::Subscriber cart_pos_sub;
ros::Subscriber ortn_pos_sub;
//Published Topics
sensor_msgs::JointState wam_joint_state, bhand_joint_state;
geometry_msgs::PoseStamped wam_pose;
//Publishers
ros::Publisher wam_joint_state_pub, bhand_joint_state_pub, wam_pose_pub;
//Services
ros::ServiceServer gravity_srv, go_home_srv, hold_jpos_srv, hold_cpos_srv;
ros::ServiceServer hold_ortn_srv, joint_move_srv, pose_move_srv;
ros::ServiceServer cart_move_srv, ortn_move_srv, hand_close_srv;
ros::ServiceServer hand_open_grsp_srv, hand_close_grsp_srv, hand_open_sprd_srv;
ros::ServiceServer hand_close_sprd_srv, hand_fngr_pos_srv, hand_fngr_vel_srv;
ros::ServiceServer hand_grsp_pos_srv, hand_grsp_vel_srv, hand_sprd_pos_srv;
ros::ServiceServer hand_sprd_vel_srv;
public:
WamNode(systems::Wam<DOF>& wam_) :
wam(wam_), hand(NULL), ramp(NULL, SPEED)
{
}
void
init(ProductManager& pm);
~WamNode()
{
}
bool
gravity(wam_common::GravityComp::Request &req, wam_common::GravityComp::Response &res);
bool
goHome(std_srvs::Empty::Request &req, std_srvs::Empty::Response &res);
bool
holdJPos(wam_common::Hold::Request &req, wam_common::Hold::Response &res);
bool
holdCPos(wam_common::Hold::Request &req, wam_common::Hold::Response &res);
bool
holdOrtn(wam_common::Hold::Request &req, wam_common::Hold::Response &res);
bool
jointMove(wam_common::JointMove::Request &req, wam_common::JointMove::Response &res);
bool
poseMove(wam_common::PoseMove::Request &req, wam_common::PoseMove::Response &res);
bool
cartMove(wam_common::CartPosMove::Request &req, wam_common::CartPosMove::Response &res);
bool
ortnMove(wam_common::OrtnMove::Request &req, wam_common::OrtnMove::Response &res);
bool
handOpenGrasp(std_srvs::Empty::Request &req, std_srvs::Empty::Response &res);
bool
handCloseGrasp(std_srvs::Empty::Request &req, std_srvs::Empty::Response &res);
bool
handOpenSpread(std_srvs::Empty::Request &req, std_srvs::Empty::Response &res);
bool
handCloseSpread(std_srvs::Empty::Request &req, std_srvs::Empty::Response &res);
bool
handFingerPos(wam_common::BHandFingerPos::Request &req, wam_common::BHandFingerPos::Response &res);
bool
handGraspPos(wam_common::BHandGraspPos::Request &req, wam_common::BHandGraspPos::Response &res);
bool
handSpreadPos(wam_common::BHandSpreadPos::Request &req, wam_common::BHandSpreadPos::Response &res);
bool
handFingerVel(wam_common::BHandFingerVel::Request &req, wam_common::BHandFingerVel::Response &res);
bool
handGraspVel(wam_common::BHandGraspVel::Request &req, wam_common::BHandGraspVel::Response &res);
bool
handSpreadVel(wam_common::BHandSpreadVel::Request &req, wam_common::BHandSpreadVel::Response &res);
void
cartVelCB(const wam_common::RTCartVel::ConstPtr& msg);
void
ortnVelCB(const wam_common::RTOrtnVel::ConstPtr& msg);
void
jntVelCB(const wam_common::RTJointVel::ConstPtr& msg);
void
jntPosCB(const wam_common::RTJointPos::ConstPtr& msg);
void
cartPosCB(const wam_common::RTCartPos::ConstPtr& msg);
void
publishWam(ProductManager& pm);
void
publishHand(void);
void
updateRT(ProductManager& pm);
};
// Templated Initialization Function
template<size_t DOF>
void WamNode<DOF>::init(ProductManager& pm)
{
ros::NodeHandle n_("wam"); // WAM specific nodehandle
ros::NodeHandle nh_("bhand"); // BarrettHand specific nodehandle
//Setting up real-time command timeouts and initial values
cart_vel_status = false; //Bool for determining cartesian velocity real-time state
ortn_vel_status = false; //Bool for determining orientation velocity real-time state
new_rt_cmd = false; //Bool for determining if a new real-time message was received
rt_msg_timeout.fromSec(0.3); //rt_status will be determined false if rt message is not received in specified time
cart_vel_mag = SPEED; //Setting default cartesian velocity magnitude to SPEED
ortn_vel_mag = SPEED;
pm.getExecutionManager()->startManaging(ramp); //starting ramp manager
ROS_INFO(" \n %zu-DOF WAM", DOF);
jp_home = wam.getJointPositions();
if (pm.foundHand()) //Does the following only if a BarrettHand is present
{
std::cout << "Barrett Hand" << std::endl;
hand = pm.getHand();
// Adjust the torque limits to allow for BarrettHand movements at extents
pm.getSafetyModule()->setTorqueLimit(3.0);
// Move j3 in order to give room for hand initialization
jp_type jp_init = wam.getJointPositions();
jp_init[3] -= 0.35;
usleep(500000);
wam.moveTo(jp_init);
usleep(500000);
hand->initialize();
hand->update();
//Publishing the following topics only if there is a BarrettHand present
bhand_joint_state_pub = nh_.advertise < sensor_msgs::JointState > ("joint_states", 1); // bhand/joint_states
//Advertise the following services only if there is a BarrettHand present
hand_open_grsp_srv = nh_.advertiseService("open_grasp", &WamNode<DOF>::handOpenGrasp, this); // bhand/open_grasp
hand_close_grsp_srv = nh_.advertiseService("close_grasp", &WamNode::handCloseGrasp, this); // bhand/close_grasp
hand_open_sprd_srv = nh_.advertiseService("open_spread", &WamNode::handOpenSpread, this); // bhand/open_spread
hand_close_sprd_srv = nh_.advertiseService("close_spread", &WamNode::handCloseSpread, this); // bhand/close_spread
hand_fngr_pos_srv = nh_.advertiseService("finger_pos", &WamNode::handFingerPos, this); // bhand/finger_pos
hand_grsp_pos_srv = nh_.advertiseService("grasp_pos", &WamNode::handGraspPos, this); // bhand/grasp_pos
hand_sprd_pos_srv = nh_.advertiseService("spread_pos", &WamNode::handSpreadPos, this); // bhand/spread_pos
hand_fngr_vel_srv = nh_.advertiseService("finger_vel", &WamNode::handFingerVel, this); // bhand/finger_vel
hand_grsp_vel_srv = nh_.advertiseService("grasp_vel", &WamNode::handGraspVel, this); // bhand/grasp_vel
hand_sprd_vel_srv = nh_.advertiseService("spread_vel", &WamNode::handSpreadVel, this); // bhand/spread_vel
//Set up the BarrettHand joint state publisher
const char* bhand_jnts[] = {"inner_f1", "inner_f2", "inner_f3", "spread", "outer_f1", "outer_f2", "outer_f3"};
std::vector < std::string > bhand_joints(bhand_jnts, bhand_jnts + 7);
bhand_joint_state.name.resize(7);
bhand_joint_state.name = bhand_joints;
bhand_joint_state.position.resize(7);
}
wam.gravityCompensate(true); // Turning on Gravity Compenstation by Default when starting the WAM Node
//Setting up WAM joint state publisher
const char* wam_jnts[] = {"wam_j1", "wam_j2", "wam_j3", "wam_j4", "wam_j5", "wam_j6", "wam_j7"};
std::vector < std::string > wam_joints(wam_jnts, wam_jnts + 7);
wam_joint_state.name = wam_joints;
wam_joint_state.name.resize(DOF);
wam_joint_state.position.resize(DOF);
wam_joint_state.velocity.resize(DOF);
wam_joint_state.effort.resize(DOF);
//Publishing the following rostopics
wam_joint_state_pub = n_.advertise < sensor_msgs::JointState > ("joint_states", 1); // wam/joint_states
wam_pose_pub = n_.advertise < geometry_msgs::PoseStamped > ("pose", 1); // wam/pose
//Subscribing to the following rostopics
cart_vel_sub = n_.subscribe("cart_vel_cmd", 1, &WamNode::cartVelCB, this); // wam/cart_vel_cmd
ortn_vel_sub = n_.subscribe("ortn_vel_cmd", 1, &WamNode::ortnVelCB, this); // wam/ortn_vel_cmd
jnt_vel_sub = n_.subscribe("jnt_vel_cmd", 1, &WamNode::jntVelCB, this); // wam/jnt_vel_cmd
jnt_pos_sub = n_.subscribe("jnt_pos_cmd", 1, &WamNode::jntPosCB, this); // wam/jnt_pos_cmd
cart_pos_sub = n_.subscribe("cart_pos_cmd", 1, &WamNode::cartPosCB, this); // wam/cart_pos_cmd
//Advertising the following rosservices
gravity_srv = n_.advertiseService("gravity_comp", &WamNode::gravity, this); // wam/gravity_comp
go_home_srv = n_.advertiseService("go_home", &WamNode::goHome, this); // wam/go_home
hold_jpos_srv = n_.advertiseService("hold_joint_pos", &WamNode::holdJPos, this); // wam/hold_joint_pos
hold_cpos_srv = n_.advertiseService("hold_cart_pos", &WamNode::holdCPos, this); // wam/hold_cart_pos
hold_ortn_srv = n_.advertiseService("hold_ortn", &WamNode::holdOrtn, this); // wam/hold_ortn
joint_move_srv = n_.advertiseService("joint_move", &WamNode::jointMove, this); // wam/joint_move
pose_move_srv = n_.advertiseService("pose_move", &WamNode::poseMove, this); // wam/pose_move
cart_move_srv = n_.advertiseService("cart_move", &WamNode::cartMove, this); // wam/cart_pos_move
ortn_move_srv = n_.advertiseService("ortn_move", &WamNode::ortnMove, this); // wam/ortn_move
}
// gravity_comp service callback
template<size_t DOF>
bool WamNode<DOF>::gravity(wam_common::GravityComp::Request &req, wam_common::GravityComp::Response &res)
{
wam.gravityCompensate(req.gravity);
ROS_INFO("Gravity Compensation Request: %s", (req.gravity) ? "true" : "false");
return true;
}
// goHome Function for sending the WAM safely back to its home starting position.
template<size_t DOF>
bool WamNode<DOF>::goHome(std_srvs::Empty::Request &req, std_srvs::Empty::Response &res)
{
ROS_INFO("Returning to Home Position");
if (hand != NULL)
{
hand->open(Hand::GRASP, true);
hand->close(Hand::SPREAD, true);
}
for (size_t i = 0; i < DOF; i++)
jp_cmd[i] = 0.0;
wam.moveTo(jp_cmd, true);
jp_home[3] -= 0.3;
wam.moveTo(jp_home, true);
jp_home[3] += 0.3;
wam.moveTo(jp_home, true);
return true;
}
//Function to hold WAM Joint Positions
template<size_t DOF>
bool WamNode<DOF>::holdJPos(wam_common::Hold::Request &req, wam_common::Hold::Response &res)
{
ROS_INFO("Joint Position Hold request: %s", (req.hold) ? "true" : "false");
if (req.hold)
wam.moveTo(wam.getJointPositions());
else
wam.idle();
return true;
}
//Function to hold WAM end effector Cartesian Position
template<size_t DOF>
bool WamNode<DOF>::holdCPos(wam_common::Hold::Request &req, wam_common::Hold::Response &res)
{
ROS_INFO("Cartesian Position Hold request: %s", (req.hold) ? "true" : "false");
if (req.hold)
wam.moveTo(wam.getToolPosition());
else
wam.idle();
return true;
}
//Function to hold WAM end effector Orientation
template<size_t DOF>
bool WamNode<DOF>::holdOrtn(wam_common::Hold::Request &req, wam_common::Hold::Response &res)
{
ROS_INFO("Orientation Hold request: %s", (req.hold) ? "true" : "false");
if (req.hold)
{
orientationSetPoint.setValue(wam.getToolOrientation());
wam.trackReferenceSignal(orientationSetPoint.output);
}
else
wam.idle();
return true;
}
//Function to command a joint space move to the WAM
template<size_t DOF>
bool WamNode<DOF>::jointMove(wam_common::JointMove::Request &req, wam_common::JointMove::Response &res)
{
if (req.joints.size() != DOF)
{
ROS_INFO("Request Failed: %zu-DOF request received, must be %zu-DOF", req.joints.size(), DOF);
return false;
}
ROS_INFO("Moving Robot to Commanded Joint Pose");
for (size_t i = 0; i < DOF; i++)
jp_cmd[i] = req.joints[i];
wam.moveTo(jp_cmd, false);
return true;
}
//Function to command a pose move to the WAM
template<size_t DOF>
bool WamNode<DOF>::poseMove(wam_common::PoseMove::Request &req, wam_common::PoseMove::Response &res)
{
ROS_INFO("Moving Robot to Commanded Pose");
cp_cmd[0] = req.pose.position.x;
cp_cmd[1] = req.pose.position.y;
cp_cmd[2] = req.pose.position.z;
ortn_cmd.x() = req.pose.orientation.x;
ortn_cmd.y() = req.pose.orientation.y;
ortn_cmd.z() = req.pose.orientation.z;
ortn_cmd.w() = req.pose.orientation.w;
pose_cmd = boost::make_tuple(cp_cmd, ortn_cmd);
//wam.moveTo(pose_cmd, false); //(TODO:KM Update Libbarrett API for Pose Moves)
ROS_INFO("Pose Commands for WAM not yet supported by API");
return false;
}
//Function to command a cartesian move to the WAM
template<size_t DOF>
bool WamNode<DOF>::cartMove(wam_common::CartPosMove::Request &req, wam_common::CartPosMove::Response &res)
{
ROS_INFO("Moving Robot to Commanded Cartesian Position");
for (int i = 0; i < 3; i++)
cp_cmd[i] = req.position[i];
wam.moveTo(cp_cmd, false);
return true;
}
//Function to command an orientation move to the WAM
template<size_t DOF>
bool WamNode<DOF>::ortnMove(wam_common::OrtnMove::Request &req, wam_common::OrtnMove::Response &res)
{
ROS_INFO("Moving Robot to Commanded End Effector Orientation");
ortn_cmd.x() = req.orientation[0];
ortn_cmd.y() = req.orientation[1];
ortn_cmd.z() = req.orientation[2];
ortn_cmd.w() = req.orientation[3];
wam.moveTo(ortn_cmd, false);
return true;
}
//Function to open the BarrettHand Grasp
template<size_t DOF>
bool WamNode<DOF>::handOpenGrasp(std_srvs::Empty::Request &req, std_srvs::Empty::Response &res)
{
ROS_INFO("Opening the BarrettHand Grasp");
hand->open(Hand::GRASP, false);
return true;
}
//Function to close the BarrettHand Grasp
template<size_t DOF>
bool WamNode<DOF>::handCloseGrasp(std_srvs::Empty::Request &req, std_srvs::Empty::Response &res)
{
ROS_INFO("Closing the BarrettHand Grasp");
hand->close(Hand::GRASP, false);
return true;
}
//Function to open the BarrettHand Spread
template<size_t DOF>
bool WamNode<DOF>::handOpenSpread(std_srvs::Empty::Request &req, std_srvs::Empty::Response &res)
{
ROS_INFO("Opening the BarrettHand Spread");
hand->open(Hand::SPREAD, false);
return true;
}
//Function to close the BarrettHand Spread
template<size_t DOF>
bool WamNode<DOF>::handCloseSpread(std_srvs::Empty::Request &req, std_srvs::Empty::Response &res)
{
ROS_INFO("Closing the BarrettHand Spread");
hand->close(Hand::SPREAD, false);
return true;
}
//Function to control a BarrettHand Finger Position
template<size_t DOF>
bool WamNode<DOF>::handFingerPos(wam_common::BHandFingerPos::Request &req, wam_common::BHandFingerPos::Response &res)
{
ROS_INFO("Moving BarrettHand to Finger Positions: %.3f, %.3f, %.3f radians", req.radians[0], req.radians[1],
req.radians[2]);
hand->trapezoidalMove(Hand::jp_type(req.radians[0], req.radians[1], req.radians[2], 0.0), Hand::GRASP, false);
return true;
}
//Function to control the BarrettHand Grasp Position
template<size_t DOF>
bool WamNode<DOF>::handGraspPos(wam_common::BHandGraspPos::Request &req, wam_common::BHandGraspPos::Response &res)
{
ROS_INFO("Moving BarrettHand Grasp: %.3f radians", req.radians);
hand->trapezoidalMove(Hand::jp_type(req.radians), Hand::GRASP, false);
return true;
}
//Function to control the BarrettHand Spread Position
template<size_t DOF>
bool WamNode<DOF>::handSpreadPos(wam_common::BHandSpreadPos::Request &req, wam_common::BHandSpreadPos::Response &res)
{
ROS_INFO("Moving BarrettHand Spread: %.3f radians", req.radians);
hand->trapezoidalMove(Hand::jp_type(req.radians), Hand::SPREAD, false);
return true;
}
//Function to control a BarrettHand Finger Velocity
template<size_t DOF>
bool WamNode<DOF>::handFingerVel(wam_common::BHandFingerVel::Request &req, wam_common::BHandFingerVel::Response &res)
{
ROS_INFO("Moving BarrettHand Finger Velocities: %.3f, %.3f, %.3f m/s", req.velocity[0], req.velocity[1],
req.velocity[2]);
hand->velocityMove(Hand::jv_type(req.velocity[0], req.velocity[1], req.velocity[2], 0.0), Hand::GRASP);
return true;
}
//Function to control a BarrettHand Grasp Velocity
template<size_t DOF>
bool WamNode<DOF>::handGraspVel(wam_common::BHandGraspVel::Request &req, wam_common::BHandGraspVel::Response &res)
{
ROS_INFO("Moving BarrettHand Grasp: %.3f m/s", req.velocity);
hand->velocityMove(Hand::jv_type(req.velocity), Hand::GRASP);
return true;
}
//Function to control a BarrettHand Spread Velocity
template<size_t DOF>
bool WamNode<DOF>::handSpreadVel(wam_common::BHandSpreadVel::Request &req, wam_common::BHandSpreadVel::Response &res)
{
ROS_INFO("Moving BarrettHand Spread: %.3f m/s", req.velocity);
usleep(5000);
hand->velocityMove(Hand::jv_type(req.velocity), Hand::SPREAD);
return true;
}
//Callback function for RT Cartesian Velocity messages
template<size_t DOF>
void WamNode<DOF>::cartVelCB(const wam_common::RTCartVel::ConstPtr& msg)
{
if (cart_vel_status)
{
for (size_t i = 0; i < 3; i++)
rt_cv_cmd[i] = msg->direction[i];
new_rt_cmd = true;
if (msg->magnitude != 0)
cart_vel_mag = msg->magnitude;
}
last_cart_vel_msg_time = ros::Time::now();
}
//Callback function for RT Orientation Velocity Messages
template<size_t DOF>
void WamNode<DOF>::ortnVelCB(const wam_common::RTOrtnVel::ConstPtr& msg)
{
if (ortn_vel_status)
{
for (size_t i = 0; i < 3; i++)
rt_ortn_cmd[i] = msg->angular[i];
new_rt_cmd = true;
if (msg->magnitude != 0)
ortn_vel_mag = msg->magnitude;
}
last_ortn_vel_msg_time = ros::Time::now();
}
//Callback function for RT Joint Velocity Messages
template<size_t DOF>
void WamNode<DOF>::jntVelCB(const wam_common::RTJointVel::ConstPtr& msg)
{
if (msg->velocities.size() != DOF)
{
ROS_INFO("Commanded Joint Velocities != DOF of WAM");
return;
}
if (jnt_vel_status)
{
for (size_t i = 0; i < DOF; i++)
rt_jv_cmd[i] = msg->velocities[i];
new_rt_cmd = true;
}
last_jnt_vel_msg_time = ros::Time::now();
}
//Callback function for RT Joint Position Messages
template<size_t DOF>
void WamNode<DOF>::jntPosCB(const wam_common::RTJointPos::ConstPtr& msg)
{
if (msg->joints.size() != DOF)
{
ROS_INFO("Commanded Joint Positions != DOF of WAM");
return;
}
if (jnt_pos_status)
{
for (size_t i = 0; i < DOF; i++)
{
rt_jp_cmd[i] = msg->joints[i];
rt_jp_rl[i] = msg->rate_limits[i];
}
rt_jp_cmd[3] = 2*M_PI - msg->joints[3];
rt_jp_rl[3] = -msg->rate_limits[3];
new_rt_cmd = true;
}
last_jnt_pos_msg_time = ros::Time::now();
}
//Callback function for RT Cartesian Position Messages
template<size_t DOF>
void WamNode<DOF>::cartPosCB(const wam_common::RTCartPos::ConstPtr& msg)
{
if (cart_pos_status)
{
for (size_t i = 0; i < 3; i++)
{
rt_cp_cmd[i] = msg->position[i];
rt_cp_rl[i] = msg->rate_limits[i];
}
new_rt_cmd = true;
}
last_cart_pos_msg_time = ros::Time::now();
}
//Function to update the WAM publisher
template<size_t DOF>
void WamNode<DOF>::publishWam(ProductManager& pm)
{
//Current values to be published
jp_type jp = wam.getJointPositions();
jt_type jt = wam.getJointTorques();
jv_type jv = wam.getJointVelocities();
cp_type cp_pub = wam.getToolPosition();
Eigen::Quaterniond to_pub = wam.getToolOrientation();
//publishing sensor_msgs/JointState to wam/joint_states
for (size_t i = 0; i < DOF; i++)
{
wam_joint_state.position[i] = jp[i];
wam_joint_state.velocity[i] = jv[i];
wam_joint_state.effort[i] = jt[i];
}
wam_joint_state.position[3] = 2*M_PI - jp[3];
wam_joint_state.velocity[3] = -jv[3];
wam_joint_state.effort[3] = -jt[3];
wam_joint_state.header.stamp = ros::Time::now();
wam_joint_state_pub.publish(wam_joint_state);
//publishing geometry_msgs/PoseStamed to wam/pose
wam_pose.header.stamp = ros::Time::now();
wam_pose.pose.position.x = cp_pub[0];
wam_pose.pose.position.y = cp_pub[1];
wam_pose.pose.position.z = cp_pub[2];
wam_pose.pose.orientation.w = to_pub.w();
wam_pose.pose.orientation.x = to_pub.x();
wam_pose.pose.orientation.y = to_pub.y();
wam_pose.pose.orientation.z = to_pub.z();
wam_pose_pub.publish(wam_pose);
}
//Function to update the real-time control loops
template<size_t DOF>
void WamNode<DOF>::publishHand() //systems::PeriodicDataLogger<debug_tuple>& logger
{
while (ros::ok())
{
hand->update(); // Update the hand sensors
Hand::jp_type hi = hand->getInnerLinkPosition(); // get finger positions information
Hand::jp_type ho = hand->getOuterLinkPosition();
for (size_t i = 0; i < 4; i++) // Save finger positions
bhand_joint_state.position[i] = hi[i];
for (size_t j = 0; j < 3; j++)
bhand_joint_state.position[j + 4] = ho[j];
bhand_joint_state.header.stamp = ros::Time::now(); // Set the timestamp
bhand_joint_state_pub.publish(bhand_joint_state); // Publish the BarrettHand joint states
btsleep(1.0 / BHAND_PUBLISH_FREQ); // Sleep according to the specified publishing frequency
}
}
//Function to update the real-time control loops
template<size_t DOF>
void WamNode<DOF>::updateRT(ProductManager& pm) //systems::PeriodicDataLogger<debug_tuple>& logger
{
//Real-Time Cartesian Velocity Control Portion
if (last_cart_vel_msg_time + rt_msg_timeout > ros::Time::now()) // checking if a cartesian velocity message has been published and if it is within timeout
{
if (!cart_vel_status)
{
cart_dir.setValue(cp_type(0.0, 0.0, 0.0)); // zeroing the cartesian direction
current_cart_pos.setValue(wam.getToolPosition()); // Initializing the cartesian position
current_ortn.setValue(wam.getToolOrientation()); // Initializing the orientation
systems::forceConnect(ramp.output, mult_linear.input1); // connecting the ramp to multiplier
systems::forceConnect(cart_dir.output, mult_linear.input2); // connecting the direction to the multiplier
systems::forceConnect(mult_linear.output, cart_pos_sum.getInput(0)); // adding the output of the multiplier
systems::forceConnect(current_cart_pos.output, cart_pos_sum.getInput(1)); // with the starting cartesian position offset
systems::forceConnect(cart_pos_sum.output, rt_pose_cmd.getInput<0>()); // saving summed position as new commanded pose.position
systems::forceConnect(current_ortn.output, rt_pose_cmd.getInput<1>()); // saving the original orientation to the pose.orientation
ramp.setSlope(cart_vel_mag); // setting the slope to the commanded magnitude
ramp.stop(); // ramp is stopped on startup
ramp.setOutput(0.0); // ramp is re-zeroed on startup
ramp.start(); // start the ramp
wam.trackReferenceSignal(rt_pose_cmd.output); // command WAM to track the RT commanded (500 Hz) updated pose
}
else if (new_rt_cmd)
{
ramp.reset(); // reset the ramp to 0
ramp.setSlope(cart_vel_mag);
cart_dir.setValue(rt_cv_cmd); // set our cartesian direction to subscribed command
current_cart_pos.setValue(wam.tpoTpController.referenceInput.getValue()); // updating the current position to the actual low level commanded value
}
cart_vel_status = true;
new_rt_cmd = false;
}
//Real-Time Angular Velocity Control Portion
else if (last_ortn_vel_msg_time + rt_msg_timeout > ros::Time::now()) // checking if a orientation velocity message has been published and if it is within timeout
{
if (!ortn_vel_status)
{
rpy_cmd.setValue(math::Vector<3>::type(0.0, 0.0, 0.0)); // zeroing the rpy command
current_cart_pos.setValue(wam.getToolPosition()); // Initializing the cartesian position
current_rpy_ortn.setValue(toRPY(wam.getToolOrientation())); // Initializing the orientation
systems::forceConnect(ramp.output, mult_angular.input1); // connecting the ramp to multiplier
systems::forceConnect(rpy_cmd.output, mult_angular.input2); // connecting the rpy command to the multiplier
systems::forceConnect(mult_angular.output, ortn_cmd_sum.getInput(0)); // adding the output of the multiplier
systems::forceConnect(current_rpy_ortn.output, ortn_cmd_sum.getInput(1)); // with the starting rpy orientation offset
systems::forceConnect(ortn_cmd_sum.output, to_quat.input);
systems::forceConnect(current_cart_pos.output, rt_pose_cmd.getInput<0>()); // saving the original position to the pose.position
systems::forceConnect(to_quat.output, rt_pose_cmd.getInput<1>()); // saving the summed and converted new quaternion commmand as the pose.orientation
ramp.setSlope(ortn_vel_mag); // setting the slope to the commanded magnitude
ramp.stop(); // ramp is stopped on startup
ramp.setOutput(0.0); // ramp is re-zeroed on startup
ramp.start(); // start the ramp
wam.trackReferenceSignal(rt_pose_cmd.output); // command the WAM to track the RT commanded up to (500 Hz) cartesian velocity
}
else if (new_rt_cmd)
{
ramp.reset(); // reset the ramp to 0
ramp.setSlope(ortn_vel_mag); // updating the commanded angular velocity magnitude
rpy_cmd.setValue(rt_ortn_cmd); // set our angular rpy command to subscribed command
current_rpy_ortn.setValue(toRPY(wam.tpoToController.referenceInput.getValue())); // updating the current orientation to the actual low level commanded value
}
ortn_vel_status = true;
new_rt_cmd = false;
}
//Real-Time Joint Velocity Control Portion
else if (last_jnt_vel_msg_time + rt_msg_timeout > ros::Time::now()) // checking if a joint velocity message has been published and if it is within timeout
{
if (!jnt_vel_status)
{
jv_type jv_start;
for (size_t i = 0; i < DOF; i++)
jv_start[i] = 0.0;
jv_track.setValue(jv_start); // zeroing the joint velocity command
wam.trackReferenceSignal(jv_track.output); // command the WAM to track the RT commanded up to (500 Hz) joint velocities
}
else if (new_rt_cmd)
{
jv_track.setValue(rt_jv_cmd); // set our joint velocity to subscribed command
}
jnt_vel_status = true;
new_rt_cmd = false;
}
//Real-Time Joint Position Control Portion
else if (last_jnt_pos_msg_time + rt_msg_timeout > ros::Time::now()) // checking if a joint position message has been published and if it is within timeout
{
if (!jnt_pos_status)
{
jp_type jp_start = wam.getJointPositions();
jp_track.setValue(jp_start); // setting initial the joint position command
jp_rl.setLimit(rt_jp_rl);
systems::forceConnect(jp_track.output, jp_rl.input);
wam.trackReferenceSignal(jp_rl.output); // command the WAM to track the RT commanded up to (500 Hz) joint positions
}
else if (new_rt_cmd)
{
jp_track.setValue(rt_jp_cmd); // set our joint position to subscribed command
jp_rl.setLimit(rt_jp_rl); // set our rate limit to subscribed rate to control the rate of the moves
}
jnt_pos_status = true;
new_rt_cmd = false;
}
//Real-Time Cartesian Position Control Portion
else if (last_cart_pos_msg_time + rt_msg_timeout > ros::Time::now()) // checking if a cartesian position message has been published and if it is within timeout
{
if (!cart_pos_status)
{
cp_track.setValue(wam.getToolPosition());
current_ortn.setValue(wam.getToolOrientation()); // Initializing the orientation
cp_rl.setLimit(rt_cp_rl);
systems::forceConnect(cp_track.output, cp_rl.input);
systems::forceConnect(cp_rl.output, rt_pose_cmd.getInput<0>()); // saving the rate limited cartesian position command to the pose.position
systems::forceConnect(current_ortn.output, rt_pose_cmd.getInput<1>()); // saving the original orientation to the pose.orientation
wam.trackReferenceSignal(rt_pose_cmd.output); //Commanding the WAM to track the real-time pose command.
}
else if (new_rt_cmd)
{
cp_track.setValue(rt_cp_cmd); // Set our cartesian positions to subscribed command
cp_rl.setLimit(rt_cp_rl); // Updating the rate limit to subscribed rate to control the rate of the moves
}
cart_pos_status = true;
new_rt_cmd = false;
}
//If we fall out of 'Real-Time', hold joint positions
else if (cart_vel_status | ortn_vel_status | jnt_vel_status | jnt_pos_status | cart_pos_status)
{
wam.moveTo(wam.getJointPositions()); // Holds current joint positions upon a RT message timeout
cart_vel_status = ortn_vel_status = jnt_vel_status = jnt_pos_status = cart_pos_status = ortn_pos_status = false;
}
}
//wam_main Function
template<size_t DOF>
int wam_main(int argc, char** argv, ProductManager& pm, systems::Wam<DOF>& wam)
{
BARRETT_UNITS_TEMPLATE_TYPEDEFS(DOF);
ros::init(argc, argv, "wam_node");
WamNode<DOF> wam_node(wam);
wam_node.init(pm);
ros::Rate pub_rate(PUBLISH_FREQ);
if (pm.getHand())
boost::thread handPubThread(&WamNode<DOF>::publishHand, &wam_node);
while (ros::ok() && pm.getSafetyModule()->getMode() == SafetyModule::ACTIVE)
{
ros::spinOnce();
wam_node.publishWam(pm);
wam_node.updateRT(pm);
pub_rate.sleep();
}
return 0;
}
| [
"cbuscaron@gmail.com"
] | cbuscaron@gmail.com |
ecbe7fdcd8d80011c867dc11e466a98a4f14829f | 78918391a7809832dc486f68b90455c72e95cdda | /boost_lib/boost/fusion/support/unused.hpp | deaa39f2fb0fd7c291a8d0a94b9876f8a21515b4 | [
"MIT",
"BSL-1.0"
] | permissive | kyx0r/FA_Patcher | 50681e3e8bb04745bba44a71b5fd04e1004c3845 | 3f539686955249004b4483001a9e49e63c4856ff | refs/heads/master | 2022-03-28T10:03:28.419352 | 2020-01-02T09:16:30 | 2020-01-02T09:16:30 | 141,066,396 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,073 | hpp | /*=============================================================================
Copyright (c) 2001-2011 Joel de Guzman
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)
==============================================================================*/
#if !defined(BOOST_FUSION_SUPPORT_UNUSED_20070305_1038)
#define BOOST_FUSION_SUPPORT_UNUSED_20070305_1038
#include <boost/fusion/support/config.hpp>
#include <iosfwd>
#include <boost/config.hpp>
#if defined(BOOST_MSVC)
# pragma warning(push)
# pragma warning(disable: 4522) // multiple assignment operators specified warning
#endif
#define BOOST_FUSION_UNUSED_HAS_IO
namespace boost
{
namespace fusion
{
struct unused_type
{
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
unused_type() BOOST_NOEXCEPT
{
}
template <typename T>
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
unused_type(T const&) BOOST_NOEXCEPT
{
}
template <typename T>
BOOST_FUSION_CONSTEXPR_THIS BOOST_FUSION_GPU_ENABLED
unused_type const&
operator=(T const&) const BOOST_NOEXCEPT
{
return *this;
}
template <typename T>
BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
unused_type&
operator=(T const&) BOOST_NOEXCEPT
{
return *this;
}
BOOST_FUSION_CONSTEXPR_THIS BOOST_FUSION_GPU_ENABLED
unused_type const&
operator=(unused_type const&) const BOOST_NOEXCEPT
{
return *this;
}
BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
unused_type&
operator=(unused_type const&) BOOST_NOEXCEPT
{
return *this;
}
};
BOOST_CONSTEXPR_OR_CONST unused_type unused = unused_type();
namespace detail
{
struct unused_only
{
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
unused_only(unused_type const&) BOOST_NOEXCEPT {}
};
}
BOOST_CONSTEXPR
inline std::ostream& operator<<(std::ostream& out, detail::unused_only const&) BOOST_NOEXCEPT
{
return out;
}
BOOST_CONSTEXPR
inline std::istream& operator>>(std::istream& in, unused_type&) BOOST_NOEXCEPT
{
return in;
}
}
}
#if defined(BOOST_MSVC)
# pragma warning(pop)
#endif
#endif
| [
"k.melekhin@gmail.com"
] | k.melekhin@gmail.com |
7c5db880526fb930f704c6fb43d7838164f582be | 0577a46d8d28e1fd8636893bbdd2b18270bb8eb8 | /update_notifier/thirdparty/wxWidgets/include/wx/confbase.h | 731f9cbad3b553e20e5b4f1eb40196508750afe9 | [
"BSD-3-Clause"
] | permissive | ric2b/Vivaldi-browser | 388a328b4cb838a4c3822357a5529642f86316a5 | 87244f4ee50062e59667bf8b9ca4d5291b6818d7 | refs/heads/master | 2022-12-21T04:44:13.804535 | 2022-12-17T16:30:35 | 2022-12-17T16:30:35 | 86,637,416 | 166 | 41 | BSD-3-Clause | 2021-03-31T18:49:30 | 2017-03-29T23:09:05 | null | UTF-8 | C++ | false | false | 18,415 | h | ///////////////////////////////////////////////////////////////////////////////
// Name: wx/confbase.h
// Purpose: declaration of the base class of all config implementations
// (see also: fileconf.h and msw/regconf.h and iniconf.h)
// Author: Karsten Ballueder & Vadim Zeitlin
// Modified by:
// Created: 07.04.98 (adapted from appconf.h)
// Copyright: (c) 1997 Karsten Ballueder Ballueder@usa.net
// Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
#ifndef _WX_CONFBASE_H_
#define _WX_CONFBASE_H_
#include "wx/defs.h"
#include "wx/string.h"
#include "wx/object.h"
#include "wx/base64.h"
class WXDLLIMPEXP_FWD_BASE wxArrayString;
// ----------------------------------------------------------------------------
// constants
// ----------------------------------------------------------------------------
/// shall we be case sensitive in parsing variable names?
#ifndef wxCONFIG_CASE_SENSITIVE
#define wxCONFIG_CASE_SENSITIVE 0
#endif
/// separates group and entry names (probably shouldn't be changed)
#ifndef wxCONFIG_PATH_SEPARATOR
#define wxCONFIG_PATH_SEPARATOR wxT('/')
#endif
/// introduces immutable entries
// (i.e. the ones which can't be changed from the local config file)
#ifndef wxCONFIG_IMMUTABLE_PREFIX
#define wxCONFIG_IMMUTABLE_PREFIX wxT('!')
#endif
#if wxUSE_CONFIG
/// should we use registry instead of configuration files under Windows?
// (i.e. whether wxConfigBase::Create() will create a wxFileConfig (if it's
// false) or wxRegConfig (if it's true and we're under Win32))
#ifndef wxUSE_CONFIG_NATIVE
#define wxUSE_CONFIG_NATIVE 1
#endif
// not all compilers can deal with template Read/Write() methods, define this
// symbol if the template functions are available
#if !defined( __VMS ) && \
!(defined(__HP_aCC) && defined(__hppa))
#define wxHAS_CONFIG_TEMPLATE_RW
#endif
// Style flags for constructor style parameter
enum
{
wxCONFIG_USE_LOCAL_FILE = 1,
wxCONFIG_USE_GLOBAL_FILE = 2,
wxCONFIG_USE_RELATIVE_PATH = 4,
wxCONFIG_USE_NO_ESCAPE_CHARACTERS = 8,
wxCONFIG_USE_SUBDIR = 16
};
// ----------------------------------------------------------------------------
// abstract base class wxConfigBase which defines the interface for derived
// classes
//
// wxConfig organizes the items in a tree-like structure (modelled after the
// Unix/Dos filesystem). There are groups (directories) and keys (files).
// There is always one current group given by the current path.
//
// Keys are pairs "key_name = value" where value may be of string or integer
// (long) type (TODO doubles and other types such as wxDate coming soon).
// ----------------------------------------------------------------------------
class WXDLLIMPEXP_BASE wxConfigBase : public wxObject
{
public:
// constants
// the type of an entry
enum EntryType
{
Type_Unknown,
Type_String,
Type_Boolean,
Type_Integer, // use Read(long *)
Type_Float // use Read(double *)
};
// static functions
// sets the config object, returns the previous pointer
static wxConfigBase *Set(wxConfigBase *pConfig);
// get the config object, creates it on demand unless DontCreateOnDemand
// was called
static wxConfigBase *Get(bool createOnDemand = true)
{ if ( createOnDemand && (!ms_pConfig) ) Create(); return ms_pConfig; }
// create a new config object: this function will create the "best"
// implementation of wxConfig available for the current platform, see
// comments near definition wxUSE_CONFIG_NATIVE for details. It returns
// the created object and also sets it as ms_pConfig.
static wxConfigBase *Create();
// should Get() try to create a new log object if the current one is NULL?
static void DontCreateOnDemand() { ms_bAutoCreate = false; }
// ctor & virtual dtor
// ctor (can be used as default ctor too)
//
// Not all args will always be used by derived classes, but including
// them all in each class ensures compatibility. If appName is empty,
// uses wxApp name
wxConfigBase(const wxString& appName = wxEmptyString,
const wxString& vendorName = wxEmptyString,
const wxString& localFilename = wxEmptyString,
const wxString& globalFilename = wxEmptyString,
long style = 0);
// empty but ensures that dtor of all derived classes is virtual
virtual ~wxConfigBase();
// path management
// set current path: if the first character is '/', it's the absolute path,
// otherwise it's a relative path. '..' is supported. If the strPath
// doesn't exist it is created.
virtual void SetPath(const wxString& strPath) = 0;
// retrieve the current path (always as absolute path)
virtual const wxString& GetPath() const = 0;
// enumeration: all functions here return false when there are no more items.
// you must pass the same lIndex to GetNext and GetFirst (don't modify it)
// enumerate subgroups
virtual bool GetFirstGroup(wxString& str, long& lIndex) const = 0;
virtual bool GetNextGroup (wxString& str, long& lIndex) const = 0;
// enumerate entries
virtual bool GetFirstEntry(wxString& str, long& lIndex) const = 0;
virtual bool GetNextEntry (wxString& str, long& lIndex) const = 0;
// get number of entries/subgroups in the current group, with or without
// it's subgroups
virtual size_t GetNumberOfEntries(bool bRecursive = false) const = 0;
virtual size_t GetNumberOfGroups(bool bRecursive = false) const = 0;
// tests of existence
// returns true if the group by this name exists
virtual bool HasGroup(const wxString& strName) const = 0;
// same as above, but for an entry
virtual bool HasEntry(const wxString& strName) const = 0;
// returns true if either a group or an entry with a given name exist
bool Exists(const wxString& strName) const
{ return HasGroup(strName) || HasEntry(strName); }
// get the entry type
virtual EntryType GetEntryType(const wxString& name) const
{
// by default all entries are strings
return HasEntry(name) ? Type_String : Type_Unknown;
}
// key access: returns true if value was really read, false if default used
// (and if the key is not found the default value is returned.)
// read a string from the key
bool Read(const wxString& key, wxString *pStr) const;
bool Read(const wxString& key, wxString *pStr, const wxString& defVal) const;
// read a number (long)
bool Read(const wxString& key, long *pl) const;
bool Read(const wxString& key, long *pl, long defVal) const;
// read an int (wrapper around `long' version)
bool Read(const wxString& key, int *pi) const;
bool Read(const wxString& key, int *pi, int defVal) const;
// read a double
bool Read(const wxString& key, double* val) const;
bool Read(const wxString& key, double* val, double defVal) const;
// read a float
bool Read(const wxString& key, float* val) const;
bool Read(const wxString& key, float* val, float defVal) const;
// read a bool
bool Read(const wxString& key, bool* val) const;
bool Read(const wxString& key, bool* val, bool defVal) const;
// read a 64-bit number when long is 32 bits
#ifdef wxHAS_LONG_LONG_T_DIFFERENT_FROM_LONG
bool Read(const wxString& key, wxLongLong_t *pl) const;
bool Read(const wxString& key, wxLongLong_t *pl, wxLongLong_t defVal) const;
#endif // wxHAS_LONG_LONG_T_DIFFERENT_FROM_LONG
bool Read(const wxString& key, size_t* val) const;
bool Read(const wxString& key, size_t* val, size_t defVal) const;
#if wxUSE_BASE64
// read a binary data block
bool Read(const wxString& key, wxMemoryBuffer* data) const
{ return DoReadBinary(key, data); }
// no default version since it does not make sense for binary data
#endif // wxUSE_BASE64
#ifdef wxHAS_CONFIG_TEMPLATE_RW
// read other types, for which wxFromString is defined
template <typename T>
bool Read(const wxString& key, T* value) const
{
wxString s;
if ( !Read(key, &s) )
return false;
return wxFromString(s, value);
}
template <typename T>
bool Read(const wxString& key, T* value, const T& defVal) const
{
const bool found = Read(key, value);
if ( !found )
{
if (IsRecordingDefaults())
const_cast<wxConfigBase*>(this)->Write(key, defVal);
*value = defVal;
}
return found;
}
#endif // wxHAS_CONFIG_TEMPLATE_RW
// convenience functions returning directly the value
wxString Read(const wxString& key,
const wxString& defVal = wxEmptyString) const
{ wxString s; (void)Read(key, &s, defVal); return s; }
// we have to provide a separate version for C strings as otherwise the
// template Read() would be used
#ifndef wxNO_IMPLICIT_WXSTRING_ENCODING
wxString Read(const wxString& key, const char* defVal) const
{ return Read(key, wxString(defVal)); }
#endif
wxString Read(const wxString& key, const wchar_t* defVal) const
{ return Read(key, wxString(defVal)); }
long ReadLong(const wxString& key, long defVal) const
{ long l; (void)Read(key, &l, defVal); return l; }
wxLongLong_t ReadLongLong(const wxString& key, wxLongLong_t defVal) const
{ wxLongLong_t ll; (void)Read(key, &ll, defVal); return ll; }
double ReadDouble(const wxString& key, double defVal) const
{ double d; (void)Read(key, &d, defVal); return d; }
bool ReadBool(const wxString& key, bool defVal) const
{ bool b; (void)Read(key, &b, defVal); return b; }
template <typename T>
T ReadObject(const wxString& key, T const& defVal) const
{ T t; (void)Read(key, &t, defVal); return t; }
// for compatibility with wx 2.8
long Read(const wxString& key, long defVal) const
{ return ReadLong(key, defVal); }
// write the value (return true on success)
bool Write(const wxString& key, const wxString& value)
{ return DoWriteString(key, value); }
bool Write(const wxString& key, long value)
{ return DoWriteLong(key, value); }
bool Write(const wxString& key, double value)
{ return DoWriteDouble(key, value); }
bool Write(const wxString& key, bool value)
{ return DoWriteBool(key, value); }
#if wxUSE_BASE64
bool Write(const wxString& key, const wxMemoryBuffer& buf)
{ return DoWriteBinary(key, buf); }
#endif // wxUSE_BASE64
// we have to provide a separate version for C strings as otherwise they
// would be converted to bool and not to wxString as expected!
#ifndef wxNO_IMPLICIT_WXSTRING_ENCODING
bool Write(const wxString& key, const char *value)
{ return Write(key, wxString(value)); }
bool Write(const wxString& key, const unsigned char *value)
{ return Write(key, wxString(value)); }
#endif
bool Write(const wxString& key, const wchar_t *value)
{ return Write(key, wxString(value)); }
// we also have to provide specializations for other types which we want to
// handle using the specialized DoWriteXXX() instead of the generic template
// version below
bool Write(const wxString& key, char value)
{ return DoWriteLong(key, value); }
bool Write(const wxString& key, unsigned char value)
{ return DoWriteLong(key, value); }
bool Write(const wxString& key, short value)
{ return DoWriteLong(key, value); }
bool Write(const wxString& key, unsigned short value)
{ return DoWriteLong(key, value); }
bool Write(const wxString& key, unsigned int value)
{ return DoWriteLong(key, value); }
bool Write(const wxString& key, int value)
{ return DoWriteLong(key, value); }
bool Write(const wxString& key, unsigned long value)
{ return DoWriteLong(key, value); }
#ifdef wxHAS_LONG_LONG_T_DIFFERENT_FROM_LONG
bool Write(const wxString& key, wxLongLong_t value)
{ return DoWriteLongLong(key, value); }
bool Write(const wxString& key, wxULongLong_t value)
{ return DoWriteLongLong(key, value); }
#endif // wxHAS_LONG_LONG_T_DIFFERENT_FROM_LONG
bool Write(const wxString& key, float value)
{ return DoWriteDouble(key, double(value)); }
// Causes ambiguities in under OpenVMS
#if !defined( __VMS )
// for other types, use wxToString()
template <typename T>
bool Write(const wxString& key, T const& value)
{ return Write(key, wxToString(value)); }
#endif
// permanently writes all changes
virtual bool Flush(bool bCurrentOnly = false) = 0;
// renaming, all functions return false on failure (probably because the new
// name is already taken by an existing entry)
// rename an entry
virtual bool RenameEntry(const wxString& oldName,
const wxString& newName) = 0;
// rename a group
virtual bool RenameGroup(const wxString& oldName,
const wxString& newName) = 0;
// delete entries/groups
// deletes the specified entry and the group it belongs to if
// it was the last key in it and the second parameter is true
virtual bool DeleteEntry(const wxString& key,
bool bDeleteGroupIfEmpty = true) = 0;
// delete the group (with all subgroups)
virtual bool DeleteGroup(const wxString& key) = 0;
// delete the whole underlying object (disk file, registry key, ...)
// primarily for use by uninstallation routine.
virtual bool DeleteAll() = 0;
// options
// we can automatically expand environment variables in the config entries
// (this option is on by default, you can turn it on/off at any time)
bool IsExpandingEnvVars() const { return m_bExpandEnvVars; }
void SetExpandEnvVars(bool bDoIt = true) { m_bExpandEnvVars = bDoIt; }
// recording of default values
void SetRecordDefaults(bool bDoIt = true) { m_bRecordDefaults = bDoIt; }
bool IsRecordingDefaults() const { return m_bRecordDefaults; }
// does expansion only if needed
wxString ExpandEnvVars(const wxString& str) const;
// misc accessors
wxString GetAppName() const { return m_appName; }
wxString GetVendorName() const { return m_vendorName; }
// Used wxIniConfig to set members in constructor
void SetAppName(const wxString& appName) { m_appName = appName; }
void SetVendorName(const wxString& vendorName) { m_vendorName = vendorName; }
void SetStyle(long style) { m_style = style; }
long GetStyle() const { return m_style; }
protected:
static bool IsImmutable(const wxString& key)
{ return !key.IsEmpty() && key[0] == wxCONFIG_IMMUTABLE_PREFIX; }
// return the path without trailing separator, if any: this should be called
// to sanitize paths referring to the group names before passing them to
// wxConfigPathChanger as "/foo/bar/" should be the same as "/foo/bar" and it
// isn't interpreted in the same way by it (and this can't be changed there
// as it's not the same for the entries names)
static wxString RemoveTrailingSeparator(const wxString& key);
// do read/write the values of different types
virtual bool DoReadString(const wxString& key, wxString *pStr) const = 0;
virtual bool DoReadLong(const wxString& key, long *pl) const = 0;
#ifdef wxHAS_LONG_LONG_T_DIFFERENT_FROM_LONG
virtual bool DoReadLongLong(const wxString& key, wxLongLong_t *pll) const;
#endif // wxHAS_LONG_LONG_T_DIFFERENT_FROM_LONG
virtual bool DoReadDouble(const wxString& key, double* val) const;
virtual bool DoReadBool(const wxString& key, bool* val) const;
#if wxUSE_BASE64
virtual bool DoReadBinary(const wxString& key, wxMemoryBuffer* buf) const = 0;
#endif // wxUSE_BASE64
virtual bool DoWriteString(const wxString& key, const wxString& value) = 0;
virtual bool DoWriteLong(const wxString& key, long value) = 0;
#ifdef wxHAS_LONG_LONG_T_DIFFERENT_FROM_LONG
virtual bool DoWriteLongLong(const wxString& key, wxLongLong_t value);
#endif // wxHAS_LONG_LONG_T_DIFFERENT_FROM_LONG
virtual bool DoWriteDouble(const wxString& key, double value);
virtual bool DoWriteBool(const wxString& key, bool value);
#if wxUSE_BASE64
virtual bool DoWriteBinary(const wxString& key, const wxMemoryBuffer& buf) = 0;
#endif // wxUSE_BASE64
private:
// are we doing automatic environment variable expansion?
bool m_bExpandEnvVars;
// do we record default values?
bool m_bRecordDefaults;
// static variables
static wxConfigBase *ms_pConfig;
static bool ms_bAutoCreate;
// Application name and organisation name
wxString m_appName;
wxString m_vendorName;
// Style flag
long m_style;
wxDECLARE_ABSTRACT_CLASS(wxConfigBase);
};
// a handy little class which changes current path to the path of given entry
// and restores it in dtor: so if you declare a local variable of this type,
// you work in the entry directory and the path is automatically restored
// when the function returns
// Taken out of wxConfig since not all compilers can cope with nested classes.
class WXDLLIMPEXP_BASE wxConfigPathChanger
{
public:
// ctor/dtor do path changing/restoring of the path
wxConfigPathChanger(const wxConfigBase *pContainer, const wxString& strEntry);
~wxConfigPathChanger();
// get the key name
const wxString& Name() const { return m_strName; }
// this method must be called if the original path (i.e. the current path at
// the moment of creation of this object) could have been deleted to prevent
// us from restoring the not existing (any more) path
//
// if the original path doesn't exist any more, the path will be restored to
// the deepest still existing component of the old path
void UpdateIfDeleted();
private:
wxConfigBase *m_pContainer; // object we live in
wxString m_strName, // name of entry (i.e. name only)
m_strOldPath; // saved path
bool m_bChanged; // was the path changed?
wxDECLARE_NO_COPY_CLASS(wxConfigPathChanger);
};
#endif // wxUSE_CONFIG
/*
Replace environment variables ($SOMETHING) with their values. The format is
$VARNAME or ${VARNAME} where VARNAME contains alphanumeric characters and
'_' only. '$' must be escaped ('\$') in order to be taken literally.
*/
WXDLLIMPEXP_BASE wxString wxExpandEnvVars(const wxString &sz);
/*
Split path into parts removing '..' in progress
*/
WXDLLIMPEXP_BASE void wxSplitPath(wxArrayString& aParts, const wxString& path);
#endif // _WX_CONFBASE_H_
| [
"mathieu.caroff@free.fr"
] | mathieu.caroff@free.fr |
3fce2738cf9b4528f93034da171b0dae8e699505 | ecc9069b70793aa275caa8226f7dc159dff76def | /OsiInterface/GameDefinitions/EntitySystem.h | f802a9cbda71b79995417d7bfd0b4861f9d1c9fe | [
"MIT"
] | permissive | Al123F1/ositools | 2caaaa8371710c73503caa55caaf1f42a9126b09 | 09999c5a62c881774ac97844f43f1d639c32127f | refs/heads/master | 2022-12-18T17:02:59.306410 | 2020-09-27T11:04:33 | 2020-09-27T11:04:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 23,858 | h | #pragma once
#include "BaseTypes.h"
#include "Enumerations.h"
#include "Net.h"
#include "Module.h"
#include "Stats.h"
#include <GlobalFixedStrings.h>
namespace dse
{
template <class T, uint32_t TypeIndex>
struct NetworkObjectFactory : public ObjectFactory<T, TypeIndex>
{
Map<FixedString, T *> ObjectMap;
Map<uint16_t, T *> NetIds;
Map<uint16_t, void *> FreeNetIdMap;
Set<uint32_t> Unknown4;
uint32_t NumFreeNetIDs;
Array<uint16_t> NetIdSalts;
uint16_t NextFreeNetIndex;
bool CanCreateNetIDs;
T* FindByNetId(NetId netId) const
{
if (!netId) return nullptr;
auto index = netId.GetIndex();
if (index >= NetIdSalts.Size
|| netId.GetSalt() != NetIdSalts[index]) {
return nullptr;
}
auto object = NetIds.Find(index);
if (object != nullptr) {
return *object;
} else {
return nullptr;
}
}
};
struct ComponentTypeEntry
{
// todo
Component * component;
uint64_t dummy[31];
};
struct ComponentLayout
{
struct LayoutEntry
{
uint64_t unkn1;
ComponentHandle Handle;
};
Array<LayoutEntry> Entries;
};
struct SystemTypeEntry
{
void * System;
int64_t Unkn1;
uint32_t Unkn2;
PrimitiveSet<uint64_t> PSet;
};
struct EntityEntry
{
void * VMT;
ComponentLayout Layout;
};
namespace eoc
{
struct CombatComponent;
struct CustomStatsComponent;
}
struct BaseComponentProcessingSystem
{
void * VMT;
void * field_8;
};
template <class TComponentType>
struct EntityWorldBase : public ProtectedGameObject<EntityWorldBase<TComponentType>>
{
void * VMT;
Array<EntityEntry *> EntityEntries;
Array<uint32_t> EntitySalts;
uint64_t Unkn1[3];
PrimitiveSet<EntityEntry *> EntityEntries2;
uint8_t Unkn3;
uint32_t Unkn4;
Array<ComponentTypeEntry> Components;
ObjectSet<void *> KeepAlives; // ObjectSet<ObjectHandleRefMap<ComponentKeepAliveDesc>>
Array<SystemTypeEntry> SystemTypes;
Array<void *> EventTypes; // Array<EventTypeEntry>
void * EntityWorldManager;
PrimitiveSet<SystemTypeEntry> SystemTypes2;
ObjectSet<void *> Funcs; // ObjectSet<function>
RefMap<FixedString, int> RefMap; // ???
void* GetComponent(TComponentType type, ObjectType handleType, ObjectHandle componentHandle, bool logError = true)
{
if (this == nullptr) {
OsiError("Tried to find component on null EntityWorld!");
return nullptr;
}
if (!componentHandle) {
return nullptr;
}
if ((uint32_t)type >= Components.Size) {
if (logError) {
OsiError("Component type index " << (uint32_t)type << " too large!");
}
return nullptr;
}
auto componentMgr = Components[(uint32_t)type].component;
if (componentMgr == nullptr) {
if (logError) {
OsiError("Component type " << (uint32_t)type << " not bound!");
}
return nullptr;
}
if (componentHandle.GetType() != (uint32_t)handleType) {
if (logError) {
OsiError("Type mismatch! Factory supports " << (unsigned)handleType << ", got " << (unsigned)componentHandle.GetType());
}
return nullptr;
}
// FIXME - This is somewhat ugly :(
auto factory = reinterpret_cast<ObjectFactory<void *, 0>*>((std::intptr_t)componentMgr + 8);
auto index = componentHandle.GetIndex();
auto salt = componentHandle.GetSalt();
if (index >= factory->Salts.Size) {
if (logError) {
OsiError("Factory for type " << (unsigned)handleType << " only has " << factory->Salts.Size
<< " objects, requested " << (unsigned)index);
}
return nullptr;
}
if (salt != factory->Salts[index]) {
if (logError) {
OsiError("Salt mismatch for type " << (unsigned)handleType << ", object " << index << ": got "
<< salt << ", real is " << factory->Salts[index]);
}
return nullptr;
}
return componentMgr->FindComponentByHandle(&componentHandle);
}
void* GetComponent(TComponentType componentType, char const* nameGuid, bool logError = true)
{
if (this == nullptr) {
OsiError("Tried to find component on null EntityWorld!");
return nullptr;
}
if (nameGuid == nullptr) {
OsiError("Attempted to look up component with null name!");
return nullptr;
}
auto fs = NameGuidToFixedString(nameGuid);
if (!fs) {
OsiError("Could not map GUID '" << nameGuid << "' to FixedString");
return nullptr;
}
auto component = Components[(uint32_t)componentType].component->FindComponentByGuid(&fs);
if (component != nullptr) {
return component;
}
else {
if (logError) {
OsiError("No " << ComponentTypeToName(componentType).Str << " component found with GUID '" << nameGuid << "'");
}
return nullptr;
}
}
void* GetComponent(TComponentType type, NetId netId, bool logError = true)
{
if (this == nullptr) {
OsiError("Tried to find component on null EntityWorld!");
return nullptr;
}
if (!netId) {
return nullptr;
}
if ((uint32_t)type >= Components.Size) {
OsiError("Component type index " << (uint32_t)type << " too large!");
return nullptr;
}
auto componentMgr = Components[(uint32_t)type].component;
if (componentMgr == nullptr) {
OsiError("Component type " << (uint32_t)type << " not bound!");
return nullptr;
}
return componentMgr->FindComponentByNetId(netId, true);
}
void* GetComponentByEntityHandle(TComponentType type, ObjectHandle entityHandle, bool logError = true)
{
if (this == nullptr) {
OsiError("Tried to find component on null EntityWorld!");
return nullptr;
}
if (entityHandle.GetType() != 0) {
OsiError("Entity handle has invalid type " << entityHandle.GetType());
return nullptr;
}
auto index = entityHandle.GetIndex();
if (index >= EntityEntries.Size) {
if (logError) {
OsiError("Entity index " << index << " too large!");
}
return nullptr;
}
auto salt = entityHandle.GetSalt();
if (salt != EntitySalts[index]) {
if (logError) {
OsiError("Salt mismatch on index " << index << "; " << salt << " != " << EntitySalts[index]);
}
return nullptr;
}
auto entity = EntityEntries[index];
if ((uint32_t)type >= entity->Layout.Entries.Size) {
if (logError) {
OsiError("Entity " << index << " has no component slot for " << (uint32_t)type);
}
return nullptr;
}
auto const& layoutEntry = entity->Layout.Entries[(uint32_t)type];
if (!layoutEntry.Handle.IsValid()) {
if (logError) {
OsiError("Entity " << index << " has no component bound to slot " << (uint32_t)type);
}
return nullptr;
}
ObjectHandle componentHandle{ layoutEntry.Handle.Handle };
auto componentMgr = Components[(uint32_t)type].component;
return componentMgr->FindComponentByHandle(&componentHandle);
}
FixedString ComponentTypeToName(TComponentType type)
{
auto label = EnumInfo<TComponentType>::Find(type);
if (label) {
return label;
} else {
return GFS.strEmpty;
}
}
};
namespace eoc
{
struct Ai;
}
struct IGameObject : public ProtectedGameObject<IGameObject>
{
virtual ~IGameObject() = 0;
virtual void HandleTextKeyEvent() = 0;
virtual uint64_t Ret5() = 0;
virtual void SetObjectHandle(ObjectHandle Handle) = 0;
virtual void GetObjectHandle(ObjectHandle& Handle) const = 0;
virtual void SetGuid(FixedString const& fs) = 0;
virtual FixedString* GetGuid() const = 0;
virtual void SetNetID(NetId netId) = 0;
virtual void GetNetID(NetId& netId) const = 0;
virtual void SetCurrentTemplate(void* esvTemplate) = 0;
virtual void* GetCurrentTemplate() const = 0;
virtual void SetGlobal(bool isGlobal) = 0;
virtual bool IsGlobal() const = 0;
virtual uint32_t GetComponentType() = 0;
virtual void* GetEntityObjectByHandle(ObjectHandle handle) = 0;
virtual STDWString* GetName() = 0;
virtual void SetFlags(uint64_t flag) = 0;
virtual void ClearFlags(uint64_t flag) = 0;
virtual bool HasFlag(uint64_t flag) const = 0;
virtual void SetAiColliding(bool colliding) = 0;
virtual void GetTags(ObjectSet<FixedString> & tags) = 0;
virtual bool IsTagged(FixedString & tag) = 0;
virtual Vector3 const* GetTranslate() const = 0;
virtual glm::mat3 const* GetRotation() const = 0;
virtual float GetScale() const = 0;
virtual void SetTranslate(Vector3 const& translate) = 0;
virtual void SetRotation(glm::mat3 const& rotate) = 0;
virtual void SetScale(float scale) = 0;
virtual Vector3 const* GetVelocity() = 0;
virtual void SetVelocity(Vector3 const& translate) = 0;
virtual void LoadVisual() = 0;
virtual void UnloadVisual() = 0;
virtual void ReloadVisual() = 0;
virtual void GetVisual() = 0;
virtual void GetPhysics() = 0;
virtual void SetPhysics() = 0;
virtual void LoadPhysics() = 0;
virtual void UnloadPhysics() = 0;
virtual void ReloadPhysics() = 0;
virtual void GetHeight() = 0;
virtual void GetParentUUID() = 0;
virtual FixedString* GetCurrentLevel() const = 0;
virtual void SetCurrentLevel(FixedString const& level) = 0;
BaseComponent Base;
FixedString MyGuid;
NetId NetID;
};
struct IEocClientObject : public IGameObject
{
virtual eoc::Ai * GetAi() = 0;
virtual void LoadAi() = 0;
virtual void UnloadAi() = 0;
virtual void Unknown0() = 0;
virtual void Unknown1() = 0;
virtual void Unknown2() = 0;
virtual void Unknown3() = 0;
virtual FixedString * Unknown4() = 0;
virtual bool Unknown5() = 0;
virtual TranslatedString* GetDisplayName(TranslatedString* name) = 0;
virtual float Unknown6() = 0;
virtual void SavegameVisit() = 0;
virtual void SetLight(FixedString *) = 0;
virtual void * GetLight() = 0;
virtual void RemoveLight() = 0;
virtual FixedString * GetPlayerRace(bool returnPolymorph, bool excludeUninitialized) = 0;
virtual FixedString* GetPlayerOrigin(bool returnPolymorph, bool excludeUninitialized) = 0;
};
struct IEoCServerObject : public IGameObject
{
virtual void AddPeer() = 0;
virtual void UNK1() = 0;
virtual void UNK2() = 0;
virtual void UNK3() = 0;
virtual eoc::Ai* GetAi() = 0;
virtual void LoadAi() = 0;
virtual void UnloadAi() = 0;
virtual TranslatedString* GetDisplayName(TranslatedString* name) = 0;
virtual void SavegameVisit() = 0;
virtual void GetEntityNetworkId() = 0;
virtual void SetTemplate() = 0;
virtual void SetOriginalTemplate_M() = 0;
};
template <class TWorld>
struct EntityManager
{
void* VMT;
RefMap<FixedString, void*> field_8;
TWorld* EntityWorld;
FixedString FS1;
};
namespace esv
{
struct CustomStatDefinitionComponent;
struct CustomStatSystem;
struct NetComponent;
struct Item;
struct Character;
struct Inventory;
struct TurnManager;
struct Projectile;
struct EntityWorld;
struct EntityManager;
struct CombineManager;
struct ItemFactory;
struct CharacterFactory;
struct ItemConversionHelpers : public ProtectedGameObject<ItemConversionHelpers>
{
EntityManager* EntityManager;
ItemFactory* ItemFactory;
RefMap<FixedString, ObjectSet<Item *> *> RegisteredItems;
RefMap<FixedString, ObjectSet<Item *> *> ActivatedItems;
FixedString CurrentLevel;
Map<FixedString, ObjectHandle> GlobalItemHandles;
#if !defined(OSI_EOCAPP)
int field_4C;
RefMap<FixedString, void*> DebugItems;
__int64 field_88;
#endif
};
struct CharacterConversionHelpers : public ProtectedGameObject<CharacterConversionHelpers>
{
EntityManager* EntityManager;
CharacterFactory* CharacterFactory;
RefMap<FixedString, ObjectSet<Character *> *> RegisteredCharacters;
RefMap<FixedString, ObjectSet<Character *> *> ActivatedCharacters;
};
struct TriggerConversionHelpers : public ProtectedGameObject<TriggerConversionHelpers>
{
esv::EntityManager* EntityManager;
void* TriggerFactory;
RefMap<FixedString, ObjectSet<void *>*> RegisteredTriggers;
};
struct ProjectileConversionHelpers : public ProtectedGameObject<ProjectileConversionHelpers>
{
esv::EntityManager* EntityManager;
void* ProjectileFactory;
RefMap<FixedString, ObjectSet<Projectile *> *> RegisteredProjectiles;
};
struct EntityManager : public dse::EntityManager<EntityWorld>
{
ItemConversionHelpers ItemConversionHelpers;
CharacterConversionHelpers CharacterConversionHelpers;
TriggerConversionHelpers TriggerConversionHelpers;
ProjectileConversionHelpers ProjectileConversionHelpers;
void* CharacterManagerSystem;
void* ItemManagerSystem;
void* TriggerManagerSystem;
void* ProjectileManagerSystem;
void* TurnManagerSystem;
void* SpiritObjectManager;
ObjectSet<FixedString> TriggerTypes;
bool field_150;
ObjectSet<void*> ComponentPrepares; // <esv::ComponentPrepare>
ObjectSet<void*> TemplateTraces; // <esv::TemplateTrace>
};
struct EntityWorld : public EntityWorldBase<ComponentType>
{
inline CustomStatDefinitionComponent* GetCustomStatDefinitionComponent(ObjectHandle componentHandle, bool logError = true)
{
auto component = GetComponent(ComponentType::CustomStatDefinition, ObjectType::ServerCustomStatDefinitionComponent,
componentHandle, logError);
if (component != nullptr) {
return (CustomStatDefinitionComponent*)((uint8_t*)component - 80);
}
else {
return nullptr;
}
}
inline Character* GetCharacterComponentByEntityHandle(ObjectHandle entityHandle, bool logError = true)
{
auto ptr = GetComponentByEntityHandle(ComponentType::Character, entityHandle, logError);
if (ptr != nullptr) {
return (Character*)((uint8_t*)ptr - 8);
}
else {
return nullptr;
}
}
inline Item* GetItemComponentByEntityHandle(ObjectHandle entityHandle, bool logError = true)
{
auto ptr = GetComponentByEntityHandle(ComponentType::Item, entityHandle, logError);
if (ptr != nullptr) {
return (Item*)((uint8_t*)ptr - 8);
}
else {
return nullptr;
}
}
inline eoc::CombatComponent* GetCombatComponentByEntityHandle(ObjectHandle entityHandle, bool logError = true)
{
return (eoc::CombatComponent*)GetComponentByEntityHandle(ComponentType::Combat, entityHandle, logError);
}
inline eoc::CustomStatsComponent* GetCustomStatsComponentByEntityHandle(ObjectHandle entityHandle, bool logError = true)
{
return (eoc::CustomStatsComponent*)GetComponentByEntityHandle(ComponentType::CustomStats, entityHandle, logError);
}
inline NetComponent* GetNetComponentByEntityHandle(ObjectHandle entityHandle, bool logError = true)
{
return (NetComponent*)GetComponentByEntityHandle(ComponentType::Net, entityHandle, logError);
}
inline CustomStatSystem* GetCustomStatSystem()
{
auto sys = SystemTypes.Buf[(uint32_t)SystemType::CustomStat].System;
return (CustomStatSystem*)((uint8_t*)sys - 0x18);
}
inline TurnManager* GetTurnManager()
{
auto const& system = SystemTypes[(unsigned)SystemType::TurnManager];
return (TurnManager*)((uint8_t*)system.System - 8);
}
inline Character* GetCharacter(char const* nameGuid, bool logError = true)
{
auto component = GetComponent(ComponentType::Character, nameGuid, logError);
if (component != nullptr) {
return (Character*)((uint8_t*)component - 8);
}
else {
return nullptr;
}
}
inline Character* GetCharacter(ObjectHandle handle, bool logError = true)
{
auto component = GetComponent(ComponentType::Character, ObjectType::ServerCharacter, handle, logError);
if (component != nullptr) {
return (Character*)((uint8_t*)component - 8);
}
else {
return nullptr;
}
}
inline Character* GetCharacter(NetId netId, bool logError = true)
{
auto component = GetComponent(ComponentType::Character, netId, logError);
if (component != nullptr) {
return (Character*)((uint8_t*)component - 8);
}
else {
return nullptr;
}
}
inline Item* GetItem(char const* nameGuid, bool logError = true)
{
auto component = GetComponent(ComponentType::Item, nameGuid, logError);
if (component != nullptr) {
return (Item*)((uint8_t*)component - 8);
}
else {
return nullptr;
}
}
inline Item* GetItem(ObjectHandle handle, bool logError = true)
{
auto component = GetComponent(ComponentType::Item, ObjectType::ServerItem, handle, logError);
if (component != nullptr) {
return (Item*)((uint8_t*)component - 8);
}
else {
return nullptr;
}
}
inline Projectile* GetProjectile(ObjectHandle handle, bool logError = true)
{
auto component = GetComponent(ComponentType::Item, ObjectType::ServerProjectile, handle, logError);
if (component != nullptr) {
return (Projectile*)((uint8_t*)component - 8);
}
else {
return nullptr;
}
}
IEoCServerObject* GetGameObject(char const* nameGuid, bool logError = true);
IEoCServerObject* GetGameObject(ObjectHandle handle, bool logError = true);
};
struct CharacterFactory : public NetworkObjectFactory<esv::Character, (uint32_t)ObjectType::ServerCharacter>
{
void* VMT2;
void* VMT3;
Map<FixedString, void*> FSMap_ReloadComponent;
EntityWorld* Entities;
uint64_t Unkn8[2];
};
struct ItemFactory : public NetworkObjectFactory<esv::Item, (uint32_t)ObjectType::ServerItem>
{
void* VMT2;
void* VMT3;
Map<FixedString, void*> FSMap_ReloadComponent;
EntityWorld* Entities;
uint64_t Unkn8[2];
};
struct InventoryFactory : public NetworkObjectFactory<esv::Inventory, (uint32_t)ObjectType::ServerInventory>
{
// TODO
};
struct GameStateMachine : public ProtectedGameObject<GameStateMachine>
{
uint8_t Unknown;
void * CurrentState;
GameState State;
void ** TargetStates;
uint32_t TargetStateBufSize;
uint32_t NumTargetStates;
uint32_t ReadStateIdx;
uint32_t WriteStateIdx;
};
struct EoCServer
{
bool Unknown1;
uint64_t EoC;
uint64_t GameTime_M;
ScratchBuffer ScratchBuffer1;
ScratchBuffer ScratchBuffer2;
FixedString FS1;
FixedString FS2;
FixedString FS3;
FixedString FSGUID4;
GameStateMachine * StateMachine;
net::GameServer * GameServer;
void * field_88;
void * GlobalRandom;
void * ItemCombinationManager;
CombineManager * CombineManager;
ModManager * ModManagerServer;
bool ShutDown;
void * EntityWorldManager;
EntityWorld * EntityWorld;
EntityManager * EntityManager;
void * ArenaManager;
void * GameMasterLobbyManager;
void * LobbyManagerOrigins;
bool field_E8;
};
EntityWorld* GetEntityWorld();
}
namespace ecl
{
struct Item;
struct Character;
struct Inventory;
struct EntityManager;
struct ItemConversionHelpers
{
EntityManager* EntityManager;
void* ItemFactory;
RefMap<FixedString, ObjectSet<Item*>*> RegisteredItemsByLevel;
RefMap<FixedString, ObjectSet<Item*>*> ActivatedItemsByLevel;
};
struct CharacterConversionHelpers
{
EntityManager* EntityManager;
void* CharacterFactory;
RefMap<FixedString, ObjectSet<Character*>*> RegisteredCharactersByLevel;
RefMap<FixedString, ObjectSet<Character*>*> ActivatedCharactersByLevel;
};
struct TriggerConversionHelpers
{
void* VMT;
ecl::EntityManager* EntityManager;
void* TriggerFactory;
RefMap<FixedString, ObjectSet<void*>*> RegisteredTriggersByLevel;
};
struct ProjectileConversionHelpers
{
EntityManager* EntityManager;
void* ProjectileFactory;
RefMap<FixedString, ObjectSet<void*>*> RegisteredProjectilesByLevel;
};
struct EntityWorld : public EntityWorldBase<ComponentType>
{
inline Character* GetCharacter(char const* nameGuid, bool logError = true)
{
auto component = GetComponent(ComponentType::Character, nameGuid, logError);
if (component != nullptr) {
return (Character*)((uint8_t*)component - 8);
}
else {
return nullptr;
}
}
inline Character* GetCharacter(ObjectHandle handle, bool logError = true)
{
auto component = GetComponent(ComponentType::Character, ObjectType::ClientCharacter, handle, logError);
if (component != nullptr) {
return (Character*)((uint8_t*)component - 8);
}
else {
return nullptr;
}
}
inline Character* GetCharacter(NetId netId, bool logError = true)
{
auto component = GetComponent(ComponentType::Character, netId, logError);
if (component != nullptr) {
return (Character*)((uint8_t*)component - 8);
}
else {
return nullptr;
}
}
inline Item* GetItem(char const* nameGuid, bool logError = true)
{
auto component = GetComponent(ComponentType::Item, nameGuid, logError);
if (component != nullptr) {
return (Item*)((uint8_t*)component - 8);
}
else {
return nullptr;
}
}
inline Item* GetItem(ObjectHandle handle, bool logError = true)
{
auto component = GetComponent(ComponentType::Item, ObjectType::ClientItem, handle, logError);
if (component != nullptr) {
return (Item*)((uint8_t*)component - 8);
}
else {
return nullptr;
}
}
inline Item* GetItem(NetId netId, bool logError = true)
{
auto component = GetComponent(ComponentType::Item, netId, logError);
if (component != nullptr) {
return (Item*)((uint8_t*)component - 8);
}
else {
return nullptr;
}
}
inline eoc::CustomStatsComponent* GetCustomStatsComponentByEntityHandle(ObjectHandle entityHandle)
{
return (eoc::CustomStatsComponent*)GetComponentByEntityHandle(ComponentType::CustomStats, entityHandle);
}
};
struct EntityManager : public dse::EntityManager<EntityWorld>
{
void* NetEventManagerVMT;
ItemConversionHelpers ItemConversionHelpers;
CharacterConversionHelpers CharacterConversionHelpers;
TriggerConversionHelpers TriggerConversionHelpers;
uint64_t Unknown[3];
ProjectileConversionHelpers ProjectileConversionHelpers;
void* WallManager;
ObjectSet<FixedString> TriggerTypes;
ObjectSet<FixedString> OS_FS2;
};
struct InventoryFactory : public NetworkObjectFactory<ecl::Inventory, (uint32_t)ObjectType::ClientInventory>
{
};
struct ActivationManager
{
struct ActivationGroup
{
ObjectSet<Item*> Items;
ObjectSet<Character*> Characters;
};
void* VMT;
__int64 field_8;
void* VMT2;
__int64 field_18;
RefMap<FixedString, ActivationGroup> ChangedGroups;
float ActivationRange1;
float DeactivationRange1;
float ActivationRange2;
float DeactivationRange2;
};
struct GameStateMachine : public ProtectedGameObject<GameStateMachine>
{
uint8_t Unknown;
void* CurrentState;
GameState State;
};
struct EoCClient : public ProtectedGameObject<EoCClient>
{
void* VMT;
void* GameEventManagerVMT;
uint64_t field_10;
void* NetEventManagerVMT;
uint64_t field_20;
void* VMT2;
void* VMT3;
void* EoC;
GameStateMachine** GameStateMachine;
net::Client* GameClient;
uint64_t field_50;
void* LobbyLogicManager;
void* ArenaManager;
FixedString FS1;
FixedString LevelName;
FixedString SomeGUID;
FixedString FS_CurrentSaveGameGUID;
bool IsLoading;
bool IsLoading2;
PrimitiveSet<int> PrimitiveSetUnkn;
uint16_t field_B0;
void* Random;
void* ItemCombinationManager;
char field_C8;
uint64_t ScratchStr[4];
ScratchBuffer ScratchBuf;
ModManager* ModManager;
void* ChatManager;
STDWString WStr_CurrentHost_M;
uint64_t SomeObject[16];
int field_1C0;
uint64_t field_1C8[2];
void* EntityWorldManager;
EntityWorld* EntityWorld;
EntityManager* EntityManager;
};
typedef void (*EoCClient__HandleError)(void* self, STDWString const* message, bool exitGame, STDWString const* a4);
typedef void (*GameStateThreaded__GameStateWorker__DoWork)(void* self);
typedef void (*GameStateEventManager__ExecuteGameStateChangedEvent)(void* self, GameState fromState, GameState toState);
EntityWorld* GetEntityWorld();
}
} | [
"infernorb@gmail.com"
] | infernorb@gmail.com |
558e066527194532e31051a796b19b68b383019a | e9da060baee22bacd0974e4a54d94701c478d384 | /Programming Assignment 3/BattleArena.h | 5d62d6e789905d86367bd780d24c7e2d92a4e286 | [] | no_license | SamKrasnoff/EC_327 | ca47be160a1119ce0dd5635902fb83f74b53d865 | 78b95631b7fe9be88967da7e150da185a1ad41dd | refs/heads/master | 2022-04-07T19:22:36.491480 | 2020-02-27T03:30:30 | 2020-02-27T03:30:30 | 213,062,873 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 643 | h | #ifndef BATTLEARENA_H
#define BATTLEARENA_H
class BattleArena: public Building{
public:
enum BattleArenaStates{
RIVALS_AVAILABLE = 0,
NO_RIVALS_AVAILABLE = 1
};
BattleArena();
BattleArena(unsigned int max_rivals, unsigned int stamina_cost, double dollar_cost, int in_id, Point2D loc):Building('A',in_id, loc);
unsigned int GetNumRivalsRemaining();
bool
private:
unsigned int max_num_rivals;
unsigned int num_rivals_remaining;
double dollar_cost_per_fight;
unsigned int stamina_cost_per_fight;
unsigned int pokemon_count;
} | [
"krasnoff@bu.edu"
] | krasnoff@bu.edu |
66a240d15265308b2801398291c80090c03594f0 | 1bf8b46afad5402fe6fa74293b464e1ca5ee5fd7 | /SDK/BP_GamePadShoulderSetAsset_functions.cpp | 3aeef1f70f133bd35b76c0f01889cd5c8d8225f4 | [] | no_license | LemonHaze420/ShenmueIIISDK | a4857eebefc7e66dba9f667efa43301c5efcdb62 | 47a433b5e94f171bbf5256e3ff4471dcec2c7d7e | refs/heads/master | 2021-06-30T17:33:06.034662 | 2021-01-19T20:33:33 | 2021-01-19T20:33:33 | 214,824,713 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,208 | cpp |
#include "../SDK.h"
// Name: Shenmue3SDK, Version: 1.4.1
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
namespace SDK
{
//---------------------------------------------------------------------------
// Functions
//---------------------------------------------------------------------------
// Function BP_GamePadShoulderSetAsset.BP_GamePadShoulderSetAsset_C.GetImage
// (Public, HasOutParms, BlueprintCallable, BlueprintEvent, Const)
// Parameters:
// TEnumAsByte<EGamepadShoulder> Button (BlueprintVisible, BlueprintReadOnly, Parm, ZeroConstructor, IsPlainOldData)
// class UTexture2D* ReturnValue (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData)
class UTexture2D* UBP_GamePadShoulderSetAsset_C::GetImage(TEnumAsByte<EGamepadShoulder> Button)
{
static auto fn = UObject::FindObject<UFunction>("Function BP_GamePadShoulderSetAsset.BP_GamePadShoulderSetAsset_C.GetImage");
UBP_GamePadShoulderSetAsset_C_GetImage_Params params;
params.Button = Button;
auto flags = fn->FunctionFlags;
UObject::ProcessEvent(fn, ¶ms);
fn->FunctionFlags = flags;
return params.ReturnValue;
}
}
#ifdef _MSC_VER
#pragma pack(pop)
#endif
| [
"35783139+LemonHaze420@users.noreply.github.com"
] | 35783139+LemonHaze420@users.noreply.github.com |
d788eb6ba6faf4838ce73cc2f6bb2bb3d2c77787 | 481ff5af691f12dd066547538f6b0d3610f8804a | /04 Test/codecTest/codecTest.cpp | 66bc439be69c1c3cfd928ce9bdc74b7680392dbe | [] | no_license | lightindarkgit/irisembx00 | 909a1ff0fe10165537cf03f78f310f2329c62da4 | 3fa3ca437246172dfa0b6adbbddda418c60ee7a6 | refs/heads/master | 2020-04-11T06:45:09.549740 | 2018-03-09T03:32:23 | 2018-03-09T03:32:23 | 124,330,594 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,899 | cpp | // codecTest.cpp : 定义控制台应用程序的入口点。
//
#include <iostream>
#include "IKEMB1000Codec.h"
int main(int argc, char* argv[])
{
std::cout << "codecTest" << std::endl;
PersonBase personBase[3];
/*
uuid_t Pid;
int OpToken; // 增加操作令牌, added at 20140429
// 值由X00服务控制,设备只负责接收、保存
char PersonName[g_nameLen];
char PersonSn[g_snLen];
EnumPersonType PersonType;
EnumX00Sex PersonSex;
char IdCardNumber[g_idCardNoLen];
char DepartName[g_nameLen];
char CardNumber[g_cardNoLen];
char Memo[g_memoLen];
*/
personBase[0].OpToken = 1234;
strcpy(personBase[0].PersonName, "123456");
strcpy(personBase[0].PersonSn, "777777");
personBase[0].PersonType = EnumPersonType::ordinaryPerson;
personBase[0].PersonSex = EnumX00Sex::female;
strcpy(personBase[0].IdCardNumber, "IdCard");
strcpy(personBase[0].DepartName, "测试部门");
strcpy(personBase[0].CardNumber, "门禁卡号001");
strcpy(personBase[0].Memo, "memo hehe");
strcpy(personBase[1].PersonName, "中文名称");
strcpy(personBase[1].PersonSn, "002");
strcpy(personBase[2].PersonName, "a中文+English");
strcpy(personBase[2].PersonSn, "003");
char buf[0x20000];
memset(buf, 0, 0x20000);
int size = EncodeAddPerson(personBase, 3, buf);
char buf2[0x20000];
memset(buf2, 0, 0x20000);
size = EncodeAddPerson(personBase, 3, buf2);
char trans[0x20000];
int arraySize = 0;
bool bret = DecodeAddPerson(buf, (PPersonBase)trans, &arraySize);
PPersonBase pTemp = (PPersonBase)trans;
PPersonBase pTemp0 = pTemp;
PPersonBase pTemp1 = pTemp+1;
PPersonBase pTemp2 = pTemp+2;
memset(buf, 0, 1024);
NormalAck ack;
ack.ErrorCode = 0;
EncodeAckDeletePerson(ack, buf);
return 0;
}
| [
"guowen@irisking.com"
] | guowen@irisking.com |
90781eecf2fd047c0d40787d67c7b525b8d3dc50 | 260e5dec446d12a7dd3f32e331c1fde8157e5cea | /Indi/SDK/Indi_XFH_T_0604_Turrets_parameters.hpp | 8434c48cb1c788a9445553ec2101e66c4340a432 | [] | no_license | jfmherokiller/TheOuterWorldsSdkDump | 6e140fde4fcd1cade94ce0d7ea69f8a3f769e1c0 | 18a8c6b1f5d87bb1ad4334be4a9f22c52897f640 | refs/heads/main | 2023-08-30T09:27:17.723265 | 2021-09-17T00:24:52 | 2021-09-17T00:24:52 | 407,437,218 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 365 | hpp | #pragma once
// TheOuterWorlds SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "Indi_XFH_T_0604_Turrets_classes.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Parameters
//---------------------------------------------------------------------------
}
#ifdef _MSC_VER
#pragma pack(pop)
#endif
| [
"peterpan0413@live.com"
] | peterpan0413@live.com |
40439faefe1e62db778863f9000ab01c6cb9eb10 | 7e522089dc55393159a7cfddfe98506f2cf70717 | /SigmoidLayer.cpp | 870824393a2900f9cecd0f42fa0474c088c5737e | [] | no_license | danathughes/cNeuralNetwork | 27d6d77f5f1eb18d8ebf09a0b40dab33e72c4c87 | b494f426a7c2be50ac96388535d2ffcba387624b | refs/heads/master | 2016-09-03T06:59:55.953486 | 2015-07-11T04:14:14 | 2015-07-11T04:14:14 | 35,659,535 | 0 | 0 | null | 2015-07-08T00:31:36 | 2015-05-15T07:13:40 | C++ | UTF-8 | C++ | false | false | 658 | cpp | /**
*
*/
#include "SigmoidLayer.h"
#include <Eigen/Dense>
#include <math.h>
//#include <iostream>
using namespace std;
SigmoidLayer::SigmoidLayer(int size) : Layer(size)
{
}
SigmoidLayer::~SigmoidLayer()
{
}
void SigmoidLayer::activate()
{
// cout << "About to activate..." << endl << this->net_input << endl;
for(int i=0; i<this->getSize(); i++)
{
this->activations(i) = 1.0 / (1.0 + exp(-this->net_input(i)));
}
}
Eigen::VectorXd SigmoidLayer::gradient()
{
Eigen::VectorXd grad(this->getSize());
for(int i=0; i<this->getSize(); i++)
{
grad(i) = this->activations(i) * (1.0 - this->activations(i));
}
return grad;
}
| [
"danathughes@gmail.com"
] | danathughes@gmail.com |
a925dc5988956ea09a05c0a3db097c152145b748 | 15203435a6619321bee044539265f0be5d6a2e7b | /the-water/Temp/il2cppOutput/il2cppOutput/Il2CppCompilerCalculateTypeValuesTable.cpp | 457554bd61b654369c4555cb019f3d034823a810 | [] | no_license | rachelggarza/head-above | 724fef17729ce18652e1ad0a468e6c2546398429 | 205b7f9f9909bfd82cf37b2c13149ba06a37531e | refs/heads/master | 2021-06-21T13:13:14.755575 | 2017-08-17T21:55:04 | 2017-08-17T21:55:04 | 100,616,507 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 324,434 | cpp | #include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
#include "class-internals.h"
#include "codegen/il2cpp-codegen.h"
extern const int32_t g_FieldOffsetTable5[3];
extern const int32_t g_FieldOffsetTable11[3];
extern const int32_t g_FieldOffsetTable12[1];
extern const int32_t g_FieldOffsetTable14[1];
extern const int32_t g_FieldOffsetTable15[1];
extern const int32_t g_FieldOffsetTable16[1];
extern const int32_t g_FieldOffsetTable17[1];
extern const int32_t g_FieldOffsetTable18[3];
extern const int32_t g_FieldOffsetTable19[1];
extern const int32_t g_FieldOffsetTable20[1];
extern const int32_t g_FieldOffsetTable21[3];
extern const int32_t g_FieldOffsetTable26[10];
extern const int32_t g_FieldOffsetTable27[4];
extern const int32_t g_FieldOffsetTable30[8];
extern const int32_t g_FieldOffsetTable31[14];
extern const int32_t g_FieldOffsetTable32[9];
extern const int32_t g_FieldOffsetTable33[3];
extern const int32_t g_FieldOffsetTable34[2];
extern const int32_t g_FieldOffsetTable36[2];
extern const int32_t g_FieldOffsetTable37[2];
extern const int32_t g_FieldOffsetTable38[9];
extern const int32_t g_FieldOffsetTable39[1];
extern const int32_t g_FieldOffsetTable41[2];
extern const int32_t g_FieldOffsetTable42[3];
extern const int32_t g_FieldOffsetTable43[1];
extern const int32_t g_FieldOffsetTable44[4];
extern const int32_t g_FieldOffsetTable51[8];
extern const int32_t g_FieldOffsetTable57[11];
extern const int32_t g_FieldOffsetTable59[1];
extern const int32_t g_FieldOffsetTable60[1];
extern const int32_t g_FieldOffsetTable63[2];
extern const int32_t g_FieldOffsetTable64[9];
extern const int32_t g_FieldOffsetTable65[7];
extern const int32_t g_FieldOffsetTable67[1];
extern const int32_t g_FieldOffsetTable68[2];
extern const int32_t g_FieldOffsetTable69[1];
extern const int32_t g_FieldOffsetTable72[2];
extern const int32_t g_FieldOffsetTable74[2];
extern const int32_t g_FieldOffsetTable75[1];
extern const int32_t g_FieldOffsetTable77[1];
extern const int32_t g_FieldOffsetTable78[5];
extern const int32_t g_FieldOffsetTable79[1];
extern const int32_t g_FieldOffsetTable80[1];
extern const int32_t g_FieldOffsetTable83[3];
extern const int32_t g_FieldOffsetTable84[4];
extern const int32_t g_FieldOffsetTable85[1];
extern const int32_t g_FieldOffsetTable86[2];
extern const int32_t g_FieldOffsetTable89[1];
extern const int32_t g_FieldOffsetTable95[7];
extern const int32_t g_FieldOffsetTable96[8];
extern const int32_t g_FieldOffsetTable97[6];
extern const int32_t g_FieldOffsetTable98[8];
extern const int32_t g_FieldOffsetTable99[1];
extern const int32_t g_FieldOffsetTable100[7];
extern const int32_t g_FieldOffsetTable102[1];
extern const int32_t g_FieldOffsetTable103[4];
extern const int32_t g_FieldOffsetTable104[5];
extern const int32_t g_FieldOffsetTable105[4];
extern const int32_t g_FieldOffsetTable106[3];
extern const int32_t g_FieldOffsetTable107[1];
extern const int32_t g_FieldOffsetTable108[2];
extern const int32_t g_FieldOffsetTable109[1];
extern const int32_t g_FieldOffsetTable110[22];
extern const int32_t g_FieldOffsetTable111[7];
extern const int32_t g_FieldOffsetTable112[13];
extern const int32_t g_FieldOffsetTable113[8];
extern const int32_t g_FieldOffsetTable114[2];
extern const int32_t g_FieldOffsetTable115[5];
extern const int32_t g_FieldOffsetTable116[6];
extern const int32_t g_FieldOffsetTable117[4];
extern const int32_t g_FieldOffsetTable118[22];
extern const int32_t g_FieldOffsetTable121[7];
extern const int32_t g_FieldOffsetTable123[4];
extern const int32_t g_FieldOffsetTable124[4];
extern const int32_t g_FieldOffsetTable125[2];
extern const int32_t g_FieldOffsetTable127[8];
extern const int32_t g_FieldOffsetTable128[15];
extern const int32_t g_FieldOffsetTable130[1];
extern const int32_t g_FieldOffsetTable131[4];
extern const int32_t g_FieldOffsetTable132[14];
extern const int32_t g_FieldOffsetTable134[5];
extern const int32_t g_FieldOffsetTable135[9];
extern const int32_t g_FieldOffsetTable136[5];
extern const int32_t g_FieldOffsetTable137[4];
extern const int32_t g_FieldOffsetTable139[4];
extern const int32_t g_FieldOffsetTable140[4];
extern const int32_t g_FieldOffsetTable141[4];
extern const int32_t g_FieldOffsetTable142[14];
extern const int32_t g_FieldOffsetTable144[12];
extern const int32_t g_FieldOffsetTable145[2];
extern const int32_t g_FieldOffsetTable146[2];
extern const int32_t g_FieldOffsetTable147[17];
extern const int32_t g_FieldOffsetTable148[7];
extern const int32_t g_FieldOffsetTable149[15];
extern const int32_t g_FieldOffsetTable150[26];
extern const int32_t g_FieldOffsetTable152[1];
extern const int32_t g_FieldOffsetTable153[5];
extern const int32_t g_FieldOffsetTable154[8];
extern const int32_t g_FieldOffsetTable155[3];
extern const int32_t g_FieldOffsetTable156[1];
extern const int32_t g_FieldOffsetTable157[3];
extern const int32_t g_FieldOffsetTable158[2];
extern const int32_t g_FieldOffsetTable159[2];
extern const int32_t g_FieldOffsetTable160[3];
extern const int32_t g_FieldOffsetTable164[2];
extern const int32_t g_FieldOffsetTable165[4];
extern const int32_t g_FieldOffsetTable166[8];
extern const int32_t g_FieldOffsetTable167[8];
extern const int32_t g_FieldOffsetTable168[6];
extern const int32_t g_FieldOffsetTable169[3];
extern const int32_t g_FieldOffsetTable170[13];
extern const int32_t g_FieldOffsetTable173[2];
extern const int32_t g_FieldOffsetTable174[2];
extern const int32_t g_FieldOffsetTable178[1];
extern const int32_t g_FieldOffsetTable181[2];
extern const int32_t g_FieldOffsetTable182[16];
extern const int32_t g_FieldOffsetTable183[1];
extern const int32_t g_FieldOffsetTable184[4];
extern const int32_t g_FieldOffsetTable185[1];
extern const int32_t g_FieldOffsetTable186[1];
extern const int32_t g_FieldOffsetTable187[1];
extern const int32_t g_FieldOffsetTable188[1];
extern const int32_t g_FieldOffsetTable190[1];
extern const int32_t g_FieldOffsetTable197[2];
extern const int32_t g_FieldOffsetTable198[5];
extern const int32_t g_FieldOffsetTable199[4];
extern const int32_t g_FieldOffsetTable200[2];
extern const int32_t g_FieldOffsetTable201[1];
extern const int32_t g_FieldOffsetTable202[5];
extern const int32_t g_FieldOffsetTable203[5];
extern const int32_t g_FieldOffsetTable204[1];
extern const int32_t g_FieldOffsetTable205[1];
extern const int32_t g_FieldOffsetTable208[3];
extern const int32_t g_FieldOffsetTable209[4];
extern const int32_t g_FieldOffsetTable210[3];
extern const int32_t g_FieldOffsetTable211[3];
extern const int32_t g_FieldOffsetTable212[1];
extern const int32_t g_FieldOffsetTable214[3];
extern const int32_t g_FieldOffsetTable215[2];
extern const int32_t g_FieldOffsetTable216[14];
extern const int32_t g_FieldOffsetTable217[2];
extern const int32_t g_FieldOffsetTable218[1];
extern const int32_t g_FieldOffsetTable219[4];
extern const int32_t g_FieldOffsetTable220[8];
extern const int32_t g_FieldOffsetTable221[1];
extern const int32_t g_FieldOffsetTable222[1];
extern const int32_t g_FieldOffsetTable223[1];
extern const int32_t g_FieldOffsetTable229[6];
extern const int32_t g_FieldOffsetTable230[3];
extern const int32_t g_FieldOffsetTable231[1];
extern const int32_t g_FieldOffsetTable232[6];
extern const int32_t g_FieldOffsetTable233[2];
extern const int32_t g_FieldOffsetTable234[4];
extern const int32_t g_FieldOffsetTable235[9];
extern const int32_t g_FieldOffsetTable236[1];
extern const int32_t g_FieldOffsetTable237[1];
extern const int32_t g_FieldOffsetTable238[5];
extern const int32_t g_FieldOffsetTable239[3];
extern const int32_t g_FieldOffsetTable240[4];
extern const int32_t g_FieldOffsetTable241[4];
extern const int32_t g_FieldOffsetTable243[3];
extern const int32_t g_FieldOffsetTable244[6];
extern const int32_t g_FieldOffsetTable245[1];
extern const int32_t g_FieldOffsetTable246[4];
extern const int32_t g_FieldOffsetTable247[3];
extern const int32_t g_FieldOffsetTable249[1];
extern const int32_t g_FieldOffsetTable250[8];
extern const int32_t g_FieldOffsetTable251[3];
extern const int32_t g_FieldOffsetTable252[4];
extern const int32_t g_FieldOffsetTable256[6];
extern const int32_t g_FieldOffsetTable257[10];
extern const int32_t g_FieldOffsetTable258[40];
extern const int32_t g_FieldOffsetTable259[9];
extern const int32_t g_FieldOffsetTable260[6];
extern const int32_t g_FieldOffsetTable261[58];
extern const int32_t g_FieldOffsetTable262[11];
extern const int32_t g_FieldOffsetTable263[3];
extern const int32_t g_FieldOffsetTable264[1];
extern const int32_t g_FieldOffsetTable265[7];
extern const int32_t g_FieldOffsetTable266[39];
extern const int32_t g_FieldOffsetTable267[18];
extern const int32_t g_FieldOffsetTable268[9];
extern const int32_t g_FieldOffsetTable269[5];
extern const int32_t g_FieldOffsetTable270[31];
extern const int32_t g_FieldOffsetTable272[6];
extern const int32_t g_FieldOffsetTable273[7];
extern const int32_t g_FieldOffsetTable275[2];
extern const int32_t g_FieldOffsetTable278[1];
extern const int32_t g_FieldOffsetTable279[4];
extern const int32_t g_FieldOffsetTable280[15];
extern const int32_t g_FieldOffsetTable281[4];
extern const int32_t g_FieldOffsetTable282[7];
extern const int32_t g_FieldOffsetTable283[2];
extern const int32_t g_FieldOffsetTable284[8];
extern const int32_t g_FieldOffsetTable285[7];
extern const int32_t g_FieldOffsetTable286[14];
extern const int32_t g_FieldOffsetTable289[9];
extern const int32_t g_FieldOffsetTable290[4];
extern const int32_t g_FieldOffsetTable292[10];
extern const int32_t g_FieldOffsetTable293[6];
extern const int32_t g_FieldOffsetTable294[2];
extern const int32_t g_FieldOffsetTable295[25];
extern const int32_t g_FieldOffsetTable296[6];
extern const int32_t g_FieldOffsetTable297[8];
extern const int32_t g_FieldOffsetTable299[2];
extern const int32_t g_FieldOffsetTable300[4];
extern const int32_t g_FieldOffsetTable301[1];
extern const int32_t g_FieldOffsetTable303[6];
extern const int32_t g_FieldOffsetTable304[13];
extern const int32_t g_FieldOffsetTable306[10];
extern const int32_t g_FieldOffsetTable307[3];
extern const int32_t g_FieldOffsetTable308[1];
extern const int32_t g_FieldOffsetTable310[1];
extern const int32_t g_FieldOffsetTable311[2];
extern const int32_t g_FieldOffsetTable313[2];
extern const int32_t g_FieldOffsetTable314[2];
extern const int32_t g_FieldOffsetTable316[8];
extern const int32_t g_FieldOffsetTable317[6];
extern const int32_t g_FieldOffsetTable318[21];
extern const int32_t g_FieldOffsetTable319[5];
extern const int32_t g_FieldOffsetTable320[11];
extern const int32_t g_FieldOffsetTable321[12];
extern const int32_t g_FieldOffsetTable322[2];
extern const int32_t g_FieldOffsetTable323[5];
extern const int32_t g_FieldOffsetTable324[4];
extern const int32_t g_FieldOffsetTable325[2];
extern const int32_t g_FieldOffsetTable327[14];
extern const int32_t g_FieldOffsetTable328[3];
extern const int32_t g_FieldOffsetTable329[2];
extern const int32_t g_FieldOffsetTable330[1];
extern const int32_t g_FieldOffsetTable331[1];
extern const int32_t g_FieldOffsetTable332[18];
extern const int32_t g_FieldOffsetTable333[2];
extern const int32_t g_FieldOffsetTable334[13];
extern const int32_t g_FieldOffsetTable335[1];
extern const int32_t g_FieldOffsetTable336[8];
extern const int32_t g_FieldOffsetTable337[1];
extern const int32_t g_FieldOffsetTable338[226];
extern const int32_t g_FieldOffsetTable339[19];
extern const int32_t g_FieldOffsetTable340[4];
extern const int32_t g_FieldOffsetTable341[10];
extern const int32_t g_FieldOffsetTable342[3];
extern const int32_t g_FieldOffsetTable343[6];
extern const int32_t g_FieldOffsetTable344[30];
extern const int32_t g_FieldOffsetTable345[21];
extern const int32_t g_FieldOffsetTable346[9];
extern const int32_t g_FieldOffsetTable348[10];
extern const int32_t g_FieldOffsetTable350[1];
extern const int32_t g_FieldOffsetTable351[1];
extern const int32_t g_FieldOffsetTable352[1];
extern const int32_t g_FieldOffsetTable353[1];
extern const int32_t g_FieldOffsetTable354[1];
extern const int32_t g_FieldOffsetTable355[1];
extern const int32_t g_FieldOffsetTable356[1];
extern const int32_t g_FieldOffsetTable357[1];
extern const int32_t g_FieldOffsetTable358[1];
extern const int32_t g_FieldOffsetTable359[1];
extern const int32_t g_FieldOffsetTable360[15];
extern const int32_t g_FieldOffsetTable361[6];
extern const int32_t g_FieldOffsetTable362[1];
extern const int32_t g_FieldOffsetTable363[1];
extern const int32_t g_FieldOffsetTable364[1];
extern const int32_t g_FieldOffsetTable365[1];
extern const int32_t g_FieldOffsetTable367[21];
extern const int32_t g_FieldOffsetTable368[6];
extern const int32_t g_FieldOffsetTable369[2];
extern const int32_t g_FieldOffsetTable370[3];
extern const int32_t g_FieldOffsetTable371[2];
extern const int32_t g_FieldOffsetTable372[2];
extern const int32_t g_FieldOffsetTable373[5];
extern const int32_t g_FieldOffsetTable374[1];
extern const int32_t g_FieldOffsetTable376[20];
extern const int32_t g_FieldOffsetTable378[3];
extern const int32_t g_FieldOffsetTable379[3];
extern const int32_t g_FieldOffsetTable380[5];
extern const int32_t g_FieldOffsetTable381[10];
extern const int32_t g_FieldOffsetTable382[25];
extern const int32_t g_FieldOffsetTable384[15];
extern const int32_t g_FieldOffsetTable386[1];
extern const int32_t g_FieldOffsetTable387[10];
extern const int32_t g_FieldOffsetTable388[8];
extern const int32_t g_FieldOffsetTable389[2];
extern const int32_t g_FieldOffsetTable390[5];
extern const int32_t g_FieldOffsetTable393[5];
extern const int32_t g_FieldOffsetTable394[3];
extern const int32_t g_FieldOffsetTable395[3];
extern const int32_t g_FieldOffsetTable396[5];
extern const int32_t g_FieldOffsetTable397[7];
extern const int32_t g_FieldOffsetTable398[5];
extern const int32_t g_FieldOffsetTable402[12];
extern const int32_t g_FieldOffsetTable403[7];
extern const int32_t g_FieldOffsetTable404[1];
extern const int32_t g_FieldOffsetTable405[2];
extern const int32_t g_FieldOffsetTable406[6];
extern const int32_t g_FieldOffsetTable407[9];
extern const int32_t g_FieldOffsetTable409[3];
extern const int32_t g_FieldOffsetTable410[4];
extern const int32_t g_FieldOffsetTable411[5];
extern const int32_t g_FieldOffsetTable415[32];
extern const int32_t g_FieldOffsetTable416[1];
extern const int32_t g_FieldOffsetTable418[1];
extern const int32_t g_FieldOffsetTable419[5];
extern const int32_t g_FieldOffsetTable420[21];
extern const int32_t g_FieldOffsetTable421[13];
extern const int32_t g_FieldOffsetTable422[3];
extern const int32_t g_FieldOffsetTable423[2];
extern const int32_t g_FieldOffsetTable424[3];
extern const int32_t g_FieldOffsetTable425[4];
extern const int32_t g_FieldOffsetTable427[1];
extern const int32_t g_FieldOffsetTable428[2];
extern const int32_t g_FieldOffsetTable429[1];
extern const int32_t g_FieldOffsetTable430[1];
extern const int32_t g_FieldOffsetTable432[4];
extern const int32_t g_FieldOffsetTable434[4];
extern const int32_t g_FieldOffsetTable435[5];
extern const int32_t g_FieldOffsetTable437[2];
extern const int32_t g_FieldOffsetTable438[2];
extern const int32_t g_FieldOffsetTable440[6];
extern const int32_t g_FieldOffsetTable441[5];
extern const int32_t g_FieldOffsetTable442[1];
extern const int32_t g_FieldOffsetTable443[4];
extern const int32_t g_FieldOffsetTable444[1];
extern const int32_t g_FieldOffsetTable445[4];
extern const int32_t g_FieldOffsetTable446[1];
extern const int32_t g_FieldOffsetTable447[1];
extern const int32_t g_FieldOffsetTable449[1];
extern const int32_t g_FieldOffsetTable450[5];
extern const int32_t g_FieldOffsetTable451[2];
extern const int32_t g_FieldOffsetTable452[1];
extern const int32_t g_FieldOffsetTable453[2];
extern const int32_t g_FieldOffsetTable454[1];
extern const int32_t g_FieldOffsetTable456[4];
extern const int32_t g_FieldOffsetTable457[1];
extern const int32_t g_FieldOffsetTable458[2];
extern const int32_t g_FieldOffsetTable459[1];
extern const int32_t g_FieldOffsetTable460[36];
extern const int32_t g_FieldOffsetTable484[1];
extern const int32_t g_FieldOffsetTable485[2];
extern const int32_t g_FieldOffsetTable487[1];
extern const int32_t g_FieldOffsetTable491[1];
extern const int32_t g_FieldOffsetTable492[1];
extern const int32_t g_FieldOffsetTable493[5];
extern const int32_t g_FieldOffsetTable494[3];
extern const int32_t g_FieldOffsetTable495[1];
extern const int32_t g_FieldOffsetTable496[3];
extern const int32_t g_FieldOffsetTable504[3];
extern const int32_t g_FieldOffsetTable505[14];
extern const int32_t g_FieldOffsetTable506[1];
extern const int32_t g_FieldOffsetTable507[2];
extern const int32_t g_FieldOffsetTable509[1];
extern const int32_t g_FieldOffsetTable520[5];
extern const int32_t g_FieldOffsetTable521[2];
extern const int32_t g_FieldOffsetTable522[2];
extern const int32_t g_FieldOffsetTable525[8];
extern const int32_t g_FieldOffsetTable527[2];
extern const int32_t g_FieldOffsetTable528[1];
extern const int32_t g_FieldOffsetTable529[6];
extern const int32_t g_FieldOffsetTable530[5];
extern const int32_t g_FieldOffsetTable531[3];
extern const int32_t g_FieldOffsetTable532[3];
extern const int32_t g_FieldOffsetTable533[15];
extern const int32_t g_FieldOffsetTable534[1];
extern const int32_t g_FieldOffsetTable535[7];
extern const int32_t g_FieldOffsetTable536[3];
extern const int32_t g_FieldOffsetTable537[1];
extern const int32_t g_FieldOffsetTable538[4];
extern const int32_t g_FieldOffsetTable548[2];
extern const int32_t g_FieldOffsetTable549[1];
extern const int32_t g_FieldOffsetTable550[11];
extern const int32_t g_FieldOffsetTable551[1];
extern const int32_t g_FieldOffsetTable552[6];
extern const int32_t g_FieldOffsetTable553[3];
extern const int32_t g_FieldOffsetTable554[2];
extern const int32_t g_FieldOffsetTable555[10];
extern const int32_t g_FieldOffsetTable556[5];
extern const int32_t g_FieldOffsetTable560[4];
extern const int32_t g_FieldOffsetTable561[13];
extern const int32_t g_FieldOffsetTable563[1];
extern const int32_t g_FieldOffsetTable564[2];
extern const int32_t g_FieldOffsetTable565[3];
extern const int32_t g_FieldOffsetTable566[2];
extern const int32_t g_FieldOffsetTable567[6];
extern const int32_t g_FieldOffsetTable569[7];
extern const int32_t g_FieldOffsetTable571[1];
extern const int32_t g_FieldOffsetTable572[5];
extern const int32_t g_FieldOffsetTable573[5];
extern const int32_t g_FieldOffsetTable575[1];
extern const int32_t g_FieldOffsetTable576[2];
extern const int32_t g_FieldOffsetTable577[1];
extern const int32_t g_FieldOffsetTable578[1];
extern const int32_t g_FieldOffsetTable582[7];
extern const int32_t g_FieldOffsetTable583[1];
extern const int32_t g_FieldOffsetTable584[1];
extern const int32_t g_FieldOffsetTable585[9];
extern const int32_t g_FieldOffsetTable586[13];
extern const int32_t g_FieldOffsetTable587[10];
extern const int32_t g_FieldOffsetTable588[7];
extern const int32_t g_FieldOffsetTable589[5];
extern const int32_t g_FieldOffsetTable592[8];
extern const int32_t g_FieldOffsetTable593[5];
extern const int32_t g_FieldOffsetTable597[5];
extern const int32_t g_FieldOffsetTable598[2];
extern const int32_t g_FieldOffsetTable599[2];
extern const int32_t g_FieldOffsetTable600[3];
extern const int32_t g_FieldOffsetTable601[3];
extern const int32_t g_FieldOffsetTable602[3];
extern const int32_t g_FieldOffsetTable603[3];
extern const int32_t g_FieldOffsetTable604[4];
extern const int32_t g_FieldOffsetTable605[24];
extern const int32_t g_FieldOffsetTable606[9];
extern const int32_t g_FieldOffsetTable607[11];
extern const int32_t g_FieldOffsetTable608[5];
extern const int32_t g_FieldOffsetTable609[7];
extern const int32_t g_FieldOffsetTable610[2];
extern const int32_t g_FieldOffsetTable612[12];
extern const int32_t g_FieldOffsetTable613[6];
extern const int32_t g_FieldOffsetTable614[1];
extern const int32_t g_FieldOffsetTable615[2];
extern const int32_t g_FieldOffsetTable616[1];
extern const int32_t g_FieldOffsetTable617[2];
extern const int32_t g_FieldOffsetTable618[1];
extern const int32_t g_FieldOffsetTable619[14];
extern const int32_t g_FieldOffsetTable620[2];
extern const int32_t g_FieldOffsetTable621[3];
extern const int32_t g_FieldOffsetTable622[4];
extern const int32_t g_FieldOffsetTable623[3];
extern const int32_t g_FieldOffsetTable632[3];
extern const int32_t g_FieldOffsetTable634[9];
extern const int32_t g_FieldOffsetTable635[4];
extern const int32_t g_FieldOffsetTable636[1];
extern const int32_t g_FieldOffsetTable637[1];
extern const int32_t g_FieldOffsetTable638[1];
extern const int32_t g_FieldOffsetTable639[1];
extern const int32_t g_FieldOffsetTable640[5];
extern const int32_t g_FieldOffsetTable641[13];
extern const int32_t g_FieldOffsetTable647[6];
extern const int32_t g_FieldOffsetTable649[3];
extern const int32_t g_FieldOffsetTable651[5];
extern const int32_t g_FieldOffsetTable652[1];
extern const int32_t g_FieldOffsetTable653[3];
extern const int32_t g_FieldOffsetTable654[2];
extern const int32_t g_FieldOffsetTable655[2];
extern const int32_t g_FieldOffsetTable656[10];
extern const int32_t g_FieldOffsetTable661[5];
extern const int32_t g_FieldOffsetTable662[5];
extern const int32_t g_FieldOffsetTable663[9];
extern const int32_t g_FieldOffsetTable664[7];
extern const int32_t g_FieldOffsetTable665[2];
extern const int32_t g_FieldOffsetTable670[2];
extern const int32_t g_FieldOffsetTable671[6];
extern const int32_t g_FieldOffsetTable672[1];
extern const int32_t g_FieldOffsetTable673[139];
extern const int32_t g_FieldOffsetTable674[5];
extern const int32_t g_FieldOffsetTable675[15];
extern const int32_t g_FieldOffsetTable676[3];
extern const int32_t g_FieldOffsetTable679[2];
extern const int32_t g_FieldOffsetTable680[7];
extern const int32_t g_FieldOffsetTable681[9];
extern const int32_t g_FieldOffsetTable682[3];
extern const int32_t g_FieldOffsetTable683[13];
extern const int32_t g_FieldOffsetTable686[8];
extern const int32_t g_FieldOffsetTable687[8];
extern const int32_t g_FieldOffsetTable688[1];
extern const int32_t g_FieldOffsetTable689[1];
extern const int32_t g_FieldOffsetTable691[3];
extern const int32_t g_FieldOffsetTable692[6];
extern const int32_t g_FieldOffsetTable693[5];
extern const int32_t g_FieldOffsetTable698[2];
extern const int32_t g_FieldOffsetTable699[2];
extern const int32_t g_FieldOffsetTable700[4];
extern const int32_t g_FieldOffsetTable703[3];
extern const int32_t g_FieldOffsetTable704[3];
extern const int32_t g_FieldOffsetTable705[1];
extern const int32_t g_FieldOffsetTable706[3];
extern const int32_t g_FieldOffsetTable708[8];
extern const int32_t g_FieldOffsetTable710[1];
extern const int32_t g_FieldOffsetTable711[6];
extern const int32_t g_FieldOffsetTable712[10];
extern const int32_t g_FieldOffsetTable713[1];
extern const int32_t g_FieldOffsetTable714[1];
extern const int32_t g_FieldOffsetTable715[7];
extern const int32_t g_FieldOffsetTable717[6];
extern const int32_t g_FieldOffsetTable718[2];
extern const int32_t g_FieldOffsetTable720[9];
extern const int32_t g_FieldOffsetTable721[1];
extern const int32_t g_FieldOffsetTable722[3];
extern const int32_t g_FieldOffsetTable723[2];
extern const int32_t g_FieldOffsetTable724[2];
extern const int32_t g_FieldOffsetTable725[2];
extern const int32_t g_FieldOffsetTable726[2];
extern const int32_t g_FieldOffsetTable727[8];
extern const int32_t g_FieldOffsetTable729[7];
extern const int32_t g_FieldOffsetTable732[15];
extern const int32_t g_FieldOffsetTable733[2];
extern const int32_t g_FieldOffsetTable735[7];
extern const int32_t g_FieldOffsetTable736[1];
extern const int32_t g_FieldOffsetTable737[1];
extern const int32_t g_FieldOffsetTable739[7];
extern const int32_t g_FieldOffsetTable741[14];
extern const int32_t g_FieldOffsetTable743[14];
extern const int32_t g_FieldOffsetTable744[2];
extern const int32_t g_FieldOffsetTable745[4];
extern const int32_t g_FieldOffsetTable748[10];
extern const int32_t g_FieldOffsetTable749[3];
extern const int32_t g_FieldOffsetTable752[6];
extern const int32_t g_FieldOffsetTable754[3];
extern const int32_t g_FieldOffsetTable755[5];
extern const int32_t g_FieldOffsetTable756[1];
extern const int32_t g_FieldOffsetTable757[5];
extern const int32_t g_FieldOffsetTable758[9];
extern const int32_t g_FieldOffsetTable759[7];
extern const int32_t g_FieldOffsetTable760[12];
extern const int32_t g_FieldOffsetTable763[13];
extern const int32_t g_FieldOffsetTable765[5];
extern const int32_t g_FieldOffsetTable766[2];
extern const int32_t g_FieldOffsetTable767[6];
extern const int32_t g_FieldOffsetTable768[1];
extern const int32_t g_FieldOffsetTable769[1];
extern const int32_t g_FieldOffsetTable770[12];
extern const int32_t g_FieldOffsetTable771[3];
extern const int32_t g_FieldOffsetTable772[1];
extern const int32_t g_FieldOffsetTable773[7];
extern const int32_t g_FieldOffsetTable774[4];
extern const int32_t g_FieldOffsetTable775[6];
extern const int32_t g_FieldOffsetTable776[10];
extern const int32_t g_FieldOffsetTable777[1];
extern const int32_t g_FieldOffsetTable778[1];
extern const int32_t g_FieldOffsetTable779[17];
extern const int32_t g_FieldOffsetTable780[3];
extern const int32_t g_FieldOffsetTable781[3];
extern const int32_t g_FieldOffsetTable782[1];
extern const int32_t g_FieldOffsetTable783[2];
extern const int32_t g_FieldOffsetTable784[4];
extern const int32_t g_FieldOffsetTable785[5];
extern const int32_t g_FieldOffsetTable786[1];
extern const int32_t g_FieldOffsetTable787[1];
extern const int32_t g_FieldOffsetTable788[1];
extern const int32_t g_FieldOffsetTable789[6];
extern const int32_t g_FieldOffsetTable790[6];
extern const int32_t g_FieldOffsetTable791[6];
extern const int32_t g_FieldOffsetTable792[12];
extern const int32_t g_FieldOffsetTable793[3];
extern const int32_t g_FieldOffsetTable794[4];
extern const int32_t g_FieldOffsetTable795[3];
extern const int32_t g_FieldOffsetTable796[1];
extern const int32_t g_FieldOffsetTable798[2];
extern const int32_t g_FieldOffsetTable804[1];
extern const int32_t g_FieldOffsetTable806[4];
extern const int32_t g_FieldOffsetTable807[3];
extern const int32_t g_FieldOffsetTable809[8];
extern const int32_t g_FieldOffsetTable810[2];
extern const int32_t g_FieldOffsetTable811[5];
extern const int32_t g_FieldOffsetTable812[3];
extern const int32_t g_FieldOffsetTable813[4];
extern const int32_t g_FieldOffsetTable816[1];
extern const int32_t g_FieldOffsetTable817[2];
extern const int32_t g_FieldOffsetTable818[2];
extern const int32_t g_FieldOffsetTable819[2];
extern const int32_t g_FieldOffsetTable822[4];
extern const int32_t g_FieldOffsetTable823[6];
extern const int32_t g_FieldOffsetTable824[5];
extern const int32_t g_FieldOffsetTable825[7];
extern const int32_t g_FieldOffsetTable826[1];
extern const int32_t g_FieldOffsetTable829[2];
extern const int32_t g_FieldOffsetTable831[8];
extern const int32_t g_FieldOffsetTable837[2];
extern const int32_t g_FieldOffsetTable838[1];
extern const int32_t g_FieldOffsetTable839[2];
extern const int32_t g_FieldOffsetTable840[2];
extern const int32_t g_FieldOffsetTable841[5];
extern const int32_t g_FieldOffsetTable842[6];
extern const int32_t g_FieldOffsetTable843[5];
extern const int32_t g_FieldOffsetTable844[1];
extern const int32_t g_FieldOffsetTable845[3];
extern const int32_t g_FieldOffsetTable846[9];
extern const int32_t g_FieldOffsetTable847[2];
extern const int32_t g_FieldOffsetTable848[14];
extern const int32_t g_FieldOffsetTable849[3];
extern const int32_t g_FieldOffsetTable850[5];
extern const int32_t g_FieldOffsetTable851[5];
extern const int32_t g_FieldOffsetTable852[3];
extern const int32_t g_FieldOffsetTable853[6];
extern const int32_t g_FieldOffsetTable858[7];
extern const int32_t g_FieldOffsetTable864[2];
extern const int32_t g_FieldOffsetTable867[3];
extern const int32_t g_FieldOffsetTable869[2];
extern const int32_t g_FieldOffsetTable870[1];
extern const int32_t g_FieldOffsetTable871[3];
extern const int32_t g_FieldOffsetTable874[3];
extern const int32_t g_FieldOffsetTable876[4];
extern const int32_t g_FieldOffsetTable877[1];
extern const int32_t g_FieldOffsetTable878[3];
extern const int32_t g_FieldOffsetTable879[28];
extern const int32_t g_FieldOffsetTable880[1];
extern const int32_t g_FieldOffsetTable882[5];
extern const int32_t g_FieldOffsetTable883[2];
extern const int32_t g_FieldOffsetTable884[3];
extern const int32_t g_FieldOffsetTable885[3];
extern const int32_t g_FieldOffsetTable886[1];
extern const int32_t g_FieldOffsetTable887[1];
extern const int32_t g_FieldOffsetTable888[2];
extern const int32_t g_FieldOffsetTable889[2];
extern const int32_t g_FieldOffsetTable890[2];
extern const int32_t g_FieldOffsetTable891[4];
extern const int32_t g_FieldOffsetTable892[2];
extern const int32_t g_FieldOffsetTable894[1];
extern const int32_t g_FieldOffsetTable895[3];
extern const int32_t g_FieldOffsetTable897[3];
extern const int32_t g_FieldOffsetTable903[9];
extern const int32_t g_FieldOffsetTable904[1];
extern const int32_t g_FieldOffsetTable906[52];
extern const int32_t g_FieldOffsetTable910[11];
extern const int32_t g_FieldOffsetTable912[7];
extern const int32_t g_FieldOffsetTable914[2];
extern const int32_t g_FieldOffsetTable915[4];
extern const int32_t g_FieldOffsetTable917[1];
extern const int32_t g_FieldOffsetTable919[21];
extern const int32_t g_FieldOffsetTable921[22];
extern const int32_t g_FieldOffsetTable923[1];
extern const int32_t g_FieldOffsetTable924[2];
extern const int32_t g_FieldOffsetTable925[1];
extern const int32_t g_FieldOffsetTable926[1];
extern const int32_t g_FieldOffsetTable928[3];
extern const int32_t g_FieldOffsetTable929[1];
extern const int32_t g_FieldOffsetTable931[17];
extern const int32_t g_FieldOffsetTable932[2];
extern const int32_t g_FieldOffsetTable934[3];
extern const int32_t g_FieldOffsetTable935[5];
extern const int32_t g_FieldOffsetTable937[2];
extern const int32_t g_FieldOffsetTable938[1];
extern const int32_t g_FieldOffsetTable939[15];
extern const int32_t g_FieldOffsetTable940[5];
extern const int32_t g_FieldOffsetTable941[4];
extern const int32_t g_FieldOffsetTable942[4];
extern const int32_t g_FieldOffsetTable944[8];
extern const int32_t g_FieldOffsetTable945[2];
extern const int32_t g_FieldOffsetTable946[1];
extern const int32_t g_FieldOffsetTable947[7];
extern const int32_t g_FieldOffsetTable948[1];
extern const int32_t g_FieldOffsetTable949[1];
extern const int32_t g_FieldOffsetTable950[1];
extern const int32_t g_FieldOffsetTable951[11];
extern const int32_t g_FieldOffsetTable956[2];
extern const int32_t g_FieldOffsetTable957[24];
extern const int32_t g_FieldOffsetTable958[4];
extern const int32_t g_FieldOffsetTable959[1];
extern const int32_t g_FieldOffsetTable963[1];
extern const int32_t g_FieldOffsetTable965[15];
extern const int32_t g_FieldOffsetTable966[3];
extern const int32_t g_FieldOffsetTable971[1];
extern const int32_t g_FieldOffsetTable972[1];
extern const int32_t g_FieldOffsetTable973[7];
extern const int32_t g_FieldOffsetTable974[5];
extern const int32_t g_FieldOffsetTable977[1];
extern const int32_t g_FieldOffsetTable979[3];
extern const int32_t g_FieldOffsetTable980[1];
extern const int32_t g_FieldOffsetTable981[7];
extern const int32_t g_FieldOffsetTable982[3];
extern const int32_t g_FieldOffsetTable983[2];
extern const int32_t g_FieldOffsetTable984[1];
extern const int32_t g_FieldOffsetTable985[2];
extern const int32_t g_FieldOffsetTable986[1];
extern const int32_t g_FieldOffsetTable990[1];
extern const int32_t g_FieldOffsetTable991[1];
extern const int32_t g_FieldOffsetTable993[26];
extern const int32_t g_FieldOffsetTable994[14];
extern const int32_t g_FieldOffsetTable995[2];
extern const int32_t g_FieldOffsetTable996[3];
extern const int32_t g_FieldOffsetTable997[1];
extern const int32_t g_FieldOffsetTable998[1];
extern const int32_t g_FieldOffsetTable999[8];
extern const int32_t g_FieldOffsetTable1000[1];
extern const int32_t g_FieldOffsetTable1001[3];
extern const int32_t g_FieldOffsetTable1003[1];
extern const int32_t g_FieldOffsetTable1004[1];
extern const int32_t g_FieldOffsetTable1006[4];
extern const int32_t g_FieldOffsetTable1007[2];
extern const int32_t g_FieldOffsetTable1008[1];
extern const int32_t g_FieldOffsetTable1009[7];
extern const int32_t g_FieldOffsetTable1010[3];
extern const int32_t g_FieldOffsetTable1013[4];
extern const int32_t g_FieldOffsetTable1014[4];
extern const int32_t g_FieldOffsetTable1015[3];
extern const int32_t g_FieldOffsetTable1016[8];
extern const int32_t g_FieldOffsetTable1017[19];
extern const int32_t g_FieldOffsetTable1018[1];
extern const int32_t g_FieldOffsetTable1019[3];
extern const int32_t g_FieldOffsetTable1021[2];
extern const int32_t g_FieldOffsetTable1022[3];
extern const int32_t g_FieldOffsetTable1023[5];
extern const int32_t g_FieldOffsetTable1024[5];
extern const int32_t g_FieldOffsetTable1025[2];
extern const int32_t g_FieldOffsetTable1048[55];
extern const int32_t g_FieldOffsetTable1076[4];
extern const int32_t g_FieldOffsetTable1077[4];
extern const int32_t g_FieldOffsetTable1078[2];
extern const int32_t g_FieldOffsetTable1080[7];
extern const int32_t g_FieldOffsetTable1084[3];
extern const int32_t g_FieldOffsetTable1088[2];
extern const int32_t g_FieldOffsetTable1089[4];
extern const int32_t g_FieldOffsetTable1090[4];
extern const int32_t g_FieldOffsetTable1091[5];
extern const int32_t g_FieldOffsetTable1093[1];
extern const int32_t g_FieldOffsetTable1095[6];
extern const int32_t g_FieldOffsetTable1097[5];
extern const int32_t g_FieldOffsetTable1098[4];
extern const int32_t g_FieldOffsetTable1100[4];
extern const int32_t g_FieldOffsetTable1101[4];
extern const int32_t g_FieldOffsetTable1102[2];
extern const int32_t g_FieldOffsetTable1103[13];
extern const int32_t g_FieldOffsetTable1105[6];
extern const int32_t g_FieldOffsetTable1106[2];
extern const int32_t g_FieldOffsetTable1107[2];
extern const int32_t g_FieldOffsetTable1108[36];
extern const int32_t g_FieldOffsetTable1109[7];
extern const int32_t g_FieldOffsetTable1110[4];
extern const int32_t g_FieldOffsetTable1111[16];
extern const int32_t g_FieldOffsetTable1112[3];
extern const int32_t g_FieldOffsetTable1113[26];
extern const int32_t g_FieldOffsetTable1115[1];
extern const int32_t g_FieldOffsetTable1116[10];
extern const int32_t g_FieldOffsetTable1117[5];
extern const int32_t g_FieldOffsetTable1118[8];
extern const int32_t g_FieldOffsetTable1119[12];
extern const int32_t g_FieldOffsetTable1120[3];
extern const int32_t g_FieldOffsetTable1121[3];
extern const int32_t g_FieldOffsetTable1122[1];
extern const int32_t g_FieldOffsetTable1123[5];
extern const int32_t g_FieldOffsetTable1124[2];
extern const int32_t g_FieldOffsetTable1125[6];
extern const int32_t g_FieldOffsetTable1126[5];
extern const int32_t g_FieldOffsetTable1128[4];
extern const int32_t g_FieldOffsetTable1146[1];
extern const int32_t g_FieldOffsetTable1147[2];
extern const int32_t g_FieldOffsetTable1148[2];
extern const int32_t g_FieldOffsetTable1149[5];
extern const int32_t g_FieldOffsetTable1150[11];
extern const int32_t g_FieldOffsetTable1151[1];
extern const int32_t g_FieldOffsetTable1152[1];
extern const int32_t g_FieldOffsetTable1153[8];
extern const int32_t g_FieldOffsetTable1154[1];
extern const int32_t g_FieldOffsetTable1155[1];
extern const int32_t g_FieldOffsetTable1156[4];
extern const int32_t g_FieldOffsetTable1157[3];
extern const int32_t g_FieldOffsetTable1158[3];
extern const int32_t g_FieldOffsetTable1159[25];
extern const int32_t g_FieldOffsetTable1160[2];
extern const int32_t g_FieldOffsetTable1161[8];
extern const int32_t g_FieldOffsetTable1162[21];
extern const int32_t g_FieldOffsetTable1163[2];
extern const int32_t g_FieldOffsetTable1165[2];
extern const int32_t g_FieldOffsetTable1167[7];
extern const int32_t g_FieldOffsetTable1168[2];
extern const int32_t g_FieldOffsetTable1169[5];
extern const int32_t g_FieldOffsetTable1170[34];
extern const int32_t g_FieldOffsetTable1171[1];
extern const int32_t g_FieldOffsetTable1172[6];
extern const int32_t g_FieldOffsetTable1173[4];
extern const int32_t g_FieldOffsetTable1174[4];
extern const int32_t g_FieldOffsetTable1175[4];
extern const int32_t g_FieldOffsetTable1176[3];
extern const int32_t g_FieldOffsetTable1177[9];
extern const int32_t g_FieldOffsetTable1178[7];
extern const int32_t g_FieldOffsetTable1179[3];
extern const int32_t g_FieldOffsetTable1180[3];
extern const int32_t g_FieldOffsetTable1181[3];
extern const int32_t g_FieldOffsetTable1182[3];
extern const int32_t g_FieldOffsetTable1183[5];
extern const int32_t g_FieldOffsetTable1184[3];
extern const int32_t g_FieldOffsetTable1186[3];
extern const int32_t g_FieldOffsetTable1187[4];
extern const int32_t g_FieldOffsetTable1188[4];
extern const int32_t g_FieldOffsetTable1189[8];
extern const int32_t g_FieldOffsetTable1190[3];
extern const int32_t g_FieldOffsetTable1191[15];
extern const int32_t g_FieldOffsetTable1192[12];
extern const int32_t g_FieldOffsetTable1194[3];
extern const int32_t g_FieldOffsetTable1195[4];
extern const int32_t g_FieldOffsetTable1196[1];
extern const int32_t g_FieldOffsetTable1197[8];
extern const int32_t g_FieldOffsetTable1198[5];
extern const int32_t g_FieldOffsetTable1199[6];
extern const int32_t g_FieldOffsetTable1200[4];
extern const int32_t g_FieldOffsetTable1201[12];
extern const int32_t g_FieldOffsetTable1202[2];
extern const int32_t g_FieldOffsetTable1204[1];
extern const int32_t g_FieldOffsetTable1205[1];
extern const int32_t g_FieldOffsetTable1207[1];
extern const int32_t g_FieldOffsetTable1208[2];
extern const int32_t g_FieldOffsetTable1209[1];
extern const int32_t g_FieldOffsetTable1210[4];
extern const int32_t g_FieldOffsetTable1212[2];
extern const int32_t g_FieldOffsetTable1213[1];
extern const int32_t g_FieldOffsetTable1216[4];
extern const int32_t g_FieldOffsetTable1220[1];
extern const int32_t g_FieldOffsetTable1221[2];
extern const int32_t g_FieldOffsetTable1229[16];
extern const int32_t g_FieldOffsetTable1242[1];
extern const int32_t g_FieldOffsetTable1243[12];
extern const int32_t g_FieldOffsetTable1246[8];
extern const int32_t g_FieldOffsetTable1249[15];
extern const int32_t g_FieldOffsetTable1254[11];
extern const int32_t g_FieldOffsetTable1260[1];
extern const int32_t g_FieldOffsetTable1266[5];
extern const int32_t g_FieldOffsetTable1267[4];
extern const int32_t g_FieldOffsetTable1268[4];
extern const int32_t g_FieldOffsetTable1269[5];
extern const int32_t g_FieldOffsetTable1270[3];
extern const int32_t g_FieldOffsetTable1271[3];
extern const int32_t g_FieldOffsetTable1272[3];
extern const int32_t g_FieldOffsetTable1273[3];
extern const int32_t g_FieldOffsetTable1274[4];
extern const int32_t g_FieldOffsetTable1275[3];
extern const int32_t g_FieldOffsetTable1276[4];
extern const int32_t g_FieldOffsetTable1277[2];
extern const int32_t g_FieldOffsetTable1278[2];
extern const int32_t g_FieldOffsetTable1279[10];
extern const int32_t g_FieldOffsetTable1280[2];
extern const int32_t g_FieldOffsetTable1281[2];
extern const int32_t g_FieldOffsetTable1282[1];
extern const int32_t g_FieldOffsetTable1283[2];
extern const int32_t g_FieldOffsetTable1284[1];
extern const int32_t g_FieldOffsetTable1285[1];
extern const int32_t g_FieldOffsetTable1286[3];
extern const int32_t g_FieldOffsetTable1287[2];
extern const int32_t g_FieldOffsetTable1296[2];
extern const int32_t g_FieldOffsetTable1298[2];
extern const int32_t g_FieldOffsetTable1299[3];
extern const int32_t g_FieldOffsetTable1300[3];
extern const int32_t g_FieldOffsetTable1302[2];
extern const int32_t g_FieldOffsetTable1303[7];
extern const int32_t g_FieldOffsetTable1305[1];
extern const int32_t g_FieldOffsetTable1306[4];
extern const int32_t g_FieldOffsetTable1308[4];
extern const int32_t g_FieldOffsetTable1310[1];
extern const int32_t g_FieldOffsetTable1311[17];
extern const int32_t g_FieldOffsetTable1313[4];
extern const int32_t g_FieldOffsetTable1314[2];
extern const int32_t g_FieldOffsetTable1316[3];
extern const int32_t g_FieldOffsetTable1319[1];
extern const int32_t g_FieldOffsetTable1321[1];
extern const int32_t g_FieldOffsetTable1324[2];
extern const int32_t g_FieldOffsetTable1325[2];
extern const int32_t g_FieldOffsetTable1326[1];
extern const int32_t g_FieldOffsetTable1327[2];
extern const int32_t g_FieldOffsetTable1328[4];
extern const int32_t g_FieldOffsetTable1329[4];
extern const int32_t g_FieldOffsetTable1330[2];
extern const int32_t g_FieldOffsetTable1331[5];
extern const int32_t g_FieldOffsetTable1332[4];
extern const int32_t g_FieldOffsetTable1333[5];
extern const int32_t g_FieldOffsetTable1334[2];
extern const int32_t g_FieldOffsetTable1335[3];
extern const int32_t g_FieldOffsetTable1337[2];
extern const int32_t g_FieldOffsetTable1338[1];
extern const int32_t g_FieldOffsetTable1339[4];
extern const int32_t g_FieldOffsetTable1340[2];
extern const int32_t g_FieldOffsetTable1343[3];
extern const int32_t g_FieldOffsetTable1344[3];
extern const int32_t g_FieldOffsetTable1345[2];
extern const int32_t g_FieldOffsetTable1366[4];
extern const int32_t g_FieldOffsetTable1372[1];
extern const int32_t g_FieldOffsetTable1375[1];
extern const int32_t g_FieldOffsetTable1376[3];
extern const int32_t g_FieldOffsetTable1378[2];
extern const int32_t g_FieldOffsetTable1379[3];
extern const int32_t g_FieldOffsetTable1380[4];
extern const int32_t g_FieldOffsetTable1381[4];
extern const int32_t g_FieldOffsetTable1382[9];
extern const int32_t g_FieldOffsetTable1383[2];
extern const int32_t g_FieldOffsetTable1384[1];
extern const int32_t g_FieldOffsetTable1385[3];
extern const int32_t g_FieldOffsetTable1386[4];
extern const int32_t g_FieldOffsetTable1387[3];
extern const int32_t g_FieldOffsetTable1388[4];
extern const int32_t g_FieldOffsetTable1390[4];
extern const int32_t g_FieldOffsetTable1392[4];
extern const int32_t g_FieldOffsetTable1393[3];
extern const int32_t g_FieldOffsetTable1394[4];
extern const int32_t g_FieldOffsetTable1395[2];
extern const int32_t g_FieldOffsetTable1396[1];
extern const int32_t g_FieldOffsetTable1397[2];
extern const int32_t g_FieldOffsetTable1398[3];
extern const int32_t g_FieldOffsetTable1399[4];
extern const int32_t g_FieldOffsetTable1400[4];
extern const int32_t g_FieldOffsetTable1401[1];
extern const int32_t g_FieldOffsetTable1402[5];
extern const int32_t g_FieldOffsetTable1403[6];
extern const int32_t g_FieldOffsetTable1404[2];
extern const int32_t g_FieldOffsetTable1405[4];
extern const int32_t g_FieldOffsetTable1406[4];
extern const int32_t g_FieldOffsetTable1407[1];
extern const int32_t g_FieldOffsetTable1412[5];
extern const int32_t g_FieldOffsetTable1413[2];
extern const int32_t g_FieldOffsetTable1414[5];
extern const int32_t g_FieldOffsetTable1416[1];
extern const int32_t g_FieldOffsetTable1417[2];
extern const int32_t g_FieldOffsetTable1418[2];
extern const int32_t g_FieldOffsetTable1419[2];
extern const int32_t g_FieldOffsetTable1421[12];
extern const int32_t g_FieldOffsetTable1422[1];
extern const int32_t g_FieldOffsetTable1423[1];
extern const int32_t g_FieldOffsetTable1424[1];
extern const int32_t g_FieldOffsetTable1425[3];
extern const int32_t g_FieldOffsetTable1427[6];
extern const int32_t g_FieldOffsetTable1428[3];
extern const int32_t g_FieldOffsetTable1429[2];
extern const int32_t g_FieldOffsetTable1430[1];
extern const int32_t g_FieldOffsetTable1434[2];
extern const int32_t g_FieldOffsetTable1436[1];
extern const int32_t g_FieldOffsetTable1438[12];
extern const int32_t g_FieldOffsetTable1439[10];
extern const int32_t g_FieldOffsetTable1440[29];
extern const int32_t g_FieldOffsetTable1442[18];
extern const int32_t g_FieldOffsetTable1443[3];
extern const int32_t g_FieldOffsetTable1444[8];
extern const int32_t g_FieldOffsetTable1448[1];
extern const int32_t g_FieldOffsetTable1450[1783];
extern const int32_t g_FieldOffsetTable1455[6];
extern const int32_t g_FieldOffsetTable1457[1];
extern const int32_t g_FieldOffsetTable1458[1];
extern const int32_t g_FieldOffsetTable1459[2];
extern const int32_t g_FieldOffsetTable1460[2];
extern const int32_t g_FieldOffsetTable1461[1];
extern const int32_t g_FieldOffsetTable1462[2];
extern const int32_t g_FieldOffsetTable1464[3];
extern const int32_t g_FieldOffsetTable1465[1];
extern const int32_t g_FieldOffsetTable1466[2];
extern const int32_t g_FieldOffsetTable1468[9];
extern const int32_t g_FieldOffsetTable1469[2];
extern const int32_t g_FieldOffsetTable1470[1];
extern const int32_t g_FieldOffsetTable1471[5];
extern const int32_t g_FieldOffsetTable1472[7];
extern const int32_t g_FieldOffsetTable1473[2];
extern const int32_t g_FieldOffsetTable1474[3];
extern const int32_t g_FieldOffsetTable1476[1];
extern const int32_t g_FieldOffsetTable1477[1];
extern const int32_t g_FieldOffsetTable1478[23];
extern const int32_t g_FieldOffsetTable1480[9];
extern const int32_t g_FieldOffsetTable1483[3];
extern const int32_t g_FieldOffsetTable1484[25];
extern const int32_t g_FieldOffsetTable1486[1];
extern const int32_t g_FieldOffsetTable1489[3];
extern const int32_t g_FieldOffsetTable1490[4];
extern const int32_t g_FieldOffsetTable1492[1];
extern const int32_t g_FieldOffsetTable1493[1];
extern const int32_t g_FieldOffsetTable1494[1];
extern const int32_t g_FieldOffsetTable1496[1];
extern const int32_t g_FieldOffsetTable1498[1];
extern const int32_t g_FieldOffsetTable1499[2];
extern const int32_t g_FieldOffsetTable1500[2];
extern const int32_t g_FieldOffsetTable1501[13];
extern const int32_t g_FieldOffsetTable1503[1];
extern const int32_t g_FieldOffsetTable1504[15];
extern const int32_t g_FieldOffsetTable1505[2];
extern const int32_t g_FieldOffsetTable1506[2];
extern const int32_t g_FieldOffsetTable1507[3];
extern const int32_t g_FieldOffsetTable1508[2];
extern const int32_t g_FieldOffsetTable1509[7];
extern const int32_t g_FieldOffsetTable1510[3];
extern const int32_t g_FieldOffsetTable1511[5];
extern const int32_t g_FieldOffsetTable1512[1];
extern const int32_t g_FieldOffsetTable1513[7];
extern const int32_t g_FieldOffsetTable1514[11];
extern const int32_t g_FieldOffsetTable1515[7];
extern const int32_t g_FieldOffsetTable1516[2];
extern const int32_t g_FieldOffsetTable1517[4];
extern const int32_t g_FieldOffsetTable1518[1];
extern const int32_t g_FieldOffsetTable1519[6];
extern const int32_t g_FieldOffsetTable1520[8];
extern const int32_t g_FieldOffsetTable1521[7];
extern const int32_t g_FieldOffsetTable1523[3];
extern const int32_t g_FieldOffsetTable1524[1];
extern const int32_t g_FieldOffsetTable1525[2];
extern const int32_t g_FieldOffsetTable1526[6];
extern const int32_t g_FieldOffsetTable1527[1];
extern const int32_t g_FieldOffsetTable1528[2];
extern const int32_t g_FieldOffsetTable1529[4];
extern const int32_t g_FieldOffsetTable1530[1];
extern const int32_t g_FieldOffsetTable1531[2];
extern const int32_t g_FieldOffsetTable1532[7];
extern const int32_t g_FieldOffsetTable1533[8];
extern const int32_t g_FieldOffsetTable1534[3];
extern const int32_t g_FieldOffsetTable1535[5];
extern const int32_t g_FieldOffsetTable1536[3];
extern const int32_t g_FieldOffsetTable1537[26];
extern const int32_t g_FieldOffsetTable1538[8];
extern const int32_t g_FieldOffsetTable1539[3];
extern const int32_t g_FieldOffsetTable1540[11];
extern const int32_t g_FieldOffsetTable1541[2];
extern const int32_t g_FieldOffsetTable1542[3];
extern const int32_t g_FieldOffsetTable1543[1];
extern const int32_t g_FieldOffsetTable1544[5];
extern const int32_t g_FieldOffsetTable1545[1];
extern const int32_t g_FieldOffsetTable1547[2];
extern const int32_t g_FieldOffsetTable1548[5];
extern const int32_t g_FieldOffsetTable1549[6];
extern const int32_t g_FieldOffsetTable1550[7];
extern const int32_t g_FieldOffsetTable1552[3];
extern const int32_t g_FieldOffsetTable1553[14];
extern const int32_t g_FieldOffsetTable1555[1];
extern const int32_t g_FieldOffsetTable1556[1];
extern const int32_t g_FieldOffsetTable1557[15];
extern const int32_t g_FieldOffsetTable1559[1];
extern const int32_t g_FieldOffsetTable1560[1];
extern const int32_t g_FieldOffsetTable1561[5];
extern const int32_t g_FieldOffsetTable1563[2];
extern const int32_t g_FieldOffsetTable1564[1];
extern const int32_t g_FieldOffsetTable1565[1];
extern const int32_t g_FieldOffsetTable1566[2];
extern const int32_t g_FieldOffsetTable1567[13];
extern const int32_t g_FieldOffsetTable1568[3];
extern const int32_t g_FieldOffsetTable1569[22];
extern const int32_t g_FieldOffsetTable1570[21];
extern const int32_t g_FieldOffsetTable1571[27];
extern const int32_t g_FieldOffsetTable1572[4];
extern const int32_t g_FieldOffsetTable1573[4];
extern const int32_t g_FieldOffsetTable1574[3];
extern const int32_t g_FieldOffsetTable1575[3];
extern const int32_t g_FieldOffsetTable1576[3];
extern const int32_t g_FieldOffsetTable1577[10];
extern const int32_t g_FieldOffsetTable1578[2];
extern const int32_t g_FieldOffsetTable1579[3];
extern const int32_t g_FieldOffsetTable1580[2];
extern const int32_t g_FieldOffsetTable1581[4];
extern const int32_t g_FieldOffsetTable1582[2];
extern const int32_t g_FieldOffsetTable1583[4];
extern const int32_t g_FieldOffsetTable1584[5];
extern const int32_t g_FieldOffsetTable1585[3];
extern const int32_t g_FieldOffsetTable1586[2];
extern const int32_t g_FieldOffsetTable1587[2];
extern const int32_t g_FieldOffsetTable1588[32];
extern const int32_t g_FieldOffsetTable1589[35];
extern const int32_t g_FieldOffsetTable1590[2];
extern const int32_t g_FieldOffsetTable1591[2];
extern const int32_t g_FieldOffsetTable1592[2];
extern const int32_t g_FieldOffsetTable1593[3];
extern const int32_t g_FieldOffsetTable1594[6];
extern const int32_t g_FieldOffsetTable1595[1];
extern const int32_t g_FieldOffsetTable1596[32];
extern const int32_t g_FieldOffsetTable1597[26];
extern const int32_t g_FieldOffsetTable1598[4];
extern const int32_t g_FieldOffsetTable1599[5];
extern const int32_t g_FieldOffsetTable1600[23];
extern const int32_t g_FieldOffsetTable1601[15];
extern const int32_t g_FieldOffsetTable1602[2];
extern const int32_t g_FieldOffsetTable1603[25];
extern const int32_t g_FieldOffsetTable1604[3];
extern const int32_t g_FieldOffsetTable1605[2];
extern const int32_t g_FieldOffsetTable1608[16];
extern const int32_t g_FieldOffsetTable1609[11];
extern const int32_t g_FieldOffsetTable1610[48];
extern const int32_t g_FieldOffsetTable1612[11];
extern const int32_t g_FieldOffsetTable1613[2];
extern const int32_t g_FieldOffsetTable1614[5];
extern const int32_t g_FieldOffsetTable1615[6];
extern const int32_t g_FieldOffsetTable1616[44];
extern const int32_t g_FieldOffsetTable1617[2];
extern const int32_t g_FieldOffsetTable1618[4];
extern const int32_t g_FieldOffsetTable1619[7];
extern const int32_t g_FieldOffsetTable1620[11];
extern const int32_t g_FieldOffsetTable1621[7];
extern const int32_t g_FieldOffsetTable1622[3];
extern const int32_t g_FieldOffsetTable1623[7];
extern const int32_t g_FieldOffsetTable1624[5];
extern const int32_t g_FieldOffsetTable1625[3];
extern const int32_t g_FieldOffsetTable1626[8];
extern const int32_t g_FieldOffsetTable1627[5];
extern const int32_t g_FieldOffsetTable1629[9];
extern const int32_t g_FieldOffsetTable1630[5];
extern const int32_t g_FieldOffsetTable1631[2];
extern const int32_t g_FieldOffsetTable1632[4];
extern const int32_t g_FieldOffsetTable1633[5];
extern const int32_t g_FieldOffsetTable1634[5];
extern const int32_t g_FieldOffsetTable1635[18];
extern const int32_t g_FieldOffsetTable1636[2];
extern const int32_t g_FieldOffsetTable1638[8];
extern const int32_t g_FieldOffsetTable1640[3];
extern const int32_t g_FieldOffsetTable1641[5];
extern const int32_t g_FieldOffsetTable1642[4];
extern const int32_t g_FieldOffsetTable1643[4];
extern const int32_t g_FieldOffsetTable1645[5];
extern const int32_t g_FieldOffsetTable1646[6];
extern const int32_t g_FieldOffsetTable1647[1];
extern const int32_t g_FieldOffsetTable1654[1];
extern const int32_t g_FieldOffsetTable1655[2];
extern const int32_t g_FieldOffsetTable1656[1];
extern const int32_t g_FieldOffsetTable1658[8];
extern const int32_t g_FieldOffsetTable1659[1];
extern const int32_t g_FieldOffsetTable1660[15];
extern const int32_t g_FieldOffsetTable1661[1];
extern const int32_t g_FieldOffsetTable1665[5];
extern const int32_t g_FieldOffsetTable1666[9];
extern const int32_t g_FieldOffsetTable1667[5];
extern const int32_t g_FieldOffsetTable1671[2];
extern const int32_t g_FieldOffsetTable1672[38];
extern const int32_t g_FieldOffsetTable1673[44];
extern const int32_t g_FieldOffsetTable1674[10];
extern const int32_t g_FieldOffsetTable1675[12];
extern const int32_t g_FieldOffsetTable1677[1];
extern const int32_t g_FieldOffsetTable1678[19];
extern const int32_t g_FieldOffsetTable1679[3];
extern const int32_t g_FieldOffsetTable1680[4];
extern const int32_t g_FieldOffsetTable1681[11];
extern const int32_t g_FieldOffsetTable1682[1];
extern const int32_t g_FieldOffsetTable1683[7];
extern const int32_t g_FieldOffsetTable1685[2];
extern const int32_t g_FieldOffsetTable1686[21];
extern const int32_t g_FieldOffsetTable1687[17];
extern const int32_t g_FieldOffsetTable1689[42];
extern const int32_t g_FieldOffsetTable1690[31];
extern const int32_t g_FieldOffsetTable1691[47];
extern const int32_t g_FieldOffsetTable1692[10];
extern const int32_t g_FieldOffsetTable1694[2];
extern const int32_t g_FieldOffsetTable1695[52];
extern const int32_t g_FieldOffsetTable1696[14];
extern const int32_t g_FieldOffsetTable1697[3];
extern const int32_t g_FieldOffsetTable1703[12];
extern const int32_t g_FieldOffsetTable1704[4];
extern const int32_t g_FieldOffsetTable1705[3];
extern const int32_t g_FieldOffsetTable1706[5];
extern const int32_t g_FieldOffsetTable1710[9];
extern const int32_t g_FieldOffsetTable1711[7];
extern const int32_t g_FieldOffsetTable1712[4];
extern const int32_t g_FieldOffsetTable1713[2];
extern const int32_t g_FieldOffsetTable1714[3];
extern const int32_t g_FieldOffsetTable1715[3];
extern const int32_t g_FieldOffsetTable1716[1];
extern const int32_t g_FieldOffsetTable1717[1];
extern const int32_t g_FieldOffsetTable1719[6];
extern const int32_t g_FieldOffsetTable1720[6];
extern const int32_t g_FieldOffsetTable1721[3];
extern const int32_t g_FieldOffsetTable1722[17];
extern const int32_t g_FieldOffsetTable1723[12];
extern const int32_t g_FieldOffsetTable1724[2];
extern const int32_t g_FieldOffsetTable1725[4];
extern const int32_t g_FieldOffsetTable1726[1];
extern const int32_t g_FieldOffsetTable1727[6];
extern const int32_t g_FieldOffsetTable1728[1];
extern const int32_t g_FieldOffsetTable1729[1];
extern const int32_t g_FieldOffsetTable1730[4];
extern const int32_t g_FieldOffsetTable1731[1];
extern const int32_t g_FieldOffsetTable1732[1];
extern const int32_t g_FieldOffsetTable1733[17];
extern const int32_t g_FieldOffsetTable1734[24];
extern const int32_t g_FieldOffsetTable1735[5];
extern const int32_t g_FieldOffsetTable1736[32];
extern const int32_t g_FieldOffsetTable1737[1];
extern const int32_t g_FieldOffsetTable1738[7];
extern const int32_t g_FieldOffsetTable1739[5];
extern const int32_t g_FieldOffsetTable1740[27];
extern const int32_t g_FieldOffsetTable1741[2];
extern const int32_t g_FieldOffsetTable1742[22];
extern const int32_t g_FieldOffsetTable1743[5];
extern const int32_t g_FieldOffsetTable1744[4];
extern const int32_t g_FieldOffsetTable1745[2];
extern const int32_t g_FieldOffsetTable1746[3];
extern const int32_t g_FieldOffsetTable1747[2];
extern const int32_t g_FieldOffsetTable1748[5];
extern const int32_t g_FieldOffsetTable1750[5];
extern const int32_t g_FieldOffsetTable1752[2];
extern const int32_t g_FieldOffsetTable1753[13];
extern const int32_t g_FieldOffsetTable1754[6];
extern const int32_t g_FieldOffsetTable1756[10];
extern const int32_t g_FieldOffsetTable1757[5];
extern const int32_t g_FieldOffsetTable1758[4];
extern const int32_t g_FieldOffsetTable1759[6];
extern const int32_t g_FieldOffsetTable1760[1];
extern const int32_t g_FieldOffsetTable1761[9];
extern const int32_t g_FieldOffsetTable1762[6];
extern const int32_t g_FieldOffsetTable1763[7];
extern const int32_t g_FieldOffsetTable1764[3];
extern const int32_t g_FieldOffsetTable1765[9];
extern const int32_t g_FieldOffsetTable1766[2];
extern const int32_t g_FieldOffsetTable1767[11];
extern const int32_t g_FieldOffsetTable1768[6];
extern const int32_t g_FieldOffsetTable1769[13];
extern const int32_t g_FieldOffsetTable1771[1];
extern const int32_t g_FieldOffsetTable1773[1];
extern const int32_t g_FieldOffsetTable1774[15];
extern const int32_t g_FieldOffsetTable1775[4];
extern const int32_t g_FieldOffsetTable1776[1];
extern const int32_t g_FieldOffsetTable1777[1];
extern const int32_t g_FieldOffsetTable1778[8];
extern const int32_t g_FieldOffsetTable1779[2];
extern const int32_t g_FieldOffsetTable1780[24];
extern const int32_t g_FieldOffsetTable1781[5];
extern const int32_t g_FieldOffsetTable1782[1];
extern const int32_t g_FieldOffsetTable1783[1];
extern const int32_t g_FieldOffsetTable1784[1];
extern const int32_t g_FieldOffsetTable1785[16];
extern const int32_t g_FieldOffsetTable1786[5];
extern const int32_t g_FieldOffsetTable1787[5];
extern const int32_t g_FieldOffsetTable1788[11];
extern const int32_t g_FieldOffsetTable1789[7];
extern const int32_t g_FieldOffsetTable1790[4];
extern const int32_t g_FieldOffsetTable1791[4];
extern const int32_t g_FieldOffsetTable1792[6];
extern const int32_t g_FieldOffsetTable1793[5];
extern const int32_t g_FieldOffsetTable1794[4];
extern const int32_t g_FieldOffsetTable1795[15];
extern const int32_t g_FieldOffsetTable1796[7];
extern const int32_t g_FieldOffsetTable1797[3];
extern const int32_t g_FieldOffsetTable1798[1];
extern const int32_t g_FieldOffsetTable1799[2];
extern const int32_t g_FieldOffsetTable1800[24];
extern const int32_t g_FieldOffsetTable1801[2];
extern const int32_t g_FieldOffsetTable1802[2];
extern const int32_t g_FieldOffsetTable1803[1];
extern const int32_t g_FieldOffsetTable1804[3];
extern const int32_t g_FieldOffsetTable1805[1];
extern const int32_t g_FieldOffsetTable1806[3];
extern const int32_t g_FieldOffsetTable1807[2];
extern const int32_t g_FieldOffsetTable1808[5];
extern const int32_t g_FieldOffsetTable1809[2];
extern const int32_t g_FieldOffsetTable1810[2];
extern const int32_t g_FieldOffsetTable1811[9];
extern const int32_t g_FieldOffsetTable1812[10];
extern const int32_t g_FieldOffsetTable1813[26];
extern const int32_t g_FieldOffsetTable1814[6];
extern const int32_t g_FieldOffsetTable1815[11];
extern const int32_t g_FieldOffsetTable1818[3];
extern const int32_t g_FieldOffsetTable1819[2];
extern const int32_t g_FieldOffsetTable1820[2];
extern const int32_t g_FieldOffsetTable1821[3];
extern const int32_t g_FieldOffsetTable1822[146];
extern const int32_t g_FieldOffsetTable1826[4];
extern const int32_t g_FieldOffsetTable1827[1];
extern const int32_t g_FieldOffsetTable1828[1];
extern const int32_t g_FieldOffsetTable1829[2];
extern const int32_t g_FieldOffsetTable1830[1];
extern const int32_t g_FieldOffsetTable1831[3];
extern const int32_t g_FieldOffsetTable1832[16];
extern const int32_t g_FieldOffsetTable1833[2];
extern const int32_t g_FieldOffsetTable1834[7];
extern const int32_t g_FieldOffsetTable1835[4];
extern const int32_t g_FieldOffsetTable1836[3];
extern const int32_t g_FieldOffsetTable1837[1];
extern const int32_t g_FieldOffsetTable1838[2];
extern const int32_t g_FieldOffsetTable1840[6];
extern const int32_t g_FieldOffsetTable1841[7];
extern const int32_t g_FieldOffsetTable1844[1];
extern const int32_t g_FieldOffsetTable1846[1];
extern const int32_t g_FieldOffsetTable1847[2];
extern const int32_t g_FieldOffsetTable1848[1];
extern const int32_t g_FieldOffsetTable1850[3];
extern const int32_t g_FieldOffsetTable1852[3];
extern const int32_t g_FieldOffsetTable1853[2];
extern const int32_t g_FieldOffsetTable1855[2];
extern const int32_t g_FieldOffsetTable1856[1];
extern const int32_t g_FieldOffsetTable1857[2];
extern const int32_t g_FieldOffsetTable1858[2];
extern const int32_t g_FieldOffsetTable1859[6];
extern const int32_t g_FieldOffsetTable1860[6];
extern const int32_t g_FieldOffsetTable1865[13];
extern const int32_t g_FieldOffsetTable1870[1];
extern const int32_t g_FieldOffsetTable1871[38];
extern const int32_t g_FieldOffsetTable1872[3];
extern const int32_t g_FieldOffsetTable1873[10];
extern const int32_t g_FieldOffsetTable1874[17];
extern const int32_t g_FieldOffsetTable1875[4];
extern const int32_t g_FieldOffsetTable1877[6];
extern const int32_t g_FieldOffsetTable1878[4];
extern const int32_t g_FieldOffsetTable1879[4];
extern const int32_t g_FieldOffsetTable1880[6];
extern const int32_t g_FieldOffsetTable1881[5];
extern const int32_t g_FieldOffsetTable1909[4];
extern const int32_t g_FieldOffsetTable1914[2];
extern const int32_t g_FieldOffsetTable1915[6];
extern const int32_t g_FieldOffsetTable1917[2];
extern const int32_t g_FieldOffsetTable1918[1];
extern const int32_t g_FieldOffsetTable1919[2];
extern const int32_t g_FieldOffsetTable1920[1];
extern const int32_t g_FieldOffsetTable1921[7];
extern const int32_t g_FieldOffsetTable1922[3];
extern const int32_t g_FieldOffsetTable1923[2];
extern const int32_t g_FieldOffsetTable1924[1];
extern const int32_t g_FieldOffsetTable1925[1];
extern const int32_t g_FieldOffsetTable1926[2];
extern const int32_t g_FieldOffsetTable1927[2];
extern const int32_t g_FieldOffsetTable1928[1];
extern const int32_t g_FieldOffsetTable1929[1];
extern const int32_t g_FieldOffsetTable1931[4];
extern const int32_t g_FieldOffsetTable1937[1];
extern const int32_t g_FieldOffsetTable1938[1];
extern const int32_t g_FieldOffsetTable1941[1];
extern const int32_t g_FieldOffsetTable1945[3];
extern const int32_t g_FieldOffsetTable1948[1];
extern const int32_t g_FieldOffsetTable1949[3];
extern const int32_t g_FieldOffsetTable1950[2];
extern const int32_t g_FieldOffsetTable1953[1];
extern const int32_t g_FieldOffsetTable1954[4];
extern const int32_t g_FieldOffsetTable1957[1];
extern const int32_t g_FieldOffsetTable1961[1];
extern const int32_t g_FieldOffsetTable1962[13];
extern const int32_t g_FieldOffsetTable1963[5];
extern const int32_t g_FieldOffsetTable1964[2];
extern const int32_t g_FieldOffsetTable1965[1];
extern const int32_t g_FieldOffsetTable1966[4];
extern const int32_t g_FieldOffsetTable1967[1];
extern const int32_t g_FieldOffsetTable1970[1];
extern const int32_t g_FieldOffsetTable1971[3];
extern const int32_t g_FieldOffsetTable1973[1];
extern const int32_t g_FieldOffsetTable1975[10];
extern const int32_t g_FieldOffsetTable1976[3];
extern const int32_t g_FieldOffsetTable1977[2];
extern const int32_t g_FieldOffsetTable1983[10];
extern const int32_t g_FieldOffsetTable1984[2];
extern const int32_t g_FieldOffsetTable1987[3];
extern const int32_t g_FieldOffsetTable1988[2];
extern const int32_t g_FieldOffsetTable1989[2];
extern const int32_t g_FieldOffsetTable1990[5];
extern const int32_t g_FieldOffsetTable1991[2];
extern const int32_t g_FieldOffsetTable1992[2];
extern const int32_t g_FieldOffsetTable1993[2];
extern const int32_t g_FieldOffsetTable1994[12];
extern const int32_t g_FieldOffsetTable1995[12];
extern const int32_t g_FieldOffsetTable1996[2];
extern const int32_t g_FieldOffsetTable1997[1];
extern const int32_t g_FieldOffsetTable1998[1];
extern const int32_t g_FieldOffsetTable1999[3];
extern const int32_t g_FieldOffsetTable2000[3];
extern const int32_t g_FieldOffsetTable2001[1];
extern const int32_t g_FieldOffsetTable2003[2];
extern const int32_t g_FieldOffsetTable2004[1];
extern const int32_t g_FieldOffsetTable2006[2];
extern const int32_t g_FieldOffsetTable2009[7];
extern const int32_t g_FieldOffsetTable2010[5];
extern const int32_t g_FieldOffsetTable2011[4];
extern const int32_t g_FieldOffsetTable2013[5];
extern const int32_t g_FieldOffsetTable2020[6];
extern const int32_t g_FieldOffsetTable2023[1];
extern const int32_t g_FieldOffsetTable2024[1];
extern const int32_t g_FieldOffsetTable2025[1];
extern const int32_t g_FieldOffsetTable2026[1];
extern const int32_t g_FieldOffsetTable2028[2];
extern const int32_t g_FieldOffsetTable2033[2];
extern const int32_t g_FieldOffsetTable2035[1];
extern const int32_t g_FieldOffsetTable2036[1];
extern const int32_t g_FieldOffsetTable2037[9];
extern const int32_t g_FieldOffsetTable2038[1];
extern const int32_t g_FieldOffsetTable2039[1];
extern const int32_t g_FieldOffsetTable2040[1];
extern const int32_t g_FieldOffsetTable2042[4];
extern const int32_t g_FieldOffsetTable2043[7];
extern const int32_t g_FieldOffsetTable2044[5];
extern const int32_t g_FieldOffsetTable2045[7];
extern const int32_t g_FieldOffsetTable2046[7];
extern const int32_t g_FieldOffsetTable2047[1];
extern const int32_t g_FieldOffsetTable2048[3];
extern const int32_t g_FieldOffsetTable2049[5];
extern const int32_t g_FieldOffsetTable2050[5];
extern const int32_t g_FieldOffsetTable2051[7];
extern const int32_t g_FieldOffsetTable2052[6];
extern const int32_t g_FieldOffsetTable2053[10];
extern const int32_t g_FieldOffsetTable2056[6];
extern const int32_t g_FieldOffsetTable2061[3];
extern const int32_t g_FieldOffsetTable2062[4];
extern const int32_t g_FieldOffsetTable2063[2];
extern const int32_t g_FieldOffsetTable2065[2];
extern const int32_t g_FieldOffsetTable2066[3];
extern const int32_t g_FieldOffsetTable2068[3];
extern const int32_t g_FieldOffsetTable2069[2];
extern const int32_t g_FieldOffsetTable2070[3];
extern const int32_t g_FieldOffsetTable2072[1];
extern const int32_t g_FieldOffsetTable2073[1];
extern const int32_t g_FieldOffsetTable2077[3];
extern const int32_t g_FieldOffsetTable2078[34];
extern const int32_t g_FieldOffsetTable2079[6];
extern const int32_t g_FieldOffsetTable2080[2];
extern const int32_t g_FieldOffsetTable2083[6];
extern const int32_t g_FieldOffsetTable2084[54];
extern const int32_t g_FieldOffsetTable2085[3];
extern const int32_t g_FieldOffsetTable2086[5];
extern const int32_t g_FieldOffsetTable2087[2];
extern const int32_t g_FieldOffsetTable2088[2];
extern const int32_t g_FieldOffsetTable2089[4];
extern const int32_t g_FieldOffsetTable2094[1];
extern const int32_t g_FieldOffsetTable2095[2];
extern const int32_t g_FieldOffsetTable2096[8];
extern const int32_t g_FieldOffsetTable2097[6];
extern const int32_t g_FieldOffsetTable2099[1];
extern const int32_t g_FieldOffsetTable2100[1];
extern const int32_t g_FieldOffsetTable2101[1];
extern const int32_t g_FieldOffsetTable2102[1];
extern const int32_t g_FieldOffsetTable2103[1];
extern const int32_t g_FieldOffsetTable2104[1];
extern const int32_t g_FieldOffsetTable2105[4];
extern const int32_t g_FieldOffsetTable2106[5];
extern const int32_t g_FieldOffsetTable2107[1];
extern const int32_t g_FieldOffsetTable2108[4];
extern const int32_t g_FieldOffsetTable2109[4];
extern const int32_t g_FieldOffsetTable2111[1];
extern const int32_t g_FieldOffsetTable2113[1];
extern const int32_t g_FieldOffsetTable2115[1];
extern const int32_t g_FieldOffsetTable2117[1];
extern const int32_t g_FieldOffsetTable2119[1];
extern const int32_t g_FieldOffsetTable2121[1];
extern const int32_t g_FieldOffsetTable2122[2];
extern const int32_t g_FieldOffsetTable2123[10];
extern const int32_t g_FieldOffsetTable2132[6];
extern const int32_t g_FieldOffsetTable2133[5];
extern const int32_t g_FieldOffsetTable2137[6];
extern const int32_t g_FieldOffsetTable2142[1];
extern const int32_t g_FieldOffsetTable2143[1];
extern const int32_t g_FieldOffsetTable2147[3];
extern const int32_t g_FieldOffsetTable2148[2];
extern const int32_t g_FieldOffsetTable2150[3];
extern const int32_t g_FieldOffsetTable2151[3];
extern const int32_t g_FieldOffsetTable2154[3];
extern const int32_t g_FieldOffsetTable2155[1];
extern const int32_t g_FieldOffsetTable2158[2];
extern const int32_t g_FieldOffsetTable2162[1];
extern const int32_t g_FieldOffsetTable2163[5];
extern const int32_t g_FieldOffsetTable2164[1];
extern const int32_t g_FieldOffsetTable2167[4];
extern const int32_t g_FieldOffsetTable2168[2];
extern const int32_t g_FieldOffsetTable2169[1];
extern const int32_t g_FieldOffsetTable2172[2];
extern const int32_t g_FieldOffsetTable2173[14];
extern const int32_t g_FieldOffsetTable2176[2];
extern const int32_t g_FieldOffsetTable2177[1];
extern const int32_t g_FieldOffsetTable2180[2];
extern const int32_t g_FieldOffsetTable2181[11];
extern const int32_t g_FieldOffsetTable2182[2];
extern const int32_t g_FieldOffsetTable2183[4];
extern const int32_t g_FieldOffsetTable2184[2];
extern const int32_t g_FieldOffsetTable2185[5];
extern const int32_t g_FieldOffsetTable2186[9];
extern const int32_t g_FieldOffsetTable2187[7];
extern const int32_t g_FieldOffsetTable2188[14];
extern const int32_t g_FieldOffsetTable2189[5];
extern const int32_t g_FieldOffsetTable2191[1];
extern const int32_t g_FieldOffsetTable2195[1];
extern const int32_t g_FieldOffsetTable2196[2];
extern const int32_t g_FieldOffsetTable2197[1];
extern const int32_t g_FieldOffsetTable2198[1];
extern const int32_t g_FieldOffsetTable2199[1];
extern const int32_t g_FieldOffsetTable2200[1];
extern const int32_t g_FieldOffsetTable2201[2];
extern const int32_t g_FieldOffsetTable2202[2];
extern const int32_t g_FieldOffsetTable2203[3];
extern const int32_t g_FieldOffsetTable2204[6];
extern const int32_t g_FieldOffsetTable2208[2];
extern const int32_t g_FieldOffsetTable2209[6];
extern const int32_t g_FieldOffsetTable2213[2];
extern const int32_t g_FieldOffsetTable2214[2];
extern const int32_t g_FieldOffsetTable2215[4];
extern const int32_t g_FieldOffsetTable2216[2];
extern const int32_t g_FieldOffsetTable2217[4];
extern const int32_t g_FieldOffsetTable2218[2];
extern const int32_t g_FieldOffsetTable2219[5];
extern const int32_t g_FieldOffsetTable2220[2];
extern const int32_t g_FieldOffsetTable2221[4];
extern const int32_t g_FieldOffsetTable2222[5];
extern const int32_t g_FieldOffsetTable2223[1];
extern const int32_t g_FieldOffsetTable2224[6];
extern const int32_t g_FieldOffsetTable2225[5];
extern const int32_t g_FieldOffsetTable2231[1];
extern const int32_t g_FieldOffsetTable2232[6];
extern const int32_t g_FieldOffsetTable2233[1];
extern const int32_t g_FieldOffsetTable2234[1];
extern const int32_t g_FieldOffsetTable2235[6];
extern const int32_t g_FieldOffsetTable2237[1];
extern const int32_t g_FieldOffsetTable2241[1];
extern const int32_t g_FieldOffsetTable2244[1];
extern const int32_t g_FieldOffsetTable2245[1];
extern const int32_t g_FieldOffsetTable2246[5];
extern const int32_t g_FieldOffsetTable2248[1];
extern const int32_t g_FieldOffsetTable2249[1];
extern const int32_t g_FieldOffsetTable2250[9];
extern const int32_t g_FieldOffsetTable2252[5];
extern const int32_t g_FieldOffsetTable2253[8];
extern const int32_t g_FieldOffsetTable2254[2];
extern const int32_t g_FieldOffsetTable2255[6];
extern const int32_t* g_FieldOffsetTable[2256] =
{
NULL,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable5,
NULL,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable11,
g_FieldOffsetTable12,
NULL,
g_FieldOffsetTable14,
g_FieldOffsetTable15,
g_FieldOffsetTable16,
g_FieldOffsetTable17,
g_FieldOffsetTable18,
g_FieldOffsetTable19,
g_FieldOffsetTable20,
g_FieldOffsetTable21,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable26,
g_FieldOffsetTable27,
NULL,
NULL,
g_FieldOffsetTable30,
g_FieldOffsetTable31,
g_FieldOffsetTable32,
g_FieldOffsetTable33,
g_FieldOffsetTable34,
NULL,
g_FieldOffsetTable36,
g_FieldOffsetTable37,
g_FieldOffsetTable38,
g_FieldOffsetTable39,
NULL,
g_FieldOffsetTable41,
g_FieldOffsetTable42,
g_FieldOffsetTable43,
g_FieldOffsetTable44,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable51,
NULL,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable57,
NULL,
g_FieldOffsetTable59,
g_FieldOffsetTable60,
NULL,
NULL,
g_FieldOffsetTable63,
g_FieldOffsetTable64,
g_FieldOffsetTable65,
NULL,
g_FieldOffsetTable67,
g_FieldOffsetTable68,
g_FieldOffsetTable69,
NULL,
NULL,
g_FieldOffsetTable72,
NULL,
g_FieldOffsetTable74,
g_FieldOffsetTable75,
NULL,
g_FieldOffsetTable77,
g_FieldOffsetTable78,
g_FieldOffsetTable79,
g_FieldOffsetTable80,
NULL,
NULL,
g_FieldOffsetTable83,
g_FieldOffsetTable84,
g_FieldOffsetTable85,
g_FieldOffsetTable86,
NULL,
NULL,
g_FieldOffsetTable89,
NULL,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable95,
g_FieldOffsetTable96,
g_FieldOffsetTable97,
g_FieldOffsetTable98,
g_FieldOffsetTable99,
g_FieldOffsetTable100,
NULL,
g_FieldOffsetTable102,
g_FieldOffsetTable103,
g_FieldOffsetTable104,
g_FieldOffsetTable105,
g_FieldOffsetTable106,
g_FieldOffsetTable107,
g_FieldOffsetTable108,
g_FieldOffsetTable109,
g_FieldOffsetTable110,
g_FieldOffsetTable111,
g_FieldOffsetTable112,
g_FieldOffsetTable113,
g_FieldOffsetTable114,
g_FieldOffsetTable115,
g_FieldOffsetTable116,
g_FieldOffsetTable117,
g_FieldOffsetTable118,
NULL,
NULL,
g_FieldOffsetTable121,
NULL,
g_FieldOffsetTable123,
g_FieldOffsetTable124,
g_FieldOffsetTable125,
NULL,
g_FieldOffsetTable127,
g_FieldOffsetTable128,
NULL,
g_FieldOffsetTable130,
g_FieldOffsetTable131,
g_FieldOffsetTable132,
NULL,
g_FieldOffsetTable134,
g_FieldOffsetTable135,
g_FieldOffsetTable136,
g_FieldOffsetTable137,
NULL,
g_FieldOffsetTable139,
g_FieldOffsetTable140,
g_FieldOffsetTable141,
g_FieldOffsetTable142,
NULL,
g_FieldOffsetTable144,
g_FieldOffsetTable145,
g_FieldOffsetTable146,
g_FieldOffsetTable147,
g_FieldOffsetTable148,
g_FieldOffsetTable149,
g_FieldOffsetTable150,
NULL,
g_FieldOffsetTable152,
g_FieldOffsetTable153,
g_FieldOffsetTable154,
g_FieldOffsetTable155,
g_FieldOffsetTable156,
g_FieldOffsetTable157,
g_FieldOffsetTable158,
g_FieldOffsetTable159,
g_FieldOffsetTable160,
NULL,
NULL,
NULL,
g_FieldOffsetTable164,
g_FieldOffsetTable165,
g_FieldOffsetTable166,
g_FieldOffsetTable167,
g_FieldOffsetTable168,
g_FieldOffsetTable169,
g_FieldOffsetTable170,
NULL,
NULL,
g_FieldOffsetTable173,
g_FieldOffsetTable174,
NULL,
NULL,
NULL,
g_FieldOffsetTable178,
NULL,
NULL,
g_FieldOffsetTable181,
g_FieldOffsetTable182,
g_FieldOffsetTable183,
g_FieldOffsetTable184,
g_FieldOffsetTable185,
g_FieldOffsetTable186,
g_FieldOffsetTable187,
g_FieldOffsetTable188,
NULL,
g_FieldOffsetTable190,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable197,
g_FieldOffsetTable198,
g_FieldOffsetTable199,
g_FieldOffsetTable200,
g_FieldOffsetTable201,
g_FieldOffsetTable202,
g_FieldOffsetTable203,
g_FieldOffsetTable204,
g_FieldOffsetTable205,
NULL,
NULL,
g_FieldOffsetTable208,
g_FieldOffsetTable209,
g_FieldOffsetTable210,
g_FieldOffsetTable211,
g_FieldOffsetTable212,
NULL,
g_FieldOffsetTable214,
g_FieldOffsetTable215,
g_FieldOffsetTable216,
g_FieldOffsetTable217,
g_FieldOffsetTable218,
g_FieldOffsetTable219,
g_FieldOffsetTable220,
g_FieldOffsetTable221,
g_FieldOffsetTable222,
g_FieldOffsetTable223,
NULL,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable229,
g_FieldOffsetTable230,
g_FieldOffsetTable231,
g_FieldOffsetTable232,
g_FieldOffsetTable233,
g_FieldOffsetTable234,
g_FieldOffsetTable235,
g_FieldOffsetTable236,
g_FieldOffsetTable237,
g_FieldOffsetTable238,
g_FieldOffsetTable239,
g_FieldOffsetTable240,
g_FieldOffsetTable241,
NULL,
g_FieldOffsetTable243,
g_FieldOffsetTable244,
g_FieldOffsetTable245,
g_FieldOffsetTable246,
g_FieldOffsetTable247,
NULL,
g_FieldOffsetTable249,
g_FieldOffsetTable250,
g_FieldOffsetTable251,
g_FieldOffsetTable252,
NULL,
NULL,
NULL,
g_FieldOffsetTable256,
g_FieldOffsetTable257,
g_FieldOffsetTable258,
g_FieldOffsetTable259,
g_FieldOffsetTable260,
g_FieldOffsetTable261,
g_FieldOffsetTable262,
g_FieldOffsetTable263,
g_FieldOffsetTable264,
g_FieldOffsetTable265,
g_FieldOffsetTable266,
g_FieldOffsetTable267,
g_FieldOffsetTable268,
g_FieldOffsetTable269,
g_FieldOffsetTable270,
NULL,
g_FieldOffsetTable272,
g_FieldOffsetTable273,
NULL,
g_FieldOffsetTable275,
NULL,
NULL,
g_FieldOffsetTable278,
g_FieldOffsetTable279,
g_FieldOffsetTable280,
g_FieldOffsetTable281,
g_FieldOffsetTable282,
g_FieldOffsetTable283,
g_FieldOffsetTable284,
g_FieldOffsetTable285,
g_FieldOffsetTable286,
NULL,
NULL,
g_FieldOffsetTable289,
g_FieldOffsetTable290,
NULL,
g_FieldOffsetTable292,
g_FieldOffsetTable293,
g_FieldOffsetTable294,
g_FieldOffsetTable295,
g_FieldOffsetTable296,
g_FieldOffsetTable297,
NULL,
g_FieldOffsetTable299,
g_FieldOffsetTable300,
g_FieldOffsetTable301,
NULL,
g_FieldOffsetTable303,
g_FieldOffsetTable304,
NULL,
g_FieldOffsetTable306,
g_FieldOffsetTable307,
g_FieldOffsetTable308,
NULL,
g_FieldOffsetTable310,
g_FieldOffsetTable311,
NULL,
g_FieldOffsetTable313,
g_FieldOffsetTable314,
NULL,
g_FieldOffsetTable316,
g_FieldOffsetTable317,
g_FieldOffsetTable318,
g_FieldOffsetTable319,
g_FieldOffsetTable320,
g_FieldOffsetTable321,
g_FieldOffsetTable322,
g_FieldOffsetTable323,
g_FieldOffsetTable324,
g_FieldOffsetTable325,
NULL,
g_FieldOffsetTable327,
g_FieldOffsetTable328,
g_FieldOffsetTable329,
g_FieldOffsetTable330,
g_FieldOffsetTable331,
g_FieldOffsetTable332,
g_FieldOffsetTable333,
g_FieldOffsetTable334,
g_FieldOffsetTable335,
g_FieldOffsetTable336,
g_FieldOffsetTable337,
g_FieldOffsetTable338,
g_FieldOffsetTable339,
g_FieldOffsetTable340,
g_FieldOffsetTable341,
g_FieldOffsetTable342,
g_FieldOffsetTable343,
g_FieldOffsetTable344,
g_FieldOffsetTable345,
g_FieldOffsetTable346,
NULL,
g_FieldOffsetTable348,
NULL,
g_FieldOffsetTable350,
g_FieldOffsetTable351,
g_FieldOffsetTable352,
g_FieldOffsetTable353,
g_FieldOffsetTable354,
g_FieldOffsetTable355,
g_FieldOffsetTable356,
g_FieldOffsetTable357,
g_FieldOffsetTable358,
g_FieldOffsetTable359,
g_FieldOffsetTable360,
g_FieldOffsetTable361,
g_FieldOffsetTable362,
g_FieldOffsetTable363,
g_FieldOffsetTable364,
g_FieldOffsetTable365,
NULL,
g_FieldOffsetTable367,
g_FieldOffsetTable368,
g_FieldOffsetTable369,
g_FieldOffsetTable370,
g_FieldOffsetTable371,
g_FieldOffsetTable372,
g_FieldOffsetTable373,
g_FieldOffsetTable374,
NULL,
g_FieldOffsetTable376,
NULL,
g_FieldOffsetTable378,
g_FieldOffsetTable379,
g_FieldOffsetTable380,
g_FieldOffsetTable381,
g_FieldOffsetTable382,
NULL,
g_FieldOffsetTable384,
NULL,
g_FieldOffsetTable386,
g_FieldOffsetTable387,
g_FieldOffsetTable388,
g_FieldOffsetTable389,
g_FieldOffsetTable390,
NULL,
NULL,
g_FieldOffsetTable393,
g_FieldOffsetTable394,
g_FieldOffsetTable395,
g_FieldOffsetTable396,
g_FieldOffsetTable397,
g_FieldOffsetTable398,
NULL,
NULL,
NULL,
g_FieldOffsetTable402,
g_FieldOffsetTable403,
g_FieldOffsetTable404,
g_FieldOffsetTable405,
g_FieldOffsetTable406,
g_FieldOffsetTable407,
NULL,
g_FieldOffsetTable409,
g_FieldOffsetTable410,
g_FieldOffsetTable411,
NULL,
NULL,
NULL,
g_FieldOffsetTable415,
g_FieldOffsetTable416,
NULL,
g_FieldOffsetTable418,
g_FieldOffsetTable419,
g_FieldOffsetTable420,
g_FieldOffsetTable421,
g_FieldOffsetTable422,
g_FieldOffsetTable423,
g_FieldOffsetTable424,
g_FieldOffsetTable425,
NULL,
g_FieldOffsetTable427,
g_FieldOffsetTable428,
g_FieldOffsetTable429,
g_FieldOffsetTable430,
NULL,
g_FieldOffsetTable432,
NULL,
g_FieldOffsetTable434,
g_FieldOffsetTable435,
NULL,
g_FieldOffsetTable437,
g_FieldOffsetTable438,
NULL,
g_FieldOffsetTable440,
g_FieldOffsetTable441,
g_FieldOffsetTable442,
g_FieldOffsetTable443,
g_FieldOffsetTable444,
g_FieldOffsetTable445,
g_FieldOffsetTable446,
g_FieldOffsetTable447,
NULL,
g_FieldOffsetTable449,
g_FieldOffsetTable450,
g_FieldOffsetTable451,
g_FieldOffsetTable452,
g_FieldOffsetTable453,
g_FieldOffsetTable454,
NULL,
g_FieldOffsetTable456,
g_FieldOffsetTable457,
g_FieldOffsetTable458,
g_FieldOffsetTable459,
g_FieldOffsetTable460,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable484,
g_FieldOffsetTable485,
NULL,
g_FieldOffsetTable487,
NULL,
NULL,
NULL,
g_FieldOffsetTable491,
g_FieldOffsetTable492,
g_FieldOffsetTable493,
g_FieldOffsetTable494,
g_FieldOffsetTable495,
g_FieldOffsetTable496,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable504,
g_FieldOffsetTable505,
g_FieldOffsetTable506,
g_FieldOffsetTable507,
NULL,
g_FieldOffsetTable509,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable520,
g_FieldOffsetTable521,
g_FieldOffsetTable522,
NULL,
NULL,
g_FieldOffsetTable525,
NULL,
g_FieldOffsetTable527,
g_FieldOffsetTable528,
g_FieldOffsetTable529,
g_FieldOffsetTable530,
g_FieldOffsetTable531,
g_FieldOffsetTable532,
g_FieldOffsetTable533,
g_FieldOffsetTable534,
g_FieldOffsetTable535,
g_FieldOffsetTable536,
g_FieldOffsetTable537,
g_FieldOffsetTable538,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable548,
g_FieldOffsetTable549,
g_FieldOffsetTable550,
g_FieldOffsetTable551,
g_FieldOffsetTable552,
g_FieldOffsetTable553,
g_FieldOffsetTable554,
g_FieldOffsetTable555,
g_FieldOffsetTable556,
NULL,
NULL,
NULL,
g_FieldOffsetTable560,
g_FieldOffsetTable561,
NULL,
g_FieldOffsetTable563,
g_FieldOffsetTable564,
g_FieldOffsetTable565,
g_FieldOffsetTable566,
g_FieldOffsetTable567,
NULL,
g_FieldOffsetTable569,
NULL,
g_FieldOffsetTable571,
g_FieldOffsetTable572,
g_FieldOffsetTable573,
NULL,
g_FieldOffsetTable575,
g_FieldOffsetTable576,
g_FieldOffsetTable577,
g_FieldOffsetTable578,
NULL,
NULL,
NULL,
g_FieldOffsetTable582,
g_FieldOffsetTable583,
g_FieldOffsetTable584,
g_FieldOffsetTable585,
g_FieldOffsetTable586,
g_FieldOffsetTable587,
g_FieldOffsetTable588,
g_FieldOffsetTable589,
NULL,
NULL,
g_FieldOffsetTable592,
g_FieldOffsetTable593,
NULL,
NULL,
NULL,
g_FieldOffsetTable597,
g_FieldOffsetTable598,
g_FieldOffsetTable599,
g_FieldOffsetTable600,
g_FieldOffsetTable601,
g_FieldOffsetTable602,
g_FieldOffsetTable603,
g_FieldOffsetTable604,
g_FieldOffsetTable605,
g_FieldOffsetTable606,
g_FieldOffsetTable607,
g_FieldOffsetTable608,
g_FieldOffsetTable609,
g_FieldOffsetTable610,
NULL,
g_FieldOffsetTable612,
g_FieldOffsetTable613,
g_FieldOffsetTable614,
g_FieldOffsetTable615,
g_FieldOffsetTable616,
g_FieldOffsetTable617,
g_FieldOffsetTable618,
g_FieldOffsetTable619,
g_FieldOffsetTable620,
g_FieldOffsetTable621,
g_FieldOffsetTable622,
g_FieldOffsetTable623,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable632,
NULL,
g_FieldOffsetTable634,
g_FieldOffsetTable635,
g_FieldOffsetTable636,
g_FieldOffsetTable637,
g_FieldOffsetTable638,
g_FieldOffsetTable639,
g_FieldOffsetTable640,
g_FieldOffsetTable641,
NULL,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable647,
NULL,
g_FieldOffsetTable649,
NULL,
g_FieldOffsetTable651,
g_FieldOffsetTable652,
g_FieldOffsetTable653,
g_FieldOffsetTable654,
g_FieldOffsetTable655,
g_FieldOffsetTable656,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable661,
g_FieldOffsetTable662,
g_FieldOffsetTable663,
g_FieldOffsetTable664,
g_FieldOffsetTable665,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable670,
g_FieldOffsetTable671,
g_FieldOffsetTable672,
g_FieldOffsetTable673,
g_FieldOffsetTable674,
g_FieldOffsetTable675,
g_FieldOffsetTable676,
NULL,
NULL,
g_FieldOffsetTable679,
g_FieldOffsetTable680,
g_FieldOffsetTable681,
g_FieldOffsetTable682,
g_FieldOffsetTable683,
NULL,
NULL,
g_FieldOffsetTable686,
g_FieldOffsetTable687,
g_FieldOffsetTable688,
g_FieldOffsetTable689,
NULL,
g_FieldOffsetTable691,
g_FieldOffsetTable692,
g_FieldOffsetTable693,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable698,
g_FieldOffsetTable699,
g_FieldOffsetTable700,
NULL,
NULL,
g_FieldOffsetTable703,
g_FieldOffsetTable704,
g_FieldOffsetTable705,
g_FieldOffsetTable706,
NULL,
g_FieldOffsetTable708,
NULL,
g_FieldOffsetTable710,
g_FieldOffsetTable711,
g_FieldOffsetTable712,
g_FieldOffsetTable713,
g_FieldOffsetTable714,
g_FieldOffsetTable715,
NULL,
g_FieldOffsetTable717,
g_FieldOffsetTable718,
NULL,
g_FieldOffsetTable720,
g_FieldOffsetTable721,
g_FieldOffsetTable722,
g_FieldOffsetTable723,
g_FieldOffsetTable724,
g_FieldOffsetTable725,
g_FieldOffsetTable726,
g_FieldOffsetTable727,
NULL,
g_FieldOffsetTable729,
NULL,
NULL,
g_FieldOffsetTable732,
g_FieldOffsetTable733,
NULL,
g_FieldOffsetTable735,
g_FieldOffsetTable736,
g_FieldOffsetTable737,
NULL,
g_FieldOffsetTable739,
NULL,
g_FieldOffsetTable741,
NULL,
g_FieldOffsetTable743,
g_FieldOffsetTable744,
g_FieldOffsetTable745,
NULL,
NULL,
g_FieldOffsetTable748,
g_FieldOffsetTable749,
NULL,
NULL,
g_FieldOffsetTable752,
NULL,
g_FieldOffsetTable754,
g_FieldOffsetTable755,
g_FieldOffsetTable756,
g_FieldOffsetTable757,
g_FieldOffsetTable758,
g_FieldOffsetTable759,
g_FieldOffsetTable760,
NULL,
NULL,
g_FieldOffsetTable763,
NULL,
g_FieldOffsetTable765,
g_FieldOffsetTable766,
g_FieldOffsetTable767,
g_FieldOffsetTable768,
g_FieldOffsetTable769,
g_FieldOffsetTable770,
g_FieldOffsetTable771,
g_FieldOffsetTable772,
g_FieldOffsetTable773,
g_FieldOffsetTable774,
g_FieldOffsetTable775,
g_FieldOffsetTable776,
g_FieldOffsetTable777,
g_FieldOffsetTable778,
g_FieldOffsetTable779,
g_FieldOffsetTable780,
g_FieldOffsetTable781,
g_FieldOffsetTable782,
g_FieldOffsetTable783,
g_FieldOffsetTable784,
g_FieldOffsetTable785,
g_FieldOffsetTable786,
g_FieldOffsetTable787,
g_FieldOffsetTable788,
g_FieldOffsetTable789,
g_FieldOffsetTable790,
g_FieldOffsetTable791,
g_FieldOffsetTable792,
g_FieldOffsetTable793,
g_FieldOffsetTable794,
g_FieldOffsetTable795,
g_FieldOffsetTable796,
NULL,
g_FieldOffsetTable798,
NULL,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable804,
NULL,
g_FieldOffsetTable806,
g_FieldOffsetTable807,
NULL,
g_FieldOffsetTable809,
g_FieldOffsetTable810,
g_FieldOffsetTable811,
g_FieldOffsetTable812,
g_FieldOffsetTable813,
NULL,
NULL,
g_FieldOffsetTable816,
g_FieldOffsetTable817,
g_FieldOffsetTable818,
g_FieldOffsetTable819,
NULL,
NULL,
g_FieldOffsetTable822,
g_FieldOffsetTable823,
g_FieldOffsetTable824,
g_FieldOffsetTable825,
g_FieldOffsetTable826,
NULL,
NULL,
g_FieldOffsetTable829,
NULL,
g_FieldOffsetTable831,
NULL,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable837,
g_FieldOffsetTable838,
g_FieldOffsetTable839,
g_FieldOffsetTable840,
g_FieldOffsetTable841,
g_FieldOffsetTable842,
g_FieldOffsetTable843,
g_FieldOffsetTable844,
g_FieldOffsetTable845,
g_FieldOffsetTable846,
g_FieldOffsetTable847,
g_FieldOffsetTable848,
g_FieldOffsetTable849,
g_FieldOffsetTable850,
g_FieldOffsetTable851,
g_FieldOffsetTable852,
g_FieldOffsetTable853,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable858,
NULL,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable864,
NULL,
NULL,
g_FieldOffsetTable867,
NULL,
g_FieldOffsetTable869,
g_FieldOffsetTable870,
g_FieldOffsetTable871,
NULL,
NULL,
g_FieldOffsetTable874,
NULL,
g_FieldOffsetTable876,
g_FieldOffsetTable877,
g_FieldOffsetTable878,
g_FieldOffsetTable879,
g_FieldOffsetTable880,
NULL,
g_FieldOffsetTable882,
g_FieldOffsetTable883,
g_FieldOffsetTable884,
g_FieldOffsetTable885,
g_FieldOffsetTable886,
g_FieldOffsetTable887,
g_FieldOffsetTable888,
g_FieldOffsetTable889,
g_FieldOffsetTable890,
g_FieldOffsetTable891,
g_FieldOffsetTable892,
NULL,
g_FieldOffsetTable894,
g_FieldOffsetTable895,
NULL,
g_FieldOffsetTable897,
NULL,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable903,
g_FieldOffsetTable904,
NULL,
g_FieldOffsetTable906,
NULL,
NULL,
NULL,
g_FieldOffsetTable910,
NULL,
g_FieldOffsetTable912,
NULL,
g_FieldOffsetTable914,
g_FieldOffsetTable915,
NULL,
g_FieldOffsetTable917,
NULL,
g_FieldOffsetTable919,
NULL,
g_FieldOffsetTable921,
NULL,
g_FieldOffsetTable923,
g_FieldOffsetTable924,
g_FieldOffsetTable925,
g_FieldOffsetTable926,
NULL,
g_FieldOffsetTable928,
g_FieldOffsetTable929,
NULL,
g_FieldOffsetTable931,
g_FieldOffsetTable932,
NULL,
g_FieldOffsetTable934,
g_FieldOffsetTable935,
NULL,
g_FieldOffsetTable937,
g_FieldOffsetTable938,
g_FieldOffsetTable939,
g_FieldOffsetTable940,
g_FieldOffsetTable941,
g_FieldOffsetTable942,
NULL,
g_FieldOffsetTable944,
g_FieldOffsetTable945,
g_FieldOffsetTable946,
g_FieldOffsetTable947,
g_FieldOffsetTable948,
g_FieldOffsetTable949,
g_FieldOffsetTable950,
g_FieldOffsetTable951,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable956,
g_FieldOffsetTable957,
g_FieldOffsetTable958,
g_FieldOffsetTable959,
NULL,
NULL,
NULL,
g_FieldOffsetTable963,
NULL,
g_FieldOffsetTable965,
g_FieldOffsetTable966,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable971,
g_FieldOffsetTable972,
g_FieldOffsetTable973,
g_FieldOffsetTable974,
NULL,
NULL,
g_FieldOffsetTable977,
NULL,
g_FieldOffsetTable979,
g_FieldOffsetTable980,
g_FieldOffsetTable981,
g_FieldOffsetTable982,
g_FieldOffsetTable983,
g_FieldOffsetTable984,
g_FieldOffsetTable985,
g_FieldOffsetTable986,
NULL,
NULL,
NULL,
g_FieldOffsetTable990,
g_FieldOffsetTable991,
NULL,
g_FieldOffsetTable993,
g_FieldOffsetTable994,
g_FieldOffsetTable995,
g_FieldOffsetTable996,
g_FieldOffsetTable997,
g_FieldOffsetTable998,
g_FieldOffsetTable999,
g_FieldOffsetTable1000,
g_FieldOffsetTable1001,
NULL,
g_FieldOffsetTable1003,
g_FieldOffsetTable1004,
NULL,
g_FieldOffsetTable1006,
g_FieldOffsetTable1007,
g_FieldOffsetTable1008,
g_FieldOffsetTable1009,
g_FieldOffsetTable1010,
NULL,
NULL,
g_FieldOffsetTable1013,
g_FieldOffsetTable1014,
g_FieldOffsetTable1015,
g_FieldOffsetTable1016,
g_FieldOffsetTable1017,
g_FieldOffsetTable1018,
g_FieldOffsetTable1019,
NULL,
g_FieldOffsetTable1021,
g_FieldOffsetTable1022,
g_FieldOffsetTable1023,
g_FieldOffsetTable1024,
g_FieldOffsetTable1025,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable1048,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable1076,
g_FieldOffsetTable1077,
g_FieldOffsetTable1078,
NULL,
g_FieldOffsetTable1080,
NULL,
NULL,
NULL,
g_FieldOffsetTable1084,
NULL,
NULL,
NULL,
g_FieldOffsetTable1088,
g_FieldOffsetTable1089,
g_FieldOffsetTable1090,
g_FieldOffsetTable1091,
NULL,
g_FieldOffsetTable1093,
NULL,
g_FieldOffsetTable1095,
NULL,
g_FieldOffsetTable1097,
g_FieldOffsetTable1098,
NULL,
g_FieldOffsetTable1100,
g_FieldOffsetTable1101,
g_FieldOffsetTable1102,
g_FieldOffsetTable1103,
NULL,
g_FieldOffsetTable1105,
g_FieldOffsetTable1106,
g_FieldOffsetTable1107,
g_FieldOffsetTable1108,
g_FieldOffsetTable1109,
g_FieldOffsetTable1110,
g_FieldOffsetTable1111,
g_FieldOffsetTable1112,
g_FieldOffsetTable1113,
NULL,
g_FieldOffsetTable1115,
g_FieldOffsetTable1116,
g_FieldOffsetTable1117,
g_FieldOffsetTable1118,
g_FieldOffsetTable1119,
g_FieldOffsetTable1120,
g_FieldOffsetTable1121,
g_FieldOffsetTable1122,
g_FieldOffsetTable1123,
g_FieldOffsetTable1124,
g_FieldOffsetTable1125,
g_FieldOffsetTable1126,
NULL,
g_FieldOffsetTable1128,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable1146,
g_FieldOffsetTable1147,
g_FieldOffsetTable1148,
g_FieldOffsetTable1149,
g_FieldOffsetTable1150,
g_FieldOffsetTable1151,
g_FieldOffsetTable1152,
g_FieldOffsetTable1153,
g_FieldOffsetTable1154,
g_FieldOffsetTable1155,
g_FieldOffsetTable1156,
g_FieldOffsetTable1157,
g_FieldOffsetTable1158,
g_FieldOffsetTable1159,
g_FieldOffsetTable1160,
g_FieldOffsetTable1161,
g_FieldOffsetTable1162,
g_FieldOffsetTable1163,
NULL,
g_FieldOffsetTable1165,
NULL,
g_FieldOffsetTable1167,
g_FieldOffsetTable1168,
g_FieldOffsetTable1169,
g_FieldOffsetTable1170,
g_FieldOffsetTable1171,
g_FieldOffsetTable1172,
g_FieldOffsetTable1173,
g_FieldOffsetTable1174,
g_FieldOffsetTable1175,
g_FieldOffsetTable1176,
g_FieldOffsetTable1177,
g_FieldOffsetTable1178,
g_FieldOffsetTable1179,
g_FieldOffsetTable1180,
g_FieldOffsetTable1181,
g_FieldOffsetTable1182,
g_FieldOffsetTable1183,
g_FieldOffsetTable1184,
NULL,
g_FieldOffsetTable1186,
g_FieldOffsetTable1187,
g_FieldOffsetTable1188,
g_FieldOffsetTable1189,
g_FieldOffsetTable1190,
g_FieldOffsetTable1191,
g_FieldOffsetTable1192,
NULL,
g_FieldOffsetTable1194,
g_FieldOffsetTable1195,
g_FieldOffsetTable1196,
g_FieldOffsetTable1197,
g_FieldOffsetTable1198,
g_FieldOffsetTable1199,
g_FieldOffsetTable1200,
g_FieldOffsetTable1201,
g_FieldOffsetTable1202,
NULL,
g_FieldOffsetTable1204,
g_FieldOffsetTable1205,
NULL,
g_FieldOffsetTable1207,
g_FieldOffsetTable1208,
g_FieldOffsetTable1209,
g_FieldOffsetTable1210,
NULL,
g_FieldOffsetTable1212,
g_FieldOffsetTable1213,
NULL,
NULL,
g_FieldOffsetTable1216,
NULL,
NULL,
NULL,
g_FieldOffsetTable1220,
g_FieldOffsetTable1221,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable1229,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable1242,
g_FieldOffsetTable1243,
NULL,
NULL,
g_FieldOffsetTable1246,
NULL,
NULL,
g_FieldOffsetTable1249,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable1254,
NULL,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable1260,
NULL,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable1266,
g_FieldOffsetTable1267,
g_FieldOffsetTable1268,
g_FieldOffsetTable1269,
g_FieldOffsetTable1270,
g_FieldOffsetTable1271,
g_FieldOffsetTable1272,
g_FieldOffsetTable1273,
g_FieldOffsetTable1274,
g_FieldOffsetTable1275,
g_FieldOffsetTable1276,
g_FieldOffsetTable1277,
g_FieldOffsetTable1278,
g_FieldOffsetTable1279,
g_FieldOffsetTable1280,
g_FieldOffsetTable1281,
g_FieldOffsetTable1282,
g_FieldOffsetTable1283,
g_FieldOffsetTable1284,
g_FieldOffsetTable1285,
g_FieldOffsetTable1286,
g_FieldOffsetTable1287,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable1296,
NULL,
g_FieldOffsetTable1298,
g_FieldOffsetTable1299,
g_FieldOffsetTable1300,
NULL,
g_FieldOffsetTable1302,
g_FieldOffsetTable1303,
NULL,
g_FieldOffsetTable1305,
g_FieldOffsetTable1306,
NULL,
g_FieldOffsetTable1308,
NULL,
g_FieldOffsetTable1310,
g_FieldOffsetTable1311,
NULL,
g_FieldOffsetTable1313,
g_FieldOffsetTable1314,
NULL,
g_FieldOffsetTable1316,
NULL,
NULL,
g_FieldOffsetTable1319,
NULL,
g_FieldOffsetTable1321,
NULL,
NULL,
g_FieldOffsetTable1324,
g_FieldOffsetTable1325,
g_FieldOffsetTable1326,
g_FieldOffsetTable1327,
g_FieldOffsetTable1328,
g_FieldOffsetTable1329,
g_FieldOffsetTable1330,
g_FieldOffsetTable1331,
g_FieldOffsetTable1332,
g_FieldOffsetTable1333,
g_FieldOffsetTable1334,
g_FieldOffsetTable1335,
NULL,
g_FieldOffsetTable1337,
g_FieldOffsetTable1338,
g_FieldOffsetTable1339,
g_FieldOffsetTable1340,
NULL,
NULL,
g_FieldOffsetTable1343,
g_FieldOffsetTable1344,
g_FieldOffsetTable1345,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable1366,
NULL,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable1372,
NULL,
NULL,
g_FieldOffsetTable1375,
g_FieldOffsetTable1376,
NULL,
g_FieldOffsetTable1378,
g_FieldOffsetTable1379,
g_FieldOffsetTable1380,
g_FieldOffsetTable1381,
g_FieldOffsetTable1382,
g_FieldOffsetTable1383,
g_FieldOffsetTable1384,
g_FieldOffsetTable1385,
g_FieldOffsetTable1386,
g_FieldOffsetTable1387,
g_FieldOffsetTable1388,
NULL,
g_FieldOffsetTable1390,
NULL,
g_FieldOffsetTable1392,
g_FieldOffsetTable1393,
g_FieldOffsetTable1394,
g_FieldOffsetTable1395,
g_FieldOffsetTable1396,
g_FieldOffsetTable1397,
g_FieldOffsetTable1398,
g_FieldOffsetTable1399,
g_FieldOffsetTable1400,
g_FieldOffsetTable1401,
g_FieldOffsetTable1402,
g_FieldOffsetTable1403,
g_FieldOffsetTable1404,
g_FieldOffsetTable1405,
g_FieldOffsetTable1406,
g_FieldOffsetTable1407,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable1412,
g_FieldOffsetTable1413,
g_FieldOffsetTable1414,
NULL,
g_FieldOffsetTable1416,
g_FieldOffsetTable1417,
g_FieldOffsetTable1418,
g_FieldOffsetTable1419,
NULL,
g_FieldOffsetTable1421,
g_FieldOffsetTable1422,
g_FieldOffsetTable1423,
g_FieldOffsetTable1424,
g_FieldOffsetTable1425,
NULL,
g_FieldOffsetTable1427,
g_FieldOffsetTable1428,
g_FieldOffsetTable1429,
g_FieldOffsetTable1430,
NULL,
NULL,
NULL,
g_FieldOffsetTable1434,
NULL,
g_FieldOffsetTable1436,
NULL,
g_FieldOffsetTable1438,
g_FieldOffsetTable1439,
g_FieldOffsetTable1440,
NULL,
g_FieldOffsetTable1442,
g_FieldOffsetTable1443,
g_FieldOffsetTable1444,
NULL,
NULL,
NULL,
g_FieldOffsetTable1448,
NULL,
g_FieldOffsetTable1450,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable1455,
NULL,
g_FieldOffsetTable1457,
g_FieldOffsetTable1458,
g_FieldOffsetTable1459,
g_FieldOffsetTable1460,
g_FieldOffsetTable1461,
g_FieldOffsetTable1462,
NULL,
g_FieldOffsetTable1464,
g_FieldOffsetTable1465,
g_FieldOffsetTable1466,
NULL,
g_FieldOffsetTable1468,
g_FieldOffsetTable1469,
g_FieldOffsetTable1470,
g_FieldOffsetTable1471,
g_FieldOffsetTable1472,
g_FieldOffsetTable1473,
g_FieldOffsetTable1474,
NULL,
g_FieldOffsetTable1476,
g_FieldOffsetTable1477,
g_FieldOffsetTable1478,
NULL,
g_FieldOffsetTable1480,
NULL,
NULL,
g_FieldOffsetTable1483,
g_FieldOffsetTable1484,
NULL,
g_FieldOffsetTable1486,
NULL,
NULL,
g_FieldOffsetTable1489,
g_FieldOffsetTable1490,
NULL,
g_FieldOffsetTable1492,
g_FieldOffsetTable1493,
g_FieldOffsetTable1494,
NULL,
g_FieldOffsetTable1496,
NULL,
g_FieldOffsetTable1498,
g_FieldOffsetTable1499,
g_FieldOffsetTable1500,
g_FieldOffsetTable1501,
NULL,
g_FieldOffsetTable1503,
g_FieldOffsetTable1504,
g_FieldOffsetTable1505,
g_FieldOffsetTable1506,
g_FieldOffsetTable1507,
g_FieldOffsetTable1508,
g_FieldOffsetTable1509,
g_FieldOffsetTable1510,
g_FieldOffsetTable1511,
g_FieldOffsetTable1512,
g_FieldOffsetTable1513,
g_FieldOffsetTable1514,
g_FieldOffsetTable1515,
g_FieldOffsetTable1516,
g_FieldOffsetTable1517,
g_FieldOffsetTable1518,
g_FieldOffsetTable1519,
g_FieldOffsetTable1520,
g_FieldOffsetTable1521,
NULL,
g_FieldOffsetTable1523,
g_FieldOffsetTable1524,
g_FieldOffsetTable1525,
g_FieldOffsetTable1526,
g_FieldOffsetTable1527,
g_FieldOffsetTable1528,
g_FieldOffsetTable1529,
g_FieldOffsetTable1530,
g_FieldOffsetTable1531,
g_FieldOffsetTable1532,
g_FieldOffsetTable1533,
g_FieldOffsetTable1534,
g_FieldOffsetTable1535,
g_FieldOffsetTable1536,
g_FieldOffsetTable1537,
g_FieldOffsetTable1538,
g_FieldOffsetTable1539,
g_FieldOffsetTable1540,
g_FieldOffsetTable1541,
g_FieldOffsetTable1542,
g_FieldOffsetTable1543,
g_FieldOffsetTable1544,
g_FieldOffsetTable1545,
NULL,
g_FieldOffsetTable1547,
g_FieldOffsetTable1548,
g_FieldOffsetTable1549,
g_FieldOffsetTable1550,
NULL,
g_FieldOffsetTable1552,
g_FieldOffsetTable1553,
NULL,
g_FieldOffsetTable1555,
g_FieldOffsetTable1556,
g_FieldOffsetTable1557,
NULL,
g_FieldOffsetTable1559,
g_FieldOffsetTable1560,
g_FieldOffsetTable1561,
NULL,
g_FieldOffsetTable1563,
g_FieldOffsetTable1564,
g_FieldOffsetTable1565,
g_FieldOffsetTable1566,
g_FieldOffsetTable1567,
g_FieldOffsetTable1568,
g_FieldOffsetTable1569,
g_FieldOffsetTable1570,
g_FieldOffsetTable1571,
g_FieldOffsetTable1572,
g_FieldOffsetTable1573,
g_FieldOffsetTable1574,
g_FieldOffsetTable1575,
g_FieldOffsetTable1576,
g_FieldOffsetTable1577,
g_FieldOffsetTable1578,
g_FieldOffsetTable1579,
g_FieldOffsetTable1580,
g_FieldOffsetTable1581,
g_FieldOffsetTable1582,
g_FieldOffsetTable1583,
g_FieldOffsetTable1584,
g_FieldOffsetTable1585,
g_FieldOffsetTable1586,
g_FieldOffsetTable1587,
g_FieldOffsetTable1588,
g_FieldOffsetTable1589,
g_FieldOffsetTable1590,
g_FieldOffsetTable1591,
g_FieldOffsetTable1592,
g_FieldOffsetTable1593,
g_FieldOffsetTable1594,
g_FieldOffsetTable1595,
g_FieldOffsetTable1596,
g_FieldOffsetTable1597,
g_FieldOffsetTable1598,
g_FieldOffsetTable1599,
g_FieldOffsetTable1600,
g_FieldOffsetTable1601,
g_FieldOffsetTable1602,
g_FieldOffsetTable1603,
g_FieldOffsetTable1604,
g_FieldOffsetTable1605,
NULL,
NULL,
g_FieldOffsetTable1608,
g_FieldOffsetTable1609,
g_FieldOffsetTable1610,
NULL,
g_FieldOffsetTable1612,
g_FieldOffsetTable1613,
g_FieldOffsetTable1614,
g_FieldOffsetTable1615,
g_FieldOffsetTable1616,
g_FieldOffsetTable1617,
g_FieldOffsetTable1618,
g_FieldOffsetTable1619,
g_FieldOffsetTable1620,
g_FieldOffsetTable1621,
g_FieldOffsetTable1622,
g_FieldOffsetTable1623,
g_FieldOffsetTable1624,
g_FieldOffsetTable1625,
g_FieldOffsetTable1626,
g_FieldOffsetTable1627,
NULL,
g_FieldOffsetTable1629,
g_FieldOffsetTable1630,
g_FieldOffsetTable1631,
g_FieldOffsetTable1632,
g_FieldOffsetTable1633,
g_FieldOffsetTable1634,
g_FieldOffsetTable1635,
g_FieldOffsetTable1636,
NULL,
g_FieldOffsetTable1638,
NULL,
g_FieldOffsetTable1640,
g_FieldOffsetTable1641,
g_FieldOffsetTable1642,
g_FieldOffsetTable1643,
NULL,
g_FieldOffsetTable1645,
g_FieldOffsetTable1646,
g_FieldOffsetTable1647,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable1654,
g_FieldOffsetTable1655,
g_FieldOffsetTable1656,
NULL,
g_FieldOffsetTable1658,
g_FieldOffsetTable1659,
g_FieldOffsetTable1660,
g_FieldOffsetTable1661,
NULL,
NULL,
NULL,
g_FieldOffsetTable1665,
g_FieldOffsetTable1666,
g_FieldOffsetTable1667,
NULL,
NULL,
NULL,
g_FieldOffsetTable1671,
g_FieldOffsetTable1672,
g_FieldOffsetTable1673,
g_FieldOffsetTable1674,
g_FieldOffsetTable1675,
NULL,
g_FieldOffsetTable1677,
g_FieldOffsetTable1678,
g_FieldOffsetTable1679,
g_FieldOffsetTable1680,
g_FieldOffsetTable1681,
g_FieldOffsetTable1682,
g_FieldOffsetTable1683,
NULL,
g_FieldOffsetTable1685,
g_FieldOffsetTable1686,
g_FieldOffsetTable1687,
NULL,
g_FieldOffsetTable1689,
g_FieldOffsetTable1690,
g_FieldOffsetTable1691,
g_FieldOffsetTable1692,
NULL,
g_FieldOffsetTable1694,
g_FieldOffsetTable1695,
g_FieldOffsetTable1696,
g_FieldOffsetTable1697,
NULL,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable1703,
g_FieldOffsetTable1704,
g_FieldOffsetTable1705,
g_FieldOffsetTable1706,
NULL,
NULL,
NULL,
g_FieldOffsetTable1710,
g_FieldOffsetTable1711,
g_FieldOffsetTable1712,
g_FieldOffsetTable1713,
g_FieldOffsetTable1714,
g_FieldOffsetTable1715,
g_FieldOffsetTable1716,
g_FieldOffsetTable1717,
NULL,
g_FieldOffsetTable1719,
g_FieldOffsetTable1720,
g_FieldOffsetTable1721,
g_FieldOffsetTable1722,
g_FieldOffsetTable1723,
g_FieldOffsetTable1724,
g_FieldOffsetTable1725,
g_FieldOffsetTable1726,
g_FieldOffsetTable1727,
g_FieldOffsetTable1728,
g_FieldOffsetTable1729,
g_FieldOffsetTable1730,
g_FieldOffsetTable1731,
g_FieldOffsetTable1732,
g_FieldOffsetTable1733,
g_FieldOffsetTable1734,
g_FieldOffsetTable1735,
g_FieldOffsetTable1736,
g_FieldOffsetTable1737,
g_FieldOffsetTable1738,
g_FieldOffsetTable1739,
g_FieldOffsetTable1740,
g_FieldOffsetTable1741,
g_FieldOffsetTable1742,
g_FieldOffsetTable1743,
g_FieldOffsetTable1744,
g_FieldOffsetTable1745,
g_FieldOffsetTable1746,
g_FieldOffsetTable1747,
g_FieldOffsetTable1748,
NULL,
g_FieldOffsetTable1750,
NULL,
g_FieldOffsetTable1752,
g_FieldOffsetTable1753,
g_FieldOffsetTable1754,
NULL,
g_FieldOffsetTable1756,
g_FieldOffsetTable1757,
g_FieldOffsetTable1758,
g_FieldOffsetTable1759,
g_FieldOffsetTable1760,
g_FieldOffsetTable1761,
g_FieldOffsetTable1762,
g_FieldOffsetTable1763,
g_FieldOffsetTable1764,
g_FieldOffsetTable1765,
g_FieldOffsetTable1766,
g_FieldOffsetTable1767,
g_FieldOffsetTable1768,
g_FieldOffsetTable1769,
NULL,
g_FieldOffsetTable1771,
NULL,
g_FieldOffsetTable1773,
g_FieldOffsetTable1774,
g_FieldOffsetTable1775,
g_FieldOffsetTable1776,
g_FieldOffsetTable1777,
g_FieldOffsetTable1778,
g_FieldOffsetTable1779,
g_FieldOffsetTable1780,
g_FieldOffsetTable1781,
g_FieldOffsetTable1782,
g_FieldOffsetTable1783,
g_FieldOffsetTable1784,
g_FieldOffsetTable1785,
g_FieldOffsetTable1786,
g_FieldOffsetTable1787,
g_FieldOffsetTable1788,
g_FieldOffsetTable1789,
g_FieldOffsetTable1790,
g_FieldOffsetTable1791,
g_FieldOffsetTable1792,
g_FieldOffsetTable1793,
g_FieldOffsetTable1794,
g_FieldOffsetTable1795,
g_FieldOffsetTable1796,
g_FieldOffsetTable1797,
g_FieldOffsetTable1798,
g_FieldOffsetTable1799,
g_FieldOffsetTable1800,
g_FieldOffsetTable1801,
g_FieldOffsetTable1802,
g_FieldOffsetTable1803,
g_FieldOffsetTable1804,
g_FieldOffsetTable1805,
g_FieldOffsetTable1806,
g_FieldOffsetTable1807,
g_FieldOffsetTable1808,
g_FieldOffsetTable1809,
g_FieldOffsetTable1810,
g_FieldOffsetTable1811,
g_FieldOffsetTable1812,
g_FieldOffsetTable1813,
g_FieldOffsetTable1814,
g_FieldOffsetTable1815,
NULL,
NULL,
g_FieldOffsetTable1818,
g_FieldOffsetTable1819,
g_FieldOffsetTable1820,
g_FieldOffsetTable1821,
g_FieldOffsetTable1822,
NULL,
NULL,
NULL,
g_FieldOffsetTable1826,
g_FieldOffsetTable1827,
g_FieldOffsetTable1828,
g_FieldOffsetTable1829,
g_FieldOffsetTable1830,
g_FieldOffsetTable1831,
g_FieldOffsetTable1832,
g_FieldOffsetTable1833,
g_FieldOffsetTable1834,
g_FieldOffsetTable1835,
g_FieldOffsetTable1836,
g_FieldOffsetTable1837,
g_FieldOffsetTable1838,
NULL,
g_FieldOffsetTable1840,
g_FieldOffsetTable1841,
NULL,
NULL,
g_FieldOffsetTable1844,
NULL,
g_FieldOffsetTable1846,
g_FieldOffsetTable1847,
g_FieldOffsetTable1848,
NULL,
g_FieldOffsetTable1850,
NULL,
g_FieldOffsetTable1852,
g_FieldOffsetTable1853,
NULL,
g_FieldOffsetTable1855,
g_FieldOffsetTable1856,
g_FieldOffsetTable1857,
g_FieldOffsetTable1858,
g_FieldOffsetTable1859,
g_FieldOffsetTable1860,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable1865,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable1870,
g_FieldOffsetTable1871,
g_FieldOffsetTable1872,
g_FieldOffsetTable1873,
g_FieldOffsetTable1874,
g_FieldOffsetTable1875,
NULL,
g_FieldOffsetTable1877,
g_FieldOffsetTable1878,
g_FieldOffsetTable1879,
g_FieldOffsetTable1880,
g_FieldOffsetTable1881,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable1909,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable1914,
g_FieldOffsetTable1915,
NULL,
g_FieldOffsetTable1917,
g_FieldOffsetTable1918,
g_FieldOffsetTable1919,
g_FieldOffsetTable1920,
g_FieldOffsetTable1921,
g_FieldOffsetTable1922,
g_FieldOffsetTable1923,
g_FieldOffsetTable1924,
g_FieldOffsetTable1925,
g_FieldOffsetTable1926,
g_FieldOffsetTable1927,
g_FieldOffsetTable1928,
g_FieldOffsetTable1929,
NULL,
g_FieldOffsetTable1931,
NULL,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable1937,
g_FieldOffsetTable1938,
NULL,
NULL,
g_FieldOffsetTable1941,
NULL,
NULL,
NULL,
g_FieldOffsetTable1945,
NULL,
NULL,
g_FieldOffsetTable1948,
g_FieldOffsetTable1949,
g_FieldOffsetTable1950,
NULL,
NULL,
g_FieldOffsetTable1953,
g_FieldOffsetTable1954,
NULL,
NULL,
g_FieldOffsetTable1957,
NULL,
NULL,
NULL,
g_FieldOffsetTable1961,
g_FieldOffsetTable1962,
g_FieldOffsetTable1963,
g_FieldOffsetTable1964,
g_FieldOffsetTable1965,
g_FieldOffsetTable1966,
g_FieldOffsetTable1967,
NULL,
NULL,
g_FieldOffsetTable1970,
g_FieldOffsetTable1971,
NULL,
g_FieldOffsetTable1973,
NULL,
g_FieldOffsetTable1975,
g_FieldOffsetTable1976,
g_FieldOffsetTable1977,
NULL,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable1983,
g_FieldOffsetTable1984,
NULL,
NULL,
g_FieldOffsetTable1987,
g_FieldOffsetTable1988,
g_FieldOffsetTable1989,
g_FieldOffsetTable1990,
g_FieldOffsetTable1991,
g_FieldOffsetTable1992,
g_FieldOffsetTable1993,
g_FieldOffsetTable1994,
g_FieldOffsetTable1995,
g_FieldOffsetTable1996,
g_FieldOffsetTable1997,
g_FieldOffsetTable1998,
g_FieldOffsetTable1999,
g_FieldOffsetTable2000,
g_FieldOffsetTable2001,
NULL,
g_FieldOffsetTable2003,
g_FieldOffsetTable2004,
NULL,
g_FieldOffsetTable2006,
NULL,
NULL,
g_FieldOffsetTable2009,
g_FieldOffsetTable2010,
g_FieldOffsetTable2011,
NULL,
g_FieldOffsetTable2013,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable2020,
NULL,
NULL,
g_FieldOffsetTable2023,
g_FieldOffsetTable2024,
g_FieldOffsetTable2025,
g_FieldOffsetTable2026,
NULL,
g_FieldOffsetTable2028,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable2033,
NULL,
g_FieldOffsetTable2035,
g_FieldOffsetTable2036,
g_FieldOffsetTable2037,
g_FieldOffsetTable2038,
g_FieldOffsetTable2039,
g_FieldOffsetTable2040,
NULL,
g_FieldOffsetTable2042,
g_FieldOffsetTable2043,
g_FieldOffsetTable2044,
g_FieldOffsetTable2045,
g_FieldOffsetTable2046,
g_FieldOffsetTable2047,
g_FieldOffsetTable2048,
g_FieldOffsetTable2049,
g_FieldOffsetTable2050,
g_FieldOffsetTable2051,
g_FieldOffsetTable2052,
g_FieldOffsetTable2053,
NULL,
NULL,
g_FieldOffsetTable2056,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable2061,
g_FieldOffsetTable2062,
g_FieldOffsetTable2063,
NULL,
g_FieldOffsetTable2065,
g_FieldOffsetTable2066,
NULL,
g_FieldOffsetTable2068,
g_FieldOffsetTable2069,
g_FieldOffsetTable2070,
NULL,
g_FieldOffsetTable2072,
g_FieldOffsetTable2073,
NULL,
NULL,
NULL,
g_FieldOffsetTable2077,
g_FieldOffsetTable2078,
g_FieldOffsetTable2079,
g_FieldOffsetTable2080,
NULL,
NULL,
g_FieldOffsetTable2083,
g_FieldOffsetTable2084,
g_FieldOffsetTable2085,
g_FieldOffsetTable2086,
g_FieldOffsetTable2087,
g_FieldOffsetTable2088,
g_FieldOffsetTable2089,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable2094,
g_FieldOffsetTable2095,
g_FieldOffsetTable2096,
g_FieldOffsetTable2097,
NULL,
g_FieldOffsetTable2099,
g_FieldOffsetTable2100,
g_FieldOffsetTable2101,
g_FieldOffsetTable2102,
g_FieldOffsetTable2103,
g_FieldOffsetTable2104,
g_FieldOffsetTable2105,
g_FieldOffsetTable2106,
g_FieldOffsetTable2107,
g_FieldOffsetTable2108,
g_FieldOffsetTable2109,
NULL,
g_FieldOffsetTable2111,
NULL,
g_FieldOffsetTable2113,
NULL,
g_FieldOffsetTable2115,
NULL,
g_FieldOffsetTable2117,
NULL,
g_FieldOffsetTable2119,
NULL,
g_FieldOffsetTable2121,
g_FieldOffsetTable2122,
g_FieldOffsetTable2123,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable2132,
g_FieldOffsetTable2133,
NULL,
NULL,
NULL,
g_FieldOffsetTable2137,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable2142,
g_FieldOffsetTable2143,
NULL,
NULL,
NULL,
g_FieldOffsetTable2147,
g_FieldOffsetTable2148,
NULL,
g_FieldOffsetTable2150,
g_FieldOffsetTable2151,
NULL,
NULL,
g_FieldOffsetTable2154,
g_FieldOffsetTable2155,
NULL,
NULL,
g_FieldOffsetTable2158,
NULL,
NULL,
NULL,
g_FieldOffsetTable2162,
g_FieldOffsetTable2163,
g_FieldOffsetTable2164,
NULL,
NULL,
g_FieldOffsetTable2167,
g_FieldOffsetTable2168,
g_FieldOffsetTable2169,
NULL,
NULL,
g_FieldOffsetTable2172,
g_FieldOffsetTable2173,
NULL,
NULL,
g_FieldOffsetTable2176,
g_FieldOffsetTable2177,
NULL,
NULL,
g_FieldOffsetTable2180,
g_FieldOffsetTable2181,
g_FieldOffsetTable2182,
g_FieldOffsetTable2183,
g_FieldOffsetTable2184,
g_FieldOffsetTable2185,
g_FieldOffsetTable2186,
g_FieldOffsetTable2187,
g_FieldOffsetTable2188,
g_FieldOffsetTable2189,
NULL,
g_FieldOffsetTable2191,
NULL,
NULL,
NULL,
g_FieldOffsetTable2195,
g_FieldOffsetTable2196,
g_FieldOffsetTable2197,
g_FieldOffsetTable2198,
g_FieldOffsetTable2199,
g_FieldOffsetTable2200,
g_FieldOffsetTable2201,
g_FieldOffsetTable2202,
g_FieldOffsetTable2203,
g_FieldOffsetTable2204,
NULL,
NULL,
NULL,
g_FieldOffsetTable2208,
g_FieldOffsetTable2209,
NULL,
NULL,
NULL,
g_FieldOffsetTable2213,
g_FieldOffsetTable2214,
g_FieldOffsetTable2215,
g_FieldOffsetTable2216,
g_FieldOffsetTable2217,
g_FieldOffsetTable2218,
g_FieldOffsetTable2219,
g_FieldOffsetTable2220,
g_FieldOffsetTable2221,
g_FieldOffsetTable2222,
g_FieldOffsetTable2223,
g_FieldOffsetTable2224,
g_FieldOffsetTable2225,
NULL,
NULL,
NULL,
NULL,
NULL,
g_FieldOffsetTable2231,
g_FieldOffsetTable2232,
g_FieldOffsetTable2233,
g_FieldOffsetTable2234,
g_FieldOffsetTable2235,
NULL,
g_FieldOffsetTable2237,
NULL,
NULL,
NULL,
g_FieldOffsetTable2241,
NULL,
NULL,
g_FieldOffsetTable2244,
g_FieldOffsetTable2245,
g_FieldOffsetTable2246,
NULL,
g_FieldOffsetTable2248,
g_FieldOffsetTable2249,
g_FieldOffsetTable2250,
NULL,
g_FieldOffsetTable2252,
g_FieldOffsetTable2253,
g_FieldOffsetTable2254,
g_FieldOffsetTable2255,
};
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize0;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize3;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize4;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize5;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize6;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize7;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize8;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize9;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize10;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize11;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize12;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize13;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize14;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize15;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize16;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize17;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize18;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize19;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize20;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize21;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize22;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize23;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize24;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize25;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize26;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize27;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize28;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize29;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize30;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize31;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize32;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize33;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize34;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize35;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize36;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize37;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize38;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize39;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize40;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize41;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize42;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize43;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize44;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize45;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize46;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize47;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize48;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize49;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize50;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize51;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize52;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize53;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize54;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize55;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize56;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize57;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize58;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize59;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize60;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize61;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize62;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize63;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize64;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize65;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize66;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize67;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize68;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize69;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize70;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize71;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize72;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize73;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize74;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize75;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize76;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize77;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize78;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize79;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize80;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize81;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize82;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize83;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize84;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize85;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize86;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize87;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize88;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize89;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize90;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize91;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize92;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize93;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize94;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize95;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize96;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize97;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize98;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize99;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize100;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize101;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize102;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize103;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize104;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize105;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize106;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize107;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize108;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize109;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize110;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize111;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize112;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize113;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize114;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize115;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize116;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize117;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize118;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize119;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize120;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize121;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize122;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize123;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize124;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize125;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize126;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize127;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize128;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize129;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize130;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize131;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize132;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize133;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize134;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize135;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize136;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize137;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize138;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize139;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize140;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize141;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize142;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize143;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize144;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize145;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize146;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize147;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize148;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize149;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize150;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize151;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize152;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize153;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize154;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize155;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize156;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize157;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize158;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize159;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize160;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize161;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize162;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize163;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize164;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize165;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize166;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize167;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize168;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize169;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize170;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize171;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize172;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize173;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize174;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize175;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize176;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize177;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize178;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize179;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize180;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize181;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize182;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize183;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize184;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize185;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize186;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize187;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize188;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize189;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize190;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize191;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize192;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize193;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize194;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize195;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize196;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize197;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize198;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize199;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize200;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize201;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize202;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize203;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize204;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize205;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize206;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize207;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize208;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize209;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize210;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize211;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize212;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize213;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize214;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize215;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize216;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize217;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize218;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize219;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize220;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize221;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize222;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize223;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize224;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize225;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize226;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize227;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize228;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize229;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize230;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize231;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize232;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize233;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize234;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize235;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize236;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize237;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize238;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize239;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize240;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize241;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize242;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize243;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize244;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize245;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize246;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize247;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize248;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize249;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize250;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize251;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize252;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize253;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize254;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize255;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize256;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize257;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize258;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize259;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize260;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize261;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize262;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize263;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize264;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize265;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize266;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize267;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize268;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize269;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize270;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize271;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize272;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize273;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize274;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize275;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize276;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize277;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize278;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize279;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize280;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize281;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize282;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize283;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize284;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize285;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize286;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize287;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize288;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize289;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize290;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize291;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize292;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize293;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize294;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize295;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize296;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize297;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize298;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize299;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize300;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize301;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize302;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize303;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize304;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize305;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize306;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize307;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize308;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize309;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize310;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize311;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize312;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize313;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize314;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize315;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize316;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize317;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize318;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize319;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize320;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize321;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize322;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize323;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize324;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize325;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize326;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize327;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize328;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize329;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize330;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize331;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize332;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize333;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize334;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize335;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize336;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize337;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize338;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize339;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize340;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize341;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize342;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize343;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize344;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize345;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize346;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize347;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize348;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize349;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize350;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize351;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize352;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize353;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize354;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize355;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize356;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize357;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize358;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize359;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize360;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize361;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize362;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize363;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize364;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize365;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize366;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize367;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize368;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize369;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize370;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize371;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize372;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize373;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize374;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize375;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize376;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize377;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize378;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize379;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize380;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize381;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize382;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize383;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize384;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize385;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize386;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize387;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize388;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize389;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize390;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize391;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize392;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize393;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize394;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize395;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize396;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize397;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize398;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize399;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize400;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize401;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize402;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize403;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize404;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize405;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize406;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize407;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize408;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize409;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize410;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize411;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize412;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize413;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize414;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize415;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize416;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize417;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize418;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize419;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize420;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize421;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize422;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize423;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize424;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize425;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize426;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize427;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize428;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize429;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize430;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize431;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize432;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize433;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize434;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize435;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize436;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize437;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize438;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize439;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize440;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize441;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize442;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize443;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize444;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize445;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize446;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize447;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize448;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize449;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize450;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize451;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize452;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize453;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize454;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize455;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize456;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize457;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize458;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize459;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize460;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize461;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize462;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize463;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize464;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize465;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize466;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize467;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize468;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize469;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize470;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize471;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize472;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize473;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize474;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize475;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize476;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize477;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize478;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize479;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize480;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize481;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize482;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize483;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize484;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize485;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize486;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize487;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize488;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize489;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize490;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize491;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize492;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize493;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize494;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize495;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize496;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize497;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize498;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize499;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize500;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize501;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize502;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize503;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize504;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize505;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize506;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize507;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize508;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize509;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize510;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize511;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize512;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize513;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize514;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize515;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize516;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize517;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize518;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize519;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize520;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize521;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize522;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize523;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize524;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize525;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize526;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize527;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize528;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize529;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize530;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize531;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize532;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize533;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize534;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize535;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize536;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize537;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize538;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize539;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize540;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize541;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize542;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize543;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize544;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize545;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize546;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize547;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize548;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize549;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize550;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize551;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize552;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize553;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize554;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize555;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize556;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize557;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize558;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize559;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize560;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize561;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize562;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize563;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize564;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize565;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize566;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize567;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize568;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize569;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize570;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize571;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize572;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize573;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize574;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize575;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize576;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize577;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize578;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize579;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize580;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize581;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize582;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize583;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize584;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize585;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize586;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize587;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize588;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize589;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize590;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize591;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize592;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize593;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize594;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize595;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize596;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize597;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize598;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize599;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize600;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize601;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize602;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize603;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize604;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize605;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize606;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize607;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize608;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize609;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize610;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize611;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize612;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize613;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize614;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize615;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize616;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize617;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize618;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize619;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize620;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize621;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize622;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize623;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize624;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize625;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize626;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize627;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize628;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize629;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize630;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize631;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize632;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize633;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize634;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize635;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize636;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize637;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize638;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize639;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize640;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize641;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize642;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize643;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize644;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize645;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize646;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize647;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize648;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize649;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize650;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize651;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize652;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize653;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize654;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize655;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize656;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize657;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize658;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize659;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize660;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize661;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize662;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize663;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize664;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize665;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize666;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize667;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize668;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize669;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize670;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize671;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize672;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize673;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize674;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize675;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize676;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize677;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize678;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize679;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize680;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize681;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize682;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize683;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize684;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize685;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize686;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize687;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize688;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize689;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize690;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize691;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize692;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize693;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize694;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize695;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize696;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize697;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize698;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize699;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize700;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize701;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize702;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize703;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize704;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize705;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize706;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize707;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize708;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize709;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize710;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize711;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize712;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize713;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize714;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize715;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize716;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize717;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize718;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize719;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize720;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize721;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize722;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize723;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize724;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize725;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize726;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize727;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize728;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize729;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize730;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize731;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize732;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize733;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize734;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize735;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize736;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize737;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize738;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize739;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize740;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize741;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize742;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize743;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize744;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize745;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize746;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize747;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize748;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize749;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize750;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize751;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize752;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize753;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize754;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize755;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize756;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize757;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize758;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize759;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize760;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize761;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize762;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize763;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize764;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize765;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize766;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize767;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize768;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize769;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize770;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize771;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize772;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize773;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize774;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize775;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize776;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize777;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize778;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize779;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize780;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize781;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize782;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize783;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize784;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize785;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize786;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize787;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize788;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize789;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize790;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize791;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize792;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize793;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize794;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize795;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize796;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize797;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize798;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize799;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize800;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize801;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize802;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize803;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize804;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize805;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize806;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize807;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize808;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize809;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize810;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize811;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize812;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize813;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize814;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize815;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize816;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize817;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize818;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize819;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize820;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize821;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize822;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize823;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize824;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize825;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize826;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize827;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize828;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize829;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize830;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize831;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize832;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize833;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize834;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize835;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize836;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize837;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize838;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize839;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize840;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize841;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize842;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize843;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize844;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize845;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize846;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize847;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize848;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize849;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize850;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize851;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize852;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize853;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize854;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize855;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize856;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize857;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize858;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize859;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize860;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize861;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize862;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize863;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize864;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize865;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize866;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize867;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize868;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize869;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize870;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize871;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize872;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize873;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize874;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize875;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize876;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize877;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize878;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize879;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize880;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize881;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize882;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize883;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize884;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize885;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize886;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize887;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize888;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize889;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize890;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize891;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize892;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize893;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize894;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize895;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize896;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize897;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize898;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize899;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize900;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize901;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize902;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize903;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize904;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize905;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize906;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize907;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize908;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize909;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize910;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize911;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize912;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize913;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize914;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize915;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize916;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize917;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize918;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize919;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize920;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize921;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize922;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize923;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize924;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize925;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize926;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize927;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize928;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize929;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize930;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize931;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize932;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize933;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize934;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize935;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize936;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize937;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize938;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize939;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize940;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize941;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize942;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize943;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize944;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize945;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize946;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize947;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize948;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize949;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize950;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize951;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize952;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize953;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize954;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize955;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize956;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize957;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize958;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize959;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize960;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize961;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize962;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize963;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize964;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize965;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize966;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize967;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize968;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize969;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize970;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize971;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize972;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize973;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize974;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize975;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize976;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize977;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize978;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize979;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize980;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize981;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize982;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize983;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize984;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize985;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize986;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize987;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize988;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize989;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize990;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize991;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize992;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize993;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize994;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize995;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize996;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize997;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize998;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize999;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1000;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1001;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1002;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1003;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1004;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1005;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1006;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1007;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1008;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1009;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1010;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1011;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1012;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1013;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1014;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1015;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1016;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1017;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1018;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1019;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1020;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1021;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1022;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1023;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1024;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1025;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1026;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1027;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1028;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1029;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1030;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1031;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1032;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1033;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1034;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1035;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1036;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1037;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1038;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1039;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1040;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1041;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1042;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1043;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1044;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1045;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1046;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1047;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1048;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1049;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1050;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1051;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1052;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1053;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1054;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1055;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1056;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1057;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1058;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1059;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1060;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1061;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1062;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1063;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1064;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1065;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1066;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1067;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1068;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1069;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1070;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1071;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1072;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1073;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1074;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1075;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1076;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1077;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1078;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1079;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1080;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1081;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1082;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1083;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1084;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1085;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1086;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1087;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1088;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1089;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1090;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1091;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1092;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1093;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1094;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1095;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1096;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1097;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1098;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1099;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1100;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1101;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1102;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1103;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1104;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1105;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1106;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1107;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1108;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1109;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1110;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1111;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1112;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1113;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1114;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1115;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1116;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1117;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1118;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1119;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1120;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1121;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1122;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1123;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1124;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1125;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1126;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1127;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1128;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1129;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1130;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1131;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1132;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1133;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1134;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1135;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1136;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1137;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1138;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1139;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1140;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1141;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1142;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1143;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1144;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1145;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1146;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1147;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1148;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1149;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1150;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1151;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1152;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1153;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1154;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1155;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1156;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1157;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1158;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1159;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1160;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1161;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1162;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1163;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1164;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1165;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1166;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1167;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1168;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1169;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1170;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1171;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1172;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1173;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1174;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1175;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1176;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1177;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1178;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1179;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1180;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1181;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1182;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1183;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1184;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1185;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1186;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1187;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1188;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1189;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1190;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1191;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1192;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1193;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1194;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1195;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1196;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1197;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1198;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1199;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1200;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1201;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1202;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1203;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1204;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1205;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1206;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1207;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1208;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1209;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1210;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1211;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1212;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1213;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1214;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1215;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1216;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1217;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1218;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1219;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1220;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1221;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1222;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1223;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1224;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1225;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1226;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1227;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1228;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1229;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1230;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1231;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1232;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1233;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1234;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1235;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1236;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1237;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1238;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1239;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1240;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1241;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1242;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1243;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1244;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1245;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1246;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1247;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1248;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1249;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1250;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1251;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1252;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1253;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1254;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1255;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1256;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1257;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1258;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1259;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1260;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1261;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1262;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1263;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1264;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1265;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1266;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1267;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1268;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1269;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1270;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1271;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1272;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1273;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1274;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1275;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1276;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1277;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1278;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1279;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1280;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1281;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1282;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1283;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1284;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1285;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1286;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1287;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1288;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1289;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1290;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1291;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1292;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1293;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1294;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1295;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1296;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1297;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1298;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1299;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1300;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1301;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1302;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1303;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1304;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1305;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1306;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1307;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1308;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1309;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1310;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1311;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1312;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1313;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1314;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1315;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1316;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1317;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1318;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1319;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1320;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1321;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1322;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1323;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1324;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1325;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1326;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1327;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1328;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1329;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1330;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1331;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1332;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1333;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1334;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1335;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1336;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1337;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1338;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1339;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1340;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1341;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1342;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1343;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1344;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1345;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1346;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1347;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1348;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1349;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1350;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1351;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1352;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1353;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1354;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1355;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1356;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1357;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1358;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1359;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1360;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1361;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1362;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1363;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1364;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1365;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1366;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1367;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1368;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1369;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1370;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1371;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1372;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1373;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1374;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1375;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1376;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1377;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1378;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1379;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1380;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1381;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1382;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1383;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1384;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1385;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1386;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1387;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1388;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1389;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1390;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1391;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1392;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1393;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1394;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1395;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1396;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1397;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1398;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1399;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1400;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1401;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1402;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1403;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1404;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1405;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1406;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1407;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1408;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1409;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1410;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1411;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1412;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1413;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1414;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1415;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1416;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1417;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1418;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1419;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1420;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1421;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1422;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1423;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1424;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1425;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1426;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1427;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1428;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1429;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1430;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1431;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1432;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1433;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1434;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1435;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1436;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1437;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1438;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1439;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1440;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1441;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1442;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1443;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1444;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1445;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1446;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1447;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1448;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1449;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1450;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1451;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1452;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1453;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1454;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1455;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1456;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1457;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1458;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1459;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1460;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1461;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1462;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1463;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1464;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1465;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1466;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1467;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1468;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1469;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1470;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1471;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1472;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1473;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1474;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1475;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1476;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1477;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1478;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1479;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1480;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1481;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1482;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1483;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1484;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1485;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1486;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1487;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1488;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1489;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1490;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1491;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1492;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1493;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1494;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1495;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1496;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1497;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1498;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1499;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1500;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1501;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1502;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1503;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1504;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1505;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1506;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1507;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1508;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1509;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1510;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1511;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1512;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1513;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1514;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1515;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1516;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1517;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1518;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1519;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1520;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1521;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1522;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1523;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1524;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1525;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1526;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1527;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1528;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1529;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1530;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1531;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1532;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1533;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1534;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1535;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1536;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1537;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1538;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1539;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1540;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1541;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1542;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1543;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1544;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1545;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1546;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1547;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1548;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1549;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1550;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1551;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1552;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1553;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1554;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1555;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1556;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1557;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1558;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1559;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1560;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1561;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1562;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1563;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1564;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1565;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1566;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1567;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1568;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1569;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1570;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1571;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1572;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1573;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1574;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1575;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1576;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1577;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1578;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1579;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1580;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1581;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1582;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1583;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1584;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1585;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1586;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1587;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1588;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1589;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1590;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1591;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1592;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1593;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1594;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1595;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1596;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1597;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1598;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1599;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1600;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1601;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1602;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1603;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1604;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1605;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1606;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1607;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1608;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1609;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1610;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1611;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1612;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1613;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1614;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1615;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1616;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1617;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1618;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1619;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1620;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1621;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1622;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1623;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1624;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1625;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1626;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1627;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1628;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1629;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1630;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1631;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1632;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1633;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1634;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1635;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1636;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1637;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1638;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1639;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1640;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1641;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1642;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1643;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1644;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1645;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1646;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1647;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1648;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1649;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1650;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1651;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1652;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1653;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1654;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1655;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1656;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1657;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1658;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1659;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1660;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1661;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1662;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1663;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1664;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1665;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1666;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1667;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1668;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1669;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1670;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1671;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1672;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1673;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1674;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1675;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1676;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1677;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1678;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1679;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1680;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1681;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1682;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1683;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1684;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1685;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1686;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1687;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1688;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1689;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1690;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1691;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1692;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1693;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1694;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1695;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1696;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1697;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1698;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1699;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1700;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1701;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1702;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1703;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1704;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1705;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1706;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1707;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1708;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1709;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1710;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1711;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1712;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1713;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1714;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1715;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1716;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1717;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1718;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1719;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1720;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1721;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1722;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1723;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1724;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1725;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1726;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1727;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1728;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1729;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1730;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1731;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1732;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1733;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1734;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1735;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1736;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1737;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1738;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1739;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1740;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1741;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1742;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1743;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1744;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1745;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1746;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1747;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1748;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1749;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1750;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1751;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1752;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1753;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1754;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1755;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1756;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1757;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1758;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1759;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1760;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1761;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1762;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1763;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1764;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1765;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1766;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1767;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1768;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1769;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1770;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1771;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1772;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1773;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1774;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1775;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1776;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1777;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1778;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1779;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1780;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1781;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1782;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1783;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1784;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1785;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1786;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1787;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1788;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1789;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1790;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1791;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1792;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1793;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1794;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1795;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1796;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1797;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1798;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1799;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1800;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1801;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1802;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1803;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1804;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1805;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1806;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1807;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1808;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1809;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1810;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1811;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1812;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1813;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1814;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1815;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1816;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1817;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1818;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1819;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1820;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1821;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1822;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1823;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1824;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1825;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1826;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1827;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1828;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1829;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1830;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1831;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1832;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1833;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1834;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1835;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1836;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1837;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1838;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1839;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1840;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1841;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1842;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1843;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1844;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1845;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1846;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1847;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1848;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1849;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1850;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1851;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1852;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1853;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1854;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1855;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1856;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1857;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1858;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1859;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1860;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1861;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1862;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1863;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1864;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1865;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1866;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1867;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1868;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1869;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1870;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1871;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1872;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1873;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1874;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1875;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1876;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1877;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1878;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1879;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1880;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1881;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1882;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1883;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1884;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1885;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1886;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1887;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1888;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1889;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1890;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1891;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1892;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1893;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1894;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1895;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1896;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1897;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1898;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1899;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1900;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1901;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1902;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1903;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1904;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1905;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1906;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1907;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1908;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1909;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1910;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1911;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1912;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1913;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1914;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1915;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1916;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1917;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1918;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1919;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1920;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1921;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1922;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1923;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1924;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1925;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1926;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1927;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1928;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1929;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1930;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1931;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1932;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1933;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1934;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1935;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1936;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1937;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1938;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1939;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1940;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1941;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1942;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1943;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1944;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1945;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1946;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1947;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1948;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1949;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1950;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1951;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1952;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1953;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1954;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1955;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1956;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1957;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1958;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1959;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1960;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1961;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1962;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1963;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1964;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1965;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1966;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1967;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1968;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1969;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1970;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1971;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1972;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1973;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1974;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1975;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1976;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1977;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1978;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1979;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1980;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1981;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1982;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1983;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1984;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1985;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1986;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1987;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1988;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1989;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1990;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1991;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1992;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1993;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1994;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1995;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1996;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1997;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1998;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1999;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2000;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2001;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2002;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2003;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2004;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2005;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2006;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2007;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2008;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2009;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2010;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2011;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2012;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2013;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2014;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2015;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2016;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2017;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2018;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2019;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2020;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2021;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2022;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2023;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2024;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2025;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2026;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2027;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2028;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2029;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2030;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2031;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2032;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2033;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2034;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2035;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2036;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2037;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2038;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2039;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2040;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2041;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2042;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2043;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2044;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2045;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2046;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2047;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2048;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2049;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2050;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2051;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2052;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2053;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2054;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2055;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2056;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2057;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2058;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2059;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2060;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2061;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2062;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2063;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2064;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2065;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2066;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2067;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2068;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2069;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2070;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2071;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2072;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2073;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2074;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2075;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2076;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2077;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2078;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2079;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2080;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2081;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2082;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2083;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2084;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2085;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2086;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2087;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2088;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2089;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2090;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2091;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2092;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2093;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2094;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2095;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2096;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2097;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2098;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2099;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2100;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2101;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2102;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2103;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2104;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2105;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2106;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2107;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2108;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2109;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2110;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2111;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2112;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2113;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2114;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2115;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2116;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2117;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2118;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2119;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2120;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2121;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2122;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2123;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2124;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2125;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2126;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2127;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2128;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2129;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2130;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2131;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2132;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2133;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2134;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2135;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2136;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2137;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2138;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2139;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2140;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2141;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2142;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2143;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2144;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2145;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2146;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2147;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2148;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2149;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2150;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2151;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2152;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2153;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2154;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2155;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2156;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2157;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2158;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2159;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2160;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2161;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2162;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2163;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2164;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2165;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2166;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2167;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2168;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2169;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2170;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2171;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2172;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2173;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2174;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2175;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2176;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2177;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2178;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2179;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2180;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2181;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2182;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2183;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2184;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2185;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2186;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2187;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2188;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2189;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2190;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2191;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2192;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2193;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2194;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2195;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2196;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2197;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2198;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2199;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2200;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2201;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2202;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2203;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2204;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2205;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2206;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2207;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2208;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2209;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2210;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2211;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2212;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2213;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2214;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2215;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2216;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2217;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2218;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2219;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2220;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2221;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2222;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2223;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2224;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2225;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2226;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2227;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2228;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2229;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2230;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2231;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2232;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2233;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2234;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2235;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2236;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2237;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2238;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2239;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2240;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2241;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2242;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2243;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2244;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2245;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2246;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2247;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2248;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2249;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2250;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2251;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2252;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2253;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2254;
extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize2255;
extern const Il2CppTypeDefinitionSizes* g_Il2CppTypeDefinitionSizesTable[2256] =
{
(&g_typeDefinitionSize0),
(&g_typeDefinitionSize1),
(&g_typeDefinitionSize2),
(&g_typeDefinitionSize3),
(&g_typeDefinitionSize4),
(&g_typeDefinitionSize5),
(&g_typeDefinitionSize6),
(&g_typeDefinitionSize7),
(&g_typeDefinitionSize8),
(&g_typeDefinitionSize9),
(&g_typeDefinitionSize10),
(&g_typeDefinitionSize11),
(&g_typeDefinitionSize12),
(&g_typeDefinitionSize13),
(&g_typeDefinitionSize14),
(&g_typeDefinitionSize15),
(&g_typeDefinitionSize16),
(&g_typeDefinitionSize17),
(&g_typeDefinitionSize18),
(&g_typeDefinitionSize19),
(&g_typeDefinitionSize20),
(&g_typeDefinitionSize21),
(&g_typeDefinitionSize22),
(&g_typeDefinitionSize23),
(&g_typeDefinitionSize24),
(&g_typeDefinitionSize25),
(&g_typeDefinitionSize26),
(&g_typeDefinitionSize27),
(&g_typeDefinitionSize28),
(&g_typeDefinitionSize29),
(&g_typeDefinitionSize30),
(&g_typeDefinitionSize31),
(&g_typeDefinitionSize32),
(&g_typeDefinitionSize33),
(&g_typeDefinitionSize34),
(&g_typeDefinitionSize35),
(&g_typeDefinitionSize36),
(&g_typeDefinitionSize37),
(&g_typeDefinitionSize38),
(&g_typeDefinitionSize39),
(&g_typeDefinitionSize40),
(&g_typeDefinitionSize41),
(&g_typeDefinitionSize42),
(&g_typeDefinitionSize43),
(&g_typeDefinitionSize44),
(&g_typeDefinitionSize45),
(&g_typeDefinitionSize46),
(&g_typeDefinitionSize47),
(&g_typeDefinitionSize48),
(&g_typeDefinitionSize49),
(&g_typeDefinitionSize50),
(&g_typeDefinitionSize51),
(&g_typeDefinitionSize52),
(&g_typeDefinitionSize53),
(&g_typeDefinitionSize54),
(&g_typeDefinitionSize55),
(&g_typeDefinitionSize56),
(&g_typeDefinitionSize57),
(&g_typeDefinitionSize58),
(&g_typeDefinitionSize59),
(&g_typeDefinitionSize60),
(&g_typeDefinitionSize61),
(&g_typeDefinitionSize62),
(&g_typeDefinitionSize63),
(&g_typeDefinitionSize64),
(&g_typeDefinitionSize65),
(&g_typeDefinitionSize66),
(&g_typeDefinitionSize67),
(&g_typeDefinitionSize68),
(&g_typeDefinitionSize69),
(&g_typeDefinitionSize70),
(&g_typeDefinitionSize71),
(&g_typeDefinitionSize72),
(&g_typeDefinitionSize73),
(&g_typeDefinitionSize74),
(&g_typeDefinitionSize75),
(&g_typeDefinitionSize76),
(&g_typeDefinitionSize77),
(&g_typeDefinitionSize78),
(&g_typeDefinitionSize79),
(&g_typeDefinitionSize80),
(&g_typeDefinitionSize81),
(&g_typeDefinitionSize82),
(&g_typeDefinitionSize83),
(&g_typeDefinitionSize84),
(&g_typeDefinitionSize85),
(&g_typeDefinitionSize86),
(&g_typeDefinitionSize87),
(&g_typeDefinitionSize88),
(&g_typeDefinitionSize89),
(&g_typeDefinitionSize90),
(&g_typeDefinitionSize91),
(&g_typeDefinitionSize92),
(&g_typeDefinitionSize93),
(&g_typeDefinitionSize94),
(&g_typeDefinitionSize95),
(&g_typeDefinitionSize96),
(&g_typeDefinitionSize97),
(&g_typeDefinitionSize98),
(&g_typeDefinitionSize99),
(&g_typeDefinitionSize100),
(&g_typeDefinitionSize101),
(&g_typeDefinitionSize102),
(&g_typeDefinitionSize103),
(&g_typeDefinitionSize104),
(&g_typeDefinitionSize105),
(&g_typeDefinitionSize106),
(&g_typeDefinitionSize107),
(&g_typeDefinitionSize108),
(&g_typeDefinitionSize109),
(&g_typeDefinitionSize110),
(&g_typeDefinitionSize111),
(&g_typeDefinitionSize112),
(&g_typeDefinitionSize113),
(&g_typeDefinitionSize114),
(&g_typeDefinitionSize115),
(&g_typeDefinitionSize116),
(&g_typeDefinitionSize117),
(&g_typeDefinitionSize118),
(&g_typeDefinitionSize119),
(&g_typeDefinitionSize120),
(&g_typeDefinitionSize121),
(&g_typeDefinitionSize122),
(&g_typeDefinitionSize123),
(&g_typeDefinitionSize124),
(&g_typeDefinitionSize125),
(&g_typeDefinitionSize126),
(&g_typeDefinitionSize127),
(&g_typeDefinitionSize128),
(&g_typeDefinitionSize129),
(&g_typeDefinitionSize130),
(&g_typeDefinitionSize131),
(&g_typeDefinitionSize132),
(&g_typeDefinitionSize133),
(&g_typeDefinitionSize134),
(&g_typeDefinitionSize135),
(&g_typeDefinitionSize136),
(&g_typeDefinitionSize137),
(&g_typeDefinitionSize138),
(&g_typeDefinitionSize139),
(&g_typeDefinitionSize140),
(&g_typeDefinitionSize141),
(&g_typeDefinitionSize142),
(&g_typeDefinitionSize143),
(&g_typeDefinitionSize144),
(&g_typeDefinitionSize145),
(&g_typeDefinitionSize146),
(&g_typeDefinitionSize147),
(&g_typeDefinitionSize148),
(&g_typeDefinitionSize149),
(&g_typeDefinitionSize150),
(&g_typeDefinitionSize151),
(&g_typeDefinitionSize152),
(&g_typeDefinitionSize153),
(&g_typeDefinitionSize154),
(&g_typeDefinitionSize155),
(&g_typeDefinitionSize156),
(&g_typeDefinitionSize157),
(&g_typeDefinitionSize158),
(&g_typeDefinitionSize159),
(&g_typeDefinitionSize160),
(&g_typeDefinitionSize161),
(&g_typeDefinitionSize162),
(&g_typeDefinitionSize163),
(&g_typeDefinitionSize164),
(&g_typeDefinitionSize165),
(&g_typeDefinitionSize166),
(&g_typeDefinitionSize167),
(&g_typeDefinitionSize168),
(&g_typeDefinitionSize169),
(&g_typeDefinitionSize170),
(&g_typeDefinitionSize171),
(&g_typeDefinitionSize172),
(&g_typeDefinitionSize173),
(&g_typeDefinitionSize174),
(&g_typeDefinitionSize175),
(&g_typeDefinitionSize176),
(&g_typeDefinitionSize177),
(&g_typeDefinitionSize178),
(&g_typeDefinitionSize179),
(&g_typeDefinitionSize180),
(&g_typeDefinitionSize181),
(&g_typeDefinitionSize182),
(&g_typeDefinitionSize183),
(&g_typeDefinitionSize184),
(&g_typeDefinitionSize185),
(&g_typeDefinitionSize186),
(&g_typeDefinitionSize187),
(&g_typeDefinitionSize188),
(&g_typeDefinitionSize189),
(&g_typeDefinitionSize190),
(&g_typeDefinitionSize191),
(&g_typeDefinitionSize192),
(&g_typeDefinitionSize193),
(&g_typeDefinitionSize194),
(&g_typeDefinitionSize195),
(&g_typeDefinitionSize196),
(&g_typeDefinitionSize197),
(&g_typeDefinitionSize198),
(&g_typeDefinitionSize199),
(&g_typeDefinitionSize200),
(&g_typeDefinitionSize201),
(&g_typeDefinitionSize202),
(&g_typeDefinitionSize203),
(&g_typeDefinitionSize204),
(&g_typeDefinitionSize205),
(&g_typeDefinitionSize206),
(&g_typeDefinitionSize207),
(&g_typeDefinitionSize208),
(&g_typeDefinitionSize209),
(&g_typeDefinitionSize210),
(&g_typeDefinitionSize211),
(&g_typeDefinitionSize212),
(&g_typeDefinitionSize213),
(&g_typeDefinitionSize214),
(&g_typeDefinitionSize215),
(&g_typeDefinitionSize216),
(&g_typeDefinitionSize217),
(&g_typeDefinitionSize218),
(&g_typeDefinitionSize219),
(&g_typeDefinitionSize220),
(&g_typeDefinitionSize221),
(&g_typeDefinitionSize222),
(&g_typeDefinitionSize223),
(&g_typeDefinitionSize224),
(&g_typeDefinitionSize225),
(&g_typeDefinitionSize226),
(&g_typeDefinitionSize227),
(&g_typeDefinitionSize228),
(&g_typeDefinitionSize229),
(&g_typeDefinitionSize230),
(&g_typeDefinitionSize231),
(&g_typeDefinitionSize232),
(&g_typeDefinitionSize233),
(&g_typeDefinitionSize234),
(&g_typeDefinitionSize235),
(&g_typeDefinitionSize236),
(&g_typeDefinitionSize237),
(&g_typeDefinitionSize238),
(&g_typeDefinitionSize239),
(&g_typeDefinitionSize240),
(&g_typeDefinitionSize241),
(&g_typeDefinitionSize242),
(&g_typeDefinitionSize243),
(&g_typeDefinitionSize244),
(&g_typeDefinitionSize245),
(&g_typeDefinitionSize246),
(&g_typeDefinitionSize247),
(&g_typeDefinitionSize248),
(&g_typeDefinitionSize249),
(&g_typeDefinitionSize250),
(&g_typeDefinitionSize251),
(&g_typeDefinitionSize252),
(&g_typeDefinitionSize253),
(&g_typeDefinitionSize254),
(&g_typeDefinitionSize255),
(&g_typeDefinitionSize256),
(&g_typeDefinitionSize257),
(&g_typeDefinitionSize258),
(&g_typeDefinitionSize259),
(&g_typeDefinitionSize260),
(&g_typeDefinitionSize261),
(&g_typeDefinitionSize262),
(&g_typeDefinitionSize263),
(&g_typeDefinitionSize264),
(&g_typeDefinitionSize265),
(&g_typeDefinitionSize266),
(&g_typeDefinitionSize267),
(&g_typeDefinitionSize268),
(&g_typeDefinitionSize269),
(&g_typeDefinitionSize270),
(&g_typeDefinitionSize271),
(&g_typeDefinitionSize272),
(&g_typeDefinitionSize273),
(&g_typeDefinitionSize274),
(&g_typeDefinitionSize275),
(&g_typeDefinitionSize276),
(&g_typeDefinitionSize277),
(&g_typeDefinitionSize278),
(&g_typeDefinitionSize279),
(&g_typeDefinitionSize280),
(&g_typeDefinitionSize281),
(&g_typeDefinitionSize282),
(&g_typeDefinitionSize283),
(&g_typeDefinitionSize284),
(&g_typeDefinitionSize285),
(&g_typeDefinitionSize286),
(&g_typeDefinitionSize287),
(&g_typeDefinitionSize288),
(&g_typeDefinitionSize289),
(&g_typeDefinitionSize290),
(&g_typeDefinitionSize291),
(&g_typeDefinitionSize292),
(&g_typeDefinitionSize293),
(&g_typeDefinitionSize294),
(&g_typeDefinitionSize295),
(&g_typeDefinitionSize296),
(&g_typeDefinitionSize297),
(&g_typeDefinitionSize298),
(&g_typeDefinitionSize299),
(&g_typeDefinitionSize300),
(&g_typeDefinitionSize301),
(&g_typeDefinitionSize302),
(&g_typeDefinitionSize303),
(&g_typeDefinitionSize304),
(&g_typeDefinitionSize305),
(&g_typeDefinitionSize306),
(&g_typeDefinitionSize307),
(&g_typeDefinitionSize308),
(&g_typeDefinitionSize309),
(&g_typeDefinitionSize310),
(&g_typeDefinitionSize311),
(&g_typeDefinitionSize312),
(&g_typeDefinitionSize313),
(&g_typeDefinitionSize314),
(&g_typeDefinitionSize315),
(&g_typeDefinitionSize316),
(&g_typeDefinitionSize317),
(&g_typeDefinitionSize318),
(&g_typeDefinitionSize319),
(&g_typeDefinitionSize320),
(&g_typeDefinitionSize321),
(&g_typeDefinitionSize322),
(&g_typeDefinitionSize323),
(&g_typeDefinitionSize324),
(&g_typeDefinitionSize325),
(&g_typeDefinitionSize326),
(&g_typeDefinitionSize327),
(&g_typeDefinitionSize328),
(&g_typeDefinitionSize329),
(&g_typeDefinitionSize330),
(&g_typeDefinitionSize331),
(&g_typeDefinitionSize332),
(&g_typeDefinitionSize333),
(&g_typeDefinitionSize334),
(&g_typeDefinitionSize335),
(&g_typeDefinitionSize336),
(&g_typeDefinitionSize337),
(&g_typeDefinitionSize338),
(&g_typeDefinitionSize339),
(&g_typeDefinitionSize340),
(&g_typeDefinitionSize341),
(&g_typeDefinitionSize342),
(&g_typeDefinitionSize343),
(&g_typeDefinitionSize344),
(&g_typeDefinitionSize345),
(&g_typeDefinitionSize346),
(&g_typeDefinitionSize347),
(&g_typeDefinitionSize348),
(&g_typeDefinitionSize349),
(&g_typeDefinitionSize350),
(&g_typeDefinitionSize351),
(&g_typeDefinitionSize352),
(&g_typeDefinitionSize353),
(&g_typeDefinitionSize354),
(&g_typeDefinitionSize355),
(&g_typeDefinitionSize356),
(&g_typeDefinitionSize357),
(&g_typeDefinitionSize358),
(&g_typeDefinitionSize359),
(&g_typeDefinitionSize360),
(&g_typeDefinitionSize361),
(&g_typeDefinitionSize362),
(&g_typeDefinitionSize363),
(&g_typeDefinitionSize364),
(&g_typeDefinitionSize365),
(&g_typeDefinitionSize366),
(&g_typeDefinitionSize367),
(&g_typeDefinitionSize368),
(&g_typeDefinitionSize369),
(&g_typeDefinitionSize370),
(&g_typeDefinitionSize371),
(&g_typeDefinitionSize372),
(&g_typeDefinitionSize373),
(&g_typeDefinitionSize374),
(&g_typeDefinitionSize375),
(&g_typeDefinitionSize376),
(&g_typeDefinitionSize377),
(&g_typeDefinitionSize378),
(&g_typeDefinitionSize379),
(&g_typeDefinitionSize380),
(&g_typeDefinitionSize381),
(&g_typeDefinitionSize382),
(&g_typeDefinitionSize383),
(&g_typeDefinitionSize384),
(&g_typeDefinitionSize385),
(&g_typeDefinitionSize386),
(&g_typeDefinitionSize387),
(&g_typeDefinitionSize388),
(&g_typeDefinitionSize389),
(&g_typeDefinitionSize390),
(&g_typeDefinitionSize391),
(&g_typeDefinitionSize392),
(&g_typeDefinitionSize393),
(&g_typeDefinitionSize394),
(&g_typeDefinitionSize395),
(&g_typeDefinitionSize396),
(&g_typeDefinitionSize397),
(&g_typeDefinitionSize398),
(&g_typeDefinitionSize399),
(&g_typeDefinitionSize400),
(&g_typeDefinitionSize401),
(&g_typeDefinitionSize402),
(&g_typeDefinitionSize403),
(&g_typeDefinitionSize404),
(&g_typeDefinitionSize405),
(&g_typeDefinitionSize406),
(&g_typeDefinitionSize407),
(&g_typeDefinitionSize408),
(&g_typeDefinitionSize409),
(&g_typeDefinitionSize410),
(&g_typeDefinitionSize411),
(&g_typeDefinitionSize412),
(&g_typeDefinitionSize413),
(&g_typeDefinitionSize414),
(&g_typeDefinitionSize415),
(&g_typeDefinitionSize416),
(&g_typeDefinitionSize417),
(&g_typeDefinitionSize418),
(&g_typeDefinitionSize419),
(&g_typeDefinitionSize420),
(&g_typeDefinitionSize421),
(&g_typeDefinitionSize422),
(&g_typeDefinitionSize423),
(&g_typeDefinitionSize424),
(&g_typeDefinitionSize425),
(&g_typeDefinitionSize426),
(&g_typeDefinitionSize427),
(&g_typeDefinitionSize428),
(&g_typeDefinitionSize429),
(&g_typeDefinitionSize430),
(&g_typeDefinitionSize431),
(&g_typeDefinitionSize432),
(&g_typeDefinitionSize433),
(&g_typeDefinitionSize434),
(&g_typeDefinitionSize435),
(&g_typeDefinitionSize436),
(&g_typeDefinitionSize437),
(&g_typeDefinitionSize438),
(&g_typeDefinitionSize439),
(&g_typeDefinitionSize440),
(&g_typeDefinitionSize441),
(&g_typeDefinitionSize442),
(&g_typeDefinitionSize443),
(&g_typeDefinitionSize444),
(&g_typeDefinitionSize445),
(&g_typeDefinitionSize446),
(&g_typeDefinitionSize447),
(&g_typeDefinitionSize448),
(&g_typeDefinitionSize449),
(&g_typeDefinitionSize450),
(&g_typeDefinitionSize451),
(&g_typeDefinitionSize452),
(&g_typeDefinitionSize453),
(&g_typeDefinitionSize454),
(&g_typeDefinitionSize455),
(&g_typeDefinitionSize456),
(&g_typeDefinitionSize457),
(&g_typeDefinitionSize458),
(&g_typeDefinitionSize459),
(&g_typeDefinitionSize460),
(&g_typeDefinitionSize461),
(&g_typeDefinitionSize462),
(&g_typeDefinitionSize463),
(&g_typeDefinitionSize464),
(&g_typeDefinitionSize465),
(&g_typeDefinitionSize466),
(&g_typeDefinitionSize467),
(&g_typeDefinitionSize468),
(&g_typeDefinitionSize469),
(&g_typeDefinitionSize470),
(&g_typeDefinitionSize471),
(&g_typeDefinitionSize472),
(&g_typeDefinitionSize473),
(&g_typeDefinitionSize474),
(&g_typeDefinitionSize475),
(&g_typeDefinitionSize476),
(&g_typeDefinitionSize477),
(&g_typeDefinitionSize478),
(&g_typeDefinitionSize479),
(&g_typeDefinitionSize480),
(&g_typeDefinitionSize481),
(&g_typeDefinitionSize482),
(&g_typeDefinitionSize483),
(&g_typeDefinitionSize484),
(&g_typeDefinitionSize485),
(&g_typeDefinitionSize486),
(&g_typeDefinitionSize487),
(&g_typeDefinitionSize488),
(&g_typeDefinitionSize489),
(&g_typeDefinitionSize490),
(&g_typeDefinitionSize491),
(&g_typeDefinitionSize492),
(&g_typeDefinitionSize493),
(&g_typeDefinitionSize494),
(&g_typeDefinitionSize495),
(&g_typeDefinitionSize496),
(&g_typeDefinitionSize497),
(&g_typeDefinitionSize498),
(&g_typeDefinitionSize499),
(&g_typeDefinitionSize500),
(&g_typeDefinitionSize501),
(&g_typeDefinitionSize502),
(&g_typeDefinitionSize503),
(&g_typeDefinitionSize504),
(&g_typeDefinitionSize505),
(&g_typeDefinitionSize506),
(&g_typeDefinitionSize507),
(&g_typeDefinitionSize508),
(&g_typeDefinitionSize509),
(&g_typeDefinitionSize510),
(&g_typeDefinitionSize511),
(&g_typeDefinitionSize512),
(&g_typeDefinitionSize513),
(&g_typeDefinitionSize514),
(&g_typeDefinitionSize515),
(&g_typeDefinitionSize516),
(&g_typeDefinitionSize517),
(&g_typeDefinitionSize518),
(&g_typeDefinitionSize519),
(&g_typeDefinitionSize520),
(&g_typeDefinitionSize521),
(&g_typeDefinitionSize522),
(&g_typeDefinitionSize523),
(&g_typeDefinitionSize524),
(&g_typeDefinitionSize525),
(&g_typeDefinitionSize526),
(&g_typeDefinitionSize527),
(&g_typeDefinitionSize528),
(&g_typeDefinitionSize529),
(&g_typeDefinitionSize530),
(&g_typeDefinitionSize531),
(&g_typeDefinitionSize532),
(&g_typeDefinitionSize533),
(&g_typeDefinitionSize534),
(&g_typeDefinitionSize535),
(&g_typeDefinitionSize536),
(&g_typeDefinitionSize537),
(&g_typeDefinitionSize538),
(&g_typeDefinitionSize539),
(&g_typeDefinitionSize540),
(&g_typeDefinitionSize541),
(&g_typeDefinitionSize542),
(&g_typeDefinitionSize543),
(&g_typeDefinitionSize544),
(&g_typeDefinitionSize545),
(&g_typeDefinitionSize546),
(&g_typeDefinitionSize547),
(&g_typeDefinitionSize548),
(&g_typeDefinitionSize549),
(&g_typeDefinitionSize550),
(&g_typeDefinitionSize551),
(&g_typeDefinitionSize552),
(&g_typeDefinitionSize553),
(&g_typeDefinitionSize554),
(&g_typeDefinitionSize555),
(&g_typeDefinitionSize556),
(&g_typeDefinitionSize557),
(&g_typeDefinitionSize558),
(&g_typeDefinitionSize559),
(&g_typeDefinitionSize560),
(&g_typeDefinitionSize561),
(&g_typeDefinitionSize562),
(&g_typeDefinitionSize563),
(&g_typeDefinitionSize564),
(&g_typeDefinitionSize565),
(&g_typeDefinitionSize566),
(&g_typeDefinitionSize567),
(&g_typeDefinitionSize568),
(&g_typeDefinitionSize569),
(&g_typeDefinitionSize570),
(&g_typeDefinitionSize571),
(&g_typeDefinitionSize572),
(&g_typeDefinitionSize573),
(&g_typeDefinitionSize574),
(&g_typeDefinitionSize575),
(&g_typeDefinitionSize576),
(&g_typeDefinitionSize577),
(&g_typeDefinitionSize578),
(&g_typeDefinitionSize579),
(&g_typeDefinitionSize580),
(&g_typeDefinitionSize581),
(&g_typeDefinitionSize582),
(&g_typeDefinitionSize583),
(&g_typeDefinitionSize584),
(&g_typeDefinitionSize585),
(&g_typeDefinitionSize586),
(&g_typeDefinitionSize587),
(&g_typeDefinitionSize588),
(&g_typeDefinitionSize589),
(&g_typeDefinitionSize590),
(&g_typeDefinitionSize591),
(&g_typeDefinitionSize592),
(&g_typeDefinitionSize593),
(&g_typeDefinitionSize594),
(&g_typeDefinitionSize595),
(&g_typeDefinitionSize596),
(&g_typeDefinitionSize597),
(&g_typeDefinitionSize598),
(&g_typeDefinitionSize599),
(&g_typeDefinitionSize600),
(&g_typeDefinitionSize601),
(&g_typeDefinitionSize602),
(&g_typeDefinitionSize603),
(&g_typeDefinitionSize604),
(&g_typeDefinitionSize605),
(&g_typeDefinitionSize606),
(&g_typeDefinitionSize607),
(&g_typeDefinitionSize608),
(&g_typeDefinitionSize609),
(&g_typeDefinitionSize610),
(&g_typeDefinitionSize611),
(&g_typeDefinitionSize612),
(&g_typeDefinitionSize613),
(&g_typeDefinitionSize614),
(&g_typeDefinitionSize615),
(&g_typeDefinitionSize616),
(&g_typeDefinitionSize617),
(&g_typeDefinitionSize618),
(&g_typeDefinitionSize619),
(&g_typeDefinitionSize620),
(&g_typeDefinitionSize621),
(&g_typeDefinitionSize622),
(&g_typeDefinitionSize623),
(&g_typeDefinitionSize624),
(&g_typeDefinitionSize625),
(&g_typeDefinitionSize626),
(&g_typeDefinitionSize627),
(&g_typeDefinitionSize628),
(&g_typeDefinitionSize629),
(&g_typeDefinitionSize630),
(&g_typeDefinitionSize631),
(&g_typeDefinitionSize632),
(&g_typeDefinitionSize633),
(&g_typeDefinitionSize634),
(&g_typeDefinitionSize635),
(&g_typeDefinitionSize636),
(&g_typeDefinitionSize637),
(&g_typeDefinitionSize638),
(&g_typeDefinitionSize639),
(&g_typeDefinitionSize640),
(&g_typeDefinitionSize641),
(&g_typeDefinitionSize642),
(&g_typeDefinitionSize643),
(&g_typeDefinitionSize644),
(&g_typeDefinitionSize645),
(&g_typeDefinitionSize646),
(&g_typeDefinitionSize647),
(&g_typeDefinitionSize648),
(&g_typeDefinitionSize649),
(&g_typeDefinitionSize650),
(&g_typeDefinitionSize651),
(&g_typeDefinitionSize652),
(&g_typeDefinitionSize653),
(&g_typeDefinitionSize654),
(&g_typeDefinitionSize655),
(&g_typeDefinitionSize656),
(&g_typeDefinitionSize657),
(&g_typeDefinitionSize658),
(&g_typeDefinitionSize659),
(&g_typeDefinitionSize660),
(&g_typeDefinitionSize661),
(&g_typeDefinitionSize662),
(&g_typeDefinitionSize663),
(&g_typeDefinitionSize664),
(&g_typeDefinitionSize665),
(&g_typeDefinitionSize666),
(&g_typeDefinitionSize667),
(&g_typeDefinitionSize668),
(&g_typeDefinitionSize669),
(&g_typeDefinitionSize670),
(&g_typeDefinitionSize671),
(&g_typeDefinitionSize672),
(&g_typeDefinitionSize673),
(&g_typeDefinitionSize674),
(&g_typeDefinitionSize675),
(&g_typeDefinitionSize676),
(&g_typeDefinitionSize677),
(&g_typeDefinitionSize678),
(&g_typeDefinitionSize679),
(&g_typeDefinitionSize680),
(&g_typeDefinitionSize681),
(&g_typeDefinitionSize682),
(&g_typeDefinitionSize683),
(&g_typeDefinitionSize684),
(&g_typeDefinitionSize685),
(&g_typeDefinitionSize686),
(&g_typeDefinitionSize687),
(&g_typeDefinitionSize688),
(&g_typeDefinitionSize689),
(&g_typeDefinitionSize690),
(&g_typeDefinitionSize691),
(&g_typeDefinitionSize692),
(&g_typeDefinitionSize693),
(&g_typeDefinitionSize694),
(&g_typeDefinitionSize695),
(&g_typeDefinitionSize696),
(&g_typeDefinitionSize697),
(&g_typeDefinitionSize698),
(&g_typeDefinitionSize699),
(&g_typeDefinitionSize700),
(&g_typeDefinitionSize701),
(&g_typeDefinitionSize702),
(&g_typeDefinitionSize703),
(&g_typeDefinitionSize704),
(&g_typeDefinitionSize705),
(&g_typeDefinitionSize706),
(&g_typeDefinitionSize707),
(&g_typeDefinitionSize708),
(&g_typeDefinitionSize709),
(&g_typeDefinitionSize710),
(&g_typeDefinitionSize711),
(&g_typeDefinitionSize712),
(&g_typeDefinitionSize713),
(&g_typeDefinitionSize714),
(&g_typeDefinitionSize715),
(&g_typeDefinitionSize716),
(&g_typeDefinitionSize717),
(&g_typeDefinitionSize718),
(&g_typeDefinitionSize719),
(&g_typeDefinitionSize720),
(&g_typeDefinitionSize721),
(&g_typeDefinitionSize722),
(&g_typeDefinitionSize723),
(&g_typeDefinitionSize724),
(&g_typeDefinitionSize725),
(&g_typeDefinitionSize726),
(&g_typeDefinitionSize727),
(&g_typeDefinitionSize728),
(&g_typeDefinitionSize729),
(&g_typeDefinitionSize730),
(&g_typeDefinitionSize731),
(&g_typeDefinitionSize732),
(&g_typeDefinitionSize733),
(&g_typeDefinitionSize734),
(&g_typeDefinitionSize735),
(&g_typeDefinitionSize736),
(&g_typeDefinitionSize737),
(&g_typeDefinitionSize738),
(&g_typeDefinitionSize739),
(&g_typeDefinitionSize740),
(&g_typeDefinitionSize741),
(&g_typeDefinitionSize742),
(&g_typeDefinitionSize743),
(&g_typeDefinitionSize744),
(&g_typeDefinitionSize745),
(&g_typeDefinitionSize746),
(&g_typeDefinitionSize747),
(&g_typeDefinitionSize748),
(&g_typeDefinitionSize749),
(&g_typeDefinitionSize750),
(&g_typeDefinitionSize751),
(&g_typeDefinitionSize752),
(&g_typeDefinitionSize753),
(&g_typeDefinitionSize754),
(&g_typeDefinitionSize755),
(&g_typeDefinitionSize756),
(&g_typeDefinitionSize757),
(&g_typeDefinitionSize758),
(&g_typeDefinitionSize759),
(&g_typeDefinitionSize760),
(&g_typeDefinitionSize761),
(&g_typeDefinitionSize762),
(&g_typeDefinitionSize763),
(&g_typeDefinitionSize764),
(&g_typeDefinitionSize765),
(&g_typeDefinitionSize766),
(&g_typeDefinitionSize767),
(&g_typeDefinitionSize768),
(&g_typeDefinitionSize769),
(&g_typeDefinitionSize770),
(&g_typeDefinitionSize771),
(&g_typeDefinitionSize772),
(&g_typeDefinitionSize773),
(&g_typeDefinitionSize774),
(&g_typeDefinitionSize775),
(&g_typeDefinitionSize776),
(&g_typeDefinitionSize777),
(&g_typeDefinitionSize778),
(&g_typeDefinitionSize779),
(&g_typeDefinitionSize780),
(&g_typeDefinitionSize781),
(&g_typeDefinitionSize782),
(&g_typeDefinitionSize783),
(&g_typeDefinitionSize784),
(&g_typeDefinitionSize785),
(&g_typeDefinitionSize786),
(&g_typeDefinitionSize787),
(&g_typeDefinitionSize788),
(&g_typeDefinitionSize789),
(&g_typeDefinitionSize790),
(&g_typeDefinitionSize791),
(&g_typeDefinitionSize792),
(&g_typeDefinitionSize793),
(&g_typeDefinitionSize794),
(&g_typeDefinitionSize795),
(&g_typeDefinitionSize796),
(&g_typeDefinitionSize797),
(&g_typeDefinitionSize798),
(&g_typeDefinitionSize799),
(&g_typeDefinitionSize800),
(&g_typeDefinitionSize801),
(&g_typeDefinitionSize802),
(&g_typeDefinitionSize803),
(&g_typeDefinitionSize804),
(&g_typeDefinitionSize805),
(&g_typeDefinitionSize806),
(&g_typeDefinitionSize807),
(&g_typeDefinitionSize808),
(&g_typeDefinitionSize809),
(&g_typeDefinitionSize810),
(&g_typeDefinitionSize811),
(&g_typeDefinitionSize812),
(&g_typeDefinitionSize813),
(&g_typeDefinitionSize814),
(&g_typeDefinitionSize815),
(&g_typeDefinitionSize816),
(&g_typeDefinitionSize817),
(&g_typeDefinitionSize818),
(&g_typeDefinitionSize819),
(&g_typeDefinitionSize820),
(&g_typeDefinitionSize821),
(&g_typeDefinitionSize822),
(&g_typeDefinitionSize823),
(&g_typeDefinitionSize824),
(&g_typeDefinitionSize825),
(&g_typeDefinitionSize826),
(&g_typeDefinitionSize827),
(&g_typeDefinitionSize828),
(&g_typeDefinitionSize829),
(&g_typeDefinitionSize830),
(&g_typeDefinitionSize831),
(&g_typeDefinitionSize832),
(&g_typeDefinitionSize833),
(&g_typeDefinitionSize834),
(&g_typeDefinitionSize835),
(&g_typeDefinitionSize836),
(&g_typeDefinitionSize837),
(&g_typeDefinitionSize838),
(&g_typeDefinitionSize839),
(&g_typeDefinitionSize840),
(&g_typeDefinitionSize841),
(&g_typeDefinitionSize842),
(&g_typeDefinitionSize843),
(&g_typeDefinitionSize844),
(&g_typeDefinitionSize845),
(&g_typeDefinitionSize846),
(&g_typeDefinitionSize847),
(&g_typeDefinitionSize848),
(&g_typeDefinitionSize849),
(&g_typeDefinitionSize850),
(&g_typeDefinitionSize851),
(&g_typeDefinitionSize852),
(&g_typeDefinitionSize853),
(&g_typeDefinitionSize854),
(&g_typeDefinitionSize855),
(&g_typeDefinitionSize856),
(&g_typeDefinitionSize857),
(&g_typeDefinitionSize858),
(&g_typeDefinitionSize859),
(&g_typeDefinitionSize860),
(&g_typeDefinitionSize861),
(&g_typeDefinitionSize862),
(&g_typeDefinitionSize863),
(&g_typeDefinitionSize864),
(&g_typeDefinitionSize865),
(&g_typeDefinitionSize866),
(&g_typeDefinitionSize867),
(&g_typeDefinitionSize868),
(&g_typeDefinitionSize869),
(&g_typeDefinitionSize870),
(&g_typeDefinitionSize871),
(&g_typeDefinitionSize872),
(&g_typeDefinitionSize873),
(&g_typeDefinitionSize874),
(&g_typeDefinitionSize875),
(&g_typeDefinitionSize876),
(&g_typeDefinitionSize877),
(&g_typeDefinitionSize878),
(&g_typeDefinitionSize879),
(&g_typeDefinitionSize880),
(&g_typeDefinitionSize881),
(&g_typeDefinitionSize882),
(&g_typeDefinitionSize883),
(&g_typeDefinitionSize884),
(&g_typeDefinitionSize885),
(&g_typeDefinitionSize886),
(&g_typeDefinitionSize887),
(&g_typeDefinitionSize888),
(&g_typeDefinitionSize889),
(&g_typeDefinitionSize890),
(&g_typeDefinitionSize891),
(&g_typeDefinitionSize892),
(&g_typeDefinitionSize893),
(&g_typeDefinitionSize894),
(&g_typeDefinitionSize895),
(&g_typeDefinitionSize896),
(&g_typeDefinitionSize897),
(&g_typeDefinitionSize898),
(&g_typeDefinitionSize899),
(&g_typeDefinitionSize900),
(&g_typeDefinitionSize901),
(&g_typeDefinitionSize902),
(&g_typeDefinitionSize903),
(&g_typeDefinitionSize904),
(&g_typeDefinitionSize905),
(&g_typeDefinitionSize906),
(&g_typeDefinitionSize907),
(&g_typeDefinitionSize908),
(&g_typeDefinitionSize909),
(&g_typeDefinitionSize910),
(&g_typeDefinitionSize911),
(&g_typeDefinitionSize912),
(&g_typeDefinitionSize913),
(&g_typeDefinitionSize914),
(&g_typeDefinitionSize915),
(&g_typeDefinitionSize916),
(&g_typeDefinitionSize917),
(&g_typeDefinitionSize918),
(&g_typeDefinitionSize919),
(&g_typeDefinitionSize920),
(&g_typeDefinitionSize921),
(&g_typeDefinitionSize922),
(&g_typeDefinitionSize923),
(&g_typeDefinitionSize924),
(&g_typeDefinitionSize925),
(&g_typeDefinitionSize926),
(&g_typeDefinitionSize927),
(&g_typeDefinitionSize928),
(&g_typeDefinitionSize929),
(&g_typeDefinitionSize930),
(&g_typeDefinitionSize931),
(&g_typeDefinitionSize932),
(&g_typeDefinitionSize933),
(&g_typeDefinitionSize934),
(&g_typeDefinitionSize935),
(&g_typeDefinitionSize936),
(&g_typeDefinitionSize937),
(&g_typeDefinitionSize938),
(&g_typeDefinitionSize939),
(&g_typeDefinitionSize940),
(&g_typeDefinitionSize941),
(&g_typeDefinitionSize942),
(&g_typeDefinitionSize943),
(&g_typeDefinitionSize944),
(&g_typeDefinitionSize945),
(&g_typeDefinitionSize946),
(&g_typeDefinitionSize947),
(&g_typeDefinitionSize948),
(&g_typeDefinitionSize949),
(&g_typeDefinitionSize950),
(&g_typeDefinitionSize951),
(&g_typeDefinitionSize952),
(&g_typeDefinitionSize953),
(&g_typeDefinitionSize954),
(&g_typeDefinitionSize955),
(&g_typeDefinitionSize956),
(&g_typeDefinitionSize957),
(&g_typeDefinitionSize958),
(&g_typeDefinitionSize959),
(&g_typeDefinitionSize960),
(&g_typeDefinitionSize961),
(&g_typeDefinitionSize962),
(&g_typeDefinitionSize963),
(&g_typeDefinitionSize964),
(&g_typeDefinitionSize965),
(&g_typeDefinitionSize966),
(&g_typeDefinitionSize967),
(&g_typeDefinitionSize968),
(&g_typeDefinitionSize969),
(&g_typeDefinitionSize970),
(&g_typeDefinitionSize971),
(&g_typeDefinitionSize972),
(&g_typeDefinitionSize973),
(&g_typeDefinitionSize974),
(&g_typeDefinitionSize975),
(&g_typeDefinitionSize976),
(&g_typeDefinitionSize977),
(&g_typeDefinitionSize978),
(&g_typeDefinitionSize979),
(&g_typeDefinitionSize980),
(&g_typeDefinitionSize981),
(&g_typeDefinitionSize982),
(&g_typeDefinitionSize983),
(&g_typeDefinitionSize984),
(&g_typeDefinitionSize985),
(&g_typeDefinitionSize986),
(&g_typeDefinitionSize987),
(&g_typeDefinitionSize988),
(&g_typeDefinitionSize989),
(&g_typeDefinitionSize990),
(&g_typeDefinitionSize991),
(&g_typeDefinitionSize992),
(&g_typeDefinitionSize993),
(&g_typeDefinitionSize994),
(&g_typeDefinitionSize995),
(&g_typeDefinitionSize996),
(&g_typeDefinitionSize997),
(&g_typeDefinitionSize998),
(&g_typeDefinitionSize999),
(&g_typeDefinitionSize1000),
(&g_typeDefinitionSize1001),
(&g_typeDefinitionSize1002),
(&g_typeDefinitionSize1003),
(&g_typeDefinitionSize1004),
(&g_typeDefinitionSize1005),
(&g_typeDefinitionSize1006),
(&g_typeDefinitionSize1007),
(&g_typeDefinitionSize1008),
(&g_typeDefinitionSize1009),
(&g_typeDefinitionSize1010),
(&g_typeDefinitionSize1011),
(&g_typeDefinitionSize1012),
(&g_typeDefinitionSize1013),
(&g_typeDefinitionSize1014),
(&g_typeDefinitionSize1015),
(&g_typeDefinitionSize1016),
(&g_typeDefinitionSize1017),
(&g_typeDefinitionSize1018),
(&g_typeDefinitionSize1019),
(&g_typeDefinitionSize1020),
(&g_typeDefinitionSize1021),
(&g_typeDefinitionSize1022),
(&g_typeDefinitionSize1023),
(&g_typeDefinitionSize1024),
(&g_typeDefinitionSize1025),
(&g_typeDefinitionSize1026),
(&g_typeDefinitionSize1027),
(&g_typeDefinitionSize1028),
(&g_typeDefinitionSize1029),
(&g_typeDefinitionSize1030),
(&g_typeDefinitionSize1031),
(&g_typeDefinitionSize1032),
(&g_typeDefinitionSize1033),
(&g_typeDefinitionSize1034),
(&g_typeDefinitionSize1035),
(&g_typeDefinitionSize1036),
(&g_typeDefinitionSize1037),
(&g_typeDefinitionSize1038),
(&g_typeDefinitionSize1039),
(&g_typeDefinitionSize1040),
(&g_typeDefinitionSize1041),
(&g_typeDefinitionSize1042),
(&g_typeDefinitionSize1043),
(&g_typeDefinitionSize1044),
(&g_typeDefinitionSize1045),
(&g_typeDefinitionSize1046),
(&g_typeDefinitionSize1047),
(&g_typeDefinitionSize1048),
(&g_typeDefinitionSize1049),
(&g_typeDefinitionSize1050),
(&g_typeDefinitionSize1051),
(&g_typeDefinitionSize1052),
(&g_typeDefinitionSize1053),
(&g_typeDefinitionSize1054),
(&g_typeDefinitionSize1055),
(&g_typeDefinitionSize1056),
(&g_typeDefinitionSize1057),
(&g_typeDefinitionSize1058),
(&g_typeDefinitionSize1059),
(&g_typeDefinitionSize1060),
(&g_typeDefinitionSize1061),
(&g_typeDefinitionSize1062),
(&g_typeDefinitionSize1063),
(&g_typeDefinitionSize1064),
(&g_typeDefinitionSize1065),
(&g_typeDefinitionSize1066),
(&g_typeDefinitionSize1067),
(&g_typeDefinitionSize1068),
(&g_typeDefinitionSize1069),
(&g_typeDefinitionSize1070),
(&g_typeDefinitionSize1071),
(&g_typeDefinitionSize1072),
(&g_typeDefinitionSize1073),
(&g_typeDefinitionSize1074),
(&g_typeDefinitionSize1075),
(&g_typeDefinitionSize1076),
(&g_typeDefinitionSize1077),
(&g_typeDefinitionSize1078),
(&g_typeDefinitionSize1079),
(&g_typeDefinitionSize1080),
(&g_typeDefinitionSize1081),
(&g_typeDefinitionSize1082),
(&g_typeDefinitionSize1083),
(&g_typeDefinitionSize1084),
(&g_typeDefinitionSize1085),
(&g_typeDefinitionSize1086),
(&g_typeDefinitionSize1087),
(&g_typeDefinitionSize1088),
(&g_typeDefinitionSize1089),
(&g_typeDefinitionSize1090),
(&g_typeDefinitionSize1091),
(&g_typeDefinitionSize1092),
(&g_typeDefinitionSize1093),
(&g_typeDefinitionSize1094),
(&g_typeDefinitionSize1095),
(&g_typeDefinitionSize1096),
(&g_typeDefinitionSize1097),
(&g_typeDefinitionSize1098),
(&g_typeDefinitionSize1099),
(&g_typeDefinitionSize1100),
(&g_typeDefinitionSize1101),
(&g_typeDefinitionSize1102),
(&g_typeDefinitionSize1103),
(&g_typeDefinitionSize1104),
(&g_typeDefinitionSize1105),
(&g_typeDefinitionSize1106),
(&g_typeDefinitionSize1107),
(&g_typeDefinitionSize1108),
(&g_typeDefinitionSize1109),
(&g_typeDefinitionSize1110),
(&g_typeDefinitionSize1111),
(&g_typeDefinitionSize1112),
(&g_typeDefinitionSize1113),
(&g_typeDefinitionSize1114),
(&g_typeDefinitionSize1115),
(&g_typeDefinitionSize1116),
(&g_typeDefinitionSize1117),
(&g_typeDefinitionSize1118),
(&g_typeDefinitionSize1119),
(&g_typeDefinitionSize1120),
(&g_typeDefinitionSize1121),
(&g_typeDefinitionSize1122),
(&g_typeDefinitionSize1123),
(&g_typeDefinitionSize1124),
(&g_typeDefinitionSize1125),
(&g_typeDefinitionSize1126),
(&g_typeDefinitionSize1127),
(&g_typeDefinitionSize1128),
(&g_typeDefinitionSize1129),
(&g_typeDefinitionSize1130),
(&g_typeDefinitionSize1131),
(&g_typeDefinitionSize1132),
(&g_typeDefinitionSize1133),
(&g_typeDefinitionSize1134),
(&g_typeDefinitionSize1135),
(&g_typeDefinitionSize1136),
(&g_typeDefinitionSize1137),
(&g_typeDefinitionSize1138),
(&g_typeDefinitionSize1139),
(&g_typeDefinitionSize1140),
(&g_typeDefinitionSize1141),
(&g_typeDefinitionSize1142),
(&g_typeDefinitionSize1143),
(&g_typeDefinitionSize1144),
(&g_typeDefinitionSize1145),
(&g_typeDefinitionSize1146),
(&g_typeDefinitionSize1147),
(&g_typeDefinitionSize1148),
(&g_typeDefinitionSize1149),
(&g_typeDefinitionSize1150),
(&g_typeDefinitionSize1151),
(&g_typeDefinitionSize1152),
(&g_typeDefinitionSize1153),
(&g_typeDefinitionSize1154),
(&g_typeDefinitionSize1155),
(&g_typeDefinitionSize1156),
(&g_typeDefinitionSize1157),
(&g_typeDefinitionSize1158),
(&g_typeDefinitionSize1159),
(&g_typeDefinitionSize1160),
(&g_typeDefinitionSize1161),
(&g_typeDefinitionSize1162),
(&g_typeDefinitionSize1163),
(&g_typeDefinitionSize1164),
(&g_typeDefinitionSize1165),
(&g_typeDefinitionSize1166),
(&g_typeDefinitionSize1167),
(&g_typeDefinitionSize1168),
(&g_typeDefinitionSize1169),
(&g_typeDefinitionSize1170),
(&g_typeDefinitionSize1171),
(&g_typeDefinitionSize1172),
(&g_typeDefinitionSize1173),
(&g_typeDefinitionSize1174),
(&g_typeDefinitionSize1175),
(&g_typeDefinitionSize1176),
(&g_typeDefinitionSize1177),
(&g_typeDefinitionSize1178),
(&g_typeDefinitionSize1179),
(&g_typeDefinitionSize1180),
(&g_typeDefinitionSize1181),
(&g_typeDefinitionSize1182),
(&g_typeDefinitionSize1183),
(&g_typeDefinitionSize1184),
(&g_typeDefinitionSize1185),
(&g_typeDefinitionSize1186),
(&g_typeDefinitionSize1187),
(&g_typeDefinitionSize1188),
(&g_typeDefinitionSize1189),
(&g_typeDefinitionSize1190),
(&g_typeDefinitionSize1191),
(&g_typeDefinitionSize1192),
(&g_typeDefinitionSize1193),
(&g_typeDefinitionSize1194),
(&g_typeDefinitionSize1195),
(&g_typeDefinitionSize1196),
(&g_typeDefinitionSize1197),
(&g_typeDefinitionSize1198),
(&g_typeDefinitionSize1199),
(&g_typeDefinitionSize1200),
(&g_typeDefinitionSize1201),
(&g_typeDefinitionSize1202),
(&g_typeDefinitionSize1203),
(&g_typeDefinitionSize1204),
(&g_typeDefinitionSize1205),
(&g_typeDefinitionSize1206),
(&g_typeDefinitionSize1207),
(&g_typeDefinitionSize1208),
(&g_typeDefinitionSize1209),
(&g_typeDefinitionSize1210),
(&g_typeDefinitionSize1211),
(&g_typeDefinitionSize1212),
(&g_typeDefinitionSize1213),
(&g_typeDefinitionSize1214),
(&g_typeDefinitionSize1215),
(&g_typeDefinitionSize1216),
(&g_typeDefinitionSize1217),
(&g_typeDefinitionSize1218),
(&g_typeDefinitionSize1219),
(&g_typeDefinitionSize1220),
(&g_typeDefinitionSize1221),
(&g_typeDefinitionSize1222),
(&g_typeDefinitionSize1223),
(&g_typeDefinitionSize1224),
(&g_typeDefinitionSize1225),
(&g_typeDefinitionSize1226),
(&g_typeDefinitionSize1227),
(&g_typeDefinitionSize1228),
(&g_typeDefinitionSize1229),
(&g_typeDefinitionSize1230),
(&g_typeDefinitionSize1231),
(&g_typeDefinitionSize1232),
(&g_typeDefinitionSize1233),
(&g_typeDefinitionSize1234),
(&g_typeDefinitionSize1235),
(&g_typeDefinitionSize1236),
(&g_typeDefinitionSize1237),
(&g_typeDefinitionSize1238),
(&g_typeDefinitionSize1239),
(&g_typeDefinitionSize1240),
(&g_typeDefinitionSize1241),
(&g_typeDefinitionSize1242),
(&g_typeDefinitionSize1243),
(&g_typeDefinitionSize1244),
(&g_typeDefinitionSize1245),
(&g_typeDefinitionSize1246),
(&g_typeDefinitionSize1247),
(&g_typeDefinitionSize1248),
(&g_typeDefinitionSize1249),
(&g_typeDefinitionSize1250),
(&g_typeDefinitionSize1251),
(&g_typeDefinitionSize1252),
(&g_typeDefinitionSize1253),
(&g_typeDefinitionSize1254),
(&g_typeDefinitionSize1255),
(&g_typeDefinitionSize1256),
(&g_typeDefinitionSize1257),
(&g_typeDefinitionSize1258),
(&g_typeDefinitionSize1259),
(&g_typeDefinitionSize1260),
(&g_typeDefinitionSize1261),
(&g_typeDefinitionSize1262),
(&g_typeDefinitionSize1263),
(&g_typeDefinitionSize1264),
(&g_typeDefinitionSize1265),
(&g_typeDefinitionSize1266),
(&g_typeDefinitionSize1267),
(&g_typeDefinitionSize1268),
(&g_typeDefinitionSize1269),
(&g_typeDefinitionSize1270),
(&g_typeDefinitionSize1271),
(&g_typeDefinitionSize1272),
(&g_typeDefinitionSize1273),
(&g_typeDefinitionSize1274),
(&g_typeDefinitionSize1275),
(&g_typeDefinitionSize1276),
(&g_typeDefinitionSize1277),
(&g_typeDefinitionSize1278),
(&g_typeDefinitionSize1279),
(&g_typeDefinitionSize1280),
(&g_typeDefinitionSize1281),
(&g_typeDefinitionSize1282),
(&g_typeDefinitionSize1283),
(&g_typeDefinitionSize1284),
(&g_typeDefinitionSize1285),
(&g_typeDefinitionSize1286),
(&g_typeDefinitionSize1287),
(&g_typeDefinitionSize1288),
(&g_typeDefinitionSize1289),
(&g_typeDefinitionSize1290),
(&g_typeDefinitionSize1291),
(&g_typeDefinitionSize1292),
(&g_typeDefinitionSize1293),
(&g_typeDefinitionSize1294),
(&g_typeDefinitionSize1295),
(&g_typeDefinitionSize1296),
(&g_typeDefinitionSize1297),
(&g_typeDefinitionSize1298),
(&g_typeDefinitionSize1299),
(&g_typeDefinitionSize1300),
(&g_typeDefinitionSize1301),
(&g_typeDefinitionSize1302),
(&g_typeDefinitionSize1303),
(&g_typeDefinitionSize1304),
(&g_typeDefinitionSize1305),
(&g_typeDefinitionSize1306),
(&g_typeDefinitionSize1307),
(&g_typeDefinitionSize1308),
(&g_typeDefinitionSize1309),
(&g_typeDefinitionSize1310),
(&g_typeDefinitionSize1311),
(&g_typeDefinitionSize1312),
(&g_typeDefinitionSize1313),
(&g_typeDefinitionSize1314),
(&g_typeDefinitionSize1315),
(&g_typeDefinitionSize1316),
(&g_typeDefinitionSize1317),
(&g_typeDefinitionSize1318),
(&g_typeDefinitionSize1319),
(&g_typeDefinitionSize1320),
(&g_typeDefinitionSize1321),
(&g_typeDefinitionSize1322),
(&g_typeDefinitionSize1323),
(&g_typeDefinitionSize1324),
(&g_typeDefinitionSize1325),
(&g_typeDefinitionSize1326),
(&g_typeDefinitionSize1327),
(&g_typeDefinitionSize1328),
(&g_typeDefinitionSize1329),
(&g_typeDefinitionSize1330),
(&g_typeDefinitionSize1331),
(&g_typeDefinitionSize1332),
(&g_typeDefinitionSize1333),
(&g_typeDefinitionSize1334),
(&g_typeDefinitionSize1335),
(&g_typeDefinitionSize1336),
(&g_typeDefinitionSize1337),
(&g_typeDefinitionSize1338),
(&g_typeDefinitionSize1339),
(&g_typeDefinitionSize1340),
(&g_typeDefinitionSize1341),
(&g_typeDefinitionSize1342),
(&g_typeDefinitionSize1343),
(&g_typeDefinitionSize1344),
(&g_typeDefinitionSize1345),
(&g_typeDefinitionSize1346),
(&g_typeDefinitionSize1347),
(&g_typeDefinitionSize1348),
(&g_typeDefinitionSize1349),
(&g_typeDefinitionSize1350),
(&g_typeDefinitionSize1351),
(&g_typeDefinitionSize1352),
(&g_typeDefinitionSize1353),
(&g_typeDefinitionSize1354),
(&g_typeDefinitionSize1355),
(&g_typeDefinitionSize1356),
(&g_typeDefinitionSize1357),
(&g_typeDefinitionSize1358),
(&g_typeDefinitionSize1359),
(&g_typeDefinitionSize1360),
(&g_typeDefinitionSize1361),
(&g_typeDefinitionSize1362),
(&g_typeDefinitionSize1363),
(&g_typeDefinitionSize1364),
(&g_typeDefinitionSize1365),
(&g_typeDefinitionSize1366),
(&g_typeDefinitionSize1367),
(&g_typeDefinitionSize1368),
(&g_typeDefinitionSize1369),
(&g_typeDefinitionSize1370),
(&g_typeDefinitionSize1371),
(&g_typeDefinitionSize1372),
(&g_typeDefinitionSize1373),
(&g_typeDefinitionSize1374),
(&g_typeDefinitionSize1375),
(&g_typeDefinitionSize1376),
(&g_typeDefinitionSize1377),
(&g_typeDefinitionSize1378),
(&g_typeDefinitionSize1379),
(&g_typeDefinitionSize1380),
(&g_typeDefinitionSize1381),
(&g_typeDefinitionSize1382),
(&g_typeDefinitionSize1383),
(&g_typeDefinitionSize1384),
(&g_typeDefinitionSize1385),
(&g_typeDefinitionSize1386),
(&g_typeDefinitionSize1387),
(&g_typeDefinitionSize1388),
(&g_typeDefinitionSize1389),
(&g_typeDefinitionSize1390),
(&g_typeDefinitionSize1391),
(&g_typeDefinitionSize1392),
(&g_typeDefinitionSize1393),
(&g_typeDefinitionSize1394),
(&g_typeDefinitionSize1395),
(&g_typeDefinitionSize1396),
(&g_typeDefinitionSize1397),
(&g_typeDefinitionSize1398),
(&g_typeDefinitionSize1399),
(&g_typeDefinitionSize1400),
(&g_typeDefinitionSize1401),
(&g_typeDefinitionSize1402),
(&g_typeDefinitionSize1403),
(&g_typeDefinitionSize1404),
(&g_typeDefinitionSize1405),
(&g_typeDefinitionSize1406),
(&g_typeDefinitionSize1407),
(&g_typeDefinitionSize1408),
(&g_typeDefinitionSize1409),
(&g_typeDefinitionSize1410),
(&g_typeDefinitionSize1411),
(&g_typeDefinitionSize1412),
(&g_typeDefinitionSize1413),
(&g_typeDefinitionSize1414),
(&g_typeDefinitionSize1415),
(&g_typeDefinitionSize1416),
(&g_typeDefinitionSize1417),
(&g_typeDefinitionSize1418),
(&g_typeDefinitionSize1419),
(&g_typeDefinitionSize1420),
(&g_typeDefinitionSize1421),
(&g_typeDefinitionSize1422),
(&g_typeDefinitionSize1423),
(&g_typeDefinitionSize1424),
(&g_typeDefinitionSize1425),
(&g_typeDefinitionSize1426),
(&g_typeDefinitionSize1427),
(&g_typeDefinitionSize1428),
(&g_typeDefinitionSize1429),
(&g_typeDefinitionSize1430),
(&g_typeDefinitionSize1431),
(&g_typeDefinitionSize1432),
(&g_typeDefinitionSize1433),
(&g_typeDefinitionSize1434),
(&g_typeDefinitionSize1435),
(&g_typeDefinitionSize1436),
(&g_typeDefinitionSize1437),
(&g_typeDefinitionSize1438),
(&g_typeDefinitionSize1439),
(&g_typeDefinitionSize1440),
(&g_typeDefinitionSize1441),
(&g_typeDefinitionSize1442),
(&g_typeDefinitionSize1443),
(&g_typeDefinitionSize1444),
(&g_typeDefinitionSize1445),
(&g_typeDefinitionSize1446),
(&g_typeDefinitionSize1447),
(&g_typeDefinitionSize1448),
(&g_typeDefinitionSize1449),
(&g_typeDefinitionSize1450),
(&g_typeDefinitionSize1451),
(&g_typeDefinitionSize1452),
(&g_typeDefinitionSize1453),
(&g_typeDefinitionSize1454),
(&g_typeDefinitionSize1455),
(&g_typeDefinitionSize1456),
(&g_typeDefinitionSize1457),
(&g_typeDefinitionSize1458),
(&g_typeDefinitionSize1459),
(&g_typeDefinitionSize1460),
(&g_typeDefinitionSize1461),
(&g_typeDefinitionSize1462),
(&g_typeDefinitionSize1463),
(&g_typeDefinitionSize1464),
(&g_typeDefinitionSize1465),
(&g_typeDefinitionSize1466),
(&g_typeDefinitionSize1467),
(&g_typeDefinitionSize1468),
(&g_typeDefinitionSize1469),
(&g_typeDefinitionSize1470),
(&g_typeDefinitionSize1471),
(&g_typeDefinitionSize1472),
(&g_typeDefinitionSize1473),
(&g_typeDefinitionSize1474),
(&g_typeDefinitionSize1475),
(&g_typeDefinitionSize1476),
(&g_typeDefinitionSize1477),
(&g_typeDefinitionSize1478),
(&g_typeDefinitionSize1479),
(&g_typeDefinitionSize1480),
(&g_typeDefinitionSize1481),
(&g_typeDefinitionSize1482),
(&g_typeDefinitionSize1483),
(&g_typeDefinitionSize1484),
(&g_typeDefinitionSize1485),
(&g_typeDefinitionSize1486),
(&g_typeDefinitionSize1487),
(&g_typeDefinitionSize1488),
(&g_typeDefinitionSize1489),
(&g_typeDefinitionSize1490),
(&g_typeDefinitionSize1491),
(&g_typeDefinitionSize1492),
(&g_typeDefinitionSize1493),
(&g_typeDefinitionSize1494),
(&g_typeDefinitionSize1495),
(&g_typeDefinitionSize1496),
(&g_typeDefinitionSize1497),
(&g_typeDefinitionSize1498),
(&g_typeDefinitionSize1499),
(&g_typeDefinitionSize1500),
(&g_typeDefinitionSize1501),
(&g_typeDefinitionSize1502),
(&g_typeDefinitionSize1503),
(&g_typeDefinitionSize1504),
(&g_typeDefinitionSize1505),
(&g_typeDefinitionSize1506),
(&g_typeDefinitionSize1507),
(&g_typeDefinitionSize1508),
(&g_typeDefinitionSize1509),
(&g_typeDefinitionSize1510),
(&g_typeDefinitionSize1511),
(&g_typeDefinitionSize1512),
(&g_typeDefinitionSize1513),
(&g_typeDefinitionSize1514),
(&g_typeDefinitionSize1515),
(&g_typeDefinitionSize1516),
(&g_typeDefinitionSize1517),
(&g_typeDefinitionSize1518),
(&g_typeDefinitionSize1519),
(&g_typeDefinitionSize1520),
(&g_typeDefinitionSize1521),
(&g_typeDefinitionSize1522),
(&g_typeDefinitionSize1523),
(&g_typeDefinitionSize1524),
(&g_typeDefinitionSize1525),
(&g_typeDefinitionSize1526),
(&g_typeDefinitionSize1527),
(&g_typeDefinitionSize1528),
(&g_typeDefinitionSize1529),
(&g_typeDefinitionSize1530),
(&g_typeDefinitionSize1531),
(&g_typeDefinitionSize1532),
(&g_typeDefinitionSize1533),
(&g_typeDefinitionSize1534),
(&g_typeDefinitionSize1535),
(&g_typeDefinitionSize1536),
(&g_typeDefinitionSize1537),
(&g_typeDefinitionSize1538),
(&g_typeDefinitionSize1539),
(&g_typeDefinitionSize1540),
(&g_typeDefinitionSize1541),
(&g_typeDefinitionSize1542),
(&g_typeDefinitionSize1543),
(&g_typeDefinitionSize1544),
(&g_typeDefinitionSize1545),
(&g_typeDefinitionSize1546),
(&g_typeDefinitionSize1547),
(&g_typeDefinitionSize1548),
(&g_typeDefinitionSize1549),
(&g_typeDefinitionSize1550),
(&g_typeDefinitionSize1551),
(&g_typeDefinitionSize1552),
(&g_typeDefinitionSize1553),
(&g_typeDefinitionSize1554),
(&g_typeDefinitionSize1555),
(&g_typeDefinitionSize1556),
(&g_typeDefinitionSize1557),
(&g_typeDefinitionSize1558),
(&g_typeDefinitionSize1559),
(&g_typeDefinitionSize1560),
(&g_typeDefinitionSize1561),
(&g_typeDefinitionSize1562),
(&g_typeDefinitionSize1563),
(&g_typeDefinitionSize1564),
(&g_typeDefinitionSize1565),
(&g_typeDefinitionSize1566),
(&g_typeDefinitionSize1567),
(&g_typeDefinitionSize1568),
(&g_typeDefinitionSize1569),
(&g_typeDefinitionSize1570),
(&g_typeDefinitionSize1571),
(&g_typeDefinitionSize1572),
(&g_typeDefinitionSize1573),
(&g_typeDefinitionSize1574),
(&g_typeDefinitionSize1575),
(&g_typeDefinitionSize1576),
(&g_typeDefinitionSize1577),
(&g_typeDefinitionSize1578),
(&g_typeDefinitionSize1579),
(&g_typeDefinitionSize1580),
(&g_typeDefinitionSize1581),
(&g_typeDefinitionSize1582),
(&g_typeDefinitionSize1583),
(&g_typeDefinitionSize1584),
(&g_typeDefinitionSize1585),
(&g_typeDefinitionSize1586),
(&g_typeDefinitionSize1587),
(&g_typeDefinitionSize1588),
(&g_typeDefinitionSize1589),
(&g_typeDefinitionSize1590),
(&g_typeDefinitionSize1591),
(&g_typeDefinitionSize1592),
(&g_typeDefinitionSize1593),
(&g_typeDefinitionSize1594),
(&g_typeDefinitionSize1595),
(&g_typeDefinitionSize1596),
(&g_typeDefinitionSize1597),
(&g_typeDefinitionSize1598),
(&g_typeDefinitionSize1599),
(&g_typeDefinitionSize1600),
(&g_typeDefinitionSize1601),
(&g_typeDefinitionSize1602),
(&g_typeDefinitionSize1603),
(&g_typeDefinitionSize1604),
(&g_typeDefinitionSize1605),
(&g_typeDefinitionSize1606),
(&g_typeDefinitionSize1607),
(&g_typeDefinitionSize1608),
(&g_typeDefinitionSize1609),
(&g_typeDefinitionSize1610),
(&g_typeDefinitionSize1611),
(&g_typeDefinitionSize1612),
(&g_typeDefinitionSize1613),
(&g_typeDefinitionSize1614),
(&g_typeDefinitionSize1615),
(&g_typeDefinitionSize1616),
(&g_typeDefinitionSize1617),
(&g_typeDefinitionSize1618),
(&g_typeDefinitionSize1619),
(&g_typeDefinitionSize1620),
(&g_typeDefinitionSize1621),
(&g_typeDefinitionSize1622),
(&g_typeDefinitionSize1623),
(&g_typeDefinitionSize1624),
(&g_typeDefinitionSize1625),
(&g_typeDefinitionSize1626),
(&g_typeDefinitionSize1627),
(&g_typeDefinitionSize1628),
(&g_typeDefinitionSize1629),
(&g_typeDefinitionSize1630),
(&g_typeDefinitionSize1631),
(&g_typeDefinitionSize1632),
(&g_typeDefinitionSize1633),
(&g_typeDefinitionSize1634),
(&g_typeDefinitionSize1635),
(&g_typeDefinitionSize1636),
(&g_typeDefinitionSize1637),
(&g_typeDefinitionSize1638),
(&g_typeDefinitionSize1639),
(&g_typeDefinitionSize1640),
(&g_typeDefinitionSize1641),
(&g_typeDefinitionSize1642),
(&g_typeDefinitionSize1643),
(&g_typeDefinitionSize1644),
(&g_typeDefinitionSize1645),
(&g_typeDefinitionSize1646),
(&g_typeDefinitionSize1647),
(&g_typeDefinitionSize1648),
(&g_typeDefinitionSize1649),
(&g_typeDefinitionSize1650),
(&g_typeDefinitionSize1651),
(&g_typeDefinitionSize1652),
(&g_typeDefinitionSize1653),
(&g_typeDefinitionSize1654),
(&g_typeDefinitionSize1655),
(&g_typeDefinitionSize1656),
(&g_typeDefinitionSize1657),
(&g_typeDefinitionSize1658),
(&g_typeDefinitionSize1659),
(&g_typeDefinitionSize1660),
(&g_typeDefinitionSize1661),
(&g_typeDefinitionSize1662),
(&g_typeDefinitionSize1663),
(&g_typeDefinitionSize1664),
(&g_typeDefinitionSize1665),
(&g_typeDefinitionSize1666),
(&g_typeDefinitionSize1667),
(&g_typeDefinitionSize1668),
(&g_typeDefinitionSize1669),
(&g_typeDefinitionSize1670),
(&g_typeDefinitionSize1671),
(&g_typeDefinitionSize1672),
(&g_typeDefinitionSize1673),
(&g_typeDefinitionSize1674),
(&g_typeDefinitionSize1675),
(&g_typeDefinitionSize1676),
(&g_typeDefinitionSize1677),
(&g_typeDefinitionSize1678),
(&g_typeDefinitionSize1679),
(&g_typeDefinitionSize1680),
(&g_typeDefinitionSize1681),
(&g_typeDefinitionSize1682),
(&g_typeDefinitionSize1683),
(&g_typeDefinitionSize1684),
(&g_typeDefinitionSize1685),
(&g_typeDefinitionSize1686),
(&g_typeDefinitionSize1687),
(&g_typeDefinitionSize1688),
(&g_typeDefinitionSize1689),
(&g_typeDefinitionSize1690),
(&g_typeDefinitionSize1691),
(&g_typeDefinitionSize1692),
(&g_typeDefinitionSize1693),
(&g_typeDefinitionSize1694),
(&g_typeDefinitionSize1695),
(&g_typeDefinitionSize1696),
(&g_typeDefinitionSize1697),
(&g_typeDefinitionSize1698),
(&g_typeDefinitionSize1699),
(&g_typeDefinitionSize1700),
(&g_typeDefinitionSize1701),
(&g_typeDefinitionSize1702),
(&g_typeDefinitionSize1703),
(&g_typeDefinitionSize1704),
(&g_typeDefinitionSize1705),
(&g_typeDefinitionSize1706),
(&g_typeDefinitionSize1707),
(&g_typeDefinitionSize1708),
(&g_typeDefinitionSize1709),
(&g_typeDefinitionSize1710),
(&g_typeDefinitionSize1711),
(&g_typeDefinitionSize1712),
(&g_typeDefinitionSize1713),
(&g_typeDefinitionSize1714),
(&g_typeDefinitionSize1715),
(&g_typeDefinitionSize1716),
(&g_typeDefinitionSize1717),
(&g_typeDefinitionSize1718),
(&g_typeDefinitionSize1719),
(&g_typeDefinitionSize1720),
(&g_typeDefinitionSize1721),
(&g_typeDefinitionSize1722),
(&g_typeDefinitionSize1723),
(&g_typeDefinitionSize1724),
(&g_typeDefinitionSize1725),
(&g_typeDefinitionSize1726),
(&g_typeDefinitionSize1727),
(&g_typeDefinitionSize1728),
(&g_typeDefinitionSize1729),
(&g_typeDefinitionSize1730),
(&g_typeDefinitionSize1731),
(&g_typeDefinitionSize1732),
(&g_typeDefinitionSize1733),
(&g_typeDefinitionSize1734),
(&g_typeDefinitionSize1735),
(&g_typeDefinitionSize1736),
(&g_typeDefinitionSize1737),
(&g_typeDefinitionSize1738),
(&g_typeDefinitionSize1739),
(&g_typeDefinitionSize1740),
(&g_typeDefinitionSize1741),
(&g_typeDefinitionSize1742),
(&g_typeDefinitionSize1743),
(&g_typeDefinitionSize1744),
(&g_typeDefinitionSize1745),
(&g_typeDefinitionSize1746),
(&g_typeDefinitionSize1747),
(&g_typeDefinitionSize1748),
(&g_typeDefinitionSize1749),
(&g_typeDefinitionSize1750),
(&g_typeDefinitionSize1751),
(&g_typeDefinitionSize1752),
(&g_typeDefinitionSize1753),
(&g_typeDefinitionSize1754),
(&g_typeDefinitionSize1755),
(&g_typeDefinitionSize1756),
(&g_typeDefinitionSize1757),
(&g_typeDefinitionSize1758),
(&g_typeDefinitionSize1759),
(&g_typeDefinitionSize1760),
(&g_typeDefinitionSize1761),
(&g_typeDefinitionSize1762),
(&g_typeDefinitionSize1763),
(&g_typeDefinitionSize1764),
(&g_typeDefinitionSize1765),
(&g_typeDefinitionSize1766),
(&g_typeDefinitionSize1767),
(&g_typeDefinitionSize1768),
(&g_typeDefinitionSize1769),
(&g_typeDefinitionSize1770),
(&g_typeDefinitionSize1771),
(&g_typeDefinitionSize1772),
(&g_typeDefinitionSize1773),
(&g_typeDefinitionSize1774),
(&g_typeDefinitionSize1775),
(&g_typeDefinitionSize1776),
(&g_typeDefinitionSize1777),
(&g_typeDefinitionSize1778),
(&g_typeDefinitionSize1779),
(&g_typeDefinitionSize1780),
(&g_typeDefinitionSize1781),
(&g_typeDefinitionSize1782),
(&g_typeDefinitionSize1783),
(&g_typeDefinitionSize1784),
(&g_typeDefinitionSize1785),
(&g_typeDefinitionSize1786),
(&g_typeDefinitionSize1787),
(&g_typeDefinitionSize1788),
(&g_typeDefinitionSize1789),
(&g_typeDefinitionSize1790),
(&g_typeDefinitionSize1791),
(&g_typeDefinitionSize1792),
(&g_typeDefinitionSize1793),
(&g_typeDefinitionSize1794),
(&g_typeDefinitionSize1795),
(&g_typeDefinitionSize1796),
(&g_typeDefinitionSize1797),
(&g_typeDefinitionSize1798),
(&g_typeDefinitionSize1799),
(&g_typeDefinitionSize1800),
(&g_typeDefinitionSize1801),
(&g_typeDefinitionSize1802),
(&g_typeDefinitionSize1803),
(&g_typeDefinitionSize1804),
(&g_typeDefinitionSize1805),
(&g_typeDefinitionSize1806),
(&g_typeDefinitionSize1807),
(&g_typeDefinitionSize1808),
(&g_typeDefinitionSize1809),
(&g_typeDefinitionSize1810),
(&g_typeDefinitionSize1811),
(&g_typeDefinitionSize1812),
(&g_typeDefinitionSize1813),
(&g_typeDefinitionSize1814),
(&g_typeDefinitionSize1815),
(&g_typeDefinitionSize1816),
(&g_typeDefinitionSize1817),
(&g_typeDefinitionSize1818),
(&g_typeDefinitionSize1819),
(&g_typeDefinitionSize1820),
(&g_typeDefinitionSize1821),
(&g_typeDefinitionSize1822),
(&g_typeDefinitionSize1823),
(&g_typeDefinitionSize1824),
(&g_typeDefinitionSize1825),
(&g_typeDefinitionSize1826),
(&g_typeDefinitionSize1827),
(&g_typeDefinitionSize1828),
(&g_typeDefinitionSize1829),
(&g_typeDefinitionSize1830),
(&g_typeDefinitionSize1831),
(&g_typeDefinitionSize1832),
(&g_typeDefinitionSize1833),
(&g_typeDefinitionSize1834),
(&g_typeDefinitionSize1835),
(&g_typeDefinitionSize1836),
(&g_typeDefinitionSize1837),
(&g_typeDefinitionSize1838),
(&g_typeDefinitionSize1839),
(&g_typeDefinitionSize1840),
(&g_typeDefinitionSize1841),
(&g_typeDefinitionSize1842),
(&g_typeDefinitionSize1843),
(&g_typeDefinitionSize1844),
(&g_typeDefinitionSize1845),
(&g_typeDefinitionSize1846),
(&g_typeDefinitionSize1847),
(&g_typeDefinitionSize1848),
(&g_typeDefinitionSize1849),
(&g_typeDefinitionSize1850),
(&g_typeDefinitionSize1851),
(&g_typeDefinitionSize1852),
(&g_typeDefinitionSize1853),
(&g_typeDefinitionSize1854),
(&g_typeDefinitionSize1855),
(&g_typeDefinitionSize1856),
(&g_typeDefinitionSize1857),
(&g_typeDefinitionSize1858),
(&g_typeDefinitionSize1859),
(&g_typeDefinitionSize1860),
(&g_typeDefinitionSize1861),
(&g_typeDefinitionSize1862),
(&g_typeDefinitionSize1863),
(&g_typeDefinitionSize1864),
(&g_typeDefinitionSize1865),
(&g_typeDefinitionSize1866),
(&g_typeDefinitionSize1867),
(&g_typeDefinitionSize1868),
(&g_typeDefinitionSize1869),
(&g_typeDefinitionSize1870),
(&g_typeDefinitionSize1871),
(&g_typeDefinitionSize1872),
(&g_typeDefinitionSize1873),
(&g_typeDefinitionSize1874),
(&g_typeDefinitionSize1875),
(&g_typeDefinitionSize1876),
(&g_typeDefinitionSize1877),
(&g_typeDefinitionSize1878),
(&g_typeDefinitionSize1879),
(&g_typeDefinitionSize1880),
(&g_typeDefinitionSize1881),
(&g_typeDefinitionSize1882),
(&g_typeDefinitionSize1883),
(&g_typeDefinitionSize1884),
(&g_typeDefinitionSize1885),
(&g_typeDefinitionSize1886),
(&g_typeDefinitionSize1887),
(&g_typeDefinitionSize1888),
(&g_typeDefinitionSize1889),
(&g_typeDefinitionSize1890),
(&g_typeDefinitionSize1891),
(&g_typeDefinitionSize1892),
(&g_typeDefinitionSize1893),
(&g_typeDefinitionSize1894),
(&g_typeDefinitionSize1895),
(&g_typeDefinitionSize1896),
(&g_typeDefinitionSize1897),
(&g_typeDefinitionSize1898),
(&g_typeDefinitionSize1899),
(&g_typeDefinitionSize1900),
(&g_typeDefinitionSize1901),
(&g_typeDefinitionSize1902),
(&g_typeDefinitionSize1903),
(&g_typeDefinitionSize1904),
(&g_typeDefinitionSize1905),
(&g_typeDefinitionSize1906),
(&g_typeDefinitionSize1907),
(&g_typeDefinitionSize1908),
(&g_typeDefinitionSize1909),
(&g_typeDefinitionSize1910),
(&g_typeDefinitionSize1911),
(&g_typeDefinitionSize1912),
(&g_typeDefinitionSize1913),
(&g_typeDefinitionSize1914),
(&g_typeDefinitionSize1915),
(&g_typeDefinitionSize1916),
(&g_typeDefinitionSize1917),
(&g_typeDefinitionSize1918),
(&g_typeDefinitionSize1919),
(&g_typeDefinitionSize1920),
(&g_typeDefinitionSize1921),
(&g_typeDefinitionSize1922),
(&g_typeDefinitionSize1923),
(&g_typeDefinitionSize1924),
(&g_typeDefinitionSize1925),
(&g_typeDefinitionSize1926),
(&g_typeDefinitionSize1927),
(&g_typeDefinitionSize1928),
(&g_typeDefinitionSize1929),
(&g_typeDefinitionSize1930),
(&g_typeDefinitionSize1931),
(&g_typeDefinitionSize1932),
(&g_typeDefinitionSize1933),
(&g_typeDefinitionSize1934),
(&g_typeDefinitionSize1935),
(&g_typeDefinitionSize1936),
(&g_typeDefinitionSize1937),
(&g_typeDefinitionSize1938),
(&g_typeDefinitionSize1939),
(&g_typeDefinitionSize1940),
(&g_typeDefinitionSize1941),
(&g_typeDefinitionSize1942),
(&g_typeDefinitionSize1943),
(&g_typeDefinitionSize1944),
(&g_typeDefinitionSize1945),
(&g_typeDefinitionSize1946),
(&g_typeDefinitionSize1947),
(&g_typeDefinitionSize1948),
(&g_typeDefinitionSize1949),
(&g_typeDefinitionSize1950),
(&g_typeDefinitionSize1951),
(&g_typeDefinitionSize1952),
(&g_typeDefinitionSize1953),
(&g_typeDefinitionSize1954),
(&g_typeDefinitionSize1955),
(&g_typeDefinitionSize1956),
(&g_typeDefinitionSize1957),
(&g_typeDefinitionSize1958),
(&g_typeDefinitionSize1959),
(&g_typeDefinitionSize1960),
(&g_typeDefinitionSize1961),
(&g_typeDefinitionSize1962),
(&g_typeDefinitionSize1963),
(&g_typeDefinitionSize1964),
(&g_typeDefinitionSize1965),
(&g_typeDefinitionSize1966),
(&g_typeDefinitionSize1967),
(&g_typeDefinitionSize1968),
(&g_typeDefinitionSize1969),
(&g_typeDefinitionSize1970),
(&g_typeDefinitionSize1971),
(&g_typeDefinitionSize1972),
(&g_typeDefinitionSize1973),
(&g_typeDefinitionSize1974),
(&g_typeDefinitionSize1975),
(&g_typeDefinitionSize1976),
(&g_typeDefinitionSize1977),
(&g_typeDefinitionSize1978),
(&g_typeDefinitionSize1979),
(&g_typeDefinitionSize1980),
(&g_typeDefinitionSize1981),
(&g_typeDefinitionSize1982),
(&g_typeDefinitionSize1983),
(&g_typeDefinitionSize1984),
(&g_typeDefinitionSize1985),
(&g_typeDefinitionSize1986),
(&g_typeDefinitionSize1987),
(&g_typeDefinitionSize1988),
(&g_typeDefinitionSize1989),
(&g_typeDefinitionSize1990),
(&g_typeDefinitionSize1991),
(&g_typeDefinitionSize1992),
(&g_typeDefinitionSize1993),
(&g_typeDefinitionSize1994),
(&g_typeDefinitionSize1995),
(&g_typeDefinitionSize1996),
(&g_typeDefinitionSize1997),
(&g_typeDefinitionSize1998),
(&g_typeDefinitionSize1999),
(&g_typeDefinitionSize2000),
(&g_typeDefinitionSize2001),
(&g_typeDefinitionSize2002),
(&g_typeDefinitionSize2003),
(&g_typeDefinitionSize2004),
(&g_typeDefinitionSize2005),
(&g_typeDefinitionSize2006),
(&g_typeDefinitionSize2007),
(&g_typeDefinitionSize2008),
(&g_typeDefinitionSize2009),
(&g_typeDefinitionSize2010),
(&g_typeDefinitionSize2011),
(&g_typeDefinitionSize2012),
(&g_typeDefinitionSize2013),
(&g_typeDefinitionSize2014),
(&g_typeDefinitionSize2015),
(&g_typeDefinitionSize2016),
(&g_typeDefinitionSize2017),
(&g_typeDefinitionSize2018),
(&g_typeDefinitionSize2019),
(&g_typeDefinitionSize2020),
(&g_typeDefinitionSize2021),
(&g_typeDefinitionSize2022),
(&g_typeDefinitionSize2023),
(&g_typeDefinitionSize2024),
(&g_typeDefinitionSize2025),
(&g_typeDefinitionSize2026),
(&g_typeDefinitionSize2027),
(&g_typeDefinitionSize2028),
(&g_typeDefinitionSize2029),
(&g_typeDefinitionSize2030),
(&g_typeDefinitionSize2031),
(&g_typeDefinitionSize2032),
(&g_typeDefinitionSize2033),
(&g_typeDefinitionSize2034),
(&g_typeDefinitionSize2035),
(&g_typeDefinitionSize2036),
(&g_typeDefinitionSize2037),
(&g_typeDefinitionSize2038),
(&g_typeDefinitionSize2039),
(&g_typeDefinitionSize2040),
(&g_typeDefinitionSize2041),
(&g_typeDefinitionSize2042),
(&g_typeDefinitionSize2043),
(&g_typeDefinitionSize2044),
(&g_typeDefinitionSize2045),
(&g_typeDefinitionSize2046),
(&g_typeDefinitionSize2047),
(&g_typeDefinitionSize2048),
(&g_typeDefinitionSize2049),
(&g_typeDefinitionSize2050),
(&g_typeDefinitionSize2051),
(&g_typeDefinitionSize2052),
(&g_typeDefinitionSize2053),
(&g_typeDefinitionSize2054),
(&g_typeDefinitionSize2055),
(&g_typeDefinitionSize2056),
(&g_typeDefinitionSize2057),
(&g_typeDefinitionSize2058),
(&g_typeDefinitionSize2059),
(&g_typeDefinitionSize2060),
(&g_typeDefinitionSize2061),
(&g_typeDefinitionSize2062),
(&g_typeDefinitionSize2063),
(&g_typeDefinitionSize2064),
(&g_typeDefinitionSize2065),
(&g_typeDefinitionSize2066),
(&g_typeDefinitionSize2067),
(&g_typeDefinitionSize2068),
(&g_typeDefinitionSize2069),
(&g_typeDefinitionSize2070),
(&g_typeDefinitionSize2071),
(&g_typeDefinitionSize2072),
(&g_typeDefinitionSize2073),
(&g_typeDefinitionSize2074),
(&g_typeDefinitionSize2075),
(&g_typeDefinitionSize2076),
(&g_typeDefinitionSize2077),
(&g_typeDefinitionSize2078),
(&g_typeDefinitionSize2079),
(&g_typeDefinitionSize2080),
(&g_typeDefinitionSize2081),
(&g_typeDefinitionSize2082),
(&g_typeDefinitionSize2083),
(&g_typeDefinitionSize2084),
(&g_typeDefinitionSize2085),
(&g_typeDefinitionSize2086),
(&g_typeDefinitionSize2087),
(&g_typeDefinitionSize2088),
(&g_typeDefinitionSize2089),
(&g_typeDefinitionSize2090),
(&g_typeDefinitionSize2091),
(&g_typeDefinitionSize2092),
(&g_typeDefinitionSize2093),
(&g_typeDefinitionSize2094),
(&g_typeDefinitionSize2095),
(&g_typeDefinitionSize2096),
(&g_typeDefinitionSize2097),
(&g_typeDefinitionSize2098),
(&g_typeDefinitionSize2099),
(&g_typeDefinitionSize2100),
(&g_typeDefinitionSize2101),
(&g_typeDefinitionSize2102),
(&g_typeDefinitionSize2103),
(&g_typeDefinitionSize2104),
(&g_typeDefinitionSize2105),
(&g_typeDefinitionSize2106),
(&g_typeDefinitionSize2107),
(&g_typeDefinitionSize2108),
(&g_typeDefinitionSize2109),
(&g_typeDefinitionSize2110),
(&g_typeDefinitionSize2111),
(&g_typeDefinitionSize2112),
(&g_typeDefinitionSize2113),
(&g_typeDefinitionSize2114),
(&g_typeDefinitionSize2115),
(&g_typeDefinitionSize2116),
(&g_typeDefinitionSize2117),
(&g_typeDefinitionSize2118),
(&g_typeDefinitionSize2119),
(&g_typeDefinitionSize2120),
(&g_typeDefinitionSize2121),
(&g_typeDefinitionSize2122),
(&g_typeDefinitionSize2123),
(&g_typeDefinitionSize2124),
(&g_typeDefinitionSize2125),
(&g_typeDefinitionSize2126),
(&g_typeDefinitionSize2127),
(&g_typeDefinitionSize2128),
(&g_typeDefinitionSize2129),
(&g_typeDefinitionSize2130),
(&g_typeDefinitionSize2131),
(&g_typeDefinitionSize2132),
(&g_typeDefinitionSize2133),
(&g_typeDefinitionSize2134),
(&g_typeDefinitionSize2135),
(&g_typeDefinitionSize2136),
(&g_typeDefinitionSize2137),
(&g_typeDefinitionSize2138),
(&g_typeDefinitionSize2139),
(&g_typeDefinitionSize2140),
(&g_typeDefinitionSize2141),
(&g_typeDefinitionSize2142),
(&g_typeDefinitionSize2143),
(&g_typeDefinitionSize2144),
(&g_typeDefinitionSize2145),
(&g_typeDefinitionSize2146),
(&g_typeDefinitionSize2147),
(&g_typeDefinitionSize2148),
(&g_typeDefinitionSize2149),
(&g_typeDefinitionSize2150),
(&g_typeDefinitionSize2151),
(&g_typeDefinitionSize2152),
(&g_typeDefinitionSize2153),
(&g_typeDefinitionSize2154),
(&g_typeDefinitionSize2155),
(&g_typeDefinitionSize2156),
(&g_typeDefinitionSize2157),
(&g_typeDefinitionSize2158),
(&g_typeDefinitionSize2159),
(&g_typeDefinitionSize2160),
(&g_typeDefinitionSize2161),
(&g_typeDefinitionSize2162),
(&g_typeDefinitionSize2163),
(&g_typeDefinitionSize2164),
(&g_typeDefinitionSize2165),
(&g_typeDefinitionSize2166),
(&g_typeDefinitionSize2167),
(&g_typeDefinitionSize2168),
(&g_typeDefinitionSize2169),
(&g_typeDefinitionSize2170),
(&g_typeDefinitionSize2171),
(&g_typeDefinitionSize2172),
(&g_typeDefinitionSize2173),
(&g_typeDefinitionSize2174),
(&g_typeDefinitionSize2175),
(&g_typeDefinitionSize2176),
(&g_typeDefinitionSize2177),
(&g_typeDefinitionSize2178),
(&g_typeDefinitionSize2179),
(&g_typeDefinitionSize2180),
(&g_typeDefinitionSize2181),
(&g_typeDefinitionSize2182),
(&g_typeDefinitionSize2183),
(&g_typeDefinitionSize2184),
(&g_typeDefinitionSize2185),
(&g_typeDefinitionSize2186),
(&g_typeDefinitionSize2187),
(&g_typeDefinitionSize2188),
(&g_typeDefinitionSize2189),
(&g_typeDefinitionSize2190),
(&g_typeDefinitionSize2191),
(&g_typeDefinitionSize2192),
(&g_typeDefinitionSize2193),
(&g_typeDefinitionSize2194),
(&g_typeDefinitionSize2195),
(&g_typeDefinitionSize2196),
(&g_typeDefinitionSize2197),
(&g_typeDefinitionSize2198),
(&g_typeDefinitionSize2199),
(&g_typeDefinitionSize2200),
(&g_typeDefinitionSize2201),
(&g_typeDefinitionSize2202),
(&g_typeDefinitionSize2203),
(&g_typeDefinitionSize2204),
(&g_typeDefinitionSize2205),
(&g_typeDefinitionSize2206),
(&g_typeDefinitionSize2207),
(&g_typeDefinitionSize2208),
(&g_typeDefinitionSize2209),
(&g_typeDefinitionSize2210),
(&g_typeDefinitionSize2211),
(&g_typeDefinitionSize2212),
(&g_typeDefinitionSize2213),
(&g_typeDefinitionSize2214),
(&g_typeDefinitionSize2215),
(&g_typeDefinitionSize2216),
(&g_typeDefinitionSize2217),
(&g_typeDefinitionSize2218),
(&g_typeDefinitionSize2219),
(&g_typeDefinitionSize2220),
(&g_typeDefinitionSize2221),
(&g_typeDefinitionSize2222),
(&g_typeDefinitionSize2223),
(&g_typeDefinitionSize2224),
(&g_typeDefinitionSize2225),
(&g_typeDefinitionSize2226),
(&g_typeDefinitionSize2227),
(&g_typeDefinitionSize2228),
(&g_typeDefinitionSize2229),
(&g_typeDefinitionSize2230),
(&g_typeDefinitionSize2231),
(&g_typeDefinitionSize2232),
(&g_typeDefinitionSize2233),
(&g_typeDefinitionSize2234),
(&g_typeDefinitionSize2235),
(&g_typeDefinitionSize2236),
(&g_typeDefinitionSize2237),
(&g_typeDefinitionSize2238),
(&g_typeDefinitionSize2239),
(&g_typeDefinitionSize2240),
(&g_typeDefinitionSize2241),
(&g_typeDefinitionSize2242),
(&g_typeDefinitionSize2243),
(&g_typeDefinitionSize2244),
(&g_typeDefinitionSize2245),
(&g_typeDefinitionSize2246),
(&g_typeDefinitionSize2247),
(&g_typeDefinitionSize2248),
(&g_typeDefinitionSize2249),
(&g_typeDefinitionSize2250),
(&g_typeDefinitionSize2251),
(&g_typeDefinitionSize2252),
(&g_typeDefinitionSize2253),
(&g_typeDefinitionSize2254),
(&g_typeDefinitionSize2255),
};
| [
"rachelg@unity3d.com"
] | rachelg@unity3d.com |
f90117e67ec7625e7d70020e2f808a932a28e6e7 | 3cdc68f3eee253db86ba630a07cabe4b0be99330 | /src/od-pandora/gui/EditFilesysHardfile.cpp | af430a6daa284c4a7ca5c134a87647d3f1247257 | [] | no_license | joolswills/uae4arm-rpi | 6e8bc3a73b9f7bcdbb79acd10443e94fe1ba3803 | c5610e7acdc9dbb6e969d65ae29476d1bea405aa | refs/heads/master | 2021-01-14T08:45:40.714258 | 2015-10-11T12:23:51 | 2015-10-11T12:23:51 | 44,225,049 | 0 | 0 | null | 2015-10-14T05:03:12 | 2015-10-14T05:03:12 | null | UTF-8 | C++ | false | false | 12,151 | cpp | #include <guichan.hpp>
#include <SDL/SDL_ttf.h>
#include <guichan/sdl.hpp>
#include "sdltruetypefont.hpp"
#include "SelectorEntry.hpp"
#include "UaeRadioButton.hpp"
#include "UaeDropDown.hpp"
#include "UaeCheckBox.hpp"
#include "sysconfig.h"
#include "sysdeps.h"
#include "config.h"
#include "options.h"
#include "memory.h"
#include "uae.h"
#include "autoconf.h"
#include "filesys.h"
#include "gui.h"
#include "target.h"
#include "gui_handling.h"
#define DIALOG_WIDTH 620
#define DIALOG_HEIGHT 242
static const char *harddisk_filter[] = { ".hdf", "\0" };
static bool dialogResult = false;
static bool dialogFinished = false;
static bool fileSelected = false;
static gcn::Window *wndEditFilesysHardfile;
static gcn::Button* cmdOK;
static gcn::Button* cmdCancel;
static gcn::Label *lblDevice;
static gcn::TextField *txtDevice;
static gcn::UaeCheckBox* chkReadWrite;
static gcn::UaeCheckBox* chkAutoboot;
static gcn::Label *lblBootPri;
static gcn::TextField *txtBootPri;
static gcn::Label *lblPath;
static gcn::TextField *txtPath;
static gcn::Button* cmdPath;
static gcn::Label *lblSurfaces;
static gcn::TextField *txtSurfaces;
static gcn::Label *lblReserved;
static gcn::TextField *txtReserved;
static gcn::Label *lblSectors;
static gcn::TextField *txtSectors;
static gcn::Label *lblBlocksize;
static gcn::TextField *txtBlocksize;
class FilesysHardfileActionListener : public gcn::ActionListener
{
public:
void action(const gcn::ActionEvent& actionEvent)
{
if(actionEvent.getSource() == cmdPath)
{
char tmp[MAX_PATH];
strncpy(tmp, txtPath->getText().c_str(), MAX_PATH);
wndEditFilesysHardfile->releaseModalFocus();
if(SelectFile("Select harddisk file", tmp, harddisk_filter))
{
txtPath->setText(tmp);
fileSelected = true;
}
wndEditFilesysHardfile->requestModalFocus();
cmdPath->requestFocus();
}
else
{
if (actionEvent.getSource() == cmdOK)
{
if(txtDevice->getText().length() <= 0)
{
wndEditFilesysHardfile->setCaption("Please enter a device name.");
return;
}
if(!fileSelected)
{
wndEditFilesysHardfile->setCaption("Please select a filename.");
return;
}
dialogResult = true;
}
dialogFinished = true;
}
}
};
static FilesysHardfileActionListener* filesysHardfileActionListener;
static void InitEditFilesysHardfile(void)
{
wndEditFilesysHardfile = new gcn::Window("Edit");
wndEditFilesysHardfile->setSize(DIALOG_WIDTH, DIALOG_HEIGHT);
wndEditFilesysHardfile->setPosition((GUI_WIDTH - DIALOG_WIDTH) / 2, (GUI_HEIGHT - DIALOG_HEIGHT) / 2);
wndEditFilesysHardfile->setBaseColor(gui_baseCol + 0x202020);
wndEditFilesysHardfile->setCaption("Volume settings");
wndEditFilesysHardfile->setTitleBarHeight(TITLEBAR_HEIGHT);
filesysHardfileActionListener = new FilesysHardfileActionListener();
cmdOK = new gcn::Button("Ok");
cmdOK->setSize(BUTTON_WIDTH, BUTTON_HEIGHT);
cmdOK->setPosition(DIALOG_WIDTH - DISTANCE_BORDER - 2 * BUTTON_WIDTH - DISTANCE_NEXT_X, DIALOG_HEIGHT - 2 * DISTANCE_BORDER - BUTTON_HEIGHT - 10);
cmdOK->setBaseColor(gui_baseCol + 0x202020);
cmdOK->setId("hdfOK");
cmdOK->addActionListener(filesysHardfileActionListener);
cmdCancel = new gcn::Button("Cancel");
cmdCancel->setSize(BUTTON_WIDTH, BUTTON_HEIGHT);
cmdCancel->setPosition(DIALOG_WIDTH - DISTANCE_BORDER - BUTTON_WIDTH, DIALOG_HEIGHT - 2 * DISTANCE_BORDER - BUTTON_HEIGHT - 10);
cmdCancel->setBaseColor(gui_baseCol + 0x202020);
cmdCancel->setId("hdfCancel");
cmdCancel->addActionListener(filesysHardfileActionListener);
lblDevice = new gcn::Label("Device Name:");
lblDevice->setSize(100, LABEL_HEIGHT);
lblDevice->setAlignment(gcn::Graphics::RIGHT);
txtDevice = new gcn::TextField();
txtDevice->setSize(80, TEXTFIELD_HEIGHT);
txtDevice->setId("hdfDev");
chkReadWrite = new gcn::UaeCheckBox("Read/Write", true);
chkReadWrite->setId("hdfRW");
chkAutoboot = new gcn::UaeCheckBox("Bootable", true);
chkAutoboot->setId("hdfAutoboot");
lblBootPri = new gcn::Label("Boot priority:");
lblBootPri->setSize(100, LABEL_HEIGHT);
lblBootPri->setAlignment(gcn::Graphics::RIGHT);
txtBootPri = new gcn::TextField();
txtBootPri->setSize(40, TEXTFIELD_HEIGHT);
txtBootPri->setId("hdfBootPri");
lblSurfaces = new gcn::Label("Surfaces:");
lblSurfaces->setSize(100, LABEL_HEIGHT);
lblSurfaces->setAlignment(gcn::Graphics::RIGHT);
txtSurfaces = new gcn::TextField();
txtSurfaces->setSize(40, TEXTFIELD_HEIGHT);
txtSurfaces->setId("hdfSurface");
lblReserved = new gcn::Label("Reserved:");
lblReserved->setSize(100, LABEL_HEIGHT);
lblReserved->setAlignment(gcn::Graphics::RIGHT);
txtReserved = new gcn::TextField();
txtReserved->setSize(40, TEXTFIELD_HEIGHT);
txtReserved->setId("hdfReserved");
lblSectors = new gcn::Label("Sectors:");
lblSectors->setSize(100, LABEL_HEIGHT);
lblSectors->setAlignment(gcn::Graphics::RIGHT);
txtSectors = new gcn::TextField();
txtSectors->setSize(40, TEXTFIELD_HEIGHT);
txtSectors->setId("hdfSectors");
lblBlocksize = new gcn::Label("Blocksize:");
lblBlocksize->setSize(100, LABEL_HEIGHT);
lblBlocksize->setAlignment(gcn::Graphics::RIGHT);
txtBlocksize = new gcn::TextField();
txtBlocksize->setSize(40, TEXTFIELD_HEIGHT);
txtBlocksize->setId("hdfBlocksize");
lblPath = new gcn::Label("Path:");
lblPath->setSize(100, LABEL_HEIGHT);
lblPath->setAlignment(gcn::Graphics::RIGHT);
txtPath = new gcn::TextField();
txtPath->setSize(438, TEXTFIELD_HEIGHT);
txtPath->setEnabled(false);
cmdPath = new gcn::Button("...");
cmdPath->setSize(SMALL_BUTTON_WIDTH, SMALL_BUTTON_HEIGHT);
cmdPath->setBaseColor(gui_baseCol + 0x202020);
cmdPath->setId("hdfPath");
cmdPath->addActionListener(filesysHardfileActionListener);
int posY = DISTANCE_BORDER;
wndEditFilesysHardfile->add(lblDevice, DISTANCE_BORDER, posY);
wndEditFilesysHardfile->add(txtDevice, DISTANCE_BORDER + lblDevice->getWidth() + 8, posY);
wndEditFilesysHardfile->add(chkReadWrite, 235, posY + 1);
wndEditFilesysHardfile->add(chkAutoboot, 360, posY + 1);
wndEditFilesysHardfile->add(lblBootPri, 460, posY);
wndEditFilesysHardfile->add(txtBootPri, 460 + lblBootPri->getWidth() + 8, posY);
posY += txtDevice->getHeight() + DISTANCE_NEXT_Y;
wndEditFilesysHardfile->add(lblPath, DISTANCE_BORDER, posY);
wndEditFilesysHardfile->add(txtPath, DISTANCE_BORDER + lblPath->getWidth() + 8, posY);
wndEditFilesysHardfile->add(cmdPath, wndEditFilesysHardfile->getWidth() - DISTANCE_BORDER - SMALL_BUTTON_WIDTH, posY);
posY += txtPath->getHeight() + DISTANCE_NEXT_Y;
wndEditFilesysHardfile->add(lblSurfaces, DISTANCE_BORDER, posY);
wndEditFilesysHardfile->add(txtSurfaces, DISTANCE_BORDER + lblSurfaces->getWidth() + 8, posY);
wndEditFilesysHardfile->add(lblReserved, 240, posY);
wndEditFilesysHardfile->add(txtReserved, 240 + lblReserved->getWidth() + 8, posY);
posY += txtSurfaces->getHeight() + DISTANCE_NEXT_Y;
wndEditFilesysHardfile->add(lblSectors, DISTANCE_BORDER, posY);
wndEditFilesysHardfile->add(txtSectors, DISTANCE_BORDER + lblSectors->getWidth() + 8, posY);
wndEditFilesysHardfile->add(lblBlocksize, 240, posY);
wndEditFilesysHardfile->add(txtBlocksize, 240 + lblBlocksize->getWidth() + 8, posY);
posY += txtSectors->getHeight() + DISTANCE_NEXT_Y;
wndEditFilesysHardfile->add(cmdOK);
wndEditFilesysHardfile->add(cmdCancel);
gui_top->add(wndEditFilesysHardfile);
txtDevice->requestFocus();
wndEditFilesysHardfile->requestModalFocus();
}
static void ExitEditFilesysHardfile(void)
{
wndEditFilesysHardfile->releaseModalFocus();
gui_top->remove(wndEditFilesysHardfile);
delete lblDevice;
delete txtDevice;
delete chkReadWrite;
delete chkAutoboot;
delete lblBootPri;
delete txtBootPri;
delete lblPath;
delete txtPath;
delete cmdPath;
delete lblSurfaces;
delete txtSurfaces;
delete lblReserved;
delete txtReserved;
delete lblSectors;
delete txtSectors;
delete lblBlocksize;
delete txtBlocksize;
delete cmdOK;
delete cmdCancel;
delete filesysHardfileActionListener;
delete wndEditFilesysHardfile;
}
static void EditFilesysHardfileLoop(void)
{
while(!dialogFinished)
{
SDL_Event event;
while(SDL_PollEvent(&event))
{
if (event.type == SDL_KEYDOWN)
{
switch(event.key.keysym.sym)
{
case SDLK_ESCAPE:
dialogFinished = true;
break;
case SDLK_UP:
if(HandleNavigation(DIRECTION_UP))
continue; // Don't change value when enter ComboBox -> don't send event to control
break;
case SDLK_DOWN:
if(HandleNavigation(DIRECTION_DOWN))
continue; // Don't change value when enter ComboBox -> don't send event to control
break;
case SDLK_LEFT:
if(HandleNavigation(DIRECTION_LEFT))
continue; // Don't change value when enter Slider -> don't send event to control
break;
case SDLK_RIGHT:
if(HandleNavigation(DIRECTION_RIGHT))
continue; // Don't change value when enter Slider -> don't send event to control
break;
case SDLK_PAGEDOWN:
case SDLK_HOME:
event.key.keysym.sym = SDLK_RETURN;
gui_input->pushInput(event); // Fire key down
event.type = SDL_KEYUP; // and the key up
break;
}
}
//-------------------------------------------------
// Send event to guichan-controls
//-------------------------------------------------
gui_input->pushInput(event);
}
// Now we let the Gui object perform its logic.
uae_gui->logic();
// Now we let the Gui object draw itself.
uae_gui->draw();
// Finally we update the screen.
SDL_Flip(gui_screen);
}
}
bool EditFilesysHardfile(int unit_no)
{
struct mountedinfo mi;
struct uaedev_config_info *uci = &changed_prefs.mountconfig[unit_no];
std::string strdevname, strroot;
char tmp[32];
dialogResult = false;
dialogFinished = false;
InitEditFilesysHardfile();
if(unit_no >= 0)
{
get_filesys_unitconfig(&changed_prefs, unit_no, &mi);
strdevname.assign(uci->devname);
txtDevice->setText(strdevname);
strroot.assign(uci->rootdir);
txtPath->setText(strroot);
fileSelected = true;
chkReadWrite->setSelected(!uci->readonly);
chkAutoboot->setSelected(uci->bootpri != -128);
snprintf(tmp, 32, "%d", uci->bootpri >= -127 ? uci->bootpri : -127);
txtBootPri->setText(tmp);
snprintf(tmp, 32, "%d", uci->surfaces);
txtSurfaces->setText(tmp);
snprintf(tmp, 32, "%d", uci->reserved);
txtReserved->setText(tmp);
snprintf(tmp, 32, "%d", uci->sectors);
txtSectors->setText(tmp);
snprintf(tmp, 32, "%d", uci->blocksize);
txtBlocksize->setText(tmp);
}
else
{
CreateDefaultDevicename(tmp);
txtDevice->setText(tmp);
strroot.assign(currentDir);
txtPath->setText(strroot);
fileSelected = false;
chkReadWrite->setSelected(true);
txtBootPri->setText("0");
txtSurfaces->setText("1");
txtReserved->setText("2");
txtSectors->setText("32");
txtBlocksize->setText("512");
}
EditFilesysHardfileLoop();
ExitEditFilesysHardfile();
if(dialogResult)
{
int bp = tweakbootpri(atoi(txtBootPri->getText().c_str()), chkAutoboot->isSelected() ? 1 : 0, 0);
extractPath((char *) txtPath->getText().c_str(), currentDir);
uci = add_filesys_config(&changed_prefs, unit_no, (char *) txtDevice->getText().c_str(),
0, (char *) txtPath->getText().c_str(), !chkReadWrite->isSelected(),
atoi(txtSectors->getText().c_str()), atoi(txtSurfaces->getText().c_str()),
atoi(txtReserved->getText().c_str()), atoi(txtBlocksize->getText().c_str()),
bp, 0, 0, 0);
if (uci)
hardfile_do_disk_change (uci->configoffset, 1);
}
return dialogResult;
}
| [
"darcelf@gmail.com"
] | darcelf@gmail.com |
d2b83597069eac9ab8409b359a572a12d3e67701 | a943ab8fcd086f5e1f42d31521b542b28f014035 | /src/bLib/Vector.cpp | 53af1d398d0195bc714bf8f78a75372ef4747d34 | [] | no_license | javeme/bScript | 13e4804efd3df89a88a6ad133fc15298587398d4 | 75105dcafec80ab7c951850976a8d816422e0d7e | refs/heads/master | 2020-04-06T04:29:07.246373 | 2016-07-17T11:19:34 | 2016-07-17T11:19:34 | 71,037,108 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,261 | cpp | #pragma once
#include "stdafx.h"
#include "Vector.h"
namespace bluemei{
template <class T>
Vector<T>::Vector(void)
{
//dataArray.resize(10);
}
template <class T>
Vector<T>::~Vector(void)
{
;
}
template <class T>
int Vector<T>::add(T ele)
{
dataArray.push_back(ele);
return this->size();
}
template <class T>
bool Vector<T>::remove(int pos,T& value)
{
if(pos<0||pos>=dataArray.size())
return false;
vector <T> ::iterator iter = dataArray.begin();
advance(iter,pos);
value=*iter;
dataArray.erase(iter);
return true;
}
template <class T>
bool Vector<T>::get(int pos,T& value)
{
if(pos<0||pos>=dataArray.size())
return false;
value=dataArray[pos];
return true;
}
template <class T>
T& Vector<T>::operator[](int pos)
{
if(pos<0||pos>=dataArray.size())
{
char buf[100];
sprintf(buf,"vector size is %d,can't request %d.",dataArray.size(),pos);
throw OutOfBoundException(buf);
}
return dataArray[pos];
}
template <class T>
bool Vector<T>::remove(const T& ele)
{
vector<T>::iterator iter = find(dataArray.begin(), dataArray.end(), ele);
if (iter != dataArray.end())
{
dataArray.erase(iter);
return true;
}
return false;
}
template <class T>
int Vector<T>::size()
{
return dataArray.size();
}
}//end of namespace bluemei | [
"javaloveme@gmail.com"
] | javaloveme@gmail.com |
f1e85089187d60998a7946fcdccb67fc107d99a2 | e9854cb02e90dab7ec0a49c65f658babba819d56 | /Curve Editor Framework/QT/src/gui/kernel/qapplication.cpp | b99944e469906932219c827fd7cadb8517a372a8 | [] | no_license | katzeforest/Computer-Animation | 2bbb1df374d65240ca2209b3a75a0b6a8b99ad58 | 01481111a622ae8812fb0b76550f5d66de206bab | refs/heads/master | 2021-01-23T19:46:13.455834 | 2015-06-08T21:29:02 | 2015-06-08T21:29:02 | 37,092,780 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 209,632 | cpp | /****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtGui module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial Usage
** Licensees holding valid Qt Commercial licenses may use this file in
** accordance with the Qt Commercial License Agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and Nokia.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3.0 as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU General Public License version 3.0 requirements will be
** met: http://www.gnu.org/copyleft/gpl.html.
**
** If you have questions regarding the use of this file, please contact
** Nokia at qt-info@nokia.com.
** $QT_END_LICENSE$
**
****************************************************************************/
#include "qplatformdefs.h"
#include "qabstracteventdispatcher.h"
#include "qaccessible.h"
#include "qapplication.h"
#include "qclipboard.h"
#include "qcursor.h"
#include "qdesktopwidget.h"
#include "qdir.h"
#include "qevent.h"
#include "qfile.h"
#include "qfileinfo.h"
#include "qgraphicsscene.h"
#include "qhash.h"
#include "qset.h"
#include "qlayout.h"
#include "qsessionmanager.h"
#include "qstyle.h"
#include "qstylefactory.h"
#include "qtextcodec.h"
#include "qtranslator.h"
#include "qvariant.h"
#include "qwidget.h"
#include "qdnd_p.h"
#include "qcolormap.h"
#include "qdebug.h"
#include "private/qgraphicssystemfactory_p.h"
#include "private/qgraphicssystem_p.h"
#include "private/qstylesheetstyle_p.h"
#include "private/qstyle_p.h"
#include "qmessagebox.h"
#include <QtGui/qgraphicsproxywidget.h>
#ifdef QT_GRAPHICSSYSTEM_RUNTIME
#include "private/qgraphicssystem_runtime_p.h"
#endif
#include "qinputcontext.h"
#include "qkeymapper_p.h"
#ifdef Q_WS_X11
#include <private/qt_x11_p.h>
#endif
#if defined(Q_WS_X11) || defined(Q_OS_SYMBIAN)
#include "qinputcontextfactory.h"
#endif
#include "qguiplatformplugin_p.h"
#include <qthread.h>
#include <private/qthread_p.h>
#include <private/qfont_p.h>
#include <stdlib.h>
#if defined(Q_WS_X11) && !defined(QT_NO_EGL)
#include <link.h>
#endif
#include "qapplication_p.h"
#include "qevent_p.h"
#include "qwidget_p.h"
#include "qapplication.h"
#include "qgesture.h"
#include "private/qgesturemanager_p.h"
#ifndef QT_NO_LIBRARY
#include "qlibrary.h"
#endif
#ifdef Q_WS_WINCE
#include "qdatetime.h"
#include "qguifunctions_wince.h"
extern bool qt_wince_is_smartphone(); //qguifunctions_wince.cpp
extern bool qt_wince_is_mobile(); //qguifunctions_wince.cpp
extern bool qt_wince_is_pocket_pc(); //qguifunctions_wince.cpp
#endif
#include "qdatetime.h"
#ifdef QT_MAC_USE_COCOA
#include <private/qt_cocoa_helpers_mac_p.h>
#endif
//#define ALIEN_DEBUG
static void initResources()
{
#if defined(Q_WS_WINCE)
Q_INIT_RESOURCE_EXTERN(qstyle_wince)
Q_INIT_RESOURCE(qstyle_wince);
#elif defined(Q_OS_SYMBIAN)
Q_INIT_RESOURCE_EXTERN(qstyle_s60)
Q_INIT_RESOURCE(qstyle_s60);
#else
Q_INIT_RESOURCE_EXTERN(qstyle)
Q_INIT_RESOURCE(qstyle);
#endif
Q_INIT_RESOURCE_EXTERN(qmessagebox)
Q_INIT_RESOURCE(qmessagebox);
#if !defined(QT_NO_PRINTDIALOG)
Q_INIT_RESOURCE_EXTERN(qprintdialog)
Q_INIT_RESOURCE(qprintdialog);
#endif
}
QT_BEGIN_NAMESPACE
Q_CORE_EXPORT void qt_call_post_routines();
int QApplicationPrivate::app_compile_version = 0x040000; //we don't know exactly, but it's at least 4.0.0
QApplication::Type qt_appType=QApplication::Tty;
QApplicationPrivate *QApplicationPrivate::self = 0;
QInputContext *QApplicationPrivate::inputContext = 0;
bool QApplicationPrivate::quitOnLastWindowClosed = true;
#ifdef Q_WS_WINCE
int QApplicationPrivate::autoMaximizeThreshold = -1;
bool QApplicationPrivate::autoSipEnabled = false;
#else
bool QApplicationPrivate::autoSipEnabled = true;
#endif
QApplicationPrivate::QApplicationPrivate(int &argc, char **argv, QApplication::Type type)
: QCoreApplicationPrivate(argc, argv)
{
application_type = type;
qt_appType = type;
#ifndef QT_NO_SESSIONMANAGER
is_session_restored = false;
#endif
quitOnLastWindowClosed = true;
#ifdef QT3_SUPPORT
qt_compat_used = 0;
qt_compat_resolved = 0;
qt_tryAccelEvent = 0;
qt_tryComposeUnicode = 0;
qt_dispatchAccelEvent = 0;
#endif
#if defined(Q_WS_QWS) && !defined(QT_NO_DIRECTPAINTER)
directPainters = 0;
#endif
#ifndef QT_NO_GESTURES
gestureManager = 0;
gestureWidget = 0;
#endif // QT_NO_GESTURES
#if defined(Q_WS_X11) || defined(Q_WS_WIN)
move_cursor = 0;
copy_cursor = 0;
link_cursor = 0;
#endif
#if defined(Q_WS_WIN)
ignore_cursor = 0;
#endif
if (!self)
self = this;
}
QApplicationPrivate::~QApplicationPrivate()
{
if (self == this)
self = 0;
}
/*!
\class QApplication
\brief The QApplication class manages the GUI application's control
flow and main settings.
QApplication contains the main event loop, where all events from the window
system and other sources are processed and dispatched. It also handles the
application's initialization, finalization, and provides session
management. In addition, QApplication handles most of the system-wide and
application-wide settings.
For any GUI application using Qt, there is precisely \bold one QApplication
object, no matter whether the application has 0, 1, 2 or more windows at
any given time. For non-GUI Qt applications, use QCoreApplication instead,
as it does not depend on the \l QtGui library.
The QApplication object is accessible through the instance() function that
returns a pointer equivalent to the global qApp pointer.
QApplication's main areas of responsibility are:
\list
\o It initializes the application with the user's desktop settings
such as palette(), font() and doubleClickInterval(). It keeps
track of these properties in case the user changes the desktop
globally, for example through some kind of control panel.
\o It performs event handling, meaning that it receives events
from the underlying window system and dispatches them to the
relevant widgets. By using sendEvent() and postEvent() you can
send your own events to widgets.
\o It parses common command line arguments and sets its internal
state accordingly. See the \l{QApplication::QApplication()}
{constructor documentation} below for more details.
\o It defines the application's look and feel, which is
encapsulated in a QStyle object. This can be changed at runtime
with setStyle().
\o It specifies how the application is to allocate colors. See
setColorSpec() for details.
\o It provides localization of strings that are visible to the
user via translate().
\o It provides some magical objects like the desktop() and the
clipboard().
\o It knows about the application's windows. You can ask which
widget is at a certain position using widgetAt(), get a list of
topLevelWidgets() and closeAllWindows(), etc.
\o It manages the application's mouse cursor handling, see
setOverrideCursor()
\o On the X window system, it provides functions to flush and sync
the communication stream, see flushX() and syncX().
\o It provides support for sophisticated \l{Session Management}
{session management}. This makes it possible for applications
to terminate gracefully when the user logs out, to cancel a
shutdown process if termination isn't possible and even to
preserve the entire application's state for a future session.
See isSessionRestored(), sessionId() and commitData() and
saveState() for details.
\endlist
Since the QApplication object does so much initialization, it \e{must} be
created before any other objects related to the user interface are created.
QApplication also deals with common command line arguments. Hence, it is
usually a good idea to create it \e before any interpretation or
modification of \c argv is done in the application itself.
\table
\header
\o{2,1} Groups of functions
\row
\o System settings
\o desktopSettingsAware(),
setDesktopSettingsAware(),
cursorFlashTime(),
setCursorFlashTime(),
doubleClickInterval(),
setDoubleClickInterval(),
setKeyboardInputInterval(),
wheelScrollLines(),
setWheelScrollLines(),
palette(),
setPalette(),
font(),
setFont(),
fontMetrics().
\row
\o Event handling
\o exec(),
processEvents(),
exit(),
quit().
sendEvent(),
postEvent(),
sendPostedEvents(),
removePostedEvents(),
hasPendingEvents(),
notify(),
macEventFilter(),
qwsEventFilter(),
x11EventFilter(),
x11ProcessEvent(),
winEventFilter().
\row
\o GUI Styles
\o style(),
setStyle().
\row
\o Color usage
\o colorSpec(),
setColorSpec(),
qwsSetCustomColors().
\row
\o Text handling
\o installTranslator(),
removeTranslator()
translate().
\row
\o Widgets
\o allWidgets(),
topLevelWidgets(),
desktop(),
activePopupWidget(),
activeModalWidget(),
clipboard(),
focusWidget(),
activeWindow(),
widgetAt().
\row
\o Advanced cursor handling
\o overrideCursor(),
setOverrideCursor(),
restoreOverrideCursor().
\row
\o X Window System synchronization
\o flushX(),
syncX().
\row
\o Session management
\o isSessionRestored(),
sessionId(),
commitData(),
saveState().
\row
\o Miscellaneous
\o closeAllWindows(),
startingUp(),
closingDown(),
type().
\endtable
\sa QCoreApplication, QAbstractEventDispatcher, QEventLoop, QSettings
*/
/*!
\enum QApplication::Type
\value Tty a console application
\value GuiClient a GUI client application
\value GuiServer a GUI server application (for Qt for Embedded Linux)
*/
/*!
\enum QApplication::ColorSpec
\value NormalColor the default color allocation policy
\value CustomColor the same as NormalColor for X11; allocates colors
to a palette on demand under Windows
\value ManyColor the right choice for applications that use thousands of
colors
See setColorSpec() for full details.
*/
/*!
\fn QWidget *QApplication::topLevelAt(const QPoint &point)
Returns the top-level widget at the given \a point; returns 0 if
there is no such widget.
*/
/*!
\fn QWidget *QApplication::topLevelAt(int x, int y)
\overload
Returns the top-level widget at the point (\a{x}, \a{y}); returns
0 if there is no such widget.
*/
/*
The qt_init() and qt_cleanup() functions are implemented in the
qapplication_xyz.cpp file.
*/
void qt_init(QApplicationPrivate *priv, int type
#ifdef Q_WS_X11
, Display *display = 0, Qt::HANDLE visual = 0, Qt::HANDLE colormap = 0
#endif
);
void qt_cleanup();
Qt::MouseButtons QApplicationPrivate::mouse_buttons = Qt::NoButton;
Qt::KeyboardModifiers QApplicationPrivate::modifier_buttons = Qt::NoModifier;
QStyle *QApplicationPrivate::app_style = 0; // default application style
QString QApplicationPrivate::styleOverride; // style override
#ifndef QT_NO_STYLE_STYLESHEET
QString QApplicationPrivate::styleSheet; // default application stylesheet
#endif
QPointer<QWidget> QApplicationPrivate::leaveAfterRelease = 0;
int QApplicationPrivate::app_cspec = QApplication::NormalColor;
QPalette *QApplicationPrivate::app_pal = 0; // default application palette
QPalette *QApplicationPrivate::sys_pal = 0; // default system palette
QPalette *QApplicationPrivate::set_pal = 0; // default palette set by programmer
QGraphicsSystem *QApplicationPrivate::graphics_system = 0; // default graphics system
QString QApplicationPrivate::graphics_system_name; // graphics system id - for delayed initialization
bool QApplicationPrivate::runtime_graphics_system = false;
Q_GLOBAL_STATIC(QMutex, applicationFontMutex)
QFont *QApplicationPrivate::app_font = 0; // default application font
QFont *QApplicationPrivate::sys_font = 0; // default system font
QFont *QApplicationPrivate::set_font = 0; // default font set by programmer
QIcon *QApplicationPrivate::app_icon = 0;
QWidget *QApplicationPrivate::main_widget = 0; // main application widget
QWidget *QApplicationPrivate::focus_widget = 0; // has keyboard input focus
QWidget *QApplicationPrivate::hidden_focus_widget = 0; // will get keyboard input focus after show()
QWidget *QApplicationPrivate::active_window = 0; // toplevel with keyboard focus
bool QApplicationPrivate::obey_desktop_settings = true; // use winsys resources
int QApplicationPrivate::cursor_flash_time = 1000; // text caret flash time
int QApplicationPrivate::mouse_double_click_time = 400; // mouse dbl click limit
int QApplicationPrivate::keyboard_input_time = 400; // keyboard input interval
#ifndef QT_NO_WHEELEVENT
int QApplicationPrivate::wheel_scroll_lines; // number of lines to scroll
#endif
bool qt_is_gui_used;
bool Q_GUI_EXPORT qt_tab_all_widgets = true;
bool qt_in_tab_key_event = false;
int qt_antialiasing_threshold = -1;
static int drag_time = 500;
#ifndef QT_GUI_DRAG_DISTANCE
#define QT_GUI_DRAG_DISTANCE 4
#endif
#ifdef Q_OS_SYMBIAN
// The screens are a bit too small to for your thumb when using only 4 pixels drag distance.
static int drag_distance = 12; //XXX move to qplatformdefs.h
#else
static int drag_distance = QT_GUI_DRAG_DISTANCE;
#endif
static Qt::LayoutDirection layout_direction = Qt::LeftToRight;
QSize QApplicationPrivate::app_strut = QSize(0,0); // no default application strut
bool QApplicationPrivate::animate_ui = true;
bool QApplicationPrivate::animate_menu = false;
bool QApplicationPrivate::fade_menu = false;
bool QApplicationPrivate::animate_combo = false;
bool QApplicationPrivate::animate_tooltip = false;
bool QApplicationPrivate::fade_tooltip = false;
bool QApplicationPrivate::animate_toolbox = false;
bool QApplicationPrivate::widgetCount = false;
bool QApplicationPrivate::load_testability = false;
QString QApplicationPrivate::qmljs_debug_arguments;
#ifdef QT_KEYPAD_NAVIGATION
# ifdef Q_OS_SYMBIAN
Qt::NavigationMode QApplicationPrivate::navigationMode = Qt::NavigationModeKeypadDirectional;
# else
Qt::NavigationMode QApplicationPrivate::navigationMode = Qt::NavigationModeKeypadTabOrder;
# endif
QWidget *QApplicationPrivate::oldEditFocus = 0;
#endif
bool qt_tabletChokeMouse = false;
static bool force_reverse = false;
inline bool QApplicationPrivate::isAlien(QWidget *widget)
{
if (!widget)
return false;
#if defined(Q_WS_QWS)
return !widget->isWindow()
# ifdef Q_BACKINGSTORE_SUBSURFACES
&& !(widget->d_func()->maybeTopData() && widget->d_func()->maybeTopData()->windowSurface)
# endif
;
#else
return !widget->internalWinId();
#endif
}
// ######## move to QApplicationPrivate
// Default application palettes and fonts (per widget type)
Q_GLOBAL_STATIC(PaletteHash, app_palettes)
PaletteHash *qt_app_palettes_hash()
{
return app_palettes();
}
Q_GLOBAL_STATIC(FontHash, app_fonts)
FontHash *qt_app_fonts_hash()
{
return app_fonts();
}
QWidgetList *QApplicationPrivate::popupWidgets = 0; // has keyboard input focus
QDesktopWidget *qt_desktopWidget = 0; // root window widgets
#ifndef QT_NO_CLIPBOARD
QClipboard *qt_clipboard = 0; // global clipboard object
#endif
QWidgetList * qt_modal_stack=0; // stack of modal widgets
/*!
\internal
*/
void QApplicationPrivate::process_cmdline()
{
// process platform-indep command line
if (!qt_is_gui_used || !argc)
return;
int i, j;
j = 1;
for (i=1; i<argc; i++) { // if you add anything here, modify QCoreApplication::arguments()
if (argv[i] && *argv[i] != '-') {
argv[j++] = argv[i];
continue;
}
QByteArray arg = argv[i];
arg = arg;
QString s;
if (arg == "-qdevel" || arg == "-qdebug") {
// obsolete argument
} else if (arg.indexOf("-qmljsdebugger=", 0) != -1) {
qmljs_debug_arguments = QString::fromLocal8Bit(arg.right(arg.length() - 15));
} else if (arg.indexOf("-style=", 0) != -1) {
s = QString::fromLocal8Bit(arg.right(arg.length() - 7).toLower());
} else if (arg == "-style" && i < argc-1) {
s = QString::fromLocal8Bit(argv[++i]).toLower();
#ifndef QT_NO_SESSIONMANAGER
} else if (arg == "-session" && i < argc-1) {
++i;
if (argv[i] && *argv[i]) {
session_id = QString::fromLatin1(argv[i]);
int p = session_id.indexOf(QLatin1Char('_'));
if (p >= 0) {
session_key = session_id.mid(p +1);
session_id = session_id.left(p);
}
is_session_restored = true;
}
#endif
#ifndef QT_NO_STYLE_STYLESHEET
} else if (arg == "-stylesheet" && i < argc -1) {
styleSheet = QLatin1String("file:///");
styleSheet.append(QString::fromLocal8Bit(argv[++i]));
} else if (arg.indexOf("-stylesheet=") != -1) {
styleSheet = QLatin1String("file:///");
styleSheet.append(QString::fromLocal8Bit(arg.right(arg.length() - 12)));
#endif
} else if (qstrcmp(arg, "-reverse") == 0) {
force_reverse = true;
QApplication::setLayoutDirection(Qt::RightToLeft);
} else if (qstrcmp(arg, "-widgetcount") == 0) {
widgetCount = true;
} else if (qstrcmp(arg, "-testability") == 0) {
load_testability = true;
} else if (arg == "-graphicssystem" && i < argc-1) {
graphics_system_name = QString::fromLocal8Bit(argv[++i]);
} else {
argv[j++] = argv[i];
}
if (!s.isEmpty()) {
if (app_style) {
delete app_style;
app_style = 0;
}
styleOverride = s;
}
}
if(j < argc) {
argv[j] = 0;
argc = j;
}
}
/*!
Initializes the window system and constructs an application object with
\a argc command line arguments in \a argv.
\warning The data referred to by \a argc and \a argv must stay valid for
the entire lifetime of the QApplication object. In addition, \a argc must
be greater than zero and \a argv must contain at least one valid character
string.
The global \c qApp pointer refers to this application object. Only one
application object should be created.
This application object must be constructed before any \l{QPaintDevice}
{paint devices} (including widgets, pixmaps, bitmaps etc.).
\note \a argc and \a argv might be changed as Qt removes command line
arguments that it recognizes.
Qt debugging options (not available if Qt was compiled without the QT_DEBUG
flag defined):
\list
\o -nograb, tells Qt that it must never grab the mouse or the
keyboard.
\o -dograb (only under X11), running under a debugger can cause an
implicit -nograb, use -dograb to override.
\o -sync (only under X11), switches to synchronous mode for
debugging.
\endlist
See \l{Debugging Techniques} for a more detailed explanation.
All Qt programs automatically support the following command line options:
\list
\o -style= \e style, sets the application GUI style. Possible values
are \c motif, \c windows, and \c platinum. If you compiled Qt with
additional styles or have additional styles as plugins these will
be available to the \c -style command line option.
\o -style \e style, is the same as listed above.
\o -stylesheet= \e stylesheet, sets the application \l styleSheet. The
value must be a path to a file that contains the Style Sheet.
\note Relative URLs in the Style Sheet file are relative to the
Style Sheet file's path.
\o -stylesheet \e stylesheet, is the same as listed above.
\o -session= \e session, restores the application from an earlier
\l{Session Management}{session}.
\o -session \e session, is the same as listed above.
\o -widgetcount, prints debug message at the end about number of
widgets left undestroyed and maximum number of widgets existed at
the same time
\o -reverse, sets the application's layout direction to
Qt::RightToLeft
\o -graphicssystem, sets the backend to be used for on-screen widgets
and QPixmaps. Available options are \c{raster} and \c{opengl}.
\o -qmljsdebugger=, activates the QML/JS debugger with a specified port.
The value must be of format port:1234[,block], where block is optional
and will make the application wait until a debugger connects to it.
\endlist
The X11 version of Qt supports some traditional X11 command line options:
\list
\o -display \e display, sets the X display (default is $DISPLAY).
\o -geometry \e geometry, sets the client geometry of the first window
that is shown.
\o -fn or \c -font \e font, defines the application font. The font
should be specified using an X logical font description. Note that
this option is ignored when Qt is built with fontconfig support enabled.
\o -bg or \c -background \e color, sets the default background color
and an application palette (light and dark shades are calculated).
\o -fg or \c -foreground \e color, sets the default foreground color.
\o -btn or \c -button \e color, sets the default button color.
\o -name \e name, sets the application name.
\o -title \e title, sets the application title.
\o -visual \c TrueColor, forces the application to use a TrueColor
visual on an 8-bit display.
\o -ncols \e count, limits the number of colors allocated in the color
cube on an 8-bit display, if the application is using the
QApplication::ManyColor color specification. If \e count is 216
then a 6x6x6 color cube is used (i.e. 6 levels of red, 6 of green,
and 6 of blue); for other values, a cube approximately proportional
to a 2x3x1 cube is used.
\o -cmap, causes the application to install a private color map on an
8-bit display.
\o -im, sets the input method server (equivalent to setting the
XMODIFIERS environment variable)
\o -inputstyle, defines how the input is inserted into the given
widget, e.g., \c onTheSpot makes the input appear directly in the
widget, while \c overTheSpot makes the input appear in a box
floating over the widget and is not inserted until the editing is
done.
\endlist
\section1 X11 Notes
If QApplication fails to open the X11 display, it will terminate
the process. This behavior is consistent with most X11
applications.
\sa arguments()
*/
QApplication::QApplication(int &argc, char **argv)
: QCoreApplication(*new QApplicationPrivate(argc, argv, GuiClient))
{ Q_D(QApplication); d->construct(); }
QApplication::QApplication(int &argc, char **argv, int _internal)
: QCoreApplication(*new QApplicationPrivate(argc, argv, GuiClient))
{ Q_D(QApplication); d->construct(); QApplicationPrivate::app_compile_version = _internal;}
/*!
Constructs an application object with \a argc command line arguments in
\a argv. If \a GUIenabled is true, a GUI application is constructed,
otherwise a non-GUI (console) application is created.
\warning The data referred to by \a argc and \a argv must stay valid for
the entire lifetime of the QApplication object. In addition, \a argc must
be greater than zero and \a argv must contain at least one valid character
string.
Set \a GUIenabled to false for programs without a graphical user interface
that should be able to run without a window system.
On X11, the window system is initialized if \a GUIenabled is true. If
\a GUIenabled is false, the application does not connect to the X server.
On Windows and Mac OS, currently the window system is always initialized,
regardless of the value of GUIenabled. This may change in future versions
of Qt.
The following example shows how to create an application that uses a
graphical interface when available.
\snippet doc/src/snippets/code/src_gui_kernel_qapplication.cpp 0
*/
QApplication::QApplication(int &argc, char **argv, bool GUIenabled )
: QCoreApplication(*new QApplicationPrivate(argc, argv, GUIenabled ? GuiClient : Tty))
{ Q_D(QApplication); d->construct(); }
QApplication::QApplication(int &argc, char **argv, bool GUIenabled , int _internal)
: QCoreApplication(*new QApplicationPrivate(argc, argv, GUIenabled ? GuiClient : Tty))
{ Q_D(QApplication); d->construct(); QApplicationPrivate::app_compile_version = _internal;}
/*!
Constructs an application object with \a argc command line arguments in
\a argv.
\warning The data referred to by \a argc and \a argv must stay valid for
the entire lifetime of the QApplication object. In addition, \a argc must
be greater than zero and \a argv must contain at least one valid character
string.
With Qt for Embedded Linux, passing QApplication::GuiServer for \a type
makes this application the server (equivalent to running with the
\c -qws option).
*/
QApplication::QApplication(int &argc, char **argv, Type type)
: QCoreApplication(*new QApplicationPrivate(argc, argv, type))
{ Q_D(QApplication); d->construct(); }
QApplication::QApplication(int &argc, char **argv, Type type , int _internal)
: QCoreApplication(*new QApplicationPrivate(argc, argv, type))
{ Q_D(QApplication); d->construct(); QApplicationPrivate::app_compile_version = _internal;}
#if defined(Q_WS_X11) && !defined(QT_NO_EGL)
static int qt_matchLibraryName(dl_phdr_info *info, size_t, void *data)
{
const char *name = static_cast<const char *>(data);
return strstr(info->dlpi_name, name) != 0;
}
#endif
/*!
\internal
*/
void QApplicationPrivate::construct(
#ifdef Q_WS_X11
Display *dpy, Qt::HANDLE visual, Qt::HANDLE cmap
#endif
)
{
initResources();
qt_is_gui_used = (qt_appType != QApplication::Tty);
process_cmdline();
// the environment variable has the lowest precedence of runtime graphicssystem switches
if (graphics_system_name.isEmpty())
graphics_system_name = QString::fromLocal8Bit(qgetenv("QT_GRAPHICSSYSTEM"));
#if defined(Q_WS_X11) && !defined(QT_NO_EGL)
if (graphics_system_name.isEmpty()) {
bool linksWithMeeGoTouch = dl_iterate_phdr(qt_matchLibraryName, const_cast<char *>("libmeegotouchcore"));
bool linksWithMeeGoGraphicsSystemHelper = dl_iterate_phdr(qt_matchLibraryName, const_cast<char *>("libQtMeeGoGraphicsSystemHelper"));
if (linksWithMeeGoTouch && !linksWithMeeGoGraphicsSystemHelper) {
qWarning("Running non-meego graphics system enabled MeeGo touch, forcing native graphicssystem\n");
graphics_system_name = QLatin1String("native");
}
}
#endif
// Must be called before initialize()
qt_init(this, qt_appType
#ifdef Q_WS_X11
, dpy, visual, cmap
#endif
);
initialize();
eventDispatcher->startingUp();
#ifdef QT_EVAL
extern void qt_gui_eval_init(uint);
qt_gui_eval_init(application_type);
#endif
#if defined(Q_OS_SYMBIAN) && !defined(QT_NO_SYSTEMLOCALE)
symbianInit();
#endif
#ifndef QT_NO_LIBRARY
if(load_testability) {
QLibrary testLib(QLatin1String("qttestability"));
if (testLib.load()) {
typedef void (*TasInitialize)(void);
TasInitialize initFunction = (TasInitialize)testLib.resolve("qt_testability_init");
#ifdef Q_OS_SYMBIAN
// resolving method by name does not work on Symbian OS so need to use ordinal
if(!initFunction) {
initFunction = (TasInitialize)testLib.resolve("1");
}
#endif
if (initFunction) {
initFunction();
} else {
qCritical("Library qttestability resolve failed!");
}
} else {
qCritical("Library qttestability load failed!");
}
}
//make sure the plugin is loaded
if (qt_is_gui_used)
qt_guiPlatformPlugin();
#endif
}
#if defined(Q_WS_X11)
// ### a string literal is a cont char*
// ### using it as a char* is wrong and could lead to segfaults
// ### if aargv is modified someday
// ########## make it work with argc == argv == 0
static int aargc = 1;
static char *aargv[] = { (char*)"unknown", 0 };
/*!
\fn QApplication::QApplication(Display* display, Qt::HANDLE visual, Qt::HANDLE colormap)
Creates an application, given an already open display \a display. If
\a visual and \a colormap are non-zero, the application will use those
values as the default Visual and Colormap contexts.
\warning Qt only supports TrueColor visuals at depths higher than 8
bits-per-pixel.
This function is only available on X11.
*/
QApplication::QApplication(Display* dpy, Qt::HANDLE visual, Qt::HANDLE colormap)
: QCoreApplication(*new QApplicationPrivate(aargc, aargv, GuiClient))
{
if (! dpy)
qWarning("QApplication: Invalid Display* argument");
Q_D(QApplication);
d->construct(dpy, visual, colormap);
}
QApplication::QApplication(Display* dpy, Qt::HANDLE visual, Qt::HANDLE colormap, int _internal)
: QCoreApplication(*new QApplicationPrivate(aargc, aargv, GuiClient))
{
if (! dpy)
qWarning("QApplication: Invalid Display* argument");
Q_D(QApplication);
d->construct(dpy, visual, colormap);
QApplicationPrivate::app_compile_version = _internal;
}
/*!
\fn QApplication::QApplication(Display *display, int &argc, char **argv,
Qt::HANDLE visual, Qt::HANDLE colormap)
Creates an application, given an already open \a display and using \a argc
command line arguments in \a argv. If \a visual and \a colormap are
non-zero, the application will use those values as the default Visual
and Colormap contexts.
\warning Qt only supports TrueColor visuals at depths higher than 8
bits-per-pixel.
This function is only available on X11.
*/
QApplication::QApplication(Display *dpy, int &argc, char **argv,
Qt::HANDLE visual, Qt::HANDLE colormap)
: QCoreApplication(*new QApplicationPrivate(argc, argv, GuiClient))
{
if (! dpy)
qWarning("QApplication: Invalid Display* argument");
Q_D(QApplication);
d->construct(dpy, visual, colormap);
}
QApplication::QApplication(Display *dpy, int &argc, char **argv,
Qt::HANDLE visual, Qt::HANDLE colormap, int _internal)
: QCoreApplication(*new QApplicationPrivate(argc, argv, GuiClient))
{
if (! dpy)
qWarning("QApplication: Invalid Display* argument");
Q_D(QApplication);
d->construct(dpy, visual, colormap);
QApplicationPrivate::app_compile_version = _internal;
}
#endif // Q_WS_X11
extern void qInitDrawhelperAsm();
extern void qInitImageConversions();
extern int qRegisterGuiVariant();
extern int qUnregisterGuiVariant();
#ifndef QT_NO_STATEMACHINE
extern int qRegisterGuiStateMachine();
extern int qUnregisterGuiStateMachine();
#endif
/*!
\fn void QApplicationPrivate::initialize()
Initializes the QApplication object, called from the constructors.
*/
void QApplicationPrivate::initialize()
{
QWidgetPrivate::mapper = new QWidgetMapper;
QWidgetPrivate::allWidgets = new QWidgetSet;
#if !defined(Q_WS_X11) && !defined(Q_WS_QWS)
// initialize the graphics system - on X11 this is initialized inside
// qt_init() in qapplication_x11.cpp because of several reasons.
// On QWS, the graphics system is set by the QScreen plugin.
graphics_system = QGraphicsSystemFactory::create(graphics_system_name);
#endif
if (qt_appType != QApplication::Tty)
(void) QApplication::style(); // trigger creation of application style
// trigger registering of QVariant's GUI types
qRegisterGuiVariant();
#ifndef QT_NO_STATEMACHINE
// trigger registering of QStateMachine's GUI types
qRegisterGuiStateMachine();
#endif
is_app_running = true; // no longer starting up
Q_Q(QApplication);
#ifndef QT_NO_SESSIONMANAGER
// connect to the session manager
session_manager = new QSessionManager(q, session_id, session_key);
#endif
if (qgetenv("QT_USE_NATIVE_WINDOWS").toInt() > 0)
q->setAttribute(Qt::AA_NativeWindows);
#ifdef Q_WS_WINCE
#ifdef QT_AUTO_MAXIMIZE_THRESHOLD
autoMaximizeThreshold = QT_AUTO_MAXIMIZE_THRESHOLD;
#else
if (qt_wince_is_mobile())
autoMaximizeThreshold = 50;
else
autoMaximizeThreshold = -1;
#endif //QT_AUTO_MAXIMIZE_THRESHOLD
#endif //Q_WS_WINCE
// Set up which span functions should be used in raster engine...
qInitDrawhelperAsm();
// and QImage conversion functions
qInitImageConversions();
#ifndef QT_NO_WHEELEVENT
QApplicationPrivate::wheel_scroll_lines = 3;
#endif
if (qt_is_gui_used)
initializeMultitouch();
}
/*!
Returns the type of application (\l Tty, GuiClient, or
GuiServer). The type is set when constructing the QApplication
object.
*/
QApplication::Type QApplication::type()
{
return qt_appType;
}
/*****************************************************************************
Functions returning the active popup and modal widgets.
*****************************************************************************/
/*!
Returns the active popup widget.
A popup widget is a special top-level widget that sets the \c
Qt::WType_Popup widget flag, e.g. the QMenu widget. When the application
opens a popup widget, all events are sent to the popup. Normal widgets and
modal widgets cannot be accessed before the popup widget is closed.
Only other popup widgets may be opened when a popup widget is shown. The
popup widgets are organized in a stack. This function returns the active
popup widget at the top of the stack.
\sa activeModalWidget(), topLevelWidgets()
*/
QWidget *QApplication::activePopupWidget()
{
return QApplicationPrivate::popupWidgets && !QApplicationPrivate::popupWidgets->isEmpty() ?
QApplicationPrivate::popupWidgets->last() : 0;
}
/*!
Returns the active modal widget.
A modal widget is a special top-level widget which is a subclass of QDialog
that specifies the modal parameter of the constructor as true. A modal
widget must be closed before the user can continue with other parts of the
program.
Modal widgets are organized in a stack. This function returns the active
modal widget at the top of the stack.
\sa activePopupWidget(), topLevelWidgets()
*/
QWidget *QApplication::activeModalWidget()
{
return qt_modal_stack && !qt_modal_stack->isEmpty() ? qt_modal_stack->first() : 0;
}
/*!
Cleans up any window system resources that were allocated by this
application. Sets the global variable \c qApp to 0.
*/
QApplication::~QApplication()
{
Q_D(QApplication);
#ifndef QT_NO_CLIPBOARD
// flush clipboard contents
if (qt_clipboard) {
QEvent event(QEvent::Clipboard);
QApplication::sendEvent(qt_clipboard, &event);
}
#endif
//### this should probable be done even later
qt_call_post_routines();
// kill timers before closing down the dispatcher
d->toolTipWakeUp.stop();
d->toolTipFallAsleep.stop();
d->eventDispatcher->closingDown();
d->eventDispatcher = 0;
QApplicationPrivate::is_app_closing = true;
QApplicationPrivate::is_app_running = false;
delete QWidgetPrivate::mapper;
QWidgetPrivate::mapper = 0;
// delete all widgets
if (QWidgetPrivate::allWidgets) {
QWidgetSet *mySet = QWidgetPrivate::allWidgets;
QWidgetPrivate::allWidgets = 0;
for (QWidgetSet::ConstIterator it = mySet->constBegin(); it != mySet->constEnd(); ++it) {
register QWidget *w = *it;
if (!w->parent()) // window
w->destroy(true, true);
}
delete mySet;
}
delete qt_desktopWidget;
qt_desktopWidget = 0;
#ifndef QT_NO_CLIPBOARD
delete qt_clipboard;
qt_clipboard = 0;
#endif
#if defined(Q_WS_X11) || defined(Q_WS_WIN)
delete d->move_cursor; d->move_cursor = 0;
delete d->copy_cursor; d->copy_cursor = 0;
delete d->link_cursor; d->link_cursor = 0;
#endif
#if defined(Q_WS_WIN)
delete d->ignore_cursor; d->ignore_cursor = 0;
#endif
delete QApplicationPrivate::app_pal;
QApplicationPrivate::app_pal = 0;
delete QApplicationPrivate::sys_pal;
QApplicationPrivate::sys_pal = 0;
delete QApplicationPrivate::set_pal;
QApplicationPrivate::set_pal = 0;
app_palettes()->clear();
{
QMutexLocker locker(applicationFontMutex());
delete QApplicationPrivate::app_font;
QApplicationPrivate::app_font = 0;
}
delete QApplicationPrivate::sys_font;
QApplicationPrivate::sys_font = 0;
delete QApplicationPrivate::set_font;
QApplicationPrivate::set_font = 0;
app_fonts()->clear();
delete QApplicationPrivate::app_style;
QApplicationPrivate::app_style = 0;
delete QApplicationPrivate::app_icon;
QApplicationPrivate::app_icon = 0;
delete QApplicationPrivate::graphics_system;
QApplicationPrivate::graphics_system = 0;
#ifndef QT_NO_CURSOR
d->cursor_list.clear();
#endif
#ifndef QT_NO_DRAGANDDROP
if (qt_is_gui_used)
delete QDragManager::self();
#endif
d->cleanupMultitouch();
qt_cleanup();
if (QApplicationPrivate::widgetCount)
qDebug("Widgets left: %i Max widgets: %i \n", QWidgetPrivate::instanceCounter, QWidgetPrivate::maxInstances);
#ifndef QT_NO_SESSIONMANAGER
delete d->session_manager;
d->session_manager = 0;
#endif //QT_NO_SESSIONMANAGER
QApplicationPrivate::obey_desktop_settings = true;
QApplicationPrivate::cursor_flash_time = 1000;
QApplicationPrivate::mouse_double_click_time = 400;
QApplicationPrivate::keyboard_input_time = 400;
drag_time = 500;
drag_distance = 4;
layout_direction = Qt::LeftToRight;
QApplicationPrivate::app_strut = QSize(0, 0);
QApplicationPrivate::animate_ui = true;
QApplicationPrivate::animate_menu = false;
QApplicationPrivate::fade_menu = false;
QApplicationPrivate::animate_combo = false;
QApplicationPrivate::animate_tooltip = false;
QApplicationPrivate::fade_tooltip = false;
QApplicationPrivate::widgetCount = false;
#ifndef QT_NO_STATEMACHINE
// trigger unregistering of QStateMachine's GUI types
qUnregisterGuiStateMachine();
#endif
// trigger unregistering of QVariant's GUI types
qUnregisterGuiVariant();
}
/*!
\fn QWidget *QApplication::widgetAt(const QPoint &point)
Returns the widget at global screen position \a point, or 0 if there is no
Qt widget there.
This function can be slow.
\sa QCursor::pos(), QWidget::grabMouse(), QWidget::grabKeyboard()
*/
QWidget *QApplication::widgetAt(const QPoint &p)
{
QWidget *window = QApplication::topLevelAt(p);
if (!window)
return 0;
QWidget *child = 0;
if (!window->testAttribute(Qt::WA_TransparentForMouseEvents))
child = window->childAt(window->mapFromGlobal(p));
if (child)
return child;
if (window->testAttribute(Qt::WA_TransparentForMouseEvents)) {
//shoot a hole in the widget and try once again,
//suboptimal on Qt for Embedded Linux where we do
//know the stacking order of the toplevels.
int x = p.x();
int y = p.y();
QRegion oldmask = window->mask();
QPoint wpoint = window->mapFromGlobal(QPoint(x, y));
QRegion newmask = (oldmask.isEmpty() ? QRegion(window->rect()) : oldmask)
- QRegion(wpoint.x(), wpoint.y(), 1, 1);
window->setMask(newmask);
QWidget *recurse = 0;
if (QApplication::topLevelAt(p) != window) // verify recursion will terminate
recurse = widgetAt(x, y);
if (oldmask.isEmpty())
window->clearMask();
else
window->setMask(oldmask);
return recurse;
}
return window;
}
/*!
\fn QWidget *QApplication::widgetAt(int x, int y)
\overload
Returns the widget at global screen position (\a x, \a y), or 0 if there is
no Qt widget there.
*/
/*!
\fn void QApplication::setArgs(int argc, char **argv)
\internal
*/
/*!
\internal
*/
bool QApplication::compressEvent(QEvent *event, QObject *receiver, QPostEventList *postedEvents)
{
if ((event->type() == QEvent::UpdateRequest
#ifdef QT3_SUPPORT
|| event->type() == QEvent::LayoutHint
#endif
|| event->type() == QEvent::LayoutRequest
|| event->type() == QEvent::Resize
|| event->type() == QEvent::Move
|| event->type() == QEvent::LanguageChange
|| event->type() == QEvent::UpdateSoftKeys
|| event->type() == QEvent::InputMethod)) {
for (int i = 0; i < postedEvents->size(); ++i) {
const QPostEvent &cur = postedEvents->at(i);
if (cur.receiver != receiver || cur.event == 0 || cur.event->type() != event->type())
continue;
if (cur.event->type() == QEvent::LayoutRequest
#ifdef QT3_SUPPORT
|| cur.event->type() == QEvent::LayoutHint
#endif
|| cur.event->type() == QEvent::UpdateRequest) {
;
} else if (cur.event->type() == QEvent::Resize) {
((QResizeEvent *)(cur.event))->s = ((QResizeEvent *)event)->s;
} else if (cur.event->type() == QEvent::Move) {
((QMoveEvent *)(cur.event))->p = ((QMoveEvent *)event)->p;
} else if (cur.event->type() == QEvent::LanguageChange) {
;
} else if (cur.event->type() == QEvent::UpdateSoftKeys) {
;
} else if ( cur.event->type() == QEvent::InputMethod ) {
*(QInputMethodEvent *)(cur.event) = *(QInputMethodEvent *)event;
} else {
continue;
}
delete event;
return true;
}
return false;
}
return QCoreApplication::compressEvent(event, receiver, postedEvents);
}
/*!
\property QApplication::styleSheet
\brief the application style sheet
\since 4.2
By default, this property returns an empty string unless the user specifies
the \c{-stylesheet} option on the command line when running the application.
\sa QWidget::setStyle(), {Qt Style Sheets}
*/
/*!
\property QApplication::autoMaximizeThreshold
\since 4.4
\brief defines a threshold for auto maximizing widgets
\bold{The auto maximize threshold is only available as part of Qt for
Windows CE.}
This property defines a threshold for the size of a window as a percentage
of the screen size. If the minimum size hint of a window exceeds the
threshold, calling show() will cause the window to be maximized
automatically.
Setting the threshold to 100 or greater means that the widget will always
be maximized. Alternatively, setting the threshold to 50 means that the
widget will be maximized only if the vertical minimum size hint is at least
50% of the vertical screen size.
Setting the threshold to -1 disables the feature.
On Windows CE the default is -1 (i.e., it is disabled).
On Windows Mobile the default is 40.
*/
/*!
\property QApplication::autoSipEnabled
\since 4.5
\brief toggles automatic SIP (software input panel) visibility
Set this property to \c true to automatically display the SIP when entering
widgets that accept keyboard input. This property only affects widgets with
the WA_InputMethodEnabled attribute set, and is typically used to launch
a virtual keyboard on devices which have very few or no keys.
\bold{ The property only has an effect on platforms which use software input
panels, such as Windows CE and Symbian.}
The default is platform dependent.
*/
#ifdef Q_WS_WINCE
void QApplication::setAutoMaximizeThreshold(const int threshold)
{
QApplicationPrivate::autoMaximizeThreshold = threshold;
}
int QApplication::autoMaximizeThreshold() const
{
return QApplicationPrivate::autoMaximizeThreshold;
}
#endif
void QApplication::setAutoSipEnabled(const bool enabled)
{
QApplicationPrivate::autoSipEnabled = enabled;
}
bool QApplication::autoSipEnabled() const
{
return QApplicationPrivate::autoSipEnabled;
}
#ifndef QT_NO_STYLE_STYLESHEET
QString QApplication::styleSheet() const
{
return QApplicationPrivate::styleSheet;
}
void QApplication::setStyleSheet(const QString& styleSheet)
{
QApplicationPrivate::styleSheet = styleSheet;
QStyleSheetStyle *proxy = qobject_cast<QStyleSheetStyle*>(QApplicationPrivate::app_style);
if (styleSheet.isEmpty()) { // application style sheet removed
if (!proxy)
return; // there was no stylesheet before
setStyle(proxy->base);
} else if (proxy) { // style sheet update, just repolish
proxy->repolish(qApp);
} else { // stylesheet set the first time
QStyleSheetStyle *newProxy = new QStyleSheetStyle(QApplicationPrivate::app_style);
QApplicationPrivate::app_style->setParent(newProxy);
setStyle(newProxy);
}
}
#endif // QT_NO_STYLE_STYLESHEET
/*!
Returns the application's style object.
\sa setStyle(), QStyle
*/
QStyle *QApplication::style()
{
if (QApplicationPrivate::app_style)
return QApplicationPrivate::app_style;
if (!qt_is_gui_used) {
Q_ASSERT(!"No style available in non-gui applications!");
return 0;
}
if (!QApplicationPrivate::app_style) {
// Compile-time search for default style
//
QString style;
#ifdef QT_BUILD_INTERNAL
QString envStyle = QString::fromLocal8Bit(qgetenv("QT_STYLE_OVERRIDE"));
#else
QString envStyle;
#endif
if (!QApplicationPrivate::styleOverride.isEmpty()) {
style = QApplicationPrivate::styleOverride;
} else if (!envStyle.isEmpty()) {
style = envStyle;
} else {
style = QApplicationPrivate::desktopStyleKey();
}
QStyle *&app_style = QApplicationPrivate::app_style;
app_style = QStyleFactory::create(style);
if (!app_style) {
QStringList styles = QStyleFactory::keys();
for (int i = 0; i < styles.size(); ++i) {
if ((app_style = QStyleFactory::create(styles.at(i))))
break;
}
}
if (!app_style) {
Q_ASSERT(!"No styles available!");
return 0;
}
}
// take ownership of the style
QApplicationPrivate::app_style->setParent(qApp);
if (!QApplicationPrivate::sys_pal)
QApplicationPrivate::setSystemPalette(QApplicationPrivate::app_style->standardPalette());
if (QApplicationPrivate::set_pal) // repolish set palette with the new style
QApplication::setPalette(*QApplicationPrivate::set_pal);
#ifndef QT_NO_STYLE_STYLESHEET
if (!QApplicationPrivate::styleSheet.isEmpty()) {
qApp->setStyleSheet(QApplicationPrivate::styleSheet);
} else
#endif
QApplicationPrivate::app_style->polish(qApp);
return QApplicationPrivate::app_style;
}
/*!
Sets the application's GUI style to \a style. Ownership of the style object
is transferred to QApplication, so QApplication will delete the style
object on application exit or when a new style is set and the old style is
still the parent of the application object.
Example usage:
\snippet doc/src/snippets/code/src_gui_kernel_qapplication.cpp 1
When switching application styles, the color palette is set back to the
initial colors or the system defaults. This is necessary since certain
styles have to adapt the color palette to be fully style-guide compliant.
Setting the style before a palette has been se, i.e., before creating
QApplication, will cause the application to use QStyle::standardPalette()
for the palette.
\warning Qt style sheets are currently not supported for custom QStyle
subclasses. We plan to address this in some future release.
\sa style(), QStyle, setPalette(), desktopSettingsAware()
*/
void QApplication::setStyle(QStyle *style)
{
if (!style || style == QApplicationPrivate::app_style)
return;
QWidgetList all = allWidgets();
// clean up the old style
if (QApplicationPrivate::app_style) {
if (QApplicationPrivate::is_app_running && !QApplicationPrivate::is_app_closing) {
for (QWidgetList::ConstIterator it = all.constBegin(); it != all.constEnd(); ++it) {
register QWidget *w = *it;
if (!(w->windowType() == Qt::Desktop) && // except desktop
w->testAttribute(Qt::WA_WState_Polished)) { // has been polished
QApplicationPrivate::app_style->unpolish(w);
}
}
}
QApplicationPrivate::app_style->unpolish(qApp);
}
QStyle *old = QApplicationPrivate::app_style; // save
#ifndef QT_NO_STYLE_STYLESHEET
if (!QApplicationPrivate::styleSheet.isEmpty() && !qobject_cast<QStyleSheetStyle *>(style)) {
// we have a stylesheet already and a new style is being set
QStyleSheetStyle *newProxy = new QStyleSheetStyle(style);
style->setParent(newProxy);
QApplicationPrivate::app_style = newProxy;
} else
#endif // QT_NO_STYLE_STYLESHEET
QApplicationPrivate::app_style = style;
QApplicationPrivate::app_style->setParent(qApp); // take ownership
// take care of possible palette requirements of certain gui
// styles. Do it before polishing the application since the style
// might call QApplication::setPalette() itself
if (QApplicationPrivate::set_pal) {
QApplication::setPalette(*QApplicationPrivate::set_pal);
} else if (QApplicationPrivate::sys_pal) {
QApplicationPrivate::initializeWidgetPaletteHash();
QApplicationPrivate::setPalette_helper(*QApplicationPrivate::sys_pal, /*className=*/0, /*clearWidgetPaletteHash=*/false);
} else if (!QApplicationPrivate::sys_pal) {
// Initialize the sys_pal if it hasn't happened yet...
QApplicationPrivate::setSystemPalette(QApplicationPrivate::app_style->standardPalette());
}
// initialize the application with the new style
QApplicationPrivate::app_style->polish(qApp);
// re-polish existing widgets if necessary
if (QApplicationPrivate::is_app_running && !QApplicationPrivate::is_app_closing) {
for (QWidgetList::ConstIterator it1 = all.constBegin(); it1 != all.constEnd(); ++it1) {
register QWidget *w = *it1;
if (w->windowType() != Qt::Desktop && w->testAttribute(Qt::WA_WState_Polished)) {
if (w->style() == QApplicationPrivate::app_style)
QApplicationPrivate::app_style->polish(w); // repolish
#ifndef QT_NO_STYLE_STYLESHEET
else
w->setStyleSheet(w->styleSheet()); // touch
#endif
}
}
for (QWidgetList::ConstIterator it2 = all.constBegin(); it2 != all.constEnd(); ++it2) {
register QWidget *w = *it2;
if (w->windowType() != Qt::Desktop && !w->testAttribute(Qt::WA_SetStyle)) {
QEvent e(QEvent::StyleChange);
QApplication::sendEvent(w, &e);
#ifdef QT3_SUPPORT
if (old)
w->styleChange(*old);
#endif
w->update();
}
}
}
#ifndef QT_NO_STYLE_STYLESHEET
if (QStyleSheetStyle *oldProxy = qobject_cast<QStyleSheetStyle *>(old)) {
oldProxy->deref();
} else
#endif
if (old && old->parent() == qApp) {
delete old;
}
if (QApplicationPrivate::focus_widget) {
QFocusEvent in(QEvent::FocusIn, Qt::OtherFocusReason);
QApplication::sendEvent(QApplicationPrivate::focus_widget->style(), &in);
QApplicationPrivate::focus_widget->update();
}
}
/*!
\overload
Requests a QStyle object for \a style from the QStyleFactory.
The string must be one of the QStyleFactory::keys(), typically one of
"windows", "motif", "cde", "plastique", "windowsxp", or "macintosh". Style
names are case insensitive.
Returns 0 if an unknown \a style is passed, otherwise the QStyle object
returned is set as the application's GUI style.
\warning To ensure that the application's style is set correctly, it is
best to call this function before the QApplication constructor, if
possible.
*/
QStyle* QApplication::setStyle(const QString& style)
{
QStyle *s = QStyleFactory::create(style);
if (!s)
return 0;
setStyle(s);
return s;
}
/*!
\since 4.5
Sets the default graphics backend to \a system, which will be used for
on-screen widgets and QPixmaps. The available systems are \c{"native"},
\c{"raster"} and \c{"opengl"}.
There are several ways to set the graphics backend, in order of decreasing
precedence:
\list
\o the application commandline \c{-graphicssystem} switch
\o QApplication::setGraphicsSystem()
\o the QT_GRAPHICSSYSTEM environment variable
\o the Qt configure \c{-graphicssystem} switch
\endlist
If the highest precedence switch sets an invalid name, the error will be
ignored and the default backend will be used.
\warning This function is only effective before the QApplication constructor
is called.
\note The \c{"opengl"} option is currently experimental.
*/
void QApplication::setGraphicsSystem(const QString &system)
{
#ifdef QT_GRAPHICSSYSTEM_RUNTIME
if (QApplicationPrivate::graphics_system_name == QLatin1String("runtime")) {
QRuntimeGraphicsSystem *r =
static_cast<QRuntimeGraphicsSystem *>(QApplicationPrivate::graphics_system);
r->setGraphicsSystem(system);
} else
#endif
QApplicationPrivate::graphics_system_name = system;
}
/*!
Returns the color specification.
\sa QApplication::setColorSpec()
*/
int QApplication::colorSpec()
{
return QApplicationPrivate::app_cspec;
}
/*!
Sets the color specification for the application to \a spec.
The color specification controls how the application allocates colors when
run on a display with a limited amount of colors, e.g. 8 bit / 256 color
displays.
The color specification must be set before you create the QApplication
object.
The options are:
\list
\o QApplication::NormalColor. This is the default color allocation
strategy. Use this option if your application uses buttons, menus,
texts and pixmaps with few colors. With this option, the
application uses system global colors. This works fine for most
applications under X11, but on the Windows platform, it may cause
dithering of non-standard colors.
\o QApplication::CustomColor. Use this option if your application
needs a small number of custom colors. On X11, this option is the
same as NormalColor. On Windows, Qt creates a Windows palette, and
allocates colors to it on demand.
\o QApplication::ManyColor. Use this option if your application is
very color hungry, e.g., it requires thousands of colors. \br
Under X11 the effect is:
\list
\o For 256-color displays which have at best a 256 color true
color visual, the default visual is used, and colors are
allocated from a color cube. The color cube is the 6x6x6
(216 color) "Web palette" (the red, green, and blue
components always have one of the following values: 0x00,
0x33, 0x66, 0x99, 0xCC, or 0xFF), but the number of colors
can be changed by the \e -ncols option. The user can force
the application to use the true color visual with the
\l{QApplication::QApplication()}{-visual} option.
\o For 256-color displays which have a true color visual with
more than 256 colors, use that visual. Silicon Graphics X
servers this feature, for example. They provide an 8 bit
visual by default but can deliver true color when asked.
\endlist
On Windows, Qt creates a Windows palette, and fills it with a color
cube.
\endlist
Be aware that the CustomColor and ManyColor choices may lead to colormap
flashing: The foreground application gets (most) of the available colors,
while the background windows will look less attractive.
Example:
\snippet doc/src/snippets/code/src_gui_kernel_qapplication.cpp 2
\sa colorSpec()
*/
void QApplication::setColorSpec(int spec)
{
if (qApp)
qWarning("QApplication::setColorSpec: This function must be "
"called before the QApplication object is created");
QApplicationPrivate::app_cspec = spec;
}
/*!
\property QApplication::globalStrut
\brief the minimum size that any GUI element that the user can interact
with should have
For example, no button should be resized to be smaller than the global
strut size. The strut size should be considered when reimplementing GUI
controls that may be used on touch-screens or similar I/O devices.
Example:
\snippet doc/src/snippets/code/src_gui_kernel_qapplication.cpp 3
By default, this property contains a QSize object with zero width and height.
*/
QSize QApplication::globalStrut()
{
return QApplicationPrivate::app_strut;
}
void QApplication::setGlobalStrut(const QSize& strut)
{
QApplicationPrivate::app_strut = strut;
}
/*!
Returns the application palette.
\sa setPalette(), QWidget::palette()
*/
QPalette QApplication::palette()
{
if (!QApplicationPrivate::app_pal)
QApplicationPrivate::app_pal = new QPalette(Qt::black);
return *QApplicationPrivate::app_pal;
}
/*!
\fn QPalette QApplication::palette(const QWidget* widget)
\overload
If a \a widget is passed, the default palette for the widget's class is
returned. This may or may not be the application palette. In most cases
there is no special palette for certain types of widgets, but one notable
exception is the popup menu under Windows, if the user has defined a
special background color for menus in the display settings.
\sa setPalette(), QWidget::palette()
*/
QPalette QApplication::palette(const QWidget* w)
{
PaletteHash *hash = app_palettes();
if (w && hash && hash->size()) {
QHash<QByteArray, QPalette>::ConstIterator it = hash->constFind(w->metaObject()->className());
if (it != hash->constEnd())
return *it;
for (it = hash->constBegin(); it != hash->constEnd(); ++it) {
if (w->inherits(it.key()))
return it.value();
}
}
return palette();
}
/*!
\overload
Returns the palette for widgets of the given \a className.
\sa setPalette(), QWidget::palette()
*/
QPalette QApplication::palette(const char *className)
{
if (!QApplicationPrivate::app_pal)
palette();
PaletteHash *hash = app_palettes();
if (className && hash && hash->size()) {
QHash<QByteArray, QPalette>::ConstIterator it = hash->constFind(className);
if (it != hash->constEnd())
return *it;
}
return *QApplicationPrivate::app_pal;
}
void QApplicationPrivate::setPalette_helper(const QPalette &palette, const char* className, bool clearWidgetPaletteHash)
{
QPalette pal = palette;
if (QApplicationPrivate::app_style)
QApplicationPrivate::app_style->polish(pal); // NB: non-const reference
bool all = false;
PaletteHash *hash = app_palettes();
if (!className) {
if (QApplicationPrivate::app_pal && pal.isCopyOf(*QApplicationPrivate::app_pal))
return;
if (!QApplicationPrivate::app_pal)
QApplicationPrivate::app_pal = new QPalette(pal);
else
*QApplicationPrivate::app_pal = pal;
if (hash && hash->size()) {
all = true;
if (clearWidgetPaletteHash)
hash->clear();
}
} else if (hash) {
hash->insert(className, pal);
}
if (QApplicationPrivate::is_app_running && !QApplicationPrivate::is_app_closing) {
// Send ApplicationPaletteChange to qApp itself, and to the widgets.
QEvent e(QEvent::ApplicationPaletteChange);
QApplication::sendEvent(QApplication::instance(), &e);
QWidgetList wids = QApplication::allWidgets();
for (QWidgetList::ConstIterator it = wids.constBegin(); it != wids.constEnd(); ++it) {
register QWidget *w = *it;
if (all || (!className && w->isWindow()) || w->inherits(className)) // matching class
QApplication::sendEvent(w, &e);
}
// Send to all scenes as well.
#ifndef QT_NO_GRAPHICSVIEW
QList<QGraphicsScene *> &scenes = qApp->d_func()->scene_list;
for (QList<QGraphicsScene *>::ConstIterator it = scenes.constBegin();
it != scenes.constEnd(); ++it) {
QApplication::sendEvent(*it, &e);
}
#endif //QT_NO_GRAPHICSVIEW
}
if (!className && (!QApplicationPrivate::sys_pal || !palette.isCopyOf(*QApplicationPrivate::sys_pal))) {
if (!QApplicationPrivate::set_pal)
QApplicationPrivate::set_pal = new QPalette(palette);
else
*QApplicationPrivate::set_pal = palette;
}
}
/*!
Changes the default application palette to \a palette.
If \a className is passed, the change applies only to widgets that inherit
\a className (as reported by QObject::inherits()). If \a className is left
0, the change affects all widgets, thus overriding any previously set class
specific palettes.
The palette may be changed according to the current GUI style in
QStyle::polish().
\warning Do not use this function in conjunction with \l{Qt Style Sheets}.
When using style sheets, the palette of a widget can be customized using
the "color", "background-color", "selection-color",
"selection-background-color" and "alternate-background-color".
\note Some styles do not use the palette for all drawing, for instance, if
they make use of native theme engines. This is the case for the Windows XP,
Windows Vista, and Mac OS X styles.
\sa QWidget::setPalette(), palette(), QStyle::polish()
*/
void QApplication::setPalette(const QPalette &palette, const char* className)
{
QApplicationPrivate::setPalette_helper(palette, className, /*clearWidgetPaletteHash=*/ true);
}
void QApplicationPrivate::setSystemPalette(const QPalette &pal)
{
QPalette adjusted;
#if 0
// adjust the system palette to avoid dithering
QColormap cmap = QColormap::instance();
if (cmap.depths() > 4 && cmap.depths() < 24) {
for (int g = 0; g < QPalette::NColorGroups; g++)
for (int i = 0; i < QPalette::NColorRoles; i++) {
QColor color = pal.color((QPalette::ColorGroup)g, (QPalette::ColorRole)i);
color = cmap.colorAt(cmap.pixel(color));
adjusted.setColor((QPalette::ColorGroup)g, (QPalette::ColorRole) i, color);
}
}
#else
adjusted = pal;
#endif
if (!sys_pal)
sys_pal = new QPalette(adjusted);
else
*sys_pal = adjusted;
if (!QApplicationPrivate::set_pal)
QApplication::setPalette(*sys_pal);
}
/*!
Returns the default application font.
\sa fontMetrics(), QWidget::font()
*/
QFont QApplication::font()
{
QMutexLocker locker(applicationFontMutex());
if (!QApplicationPrivate::app_font)
QApplicationPrivate::app_font = new QFont(QLatin1String("Helvetica"));
return *QApplicationPrivate::app_font;
}
/*!
\overload
Returns the default font for the \a widget.
\sa fontMetrics(), QWidget::setFont()
*/
QFont QApplication::font(const QWidget *widget)
{
FontHash *hash = app_fonts();
#ifdef Q_WS_MAC
// short circuit for small and mini controls
if (widget->testAttribute(Qt::WA_MacSmallSize)) {
return hash->value("QSmallFont");
} else if (widget->testAttribute(Qt::WA_MacMiniSize)) {
return hash->value("QMiniFont");
}
#endif
if (widget && hash && hash->size()) {
QHash<QByteArray, QFont>::ConstIterator it =
hash->constFind(widget->metaObject()->className());
if (it != hash->constEnd())
return it.value();
for (it = hash->constBegin(); it != hash->constEnd(); ++it) {
if (widget->inherits(it.key()))
return it.value();
}
}
return font();
}
/*!
\overload
Returns the font for widgets of the given \a className.
\sa setFont(), QWidget::font()
*/
QFont QApplication::font(const char *className)
{
FontHash *hash = app_fonts();
if (className && hash && hash->size()) {
QHash<QByteArray, QFont>::ConstIterator it = hash->constFind(className);
if (it != hash->constEnd())
return *it;
}
return font();
}
/*!
Changes the default application font to \a font. If \a className is passed,
the change applies only to classes that inherit \a className (as reported
by QObject::inherits()).
On application start-up, the default font depends on the window system. It
can vary depending on both the window system version and the locale. This
function lets you override the default font; but overriding may be a bad
idea because, for example, some locales need extra large fonts to support
their special characters.
\warning Do not use this function in conjunction with \l{Qt Style Sheets}.
The font of an application can be customized using the "font" style sheet
property. To set a bold font for all QPushButtons, set the application
styleSheet() as "QPushButton { font: bold }"
\sa font(), fontMetrics(), QWidget::setFont()
*/
void QApplication::setFont(const QFont &font, const char *className)
{
bool all = false;
FontHash *hash = app_fonts();
if (!className) {
QMutexLocker locker(applicationFontMutex());
if (!QApplicationPrivate::app_font)
QApplicationPrivate::app_font = new QFont(font);
else
*QApplicationPrivate::app_font = font;
if (hash && hash->size()) {
all = true;
hash->clear();
}
} else if (hash) {
hash->insert(className, font);
}
if (QApplicationPrivate::is_app_running && !QApplicationPrivate::is_app_closing) {
// Send ApplicationFontChange to qApp itself, and to the widgets.
QEvent e(QEvent::ApplicationFontChange);
QApplication::sendEvent(QApplication::instance(), &e);
QWidgetList wids = QApplication::allWidgets();
for (QWidgetList::ConstIterator it = wids.constBegin(); it != wids.constEnd(); ++it) {
register QWidget *w = *it;
if (all || (!className && w->isWindow()) || w->inherits(className)) // matching class
sendEvent(w, &e);
}
#ifndef QT_NO_GRAPHICSVIEW
// Send to all scenes as well.
QList<QGraphicsScene *> &scenes = qApp->d_func()->scene_list;
for (QList<QGraphicsScene *>::ConstIterator it = scenes.constBegin();
it != scenes.constEnd(); ++it) {
QApplication::sendEvent(*it, &e);
}
#endif //QT_NO_GRAPHICSVIEW
}
if (!className && (!QApplicationPrivate::sys_font || !font.isCopyOf(*QApplicationPrivate::sys_font))) {
if (!QApplicationPrivate::set_font)
QApplicationPrivate::set_font = new QFont(font);
else
*QApplicationPrivate::set_font = font;
}
}
/*! \internal
*/
void QApplicationPrivate::setSystemFont(const QFont &font)
{
if (!sys_font)
sys_font = new QFont(font);
else
*sys_font = font;
if (!QApplicationPrivate::set_font)
QApplication::setFont(*sys_font);
}
/*! \internal
*/
QString QApplicationPrivate::desktopStyleKey()
{
return qt_guiPlatformPlugin()->styleName();
}
/*!
\property QApplication::windowIcon
\brief the default window icon
\sa QWidget::setWindowIcon(), {Setting the Application Icon}
*/
QIcon QApplication::windowIcon()
{
return QApplicationPrivate::app_icon ? *QApplicationPrivate::app_icon : QIcon();
}
void QApplication::setWindowIcon(const QIcon &icon)
{
if (!QApplicationPrivate::app_icon)
QApplicationPrivate::app_icon = new QIcon();
*QApplicationPrivate::app_icon = icon;
if (QApplicationPrivate::is_app_running && !QApplicationPrivate::is_app_closing) {
#ifdef Q_WS_MAC
void qt_mac_set_app_icon(const QPixmap &); //qapplication_mac.cpp
QSize size = QApplicationPrivate::app_icon->actualSize(QSize(128, 128));
qt_mac_set_app_icon(QApplicationPrivate::app_icon->pixmap(size));
#endif
QEvent e(QEvent::ApplicationWindowIconChange);
QWidgetList all = QApplication::allWidgets();
for (QWidgetList::ConstIterator it = all.constBegin(); it != all.constEnd(); ++it) {
register QWidget *w = *it;
if (w->isWindow())
sendEvent(w, &e);
}
}
}
/*!
Returns a list of the top-level widgets (windows) in the application.
\note Some of the top-level widgets may be hidden, for example a tooltip if
no tooltip is currently shown.
Example:
\snippet doc/src/snippets/code/src_gui_kernel_qapplication.cpp 4
\sa allWidgets(), QWidget::isWindow(), QWidget::isHidden()
*/
QWidgetList QApplication::topLevelWidgets()
{
QWidgetList list;
QWidgetList all = allWidgets();
for (QWidgetList::ConstIterator it = all.constBegin(); it != all.constEnd(); ++it) {
QWidget *w = *it;
if (w->isWindow() && w->windowType() != Qt::Desktop)
list.append(w);
}
return list;
}
/*!
Returns a list of all the widgets in the application.
The list is empty (QList::isEmpty()) if there are no widgets.
\note Some of the widgets may be hidden.
Example:
\snippet doc/src/snippets/code/src_gui_kernel_qapplication.cpp 5
\sa topLevelWidgets(), QWidget::isVisible()
*/
QWidgetList QApplication::allWidgets()
{
if (QWidgetPrivate::allWidgets)
return QWidgetPrivate::allWidgets->toList();
return QWidgetList();
}
/*!
Returns the application widget that has the keyboard input focus, or 0 if
no widget in this application has the focus.
\sa QWidget::setFocus(), QWidget::hasFocus(), activeWindow(), focusChanged()
*/
QWidget *QApplication::focusWidget()
{
return QApplicationPrivate::focus_widget;
}
void QApplicationPrivate::setFocusWidget(QWidget *focus, Qt::FocusReason reason)
{
#ifndef QT_NO_GRAPHICSVIEW
if (focus && focus->window()->graphicsProxyWidget())
return;
#endif
hidden_focus_widget = 0;
if (focus != focus_widget) {
if (focus && focus->isHidden()) {
hidden_focus_widget = focus;
return;
}
if (focus && (reason == Qt::BacktabFocusReason || reason == Qt::TabFocusReason)
&& qt_in_tab_key_event)
focus->window()->setAttribute(Qt::WA_KeyboardFocusChange);
else if (focus && reason == Qt::ShortcutFocusReason) {
focus->window()->setAttribute(Qt::WA_KeyboardFocusChange);
}
QWidget *prev = focus_widget;
focus_widget = focus;
#ifndef QT_NO_IM
if (prev && ((reason != Qt::PopupFocusReason && reason != Qt::MenuBarFocusReason
&& prev->testAttribute(Qt::WA_InputMethodEnabled))
// Do reset the input context, in case the new focus widget won't accept keyboard input
// or it is not created fully yet.
|| (focus_widget && (!focus_widget->testAttribute(Qt::WA_InputMethodEnabled)
|| !focus_widget->testAttribute(Qt::WA_WState_Created))))) {
QInputContext *qic = prev->inputContext();
if(qic) {
qic->reset();
qic->setFocusWidget(0);
}
}
#endif //QT_NO_IM
if(focus_widget)
focus_widget->d_func()->setFocus_sys();
if (reason != Qt::NoFocusReason) {
//send events
if (prev) {
#ifdef QT_KEYPAD_NAVIGATION
if (QApplication::keypadNavigationEnabled()) {
if (prev->hasEditFocus() && reason != Qt::PopupFocusReason
#ifdef Q_OS_SYMBIAN
&& reason != Qt::ActiveWindowFocusReason
#endif
)
prev->setEditFocus(false);
}
#endif
#ifndef QT_NO_IM
if (focus) {
QInputContext *prevIc;
prevIc = prev->inputContext();
if (prevIc && prevIc != focus->inputContext()) {
QEvent closeSIPEvent(QEvent::CloseSoftwareInputPanel);
QApplication::sendEvent(prev, &closeSIPEvent);
}
}
#endif
QFocusEvent out(QEvent::FocusOut, reason);
QPointer<QWidget> that = prev;
QApplication::sendEvent(prev, &out);
if (that)
QApplication::sendEvent(that->style(), &out);
}
if(focus && QApplicationPrivate::focus_widget == focus) {
#ifndef QT_NO_IM
if (focus->testAttribute(Qt::WA_InputMethodEnabled)) {
QInputContext *qic = focus->inputContext();
if (qic && focus->testAttribute(Qt::WA_WState_Created)
&& focus->isEnabled())
qic->setFocusWidget(focus);
}
#endif //QT_NO_IM
QFocusEvent in(QEvent::FocusIn, reason);
QPointer<QWidget> that = focus;
QApplication::sendEvent(focus, &in);
if (that)
QApplication::sendEvent(that->style(), &in);
}
emit qApp->focusChanged(prev, focus_widget);
}
}
}
/*!
Returns the application top-level window that has the keyboard input focus,
or 0 if no application window has the focus. There might be an
activeWindow() even if there is no focusWidget(), for example if no widget
in that window accepts key events.
\sa QWidget::setFocus(), QWidget::hasFocus(), focusWidget()
*/
QWidget *QApplication::activeWindow()
{
return QApplicationPrivate::active_window;
}
/*!
Returns display (screen) font metrics for the application font.
\sa font(), setFont(), QWidget::fontMetrics(), QPainter::fontMetrics()
*/
QFontMetrics QApplication::fontMetrics()
{
return desktop()->fontMetrics();
}
/*!
Closes all top-level windows.
This function is particularly useful for applications with many top-level
windows. It could, for example, be connected to a \gui{Exit} entry in the
\gui{File} menu:
\snippet examples/mainwindows/mdi/mainwindow.cpp 0
The windows are closed in random order, until one window does not accept
the close event. The application quits when the last window was
successfully closed; this can be turned off by setting
\l quitOnLastWindowClosed to false.
\sa quitOnLastWindowClosed, lastWindowClosed(), QWidget::close(),
QWidget::closeEvent(), lastWindowClosed(), quit(), topLevelWidgets(),
QWidget::isWindow()
*/
void QApplication::closeAllWindows()
{
bool did_close = true;
QWidget *w;
while ((w = activeModalWidget()) && did_close) {
if (!w->isVisible() || w->data->is_closing)
break;
did_close = w->close();
}
QWidgetList list = QApplication::topLevelWidgets();
for (int i = 0; did_close && i < list.size(); ++i) {
w = list.at(i);
if (w->isVisible()
&& w->windowType() != Qt::Desktop
&& !w->data->is_closing) {
did_close = w->close();
list = QApplication::topLevelWidgets();
i = -1;
}
}
}
/*!
Displays a simple message box about Qt. The message includes the version
number of Qt being used by the application.
This is useful for inclusion in the \gui Help menu of an application, as
shown in the \l{mainwindows/menus}{Menus} example.
This function is a convenience slot for QMessageBox::aboutQt().
*/
void QApplication::aboutQt()
{
#ifndef QT_NO_MESSAGEBOX
QMessageBox::aboutQt(
#ifdef Q_WS_MAC
0
#else
activeWindow()
#endif // Q_WS_MAC
);
#endif // QT_NO_MESSAGEBOX
}
/*!
\fn void QApplication::lastWindowClosed()
This signal is emitted from QApplication::exec() when the last visible
primary window (i.e. window with no parent) with the Qt::WA_QuitOnClose
attribute set is closed.
By default,
\list
\o this attribute is set for all widgets except transient windows such
as splash screens, tool windows, and popup menus
\o QApplication implicitly quits when this signal is emitted.
\endlist
This feature can be turned off by setting \l quitOnLastWindowClosed to
false.
\sa QWidget::close()
*/
/*!
\since 4.1
\fn void QApplication::focusChanged(QWidget *old, QWidget *now)
This signal is emitted when the widget that has keyboard focus changed from
\a old to \a now, i.e., because the user pressed the tab-key, clicked into
a widget or changed the active window. Both \a old and \a now can be the
null-pointer.
The signal is emitted after both widget have been notified about the change
through QFocusEvent.
\sa QWidget::setFocus(), QWidget::clearFocus(), Qt::FocusReason
*/
/*!
\since 4.5
\fn void QApplication::fontDatabaseChanged()
This signal is emitted when application fonts are loaded or removed.
\sa QFontDatabase::addApplicationFont(),
QFontDatabase::addApplicationFontFromData(),
QFontDatabase::removeAllApplicationFonts(),
QFontDatabase::removeApplicationFont()
*/
#ifndef QT_NO_TRANSLATION
static bool qt_detectRTLLanguage()
{
return force_reverse ^
(QApplication::tr("QT_LAYOUT_DIRECTION",
"Translate this string to the string 'LTR' in left-to-right"
" languages or to 'RTL' in right-to-left languages (such as Hebrew"
" and Arabic) to get proper widget layout.") == QLatin1String("RTL"));
}
#if defined(Q_WS_MAC)
static const char *application_menu_strings[] = {
QT_TRANSLATE_NOOP("MAC_APPLICATION_MENU","Services"),
QT_TRANSLATE_NOOP("MAC_APPLICATION_MENU","Hide %1"),
QT_TRANSLATE_NOOP("MAC_APPLICATION_MENU","Hide Others"),
QT_TRANSLATE_NOOP("MAC_APPLICATION_MENU","Show All"),
QT_TRANSLATE_NOOP("MAC_APPLICATION_MENU","Preferences..."),
QT_TRANSLATE_NOOP("MAC_APPLICATION_MENU","Quit %1"),
QT_TRANSLATE_NOOP("MAC_APPLICATION_MENU","About %1")
};
QString qt_mac_applicationmenu_string(int type)
{
QString menuString = QString::fromLatin1(application_menu_strings[type]);
QString translated = qApp->translate("QMenuBar", application_menu_strings[type]);
if (translated != menuString)
return translated;
else
return qApp->translate("MAC_APPLICATION_MENU",
application_menu_strings[type]);
}
#endif
#endif
/*!\reimp
*/
bool QApplication::event(QEvent *e)
{
Q_D(QApplication);
if(e->type() == QEvent::Close) {
QCloseEvent *ce = static_cast<QCloseEvent*>(e);
ce->accept();
closeAllWindows();
QWidgetList list = topLevelWidgets();
for (int i = 0; i < list.size(); ++i) {
QWidget *w = list.at(i);
if (w->isVisible() && !(w->windowType() == Qt::Desktop) && !(w->windowType() == Qt::Popup) &&
(!(w->windowType() == Qt::Dialog) || !w->parentWidget())) {
ce->ignore();
break;
}
}
if(ce->isAccepted())
return true;
} else if(e->type() == QEvent::LanguageChange) {
#ifndef QT_NO_TRANSLATION
setLayoutDirection(qt_detectRTLLanguage()?Qt::RightToLeft:Qt::LeftToRight);
#endif
#if defined(QT_MAC_USE_COCOA)
qt_mac_post_retranslateAppMenu();
#endif
QWidgetList list = topLevelWidgets();
for (int i = 0; i < list.size(); ++i) {
QWidget *w = list.at(i);
if (!(w->windowType() == Qt::Desktop))
postEvent(w, new QEvent(QEvent::LanguageChange));
}
#ifndef Q_OS_WIN
} else if (e->type() == QEvent::LocaleChange) {
// on Windows the event propagation is taken care by the
// WM_SETTINGCHANGE event handler.
QWidgetList list = topLevelWidgets();
for (int i = 0; i < list.size(); ++i) {
QWidget *w = list.at(i);
if (!(w->windowType() == Qt::Desktop)) {
if (!w->testAttribute(Qt::WA_SetLocale))
w->d_func()->setLocale_helper(QLocale(), true);
}
}
#endif
} else if (e->type() == QEvent::Timer) {
QTimerEvent *te = static_cast<QTimerEvent*>(e);
Q_ASSERT(te != 0);
if (te->timerId() == d->toolTipWakeUp.timerId()) {
d->toolTipWakeUp.stop();
if (d->toolTipWidget) {
QWidget *w = d->toolTipWidget->window();
// show tooltip if WA_AlwaysShowToolTips is set, or if
// any ancestor of d->toolTipWidget is the active
// window
bool showToolTip = w->testAttribute(Qt::WA_AlwaysShowToolTips);
while (w && !showToolTip) {
showToolTip = w->isActiveWindow();
w = w->parentWidget();
w = w ? w->window() : 0;
}
if (showToolTip) {
QHelpEvent e(QEvent::ToolTip, d->toolTipPos, d->toolTipGlobalPos);
QApplication::sendEvent(d->toolTipWidget, &e);
if (e.isAccepted())
d->toolTipFallAsleep.start(2000, this);
}
}
} else if (te->timerId() == d->toolTipFallAsleep.timerId()) {
d->toolTipFallAsleep.stop();
}
}
return QCoreApplication::event(e);
}
#if !defined(Q_WS_X11)
// The doc and X implementation of this function is in qapplication_x11.cpp
void QApplication::syncX() {} // do nothing
#endif
/*!
\fn Qt::WindowsVersion QApplication::winVersion()
Use \l QSysInfo::WindowsVersion instead.
*/
/*!
\fn void QApplication::setActiveWindow(QWidget* active)
Sets the active window to the \a active widget in response to a system
event. The function is called from the platform specific event handlers.
\warning This function does \e not set the keyboard focus to the active
widget. Call QWidget::activateWindow() instead.
It sets the activeWindow() and focusWidget() attributes and sends proper
\l{QEvent::WindowActivate}{WindowActivate}/\l{QEvent::WindowDeactivate}
{WindowDeactivate} and \l{QEvent::FocusIn}{FocusIn}/\l{QEvent::FocusOut}
{FocusOut} events to all appropriate widgets. The window will then be
painted in active state (e.g. cursors in line edits will blink), and it
will have tool tips enabled.
\sa activeWindow(), QWidget::activateWindow()
*/
void QApplication::setActiveWindow(QWidget* act)
{
QWidget* window = act?act->window():0;
if (QApplicationPrivate::active_window == window)
return;
#ifndef QT_NO_GRAPHICSVIEW
if (window && window->graphicsProxyWidget()) {
// Activate the proxy's view->viewport() ?
return;
}
#endif
QWidgetList toBeActivated;
QWidgetList toBeDeactivated;
if (QApplicationPrivate::active_window) {
if (style()->styleHint(QStyle::SH_Widget_ShareActivation, 0, QApplicationPrivate::active_window)) {
QWidgetList list = topLevelWidgets();
for (int i = 0; i < list.size(); ++i) {
QWidget *w = list.at(i);
if (w->isVisible() && w->isActiveWindow())
toBeDeactivated.append(w);
}
} else {
toBeDeactivated.append(QApplicationPrivate::active_window);
}
}
#if !defined(Q_WS_MAC)
QWidget *previousActiveWindow = QApplicationPrivate::active_window;
#endif
QApplicationPrivate::active_window = window;
if (QApplicationPrivate::active_window) {
if (style()->styleHint(QStyle::SH_Widget_ShareActivation, 0, QApplicationPrivate::active_window)) {
QWidgetList list = topLevelWidgets();
for (int i = 0; i < list.size(); ++i) {
QWidget *w = list.at(i);
if (w->isVisible() && w->isActiveWindow())
toBeActivated.append(w);
}
} else {
toBeActivated.append(QApplicationPrivate::active_window);
}
}
// first the activation/deactivation events
QEvent activationChange(QEvent::ActivationChange);
QEvent windowActivate(QEvent::WindowActivate);
QEvent windowDeactivate(QEvent::WindowDeactivate);
#if !defined(Q_WS_MAC)
if (!previousActiveWindow) {
QEvent appActivate(QEvent::ApplicationActivate);
sendSpontaneousEvent(qApp, &appActivate);
}
#endif
for (int i = 0; i < toBeActivated.size(); ++i) {
QWidget *w = toBeActivated.at(i);
sendSpontaneousEvent(w, &windowActivate);
sendSpontaneousEvent(w, &activationChange);
}
#ifdef QT_MAC_USE_COCOA
// In case the user clicked on a child window, we need to
// reestablish the stacking order of the window so
// it pops in front of other child windows in cocoa:
qt_cocoaStackChildWindowOnTopOfOtherChildren(window);
#endif
for(int i = 0; i < toBeDeactivated.size(); ++i) {
QWidget *w = toBeDeactivated.at(i);
sendSpontaneousEvent(w, &windowDeactivate);
sendSpontaneousEvent(w, &activationChange);
}
#if !defined(Q_WS_MAC)
if (!QApplicationPrivate::active_window) {
QEvent appDeactivate(QEvent::ApplicationDeactivate);
sendSpontaneousEvent(qApp, &appDeactivate);
}
#endif
if (QApplicationPrivate::popupWidgets == 0) { // !inPopupMode()
// then focus events
if (!QApplicationPrivate::active_window && QApplicationPrivate::focus_widget) {
QApplicationPrivate::setFocusWidget(0, Qt::ActiveWindowFocusReason);
} else if (QApplicationPrivate::active_window) {
QWidget *w = QApplicationPrivate::active_window->focusWidget();
if (w && w->isVisible() /*&& w->focusPolicy() != QWidget::NoFocus*/)
w->setFocus(Qt::ActiveWindowFocusReason);
else {
w = QApplicationPrivate::focusNextPrevChild_helper(QApplicationPrivate::active_window, true);
if (w) {
w->setFocus(Qt::ActiveWindowFocusReason);
} else {
// If the focus widget is not in the activate_window, clear the focus
w = QApplicationPrivate::focus_widget;
if (!w && QApplicationPrivate::active_window->focusPolicy() != Qt::NoFocus)
QApplicationPrivate::setFocusWidget(QApplicationPrivate::active_window, Qt::ActiveWindowFocusReason);
else if (!QApplicationPrivate::active_window->isAncestorOf(w))
QApplicationPrivate::setFocusWidget(0, Qt::ActiveWindowFocusReason);
}
}
}
}
}
/*!internal
* Helper function that returns the new focus widget, but does not set the focus reason.
* Returns 0 if a new focus widget could not be found.
* Shared with QGraphicsProxyWidgetPrivate::findFocusChild()
*/
QWidget *QApplicationPrivate::focusNextPrevChild_helper(QWidget *toplevel, bool next)
{
uint focus_flag = qt_tab_all_widgets ? Qt::TabFocus : Qt::StrongFocus;
QWidget *f = toplevel->focusWidget();
if (!f)
f = toplevel;
QWidget *w = f;
QWidget *test = f->d_func()->focus_next;
while (test && test != f) {
if ((test->focusPolicy() & focus_flag) == focus_flag
&& !(test->d_func()->extra && test->d_func()->extra->focus_proxy)
&& test->isVisibleTo(toplevel) && test->isEnabled()
&& !(w->windowType() == Qt::SubWindow && !w->isAncestorOf(test))
&& (toplevel->windowType() != Qt::SubWindow || toplevel->isAncestorOf(test))) {
w = test;
if (next)
break;
}
test = test->d_func()->focus_next;
}
if (w == f) {
if (qt_in_tab_key_event) {
w->window()->setAttribute(Qt::WA_KeyboardFocusChange);
w->update();
}
return 0;
}
return w;
}
/*!
\fn void QApplicationPrivate::dispatchEnterLeave(QWidget* enter, QWidget* leave)
\internal
Creates the proper Enter/Leave event when widget \a enter is entered and
widget \a leave is left.
*/
void QApplicationPrivate::dispatchEnterLeave(QWidget* enter, QWidget* leave) {
#if 0
if (leave) {
QEvent e(QEvent::Leave);
QApplication::sendEvent(leave, & e);
}
if (enter) {
QEvent e(QEvent::Enter);
QApplication::sendEvent(enter, & e);
}
return;
#endif
QWidget* w ;
if ((!enter && !leave) || (enter == leave))
return;
#ifdef ALIEN_DEBUG
qDebug() << "QApplicationPrivate::dispatchEnterLeave, ENTER:" << enter << "LEAVE:" << leave;
#endif
QWidgetList leaveList;
QWidgetList enterList;
bool sameWindow = leave && enter && leave->window() == enter->window();
if (leave && !sameWindow) {
w = leave;
do {
leaveList.append(w);
} while (!w->isWindow() && (w = w->parentWidget()));
}
if (enter && !sameWindow) {
w = enter;
do {
enterList.prepend(w);
} while (!w->isWindow() && (w = w->parentWidget()));
}
if (sameWindow) {
int enterDepth = 0;
int leaveDepth = 0;
w = enter;
while (!w->isWindow() && (w = w->parentWidget()))
enterDepth++;
w = leave;
while (!w->isWindow() && (w = w->parentWidget()))
leaveDepth++;
QWidget* wenter = enter;
QWidget* wleave = leave;
while (enterDepth > leaveDepth) {
wenter = wenter->parentWidget();
enterDepth--;
}
while (leaveDepth > enterDepth) {
wleave = wleave->parentWidget();
leaveDepth--;
}
while (!wenter->isWindow() && wenter != wleave) {
wenter = wenter->parentWidget();
wleave = wleave->parentWidget();
}
w = leave;
while (w != wleave) {
leaveList.append(w);
w = w->parentWidget();
}
w = enter;
while (w != wenter) {
enterList.prepend(w);
w = w->parentWidget();
}
}
QEvent leaveEvent(QEvent::Leave);
for (int i = 0; i < leaveList.size(); ++i) {
w = leaveList.at(i);
if (!QApplication::activeModalWidget() || QApplicationPrivate::tryModalHelper(w, 0)) {
#if defined(Q_WS_WIN) || defined(Q_WS_X11)
if (leaveAfterRelease == w)
leaveAfterRelease = 0;
#endif
QApplication::sendEvent(w, &leaveEvent);
if (w->testAttribute(Qt::WA_Hover) &&
(!QApplication::activePopupWidget() || QApplication::activePopupWidget() == w->window())) {
Q_ASSERT(instance());
QHoverEvent he(QEvent::HoverLeave, QPoint(-1, -1), w->mapFromGlobal(QApplicationPrivate::instance()->hoverGlobalPos));
qApp->d_func()->notify_helper(w, &he);
}
}
}
QPoint posEnter = QCursor::pos();
QEvent enterEvent(QEvent::Enter);
for (int i = 0; i < enterList.size(); ++i) {
w = enterList.at(i);
if (!QApplication::activeModalWidget() || QApplicationPrivate::tryModalHelper(w, 0)) {
QApplication::sendEvent(w, &enterEvent);
if (w->testAttribute(Qt::WA_Hover) &&
(!QApplication::activePopupWidget() || QApplication::activePopupWidget() == w->window())) {
QHoverEvent he(QEvent::HoverEnter, w->mapFromGlobal(posEnter), QPoint(-1, -1));
qApp->d_func()->notify_helper(w, &he);
}
}
}
#ifndef QT_NO_CURSOR
// Update cursor for alien/graphics widgets.
const bool enterOnAlien = (enter && (isAlien(enter) || enter->testAttribute(Qt::WA_DontShowOnScreen)));
#if defined(Q_WS_X11)
//Whenever we leave an alien widget on X11, we need to reset its nativeParentWidget()'s cursor.
// This is not required on Windows as the cursor is reset on every single mouse move.
QWidget *parentOfLeavingCursor = 0;
for (int i = 0; i < leaveList.size(); ++i) {
w = leaveList.at(i);
if (!isAlien(w))
break;
if (w->testAttribute(Qt::WA_SetCursor)) {
QWidget *parent = w->parentWidget();
while (parent && parent->d_func()->data.in_destructor)
parent = parent->parentWidget();
parentOfLeavingCursor = parent;
//continue looping, we need to find the downest alien widget with a cursor.
// (downest on the screen)
}
}
//check that we will not call qt_x11_enforce_cursor twice with the same native widget
if (parentOfLeavingCursor && (!enterOnAlien
|| parentOfLeavingCursor->effectiveWinId() != enter->effectiveWinId())) {
#ifndef QT_NO_GRAPHICSVIEW
if (!parentOfLeavingCursor->window()->graphicsProxyWidget())
#endif
{
qt_x11_enforce_cursor(parentOfLeavingCursor,true);
}
}
#endif
if (enterOnAlien) {
QWidget *cursorWidget = enter;
while (!cursorWidget->isWindow() && !cursorWidget->isEnabled())
cursorWidget = cursorWidget->parentWidget();
if (!cursorWidget)
return;
#ifndef QT_NO_GRAPHICSVIEW
if (cursorWidget->window()->graphicsProxyWidget()) {
QWidgetPrivate::nearestGraphicsProxyWidget(cursorWidget)->setCursor(cursorWidget->cursor());
} else
#endif
{
#if defined(Q_WS_WIN)
qt_win_set_cursor(cursorWidget, true);
#elif defined(Q_WS_X11)
qt_x11_enforce_cursor(cursorWidget, true);
#elif defined(Q_OS_SYMBIAN)
qt_symbian_set_cursor(cursorWidget, true);
#endif
}
}
#endif
}
/* exported for the benefit of testing tools */
Q_GUI_EXPORT bool qt_tryModalHelper(QWidget *widget, QWidget **rettop)
{
return QApplicationPrivate::tryModalHelper(widget, rettop);
}
/*! \internal
Returns true if \a widget is blocked by a modal window.
*/
bool QApplicationPrivate::isBlockedByModal(QWidget *widget)
{
widget = widget->window();
if (!modalState())
return false;
if (QApplication::activePopupWidget() == widget)
return false;
for (int i = 0; i < qt_modal_stack->size(); ++i) {
QWidget *modalWidget = qt_modal_stack->at(i);
{
// check if the active modal widget is our widget or a parent of our widget
QWidget *w = widget;
while (w) {
if (w == modalWidget)
return false;
w = w->parentWidget();
}
#ifdef Q_WS_WIN
if ((widget->testAttribute(Qt::WA_WState_Created) || widget->data->winid)
&& (modalWidget->testAttribute(Qt::WA_WState_Created) || modalWidget->data->winid)
&& IsChild(modalWidget->data->winid, widget->data->winid))
return false;
#endif
}
Qt::WindowModality windowModality = modalWidget->windowModality();
if (windowModality == Qt::NonModal) {
// determine the modality type if it hasn't been set on the
// modalWidget, this normally happens when waiting for a
// native dialog. use WindowModal if we are the child of a
// group leader; otherwise use ApplicationModal.
QWidget *m = modalWidget;
while (m && !m->testAttribute(Qt::WA_GroupLeader)) {
m = m->parentWidget();
if (m)
m = m->window();
}
windowModality = (m && m->testAttribute(Qt::WA_GroupLeader))
? Qt::WindowModal
: Qt::ApplicationModal;
}
switch (windowModality) {
case Qt::ApplicationModal:
{
QWidget *groupLeaderForWidget = widget;
while (groupLeaderForWidget && !groupLeaderForWidget->testAttribute(Qt::WA_GroupLeader))
groupLeaderForWidget = groupLeaderForWidget->parentWidget();
if (groupLeaderForWidget) {
// if \a widget has WA_GroupLeader, it can only be blocked by ApplicationModal children
QWidget *m = modalWidget;
while (m && m != groupLeaderForWidget && !m->testAttribute(Qt::WA_GroupLeader))
m = m->parentWidget();
if (m == groupLeaderForWidget)
return true;
} else if (modalWidget != widget) {
return true;
}
break;
}
case Qt::WindowModal:
{
QWidget *w = widget;
do {
QWidget *m = modalWidget;
do {
if (m == w)
return true;
m = m->parentWidget();
if (m)
m = m->window();
} while (m);
w = w->parentWidget();
if (w)
w = w->window();
} while (w);
break;
}
default:
Q_ASSERT_X(false, "QApplication", "internal error, a modal widget cannot be modeless");
break;
}
}
return false;
}
/*!\internal
*/
void QApplicationPrivate::enterModal(QWidget *widget)
{
QSet<QWidget*> blocked;
QList<QWidget*> windows = QApplication::topLevelWidgets();
for (int i = 0; i < windows.count(); ++i) {
QWidget *window = windows.at(i);
if (window->windowType() != Qt::Tool && isBlockedByModal(window))
blocked.insert(window);
}
enterModal_sys(widget);
windows = QApplication::topLevelWidgets();
QEvent e(QEvent::WindowBlocked);
for (int i = 0; i < windows.count(); ++i) {
QWidget *window = windows.at(i);
if (!blocked.contains(window) && window->windowType() != Qt::Tool && isBlockedByModal(window))
QApplication::sendEvent(window, &e);
}
}
/*!\internal
*/
void QApplicationPrivate::leaveModal(QWidget *widget)
{
QSet<QWidget*> blocked;
QList<QWidget*> windows = QApplication::topLevelWidgets();
for (int i = 0; i < windows.count(); ++i) {
QWidget *window = windows.at(i);
if (window->windowType() != Qt::Tool && isBlockedByModal(window))
blocked.insert(window);
}
leaveModal_sys(widget);
windows = QApplication::topLevelWidgets();
QEvent e(QEvent::WindowUnblocked);
for (int i = 0; i < windows.count(); ++i) {
QWidget *window = windows.at(i);
if(blocked.contains(window) && window->windowType() != Qt::Tool && !isBlockedByModal(window))
QApplication::sendEvent(window, &e);
}
}
/*!\internal
Called from qapplication_\e{platform}.cpp, returns true
if the widget should accept the event.
*/
bool QApplicationPrivate::tryModalHelper(QWidget *widget, QWidget **rettop)
{
QWidget *top = QApplication::activeModalWidget();
if (rettop)
*rettop = top;
// the active popup widget always gets the input event
if (QApplication::activePopupWidget())
return true;
#if defined(Q_WS_MAC) && defined(QT_MAC_USE_COCOA)
top = QApplicationPrivate::tryModalHelper_sys(top);
if (rettop)
*rettop = top;
#endif
return !isBlockedByModal(widget->window());
}
/*
\internal
*/
QWidget *QApplicationPrivate::pickMouseReceiver(QWidget *candidate, const QPoint &globalPos,
QPoint &pos, QEvent::Type type,
Qt::MouseButtons buttons, QWidget *buttonDown,
QWidget *alienWidget)
{
Q_ASSERT(candidate);
QWidget *mouseGrabber = QWidget::mouseGrabber();
if (((type == QEvent::MouseMove && buttons) || (type == QEvent::MouseButtonRelease))
&& !buttonDown && !mouseGrabber) {
return 0;
}
if (alienWidget && alienWidget->internalWinId())
alienWidget = 0;
QWidget *receiver = candidate;
if (!mouseGrabber)
mouseGrabber = (buttonDown && !isBlockedByModal(buttonDown)) ? buttonDown : alienWidget;
if (mouseGrabber && mouseGrabber != candidate) {
receiver = mouseGrabber;
pos = receiver->mapFromGlobal(globalPos);
#ifdef ALIEN_DEBUG
qDebug() << " ** receiver adjusted to:" << receiver << "pos:" << pos;
#endif
}
return receiver;
}
/*
\internal
*/
bool QApplicationPrivate::sendMouseEvent(QWidget *receiver, QMouseEvent *event,
QWidget *alienWidget, QWidget *nativeWidget,
QWidget **buttonDown, QPointer<QWidget> &lastMouseReceiver,
bool spontaneous)
{
Q_ASSERT(receiver);
Q_ASSERT(event);
Q_ASSERT(nativeWidget);
Q_ASSERT(buttonDown);
if (alienWidget && !isAlien(alienWidget))
alienWidget = 0;
QPointer<QWidget> receiverGuard = receiver;
QPointer<QWidget> nativeGuard = nativeWidget;
QPointer<QWidget> alienGuard = alienWidget;
QPointer<QWidget> activePopupWidget = QApplication::activePopupWidget();
const bool graphicsWidget = nativeWidget->testAttribute(Qt::WA_DontShowOnScreen);
if (*buttonDown) {
if (!graphicsWidget) {
// Register the widget that shall receive a leave event
// after the last button is released.
if ((alienWidget || !receiver->internalWinId()) && !leaveAfterRelease && !QWidget::mouseGrabber())
leaveAfterRelease = *buttonDown;
if (event->type() == QEvent::MouseButtonRelease && !event->buttons())
*buttonDown = 0;
}
} else if (lastMouseReceiver) {
// Dispatch enter/leave if we move:
// 1) from an alien widget to another alien widget or
// from a native widget to an alien widget (first OR case)
// 2) from an alien widget to a native widget (second OR case)
if ((alienWidget && alienWidget != lastMouseReceiver)
|| (isAlien(lastMouseReceiver) && !alienWidget)) {
if (activePopupWidget) {
if (!QWidget::mouseGrabber())
dispatchEnterLeave(alienWidget ? alienWidget : nativeWidget, lastMouseReceiver);
} else {
dispatchEnterLeave(receiver, lastMouseReceiver);
}
}
}
#ifdef ALIEN_DEBUG
qDebug() << "QApplicationPrivate::sendMouseEvent: receiver:" << receiver
<< "pos:" << event->pos() << "alien" << alienWidget << "button down"
<< *buttonDown << "last" << lastMouseReceiver << "leave after release"
<< leaveAfterRelease;
#endif
// We need this quard in case someone opens a modal dialog / popup. If that's the case
// leaveAfterRelease is set to null, but we shall not update lastMouseReceiver.
const bool wasLeaveAfterRelease = leaveAfterRelease != 0;
bool result;
if (spontaneous)
result = QApplication::sendSpontaneousEvent(receiver, event);
else
result = QApplication::sendEvent(receiver, event);
if (!graphicsWidget && leaveAfterRelease && event->type() == QEvent::MouseButtonRelease
&& !event->buttons() && QWidget::mouseGrabber() != leaveAfterRelease) {
// Dispatch enter/leave if:
// 1) the mouse grabber is an alien widget
// 2) the button is released on an alien widget
QWidget *enter = 0;
if (nativeGuard)
enter = alienGuard ? alienWidget : nativeWidget;
else // The receiver is typically deleted on mouse release with drag'n'drop.
enter = QApplication::widgetAt(event->globalPos());
dispatchEnterLeave(enter, leaveAfterRelease);
leaveAfterRelease = 0;
lastMouseReceiver = enter;
} else if (!wasLeaveAfterRelease) {
if (activePopupWidget) {
if (!QWidget::mouseGrabber())
lastMouseReceiver = alienGuard ? alienWidget : (nativeGuard ? nativeWidget : 0);
} else {
lastMouseReceiver = receiverGuard ? receiver : QApplication::widgetAt(event->globalPos());
}
}
return result;
}
#if defined(Q_WS_WIN) || defined(Q_WS_X11) || defined(Q_WS_QWS) || defined(Q_WS_MAC)
/*
This function should only be called when the widget changes visibility, i.e.
when the \a widget is shown, hidden or deleted. This function does nothing
if the widget is a top-level or native, i.e. not an alien widget. In that
case enter/leave events are genereated by the underlying windowing system.
*/
extern QPointer<QWidget> qt_last_mouse_receiver;
extern QWidget *qt_button_down;
void QApplicationPrivate::sendSyntheticEnterLeave(QWidget *widget)
{
#ifndef QT_NO_CURSOR
#ifdef Q_WS_QWS
if (!widget || widget->isWindow())
return;
#else
if (!widget || widget->internalWinId() || widget->isWindow())
return;
#endif
const bool widgetInShow = widget->isVisible() && !widget->data->in_destructor;
if (!widgetInShow && widget != qt_last_mouse_receiver)
return; // Widget was not under the cursor when it was hidden/deleted.
if (widgetInShow && widget->parentWidget()->data->in_show)
return; // Ingore recursive show.
QWidget *mouseGrabber = QWidget::mouseGrabber();
if (mouseGrabber && mouseGrabber != widget)
return; // Someone else has the grab; enter/leave should not occur.
QWidget *tlw = widget->window();
if (tlw->data->in_destructor || tlw->data->is_closing)
return; // Closing down the business.
if (widgetInShow && (!qt_last_mouse_receiver || qt_last_mouse_receiver->window() != tlw))
return; // Mouse cursor not inside the widget's top-level.
const QPoint globalPos(QCursor::pos());
QPoint pos = tlw->mapFromGlobal(globalPos);
// Find the current widget under the mouse. If this function was called from
// the widget's destructor, we have to make sure childAt() doesn't take into
// account widgets that are about to be destructed.
QWidget *widgetUnderCursor = tlw->d_func()->childAt_helper(pos, widget->data->in_destructor);
if (!widgetUnderCursor)
widgetUnderCursor = tlw;
else
pos = widgetUnderCursor->mapFrom(tlw, pos);
if (widgetInShow && widgetUnderCursor != widget && !widget->isAncestorOf(widgetUnderCursor))
return; // Mouse cursor not inside the widget or any of its children.
if (widget->data->in_destructor && qt_button_down == widget)
qt_button_down = 0;
// Send enter/leave events followed by a mouse move on the entered widget.
QMouseEvent e(QEvent::MouseMove, pos, globalPos, Qt::NoButton, Qt::NoButton, Qt::NoModifier);
sendMouseEvent(widgetUnderCursor, &e, widgetUnderCursor, tlw, &qt_button_down, qt_last_mouse_receiver);
#endif // QT_NO_CURSOR
}
#endif // Q_WS_WIN || Q_WS_X11 || Q_WS_MAC
/*!
Returns the desktop widget (also called the root window).
The desktop may be composed of multiple screens, so it would be incorrect,
for example, to attempt to \e center some widget in the desktop's geometry.
QDesktopWidget has various functions for obtaining useful geometries upon
the desktop, such as QDesktopWidget::screenGeometry() and
QDesktopWidget::availableGeometry().
On X11, it is also possible to draw on the desktop.
*/
QDesktopWidget *QApplication::desktop()
{
if (!qt_desktopWidget || // not created yet
!(qt_desktopWidget->windowType() == Qt::Desktop)) { // reparented away
qt_desktopWidget = new QDesktopWidget();
}
return qt_desktopWidget;
}
#ifndef QT_NO_CLIPBOARD
/*!
Returns a pointer to the application global clipboard.
\note The QApplication object should already be constructed before
accessing the clipboard.
*/
QClipboard *QApplication::clipboard()
{
if (qt_clipboard == 0) {
if (!qApp) {
qWarning("QApplication: Must construct a QApplication before accessing a QClipboard");
return 0;
}
qt_clipboard = new QClipboard(0);
}
return qt_clipboard;
}
#endif // QT_NO_CLIPBOARD
/*!
Sets whether Qt should use the system's standard colors, fonts, etc., to
\a on. By default, this is true.
This function must be called before creating the QApplication object, like
this:
\snippet doc/src/snippets/code/src_gui_kernel_qapplication.cpp 6
\sa desktopSettingsAware()
*/
void QApplication::setDesktopSettingsAware(bool on)
{
QApplicationPrivate::obey_desktop_settings = on;
}
/*!
Returns true if Qt is set to use the system's standard colors, fonts, etc.;
otherwise returns false. The default is true.
\sa setDesktopSettingsAware()
*/
bool QApplication::desktopSettingsAware()
{
return QApplicationPrivate::obey_desktop_settings;
}
/*!
Returns the current state of the modifier keys on the keyboard. The current
state is updated sychronously as the event queue is emptied of events that
will spontaneously change the keyboard state (QEvent::KeyPress and
QEvent::KeyRelease events).
It should be noted this may not reflect the actual keys held on the input
device at the time of calling but rather the modifiers as last reported in
one of the above events. If no keys are being held Qt::NoModifier is
returned.
\sa mouseButtons()
*/
Qt::KeyboardModifiers QApplication::keyboardModifiers()
{
return QApplicationPrivate::modifier_buttons;
}
/*!
Returns the current state of the buttons on the mouse. The current state is
updated syncronously as the event queue is emptied of events that will
spontaneously change the mouse state (QEvent::MouseButtonPress and
QEvent::MouseButtonRelease events).
It should be noted this may not reflect the actual buttons held on the
input device at the time of calling but rather the mouse buttons as last
reported in one of the above events. If no mouse buttons are being held
Qt::NoButton is returned.
\sa keyboardModifiers()
*/
Qt::MouseButtons QApplication::mouseButtons()
{
return QApplicationPrivate::mouse_buttons;
}
/*!
\fn bool QApplication::isSessionRestored() const
Returns true if the application has been restored from an earlier
\l{Session Management}{session}; otherwise returns false.
\sa sessionId(), commitData(), saveState()
*/
/*!
\fn QString QApplication::sessionId() const
Returns the current \l{Session Management}{session's} identifier.
If the application has been restored from an earlier session, this
identifier is the same as it was in that previous session. The session
identifier is guaranteed to be unique both for different applications
and for different instances of the same application.
\sa isSessionRestored(), sessionKey(), commitData(), saveState()
*/
/*!
\fn QString QApplication::sessionKey() const
Returns the session key in the current \l{Session Management}{session}.
If the application has been restored from an earlier session, this key is
the same as it was when the previous session ended.
The session key changes with every call of commitData() or saveState().
\sa isSessionRestored(), sessionId(), commitData(), saveState()
*/
#ifndef QT_NO_SESSIONMANAGER
bool QApplication::isSessionRestored() const
{
Q_D(const QApplication);
return d->is_session_restored;
}
QString QApplication::sessionId() const
{
Q_D(const QApplication);
return d->session_id;
}
QString QApplication::sessionKey() const
{
Q_D(const QApplication);
return d->session_key;
}
#endif
/*!
\since 4.2
\fn void QApplication::commitDataRequest(QSessionManager &manager)
This signal deals with \l{Session Management}{session management}. It is
emitted when the QSessionManager wants the application to commit all its
data.
Usually this means saving all open files, after getting permission from
the user. Furthermore you may want to provide a means by which the user
can cancel the shutdown.
You should not exit the application within this signal. Instead,
the session manager may or may not do this afterwards, depending on the
context.
\warning Within this signal, no user interaction is possible, \e
unless you ask the \a manager for explicit permission. See
QSessionManager::allowsInteraction() and
QSessionManager::allowsErrorInteraction() for details and example
usage.
\note You should use Qt::DirectConnection when connecting to this signal.
\sa isSessionRestored(), sessionId(), saveState(), {Session Management}
*/
/*!
This function deals with \l{Session Management}{session management}. It is
invoked when the QSessionManager wants the application to commit all its
data.
Usually this means saving all open files, after getting permission from the
user. Furthermore you may want to provide a means by which the user can
cancel the shutdown.
You should not exit the application within this function. Instead, the
session manager may or may not do this afterwards, depending on the
context.
\warning Within this function, no user interaction is possible, \e
unless you ask the \a manager for explicit permission. See
QSessionManager::allowsInteraction() and
QSessionManager::allowsErrorInteraction() for details and example
usage.
The default implementation requests interaction and sends a close event to
all visible top-level widgets. If any event was rejected, the shutdown is
canceled.
\sa isSessionRestored(), sessionId(), saveState(), {Session Management}
*/
#ifndef QT_NO_SESSIONMANAGER
void QApplication::commitData(QSessionManager& manager )
{
emit commitDataRequest(manager);
if (manager.allowsInteraction()) {
QWidgetList done;
QWidgetList list = QApplication::topLevelWidgets();
bool cancelled = false;
for (int i = 0; !cancelled && i < list.size(); ++i) {
QWidget* w = list.at(i);
if (w->isVisible() && !done.contains(w)) {
cancelled = !w->close();
if (!cancelled)
done.append(w);
list = QApplication::topLevelWidgets();
i = -1;
}
}
if (cancelled)
manager.cancel();
}
}
/*!
\since 4.2
\fn void QApplication::saveStateRequest(QSessionManager &manager)
This signal deals with \l{Session Management}{session management}. It is
invoked when the \l{QSessionManager}{session manager} wants the application
to preserve its state for a future session.
For example, a text editor would create a temporary file that includes the
current contents of its edit buffers, the location of the cursor and other
aspects of the current editing session.
You should never exit the application within this signal. Instead, the
session manager may or may not do this afterwards, depending on the
context. Futhermore, most session managers will very likely request a saved
state immediately after the application has been started. This permits the
session manager to learn about the application's restart policy.
\warning Within this function, no user interaction is possible, \e
unless you ask the \a manager for explicit permission. See
QSessionManager::allowsInteraction() and
QSessionManager::allowsErrorInteraction() for details.
\note You should use Qt::DirectConnection when connecting to this signal.
\sa isSessionRestored(), sessionId(), commitData(), {Session Management}
*/
/*!
This function deals with \l{Session Management}{session management}. It is
invoked when the \l{QSessionManager}{session manager} wants the application
to preserve its state for a future session.
For example, a text editor would create a temporary file that includes the
current contents of its edit buffers, the location of the cursor and other
aspects of the current editing session.
You should never exit the application within this function. Instead, the
session manager may or may not do this afterwards, depending on the
context. Futhermore, most session managers will very likely request a saved
state immediately after the application has been started. This permits the
session manager to learn about the application's restart policy.
\warning Within this function, no user interaction is possible, \e
unless you ask the \a manager for explicit permission. See
QSessionManager::allowsInteraction() and
QSessionManager::allowsErrorInteraction() for details.
\sa isSessionRestored(), sessionId(), commitData(), {Session Management}
*/
void QApplication::saveState(QSessionManager &manager)
{
emit saveStateRequest(manager);
}
#endif //QT_NO_SESSIONMANAGER
/*
Sets the time after which a drag should start to \a ms ms.
\sa startDragTime()
*/
void QApplication::setStartDragTime(int ms)
{
drag_time = ms;
}
/*!
\property QApplication::startDragTime
\brief the time in milliseconds that a mouse button must be held down
before a drag and drop operation will begin
If you support drag and drop in your application, and want to start a drag
and drop operation after the user has held down a mouse button for a
certain amount of time, you should use this property's value as the delay.
Qt also uses this delay internally, e.g. in QTextEdit and QLineEdit, for
starting a drag.
The default value is 500 ms.
\sa startDragDistance(), {Drag and Drop}
*/
int QApplication::startDragTime()
{
return drag_time;
}
/*
Sets the distance after which a drag should start to \a l pixels.
\sa startDragDistance()
*/
void QApplication::setStartDragDistance(int l)
{
drag_distance = l;
}
/*!
\property QApplication::startDragDistance
If you support drag and drop in your application, and want to start a drag
and drop operation after the user has moved the cursor a certain distance
with a button held down, you should use this property's value as the
minimum distance required.
For example, if the mouse position of the click is stored in \c startPos
and the current position (e.g. in the mouse move event) is \c currentPos,
you can find out if a drag should be started with code like this:
\snippet doc/src/snippets/code/src_gui_kernel_qapplication.cpp 7
Qt uses this value internally, e.g. in QFileDialog.
The default value is 4 pixels.
\sa startDragTime() QPoint::manhattanLength() {Drag and Drop}
*/
int QApplication::startDragDistance()
{
return drag_distance;
}
/*!
\fn void QApplication::setReverseLayout(bool reverse)
Use setLayoutDirection() instead.
*/
/*!
\fn void QApplication::reverseLayout()
Use layoutDirection() instead.
*/
/*!
\fn bool QApplication::isRightToLeft()
Returns true if the application's layout direction is
Qt::RightToLeft; otherwise returns false.
\sa layoutDirection(), isLeftToRight()
*/
/*!
\fn bool QApplication::isLeftToRight()
Returns true if the application's layout direction is
Qt::LeftToRight; otherwise returns false.
\sa layoutDirection(), isRightToLeft()
*/
/*!
\property QApplication::layoutDirection
\brief the default layout direction for this application
On system start-up, the default layout direction depends on the
application's language.
\sa QWidget::layoutDirection, isLeftToRight(), isRightToLeft()
*/
void QApplication::setLayoutDirection(Qt::LayoutDirection direction)
{
if (layout_direction == direction || direction == Qt::LayoutDirectionAuto)
return;
layout_direction = direction;
QWidgetList list = topLevelWidgets();
for (int i = 0; i < list.size(); ++i) {
QWidget *w = list.at(i);
QEvent ev(QEvent::ApplicationLayoutDirectionChange);
sendEvent(w, &ev);
}
}
Qt::LayoutDirection QApplication::layoutDirection()
{
return layout_direction;
}
/*!
\obsolete
Strips out vertical alignment flags and transforms an alignment \a align
of Qt::AlignLeft into Qt::AlignLeft or Qt::AlignRight according to the
language used.
*/
#ifdef QT3_SUPPORT
Qt::Alignment QApplication::horizontalAlignment(Qt::Alignment align)
{
return QStyle::visualAlignment(layoutDirection(), align);
}
#endif
/*!
\fn QCursor *QApplication::overrideCursor()
Returns the active application override cursor.
This function returns 0 if no application cursor has been defined (i.e. the
internal cursor stack is empty).
\sa setOverrideCursor(), restoreOverrideCursor()
*/
#ifndef QT_NO_CURSOR
QCursor *QApplication::overrideCursor()
{
return qApp->d_func()->cursor_list.isEmpty() ? 0 : &qApp->d_func()->cursor_list.first();
}
/*!
Changes the currently active application override cursor to \a cursor.
This function has no effect if setOverrideCursor() was not called.
\sa setOverrideCursor(), overrideCursor(), restoreOverrideCursor(),
QWidget::setCursor()
*/
void QApplication::changeOverrideCursor(const QCursor &cursor)
{
if (qApp->d_func()->cursor_list.isEmpty())
return;
qApp->d_func()->cursor_list.removeFirst();
#ifdef QT_MAC_USE_COCOA
// We use native NSCursor stacks in Cocoa. The currentCursor is the
// top of this stack. So to avoid flickering of cursor, we have to
// change the cusor instead of pop-ing the existing OverrideCursor
// and pushing the new one.
qApp->d_func()->cursor_list.prepend(cursor);
qt_cocoaChangeOverrideCursor(cursor);
return;
#endif
setOverrideCursor(cursor);
}
#endif
/*!
\fn void QApplication::setOverrideCursor(const QCursor &cursor, bool replace)
Use changeOverrideCursor(\a cursor) (if \a replace is true) or
setOverrideCursor(\a cursor) (if \a replace is false).
*/
/*!
Enters the main event loop and waits until exit() is called, then returns
the value that was set to exit() (which is 0 if exit() is called via
quit()).
It is necessary to call this function to start event handling. The main
event loop receives events from the window system and dispatches these to
the application widgets.
Generally, no user interaction can take place before calling exec(). As a
special case, modal widgets like QMessageBox can be used before calling
exec(), because modal widgets call exec() to start a local event loop.
To make your application perform idle processing, i.e., executing a special
function whenever there are no pending events, use a QTimer with 0 timeout.
More advanced idle processing schemes can be achieved using processEvents().
We recommend that you connect clean-up code to the
\l{QCoreApplication::}{aboutToQuit()} signal, instead of putting it in your
application's \c{main()} function. This is because, on some platforms the
QApplication::exec() call may not return. For example, on the Windows
platform, when the user logs off, the system terminates the process after Qt
closes all top-level windows. Hence, there is \e{no guarantee} that the
application will have time to exit its event loop and execute code at the
end of the \c{main()} function, after the QApplication::exec() call.
\sa quitOnLastWindowClosed, quit(), exit(), processEvents(),
QCoreApplication::exec()
*/
int QApplication::exec()
{
#ifndef QT_NO_ACCESSIBILITY
QAccessible::setRootObject(qApp);
#endif
return QCoreApplication::exec();
}
/*! \reimp
*/
bool QApplication::notify(QObject *receiver, QEvent *e)
{
Q_D(QApplication);
// no events are delivered after ~QCoreApplication() has started
if (QApplicationPrivate::is_app_closing)
return true;
if (receiver == 0) { // serious error
qWarning("QApplication::notify: Unexpected null receiver");
return true;
}
#ifndef QT_NO_DEBUG
d->checkReceiverThread(receiver);
#endif
#ifdef QT3_SUPPORT
if (e->type() == QEvent::ChildRemoved && !receiver->d_func()->pendingChildInsertedEvents.isEmpty())
receiver->d_func()->removePendingChildInsertedEvents(static_cast<QChildEvent *>(e)->child());
#endif // QT3_SUPPORT
// capture the current mouse/keyboard state
if(e->spontaneous()) {
if (e->type() == QEvent::KeyPress
|| e->type() == QEvent::KeyRelease) {
QKeyEvent *ke = static_cast<QKeyEvent*>(e);
QApplicationPrivate::modifier_buttons = ke->modifiers();
} else if(e->type() == QEvent::MouseButtonPress
|| e->type() == QEvent::MouseButtonRelease) {
QMouseEvent *me = static_cast<QMouseEvent*>(e);
QApplicationPrivate::modifier_buttons = me->modifiers();
if(me->type() == QEvent::MouseButtonPress)
QApplicationPrivate::mouse_buttons |= me->button();
else
QApplicationPrivate::mouse_buttons &= ~me->button();
}
#if !defined(QT_NO_WHEELEVENT) || !defined(QT_NO_TABLETEVENT)
else if (false
# ifndef QT_NO_WHEELEVENT
|| e->type() == QEvent::Wheel
# endif
# ifndef QT_NO_TABLETEVENT
|| e->type() == QEvent::TabletMove
|| e->type() == QEvent::TabletPress
|| e->type() == QEvent::TabletRelease
# endif
) {
QInputEvent *ie = static_cast<QInputEvent*>(e);
QApplicationPrivate::modifier_buttons = ie->modifiers();
}
#endif // !QT_NO_WHEELEVENT || !QT_NO_TABLETEVENT
}
#ifndef QT_NO_GESTURES
// walk through parents and check for gestures
if (d->gestureManager) {
switch (e->type()) {
case QEvent::Paint:
case QEvent::MetaCall:
case QEvent::DeferredDelete:
case QEvent::DragEnter: case QEvent::DragMove: case QEvent::DragLeave:
case QEvent::Drop: case QEvent::DragResponse:
case QEvent::ChildAdded: case QEvent::ChildPolished:
#ifdef QT3_SUPPORT
case QEvent::ChildInsertedRequest:
case QEvent::ChildInserted:
case QEvent::LayoutHint:
#endif
case QEvent::ChildRemoved:
case QEvent::UpdateRequest:
case QEvent::UpdateLater:
case QEvent::AccessibilityPrepare:
case QEvent::LocaleChange:
case QEvent::Style:
case QEvent::IconDrag:
case QEvent::StyleChange:
case QEvent::AccessibilityHelp:
case QEvent::AccessibilityDescription:
case QEvent::GraphicsSceneDragEnter:
case QEvent::GraphicsSceneDragMove:
case QEvent::GraphicsSceneDragLeave:
case QEvent::GraphicsSceneDrop:
case QEvent::DynamicPropertyChange:
case QEvent::NetworkReplyUpdated:
break;
default:
if (receiver->isWidgetType()) {
if (d->gestureManager->filterEvent(static_cast<QWidget *>(receiver), e))
return true;
} else {
// a special case for events that go to QGesture objects.
// We pass the object to the gesture manager and it'll figure
// out if it's QGesture or not.
if (d->gestureManager->filterEvent(receiver, e))
return true;
}
}
}
#endif // QT_NO_GESTURES
// User input and window activation makes tooltips sleep
switch (e->type()) {
case QEvent::Wheel:
case QEvent::ActivationChange:
case QEvent::KeyPress:
case QEvent::KeyRelease:
case QEvent::FocusOut:
case QEvent::FocusIn:
case QEvent::MouseButtonPress:
case QEvent::MouseButtonRelease:
case QEvent::MouseButtonDblClick:
d->toolTipFallAsleep.stop();
// fall-through
case QEvent::Leave:
d->toolTipWakeUp.stop();
default:
break;
}
bool res = false;
if (!receiver->isWidgetType()) {
res = d->notify_helper(receiver, e);
} else switch (e->type()) {
#if defined QT3_SUPPORT && !defined(QT_NO_SHORTCUT)
case QEvent::Accel:
{
if (d->use_compat()) {
QKeyEvent* key = static_cast<QKeyEvent*>(e);
res = d->notify_helper(receiver, e);
if (!res && !key->isAccepted())
res = d->qt_dispatchAccelEvent(static_cast<QWidget *>(receiver), key);
// next lines are for compatibility with Qt <= 3.0.x: old
// QAccel was listening on toplevel widgets
if (!res && !key->isAccepted() && !static_cast<QWidget *>(receiver)->isWindow())
res = d->notify_helper(static_cast<QWidget *>(receiver)->window(), e);
}
break;
}
#endif //QT3_SUPPORT && !QT_NO_SHORTCUT
case QEvent::ShortcutOverride:
case QEvent::KeyPress:
case QEvent::KeyRelease:
{
bool isWidget = receiver->isWidgetType();
bool isGraphicsWidget = false;
#ifndef QT_NO_GRAPHICSVIEW
isGraphicsWidget = !isWidget && qobject_cast<QGraphicsWidget *>(receiver);
#endif
if (!isWidget && !isGraphicsWidget) {
res = d->notify_helper(receiver, e);
break;
}
QKeyEvent* key = static_cast<QKeyEvent*>(e);
#if defined QT3_SUPPORT && !defined(QT_NO_SHORTCUT)
if (d->use_compat() && d->qt_tryComposeUnicode(static_cast<QWidget*>(receiver), key))
break;
#endif
if (key->type()==QEvent::KeyPress) {
#ifndef QT_NO_SHORTCUT
// Try looking for a Shortcut before sending key events
if ((res = qApp->d_func()->shortcutMap.tryShortcutEvent(receiver, key)))
return res;
#endif
qt_in_tab_key_event = (key->key() == Qt::Key_Backtab
|| key->key() == Qt::Key_Tab
|| key->key() == Qt::Key_Left
|| key->key() == Qt::Key_Up
|| key->key() == Qt::Key_Right
|| key->key() == Qt::Key_Down);
}
bool def = key->isAccepted();
QPointer<QObject> pr = receiver;
while (receiver) {
if (def)
key->accept();
else
key->ignore();
res = d->notify_helper(receiver, e);
QWidget *w = isWidget ? static_cast<QWidget *>(receiver) : 0;
#ifndef QT_NO_GRAPHICSVIEW
QGraphicsWidget *gw = isGraphicsWidget ? static_cast<QGraphicsWidget *>(receiver) : 0;
#endif
if ((res && key->isAccepted())
/*
QLineEdit will emit a signal on Key_Return, but
ignore the event, and sometimes the connected
slot deletes the QLineEdit (common in itemview
delegates), so we have to check if the widget
was destroyed even if the event was ignored (to
prevent a crash)
note that we don't have to reset pw while
propagating (because the original receiver will
be destroyed if one of its ancestors is)
*/
|| !pr
|| (isWidget && (w->isWindow() || !w->parentWidget()))
#ifndef QT_NO_GRAPHICSVIEW
|| (isGraphicsWidget && (gw->isWindow() || !gw->parentWidget()))
#endif
) {
break;
}
#ifndef QT_NO_GRAPHICSVIEW
receiver = w ? (QObject *)w->parentWidget() : (QObject *)gw->parentWidget();
#else
receiver = w->parentWidget();
#endif
}
qt_in_tab_key_event = false;
}
break;
case QEvent::MouseButtonPress:
case QEvent::MouseButtonRelease:
case QEvent::MouseButtonDblClick:
case QEvent::MouseMove:
{
QWidget* w = static_cast<QWidget *>(receiver);
QMouseEvent* mouse = static_cast<QMouseEvent*>(e);
QPoint relpos = mouse->pos();
if (e->spontaneous()) {
#ifndef QT_NO_IM
QInputContext *ic = w->inputContext();
if (ic
&& w->testAttribute(Qt::WA_InputMethodEnabled)
&& ic->filterEvent(mouse))
return true;
#endif
if (e->type() == QEvent::MouseButtonPress) {
QApplicationPrivate::giveFocusAccordingToFocusPolicy(w,
Qt::ClickFocus,
Qt::MouseFocusReason);
}
// ### Qt 5 These dynamic tool tips should be an OPT-IN feature. Some platforms
// like Mac OS X (probably others too), can optimize their views by not
// dispatching mouse move events. We have attributes to control hover,
// and mouse tracking, but as long as we are deciding to implement this
// feature without choice of opting-in or out, you ALWAYS have to have
// tracking enabled. Therefore, the other properties give a false sense of
// performance enhancement.
if (e->type() == QEvent::MouseMove && mouse->buttons() == 0) {
d->toolTipWidget = w;
d->toolTipPos = relpos;
d->toolTipGlobalPos = mouse->globalPos();
d->toolTipWakeUp.start(d->toolTipFallAsleep.isActive()?20:700, this);
}
}
bool eventAccepted = mouse->isAccepted();
QPointer<QWidget> pw = w;
while (w) {
QMouseEvent me(mouse->type(), relpos, mouse->globalPos(), mouse->button(), mouse->buttons(),
mouse->modifiers());
me.spont = mouse->spontaneous();
// throw away any mouse-tracking-only mouse events
if (!w->hasMouseTracking()
&& mouse->type() == QEvent::MouseMove && mouse->buttons() == 0) {
// but still send them through all application event filters (normally done by notify_helper)
for (int i = 0; i < d->eventFilters.size(); ++i) {
register QObject *obj = d->eventFilters.at(i);
if (!obj)
continue;
if (obj->d_func()->threadData != w->d_func()->threadData) {
qWarning("QApplication: Object event filter cannot be in a different thread.");
continue;
}
if (obj->eventFilter(w, w == receiver ? mouse : &me))
break;
}
res = true;
} else {
w->setAttribute(Qt::WA_NoMouseReplay, false);
res = d->notify_helper(w, w == receiver ? mouse : &me);
e->spont = false;
}
eventAccepted = (w == receiver ? mouse : &me)->isAccepted();
if (res && eventAccepted)
break;
if (w->isWindow() || w->testAttribute(Qt::WA_NoMousePropagation))
break;
relpos += w->pos();
w = w->parentWidget();
}
mouse->setAccepted(eventAccepted);
if (e->type() == QEvent::MouseMove) {
if (!pw)
break;
w = static_cast<QWidget *>(receiver);
relpos = mouse->pos();
QPoint diff = relpos - w->mapFromGlobal(d->hoverGlobalPos);
while (w) {
if (w->testAttribute(Qt::WA_Hover) &&
(!QApplication::activePopupWidget() || QApplication::activePopupWidget() == w->window())) {
QHoverEvent he(QEvent::HoverMove, relpos, relpos - diff);
d->notify_helper(w, &he);
}
if (w->isWindow() || w->testAttribute(Qt::WA_NoMousePropagation))
break;
relpos += w->pos();
w = w->parentWidget();
}
}
d->hoverGlobalPos = mouse->globalPos();
}
break;
#ifndef QT_NO_WHEELEVENT
case QEvent::Wheel:
{
QWidget* w = static_cast<QWidget *>(receiver);
QWheelEvent* wheel = static_cast<QWheelEvent*>(e);
QPoint relpos = wheel->pos();
bool eventAccepted = wheel->isAccepted();
if (e->spontaneous()) {
QApplicationPrivate::giveFocusAccordingToFocusPolicy(w,
Qt::WheelFocus,
Qt::MouseFocusReason);
}
while (w) {
QWheelEvent we(relpos, wheel->globalPos(), wheel->delta(), wheel->buttons(),
wheel->modifiers(), wheel->orientation());
we.spont = wheel->spontaneous();
res = d->notify_helper(w, w == receiver ? wheel : &we);
eventAccepted = ((w == receiver) ? wheel : &we)->isAccepted();
e->spont = false;
if ((res && eventAccepted)
|| w->isWindow() || w->testAttribute(Qt::WA_NoMousePropagation))
break;
relpos += w->pos();
w = w->parentWidget();
}
wheel->setAccepted(eventAccepted);
}
break;
#endif
#ifndef QT_NO_CONTEXTMENU
case QEvent::ContextMenu:
{
QWidget* w = static_cast<QWidget *>(receiver);
QContextMenuEvent *context = static_cast<QContextMenuEvent*>(e);
QPoint relpos = context->pos();
bool eventAccepted = context->isAccepted();
while (w) {
QContextMenuEvent ce(context->reason(), relpos, context->globalPos(), context->modifiers());
ce.spont = e->spontaneous();
res = d->notify_helper(w, w == receiver ? context : &ce);
eventAccepted = ((w == receiver) ? context : &ce)->isAccepted();
e->spont = false;
if ((res && eventAccepted)
|| w->isWindow() || w->testAttribute(Qt::WA_NoMousePropagation))
break;
relpos += w->pos();
w = w->parentWidget();
}
context->setAccepted(eventAccepted);
}
break;
#endif // QT_NO_CONTEXTMENU
#ifndef QT_NO_TABLETEVENT
case QEvent::TabletMove:
case QEvent::TabletPress:
case QEvent::TabletRelease:
{
QWidget *w = static_cast<QWidget *>(receiver);
QTabletEvent *tablet = static_cast<QTabletEvent*>(e);
QPoint relpos = tablet->pos();
bool eventAccepted = tablet->isAccepted();
while (w) {
QTabletEvent te(tablet->type(), relpos, tablet->globalPos(),
tablet->hiResGlobalPos(), tablet->device(), tablet->pointerType(),
tablet->pressure(), tablet->xTilt(), tablet->yTilt(),
tablet->tangentialPressure(), tablet->rotation(), tablet->z(),
tablet->modifiers(), tablet->uniqueId());
te.spont = e->spontaneous();
res = d->notify_helper(w, w == receiver ? tablet : &te);
eventAccepted = ((w == receiver) ? tablet : &te)->isAccepted();
e->spont = false;
if ((res && eventAccepted)
|| w->isWindow()
|| w->testAttribute(Qt::WA_NoMousePropagation))
break;
relpos += w->pos();
w = w->parentWidget();
}
tablet->setAccepted(eventAccepted);
qt_tabletChokeMouse = tablet->isAccepted();
}
break;
#endif // QT_NO_TABLETEVENT
#if !defined(QT_NO_TOOLTIP) || !defined(QT_NO_WHATSTHIS)
case QEvent::ToolTip:
case QEvent::WhatsThis:
case QEvent::QueryWhatsThis:
{
QWidget* w = static_cast<QWidget *>(receiver);
QHelpEvent *help = static_cast<QHelpEvent*>(e);
QPoint relpos = help->pos();
bool eventAccepted = help->isAccepted();
while (w) {
QHelpEvent he(help->type(), relpos, help->globalPos());
he.spont = e->spontaneous();
res = d->notify_helper(w, w == receiver ? help : &he);
e->spont = false;
eventAccepted = (w == receiver ? help : &he)->isAccepted();
if ((res && eventAccepted) || w->isWindow())
break;
relpos += w->pos();
w = w->parentWidget();
}
help->setAccepted(eventAccepted);
}
break;
#endif
#if !defined(QT_NO_STATUSTIP) || !defined(QT_NO_WHATSTHIS)
case QEvent::StatusTip:
case QEvent::WhatsThisClicked:
{
QWidget *w = static_cast<QWidget *>(receiver);
while (w) {
res = d->notify_helper(w, e);
if ((res && e->isAccepted()) || w->isWindow())
break;
w = w->parentWidget();
}
}
break;
#endif
#ifndef QT_NO_DRAGANDDROP
case QEvent::DragEnter: {
QWidget* w = static_cast<QWidget *>(receiver);
QDragEnterEvent *dragEvent = static_cast<QDragEnterEvent *>(e);
#ifdef Q_WS_MAC
// HIView has a slight difference in how it delivers events to children and parents
// It will not give a leave to a child's parent when it enters a child.
QWidget *currentTarget = QDragManager::self()->currentTarget();
if (currentTarget) {
// Assume currentTarget did not get a leave
QDragLeaveEvent event;
QApplication::sendEvent(currentTarget, &event);
}
#endif
#ifndef QT_NO_GRAPHICSVIEW
// QGraphicsProxyWidget handles its own propagation,
// and we must not change QDragManagers currentTarget.
QWExtra *extra = w->window()->d_func()->extra;
if (extra && extra->proxyWidget) {
res = d->notify_helper(w, dragEvent);
break;
}
#endif
while (w) {
if (w->isEnabled() && w->acceptDrops()) {
res = d->notify_helper(w, dragEvent);
if (res && dragEvent->isAccepted()) {
QDragManager::self()->setCurrentTarget(w);
break;
}
}
if (w->isWindow())
break;
dragEvent->p = w->mapToParent(dragEvent->p);
w = w->parentWidget();
}
}
break;
case QEvent::DragMove:
case QEvent::Drop:
case QEvent::DragLeave: {
QWidget* w = static_cast<QWidget *>(receiver);
#ifndef QT_NO_GRAPHICSVIEW
// QGraphicsProxyWidget handles its own propagation,
// and we must not change QDragManagers currentTarget.
QWExtra *extra = w->window()->d_func()->extra;
bool isProxyWidget = extra && extra->proxyWidget;
if (!isProxyWidget)
#endif
w = QDragManager::self()->currentTarget();
if (!w) {
#ifdef Q_WS_MAC
// HIView has a slight difference in how it delivers events to children and parents
// It will not give an enter to a child's parent when it leaves the child.
if (e->type() == QEvent::DragLeave)
break;
// Assume that w did not get an enter.
QDropEvent *dropEvent = static_cast<QDropEvent *>(e);
QDragEnterEvent dragEnterEvent(dropEvent->pos(), dropEvent->possibleActions(),
dropEvent->mimeData(), dropEvent->mouseButtons(),
dropEvent->keyboardModifiers());
QApplication::sendEvent(receiver, &dragEnterEvent);
w = QDragManager::self()->currentTarget();
if (!w)
#endif
break;
}
if (e->type() == QEvent::DragMove || e->type() == QEvent::Drop) {
QDropEvent *dragEvent = static_cast<QDropEvent *>(e);
QWidget *origReciver = static_cast<QWidget *>(receiver);
while (origReciver && w != origReciver) {
dragEvent->p = origReciver->mapToParent(dragEvent->p);
origReciver = origReciver->parentWidget();
}
}
res = d->notify_helper(w, e);
if (e->type() != QEvent::DragMove
#ifndef QT_NO_GRAPHICSVIEW
&& !isProxyWidget
#endif
)
QDragManager::self()->setCurrentTarget(0, e->type() == QEvent::Drop);
}
break;
#endif
case QEvent::TouchBegin:
// Note: TouchUpdate and TouchEnd events are never propagated
{
QWidget *widget = static_cast<QWidget *>(receiver);
QTouchEvent *touchEvent = static_cast<QTouchEvent *>(e);
bool eventAccepted = touchEvent->isAccepted();
if (widget->testAttribute(Qt::WA_AcceptTouchEvents) && e->spontaneous()) {
// give the widget focus if the focus policy allows it
QApplicationPrivate::giveFocusAccordingToFocusPolicy(widget,
Qt::ClickFocus,
Qt::MouseFocusReason);
}
while (widget) {
// first, try to deliver the touch event
bool acceptTouchEvents = widget->testAttribute(Qt::WA_AcceptTouchEvents);
touchEvent->setWidget(widget);
touchEvent->setAccepted(acceptTouchEvents);
QWeakPointer<QWidget> p = widget;
res = acceptTouchEvents && d->notify_helper(widget, touchEvent);
eventAccepted = touchEvent->isAccepted();
if (p.isNull()) {
// widget was deleted
widget = 0;
} else {
widget->setAttribute(Qt::WA_WState_AcceptedTouchBeginEvent, res && eventAccepted);
}
touchEvent->spont = false;
if (res && eventAccepted) {
// the first widget to accept the TouchBegin gets an implicit grab.
for (int i = 0; i < touchEvent->touchPoints().count(); ++i) {
const QTouchEvent::TouchPoint &touchPoint = touchEvent->touchPoints().at(i);
d->widgetForTouchPointId[touchPoint.id()] = widget;
}
break;
} else if (p.isNull() || widget->isWindow() || widget->testAttribute(Qt::WA_NoMousePropagation)) {
break;
}
QPoint offset = widget->pos();
widget = widget->parentWidget();
touchEvent->setWidget(widget);
for (int i = 0; i < touchEvent->_touchPoints.size(); ++i) {
QTouchEvent::TouchPoint &pt = touchEvent->_touchPoints[i];
QRectF rect = pt.rect();
rect.moveCenter(offset);
pt.d->rect = rect;
pt.d->startPos = pt.startPos() + offset;
pt.d->lastPos = pt.lastPos() + offset;
}
}
touchEvent->setAccepted(eventAccepted);
break;
}
case QEvent::RequestSoftwareInputPanel:
case QEvent::CloseSoftwareInputPanel:
#ifndef QT_NO_IM
if (receiver->isWidgetType()) {
QWidget *w = static_cast<QWidget *>(receiver);
QInputContext *ic = w->inputContext();
if (ic && ic->filterEvent(e)) {
break;
}
}
#endif
res = d->notify_helper(receiver, e);
break;
#ifndef QT_NO_GESTURES
case QEvent::NativeGesture:
{
// only propagate the first gesture event (after the GID_BEGIN)
QWidget *w = static_cast<QWidget *>(receiver);
while (w) {
e->ignore();
res = d->notify_helper(w, e);
if ((res && e->isAccepted()) || w->isWindow())
break;
w = w->parentWidget();
}
break;
}
case QEvent::Gesture:
case QEvent::GestureOverride:
{
if (receiver->isWidgetType()) {
QWidget *w = static_cast<QWidget *>(receiver);
QGestureEvent *gestureEvent = static_cast<QGestureEvent *>(e);
QList<QGesture *> allGestures = gestureEvent->gestures();
bool eventAccepted = gestureEvent->isAccepted();
bool wasAccepted = eventAccepted;
while (w) {
// send only gestures the widget expects
QList<QGesture *> gestures;
QWidgetPrivate *wd = w->d_func();
for (int i = 0; i < allGestures.size();) {
QGesture *g = allGestures.at(i);
Qt::GestureType type = g->gestureType();
QMap<Qt::GestureType, Qt::GestureFlags>::iterator contextit =
wd->gestureContext.find(type);
bool deliver = contextit != wd->gestureContext.end() &&
(g->state() == Qt::GestureStarted || w == receiver ||
(contextit.value() & Qt::ReceivePartialGestures));
if (deliver) {
allGestures.removeAt(i);
gestures.append(g);
} else {
++i;
}
}
if (!gestures.isEmpty()) { // we have gestures for this w
QGestureEvent ge(gestures);
ge.t = gestureEvent->t;
ge.spont = gestureEvent->spont;
ge.m_accept = wasAccepted;
ge.d_func()->accepted = gestureEvent->d_func()->accepted;
res = d->notify_helper(w, &ge);
gestureEvent->spont = false;
eventAccepted = ge.isAccepted();
for (int i = 0; i < gestures.size(); ++i) {
QGesture *g = gestures.at(i);
// Ignore res [event return value] because handling of multiple gestures
// packed into a single QEvent depends on not consuming the event
if (eventAccepted || ge.isAccepted(g)) {
// if the gesture was accepted, mark the target widget for it
gestureEvent->d_func()->targetWidgets[g->gestureType()] = w;
gestureEvent->setAccepted(g, true);
} else {
// if the gesture was explicitly ignored by the application,
// put it back so a parent can get it
allGestures.append(g);
}
}
}
if (allGestures.isEmpty()) // everything delivered
break;
if (w->isWindow())
break;
w = w->parentWidget();
}
foreach (QGesture *g, allGestures)
gestureEvent->setAccepted(g, false);
gestureEvent->m_accept = false; // to make sure we check individual gestures
} else {
res = d->notify_helper(receiver, e);
}
break;
}
#endif // QT_NO_GESTURES
default:
res = d->notify_helper(receiver, e);
break;
}
return res;
}
bool QApplicationPrivate::notify_helper(QObject *receiver, QEvent * e)
{
// send to all application event filters
if (sendThroughApplicationEventFilters(receiver, e))
return true;
if (receiver->isWidgetType()) {
QWidget *widget = static_cast<QWidget *>(receiver);
#if !defined(Q_WS_WINCE) || (defined(GWES_ICONCURS) && !defined(QT_NO_CURSOR))
// toggle HasMouse widget state on enter and leave
if ((e->type() == QEvent::Enter || e->type() == QEvent::DragEnter) &&
(!QApplication::activePopupWidget() || QApplication::activePopupWidget() == widget->window()))
widget->setAttribute(Qt::WA_UnderMouse, true);
else if (e->type() == QEvent::Leave || e->type() == QEvent::DragLeave)
widget->setAttribute(Qt::WA_UnderMouse, false);
#endif
if (QLayout *layout=widget->d_func()->layout) {
layout->widgetEvent(e);
}
}
// send to all receiver event filters
if (sendThroughObjectEventFilters(receiver, e))
return true;
// deliver the event
bool consumed = receiver->event(e);
e->spont = false;
return consumed;
}
/*!
\class QSessionManager
\brief The QSessionManager class provides access to the session manager.
A session manager in a desktop environment (in which Qt GUI applications
live) keeps track of a session, which is a group of running applications,
each of which has a particular state. The state of an application contains
(most notably) the documents the application has open and the position and
size of its windows.
The session manager is used to save the session, e.g., when the machine is
shut down, and to restore a session, e.g., when the machine is started up.
We recommend that you use QSettings to save an application's settings,
for example, window positions, recently used files, etc. When the
application is restarted by the session manager, you can restore the
settings.
QSessionManager provides an interface between the application and the
session manager so that the program can work well with the session manager.
In Qt, session management requests for action are handled by the two
virtual functions QApplication::commitData() and QApplication::saveState().
Both provide a reference to a session manager object as argument, to allow
the application to communicate with the session manager. The session
manager can only be accessed through these functions.
No user interaction is possible \e unless the application gets explicit
permission from the session manager. You ask for permission by calling
allowsInteraction() or, if it is really urgent, allowsErrorInteraction().
Qt does not enforce this, but the session manager may.
You can try to abort the shutdown process by calling cancel(). The default
commitData() function does this if some top-level window rejected its
closeEvent().
For sophisticated session managers provided on Unix/X11, QSessionManager
offers further possibilities to fine-tune an application's session
management behavior: setRestartCommand(), setDiscardCommand(),
setRestartHint(), setProperty(), requestPhase2(). See the respective
function descriptions for further details.
\sa QApplication, {Session Management}
*/
/*! \enum QSessionManager::RestartHint
This enum type defines the circumstances under which this application wants
to be restarted by the session manager. The current values are:
\value RestartIfRunning If the application is still running when the
session is shut down, it wants to be restarted
at the start of the next session.
\value RestartAnyway The application wants to be started at the
start of the next session, no matter what.
(This is useful for utilities that run just
after startup and then quit.)
\value RestartImmediately The application wants to be started immediately
whenever it is not running.
\value RestartNever The application does not want to be restarted
automatically.
The default hint is \c RestartIfRunning.
*/
/*!
\fn QString QSessionManager::sessionId() const
Returns the identifier of the current session.
If the application has been restored from an earlier session, this
identifier is the same as it was in the earlier session.
\sa sessionKey(), QApplication::sessionId()
*/
/*!
\fn QString QSessionManager::sessionKey() const
Returns the session key in the current session.
If the application has been restored from an earlier session, this key is
the same as it was when the previous session ended.
The session key changes with every call of commitData() or saveState().
\sa sessionId(), QApplication::sessionKey()
*/
/*!
\fn void* QSessionManager::handle() const
\internal
*/
/*!
\fn bool QSessionManager::allowsInteraction()
Asks the session manager for permission to interact with the user. Returns
true if interaction is permitted; otherwise returns false.
The rationale behind this mechanism is to make it possible to synchronize
user interaction during a shutdown. Advanced session managers may ask all
applications simultaneously to commit their data, resulting in a much
faster shutdown.
When the interaction is completed we strongly recommend releasing the user
interaction semaphore with a call to release(). This way, other
applications may get the chance to interact with the user while your
application is still busy saving data. (The semaphore is implicitly
released when the application exits.)
If the user decides to cancel the shutdown process during the interaction
phase, you must tell the session manager that this has happened by calling
cancel().
Here's an example of how an application's QApplication::commitData() might
be implemented:
\snippet doc/src/snippets/code/src_gui_kernel_qapplication.cpp 8
If an error occurred within the application while saving its data, you may
want to try allowsErrorInteraction() instead.
\sa QApplication::commitData(), release(), cancel()
*/
/*!
\fn bool QSessionManager::allowsErrorInteraction()
Returns true if error interaction is permitted; otherwise returns false.
This is similar to allowsInteraction(), but also enables the application to
tell the user about any errors that occur. Session managers may give error
interaction requests higher priority, which means that it is more likely
that an error interaction is permitted. However, you are still not
guaranteed that the session manager will allow interaction.
\sa allowsInteraction(), release(), cancel()
*/
/*!
\fn void QSessionManager::release()
Releases the session manager's interaction semaphore after an interaction
phase.
\sa allowsInteraction(), allowsErrorInteraction()
*/
/*!
\fn void QSessionManager::cancel()
Tells the session manager to cancel the shutdown process. Applications
should not call this function without asking the user first.
\sa allowsInteraction(), allowsErrorInteraction()
*/
/*!
\fn void QSessionManager::setRestartHint(RestartHint hint)
Sets the application's restart hint to \a hint. On application startup, the
hint is set to \c RestartIfRunning.
\note These flags are only hints, a session manager may or may not respect
them.
We recommend setting the restart hint in QApplication::saveState() because
most session managers perform a checkpoint shortly after an application's
startup.
\sa restartHint()
*/
/*!
\fn QSessionManager::RestartHint QSessionManager::restartHint() const
Returns the application's current restart hint. The default is
\c RestartIfRunning.
\sa setRestartHint()
*/
/*!
\fn void QSessionManager::setRestartCommand(const QStringList& command)
If the session manager is capable of restoring sessions it will execute
\a command in order to restore the application. The command defaults to
\snippet doc/src/snippets/code/src_gui_kernel_qapplication.cpp 9
The \c -session option is mandatory; otherwise QApplication cannot tell
whether it has been restored or what the current session identifier is.
See QApplication::isSessionRestored() and QApplication::sessionId() for
details.
If your application is very simple, it may be possible to store the entire
application state in additional command line options. This is usually a
very bad idea because command lines are often limited to a few hundred
bytes. Instead, use QSettings, temporary files, or a database for this
purpose. By marking the data with the unique sessionId(), you will be able
to restore the application in a future session.
\sa restartCommand(), setDiscardCommand(), setRestartHint()
*/
/*!
\fn QStringList QSessionManager::restartCommand() const
Returns the currently set restart command.
To iterate over the list, you can use the \l foreach pseudo-keyword:
\snippet doc/src/snippets/code/src_gui_kernel_qapplication.cpp 10
\sa setRestartCommand(), restartHint()
*/
/*!
\fn void QSessionManager::setDiscardCommand(const QStringList& list)
Sets the discard command to the given \a list.
\sa discardCommand(), setRestartCommand()
*/
/*!
\fn QStringList QSessionManager::discardCommand() const
Returns the currently set discard command.
To iterate over the list, you can use the \l foreach pseudo-keyword:
\snippet doc/src/snippets/code/src_gui_kernel_qapplication.cpp 11
\sa setDiscardCommand(), restartCommand(), setRestartCommand()
*/
/*!
\fn void QSessionManager::setManagerProperty(const QString &name, const QString &value)
\overload
Low-level write access to the application's identification and state
records are kept in the session manager.
The property called \a name has its value set to the string \a value.
*/
/*!
\fn void QSessionManager::setManagerProperty(const QString& name,
const QStringList& value)
Low-level write access to the application's identification and state record
are kept in the session manager.
The property called \a name has its value set to the string list \a value.
*/
/*!
\fn bool QSessionManager::isPhase2() const
Returns true if the session manager is currently performing a second
session management phase; otherwise returns false.
\sa requestPhase2()
*/
/*!
\fn void QSessionManager::requestPhase2()
Requests a second session management phase for the application. The
application may then return immediately from the QApplication::commitData()
or QApplication::saveState() function, and they will be called again once
most or all other applications have finished their session management.
The two phases are useful for applications such as the X11 window manager
that need to store information about another application's windows and
therefore have to wait until these applications have completed their
respective session management tasks.
\note If another application has requested a second phase it may get called
before, simultaneously with, or after your application's second phase.
\sa isPhase2()
*/
/*****************************************************************************
Stubbed session management support
*****************************************************************************/
#ifndef QT_NO_SESSIONMANAGER
#if defined(Q_WS_WIN) || defined(Q_WS_MAC) || defined(Q_WS_QWS)
#if defined(Q_OS_WINCE)
HRESULT qt_CoCreateGuid(GUID* guid)
{
// We will use the following information to create the GUID
// 1. absolute path to application
wchar_t tempFilename[MAX_PATH];
if (!GetModuleFileName(0, tempFilename, MAX_PATH))
return S_FALSE;
unsigned int hash = qHash(QString::fromWCharArray(tempFilename));
guid->Data1 = hash;
// 2. creation time of file
QFileInfo info(QString::fromWCharArray(tempFilename));
guid->Data2 = qHash(info.created().toTime_t());
// 3. current system time
guid->Data3 = qHash(QDateTime::currentDateTime().toTime_t());
return S_OK;
}
#if !defined(OLE32_MCOMGUID) || defined(QT_WINCE_FORCE_CREATE_GUID)
#define CoCreateGuid qt_CoCreateGuid
#endif
#endif
class QSessionManagerPrivate : public QObjectPrivate
{
public:
QStringList restartCommand;
QStringList discardCommand;
QString sessionId;
QString sessionKey;
QSessionManager::RestartHint restartHint;
};
QSessionManager* qt_session_manager_self = 0;
QSessionManager::QSessionManager(QApplication * app, QString &id, QString &key)
: QObject(*new QSessionManagerPrivate, app)
{
Q_D(QSessionManager);
setObjectName(QLatin1String("qt_sessionmanager"));
qt_session_manager_self = this;
#if defined(Q_WS_WIN)
wchar_t guidstr[40];
GUID guid;
CoCreateGuid(&guid);
StringFromGUID2(guid, guidstr, 40);
id = QString::fromWCharArray(guidstr);
CoCreateGuid(&guid);
StringFromGUID2(guid, guidstr, 40);
key = QString::fromWCharArray(guidstr);
#endif
d->sessionId = id;
d->sessionKey = key;
d->restartHint = RestartIfRunning;
}
QSessionManager::~QSessionManager()
{
qt_session_manager_self = 0;
}
QString QSessionManager::sessionId() const
{
Q_D(const QSessionManager);
return d->sessionId;
}
QString QSessionManager::sessionKey() const
{
Q_D(const QSessionManager);
return d->sessionKey;
}
#if defined(Q_WS_X11) || defined(Q_WS_MAC)
void* QSessionManager::handle() const
{
return 0;
}
#endif
#if !defined(Q_WS_WIN)
bool QSessionManager::allowsInteraction()
{
return true;
}
bool QSessionManager::allowsErrorInteraction()
{
return true;
}
void QSessionManager::release()
{
}
void QSessionManager::cancel()
{
}
#endif
void QSessionManager::setRestartHint(QSessionManager::RestartHint hint)
{
Q_D(QSessionManager);
d->restartHint = hint;
}
QSessionManager::RestartHint QSessionManager::restartHint() const
{
Q_D(const QSessionManager);
return d->restartHint;
}
void QSessionManager::setRestartCommand(const QStringList& command)
{
Q_D(QSessionManager);
d->restartCommand = command;
}
QStringList QSessionManager::restartCommand() const
{
Q_D(const QSessionManager);
return d->restartCommand;
}
void QSessionManager::setDiscardCommand(const QStringList& command)
{
Q_D(QSessionManager);
d->discardCommand = command;
}
QStringList QSessionManager::discardCommand() const
{
Q_D(const QSessionManager);
return d->discardCommand;
}
void QSessionManager::setManagerProperty(const QString&, const QString&)
{
}
void QSessionManager::setManagerProperty(const QString&, const QStringList&)
{
}
bool QSessionManager::isPhase2() const
{
return false;
}
void QSessionManager::requestPhase2()
{
}
#endif
#endif // QT_NO_SESSIONMANAGER
/*!
\typedef QApplication::ColorMode
\compat
Use ColorSpec instead.
*/
/*!
\fn Qt::MacintoshVersion QApplication::macVersion()
Use QSysInfo::MacintoshVersion instead.
*/
/*!
\fn QApplication::ColorMode QApplication::colorMode()
Use colorSpec() instead, and use ColorSpec as the enum type.
*/
/*!
\fn void QApplication::setColorMode(ColorMode mode)
Use setColorSpec() instead, and pass a ColorSpec value instead.
*/
/*!
\fn bool QApplication::hasGlobalMouseTracking()
This feature does not exist anymore. This function always returns true
in Qt 4.
*/
/*!
\fn void QApplication::setGlobalMouseTracking(bool dummy)
This function does nothing in Qt 4. The \a dummy parameter is ignored.
*/
/*!
\fn void QApplication::flushX()
Use flush() instead.
*/
/*!
\fn void QApplication::setWinStyleHighlightColor(const QColor &c)
Use the palette instead.
\oldcode
app.setWinStyleHighlightColor(color);
\newcode
QPalette palette(QApplication::palette());
palette.setColor(QPalette::Highlight, color);
QApplication::setPalette(palette);
\endcode
*/
/*!
\fn void QApplication::setPalette(const QPalette &pal, bool b, const char* className = 0)
Use the two-argument overload instead.
*/
/*!
\fn void QApplication::setFont(const QFont &font, bool b, const char* className = 0)
Use the two-argument overload instead.
*/
/*!
\fn const QColor &QApplication::winStyleHighlightColor()
Use QApplication::palette().color(QPalette::Active, QPalette::Highlight) instead.
*/
/*!
\fn QWidget *QApplication::widgetAt(int x, int y, bool child)
Use the two-argument widgetAt() overload to get the child widget. To get
the top-level widget do this:
\snippet doc/src/snippets/code/src_gui_kernel_qapplication.cpp 12
*/
/*!
\fn QWidget *QApplication::widgetAt(const QPoint &point, bool child)
Use the single-argument widgetAt() overload to get the child widget. To get
the top-level widget do this:
\snippet doc/src/snippets/code/src_gui_kernel_qapplication.cpp 13
*/
#ifdef QT3_SUPPORT
QWidget *QApplication::mainWidget()
{
return QApplicationPrivate::main_widget;
}
#endif
bool QApplicationPrivate::inPopupMode() const
{
return QApplicationPrivate::popupWidgets != 0;
}
/*!
\property QApplication::quitOnLastWindowClosed
\brief whether the application implicitly quits when the last window is
closed.
The default is true.
If this property is true, the applications quits when the last visible
primary window (i.e. window with no parent) with the Qt::WA_QuitOnClose
attribute set is closed. By default this attribute is set for all widgets
except for sub-windows. Refer to \l{Qt::WindowType} for a detailed list of
Qt::Window objects.
\sa quit(), QWidget::close()
*/
void QApplication::setQuitOnLastWindowClosed(bool quit)
{
QApplicationPrivate::quitOnLastWindowClosed = quit;
}
bool QApplication::quitOnLastWindowClosed()
{
return QApplicationPrivate::quitOnLastWindowClosed;
}
void QApplicationPrivate::emitLastWindowClosed()
{
if (qApp && qApp->d_func()->in_exec) {
if (QApplicationPrivate::quitOnLastWindowClosed) {
// get ready to quit, this event might be removed if the
// event loop is re-entered, however
QApplication::postEvent(qApp, new QEvent(QEvent::Quit));
}
emit qApp->lastWindowClosed();
}
}
/*! \variable QApplication::NormalColors
\compat
Use \l NormalColor instead.
*/
/*! \variable QApplication::CustomColors
\compat
Use \l CustomColor instead.
*/
#ifdef QT_KEYPAD_NAVIGATION
/*!
Sets the kind of focus navigation Qt should use to \a mode.
This feature is available in Qt for Embedded Linux, Symbian and Windows CE
only.
\note On Windows CE this feature is disabled by default for touch device
mkspecs. To enable keypad navigation, build Qt with
QT_KEYPAD_NAVIGATION defined.
\note On Symbian, setting the mode to Qt::NavigationModeCursorAuto will enable a
virtual mouse cursor on non touchscreen devices, which is controlled
by the cursor keys if there is no analog pointer device.
On other platforms and on touchscreen devices, it has the same
meaning as Qt::NavigationModeNone.
\since 4.6
\sa keypadNavigationEnabled()
*/
void QApplication::setNavigationMode(Qt::NavigationMode mode)
{
#ifdef Q_OS_SYMBIAN
QApplicationPrivate::setNavigationMode(mode);
#else
QApplicationPrivate::navigationMode = mode;
#endif
}
/*!
Returns what kind of focus navigation Qt is using.
This feature is available in Qt for Embedded Linux, Symbian and Windows CE
only.
\note On Windows CE this feature is disabled by default for touch device
mkspecs. To enable keypad navigation, build Qt with
QT_KEYPAD_NAVIGATION defined.
\note On Symbian, the default mode is Qt::NavigationModeNone for touch
devices, and Qt::NavigationModeKeypadDirectional.
\since 4.6
\sa keypadNavigationEnabled()
*/
Qt::NavigationMode QApplication::navigationMode()
{
return QApplicationPrivate::navigationMode;
}
/*!
Sets whether Qt should use focus navigation suitable for use with a
minimal keypad.
This feature is available in Qt for Embedded Linux, Symbian and Windows CE
only.
\note On Windows CE this feature is disabled by default for touch device
mkspecs. To enable keypad navigation, build Qt with
QT_KEYPAD_NAVIGATION defined.
\deprecated
\sa setNavigationMode()
*/
void QApplication::setKeypadNavigationEnabled(bool enable)
{
if (enable) {
#ifdef Q_OS_SYMBIAN
QApplication::setNavigationMode(Qt::NavigationModeKeypadDirectional);
#else
QApplication::setNavigationMode(Qt::NavigationModeKeypadTabOrder);
#endif
}
else {
QApplication::setNavigationMode(Qt::NavigationModeNone);
}
}
/*!
Returns true if Qt is set to use keypad navigation; otherwise returns
false. The default value is true on Symbian, but false on other platforms.
This feature is available in Qt for Embedded Linux, Symbian and Windows CE
only.
\note On Windows CE this feature is disabled by default for touch device
mkspecs. To enable keypad navigation, build Qt with
QT_KEYPAD_NAVIGATION defined.
\deprecated
\sa navigationMode()
*/
bool QApplication::keypadNavigationEnabled()
{
return QApplicationPrivate::navigationMode == Qt::NavigationModeKeypadTabOrder ||
QApplicationPrivate::navigationMode == Qt::NavigationModeKeypadDirectional;
}
#endif
/*!
\fn void QApplication::alert(QWidget *widget, int msec)
\since 4.3
Causes an alert to be shown for \a widget if the window is not the active
window. The alert is shown for \a msec miliseconds. If \a msec is zero (the
default), then the alert is shown indefinitely until the window becomes
active again.
Currently this function does nothing on Qt for Embedded Linux.
On Mac OS X, this works more at the application level and will cause the
application icon to bounce in the dock.
On Windows, this causes the window's taskbar entry to flash for a time. If
\a msec is zero, the flashing will stop and the taskbar entry will turn a
different color (currently orange).
On X11, this will cause the window to be marked as "demands attention", the
window must not be hidden (i.e. not have hide() called on it, but be
visible in some sort of way) in order for this to work.
*/
/*!
\property QApplication::cursorFlashTime
\brief the text cursor's flash (blink) time in milliseconds
The flash time is the time required to display, invert and restore the
caret display. Usually the text cursor is displayed for half the cursor
flash time, then hidden for the same amount of time, but this may vary.
The default value on X11 is 1000 milliseconds. On Windows, the
\gui{Control Panel} value is used and setting this property sets the cursor
flash time for all applications.
We recommend that widgets do not cache this value as it may change at any
time if the user changes the global desktop settings.
*/
/*!
\property QApplication::doubleClickInterval
\brief the time limit in milliseconds that distinguishes a double click
from two consecutive mouse clicks
The default value on X11 is 400 milliseconds. On Windows and Mac OS, the
operating system's value is used. However, on Windows and Symbian OS,
calling this function sets the double click interval for all applications.
*/
/*!
\property QApplication::keyboardInputInterval
\brief the time limit in milliseconds that distinguishes a key press
from two consecutive key presses
\since 4.2
The default value on X11 is 400 milliseconds. On Windows and Mac OS, the
operating system's value is used.
*/
/*!
\property QApplication::wheelScrollLines
\brief the number of lines to scroll a widget, when the
mouse wheel is rotated.
If the value exceeds the widget's number of visible lines, the widget
should interpret the scroll operation as a single \e{page up} or
\e{page down}. If the widget is an \l{QAbstractItemView}{item view class},
then the result of scrolling one \e line depends on the setting of the
widget's \l{QAbstractItemView::verticalScrollMode()}{scroll mode}. Scroll
one \e line can mean \l{QAbstractItemView::ScrollPerItem}{scroll one item}
or \l{QAbstractItemView::ScrollPerPixel}{scroll one pixel}.
By default, this property has a value of 3.
*/
/*!
\fn void QApplication::setEffectEnabled(Qt::UIEffect effect, bool enable)
Enables the UI effect \a effect if \a enable is true, otherwise the effect
will not be used.
\note All effects are disabled on screens running at less than 16-bit color
depth.
\sa isEffectEnabled(), Qt::UIEffect, setDesktopSettingsAware()
*/
/*!
\fn bool QApplication::isEffectEnabled(Qt::UIEffect effect)
Returns true if \a effect is enabled; otherwise returns false.
By default, Qt will try to use the desktop settings. To prevent this, call
setDesktopSettingsAware(false).
\note All effects are disabled on screens running at less than 16-bit color
depth.
\sa setEffectEnabled(), Qt::UIEffect
*/
/*!
\fn QWidget *QApplication::mainWidget()
Returns the main application widget, or 0 if there is no main widget.
*/
/*!
\fn void QApplication::setMainWidget(QWidget *mainWidget)
Sets the application's main widget to \a mainWidget.
In most respects the main widget is like any other widget, except that if
it is closed, the application exits. QApplication does \e not take
ownership of the \a mainWidget, so if you create your main widget on the
heap you must delete it yourself.
You need not have a main widget; connecting lastWindowClosed() to quit()
is an alternative.
On X11, this function also resizes and moves the main widget according
to the \e -geometry command-line option, so you should set the default
geometry (using \l QWidget::setGeometry()) before calling setMainWidget().
\sa mainWidget(), exec(), quit()
*/
/*!
\fn void QApplication::beep()
Sounds the bell, using the default volume and sound. The function is \e not
available in Qt for Embedded Linux.
*/
/*!
\fn void QApplication::setOverrideCursor(const QCursor &cursor)
Sets the application override cursor to \a cursor.
Application override cursors are intended for showing the user that the
application is in a special state, for example during an operation that
might take some time.
This cursor will be displayed in all the application's widgets until
restoreOverrideCursor() or another setOverrideCursor() is called.
Application cursors are stored on an internal stack. setOverrideCursor()
pushes the cursor onto the stack, and restoreOverrideCursor() pops the
active cursor off the stack. changeOverrideCursor() changes the curently
active application override cursor.
Every setOverrideCursor() must eventually be followed by a corresponding
restoreOverrideCursor(), otherwise the stack will never be emptied.
Example:
\snippet doc/src/snippets/code/src_gui_kernel_qapplication_x11.cpp 0
\sa overrideCursor(), restoreOverrideCursor(), changeOverrideCursor(),
QWidget::setCursor()
*/
/*!
\fn void QApplication::restoreOverrideCursor()
Undoes the last setOverrideCursor().
If setOverrideCursor() has been called twice, calling
restoreOverrideCursor() will activate the first cursor set. Calling this
function a second time restores the original widgets' cursors.
\sa setOverrideCursor(), overrideCursor()
*/
/*!
\macro qApp
\relates QApplication
A global pointer referring to the unique application object. It is
equivalent to the pointer returned by the QCoreApplication::instance()
function except that, in GUI applications, it is a pointer to a
QApplication instance.
Only one application object can be created.
\sa QCoreApplication::instance()
*/
#ifndef QT_NO_IM
// ************************************************************************
// Input Method support
// ************************************************************************
/*!
This function replaces the QInputContext instance used by the application
with \a inputContext.
Qt takes ownership of the given \a inputContext.
\sa inputContext()
*/
void QApplication::setInputContext(QInputContext *inputContext)
{
if (inputContext == QApplicationPrivate::inputContext)
return;
if (!inputContext) {
qWarning("QApplication::setInputContext: called with 0 input context");
return;
}
delete QApplicationPrivate::inputContext;
QApplicationPrivate::inputContext = inputContext;
QApplicationPrivate::inputContext->setParent(this);
}
/*!
Returns the QInputContext instance used by the application.
\sa setInputContext()
*/
QInputContext *QApplication::inputContext() const
{
Q_D(const QApplication);
Q_UNUSED(d);// only static members being used.
if (QApplicationPrivate::is_app_closing)
return d->inputContext;
#ifdef Q_WS_X11
if (!X11)
return 0;
if (!d->inputContext) {
QApplication *that = const_cast<QApplication *>(this);
QInputContext *qic = QInputContextFactory::create(X11->default_im, that);
// fallback to default X Input Method.
if (!qic)
qic = QInputContextFactory::create(QLatin1String("xim"), that);
that->d_func()->inputContext = qic;
}
#elif defined(Q_OS_SYMBIAN)
if (!d->inputContext) {
QApplication *that = const_cast<QApplication *>(this);
const QStringList keys = QInputContextFactory::keys();
// Try hbim and coefep first, then try others.
if (keys.contains(QLatin1String("hbim"))) {
that->d_func()->inputContext = QInputContextFactory::create(QLatin1String("hbim"), that);
} else if (keys.contains(QLatin1String("coefep"))) {
that->d_func()->inputContext = QInputContextFactory::create(QLatin1String("coefep"), that);
} else {
for (int c = 0; c < keys.size() && !d->inputContext; ++c) {
that->d_func()->inputContext = QInputContextFactory::create(keys[c], that);
}
}
}
#endif
return d->inputContext;
}
#endif // QT_NO_IM
//Returns the current platform used by keyBindings
uint QApplicationPrivate::currentPlatform(){
uint platform = KB_Win;
#ifdef Q_WS_MAC
platform = KB_Mac;
#elif defined Q_WS_X11
platform = KB_X11;
if (X11->desktopEnvironment == DE_KDE)
platform |= KB_KDE;
if (X11->desktopEnvironment == DE_GNOME)
platform |= KB_Gnome;
if (X11->desktopEnvironment == DE_CDE)
platform |= KB_CDE;
#elif defined(Q_OS_SYMBIAN)
platform = KB_S60;
#endif
return platform;
}
bool qt_sendSpontaneousEvent(QObject *receiver, QEvent *event)
{
return QCoreApplication::sendSpontaneousEvent(receiver, event);
}
/*!
\since 4.2
Returns the current keyboard input locale.
*/
QLocale QApplication::keyboardInputLocale()
{
if (!QApplicationPrivate::checkInstance("keyboardInputLocale"))
return QLocale::c();
return qt_keymapper_private()->keyboardInputLocale;
}
/*!
\since 4.2
Returns the current keyboard input direction.
*/
Qt::LayoutDirection QApplication::keyboardInputDirection()
{
if (!QApplicationPrivate::checkInstance("keyboardInputDirection"))
return Qt::LeftToRight;
return qt_keymapper_private()->keyboardInputDirection;
}
void QApplicationPrivate::giveFocusAccordingToFocusPolicy(QWidget *widget,
Qt::FocusPolicy focusPolicy,
Qt::FocusReason focusReason)
{
QWidget *focusWidget = widget;
while (focusWidget) {
if (focusWidget->isEnabled()
&& QApplicationPrivate::shouldSetFocus(focusWidget, focusPolicy)) {
focusWidget->setFocus(focusReason);
break;
}
if (focusWidget->isWindow())
break;
focusWidget = focusWidget->parentWidget();
}
}
bool QApplicationPrivate::shouldSetFocus(QWidget *w, Qt::FocusPolicy policy)
{
QWidget *f = w;
while (f->d_func()->extra && f->d_func()->extra->focus_proxy)
f = f->d_func()->extra->focus_proxy;
if ((w->focusPolicy() & policy) != policy)
return false;
if (w != f && (f->focusPolicy() & policy) != policy)
return false;
return true;
}
/*! \fn QDecoration &QApplication::qwsDecoration()
Return the QWSDecoration used for decorating windows.
\warning This method is non-portable. It is only available in
Qt for Embedded Linux.
\sa QDecoration
*/
/*!
\fn void QApplication::qwsSetDecoration(QDecoration *decoration)
Sets the QDecoration derived class to use for decorating the
windows used by Qt for Embedded Linux to the \a decoration
specified.
This method is non-portable. It is only available in Qt for Embedded Linux.
\sa QDecoration
*/
/*! \fn QDecoration* QApplication::qwsSetDecoration(const QString &decoration)
\overload
Requests a QDecoration object for \a decoration from the
QDecorationFactory.
The string must be one of the QDecorationFactory::keys(). Keys are case
insensitive.
A later call to the QApplication constructor will override the requested
style when a "-style" option is passed in as a commandline parameter.
Returns 0 if an unknown \a decoration is passed, otherwise the QStyle object
returned is set as the application's GUI style.
*/
/*!
\fn bool QApplication::qwsEventFilter(QWSEvent *event)
This virtual function is only implemented under Qt for Embedded Linux.
If you create an application that inherits QApplication and
reimplement this function, you get direct access to all QWS (Q
Window System) events that the are received from the QWS master
process. The events are passed in the \a event parameter.
Return true if you want to stop the event from being processed.
Return false for normal event dispatching. The default
implementation returns false.
*/
/*! \fn void QApplication::qwsSetCustomColors(QRgb *colorTable, int start, int numColors)
Set Qt for Embedded Linux custom color table.
Qt for Embedded Linux on 8-bpp displays allocates a standard 216 color cube.
The remaining 40 colors may be used by setting a custom color
table in the QWS master process before any clients connect.
\a colorTable is an array of up to 40 custom colors. \a start is
the starting index (0-39) and \a numColors is the number of colors
to be set (1-40).
This method is non-portable. It is available \e only in
Qt for Embedded Linux.
\note The custom colors will not be used by the default screen
driver. To make use of the new colors, implement a custom screen
driver, or use QDirectPainter.
*/
/*! \fn int QApplication::qwsProcessEvent(QWSEvent* event)
\internal
*/
/*! \fn int QApplication::x11ClientMessage(QWidget* w, XEvent* event, bool passive_only)
\internal
*/
/*! \fn int QApplication::x11ProcessEvent(XEvent* event)
This function does the core processing of individual X
\a{event}s, normally by dispatching Qt events to the right
destination.
It returns 1 if the event was consumed by special handling, 0 if
the \a event was consumed by normal handling, and -1 if the \a
event was for an unrecognized widget.
\sa x11EventFilter()
*/
/*!
\fn bool QApplication::x11EventFilter(XEvent *event)
\warning This virtual function is only implemented under X11.
If you create an application that inherits QApplication and
reimplement this function, you get direct access to all X events
that the are received from the X server. The events are passed in
the \a event parameter.
Return true if you want to stop the event from being processed.
Return false for normal event dispatching. The default
implementation returns false.
It is only the directly addressed messages that are filtered.
You must install an event filter directly on the event
dispatcher, which is returned by
QAbstractEventDispatcher::instance(), to handle system wide
messages.
\sa x11ProcessEvent()
*/
/*! \fn void QApplication::winFocus(QWidget *widget, bool gotFocus)
\internal
\since 4.1
If \a gotFocus is true, \a widget will become the active window.
Otherwise the active window is reset to 0.
*/
/*! \fn void QApplication::winMouseButtonUp()
\internal
*/
/*! \fn void QApplication::syncX()
Synchronizes with the X server in the X11 implementation.
This normally takes some time. Does nothing on other platforms.
*/
void QApplicationPrivate::updateTouchPointsForWidget(QWidget *widget, QTouchEvent *touchEvent)
{
for (int i = 0; i < touchEvent->touchPoints().count(); ++i) {
QTouchEvent::TouchPoint &touchPoint = touchEvent->_touchPoints[i];
// preserve the sub-pixel resolution
QRectF rect = touchPoint.screenRect();
const QPointF screenPos = rect.center();
const QPointF delta = screenPos - screenPos.toPoint();
rect.moveCenter(widget->mapFromGlobal(screenPos.toPoint()) + delta);
touchPoint.d->rect = rect;
if (touchPoint.state() == Qt::TouchPointPressed) {
touchPoint.d->startPos = widget->mapFromGlobal(touchPoint.startScreenPos().toPoint()) + delta;
touchPoint.d->lastPos = widget->mapFromGlobal(touchPoint.lastScreenPos().toPoint()) + delta;
}
}
}
void QApplicationPrivate::initializeMultitouch()
{
widgetForTouchPointId.clear();
appCurrentTouchPoints.clear();
initializeMultitouch_sys();
}
void QApplicationPrivate::cleanupMultitouch()
{
cleanupMultitouch_sys();
widgetForTouchPointId.clear();
appCurrentTouchPoints.clear();
}
int QApplicationPrivate::findClosestTouchPointId(const QPointF &screenPos)
{
int closestTouchPointId = -1;
qreal closestDistance = qreal(0.);
foreach (const QTouchEvent::TouchPoint &touchPoint, appCurrentTouchPoints) {
qreal distance = QLineF(screenPos, touchPoint.screenPos()).length();
if (closestTouchPointId == -1 || distance < closestDistance) {
closestTouchPointId = touchPoint.id();
closestDistance = distance;
}
}
return closestTouchPointId;
}
void QApplicationPrivate::translateRawTouchEvent(QWidget *window,
QTouchEvent::DeviceType deviceType,
const QList<QTouchEvent::TouchPoint> &touchPoints)
{
QApplicationPrivate *d = self;
typedef QPair<Qt::TouchPointStates, QList<QTouchEvent::TouchPoint> > StatesAndTouchPoints;
QHash<QWidget *, StatesAndTouchPoints> widgetsNeedingEvents;
for (int i = 0; i < touchPoints.count(); ++i) {
QTouchEvent::TouchPoint touchPoint = touchPoints.at(i);
// explicitly detach from the original touch point that we got, so even
// if the touchpoint structs are reused, we will make a copy that we'll
// deliver to the user (which might want to store the struct for later use).
touchPoint.d = touchPoint.d->detach();
// update state
QWeakPointer<QWidget> widget;
switch (touchPoint.state()) {
case Qt::TouchPointPressed:
{
if (deviceType == QTouchEvent::TouchPad) {
// on touch-pads, send all touch points to the same widget
widget = d->widgetForTouchPointId.isEmpty()
? QWeakPointer<QWidget>()
: d->widgetForTouchPointId.constBegin().value();
}
if (!widget) {
// determine which widget this event will go to
if (!window)
window = QApplication::topLevelAt(touchPoint.screenPos().toPoint());
if (!window)
continue;
widget = window->childAt(window->mapFromGlobal(touchPoint.screenPos().toPoint()));
if (!widget)
widget = window;
}
if (deviceType == QTouchEvent::TouchScreen) {
int closestTouchPointId = d->findClosestTouchPointId(touchPoint.screenPos());
QWidget *closestWidget = d->widgetForTouchPointId.value(closestTouchPointId).data();
if (closestWidget
&& (widget.data()->isAncestorOf(closestWidget) || closestWidget->isAncestorOf(widget.data()))) {
widget = closestWidget;
}
}
d->widgetForTouchPointId[touchPoint.id()] = widget;
touchPoint.d->startScreenPos = touchPoint.screenPos();
touchPoint.d->lastScreenPos = touchPoint.screenPos();
touchPoint.d->startNormalizedPos = touchPoint.normalizedPos();
touchPoint.d->lastNormalizedPos = touchPoint.normalizedPos();
if (touchPoint.pressure() < qreal(0.))
touchPoint.d->pressure = qreal(1.);
d->appCurrentTouchPoints.insert(touchPoint.id(), touchPoint);
break;
}
case Qt::TouchPointReleased:
{
widget = d->widgetForTouchPointId.take(touchPoint.id());
if (!widget)
continue;
QTouchEvent::TouchPoint previousTouchPoint = d->appCurrentTouchPoints.take(touchPoint.id());
touchPoint.d->startScreenPos = previousTouchPoint.startScreenPos();
touchPoint.d->lastScreenPos = previousTouchPoint.screenPos();
touchPoint.d->startPos = previousTouchPoint.startPos();
touchPoint.d->lastPos = previousTouchPoint.pos();
touchPoint.d->startNormalizedPos = previousTouchPoint.startNormalizedPos();
touchPoint.d->lastNormalizedPos = previousTouchPoint.normalizedPos();
if (touchPoint.pressure() < qreal(0.))
touchPoint.d->pressure = qreal(0.);
break;
}
default:
widget = d->widgetForTouchPointId.value(touchPoint.id());
if (!widget)
continue;
Q_ASSERT(d->appCurrentTouchPoints.contains(touchPoint.id()));
QTouchEvent::TouchPoint previousTouchPoint = d->appCurrentTouchPoints.value(touchPoint.id());
touchPoint.d->startScreenPos = previousTouchPoint.startScreenPos();
touchPoint.d->lastScreenPos = previousTouchPoint.screenPos();
touchPoint.d->startPos = previousTouchPoint.startPos();
touchPoint.d->lastPos = previousTouchPoint.pos();
touchPoint.d->startNormalizedPos = previousTouchPoint.startNormalizedPos();
touchPoint.d->lastNormalizedPos = previousTouchPoint.normalizedPos();
if (touchPoint.pressure() < qreal(0.))
touchPoint.d->pressure = qreal(1.);
d->appCurrentTouchPoints[touchPoint.id()] = touchPoint;
break;
}
Q_ASSERT(widget.data() != 0);
// make the *scene* functions return the same as the *screen* functions
touchPoint.d->sceneRect = touchPoint.screenRect();
touchPoint.d->startScenePos = touchPoint.startScreenPos();
touchPoint.d->lastScenePos = touchPoint.lastScreenPos();
StatesAndTouchPoints &maskAndPoints = widgetsNeedingEvents[widget.data()];
maskAndPoints.first |= touchPoint.state();
if (touchPoint.isPrimary())
maskAndPoints.first |= Qt::TouchPointPrimary;
maskAndPoints.second.append(touchPoint);
}
if (widgetsNeedingEvents.isEmpty())
return;
QHash<QWidget *, StatesAndTouchPoints>::ConstIterator it = widgetsNeedingEvents.constBegin();
const QHash<QWidget *, StatesAndTouchPoints>::ConstIterator end = widgetsNeedingEvents.constEnd();
for (; it != end; ++it) {
QWidget *widget = it.key();
if (!QApplicationPrivate::tryModalHelper(widget, 0))
continue;
QEvent::Type eventType;
switch (it.value().first & Qt::TouchPointStateMask) {
case Qt::TouchPointPressed:
eventType = QEvent::TouchBegin;
break;
case Qt::TouchPointReleased:
eventType = QEvent::TouchEnd;
break;
case Qt::TouchPointStationary:
// don't send the event if nothing changed
continue;
default:
eventType = QEvent::TouchUpdate;
break;
}
QTouchEvent touchEvent(eventType,
deviceType,
QApplication::keyboardModifiers(),
it.value().first,
it.value().second);
updateTouchPointsForWidget(widget, &touchEvent);
switch (touchEvent.type()) {
case QEvent::TouchBegin:
{
// if the TouchBegin handler recurses, we assume that means the event
// has been implicitly accepted and continue to send touch events
widget->setAttribute(Qt::WA_WState_AcceptedTouchBeginEvent);
(void ) QApplication::sendSpontaneousEvent(widget, &touchEvent);
break;
}
default:
if (widget->testAttribute(Qt::WA_WState_AcceptedTouchBeginEvent)) {
if (touchEvent.type() == QEvent::TouchEnd)
widget->setAttribute(Qt::WA_WState_AcceptedTouchBeginEvent, false);
(void) QApplication::sendSpontaneousEvent(widget, &touchEvent);
}
break;
}
}
}
Q_GUI_EXPORT void qt_translateRawTouchEvent(QWidget *window,
QTouchEvent::DeviceType deviceType,
const QList<QTouchEvent::TouchPoint> &touchPoints)
{
QApplicationPrivate::translateRawTouchEvent(window, deviceType, touchPoints);
}
#ifndef QT_NO_GESTURES
QGestureManager* QGestureManager::instance()
{
if (QApplicationPrivate *qAppPriv = QApplicationPrivate::instance()) {
if (!qAppPriv->gestureManager)
qAppPriv->gestureManager = new QGestureManager(qApp);
return qAppPriv->gestureManager;
}
return 0;
}
#endif // QT_NO_GESTURES
// These pixmaps approximate the images in the Windows User Interface Guidelines.
// XPM
static const char * const move_xpm[] = {
"11 20 3 1",
". c None",
#if defined(Q_WS_WIN)
"a c #000000",
"X c #FFFFFF", // Windows cursor is traditionally white
#else
"a c #FFFFFF",
"X c #000000", // X11 cursor is traditionally black
#endif
"aa.........",
"aXa........",
"aXXa.......",
"aXXXa......",
"aXXXXa.....",
"aXXXXXa....",
"aXXXXXXa...",
"aXXXXXXXa..",
"aXXXXXXXXa.",
"aXXXXXXXXXa",
"aXXXXXXaaaa",
"aXXXaXXa...",
"aXXaaXXa...",
"aXa..aXXa..",
"aa...aXXa..",
"a.....aXXa.",
"......aXXa.",
".......aXXa",
".......aXXa",
"........aa."};
#ifdef Q_WS_WIN
/* XPM */
static const char * const ignore_xpm[] = {
"24 30 3 1",
". c None",
"a c #000000",
"X c #FFFFFF",
"aa......................",
"aXa.....................",
"aXXa....................",
"aXXXa...................",
"aXXXXa..................",
"aXXXXXa.................",
"aXXXXXXa................",
"aXXXXXXXa...............",
"aXXXXXXXXa..............",
"aXXXXXXXXXa.............",
"aXXXXXXaaaa.............",
"aXXXaXXa................",
"aXXaaXXa................",
"aXa..aXXa...............",
"aa...aXXa...............",
"a.....aXXa..............",
"......aXXa.....XXXX.....",
".......aXXa..XXaaaaXX...",
".......aXXa.XaaaaaaaaX..",
"........aa.XaaaXXXXaaaX.",
"...........XaaaaX..XaaX.",
"..........XaaXaaaX..XaaX",
"..........XaaXXaaaX.XaaX",
"..........XaaX.XaaaXXaaX",
"..........XaaX..XaaaXaaX",
"...........XaaX..XaaaaX.",
"...........XaaaXXXXaaaX.",
"............XaaaaaaaaX..",
".............XXaaaaXX...",
"...............XXXX....."};
#endif
/* XPM */
static const char * const copy_xpm[] = {
"24 30 3 1",
". c None",
"a c #000000",
"X c #FFFFFF",
#if defined(Q_WS_WIN) // Windows cursor is traditionally white
"aa......................",
"aXa.....................",
"aXXa....................",
"aXXXa...................",
"aXXXXa..................",
"aXXXXXa.................",
"aXXXXXXa................",
"aXXXXXXXa...............",
"aXXXXXXXXa..............",
"aXXXXXXXXXa.............",
"aXXXXXXaaaa.............",
"aXXXaXXa................",
"aXXaaXXa................",
"aXa..aXXa...............",
"aa...aXXa...............",
"a.....aXXa..............",
"......aXXa..............",
".......aXXa.............",
".......aXXa.............",
"........aa...aaaaaaaaaaa",
#else
"XX......................",
"XaX.....................",
"XaaX....................",
"XaaaX...................",
"XaaaaX..................",
"XaaaaaX.................",
"XaaaaaaX................",
"XaaaaaaaX...............",
"XaaaaaaaaX..............",
"XaaaaaaaaaX.............",
"XaaaaaaXXXX.............",
"XaaaXaaX................",
"XaaXXaaX................",
"XaX..XaaX...............",
"XX...XaaX...............",
"X.....XaaX..............",
"......XaaX..............",
".......XaaX.............",
".......XaaX.............",
"........XX...aaaaaaaaaaa",
#endif
".............aXXXXXXXXXa",
".............aXXXXXXXXXa",
".............aXXXXaXXXXa",
".............aXXXXaXXXXa",
".............aXXaaaaaXXa",
".............aXXXXaXXXXa",
".............aXXXXaXXXXa",
".............aXXXXXXXXXa",
".............aXXXXXXXXXa",
".............aaaaaaaaaaa"};
/* XPM */
static const char * const link_xpm[] = {
"24 30 3 1",
". c None",
"a c #000000",
"X c #FFFFFF",
#if defined(Q_WS_WIN) // Windows cursor is traditionally white
"aa......................",
"aXa.....................",
"aXXa....................",
"aXXXa...................",
"aXXXXa..................",
"aXXXXXa.................",
"aXXXXXXa................",
"aXXXXXXXa...............",
"aXXXXXXXXa..............",
"aXXXXXXXXXa.............",
"aXXXXXXaaaa.............",
"aXXXaXXa................",
"aXXaaXXa................",
"aXa..aXXa...............",
"aa...aXXa...............",
"a.....aXXa..............",
"......aXXa..............",
".......aXXa.............",
".......aXXa.............",
"........aa...aaaaaaaaaaa",
#else
"XX......................",
"XaX.....................",
"XaaX....................",
"XaaaX...................",
"XaaaaX..................",
"XaaaaaX.................",
"XaaaaaaX................",
"XaaaaaaaX...............",
"XaaaaaaaaX..............",
"XaaaaaaaaaX.............",
"XaaaaaaXXXX.............",
"XaaaXaaX................",
"XaaXXaaX................",
"XaX..XaaX...............",
"XX...XaaX...............",
"X.....XaaX..............",
"......XaaX..............",
".......XaaX.............",
".......XaaX.............",
"........XX...aaaaaaaaaaa",
#endif
".............aXXXXXXXXXa",
".............aXXXaaaaXXa",
".............aXXXXaaaXXa",
".............aXXXaaaaXXa",
".............aXXaaaXaXXa",
".............aXXaaXXXXXa",
".............aXXaXXXXXXa",
".............aXXXaXXXXXa",
".............aXXXXXXXXXa",
".............aaaaaaaaaaa"};
QPixmap QApplicationPrivate::getPixmapCursor(Qt::CursorShape cshape)
{
#if defined(Q_WS_X11) || defined(Q_WS_WIN)
if (!move_cursor) {
move_cursor = new QPixmap((const char **)move_xpm);
copy_cursor = new QPixmap((const char **)copy_xpm);
link_cursor = new QPixmap((const char **)link_xpm);
#ifdef Q_WS_WIN
ignore_cursor = new QPixmap((const char **)ignore_xpm);
#endif
}
switch (cshape) {
case Qt::DragMoveCursor:
return *move_cursor;
case Qt::DragCopyCursor:
return *copy_cursor;
case Qt::DragLinkCursor:
return *link_cursor;
#ifdef Q_WS_WIN
case Qt::ForbiddenCursor:
return *ignore_cursor;
#endif
default:
break;
}
#endif
return QPixmap();
}
QString QApplicationPrivate::qmljsDebugArgumentsString()
{
return qmljs_debug_arguments;
}
QT_END_NAMESPACE
#include "moc_qapplication.cpp"
| [
"sonyang@seas.upenn.edu"
] | sonyang@seas.upenn.edu |
9bec5377d577362a149f8020fc1bea16ba876942 | 204c5937cdea475f5c3dafde6d770a74ae9b8919 | /UVA/Chapter 1. Algorithm Design/General Problem Solving Techniques/Exercises Beginner/11039.cpp | 088316ac7afcfea79b22f9c9d92981a4843d7fb8 | [] | no_license | mlz000/Algorithms | ad2c35e4441bcbdad61203489888b83627024b7e | 495eb701d4ec6b317816786ad5b38681fbea1001 | refs/heads/master | 2023-01-04T03:50:02.673937 | 2023-01-02T22:46:20 | 2023-01-02T22:46:20 | 101,135,823 | 7 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,045 | cpp | #include<cstdio>
#include<iostream>
#include<algorithm>
#include<cstring>
using namespace std;
const int N=500005;
int a[N],b[N];
int tot1,tot2;
int work(int p)
{
int ans=1;
int i,j;
i=j=1;
while(i<=tot1 && j<=tot2)
{
if(p)
{
while(a[i]>b[j] && j<=tot2) j++;
if(j<=tot2) ans++;
p=0;
}
else
{
while(a[i]<b[j] && i<=tot1) i++;
if(i<=tot1) ans++;
p=1;
}
}
return ans;
}
int main()
{
int t;
int i,j,n;
scanf("%d",&t);
for(i=1;i<=t;++i)
{
int num=0;
tot1=0;tot2=0;
scanf("%d",&n);
for(j=1;j<=n;++j)
{
int x;
scanf("%d",&x);
if(x>0) a[++tot1]=x;
else if(x<0) b[++tot2]=-x;
}
if(!tot1 || !tot2) printf("1\n");
else
{
sort(&a[1],&a[tot1+1]);
sort(&b[1],&b[tot2+1]);
int MAX=max(work(1),work(0));
printf("%d\n",MAX);
}
}
return 0;
}
| [
"njumlz@gmail.com"
] | njumlz@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.