blob_id
stringlengths 40
40
| directory_id
stringlengths 40
40
| path
stringlengths 2
247
| content_id
stringlengths 40
40
| detected_licenses
listlengths 0
57
| license_type
stringclasses 2
values | repo_name
stringlengths 4
111
| snapshot_id
stringlengths 40
40
| revision_id
stringlengths 40
40
| branch_name
stringlengths 4
58
| visit_date
timestamp[ns]date 2015-07-25 18:16:41
2023-09-06 10:45:08
| revision_date
timestamp[ns]date 1970-01-14 14:03:36
2023-09-06 06:22:19
| committer_date
timestamp[ns]date 1970-01-14 14:03:36
2023-09-06 06:22:19
| github_id
int64 3.89k
689M
⌀ | star_events_count
int64 0
209k
| fork_events_count
int64 0
110k
| gha_license_id
stringclasses 25
values | gha_event_created_at
timestamp[ns]date 2012-06-07 00:51:45
2023-09-14 21:58:52
⌀ | gha_created_at
timestamp[ns]date 2008-03-27 23:40:48
2023-08-24 19:49:39
⌀ | gha_language
stringclasses 159
values | src_encoding
stringclasses 34
values | language
stringclasses 1
value | is_vendor
bool 1
class | is_generated
bool 2
classes | length_bytes
int64 7
10.5M
| extension
stringclasses 111
values | filename
stringlengths 1
195
| text
stringlengths 7
10.5M
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4340eb219680991567e1eb2ccb1af4ce71f5f75f
|
eb1257b41e4741fb2c458d763bf8346dcaf857b6
|
/include/CGeomZBuffer.h
|
ffa0fc81bc78c2a66299d94e72aab4af7f4c1f32
|
[
"MIT"
] |
permissive
|
colinw7/CGeometry3D
|
a63b36d052dd463178976c495aa96416b5c5d737
|
d33d06d33b9c42dc37b44e96453a19dcf19efa0e
|
refs/heads/master
| 2023-04-12T23:06:02.530127
| 2023-04-03T15:58:57
| 2023-04-03T15:58:57
| 84,611,832
| 1
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 11,525
|
h
|
CGeomZBuffer.h
|
#ifndef CGEOM_ZBUFFER_H
#define CGEOM_ZBUFFER_H
#include <CBresenham.h>
#include <CImage.h>
#include <CFont.h>
#include <CGeom3DRenderer.h>
#include <CMathGeom2D.h>
class CGeomFace3D;
class CGeom3DBresenham : public CBresenham {
public:
CGeom3DBresenham(CGeom3DRenderer *renderer) :
renderer_(renderer) {
}
void drawPoint(int x, int y) override {
renderer_->drawPoint(CIPoint2D(x, y));
}
const CILineDash &getLineDash() const override {
static CILineDash dash;
return dash;
}
private:
CGeom3DRenderer *renderer_ { nullptr };
};
//------
class CGeomZBuffer {
private:
class Renderer : public CGeom3DRenderer {
public:
Renderer(CGeomZBuffer *buffer) :
buffer_(buffer), bresenham_(this) {
}
Renderer *dup() const {
return new Renderer(buffer_);
}
uint getWidth () const override { return buffer_->getWidth (); }
uint getHeight() const override { return buffer_->getHeight(); }
void setForeground(const CRGBA &rgba) override {
buffer_->setForeground(rgba);
}
void drawZLine(int x1, int y1, double z1, int x2, int y2, double z2, bool alpha=false) {
bool alpha1 = setZAlpha(alpha);
int dx = abs(x2 - x1);
int dy = abs(y2 - y1);
if (dx > dy) {
if (x2 > x1) {
z_ = z1;
dz_ = (z2 - z1)/(x2 - x1);
}
else {
z_ = z2;
dz_ = (z1 - z2)/(x1 - x2);
}
}
else {
if (y2 > y1) {
z_ = z1;
dz_ = (z2 - z1)/(y2 - y1);
}
else {
z_ = z2;
dz_ = (z1 - z2)/(y1 - y2);
}
}
auto width = getWidth ();
auto height = getHeight();
if (CMathGeom2D::clipLine(0, 0, int(width - 1), int(height - 1), &x1, &y1, &x2, &y2))
bresenham_.drawLine(x1, y1, x2, y2);
setZAlpha(alpha1);
}
bool getZAlpha() const { return alpha_; }
bool setZAlpha(bool alpha) {
std::swap(alpha_, alpha);
return alpha;
}
void drawAlphaZLine(int x1, int y1, int x2, int y2) {
drawZLine(x1, y1, 0, x2, y2, 1, true);
}
void drawZLine(int x1, int y1, int x2, int y2) {
drawZLine(x1, y1, 0, x2, y2, 1, false);
}
void drawPoint(const CIPoint2D &point) override {
if (! getZAlpha()) {
buffer_->drawFacePoint(nullptr, point.x, point.y, z_);
z_ += dz_;
}
else
buffer_->drawOverlayPoint(point.x, point.y);
}
void drawLine(const CIPoint2D &, const CIPoint2D &) override {
//buffer_->drawOverlayZLine(point1, point2);
}
void setFont(CFontPtr font) override {
buffer_->setFont(font);
}
void drawString(const CIPoint2D &point, const std::string &str) override {
buffer_->drawOverlayImageString(point.x, point.y, str);
}
void fillCircle(const CIPoint2D &, double) override {
//buffer_->fillCircle(c, r);
}
#if 0
void drawClippedChar(const CIPoint2D &point, char c) {
buffer_->drawOverlayImageChar(point.x, point.y, c);
}
void drawClippedRectangle(const CIBBox2D &bbox) {
buffer_->drawRectangle(bbox);
}
void fillClippedRectangle(const CIBBox2D &bbox) {
buffer_->fillRectangle(bbox);
}
void fillClippedTriangle(const CIPoint2D &point1, const CIPoint2D &point2,
const CIPoint2D &point3) {
buffer_->fillTriangle(point1, point2, point3);
}
void drawClippedPolygon(const std::vector<CIPoint2D> &points) {
buffer_->drawPolygon(points);
}
void fillClippedPolygon(const std::vector<CIPoint2D> &points) {
buffer_->fillPolygon(points);
}
void drawClippedImage(const CIPoint2D &point, CImagePtr image) {
buffer_->drawImage(point, image);
}
int getCharWidth (char) { return 8; }
int getCharWidth () { return 8; }
int getCharAscent () { return 12; }
int getCharDescent() { return 0; }
int getStringWidth(const std::string &str) {
return str.size()*getCharWidth();
}
#endif
private:
Renderer(const Renderer &rhs);
Renderer &operator=(const Renderer &rhs);
private:
CGeomZBuffer *buffer_ { nullptr };
double z_ { 0 }, dz_ { 0 };
CGeom3DBresenham bresenham_;
bool alpha_ { false };
};
//---
struct Pixel {
bool set { false };
double z { 0.0 };
CRGBA rgba { 0, 0, 0 };
CGeomFace3D *face { nullptr };
Pixel() { }
private:
Pixel(const Pixel &rhs);
Pixel &operator=(const Pixel &rhs);
};
struct Line {
bool set { false };
uint width { 0 };
uint start { 0 }, end { 0 };
Pixel *pixels { nullptr };
Line(uint width1=0) :
width(width1) {
}
void clear() {
set = false;
for (uint x = start; x <= end; ++x)
pixels[x].set = false;
}
private:
Line(const Line &rhs);
Line &operator=(const Line &rhs);
};
//------
public:
CGeomZBuffer(CGeom3DRenderer *renderer) :
renderer_(renderer), zrenderer_(this) {
updateSize();
}
~CGeomZBuffer() {
resize(0, 0);
}
CGeom3DRenderer *getRenderer() const { return renderer_; }
void setRenderer(CGeom3DRenderer *renderer) {
renderer_ = renderer;
}
uint getWidth () const { return width_ ; }
uint getHeight() const { return height_; }
void updateSize() {
if (renderer_)
resize(renderer_->getWidth (), renderer_->getHeight());
}
void resize(uint width, uint height) {
if (width == width_ || height == height_)
return;
for (uint y = 0; y < height_; ++y)
delete [] lines_[y].pixels;
delete [] lines_;
//-----
width_ = width;
height_ = height;
if (height_ > 0) {
lines_ = new Line [height_];
for (uint y = 0; y < height_; ++y) {
Line *line = &lines_[y];
line->width = width_;
line->pixels = new Pixel [width_];
}
}
else
lines_ = nullptr;
}
void clear() {
for (uint y = 0; y < height_; ++y) {
Line *line = &lines_[y];
if (! line->set) continue;
line->clear();
}
}
void setForeground(const CRGBA &rgba) {
rgba_ = rgba;
}
void setFont(CFontPtr font) {
font_ = font;
}
void drawFacePoint(CGeomFace3D *face, int x, int y, double z) {
if (z > 0) return;
if (x < 0 || x >= int(width_ ) ||
y < 0 || y >= int(height_))
return;
Line *line = &lines_[y];
if (! lines_[y].set) {
line->set = true;
line->start = uint(x);
line->end = uint(x);
}
else {
line->start = std::min(line->start, uint(x));
line->end = std::max(line->end , uint(x));
}
Pixel *pixel = &line->pixels[x];
if (! pixel->set) {
if (writable_) {
pixel->z = z;
pixel->rgba = rgba_;
pixel->set = true;
if (face)
pixel->face = face;
}
else {
if (! rgba_.isTransparent()) {
pixel->rgba = rgba_;
pixel->set = true;
}
}
}
else if (z > pixel->z) {
if (writable_) {
pixel->z = z;
pixel->rgba = rgba_;
if (face)
pixel->face = face;
}
else
pixel->rgba = CRGBA::modeCombine(rgba_, pixel->rgba,
CRGBA_COMBINE_SRC_ALPHA,
CRGBA_COMBINE_ONE_MINUS_SRC_ALPHA);
}
}
void drawOverlayPoint(int x, int y) {
if (x < 0 || x >= int(width_ ) ||
y < 0 || y >= int(height_))
return;
Line *line = &lines_[y];
if (! lines_[y].set) {
line->set = true;
line->start = uint(x);
line->end = uint(x);
}
else {
line->start = std::min(line->start, uint(x));
line->end = std::max(line->end , uint(x));
}
Pixel *pixel = &line->pixels[x];
if (pixel->set)
pixel->rgba = CRGBA::modeCombine(rgba_, pixel->rgba,
CRGBA_COMBINE_SRC_ALPHA,
CRGBA_COMBINE_ONE_MINUS_SRC_ALPHA);
else {
if (! rgba_.isTransparent()) {
pixel->rgba = rgba_;
pixel->set = true;
}
}
}
void drawZLine(int x1, int y1, double z1, int x2, int y2, double z2) {
zrenderer_.drawZLine(x1, y1, z1, x2, y2, z2);
}
void drawOverlayZLine(int x1, int y1, int x2, int y2) {
zrenderer_.drawAlphaZLine(x1, y1, x2, y2);
}
void drawImage(int x, int y, double z, CImagePtr image) {
auto iwidth = image->getWidth ();
auto iheight = image->getHeight();
int x1 = 0;
int x2 = int(iwidth - 1);
int y1 = 0;
int y2 = int(iheight - 1);
CRGBA rgba;
for (int yy = y1; yy <= y2; ++yy) {
for (int xx = x1; xx <= x2; ++xx) {
image->getRGBAPixel(xx, yy, rgba);
setForeground(rgba);
drawFacePoint(nullptr, x + xx, y + yy, z);
}
}
}
void drawOverlayImage(int x, int y, CImagePtr image) {
auto iwidth = image->getWidth ();
auto iheight = image->getHeight();
int x1 = 0;
int x2 = int(iwidth - 1);
int y1 = 0;
int y2 = int(iheight - 1);
CRGBA rgba;
for (int yy = y1; yy <= y2; ++yy) {
for (int xx = x1; xx <= x2; ++xx) {
image->getRGBAPixel(xx, yy, rgba);
setForeground(rgba);
drawOverlayPoint(x + xx, y + yy);
}
}
}
void drawOverlayString(int x, int y, const std::string &str) {
bool alpha = zrenderer_.setZAlpha(true);
zrenderer_.setFont(font_);
zrenderer_.drawString(CIPoint2D(x, y), str);
zrenderer_.setZAlpha(alpha);
}
void drawOverlayImageString(int x, int y, const std::string &str) {
CImagePtr image = font_->getStringImage(str);
drawOverlayImage(x, y, image);
}
void drawOverlayImageChar(int x, int y, char c) {
CImagePtr image = font_->getCharImage(c);
drawOverlayImage(x, y, image);
}
void fillOverlayRectangle(int x, int y, int w, int h) {
for (int y1 = 0; y1 < h; ++y1)
drawOverlayZLine(x, y + y1, x + w - 1, y + y1);
}
void draw() {
for (uint y = 0; y < height_; ++y) {
Line *line = &lines_[y];
if (! line->set) continue;
for (uint x = line->start; x <= line->end; ++x) {
Pixel *pixel = &line->pixels[x];
if (! pixel->set) continue;
renderer_->setForeground(pixel->rgba);
renderer_->drawPoint(CIPoint2D(int(x), int(y)));
}
}
}
CGeomFace3D *getFace(int x, int y) {
if (x < 0 || x >= int(width_ ) ||
y < 0 || y >= int(height_))
return nullptr;
Line *line = &lines_[y];
if (! line->set)
return nullptr;
Pixel *pixel = &line->pixels[x];
if (! pixel->set)
return nullptr;
return pixel->face;
}
double getZ(int x, int y) {
if (x < 0 || x >= int(width_ ) ||
y < 0 || y >= int(height_))
return 0;
Line *line = &lines_[y];
if (! line->set)
return 0;
Pixel *pixel = &line->pixels[x];
if (! pixel->set)
return 0;
return pixel->z;
}
private:
CGeomZBuffer(const CGeomZBuffer &rhs);
CGeomZBuffer &operator=(const CGeomZBuffer &rhs);
private:
CGeom3DRenderer *renderer_ { nullptr };
Line *lines_ { nullptr };
uint width_ { 0 }, height_ { 0 };
CRGBA rgba_ { 0, 0, 0 };
CFontPtr font_;
Renderer zrenderer_;
bool writable_ { true };
};
#endif
|
216e5374fb226bf5c92013c10e03dad42f7cac22
|
917160730f635aa67e533775a59a12bc3586a4e6
|
/mjolnir/math/Vector.hpp
|
ca33a7705d2bb72fac13fe88efc34d7fd8c7dffa
|
[
"MIT"
] |
permissive
|
0h-n0/Mjolnir
|
746ba7955d2da338642b1cb4de12babeb1a0fe6a
|
df27c7a3b1d2a651c69d7fcd83f43d3e327de66c
|
refs/heads/master
| 2020-03-17T16:41:30.414971
| 2018-05-14T09:06:21
| 2018-05-14T09:06:21
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 2,162
|
hpp
|
Vector.hpp
|
#ifndef MJOLNIR_MATH_VECTOR_H
#define MJOLNIR_MATH_VECTOR_H
#include <mjolnir/math/Matrix.hpp>
#include <mjolnir/math/quaternion.hpp>
#include <mjolnir/math/rsqrt.hpp>
#include <cmath>
namespace mjolnir
{
template<typename realT, std::size_t N>
using Vector = Matrix<realT, N, 1>;
// functions for vector 3d
template<typename realT>
inline realT
dot_product(const Vector<realT, 3>& lhs, const Vector<realT, 3>& rhs) noexcept
{
return lhs[0] * rhs[0] + lhs[1] * rhs[1] + lhs[2] * rhs[2];
}
template<typename realT>
inline Vector<realT, 3>
cross_product(const Vector<realT, 3>& lhs, const Vector<realT, 3>& rhs) noexcept
{
return Vector<realT, 3>(lhs[1] * rhs[2] - lhs[2] * rhs[1],
lhs[2] * rhs[0] - lhs[0] * rhs[2],
lhs[0] * rhs[1] - lhs[1] * rhs[0]);
}
template<typename realT>
inline realT
scalar_triple_product(const Vector<realT, 3>& lhs, const Vector<realT, 3>& mid,
const Vector<realT, 3>& rhs) noexcept
{
return (lhs[1] * mid[2] - lhs[2] * mid[1]) * rhs[0] +
(lhs[2] * mid[0] - lhs[0] * mid[2]) * rhs[1] +
(lhs[0] * mid[1] - lhs[1] * mid[0]) * rhs[2];
}
template<typename realT>
inline realT length_sq(const Vector<realT, 3>& lhs) noexcept
{
return lhs[0] * lhs[0] + lhs[1] * lhs[1] + lhs[2] * lhs[2];
}
template<typename realT>
inline realT length(const Vector<realT, 3>& lhs) noexcept
{
return std::sqrt(length_sq(lhs));
}
template<typename realT>
Vector<realT, 3>
rotate(const realT angle, const Vector<realT, 3>& axis,
const Vector<realT, 3>& target) noexcept
{
const realT half_angle = angle / 2;
const realT sin_normalized = std::sin(half_angle) * rsqrt(length_sq(axis));
const quaternion<realT> Q{std::cos(half_angle),
axis[0] * sin_normalized,
axis[1] * sin_normalized,
axis[2] * sin_normalized};
const quaternion<realT> P(0e0, target[0], target[1], target[2]);
const quaternion<realT> S(Q * P * conj(Q));
return Vector<realT, 3>{S[1], S[2], S[3]};
}
} // mjolnir
#endif /* MJOLNIR_VECTOR */
|
b263529f62c78545319457f15b2c5c1403d7c909
|
133e172fcdab0aa07c11c1190fd1ca1f27f57260
|
/whoi/Classes/Native/Assembly-CSharp.cpp
|
cb7cf0903e9adbac76a5a60ae573dd9a6348914a
|
[] |
no_license
|
evandenmark/WHOI-AR
|
154641d9274616e2f349d5c894169d48de5c1417
|
aa82d98f84d360d1520a11bdc8fdd6ab2c815706
|
refs/heads/master
| 2022-07-12T09:58:17.123770
| 2020-05-17T18:59:54
| 2020-05-17T18:59:54
| 264,730,323
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 454,652
|
cpp
|
Assembly-CSharp.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 "codegen/il2cpp-codegen.h"
#include "il2cpp-object-internals.h"
template <typename R>
struct VirtFuncInvoker0
{
typedef R (*Func)(void*, const RuntimeMethod*);
static inline R Invoke (Il2CppMethodSlot slot, RuntimeObject* obj)
{
const VirtualInvokeData& invokeData = il2cpp_codegen_get_virtual_invoke_data(slot, obj);
return ((Func)invokeData.methodPtr)(obj, invokeData.method);
}
};
// ARPlacement
struct ARPlacement_t20C1E0720BEB83F20243FBDE8B3A3A255C70F925;
// MenuScript
struct MenuScript_t7F3BC65E367445FC3A0AA8CD0A2A77941EF62B77;
// System.Char[]
struct CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2;
// System.Collections.Generic.Dictionary`2<System.Int32,System.Int32>
struct Dictionary_2_tFE2A3F3BDE1290B85039D74816BB1FE1109BE0F8;
// System.Collections.Generic.List`1<Unity.Collections.NativeArray`1<UnityEngine.XR.ARSubsystems.XRRaycastHit>>
struct List_1_tB4ACC0E738125FD48DF94969067CC04FE44C01DD;
// System.Collections.Generic.List`1<UnityEngine.CanvasGroup>
struct List_1_t053DAB6E2110E276A0339D73497193F464BC1F82;
// System.Collections.Generic.List`1<UnityEngine.XR.ARFoundation.ARRaycastHit>
struct List_1_tE22AC27B04238DDEA6B873A77D0222DA9B480F52;
// System.Collections.Generic.List`1<UnityEngine.XR.ARFoundation.IRaycaster>
struct List_1_tCF216E059678E6F86943670619732CE72CD5BC19;
// System.Collections.Generic.List`1<UnityEngine.XR.ARSubsystems.XRRaycastSubsystemDescriptor>
struct List_1_t67EA06DFF28CCF87DA1E9B7EB486336F8B486A7C;
// System.Collections.IDictionary
struct IDictionary_t1BD5C1546718A374EA8122FBD6C6EE45331E8CE7;
// System.Comparison`1<UnityEngine.XR.ARFoundation.ARRaycastHit>
struct Comparison_1_tE207337DE1F503EEC6370260BFAB53232F5224B3;
// System.Diagnostics.StackTrace[]
struct StackTraceU5BU5D_t855F09649EA34DEE7C1B6F088E0538E3CCC3F196;
// System.Func`4<UnityEngine.Ray,UnityEngine.XR.ARSubsystems.TrackableType,Unity.Collections.Allocator,Unity.Collections.NativeArray`1<UnityEngine.XR.ARSubsystems.XRRaycastHit>>
struct Func_4_t127C0519F4FBF1149F38B4E895BA95F8E83EE659;
// System.Func`4<UnityEngine.Vector2,UnityEngine.XR.ARSubsystems.TrackableType,Unity.Collections.Allocator,Unity.Collections.NativeArray`1<UnityEngine.XR.ARSubsystems.XRRaycastHit>>
struct Func_4_t5D589FB938B29FA2A1EF1FEC2CBA1201FF0C9A02;
// System.Int32[]
struct Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83;
// System.IntPtr[]
struct IntPtrU5BU5D_t4DC01DCB9A6DF6C9792A6513595D7A11E637DCDD;
// System.Runtime.Serialization.SafeSerializationManager
struct SafeSerializationManager_t4A754D86B0F784B18CBC36C073BA564BED109770;
// System.Single[]
struct SingleU5BU5D_tA7139B7CAA40EAEF9178E2C386C8A5993754FDD5;
// System.String
struct String_t;
// System.Void
struct Void_t22962CB4C05B1D89B55A6E1139F0E87A90987017;
// TMPro.FontWeight[]
struct FontWeightU5BU5D_t7A186E8DAEB072A355A6CCC80B3FFD219E538446;
// TMPro.MaterialReference[]
struct MaterialReferenceU5BU5D_t01EC9C1C00A504C2EF9FBAF95DE26BB88E9B743B;
// TMPro.RichTextTagAttribute[]
struct RichTextTagAttributeU5BU5D_tDDFB2F68801310D7EEE16822832E48E70B11C652;
// TMPro.TMP_Character
struct TMP_Character_t1875AACA978396521498D6A699052C187903553D;
// TMPro.TMP_CharacterInfo[]
struct TMP_CharacterInfoU5BU5D_t415BD08A7E8A8C311B1F7BD9C3AC60BF99339604;
// TMPro.TMP_ColorGradient
struct TMP_ColorGradient_tEA29C4736B1786301A803B6C0FB30107A10D79B7;
// TMPro.TMP_ColorGradient[]
struct TMP_ColorGradientU5BU5D_t0948D618AC4240E6F0CFE0125BB6A4E931DE847C;
// TMPro.TMP_FontAsset
struct TMP_FontAsset_t44D2006105B39FB33AE5A0ADF07A7EF36C72385C;
// TMPro.TMP_SpriteAnimator
struct TMP_SpriteAnimator_tEB1A22D4A88DC5AAC3EFBDD8FD10B2A02C7B0D17;
// TMPro.TMP_SpriteAsset
struct TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487;
// TMPro.TMP_SubMeshUI[]
struct TMP_SubMeshUIU5BU5D_tB20103A3891C74028E821AA6857CD89D59C9A87E;
// TMPro.TMP_Text
struct TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7;
// TMPro.TMP_Text/UnicodeChar[]
struct UnicodeCharU5BU5D_t14B138F2B44C8EA3A5A5DB234E3739F385E55505;
// TMPro.TMP_TextElement
struct TMP_TextElement_tB9A6A361BB93487BD07DDDA37A368819DA46C344;
// TMPro.TMP_TextInfo
struct TMP_TextInfo_tC40DAAB47C5BD5AD21B3F456D860474D96D9C181;
// TMPro.TextAlignmentOptions[]
struct TextAlignmentOptionsU5BU5D_t4AE8FA5E3D695ED64EBBCFBAF8C780A0EB0BD33B;
// TMPro.TextMeshProUGUI
struct TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438;
// UnityEngine.Camera
struct Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34;
// UnityEngine.Camera/CameraCallback
struct CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0;
// UnityEngine.Canvas
struct Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591;
// UnityEngine.Canvas/WillRenderCanvases
struct WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE;
// UnityEngine.CanvasRenderer
struct CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72;
// UnityEngine.Color32[]
struct Color32U5BU5D_tABFBCB467E6D1B791303A0D3A3AA1A482F620983;
// UnityEngine.Component
struct Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621;
// UnityEngine.Events.UnityAction
struct UnityAction_tD19B26F1B2C048E38FD5801A33573BE01064CAF4;
// UnityEngine.GameObject
struct GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F;
// UnityEngine.Material
struct Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598;
// UnityEngine.Material[]
struct MaterialU5BU5D_tD2350F98F2A1BB6C7A5FBFE1474DFC47331AB398;
// UnityEngine.Mesh
struct Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C;
// UnityEngine.MonoBehaviour
struct MonoBehaviour_t4A60845CF505405AF8BE8C61CC07F75CADEF6429;
// UnityEngine.Object
struct Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0;
// UnityEngine.RectTransform
struct RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20;
// UnityEngine.Sprite
struct Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198;
// UnityEngine.Texture2D
struct Texture2D_tBBF96AC337723E2EF156DF17E09D4379FD05DE1C;
// UnityEngine.Transform
struct Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA;
// UnityEngine.UI.AnimationTriggers
struct AnimationTriggers_t164EF8B310E294B7D0F6BF1A87376731EBD06DC5;
// UnityEngine.UI.CoroutineTween.TweenRunner`1<UnityEngine.UI.CoroutineTween.ColorTween>
struct TweenRunner_1_t56CEB168ADE3739A1BDDBF258FDC759DF8927172;
// UnityEngine.UI.Graphic
struct Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8;
// UnityEngine.UI.Image
struct Image_t18FED07D8646917E1C563745518CF3DD57FF0B3E;
// UnityEngine.UI.LayoutElement
struct LayoutElement_tD503826DB41B6EA85AC689292F8B2661B3C1048B;
// UnityEngine.UI.MaskableGraphic/CullStateChangedEvent
struct CullStateChangedEvent_t6BC3E87DBC04B585798460D55F56B86C23B62FE4;
// UnityEngine.UI.RectMask2D
struct RectMask2D_tF2CF19F2A4FE2D2FFC7E6F7809374757CA2F377B;
// UnityEngine.UI.Selectable
struct Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A;
// UnityEngine.UI.Selectable[]
struct SelectableU5BU5D_t98F7C5A863B20CD5DBE49CE288038BA954C83F02;
// UnityEngine.UI.Slider
struct Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09;
// UnityEngine.UI.Slider/SliderEvent
struct SliderEvent_t64A824F56F80FC8E2F233F0A0FB0821702DF416C;
// UnityEngine.UI.VertexHelper
struct VertexHelper_t27373EA2CF0F5810EC8CF873D0A6D6C0B23DAC3F;
// UnityEngine.Vector2[]
struct Vector2U5BU5D_tA065A07DFC060C1B8786BBAA5F3A6577CCEB27D6;
// UnityEngine.Vector3[]
struct Vector3U5BU5D_tB9EC3346CC4A0EA5447D968E84A9AC1F6F372C28;
// UnityEngine.XR.ARFoundation.ARRaycastHit[]
struct ARRaycastHitU5BU5D_t2DDAC1FD38DF991C190FAEF8144A68AFBC541E94;
// UnityEngine.XR.ARFoundation.ARRaycastManager
struct ARRaycastManager_t81A9513150BA5BE536DF064F1C6DE73349A60BE7;
// UnityEngine.XR.ARFoundation.ARSessionOrigin
struct ARSessionOrigin_t61463C0A24AF925CF219B6C3F1720325C96720EF;
// UnityEngine.XR.ARSubsystems.XRRaycastSubsystem
struct XRRaycastSubsystem_t1181EA314910ABB4E1F50BF2F7650EC1512A0A20;
IL2CPP_EXTERN_C RuntimeClass* Debug_t7B5FCB117E2FD63B6838BC52821B252E2BFB61C4_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* List_1_tE22AC27B04238DDEA6B873A77D0222DA9B480F52_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* NullReferenceException_t204B194BC4DDA3259AF5A8633EA248AE5977ABDC_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C RuntimeClass* Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_il2cpp_TypeInfo_var;
IL2CPP_EXTERN_C String_t* _stringLiteral00024CAB5257A05948096C411B408BEED35C60DC;
IL2CPP_EXTERN_C String_t* _stringLiteralB5504ABE9C78539CC8E82FF1C3381B351784378B;
IL2CPP_EXTERN_C String_t* _stringLiteralC32A0147F2E47A52E082FE2DD4B6AAA36084A4CB;
IL2CPP_EXTERN_C String_t* _stringLiteralCEF6F70A8DA2F5C6D32911D2F1F274155E8379F1;
IL2CPP_EXTERN_C String_t* _stringLiteralE963907DAC5CD5C017869B4C96C18021C9BD058B;
IL2CPP_EXTERN_C const RuntimeMethod* Component_GetComponent_TisARRaycastManager_t81A9513150BA5BE536DF064F1C6DE73349A60BE7_m71DCE7466C02DBA59A1618314D7FA98D931BD522_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* GameObject_GetComponent_TisARPlacement_t20C1E0720BEB83F20243FBDE8B3A3A255C70F925_m0B259158D4F6A240F04723E8C2D29232FCE08AEC_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* GameObject_GetComponent_TisSlider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09_m688424BCA2C09954B36F15A3C82F17CAECEB91A7_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* GameObject_GetComponent_TisTextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438_m2A07D6A46280D3A547C55CD735795588AF24DAEB_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* List_1__ctor_mA52EAAB235BDE102E8518F30412F14422B05C9E0_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* List_1_get_Count_m4F75A33A2B3EBF1A826FEFBFE30E1773DBED393C_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* List_1_get_Item_mFA1DFF7102266DFFCA6630C79C553225EE591AAE_RuntimeMethod_var;
IL2CPP_EXTERN_C const RuntimeMethod* Object_Instantiate_TisGameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F_m4F397BCC6697902B40033E61129D4EA6FE93570F_RuntimeMethod_var;
IL2CPP_EXTERN_C const uint32_t ARPlacement_DestroyVehicle_m25302C673BC57DE76F40906CE568EE5178253F92_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t ARPlacement_Start_m46C805907DAAB4ED17E5147C2C62B9662E75E554_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t ARPlacement_UpdatePlacementPose_mF4D9752238A373F827CD77C1199ABB4F39538316_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t ARPlacement_getSliderValue_mF90D9628B60732BDF6B60A8B73D27E5BDD256864_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t ARPlacement_placeVehicle_m18959D6E36E75CA5749196ED427C95FF0159A3CE_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t MenuScript_PlaceRemovePressed_m9A0EDF2DA7FBB179204C3AD525EFEE45D8BE3F73_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t MenuScript_Start_mD611742173FFFDD78D7031CC175B5FBC60EDB4F6_MetadataUsageId;
IL2CPP_EXTERN_C const uint32_t MenuScript_resetMenu_m0D7B27EF2E878B3FDB38FBC63654F88FDB2A7D07_MetadataUsageId;
struct Exception_t_marshaled_com;
struct Exception_t_marshaled_pinvoke;
struct ARRaycastHitU5BU5D_t2DDAC1FD38DF991C190FAEF8144A68AFBC541E94;
IL2CPP_EXTERN_C_BEGIN
IL2CPP_EXTERN_C_END
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// <Module>
struct U3CModuleU3E_t6CDDDF959E7E18A6744E43B613F41CDAC780256A
{
public:
public:
};
// System.Object
struct Il2CppArrayBounds;
// System.Array
// System.Collections.Generic.List`1<UnityEngine.XR.ARFoundation.ARRaycastHit>
struct List_1_tE22AC27B04238DDEA6B873A77D0222DA9B480F52 : public RuntimeObject
{
public:
// T[] System.Collections.Generic.List`1::_items
ARRaycastHitU5BU5D_t2DDAC1FD38DF991C190FAEF8144A68AFBC541E94* ____items_1;
// System.Int32 System.Collections.Generic.List`1::_size
int32_t ____size_2;
// System.Int32 System.Collections.Generic.List`1::_version
int32_t ____version_3;
// System.Object System.Collections.Generic.List`1::_syncRoot
RuntimeObject * ____syncRoot_4;
public:
inline static int32_t get_offset_of__items_1() { return static_cast<int32_t>(offsetof(List_1_tE22AC27B04238DDEA6B873A77D0222DA9B480F52, ____items_1)); }
inline ARRaycastHitU5BU5D_t2DDAC1FD38DF991C190FAEF8144A68AFBC541E94* get__items_1() const { return ____items_1; }
inline ARRaycastHitU5BU5D_t2DDAC1FD38DF991C190FAEF8144A68AFBC541E94** get_address_of__items_1() { return &____items_1; }
inline void set__items_1(ARRaycastHitU5BU5D_t2DDAC1FD38DF991C190FAEF8144A68AFBC541E94* value)
{
____items_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&____items_1), (void*)value);
}
inline static int32_t get_offset_of__size_2() { return static_cast<int32_t>(offsetof(List_1_tE22AC27B04238DDEA6B873A77D0222DA9B480F52, ____size_2)); }
inline int32_t get__size_2() const { return ____size_2; }
inline int32_t* get_address_of__size_2() { return &____size_2; }
inline void set__size_2(int32_t value)
{
____size_2 = value;
}
inline static int32_t get_offset_of__version_3() { return static_cast<int32_t>(offsetof(List_1_tE22AC27B04238DDEA6B873A77D0222DA9B480F52, ____version_3)); }
inline int32_t get__version_3() const { return ____version_3; }
inline int32_t* get_address_of__version_3() { return &____version_3; }
inline void set__version_3(int32_t value)
{
____version_3 = value;
}
inline static int32_t get_offset_of__syncRoot_4() { return static_cast<int32_t>(offsetof(List_1_tE22AC27B04238DDEA6B873A77D0222DA9B480F52, ____syncRoot_4)); }
inline RuntimeObject * get__syncRoot_4() const { return ____syncRoot_4; }
inline RuntimeObject ** get_address_of__syncRoot_4() { return &____syncRoot_4; }
inline void set__syncRoot_4(RuntimeObject * value)
{
____syncRoot_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&____syncRoot_4), (void*)value);
}
};
struct List_1_tE22AC27B04238DDEA6B873A77D0222DA9B480F52_StaticFields
{
public:
// T[] System.Collections.Generic.List`1::_emptyArray
ARRaycastHitU5BU5D_t2DDAC1FD38DF991C190FAEF8144A68AFBC541E94* ____emptyArray_5;
public:
inline static int32_t get_offset_of__emptyArray_5() { return static_cast<int32_t>(offsetof(List_1_tE22AC27B04238DDEA6B873A77D0222DA9B480F52_StaticFields, ____emptyArray_5)); }
inline ARRaycastHitU5BU5D_t2DDAC1FD38DF991C190FAEF8144A68AFBC541E94* get__emptyArray_5() const { return ____emptyArray_5; }
inline ARRaycastHitU5BU5D_t2DDAC1FD38DF991C190FAEF8144A68AFBC541E94** get_address_of__emptyArray_5() { return &____emptyArray_5; }
inline void set__emptyArray_5(ARRaycastHitU5BU5D_t2DDAC1FD38DF991C190FAEF8144A68AFBC541E94* value)
{
____emptyArray_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&____emptyArray_5), (void*)value);
}
};
// System.String
struct String_t : public RuntimeObject
{
public:
// System.Int32 System.String::m_stringLength
int32_t ___m_stringLength_0;
// System.Char System.String::m_firstChar
Il2CppChar ___m_firstChar_1;
public:
inline static int32_t get_offset_of_m_stringLength_0() { return static_cast<int32_t>(offsetof(String_t, ___m_stringLength_0)); }
inline int32_t get_m_stringLength_0() const { return ___m_stringLength_0; }
inline int32_t* get_address_of_m_stringLength_0() { return &___m_stringLength_0; }
inline void set_m_stringLength_0(int32_t value)
{
___m_stringLength_0 = value;
}
inline static int32_t get_offset_of_m_firstChar_1() { return static_cast<int32_t>(offsetof(String_t, ___m_firstChar_1)); }
inline Il2CppChar get_m_firstChar_1() const { return ___m_firstChar_1; }
inline Il2CppChar* get_address_of_m_firstChar_1() { return &___m_firstChar_1; }
inline void set_m_firstChar_1(Il2CppChar value)
{
___m_firstChar_1 = value;
}
};
struct String_t_StaticFields
{
public:
// System.String System.String::Empty
String_t* ___Empty_5;
public:
inline static int32_t get_offset_of_Empty_5() { return static_cast<int32_t>(offsetof(String_t_StaticFields, ___Empty_5)); }
inline String_t* get_Empty_5() const { return ___Empty_5; }
inline String_t** get_address_of_Empty_5() { return &___Empty_5; }
inline void set_Empty_5(String_t* value)
{
___Empty_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___Empty_5), (void*)value);
}
};
// System.ValueType
struct ValueType_t4D0C27076F7C36E76190FB3328E232BCB1CD1FFF : public RuntimeObject
{
public:
public:
};
// 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
{
};
// System.Boolean
struct Boolean_tB53F6830F670160873277339AA58F15CAED4399C
{
public:
// System.Boolean System.Boolean::m_value
bool ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Boolean_tB53F6830F670160873277339AA58F15CAED4399C, ___m_value_0)); }
inline bool get_m_value_0() const { return ___m_value_0; }
inline bool* get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(bool value)
{
___m_value_0 = value;
}
};
struct Boolean_tB53F6830F670160873277339AA58F15CAED4399C_StaticFields
{
public:
// System.String System.Boolean::TrueString
String_t* ___TrueString_5;
// System.String System.Boolean::FalseString
String_t* ___FalseString_6;
public:
inline static int32_t get_offset_of_TrueString_5() { return static_cast<int32_t>(offsetof(Boolean_tB53F6830F670160873277339AA58F15CAED4399C_StaticFields, ___TrueString_5)); }
inline String_t* get_TrueString_5() const { return ___TrueString_5; }
inline String_t** get_address_of_TrueString_5() { return &___TrueString_5; }
inline void set_TrueString_5(String_t* value)
{
___TrueString_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___TrueString_5), (void*)value);
}
inline static int32_t get_offset_of_FalseString_6() { return static_cast<int32_t>(offsetof(Boolean_tB53F6830F670160873277339AA58F15CAED4399C_StaticFields, ___FalseString_6)); }
inline String_t* get_FalseString_6() const { return ___FalseString_6; }
inline String_t** get_address_of_FalseString_6() { return &___FalseString_6; }
inline void set_FalseString_6(String_t* value)
{
___FalseString_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&___FalseString_6), (void*)value);
}
};
// 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((void**)(&___enumSeperatorCharArray_0), (void*)value);
}
};
// 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
{
};
// System.Int32
struct Int32_t585191389E07734F19F3156FF88FB3EF4800D102
{
public:
// System.Int32 System.Int32::m_value
int32_t ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Int32_t585191389E07734F19F3156FF88FB3EF4800D102, ___m_value_0)); }
inline int32_t get_m_value_0() const { return ___m_value_0; }
inline int32_t* get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(int32_t value)
{
___m_value_0 = value;
}
};
// System.IntPtr
struct IntPtr_t
{
public:
// System.Void* System.IntPtr::m_value
void* ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(IntPtr_t, ___m_value_0)); }
inline void* get_m_value_0() const { return ___m_value_0; }
inline void** get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(void* value)
{
___m_value_0 = value;
}
};
struct IntPtr_t_StaticFields
{
public:
// System.IntPtr System.IntPtr::Zero
intptr_t ___Zero_1;
public:
inline static int32_t get_offset_of_Zero_1() { return static_cast<int32_t>(offsetof(IntPtr_t_StaticFields, ___Zero_1)); }
inline intptr_t get_Zero_1() const { return ___Zero_1; }
inline intptr_t* get_address_of_Zero_1() { return &___Zero_1; }
inline void set_Zero_1(intptr_t value)
{
___Zero_1 = value;
}
};
// System.Single
struct Single_tDDDA9169C4E4E308AC6D7A824F9B28DC82204AE1
{
public:
// System.Single System.Single::m_value
float ___m_value_0;
public:
inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Single_tDDDA9169C4E4E308AC6D7A824F9B28DC82204AE1, ___m_value_0)); }
inline float get_m_value_0() const { return ___m_value_0; }
inline float* get_address_of_m_value_0() { return &___m_value_0; }
inline void set_m_value_0(float value)
{
___m_value_0 = value;
}
};
// System.Void
struct Void_t22962CB4C05B1D89B55A6E1139F0E87A90987017
{
public:
union
{
struct
{
};
uint8_t Void_t22962CB4C05B1D89B55A6E1139F0E87A90987017__padding[1];
};
public:
};
// TMPro.MaterialReference
struct MaterialReference_tFDD866CC1D210125CDEC9DCB60B9AACB2FE3AF7F
{
public:
// System.Int32 TMPro.MaterialReference::index
int32_t ___index_0;
// TMPro.TMP_FontAsset TMPro.MaterialReference::fontAsset
TMP_FontAsset_t44D2006105B39FB33AE5A0ADF07A7EF36C72385C * ___fontAsset_1;
// TMPro.TMP_SpriteAsset TMPro.MaterialReference::spriteAsset
TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 * ___spriteAsset_2;
// UnityEngine.Material TMPro.MaterialReference::material
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___material_3;
// System.Boolean TMPro.MaterialReference::isDefaultMaterial
bool ___isDefaultMaterial_4;
// System.Boolean TMPro.MaterialReference::isFallbackMaterial
bool ___isFallbackMaterial_5;
// UnityEngine.Material TMPro.MaterialReference::fallbackMaterial
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___fallbackMaterial_6;
// System.Single TMPro.MaterialReference::padding
float ___padding_7;
// System.Int32 TMPro.MaterialReference::referenceCount
int32_t ___referenceCount_8;
public:
inline static int32_t get_offset_of_index_0() { return static_cast<int32_t>(offsetof(MaterialReference_tFDD866CC1D210125CDEC9DCB60B9AACB2FE3AF7F, ___index_0)); }
inline int32_t get_index_0() const { return ___index_0; }
inline int32_t* get_address_of_index_0() { return &___index_0; }
inline void set_index_0(int32_t value)
{
___index_0 = value;
}
inline static int32_t get_offset_of_fontAsset_1() { return static_cast<int32_t>(offsetof(MaterialReference_tFDD866CC1D210125CDEC9DCB60B9AACB2FE3AF7F, ___fontAsset_1)); }
inline TMP_FontAsset_t44D2006105B39FB33AE5A0ADF07A7EF36C72385C * get_fontAsset_1() const { return ___fontAsset_1; }
inline TMP_FontAsset_t44D2006105B39FB33AE5A0ADF07A7EF36C72385C ** get_address_of_fontAsset_1() { return &___fontAsset_1; }
inline void set_fontAsset_1(TMP_FontAsset_t44D2006105B39FB33AE5A0ADF07A7EF36C72385C * value)
{
___fontAsset_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___fontAsset_1), (void*)value);
}
inline static int32_t get_offset_of_spriteAsset_2() { return static_cast<int32_t>(offsetof(MaterialReference_tFDD866CC1D210125CDEC9DCB60B9AACB2FE3AF7F, ___spriteAsset_2)); }
inline TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 * get_spriteAsset_2() const { return ___spriteAsset_2; }
inline TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 ** get_address_of_spriteAsset_2() { return &___spriteAsset_2; }
inline void set_spriteAsset_2(TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 * value)
{
___spriteAsset_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___spriteAsset_2), (void*)value);
}
inline static int32_t get_offset_of_material_3() { return static_cast<int32_t>(offsetof(MaterialReference_tFDD866CC1D210125CDEC9DCB60B9AACB2FE3AF7F, ___material_3)); }
inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * get_material_3() const { return ___material_3; }
inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 ** get_address_of_material_3() { return &___material_3; }
inline void set_material_3(Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * value)
{
___material_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___material_3), (void*)value);
}
inline static int32_t get_offset_of_isDefaultMaterial_4() { return static_cast<int32_t>(offsetof(MaterialReference_tFDD866CC1D210125CDEC9DCB60B9AACB2FE3AF7F, ___isDefaultMaterial_4)); }
inline bool get_isDefaultMaterial_4() const { return ___isDefaultMaterial_4; }
inline bool* get_address_of_isDefaultMaterial_4() { return &___isDefaultMaterial_4; }
inline void set_isDefaultMaterial_4(bool value)
{
___isDefaultMaterial_4 = value;
}
inline static int32_t get_offset_of_isFallbackMaterial_5() { return static_cast<int32_t>(offsetof(MaterialReference_tFDD866CC1D210125CDEC9DCB60B9AACB2FE3AF7F, ___isFallbackMaterial_5)); }
inline bool get_isFallbackMaterial_5() const { return ___isFallbackMaterial_5; }
inline bool* get_address_of_isFallbackMaterial_5() { return &___isFallbackMaterial_5; }
inline void set_isFallbackMaterial_5(bool value)
{
___isFallbackMaterial_5 = value;
}
inline static int32_t get_offset_of_fallbackMaterial_6() { return static_cast<int32_t>(offsetof(MaterialReference_tFDD866CC1D210125CDEC9DCB60B9AACB2FE3AF7F, ___fallbackMaterial_6)); }
inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * get_fallbackMaterial_6() const { return ___fallbackMaterial_6; }
inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 ** get_address_of_fallbackMaterial_6() { return &___fallbackMaterial_6; }
inline void set_fallbackMaterial_6(Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * value)
{
___fallbackMaterial_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&___fallbackMaterial_6), (void*)value);
}
inline static int32_t get_offset_of_padding_7() { return static_cast<int32_t>(offsetof(MaterialReference_tFDD866CC1D210125CDEC9DCB60B9AACB2FE3AF7F, ___padding_7)); }
inline float get_padding_7() const { return ___padding_7; }
inline float* get_address_of_padding_7() { return &___padding_7; }
inline void set_padding_7(float value)
{
___padding_7 = value;
}
inline static int32_t get_offset_of_referenceCount_8() { return static_cast<int32_t>(offsetof(MaterialReference_tFDD866CC1D210125CDEC9DCB60B9AACB2FE3AF7F, ___referenceCount_8)); }
inline int32_t get_referenceCount_8() const { return ___referenceCount_8; }
inline int32_t* get_address_of_referenceCount_8() { return &___referenceCount_8; }
inline void set_referenceCount_8(int32_t value)
{
___referenceCount_8 = value;
}
};
// Native definition for P/Invoke marshalling of TMPro.MaterialReference
struct MaterialReference_tFDD866CC1D210125CDEC9DCB60B9AACB2FE3AF7F_marshaled_pinvoke
{
int32_t ___index_0;
TMP_FontAsset_t44D2006105B39FB33AE5A0ADF07A7EF36C72385C * ___fontAsset_1;
TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 * ___spriteAsset_2;
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___material_3;
int32_t ___isDefaultMaterial_4;
int32_t ___isFallbackMaterial_5;
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___fallbackMaterial_6;
float ___padding_7;
int32_t ___referenceCount_8;
};
// Native definition for COM marshalling of TMPro.MaterialReference
struct MaterialReference_tFDD866CC1D210125CDEC9DCB60B9AACB2FE3AF7F_marshaled_com
{
int32_t ___index_0;
TMP_FontAsset_t44D2006105B39FB33AE5A0ADF07A7EF36C72385C * ___fontAsset_1;
TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 * ___spriteAsset_2;
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___material_3;
int32_t ___isDefaultMaterial_4;
int32_t ___isFallbackMaterial_5;
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___fallbackMaterial_6;
float ___padding_7;
int32_t ___referenceCount_8;
};
// TMPro.TMP_FontStyleStack
struct TMP_FontStyleStack_tC7146DA5AD4540B2C8733862D785AD50AD229E84
{
public:
// System.Byte TMPro.TMP_FontStyleStack::bold
uint8_t ___bold_0;
// System.Byte TMPro.TMP_FontStyleStack::italic
uint8_t ___italic_1;
// System.Byte TMPro.TMP_FontStyleStack::underline
uint8_t ___underline_2;
// System.Byte TMPro.TMP_FontStyleStack::strikethrough
uint8_t ___strikethrough_3;
// System.Byte TMPro.TMP_FontStyleStack::highlight
uint8_t ___highlight_4;
// System.Byte TMPro.TMP_FontStyleStack::superscript
uint8_t ___superscript_5;
// System.Byte TMPro.TMP_FontStyleStack::subscript
uint8_t ___subscript_6;
// System.Byte TMPro.TMP_FontStyleStack::uppercase
uint8_t ___uppercase_7;
// System.Byte TMPro.TMP_FontStyleStack::lowercase
uint8_t ___lowercase_8;
// System.Byte TMPro.TMP_FontStyleStack::smallcaps
uint8_t ___smallcaps_9;
public:
inline static int32_t get_offset_of_bold_0() { return static_cast<int32_t>(offsetof(TMP_FontStyleStack_tC7146DA5AD4540B2C8733862D785AD50AD229E84, ___bold_0)); }
inline uint8_t get_bold_0() const { return ___bold_0; }
inline uint8_t* get_address_of_bold_0() { return &___bold_0; }
inline void set_bold_0(uint8_t value)
{
___bold_0 = value;
}
inline static int32_t get_offset_of_italic_1() { return static_cast<int32_t>(offsetof(TMP_FontStyleStack_tC7146DA5AD4540B2C8733862D785AD50AD229E84, ___italic_1)); }
inline uint8_t get_italic_1() const { return ___italic_1; }
inline uint8_t* get_address_of_italic_1() { return &___italic_1; }
inline void set_italic_1(uint8_t value)
{
___italic_1 = value;
}
inline static int32_t get_offset_of_underline_2() { return static_cast<int32_t>(offsetof(TMP_FontStyleStack_tC7146DA5AD4540B2C8733862D785AD50AD229E84, ___underline_2)); }
inline uint8_t get_underline_2() const { return ___underline_2; }
inline uint8_t* get_address_of_underline_2() { return &___underline_2; }
inline void set_underline_2(uint8_t value)
{
___underline_2 = value;
}
inline static int32_t get_offset_of_strikethrough_3() { return static_cast<int32_t>(offsetof(TMP_FontStyleStack_tC7146DA5AD4540B2C8733862D785AD50AD229E84, ___strikethrough_3)); }
inline uint8_t get_strikethrough_3() const { return ___strikethrough_3; }
inline uint8_t* get_address_of_strikethrough_3() { return &___strikethrough_3; }
inline void set_strikethrough_3(uint8_t value)
{
___strikethrough_3 = value;
}
inline static int32_t get_offset_of_highlight_4() { return static_cast<int32_t>(offsetof(TMP_FontStyleStack_tC7146DA5AD4540B2C8733862D785AD50AD229E84, ___highlight_4)); }
inline uint8_t get_highlight_4() const { return ___highlight_4; }
inline uint8_t* get_address_of_highlight_4() { return &___highlight_4; }
inline void set_highlight_4(uint8_t value)
{
___highlight_4 = value;
}
inline static int32_t get_offset_of_superscript_5() { return static_cast<int32_t>(offsetof(TMP_FontStyleStack_tC7146DA5AD4540B2C8733862D785AD50AD229E84, ___superscript_5)); }
inline uint8_t get_superscript_5() const { return ___superscript_5; }
inline uint8_t* get_address_of_superscript_5() { return &___superscript_5; }
inline void set_superscript_5(uint8_t value)
{
___superscript_5 = value;
}
inline static int32_t get_offset_of_subscript_6() { return static_cast<int32_t>(offsetof(TMP_FontStyleStack_tC7146DA5AD4540B2C8733862D785AD50AD229E84, ___subscript_6)); }
inline uint8_t get_subscript_6() const { return ___subscript_6; }
inline uint8_t* get_address_of_subscript_6() { return &___subscript_6; }
inline void set_subscript_6(uint8_t value)
{
___subscript_6 = value;
}
inline static int32_t get_offset_of_uppercase_7() { return static_cast<int32_t>(offsetof(TMP_FontStyleStack_tC7146DA5AD4540B2C8733862D785AD50AD229E84, ___uppercase_7)); }
inline uint8_t get_uppercase_7() const { return ___uppercase_7; }
inline uint8_t* get_address_of_uppercase_7() { return &___uppercase_7; }
inline void set_uppercase_7(uint8_t value)
{
___uppercase_7 = value;
}
inline static int32_t get_offset_of_lowercase_8() { return static_cast<int32_t>(offsetof(TMP_FontStyleStack_tC7146DA5AD4540B2C8733862D785AD50AD229E84, ___lowercase_8)); }
inline uint8_t get_lowercase_8() const { return ___lowercase_8; }
inline uint8_t* get_address_of_lowercase_8() { return &___lowercase_8; }
inline void set_lowercase_8(uint8_t value)
{
___lowercase_8 = value;
}
inline static int32_t get_offset_of_smallcaps_9() { return static_cast<int32_t>(offsetof(TMP_FontStyleStack_tC7146DA5AD4540B2C8733862D785AD50AD229E84, ___smallcaps_9)); }
inline uint8_t get_smallcaps_9() const { return ___smallcaps_9; }
inline uint8_t* get_address_of_smallcaps_9() { return &___smallcaps_9; }
inline void set_smallcaps_9(uint8_t value)
{
___smallcaps_9 = value;
}
};
// TMPro.TMP_RichTextTagStack`1<System.Int32>
struct TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293
{
public:
// T[] TMPro.TMP_RichTextTagStack`1::m_ItemStack
Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* ___m_ItemStack_0;
// System.Int32 TMPro.TMP_RichTextTagStack`1::m_Index
int32_t ___m_Index_1;
// System.Int32 TMPro.TMP_RichTextTagStack`1::m_Capacity
int32_t ___m_Capacity_2;
// T TMPro.TMP_RichTextTagStack`1::m_DefaultItem
int32_t ___m_DefaultItem_3;
public:
inline static int32_t get_offset_of_m_ItemStack_0() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293, ___m_ItemStack_0)); }
inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* get_m_ItemStack_0() const { return ___m_ItemStack_0; }
inline Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83** get_address_of_m_ItemStack_0() { return &___m_ItemStack_0; }
inline void set_m_ItemStack_0(Int32U5BU5D_t2B9E4FDDDB9F0A00EC0AC631BA2DA915EB1ECF83* value)
{
___m_ItemStack_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_ItemStack_0), (void*)value);
}
inline static int32_t get_offset_of_m_Index_1() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293, ___m_Index_1)); }
inline int32_t get_m_Index_1() const { return ___m_Index_1; }
inline int32_t* get_address_of_m_Index_1() { return &___m_Index_1; }
inline void set_m_Index_1(int32_t value)
{
___m_Index_1 = value;
}
inline static int32_t get_offset_of_m_Capacity_2() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293, ___m_Capacity_2)); }
inline int32_t get_m_Capacity_2() const { return ___m_Capacity_2; }
inline int32_t* get_address_of_m_Capacity_2() { return &___m_Capacity_2; }
inline void set_m_Capacity_2(int32_t value)
{
___m_Capacity_2 = value;
}
inline static int32_t get_offset_of_m_DefaultItem_3() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293, ___m_DefaultItem_3)); }
inline int32_t get_m_DefaultItem_3() const { return ___m_DefaultItem_3; }
inline int32_t* get_address_of_m_DefaultItem_3() { return &___m_DefaultItem_3; }
inline void set_m_DefaultItem_3(int32_t value)
{
___m_DefaultItem_3 = value;
}
};
// TMPro.TMP_RichTextTagStack`1<System.Single>
struct TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106
{
public:
// T[] TMPro.TMP_RichTextTagStack`1::m_ItemStack
SingleU5BU5D_tA7139B7CAA40EAEF9178E2C386C8A5993754FDD5* ___m_ItemStack_0;
// System.Int32 TMPro.TMP_RichTextTagStack`1::m_Index
int32_t ___m_Index_1;
// System.Int32 TMPro.TMP_RichTextTagStack`1::m_Capacity
int32_t ___m_Capacity_2;
// T TMPro.TMP_RichTextTagStack`1::m_DefaultItem
float ___m_DefaultItem_3;
public:
inline static int32_t get_offset_of_m_ItemStack_0() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106, ___m_ItemStack_0)); }
inline SingleU5BU5D_tA7139B7CAA40EAEF9178E2C386C8A5993754FDD5* get_m_ItemStack_0() const { return ___m_ItemStack_0; }
inline SingleU5BU5D_tA7139B7CAA40EAEF9178E2C386C8A5993754FDD5** get_address_of_m_ItemStack_0() { return &___m_ItemStack_0; }
inline void set_m_ItemStack_0(SingleU5BU5D_tA7139B7CAA40EAEF9178E2C386C8A5993754FDD5* value)
{
___m_ItemStack_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_ItemStack_0), (void*)value);
}
inline static int32_t get_offset_of_m_Index_1() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106, ___m_Index_1)); }
inline int32_t get_m_Index_1() const { return ___m_Index_1; }
inline int32_t* get_address_of_m_Index_1() { return &___m_Index_1; }
inline void set_m_Index_1(int32_t value)
{
___m_Index_1 = value;
}
inline static int32_t get_offset_of_m_Capacity_2() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106, ___m_Capacity_2)); }
inline int32_t get_m_Capacity_2() const { return ___m_Capacity_2; }
inline int32_t* get_address_of_m_Capacity_2() { return &___m_Capacity_2; }
inline void set_m_Capacity_2(int32_t value)
{
___m_Capacity_2 = value;
}
inline static int32_t get_offset_of_m_DefaultItem_3() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106, ___m_DefaultItem_3)); }
inline float get_m_DefaultItem_3() const { return ___m_DefaultItem_3; }
inline float* get_address_of_m_DefaultItem_3() { return &___m_DefaultItem_3; }
inline void set_m_DefaultItem_3(float value)
{
___m_DefaultItem_3 = value;
}
};
// TMPro.TMP_RichTextTagStack`1<TMPro.TMP_ColorGradient>
struct TMP_RichTextTagStack_1_tF73231072FB2CD9EBFCAF3C4D7E41E2221B9ED1D
{
public:
// T[] TMPro.TMP_RichTextTagStack`1::m_ItemStack
TMP_ColorGradientU5BU5D_t0948D618AC4240E6F0CFE0125BB6A4E931DE847C* ___m_ItemStack_0;
// System.Int32 TMPro.TMP_RichTextTagStack`1::m_Index
int32_t ___m_Index_1;
// System.Int32 TMPro.TMP_RichTextTagStack`1::m_Capacity
int32_t ___m_Capacity_2;
// T TMPro.TMP_RichTextTagStack`1::m_DefaultItem
TMP_ColorGradient_tEA29C4736B1786301A803B6C0FB30107A10D79B7 * ___m_DefaultItem_3;
public:
inline static int32_t get_offset_of_m_ItemStack_0() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_tF73231072FB2CD9EBFCAF3C4D7E41E2221B9ED1D, ___m_ItemStack_0)); }
inline TMP_ColorGradientU5BU5D_t0948D618AC4240E6F0CFE0125BB6A4E931DE847C* get_m_ItemStack_0() const { return ___m_ItemStack_0; }
inline TMP_ColorGradientU5BU5D_t0948D618AC4240E6F0CFE0125BB6A4E931DE847C** get_address_of_m_ItemStack_0() { return &___m_ItemStack_0; }
inline void set_m_ItemStack_0(TMP_ColorGradientU5BU5D_t0948D618AC4240E6F0CFE0125BB6A4E931DE847C* value)
{
___m_ItemStack_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_ItemStack_0), (void*)value);
}
inline static int32_t get_offset_of_m_Index_1() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_tF73231072FB2CD9EBFCAF3C4D7E41E2221B9ED1D, ___m_Index_1)); }
inline int32_t get_m_Index_1() const { return ___m_Index_1; }
inline int32_t* get_address_of_m_Index_1() { return &___m_Index_1; }
inline void set_m_Index_1(int32_t value)
{
___m_Index_1 = value;
}
inline static int32_t get_offset_of_m_Capacity_2() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_tF73231072FB2CD9EBFCAF3C4D7E41E2221B9ED1D, ___m_Capacity_2)); }
inline int32_t get_m_Capacity_2() const { return ___m_Capacity_2; }
inline int32_t* get_address_of_m_Capacity_2() { return &___m_Capacity_2; }
inline void set_m_Capacity_2(int32_t value)
{
___m_Capacity_2 = value;
}
inline static int32_t get_offset_of_m_DefaultItem_3() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_tF73231072FB2CD9EBFCAF3C4D7E41E2221B9ED1D, ___m_DefaultItem_3)); }
inline TMP_ColorGradient_tEA29C4736B1786301A803B6C0FB30107A10D79B7 * get_m_DefaultItem_3() const { return ___m_DefaultItem_3; }
inline TMP_ColorGradient_tEA29C4736B1786301A803B6C0FB30107A10D79B7 ** get_address_of_m_DefaultItem_3() { return &___m_DefaultItem_3; }
inline void set_m_DefaultItem_3(TMP_ColorGradient_tEA29C4736B1786301A803B6C0FB30107A10D79B7 * value)
{
___m_DefaultItem_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_DefaultItem_3), (void*)value);
}
};
// UnityEngine.Color
struct Color_t119BCA590009762C7223FDD3AF9706653AC84ED2
{
public:
// System.Single UnityEngine.Color::r
float ___r_0;
// System.Single UnityEngine.Color::g
float ___g_1;
// System.Single UnityEngine.Color::b
float ___b_2;
// System.Single UnityEngine.Color::a
float ___a_3;
public:
inline static int32_t get_offset_of_r_0() { return static_cast<int32_t>(offsetof(Color_t119BCA590009762C7223FDD3AF9706653AC84ED2, ___r_0)); }
inline float get_r_0() const { return ___r_0; }
inline float* get_address_of_r_0() { return &___r_0; }
inline void set_r_0(float value)
{
___r_0 = value;
}
inline static int32_t get_offset_of_g_1() { return static_cast<int32_t>(offsetof(Color_t119BCA590009762C7223FDD3AF9706653AC84ED2, ___g_1)); }
inline float get_g_1() const { return ___g_1; }
inline float* get_address_of_g_1() { return &___g_1; }
inline void set_g_1(float value)
{
___g_1 = value;
}
inline static int32_t get_offset_of_b_2() { return static_cast<int32_t>(offsetof(Color_t119BCA590009762C7223FDD3AF9706653AC84ED2, ___b_2)); }
inline float get_b_2() const { return ___b_2; }
inline float* get_address_of_b_2() { return &___b_2; }
inline void set_b_2(float value)
{
___b_2 = value;
}
inline static int32_t get_offset_of_a_3() { return static_cast<int32_t>(offsetof(Color_t119BCA590009762C7223FDD3AF9706653AC84ED2, ___a_3)); }
inline float get_a_3() const { return ___a_3; }
inline float* get_address_of_a_3() { return &___a_3; }
inline void set_a_3(float value)
{
___a_3 = value;
}
};
// UnityEngine.Color32
struct Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23
{
public:
union
{
#pragma pack(push, tp, 1)
struct
{
// System.Int32 UnityEngine.Color32::rgba
int32_t ___rgba_0;
};
#pragma pack(pop, tp)
struct
{
int32_t ___rgba_0_forAlignmentOnly;
};
#pragma pack(push, tp, 1)
struct
{
// System.Byte UnityEngine.Color32::r
uint8_t ___r_1;
};
#pragma pack(pop, tp)
struct
{
uint8_t ___r_1_forAlignmentOnly;
};
#pragma pack(push, tp, 1)
struct
{
char ___g_2_OffsetPadding[1];
// System.Byte UnityEngine.Color32::g
uint8_t ___g_2;
};
#pragma pack(pop, tp)
struct
{
char ___g_2_OffsetPadding_forAlignmentOnly[1];
uint8_t ___g_2_forAlignmentOnly;
};
#pragma pack(push, tp, 1)
struct
{
char ___b_3_OffsetPadding[2];
// System.Byte UnityEngine.Color32::b
uint8_t ___b_3;
};
#pragma pack(pop, tp)
struct
{
char ___b_3_OffsetPadding_forAlignmentOnly[2];
uint8_t ___b_3_forAlignmentOnly;
};
#pragma pack(push, tp, 1)
struct
{
char ___a_4_OffsetPadding[3];
// System.Byte UnityEngine.Color32::a
uint8_t ___a_4;
};
#pragma pack(pop, tp)
struct
{
char ___a_4_OffsetPadding_forAlignmentOnly[3];
uint8_t ___a_4_forAlignmentOnly;
};
};
public:
inline static int32_t get_offset_of_rgba_0() { return static_cast<int32_t>(offsetof(Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23, ___rgba_0)); }
inline int32_t get_rgba_0() const { return ___rgba_0; }
inline int32_t* get_address_of_rgba_0() { return &___rgba_0; }
inline void set_rgba_0(int32_t value)
{
___rgba_0 = value;
}
inline static int32_t get_offset_of_r_1() { return static_cast<int32_t>(offsetof(Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23, ___r_1)); }
inline uint8_t get_r_1() const { return ___r_1; }
inline uint8_t* get_address_of_r_1() { return &___r_1; }
inline void set_r_1(uint8_t value)
{
___r_1 = value;
}
inline static int32_t get_offset_of_g_2() { return static_cast<int32_t>(offsetof(Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23, ___g_2)); }
inline uint8_t get_g_2() const { return ___g_2; }
inline uint8_t* get_address_of_g_2() { return &___g_2; }
inline void set_g_2(uint8_t value)
{
___g_2 = value;
}
inline static int32_t get_offset_of_b_3() { return static_cast<int32_t>(offsetof(Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23, ___b_3)); }
inline uint8_t get_b_3() const { return ___b_3; }
inline uint8_t* get_address_of_b_3() { return &___b_3; }
inline void set_b_3(uint8_t value)
{
___b_3 = value;
}
inline static int32_t get_offset_of_a_4() { return static_cast<int32_t>(offsetof(Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23, ___a_4)); }
inline uint8_t get_a_4() const { return ___a_4; }
inline uint8_t* get_address_of_a_4() { return &___a_4; }
inline void set_a_4(uint8_t value)
{
___a_4 = value;
}
};
// UnityEngine.DrivenRectTransformTracker
struct DrivenRectTransformTracker_tB8FBBE24EEE9618CA32E4B3CF52F4AD7FDDEBE03
{
public:
union
{
struct
{
};
uint8_t DrivenRectTransformTracker_tB8FBBE24EEE9618CA32E4B3CF52F4AD7FDDEBE03__padding[1];
};
public:
};
// UnityEngine.Matrix4x4
struct Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA
{
public:
// System.Single UnityEngine.Matrix4x4::m00
float ___m00_0;
// System.Single UnityEngine.Matrix4x4::m10
float ___m10_1;
// System.Single UnityEngine.Matrix4x4::m20
float ___m20_2;
// System.Single UnityEngine.Matrix4x4::m30
float ___m30_3;
// System.Single UnityEngine.Matrix4x4::m01
float ___m01_4;
// System.Single UnityEngine.Matrix4x4::m11
float ___m11_5;
// System.Single UnityEngine.Matrix4x4::m21
float ___m21_6;
// System.Single UnityEngine.Matrix4x4::m31
float ___m31_7;
// System.Single UnityEngine.Matrix4x4::m02
float ___m02_8;
// System.Single UnityEngine.Matrix4x4::m12
float ___m12_9;
// System.Single UnityEngine.Matrix4x4::m22
float ___m22_10;
// System.Single UnityEngine.Matrix4x4::m32
float ___m32_11;
// System.Single UnityEngine.Matrix4x4::m03
float ___m03_12;
// System.Single UnityEngine.Matrix4x4::m13
float ___m13_13;
// System.Single UnityEngine.Matrix4x4::m23
float ___m23_14;
// System.Single UnityEngine.Matrix4x4::m33
float ___m33_15;
public:
inline static int32_t get_offset_of_m00_0() { return static_cast<int32_t>(offsetof(Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA, ___m00_0)); }
inline float get_m00_0() const { return ___m00_0; }
inline float* get_address_of_m00_0() { return &___m00_0; }
inline void set_m00_0(float value)
{
___m00_0 = value;
}
inline static int32_t get_offset_of_m10_1() { return static_cast<int32_t>(offsetof(Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA, ___m10_1)); }
inline float get_m10_1() const { return ___m10_1; }
inline float* get_address_of_m10_1() { return &___m10_1; }
inline void set_m10_1(float value)
{
___m10_1 = value;
}
inline static int32_t get_offset_of_m20_2() { return static_cast<int32_t>(offsetof(Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA, ___m20_2)); }
inline float get_m20_2() const { return ___m20_2; }
inline float* get_address_of_m20_2() { return &___m20_2; }
inline void set_m20_2(float value)
{
___m20_2 = value;
}
inline static int32_t get_offset_of_m30_3() { return static_cast<int32_t>(offsetof(Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA, ___m30_3)); }
inline float get_m30_3() const { return ___m30_3; }
inline float* get_address_of_m30_3() { return &___m30_3; }
inline void set_m30_3(float value)
{
___m30_3 = value;
}
inline static int32_t get_offset_of_m01_4() { return static_cast<int32_t>(offsetof(Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA, ___m01_4)); }
inline float get_m01_4() const { return ___m01_4; }
inline float* get_address_of_m01_4() { return &___m01_4; }
inline void set_m01_4(float value)
{
___m01_4 = value;
}
inline static int32_t get_offset_of_m11_5() { return static_cast<int32_t>(offsetof(Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA, ___m11_5)); }
inline float get_m11_5() const { return ___m11_5; }
inline float* get_address_of_m11_5() { return &___m11_5; }
inline void set_m11_5(float value)
{
___m11_5 = value;
}
inline static int32_t get_offset_of_m21_6() { return static_cast<int32_t>(offsetof(Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA, ___m21_6)); }
inline float get_m21_6() const { return ___m21_6; }
inline float* get_address_of_m21_6() { return &___m21_6; }
inline void set_m21_6(float value)
{
___m21_6 = value;
}
inline static int32_t get_offset_of_m31_7() { return static_cast<int32_t>(offsetof(Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA, ___m31_7)); }
inline float get_m31_7() const { return ___m31_7; }
inline float* get_address_of_m31_7() { return &___m31_7; }
inline void set_m31_7(float value)
{
___m31_7 = value;
}
inline static int32_t get_offset_of_m02_8() { return static_cast<int32_t>(offsetof(Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA, ___m02_8)); }
inline float get_m02_8() const { return ___m02_8; }
inline float* get_address_of_m02_8() { return &___m02_8; }
inline void set_m02_8(float value)
{
___m02_8 = value;
}
inline static int32_t get_offset_of_m12_9() { return static_cast<int32_t>(offsetof(Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA, ___m12_9)); }
inline float get_m12_9() const { return ___m12_9; }
inline float* get_address_of_m12_9() { return &___m12_9; }
inline void set_m12_9(float value)
{
___m12_9 = value;
}
inline static int32_t get_offset_of_m22_10() { return static_cast<int32_t>(offsetof(Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA, ___m22_10)); }
inline float get_m22_10() const { return ___m22_10; }
inline float* get_address_of_m22_10() { return &___m22_10; }
inline void set_m22_10(float value)
{
___m22_10 = value;
}
inline static int32_t get_offset_of_m32_11() { return static_cast<int32_t>(offsetof(Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA, ___m32_11)); }
inline float get_m32_11() const { return ___m32_11; }
inline float* get_address_of_m32_11() { return &___m32_11; }
inline void set_m32_11(float value)
{
___m32_11 = value;
}
inline static int32_t get_offset_of_m03_12() { return static_cast<int32_t>(offsetof(Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA, ___m03_12)); }
inline float get_m03_12() const { return ___m03_12; }
inline float* get_address_of_m03_12() { return &___m03_12; }
inline void set_m03_12(float value)
{
___m03_12 = value;
}
inline static int32_t get_offset_of_m13_13() { return static_cast<int32_t>(offsetof(Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA, ___m13_13)); }
inline float get_m13_13() const { return ___m13_13; }
inline float* get_address_of_m13_13() { return &___m13_13; }
inline void set_m13_13(float value)
{
___m13_13 = value;
}
inline static int32_t get_offset_of_m23_14() { return static_cast<int32_t>(offsetof(Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA, ___m23_14)); }
inline float get_m23_14() const { return ___m23_14; }
inline float* get_address_of_m23_14() { return &___m23_14; }
inline void set_m23_14(float value)
{
___m23_14 = value;
}
inline static int32_t get_offset_of_m33_15() { return static_cast<int32_t>(offsetof(Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA, ___m33_15)); }
inline float get_m33_15() const { return ___m33_15; }
inline float* get_address_of_m33_15() { return &___m33_15; }
inline void set_m33_15(float value)
{
___m33_15 = value;
}
};
struct Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA_StaticFields
{
public:
// UnityEngine.Matrix4x4 UnityEngine.Matrix4x4::zeroMatrix
Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA ___zeroMatrix_16;
// UnityEngine.Matrix4x4 UnityEngine.Matrix4x4::identityMatrix
Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA ___identityMatrix_17;
public:
inline static int32_t get_offset_of_zeroMatrix_16() { return static_cast<int32_t>(offsetof(Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA_StaticFields, ___zeroMatrix_16)); }
inline Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA get_zeroMatrix_16() const { return ___zeroMatrix_16; }
inline Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA * get_address_of_zeroMatrix_16() { return &___zeroMatrix_16; }
inline void set_zeroMatrix_16(Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA value)
{
___zeroMatrix_16 = value;
}
inline static int32_t get_offset_of_identityMatrix_17() { return static_cast<int32_t>(offsetof(Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA_StaticFields, ___identityMatrix_17)); }
inline Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA get_identityMatrix_17() const { return ___identityMatrix_17; }
inline Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA * get_address_of_identityMatrix_17() { return &___identityMatrix_17; }
inline void set_identityMatrix_17(Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA value)
{
___identityMatrix_17 = value;
}
};
// UnityEngine.Quaternion
struct Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357
{
public:
// System.Single UnityEngine.Quaternion::x
float ___x_0;
// System.Single UnityEngine.Quaternion::y
float ___y_1;
// System.Single UnityEngine.Quaternion::z
float ___z_2;
// System.Single UnityEngine.Quaternion::w
float ___w_3;
public:
inline static int32_t get_offset_of_x_0() { return static_cast<int32_t>(offsetof(Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357, ___x_0)); }
inline float get_x_0() const { return ___x_0; }
inline float* get_address_of_x_0() { return &___x_0; }
inline void set_x_0(float value)
{
___x_0 = value;
}
inline static int32_t get_offset_of_y_1() { return static_cast<int32_t>(offsetof(Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357, ___y_1)); }
inline float get_y_1() const { return ___y_1; }
inline float* get_address_of_y_1() { return &___y_1; }
inline void set_y_1(float value)
{
___y_1 = value;
}
inline static int32_t get_offset_of_z_2() { return static_cast<int32_t>(offsetof(Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357, ___z_2)); }
inline float get_z_2() const { return ___z_2; }
inline float* get_address_of_z_2() { return &___z_2; }
inline void set_z_2(float value)
{
___z_2 = value;
}
inline static int32_t get_offset_of_w_3() { return static_cast<int32_t>(offsetof(Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357, ___w_3)); }
inline float get_w_3() const { return ___w_3; }
inline float* get_address_of_w_3() { return &___w_3; }
inline void set_w_3(float value)
{
___w_3 = value;
}
};
struct Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357_StaticFields
{
public:
// UnityEngine.Quaternion UnityEngine.Quaternion::identityQuaternion
Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 ___identityQuaternion_4;
public:
inline static int32_t get_offset_of_identityQuaternion_4() { return static_cast<int32_t>(offsetof(Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357_StaticFields, ___identityQuaternion_4)); }
inline Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 get_identityQuaternion_4() const { return ___identityQuaternion_4; }
inline Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 * get_address_of_identityQuaternion_4() { return &___identityQuaternion_4; }
inline void set_identityQuaternion_4(Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 value)
{
___identityQuaternion_4 = value;
}
};
// UnityEngine.UI.SpriteState
struct SpriteState_t58B9DD66A79CD69AB4CFC3AD0C41E45DC2192C0A
{
public:
// UnityEngine.Sprite UnityEngine.UI.SpriteState::m_HighlightedSprite
Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 * ___m_HighlightedSprite_0;
// UnityEngine.Sprite UnityEngine.UI.SpriteState::m_PressedSprite
Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 * ___m_PressedSprite_1;
// UnityEngine.Sprite UnityEngine.UI.SpriteState::m_SelectedSprite
Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 * ___m_SelectedSprite_2;
// UnityEngine.Sprite UnityEngine.UI.SpriteState::m_DisabledSprite
Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 * ___m_DisabledSprite_3;
public:
inline static int32_t get_offset_of_m_HighlightedSprite_0() { return static_cast<int32_t>(offsetof(SpriteState_t58B9DD66A79CD69AB4CFC3AD0C41E45DC2192C0A, ___m_HighlightedSprite_0)); }
inline Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 * get_m_HighlightedSprite_0() const { return ___m_HighlightedSprite_0; }
inline Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 ** get_address_of_m_HighlightedSprite_0() { return &___m_HighlightedSprite_0; }
inline void set_m_HighlightedSprite_0(Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 * value)
{
___m_HighlightedSprite_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_HighlightedSprite_0), (void*)value);
}
inline static int32_t get_offset_of_m_PressedSprite_1() { return static_cast<int32_t>(offsetof(SpriteState_t58B9DD66A79CD69AB4CFC3AD0C41E45DC2192C0A, ___m_PressedSprite_1)); }
inline Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 * get_m_PressedSprite_1() const { return ___m_PressedSprite_1; }
inline Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 ** get_address_of_m_PressedSprite_1() { return &___m_PressedSprite_1; }
inline void set_m_PressedSprite_1(Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 * value)
{
___m_PressedSprite_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_PressedSprite_1), (void*)value);
}
inline static int32_t get_offset_of_m_SelectedSprite_2() { return static_cast<int32_t>(offsetof(SpriteState_t58B9DD66A79CD69AB4CFC3AD0C41E45DC2192C0A, ___m_SelectedSprite_2)); }
inline Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 * get_m_SelectedSprite_2() const { return ___m_SelectedSprite_2; }
inline Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 ** get_address_of_m_SelectedSprite_2() { return &___m_SelectedSprite_2; }
inline void set_m_SelectedSprite_2(Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 * value)
{
___m_SelectedSprite_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_SelectedSprite_2), (void*)value);
}
inline static int32_t get_offset_of_m_DisabledSprite_3() { return static_cast<int32_t>(offsetof(SpriteState_t58B9DD66A79CD69AB4CFC3AD0C41E45DC2192C0A, ___m_DisabledSprite_3)); }
inline Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 * get_m_DisabledSprite_3() const { return ___m_DisabledSprite_3; }
inline Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 ** get_address_of_m_DisabledSprite_3() { return &___m_DisabledSprite_3; }
inline void set_m_DisabledSprite_3(Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 * value)
{
___m_DisabledSprite_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_DisabledSprite_3), (void*)value);
}
};
// Native definition for P/Invoke marshalling of UnityEngine.UI.SpriteState
struct SpriteState_t58B9DD66A79CD69AB4CFC3AD0C41E45DC2192C0A_marshaled_pinvoke
{
Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 * ___m_HighlightedSprite_0;
Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 * ___m_PressedSprite_1;
Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 * ___m_SelectedSprite_2;
Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 * ___m_DisabledSprite_3;
};
// Native definition for COM marshalling of UnityEngine.UI.SpriteState
struct SpriteState_t58B9DD66A79CD69AB4CFC3AD0C41E45DC2192C0A_marshaled_com
{
Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 * ___m_HighlightedSprite_0;
Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 * ___m_PressedSprite_1;
Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 * ___m_SelectedSprite_2;
Sprite_tCA09498D612D08DE668653AF1E9C12BF53434198 * ___m_DisabledSprite_3;
};
// UnityEngine.Vector2
struct Vector2_tA85D2DD88578276CA8A8796756458277E72D073D
{
public:
// System.Single UnityEngine.Vector2::x
float ___x_0;
// System.Single UnityEngine.Vector2::y
float ___y_1;
public:
inline static int32_t get_offset_of_x_0() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D, ___x_0)); }
inline float get_x_0() const { return ___x_0; }
inline float* get_address_of_x_0() { return &___x_0; }
inline void set_x_0(float value)
{
___x_0 = value;
}
inline static int32_t get_offset_of_y_1() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D, ___y_1)); }
inline float get_y_1() const { return ___y_1; }
inline float* get_address_of_y_1() { return &___y_1; }
inline void set_y_1(float value)
{
___y_1 = value;
}
};
struct Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_StaticFields
{
public:
// UnityEngine.Vector2 UnityEngine.Vector2::zeroVector
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___zeroVector_2;
// UnityEngine.Vector2 UnityEngine.Vector2::oneVector
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___oneVector_3;
// UnityEngine.Vector2 UnityEngine.Vector2::upVector
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___upVector_4;
// UnityEngine.Vector2 UnityEngine.Vector2::downVector
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___downVector_5;
// UnityEngine.Vector2 UnityEngine.Vector2::leftVector
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___leftVector_6;
// UnityEngine.Vector2 UnityEngine.Vector2::rightVector
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___rightVector_7;
// UnityEngine.Vector2 UnityEngine.Vector2::positiveInfinityVector
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___positiveInfinityVector_8;
// UnityEngine.Vector2 UnityEngine.Vector2::negativeInfinityVector
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___negativeInfinityVector_9;
public:
inline static int32_t get_offset_of_zeroVector_2() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_StaticFields, ___zeroVector_2)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_zeroVector_2() const { return ___zeroVector_2; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_zeroVector_2() { return &___zeroVector_2; }
inline void set_zeroVector_2(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___zeroVector_2 = value;
}
inline static int32_t get_offset_of_oneVector_3() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_StaticFields, ___oneVector_3)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_oneVector_3() const { return ___oneVector_3; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_oneVector_3() { return &___oneVector_3; }
inline void set_oneVector_3(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___oneVector_3 = value;
}
inline static int32_t get_offset_of_upVector_4() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_StaticFields, ___upVector_4)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_upVector_4() const { return ___upVector_4; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_upVector_4() { return &___upVector_4; }
inline void set_upVector_4(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___upVector_4 = value;
}
inline static int32_t get_offset_of_downVector_5() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_StaticFields, ___downVector_5)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_downVector_5() const { return ___downVector_5; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_downVector_5() { return &___downVector_5; }
inline void set_downVector_5(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___downVector_5 = value;
}
inline static int32_t get_offset_of_leftVector_6() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_StaticFields, ___leftVector_6)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_leftVector_6() const { return ___leftVector_6; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_leftVector_6() { return &___leftVector_6; }
inline void set_leftVector_6(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___leftVector_6 = value;
}
inline static int32_t get_offset_of_rightVector_7() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_StaticFields, ___rightVector_7)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_rightVector_7() const { return ___rightVector_7; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_rightVector_7() { return &___rightVector_7; }
inline void set_rightVector_7(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___rightVector_7 = value;
}
inline static int32_t get_offset_of_positiveInfinityVector_8() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_StaticFields, ___positiveInfinityVector_8)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_positiveInfinityVector_8() const { return ___positiveInfinityVector_8; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_positiveInfinityVector_8() { return &___positiveInfinityVector_8; }
inline void set_positiveInfinityVector_8(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___positiveInfinityVector_8 = value;
}
inline static int32_t get_offset_of_negativeInfinityVector_9() { return static_cast<int32_t>(offsetof(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_StaticFields, ___negativeInfinityVector_9)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_negativeInfinityVector_9() const { return ___negativeInfinityVector_9; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_negativeInfinityVector_9() { return &___negativeInfinityVector_9; }
inline void set_negativeInfinityVector_9(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___negativeInfinityVector_9 = value;
}
};
// UnityEngine.Vector3
struct Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720
{
public:
// System.Single UnityEngine.Vector3::x
float ___x_2;
// System.Single UnityEngine.Vector3::y
float ___y_3;
// System.Single UnityEngine.Vector3::z
float ___z_4;
public:
inline static int32_t get_offset_of_x_2() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720, ___x_2)); }
inline float get_x_2() const { return ___x_2; }
inline float* get_address_of_x_2() { return &___x_2; }
inline void set_x_2(float value)
{
___x_2 = value;
}
inline static int32_t get_offset_of_y_3() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720, ___y_3)); }
inline float get_y_3() const { return ___y_3; }
inline float* get_address_of_y_3() { return &___y_3; }
inline void set_y_3(float value)
{
___y_3 = value;
}
inline static int32_t get_offset_of_z_4() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720, ___z_4)); }
inline float get_z_4() const { return ___z_4; }
inline float* get_address_of_z_4() { return &___z_4; }
inline void set_z_4(float value)
{
___z_4 = value;
}
};
struct Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields
{
public:
// UnityEngine.Vector3 UnityEngine.Vector3::zeroVector
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___zeroVector_5;
// UnityEngine.Vector3 UnityEngine.Vector3::oneVector
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___oneVector_6;
// UnityEngine.Vector3 UnityEngine.Vector3::upVector
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___upVector_7;
// UnityEngine.Vector3 UnityEngine.Vector3::downVector
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___downVector_8;
// UnityEngine.Vector3 UnityEngine.Vector3::leftVector
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___leftVector_9;
// UnityEngine.Vector3 UnityEngine.Vector3::rightVector
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___rightVector_10;
// UnityEngine.Vector3 UnityEngine.Vector3::forwardVector
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___forwardVector_11;
// UnityEngine.Vector3 UnityEngine.Vector3::backVector
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___backVector_12;
// UnityEngine.Vector3 UnityEngine.Vector3::positiveInfinityVector
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___positiveInfinityVector_13;
// UnityEngine.Vector3 UnityEngine.Vector3::negativeInfinityVector
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___negativeInfinityVector_14;
public:
inline static int32_t get_offset_of_zeroVector_5() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___zeroVector_5)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_zeroVector_5() const { return ___zeroVector_5; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_zeroVector_5() { return &___zeroVector_5; }
inline void set_zeroVector_5(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___zeroVector_5 = value;
}
inline static int32_t get_offset_of_oneVector_6() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___oneVector_6)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_oneVector_6() const { return ___oneVector_6; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_oneVector_6() { return &___oneVector_6; }
inline void set_oneVector_6(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___oneVector_6 = value;
}
inline static int32_t get_offset_of_upVector_7() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___upVector_7)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_upVector_7() const { return ___upVector_7; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_upVector_7() { return &___upVector_7; }
inline void set_upVector_7(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___upVector_7 = value;
}
inline static int32_t get_offset_of_downVector_8() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___downVector_8)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_downVector_8() const { return ___downVector_8; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_downVector_8() { return &___downVector_8; }
inline void set_downVector_8(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___downVector_8 = value;
}
inline static int32_t get_offset_of_leftVector_9() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___leftVector_9)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_leftVector_9() const { return ___leftVector_9; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_leftVector_9() { return &___leftVector_9; }
inline void set_leftVector_9(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___leftVector_9 = value;
}
inline static int32_t get_offset_of_rightVector_10() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___rightVector_10)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_rightVector_10() const { return ___rightVector_10; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_rightVector_10() { return &___rightVector_10; }
inline void set_rightVector_10(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___rightVector_10 = value;
}
inline static int32_t get_offset_of_forwardVector_11() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___forwardVector_11)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_forwardVector_11() const { return ___forwardVector_11; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_forwardVector_11() { return &___forwardVector_11; }
inline void set_forwardVector_11(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___forwardVector_11 = value;
}
inline static int32_t get_offset_of_backVector_12() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___backVector_12)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_backVector_12() const { return ___backVector_12; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_backVector_12() { return &___backVector_12; }
inline void set_backVector_12(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___backVector_12 = value;
}
inline static int32_t get_offset_of_positiveInfinityVector_13() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___positiveInfinityVector_13)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_positiveInfinityVector_13() const { return ___positiveInfinityVector_13; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_positiveInfinityVector_13() { return &___positiveInfinityVector_13; }
inline void set_positiveInfinityVector_13(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___positiveInfinityVector_13 = value;
}
inline static int32_t get_offset_of_negativeInfinityVector_14() { return static_cast<int32_t>(offsetof(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_StaticFields, ___negativeInfinityVector_14)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_negativeInfinityVector_14() const { return ___negativeInfinityVector_14; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_negativeInfinityVector_14() { return &___negativeInfinityVector_14; }
inline void set_negativeInfinityVector_14(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___negativeInfinityVector_14 = value;
}
};
// UnityEngine.Vector4
struct Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E
{
public:
// System.Single UnityEngine.Vector4::x
float ___x_1;
// System.Single UnityEngine.Vector4::y
float ___y_2;
// System.Single UnityEngine.Vector4::z
float ___z_3;
// System.Single UnityEngine.Vector4::w
float ___w_4;
public:
inline static int32_t get_offset_of_x_1() { return static_cast<int32_t>(offsetof(Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E, ___x_1)); }
inline float get_x_1() const { return ___x_1; }
inline float* get_address_of_x_1() { return &___x_1; }
inline void set_x_1(float value)
{
___x_1 = value;
}
inline static int32_t get_offset_of_y_2() { return static_cast<int32_t>(offsetof(Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E, ___y_2)); }
inline float get_y_2() const { return ___y_2; }
inline float* get_address_of_y_2() { return &___y_2; }
inline void set_y_2(float value)
{
___y_2 = value;
}
inline static int32_t get_offset_of_z_3() { return static_cast<int32_t>(offsetof(Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E, ___z_3)); }
inline float get_z_3() const { return ___z_3; }
inline float* get_address_of_z_3() { return &___z_3; }
inline void set_z_3(float value)
{
___z_3 = value;
}
inline static int32_t get_offset_of_w_4() { return static_cast<int32_t>(offsetof(Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E, ___w_4)); }
inline float get_w_4() const { return ___w_4; }
inline float* get_address_of_w_4() { return &___w_4; }
inline void set_w_4(float value)
{
___w_4 = value;
}
};
struct Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E_StaticFields
{
public:
// UnityEngine.Vector4 UnityEngine.Vector4::zeroVector
Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E ___zeroVector_5;
// UnityEngine.Vector4 UnityEngine.Vector4::oneVector
Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E ___oneVector_6;
// UnityEngine.Vector4 UnityEngine.Vector4::positiveInfinityVector
Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E ___positiveInfinityVector_7;
// UnityEngine.Vector4 UnityEngine.Vector4::negativeInfinityVector
Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E ___negativeInfinityVector_8;
public:
inline static int32_t get_offset_of_zeroVector_5() { return static_cast<int32_t>(offsetof(Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E_StaticFields, ___zeroVector_5)); }
inline Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E get_zeroVector_5() const { return ___zeroVector_5; }
inline Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E * get_address_of_zeroVector_5() { return &___zeroVector_5; }
inline void set_zeroVector_5(Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E value)
{
___zeroVector_5 = value;
}
inline static int32_t get_offset_of_oneVector_6() { return static_cast<int32_t>(offsetof(Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E_StaticFields, ___oneVector_6)); }
inline Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E get_oneVector_6() const { return ___oneVector_6; }
inline Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E * get_address_of_oneVector_6() { return &___oneVector_6; }
inline void set_oneVector_6(Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E value)
{
___oneVector_6 = value;
}
inline static int32_t get_offset_of_positiveInfinityVector_7() { return static_cast<int32_t>(offsetof(Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E_StaticFields, ___positiveInfinityVector_7)); }
inline Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E get_positiveInfinityVector_7() const { return ___positiveInfinityVector_7; }
inline Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E * get_address_of_positiveInfinityVector_7() { return &___positiveInfinityVector_7; }
inline void set_positiveInfinityVector_7(Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E value)
{
___positiveInfinityVector_7 = value;
}
inline static int32_t get_offset_of_negativeInfinityVector_8() { return static_cast<int32_t>(offsetof(Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E_StaticFields, ___negativeInfinityVector_8)); }
inline Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E get_negativeInfinityVector_8() const { return ___negativeInfinityVector_8; }
inline Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E * get_address_of_negativeInfinityVector_8() { return &___negativeInfinityVector_8; }
inline void set_negativeInfinityVector_8(Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E value)
{
___negativeInfinityVector_8 = value;
}
};
// UnityEngine.XR.ARSubsystems.TrackableId
struct TrackableId_tA7E19AFE62176E25E3759548887E9068E1E4AE47
{
public:
// System.UInt64 UnityEngine.XR.ARSubsystems.TrackableId::m_SubId1
uint64_t ___m_SubId1_1;
// System.UInt64 UnityEngine.XR.ARSubsystems.TrackableId::m_SubId2
uint64_t ___m_SubId2_2;
public:
inline static int32_t get_offset_of_m_SubId1_1() { return static_cast<int32_t>(offsetof(TrackableId_tA7E19AFE62176E25E3759548887E9068E1E4AE47, ___m_SubId1_1)); }
inline uint64_t get_m_SubId1_1() const { return ___m_SubId1_1; }
inline uint64_t* get_address_of_m_SubId1_1() { return &___m_SubId1_1; }
inline void set_m_SubId1_1(uint64_t value)
{
___m_SubId1_1 = value;
}
inline static int32_t get_offset_of_m_SubId2_2() { return static_cast<int32_t>(offsetof(TrackableId_tA7E19AFE62176E25E3759548887E9068E1E4AE47, ___m_SubId2_2)); }
inline uint64_t get_m_SubId2_2() const { return ___m_SubId2_2; }
inline uint64_t* get_address_of_m_SubId2_2() { return &___m_SubId2_2; }
inline void set_m_SubId2_2(uint64_t value)
{
___m_SubId2_2 = value;
}
};
struct TrackableId_tA7E19AFE62176E25E3759548887E9068E1E4AE47_StaticFields
{
public:
// UnityEngine.XR.ARSubsystems.TrackableId UnityEngine.XR.ARSubsystems.TrackableId::s_InvalidId
TrackableId_tA7E19AFE62176E25E3759548887E9068E1E4AE47 ___s_InvalidId_0;
public:
inline static int32_t get_offset_of_s_InvalidId_0() { return static_cast<int32_t>(offsetof(TrackableId_tA7E19AFE62176E25E3759548887E9068E1E4AE47_StaticFields, ___s_InvalidId_0)); }
inline TrackableId_tA7E19AFE62176E25E3759548887E9068E1E4AE47 get_s_InvalidId_0() const { return ___s_InvalidId_0; }
inline TrackableId_tA7E19AFE62176E25E3759548887E9068E1E4AE47 * get_address_of_s_InvalidId_0() { return &___s_InvalidId_0; }
inline void set_s_InvalidId_0(TrackableId_tA7E19AFE62176E25E3759548887E9068E1E4AE47 value)
{
___s_InvalidId_0 = value;
}
};
// MenuScript_ARStates
struct ARStates_t75BF4D82772DC4F82788830FE611820A686D4862
{
public:
// System.Int32 MenuScript_ARStates::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(ARStates_t75BF4D82772DC4F82788830FE611820A686D4862, ___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;
}
};
// MenuScript_MenuStates
struct MenuStates_t53051F98DBA443BF4E6C4B5C9ECBBC5DAB94F721
{
public:
// System.Int32 MenuScript_MenuStates::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(MenuStates_t53051F98DBA443BF4E6C4B5C9ECBBC5DAB94F721, ___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;
}
};
// 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((void**)(&____className_1), (void*)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((void**)(&____message_2), (void*)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((void**)(&____data_3), (void*)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((void**)(&____innerException_4), (void*)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((void**)(&____helpURL_5), (void*)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((void**)(&____stackTrace_6), (void*)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((void**)(&____stackTraceString_7), (void*)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((void**)(&____remoteStackTraceString_8), (void*)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((void**)(&____dynamicMethods_10), (void*)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((void**)(&____source_12), (void*)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((void**)(&____safeSerializationManager_13), (void*)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((void**)(&___captured_traces_14), (void*)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((void**)(&___native_trace_ips_15), (void*)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((void**)(&___s_EDILock_0), (void*)value);
}
};
// 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;
Il2CppSafeArray/*NONE*/* ___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;
Il2CppSafeArray/*NONE*/* ___native_trace_ips_15;
};
// TMPro.ColorMode
struct ColorMode_tA3D65CECD3289ADB3A3C5A936DC23B41C364C4C3
{
public:
// System.Int32 TMPro.ColorMode::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(ColorMode_tA3D65CECD3289ADB3A3C5A936DC23B41C364C4C3, ___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;
}
};
// TMPro.Extents
struct Extents_tB63A1FF929CAEBC8E097EF426A8B6F91442B0EA3
{
public:
// UnityEngine.Vector2 TMPro.Extents::min
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___min_0;
// UnityEngine.Vector2 TMPro.Extents::max
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___max_1;
public:
inline static int32_t get_offset_of_min_0() { return static_cast<int32_t>(offsetof(Extents_tB63A1FF929CAEBC8E097EF426A8B6F91442B0EA3, ___min_0)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_min_0() const { return ___min_0; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_min_0() { return &___min_0; }
inline void set_min_0(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___min_0 = value;
}
inline static int32_t get_offset_of_max_1() { return static_cast<int32_t>(offsetof(Extents_tB63A1FF929CAEBC8E097EF426A8B6F91442B0EA3, ___max_1)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_max_1() const { return ___max_1; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_max_1() { return &___max_1; }
inline void set_max_1(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___max_1 = value;
}
};
// TMPro.FontStyles
struct FontStyles_t31B880C817B2DF0BF3B60AC4D187A3E7BE5D8893
{
public:
// System.Int32 TMPro.FontStyles::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(FontStyles_t31B880C817B2DF0BF3B60AC4D187A3E7BE5D8893, ___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;
}
};
// TMPro.FontWeight
struct FontWeight_tE551C56E6C7CCAFCC6519C65D03AAA340E9FF35C
{
public:
// System.Int32 TMPro.FontWeight::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(FontWeight_tE551C56E6C7CCAFCC6519C65D03AAA340E9FF35C, ___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;
}
};
// TMPro.TMP_RichTextTagStack`1<TMPro.MaterialReference>
struct TMP_RichTextTagStack_1_t9742B1BC2B58D513502935F599F4AF09FFC379A9
{
public:
// T[] TMPro.TMP_RichTextTagStack`1::m_ItemStack
MaterialReferenceU5BU5D_t01EC9C1C00A504C2EF9FBAF95DE26BB88E9B743B* ___m_ItemStack_0;
// System.Int32 TMPro.TMP_RichTextTagStack`1::m_Index
int32_t ___m_Index_1;
// System.Int32 TMPro.TMP_RichTextTagStack`1::m_Capacity
int32_t ___m_Capacity_2;
// T TMPro.TMP_RichTextTagStack`1::m_DefaultItem
MaterialReference_tFDD866CC1D210125CDEC9DCB60B9AACB2FE3AF7F ___m_DefaultItem_3;
public:
inline static int32_t get_offset_of_m_ItemStack_0() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_t9742B1BC2B58D513502935F599F4AF09FFC379A9, ___m_ItemStack_0)); }
inline MaterialReferenceU5BU5D_t01EC9C1C00A504C2EF9FBAF95DE26BB88E9B743B* get_m_ItemStack_0() const { return ___m_ItemStack_0; }
inline MaterialReferenceU5BU5D_t01EC9C1C00A504C2EF9FBAF95DE26BB88E9B743B** get_address_of_m_ItemStack_0() { return &___m_ItemStack_0; }
inline void set_m_ItemStack_0(MaterialReferenceU5BU5D_t01EC9C1C00A504C2EF9FBAF95DE26BB88E9B743B* value)
{
___m_ItemStack_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_ItemStack_0), (void*)value);
}
inline static int32_t get_offset_of_m_Index_1() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_t9742B1BC2B58D513502935F599F4AF09FFC379A9, ___m_Index_1)); }
inline int32_t get_m_Index_1() const { return ___m_Index_1; }
inline int32_t* get_address_of_m_Index_1() { return &___m_Index_1; }
inline void set_m_Index_1(int32_t value)
{
___m_Index_1 = value;
}
inline static int32_t get_offset_of_m_Capacity_2() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_t9742B1BC2B58D513502935F599F4AF09FFC379A9, ___m_Capacity_2)); }
inline int32_t get_m_Capacity_2() const { return ___m_Capacity_2; }
inline int32_t* get_address_of_m_Capacity_2() { return &___m_Capacity_2; }
inline void set_m_Capacity_2(int32_t value)
{
___m_Capacity_2 = value;
}
inline static int32_t get_offset_of_m_DefaultItem_3() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_t9742B1BC2B58D513502935F599F4AF09FFC379A9, ___m_DefaultItem_3)); }
inline MaterialReference_tFDD866CC1D210125CDEC9DCB60B9AACB2FE3AF7F get_m_DefaultItem_3() const { return ___m_DefaultItem_3; }
inline MaterialReference_tFDD866CC1D210125CDEC9DCB60B9AACB2FE3AF7F * get_address_of_m_DefaultItem_3() { return &___m_DefaultItem_3; }
inline void set_m_DefaultItem_3(MaterialReference_tFDD866CC1D210125CDEC9DCB60B9AACB2FE3AF7F value)
{
___m_DefaultItem_3 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___m_DefaultItem_3))->___fontAsset_1), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___m_DefaultItem_3))->___spriteAsset_2), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___m_DefaultItem_3))->___material_3), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___m_DefaultItem_3))->___fallbackMaterial_6), (void*)NULL);
#endif
}
};
// TMPro.TMP_RichTextTagStack`1<UnityEngine.Color32>
struct TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0
{
public:
// T[] TMPro.TMP_RichTextTagStack`1::m_ItemStack
Color32U5BU5D_tABFBCB467E6D1B791303A0D3A3AA1A482F620983* ___m_ItemStack_0;
// System.Int32 TMPro.TMP_RichTextTagStack`1::m_Index
int32_t ___m_Index_1;
// System.Int32 TMPro.TMP_RichTextTagStack`1::m_Capacity
int32_t ___m_Capacity_2;
// T TMPro.TMP_RichTextTagStack`1::m_DefaultItem
Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 ___m_DefaultItem_3;
public:
inline static int32_t get_offset_of_m_ItemStack_0() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0, ___m_ItemStack_0)); }
inline Color32U5BU5D_tABFBCB467E6D1B791303A0D3A3AA1A482F620983* get_m_ItemStack_0() const { return ___m_ItemStack_0; }
inline Color32U5BU5D_tABFBCB467E6D1B791303A0D3A3AA1A482F620983** get_address_of_m_ItemStack_0() { return &___m_ItemStack_0; }
inline void set_m_ItemStack_0(Color32U5BU5D_tABFBCB467E6D1B791303A0D3A3AA1A482F620983* value)
{
___m_ItemStack_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_ItemStack_0), (void*)value);
}
inline static int32_t get_offset_of_m_Index_1() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0, ___m_Index_1)); }
inline int32_t get_m_Index_1() const { return ___m_Index_1; }
inline int32_t* get_address_of_m_Index_1() { return &___m_Index_1; }
inline void set_m_Index_1(int32_t value)
{
___m_Index_1 = value;
}
inline static int32_t get_offset_of_m_Capacity_2() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0, ___m_Capacity_2)); }
inline int32_t get_m_Capacity_2() const { return ___m_Capacity_2; }
inline int32_t* get_address_of_m_Capacity_2() { return &___m_Capacity_2; }
inline void set_m_Capacity_2(int32_t value)
{
___m_Capacity_2 = value;
}
inline static int32_t get_offset_of_m_DefaultItem_3() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0, ___m_DefaultItem_3)); }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 get_m_DefaultItem_3() const { return ___m_DefaultItem_3; }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 * get_address_of_m_DefaultItem_3() { return &___m_DefaultItem_3; }
inline void set_m_DefaultItem_3(Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 value)
{
___m_DefaultItem_3 = value;
}
};
// TMPro.TMP_Text_TextInputSources
struct TextInputSources_t08C2D3664AE99CBF6ED41C9DB8F4E9E8FC8E54B4
{
public:
// System.Int32 TMPro.TMP_Text_TextInputSources::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(TextInputSources_t08C2D3664AE99CBF6ED41C9DB8F4E9E8FC8E54B4, ___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;
}
};
// TMPro.TMP_TextElementType
struct TMP_TextElementType_tBF2553FA730CC21CF99473E591C33DC52360D509
{
public:
// System.Int32 TMPro.TMP_TextElementType::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(TMP_TextElementType_tBF2553FA730CC21CF99473E591C33DC52360D509, ___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;
}
};
// TMPro.TextAlignmentOptions
struct TextAlignmentOptions_t4BEB3BA6EE897B5127FFBABD7E36B1A024EE5337
{
public:
// System.Int32 TMPro.TextAlignmentOptions::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(TextAlignmentOptions_t4BEB3BA6EE897B5127FFBABD7E36B1A024EE5337, ___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;
}
};
// TMPro.TextOverflowModes
struct TextOverflowModes_tC4F820014333ECAF4D52B02F75171FD9E52B9D76
{
public:
// System.Int32 TMPro.TextOverflowModes::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(TextOverflowModes_tC4F820014333ECAF4D52B02F75171FD9E52B9D76, ___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;
}
};
// TMPro.TextRenderFlags
struct TextRenderFlags_t29165355D5674BAEF40359B740631503FA9C0B56
{
public:
// System.Int32 TMPro.TextRenderFlags::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(TextRenderFlags_t29165355D5674BAEF40359B740631503FA9C0B56, ___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;
}
};
// TMPro.TextureMappingOptions
struct TextureMappingOptions_tAC77A218D6DF5F386DA38AEAF3D9C943F084BD10
{
public:
// System.Int32 TMPro.TextureMappingOptions::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(TextureMappingOptions_tAC77A218D6DF5F386DA38AEAF3D9C943F084BD10, ___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;
}
};
// TMPro.VertexGradient
struct VertexGradient_tDDAAE14E70CADA44B1B69F228CFF837C67EF6F9A
{
public:
// UnityEngine.Color TMPro.VertexGradient::topLeft
Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 ___topLeft_0;
// UnityEngine.Color TMPro.VertexGradient::topRight
Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 ___topRight_1;
// UnityEngine.Color TMPro.VertexGradient::bottomLeft
Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 ___bottomLeft_2;
// UnityEngine.Color TMPro.VertexGradient::bottomRight
Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 ___bottomRight_3;
public:
inline static int32_t get_offset_of_topLeft_0() { return static_cast<int32_t>(offsetof(VertexGradient_tDDAAE14E70CADA44B1B69F228CFF837C67EF6F9A, ___topLeft_0)); }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 get_topLeft_0() const { return ___topLeft_0; }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 * get_address_of_topLeft_0() { return &___topLeft_0; }
inline void set_topLeft_0(Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 value)
{
___topLeft_0 = value;
}
inline static int32_t get_offset_of_topRight_1() { return static_cast<int32_t>(offsetof(VertexGradient_tDDAAE14E70CADA44B1B69F228CFF837C67EF6F9A, ___topRight_1)); }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 get_topRight_1() const { return ___topRight_1; }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 * get_address_of_topRight_1() { return &___topRight_1; }
inline void set_topRight_1(Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 value)
{
___topRight_1 = value;
}
inline static int32_t get_offset_of_bottomLeft_2() { return static_cast<int32_t>(offsetof(VertexGradient_tDDAAE14E70CADA44B1B69F228CFF837C67EF6F9A, ___bottomLeft_2)); }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 get_bottomLeft_2() const { return ___bottomLeft_2; }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 * get_address_of_bottomLeft_2() { return &___bottomLeft_2; }
inline void set_bottomLeft_2(Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 value)
{
___bottomLeft_2 = value;
}
inline static int32_t get_offset_of_bottomRight_3() { return static_cast<int32_t>(offsetof(VertexGradient_tDDAAE14E70CADA44B1B69F228CFF837C67EF6F9A, ___bottomRight_3)); }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 get_bottomRight_3() const { return ___bottomRight_3; }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 * get_address_of_bottomRight_3() { return &___bottomRight_3; }
inline void set_bottomRight_3(Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 value)
{
___bottomRight_3 = value;
}
};
// TMPro.VertexSortingOrder
struct VertexSortingOrder_t2571FF911BB69CC1CC229DF12DE68568E3F850E5
{
public:
// System.Int32 TMPro.VertexSortingOrder::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(VertexSortingOrder_t2571FF911BB69CC1CC229DF12DE68568E3F850E5, ___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;
}
};
// UnityEngine.Object
struct Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 : public RuntimeObject
{
public:
// System.IntPtr UnityEngine.Object::m_CachedPtr
intptr_t ___m_CachedPtr_0;
public:
inline static int32_t get_offset_of_m_CachedPtr_0() { return static_cast<int32_t>(offsetof(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0, ___m_CachedPtr_0)); }
inline intptr_t get_m_CachedPtr_0() const { return ___m_CachedPtr_0; }
inline intptr_t* get_address_of_m_CachedPtr_0() { return &___m_CachedPtr_0; }
inline void set_m_CachedPtr_0(intptr_t value)
{
___m_CachedPtr_0 = value;
}
};
struct Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_StaticFields
{
public:
// System.Int32 UnityEngine.Object::OffsetOfInstanceIDInCPlusPlusObject
int32_t ___OffsetOfInstanceIDInCPlusPlusObject_1;
public:
inline static int32_t get_offset_of_OffsetOfInstanceIDInCPlusPlusObject_1() { return static_cast<int32_t>(offsetof(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_StaticFields, ___OffsetOfInstanceIDInCPlusPlusObject_1)); }
inline int32_t get_OffsetOfInstanceIDInCPlusPlusObject_1() const { return ___OffsetOfInstanceIDInCPlusPlusObject_1; }
inline int32_t* get_address_of_OffsetOfInstanceIDInCPlusPlusObject_1() { return &___OffsetOfInstanceIDInCPlusPlusObject_1; }
inline void set_OffsetOfInstanceIDInCPlusPlusObject_1(int32_t value)
{
___OffsetOfInstanceIDInCPlusPlusObject_1 = value;
}
};
// Native definition for P/Invoke marshalling of UnityEngine.Object
struct Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_marshaled_pinvoke
{
intptr_t ___m_CachedPtr_0;
};
// Native definition for COM marshalling of UnityEngine.Object
struct Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_marshaled_com
{
intptr_t ___m_CachedPtr_0;
};
// UnityEngine.Pose
struct Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29
{
public:
// UnityEngine.Vector3 UnityEngine.Pose::position
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___position_0;
// UnityEngine.Quaternion UnityEngine.Pose::rotation
Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 ___rotation_1;
public:
inline static int32_t get_offset_of_position_0() { return static_cast<int32_t>(offsetof(Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29, ___position_0)); }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 get_position_0() const { return ___position_0; }
inline Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * get_address_of_position_0() { return &___position_0; }
inline void set_position_0(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 value)
{
___position_0 = value;
}
inline static int32_t get_offset_of_rotation_1() { return static_cast<int32_t>(offsetof(Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29, ___rotation_1)); }
inline Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 get_rotation_1() const { return ___rotation_1; }
inline Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 * get_address_of_rotation_1() { return &___rotation_1; }
inline void set_rotation_1(Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 value)
{
___rotation_1 = value;
}
};
struct Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29_StaticFields
{
public:
// UnityEngine.Pose UnityEngine.Pose::k_Identity
Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 ___k_Identity_2;
public:
inline static int32_t get_offset_of_k_Identity_2() { return static_cast<int32_t>(offsetof(Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29_StaticFields, ___k_Identity_2)); }
inline Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 get_k_Identity_2() const { return ___k_Identity_2; }
inline Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 * get_address_of_k_Identity_2() { return &___k_Identity_2; }
inline void set_k_Identity_2(Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 value)
{
___k_Identity_2 = value;
}
};
// UnityEngine.UI.ColorBlock
struct ColorBlock_t93B54DF6E8D65D24CEA9726CA745E48C53E3B1EA
{
public:
// UnityEngine.Color UnityEngine.UI.ColorBlock::m_NormalColor
Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 ___m_NormalColor_0;
// UnityEngine.Color UnityEngine.UI.ColorBlock::m_HighlightedColor
Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 ___m_HighlightedColor_1;
// UnityEngine.Color UnityEngine.UI.ColorBlock::m_PressedColor
Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 ___m_PressedColor_2;
// UnityEngine.Color UnityEngine.UI.ColorBlock::m_SelectedColor
Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 ___m_SelectedColor_3;
// UnityEngine.Color UnityEngine.UI.ColorBlock::m_DisabledColor
Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 ___m_DisabledColor_4;
// System.Single UnityEngine.UI.ColorBlock::m_ColorMultiplier
float ___m_ColorMultiplier_5;
// System.Single UnityEngine.UI.ColorBlock::m_FadeDuration
float ___m_FadeDuration_6;
public:
inline static int32_t get_offset_of_m_NormalColor_0() { return static_cast<int32_t>(offsetof(ColorBlock_t93B54DF6E8D65D24CEA9726CA745E48C53E3B1EA, ___m_NormalColor_0)); }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 get_m_NormalColor_0() const { return ___m_NormalColor_0; }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 * get_address_of_m_NormalColor_0() { return &___m_NormalColor_0; }
inline void set_m_NormalColor_0(Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 value)
{
___m_NormalColor_0 = value;
}
inline static int32_t get_offset_of_m_HighlightedColor_1() { return static_cast<int32_t>(offsetof(ColorBlock_t93B54DF6E8D65D24CEA9726CA745E48C53E3B1EA, ___m_HighlightedColor_1)); }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 get_m_HighlightedColor_1() const { return ___m_HighlightedColor_1; }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 * get_address_of_m_HighlightedColor_1() { return &___m_HighlightedColor_1; }
inline void set_m_HighlightedColor_1(Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 value)
{
___m_HighlightedColor_1 = value;
}
inline static int32_t get_offset_of_m_PressedColor_2() { return static_cast<int32_t>(offsetof(ColorBlock_t93B54DF6E8D65D24CEA9726CA745E48C53E3B1EA, ___m_PressedColor_2)); }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 get_m_PressedColor_2() const { return ___m_PressedColor_2; }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 * get_address_of_m_PressedColor_2() { return &___m_PressedColor_2; }
inline void set_m_PressedColor_2(Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 value)
{
___m_PressedColor_2 = value;
}
inline static int32_t get_offset_of_m_SelectedColor_3() { return static_cast<int32_t>(offsetof(ColorBlock_t93B54DF6E8D65D24CEA9726CA745E48C53E3B1EA, ___m_SelectedColor_3)); }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 get_m_SelectedColor_3() const { return ___m_SelectedColor_3; }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 * get_address_of_m_SelectedColor_3() { return &___m_SelectedColor_3; }
inline void set_m_SelectedColor_3(Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 value)
{
___m_SelectedColor_3 = value;
}
inline static int32_t get_offset_of_m_DisabledColor_4() { return static_cast<int32_t>(offsetof(ColorBlock_t93B54DF6E8D65D24CEA9726CA745E48C53E3B1EA, ___m_DisabledColor_4)); }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 get_m_DisabledColor_4() const { return ___m_DisabledColor_4; }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 * get_address_of_m_DisabledColor_4() { return &___m_DisabledColor_4; }
inline void set_m_DisabledColor_4(Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 value)
{
___m_DisabledColor_4 = value;
}
inline static int32_t get_offset_of_m_ColorMultiplier_5() { return static_cast<int32_t>(offsetof(ColorBlock_t93B54DF6E8D65D24CEA9726CA745E48C53E3B1EA, ___m_ColorMultiplier_5)); }
inline float get_m_ColorMultiplier_5() const { return ___m_ColorMultiplier_5; }
inline float* get_address_of_m_ColorMultiplier_5() { return &___m_ColorMultiplier_5; }
inline void set_m_ColorMultiplier_5(float value)
{
___m_ColorMultiplier_5 = value;
}
inline static int32_t get_offset_of_m_FadeDuration_6() { return static_cast<int32_t>(offsetof(ColorBlock_t93B54DF6E8D65D24CEA9726CA745E48C53E3B1EA, ___m_FadeDuration_6)); }
inline float get_m_FadeDuration_6() const { return ___m_FadeDuration_6; }
inline float* get_address_of_m_FadeDuration_6() { return &___m_FadeDuration_6; }
inline void set_m_FadeDuration_6(float value)
{
___m_FadeDuration_6 = value;
}
};
// UnityEngine.UI.Navigation_Mode
struct Mode_t93F92BD50B147AE38D82BA33FA77FD247A59FE26
{
public:
// System.Int32 UnityEngine.UI.Navigation_Mode::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(Mode_t93F92BD50B147AE38D82BA33FA77FD247A59FE26, ___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;
}
};
// UnityEngine.UI.Selectable_Transition
struct Transition_tA9261C608B54C52324084A0B080E7A3E0548A181
{
public:
// System.Int32 UnityEngine.UI.Selectable_Transition::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(Transition_tA9261C608B54C52324084A0B080E7A3E0548A181, ___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;
}
};
// UnityEngine.UI.Slider_Direction
struct Direction_tAAEBCB52D43F1B8F5DBB1A6F1025F9D02852B67E
{
public:
// System.Int32 UnityEngine.UI.Slider_Direction::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(Direction_tAAEBCB52D43F1B8F5DBB1A6F1025F9D02852B67E, ___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;
}
};
// UnityEngine.XR.ARSubsystems.TrackableType
struct TrackableType_t078FFF635AE2E4FC51E7D7DB8AB1CB884D30EA1F
{
public:
// System.Int32 UnityEngine.XR.ARSubsystems.TrackableType::value__
int32_t ___value___2;
public:
inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(TrackableType_t078FFF635AE2E4FC51E7D7DB8AB1CB884D30EA1F, ___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;
}
};
// System.SystemException
struct SystemException_t5380468142AA850BE4A341D7AF3EAB9C78746782 : public Exception_t
{
public:
public:
};
// TMPro.TMP_LineInfo
struct TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442
{
public:
// System.Int32 TMPro.TMP_LineInfo::controlCharacterCount
int32_t ___controlCharacterCount_0;
// System.Int32 TMPro.TMP_LineInfo::characterCount
int32_t ___characterCount_1;
// System.Int32 TMPro.TMP_LineInfo::visibleCharacterCount
int32_t ___visibleCharacterCount_2;
// System.Int32 TMPro.TMP_LineInfo::spaceCount
int32_t ___spaceCount_3;
// System.Int32 TMPro.TMP_LineInfo::wordCount
int32_t ___wordCount_4;
// System.Int32 TMPro.TMP_LineInfo::firstCharacterIndex
int32_t ___firstCharacterIndex_5;
// System.Int32 TMPro.TMP_LineInfo::firstVisibleCharacterIndex
int32_t ___firstVisibleCharacterIndex_6;
// System.Int32 TMPro.TMP_LineInfo::lastCharacterIndex
int32_t ___lastCharacterIndex_7;
// System.Int32 TMPro.TMP_LineInfo::lastVisibleCharacterIndex
int32_t ___lastVisibleCharacterIndex_8;
// System.Single TMPro.TMP_LineInfo::length
float ___length_9;
// System.Single TMPro.TMP_LineInfo::lineHeight
float ___lineHeight_10;
// System.Single TMPro.TMP_LineInfo::ascender
float ___ascender_11;
// System.Single TMPro.TMP_LineInfo::baseline
float ___baseline_12;
// System.Single TMPro.TMP_LineInfo::descender
float ___descender_13;
// System.Single TMPro.TMP_LineInfo::maxAdvance
float ___maxAdvance_14;
// System.Single TMPro.TMP_LineInfo::width
float ___width_15;
// System.Single TMPro.TMP_LineInfo::marginLeft
float ___marginLeft_16;
// System.Single TMPro.TMP_LineInfo::marginRight
float ___marginRight_17;
// TMPro.TextAlignmentOptions TMPro.TMP_LineInfo::alignment
int32_t ___alignment_18;
// TMPro.Extents TMPro.TMP_LineInfo::lineExtents
Extents_tB63A1FF929CAEBC8E097EF426A8B6F91442B0EA3 ___lineExtents_19;
public:
inline static int32_t get_offset_of_controlCharacterCount_0() { return static_cast<int32_t>(offsetof(TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442, ___controlCharacterCount_0)); }
inline int32_t get_controlCharacterCount_0() const { return ___controlCharacterCount_0; }
inline int32_t* get_address_of_controlCharacterCount_0() { return &___controlCharacterCount_0; }
inline void set_controlCharacterCount_0(int32_t value)
{
___controlCharacterCount_0 = value;
}
inline static int32_t get_offset_of_characterCount_1() { return static_cast<int32_t>(offsetof(TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442, ___characterCount_1)); }
inline int32_t get_characterCount_1() const { return ___characterCount_1; }
inline int32_t* get_address_of_characterCount_1() { return &___characterCount_1; }
inline void set_characterCount_1(int32_t value)
{
___characterCount_1 = value;
}
inline static int32_t get_offset_of_visibleCharacterCount_2() { return static_cast<int32_t>(offsetof(TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442, ___visibleCharacterCount_2)); }
inline int32_t get_visibleCharacterCount_2() const { return ___visibleCharacterCount_2; }
inline int32_t* get_address_of_visibleCharacterCount_2() { return &___visibleCharacterCount_2; }
inline void set_visibleCharacterCount_2(int32_t value)
{
___visibleCharacterCount_2 = value;
}
inline static int32_t get_offset_of_spaceCount_3() { return static_cast<int32_t>(offsetof(TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442, ___spaceCount_3)); }
inline int32_t get_spaceCount_3() const { return ___spaceCount_3; }
inline int32_t* get_address_of_spaceCount_3() { return &___spaceCount_3; }
inline void set_spaceCount_3(int32_t value)
{
___spaceCount_3 = value;
}
inline static int32_t get_offset_of_wordCount_4() { return static_cast<int32_t>(offsetof(TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442, ___wordCount_4)); }
inline int32_t get_wordCount_4() const { return ___wordCount_4; }
inline int32_t* get_address_of_wordCount_4() { return &___wordCount_4; }
inline void set_wordCount_4(int32_t value)
{
___wordCount_4 = value;
}
inline static int32_t get_offset_of_firstCharacterIndex_5() { return static_cast<int32_t>(offsetof(TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442, ___firstCharacterIndex_5)); }
inline int32_t get_firstCharacterIndex_5() const { return ___firstCharacterIndex_5; }
inline int32_t* get_address_of_firstCharacterIndex_5() { return &___firstCharacterIndex_5; }
inline void set_firstCharacterIndex_5(int32_t value)
{
___firstCharacterIndex_5 = value;
}
inline static int32_t get_offset_of_firstVisibleCharacterIndex_6() { return static_cast<int32_t>(offsetof(TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442, ___firstVisibleCharacterIndex_6)); }
inline int32_t get_firstVisibleCharacterIndex_6() const { return ___firstVisibleCharacterIndex_6; }
inline int32_t* get_address_of_firstVisibleCharacterIndex_6() { return &___firstVisibleCharacterIndex_6; }
inline void set_firstVisibleCharacterIndex_6(int32_t value)
{
___firstVisibleCharacterIndex_6 = value;
}
inline static int32_t get_offset_of_lastCharacterIndex_7() { return static_cast<int32_t>(offsetof(TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442, ___lastCharacterIndex_7)); }
inline int32_t get_lastCharacterIndex_7() const { return ___lastCharacterIndex_7; }
inline int32_t* get_address_of_lastCharacterIndex_7() { return &___lastCharacterIndex_7; }
inline void set_lastCharacterIndex_7(int32_t value)
{
___lastCharacterIndex_7 = value;
}
inline static int32_t get_offset_of_lastVisibleCharacterIndex_8() { return static_cast<int32_t>(offsetof(TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442, ___lastVisibleCharacterIndex_8)); }
inline int32_t get_lastVisibleCharacterIndex_8() const { return ___lastVisibleCharacterIndex_8; }
inline int32_t* get_address_of_lastVisibleCharacterIndex_8() { return &___lastVisibleCharacterIndex_8; }
inline void set_lastVisibleCharacterIndex_8(int32_t value)
{
___lastVisibleCharacterIndex_8 = value;
}
inline static int32_t get_offset_of_length_9() { return static_cast<int32_t>(offsetof(TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442, ___length_9)); }
inline float get_length_9() const { return ___length_9; }
inline float* get_address_of_length_9() { return &___length_9; }
inline void set_length_9(float value)
{
___length_9 = value;
}
inline static int32_t get_offset_of_lineHeight_10() { return static_cast<int32_t>(offsetof(TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442, ___lineHeight_10)); }
inline float get_lineHeight_10() const { return ___lineHeight_10; }
inline float* get_address_of_lineHeight_10() { return &___lineHeight_10; }
inline void set_lineHeight_10(float value)
{
___lineHeight_10 = value;
}
inline static int32_t get_offset_of_ascender_11() { return static_cast<int32_t>(offsetof(TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442, ___ascender_11)); }
inline float get_ascender_11() const { return ___ascender_11; }
inline float* get_address_of_ascender_11() { return &___ascender_11; }
inline void set_ascender_11(float value)
{
___ascender_11 = value;
}
inline static int32_t get_offset_of_baseline_12() { return static_cast<int32_t>(offsetof(TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442, ___baseline_12)); }
inline float get_baseline_12() const { return ___baseline_12; }
inline float* get_address_of_baseline_12() { return &___baseline_12; }
inline void set_baseline_12(float value)
{
___baseline_12 = value;
}
inline static int32_t get_offset_of_descender_13() { return static_cast<int32_t>(offsetof(TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442, ___descender_13)); }
inline float get_descender_13() const { return ___descender_13; }
inline float* get_address_of_descender_13() { return &___descender_13; }
inline void set_descender_13(float value)
{
___descender_13 = value;
}
inline static int32_t get_offset_of_maxAdvance_14() { return static_cast<int32_t>(offsetof(TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442, ___maxAdvance_14)); }
inline float get_maxAdvance_14() const { return ___maxAdvance_14; }
inline float* get_address_of_maxAdvance_14() { return &___maxAdvance_14; }
inline void set_maxAdvance_14(float value)
{
___maxAdvance_14 = value;
}
inline static int32_t get_offset_of_width_15() { return static_cast<int32_t>(offsetof(TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442, ___width_15)); }
inline float get_width_15() const { return ___width_15; }
inline float* get_address_of_width_15() { return &___width_15; }
inline void set_width_15(float value)
{
___width_15 = value;
}
inline static int32_t get_offset_of_marginLeft_16() { return static_cast<int32_t>(offsetof(TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442, ___marginLeft_16)); }
inline float get_marginLeft_16() const { return ___marginLeft_16; }
inline float* get_address_of_marginLeft_16() { return &___marginLeft_16; }
inline void set_marginLeft_16(float value)
{
___marginLeft_16 = value;
}
inline static int32_t get_offset_of_marginRight_17() { return static_cast<int32_t>(offsetof(TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442, ___marginRight_17)); }
inline float get_marginRight_17() const { return ___marginRight_17; }
inline float* get_address_of_marginRight_17() { return &___marginRight_17; }
inline void set_marginRight_17(float value)
{
___marginRight_17 = value;
}
inline static int32_t get_offset_of_alignment_18() { return static_cast<int32_t>(offsetof(TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442, ___alignment_18)); }
inline int32_t get_alignment_18() const { return ___alignment_18; }
inline int32_t* get_address_of_alignment_18() { return &___alignment_18; }
inline void set_alignment_18(int32_t value)
{
___alignment_18 = value;
}
inline static int32_t get_offset_of_lineExtents_19() { return static_cast<int32_t>(offsetof(TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442, ___lineExtents_19)); }
inline Extents_tB63A1FF929CAEBC8E097EF426A8B6F91442B0EA3 get_lineExtents_19() const { return ___lineExtents_19; }
inline Extents_tB63A1FF929CAEBC8E097EF426A8B6F91442B0EA3 * get_address_of_lineExtents_19() { return &___lineExtents_19; }
inline void set_lineExtents_19(Extents_tB63A1FF929CAEBC8E097EF426A8B6F91442B0EA3 value)
{
___lineExtents_19 = value;
}
};
// TMPro.TMP_RichTextTagStack`1<TMPro.FontWeight>
struct TMP_RichTextTagStack_1_t9B6C6D23490A525AEA83F4301C7523574055098B
{
public:
// T[] TMPro.TMP_RichTextTagStack`1::m_ItemStack
FontWeightU5BU5D_t7A186E8DAEB072A355A6CCC80B3FFD219E538446* ___m_ItemStack_0;
// System.Int32 TMPro.TMP_RichTextTagStack`1::m_Index
int32_t ___m_Index_1;
// System.Int32 TMPro.TMP_RichTextTagStack`1::m_Capacity
int32_t ___m_Capacity_2;
// T TMPro.TMP_RichTextTagStack`1::m_DefaultItem
int32_t ___m_DefaultItem_3;
public:
inline static int32_t get_offset_of_m_ItemStack_0() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_t9B6C6D23490A525AEA83F4301C7523574055098B, ___m_ItemStack_0)); }
inline FontWeightU5BU5D_t7A186E8DAEB072A355A6CCC80B3FFD219E538446* get_m_ItemStack_0() const { return ___m_ItemStack_0; }
inline FontWeightU5BU5D_t7A186E8DAEB072A355A6CCC80B3FFD219E538446** get_address_of_m_ItemStack_0() { return &___m_ItemStack_0; }
inline void set_m_ItemStack_0(FontWeightU5BU5D_t7A186E8DAEB072A355A6CCC80B3FFD219E538446* value)
{
___m_ItemStack_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_ItemStack_0), (void*)value);
}
inline static int32_t get_offset_of_m_Index_1() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_t9B6C6D23490A525AEA83F4301C7523574055098B, ___m_Index_1)); }
inline int32_t get_m_Index_1() const { return ___m_Index_1; }
inline int32_t* get_address_of_m_Index_1() { return &___m_Index_1; }
inline void set_m_Index_1(int32_t value)
{
___m_Index_1 = value;
}
inline static int32_t get_offset_of_m_Capacity_2() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_t9B6C6D23490A525AEA83F4301C7523574055098B, ___m_Capacity_2)); }
inline int32_t get_m_Capacity_2() const { return ___m_Capacity_2; }
inline int32_t* get_address_of_m_Capacity_2() { return &___m_Capacity_2; }
inline void set_m_Capacity_2(int32_t value)
{
___m_Capacity_2 = value;
}
inline static int32_t get_offset_of_m_DefaultItem_3() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_t9B6C6D23490A525AEA83F4301C7523574055098B, ___m_DefaultItem_3)); }
inline int32_t get_m_DefaultItem_3() const { return ___m_DefaultItem_3; }
inline int32_t* get_address_of_m_DefaultItem_3() { return &___m_DefaultItem_3; }
inline void set_m_DefaultItem_3(int32_t value)
{
___m_DefaultItem_3 = value;
}
};
// TMPro.TMP_RichTextTagStack`1<TMPro.TextAlignmentOptions>
struct TMP_RichTextTagStack_1_t435AA844A7DBDA7E54BCDA3C53622D4B28952115
{
public:
// T[] TMPro.TMP_RichTextTagStack`1::m_ItemStack
TextAlignmentOptionsU5BU5D_t4AE8FA5E3D695ED64EBBCFBAF8C780A0EB0BD33B* ___m_ItemStack_0;
// System.Int32 TMPro.TMP_RichTextTagStack`1::m_Index
int32_t ___m_Index_1;
// System.Int32 TMPro.TMP_RichTextTagStack`1::m_Capacity
int32_t ___m_Capacity_2;
// T TMPro.TMP_RichTextTagStack`1::m_DefaultItem
int32_t ___m_DefaultItem_3;
public:
inline static int32_t get_offset_of_m_ItemStack_0() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_t435AA844A7DBDA7E54BCDA3C53622D4B28952115, ___m_ItemStack_0)); }
inline TextAlignmentOptionsU5BU5D_t4AE8FA5E3D695ED64EBBCFBAF8C780A0EB0BD33B* get_m_ItemStack_0() const { return ___m_ItemStack_0; }
inline TextAlignmentOptionsU5BU5D_t4AE8FA5E3D695ED64EBBCFBAF8C780A0EB0BD33B** get_address_of_m_ItemStack_0() { return &___m_ItemStack_0; }
inline void set_m_ItemStack_0(TextAlignmentOptionsU5BU5D_t4AE8FA5E3D695ED64EBBCFBAF8C780A0EB0BD33B* value)
{
___m_ItemStack_0 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_ItemStack_0), (void*)value);
}
inline static int32_t get_offset_of_m_Index_1() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_t435AA844A7DBDA7E54BCDA3C53622D4B28952115, ___m_Index_1)); }
inline int32_t get_m_Index_1() const { return ___m_Index_1; }
inline int32_t* get_address_of_m_Index_1() { return &___m_Index_1; }
inline void set_m_Index_1(int32_t value)
{
___m_Index_1 = value;
}
inline static int32_t get_offset_of_m_Capacity_2() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_t435AA844A7DBDA7E54BCDA3C53622D4B28952115, ___m_Capacity_2)); }
inline int32_t get_m_Capacity_2() const { return ___m_Capacity_2; }
inline int32_t* get_address_of_m_Capacity_2() { return &___m_Capacity_2; }
inline void set_m_Capacity_2(int32_t value)
{
___m_Capacity_2 = value;
}
inline static int32_t get_offset_of_m_DefaultItem_3() { return static_cast<int32_t>(offsetof(TMP_RichTextTagStack_1_t435AA844A7DBDA7E54BCDA3C53622D4B28952115, ___m_DefaultItem_3)); }
inline int32_t get_m_DefaultItem_3() const { return ___m_DefaultItem_3; }
inline int32_t* get_address_of_m_DefaultItem_3() { return &___m_DefaultItem_3; }
inline void set_m_DefaultItem_3(int32_t value)
{
___m_DefaultItem_3 = value;
}
};
// UnityEngine.Component
struct Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621 : public Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0
{
public:
public:
};
// UnityEngine.GameObject
struct GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F : public Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0
{
public:
public:
};
// UnityEngine.UI.Navigation
struct Navigation_t761250C05C09773B75F5E0D52DDCBBFE60288A07
{
public:
// UnityEngine.UI.Navigation_Mode UnityEngine.UI.Navigation::m_Mode
int32_t ___m_Mode_0;
// UnityEngine.UI.Selectable UnityEngine.UI.Navigation::m_SelectOnUp
Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A * ___m_SelectOnUp_1;
// UnityEngine.UI.Selectable UnityEngine.UI.Navigation::m_SelectOnDown
Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A * ___m_SelectOnDown_2;
// UnityEngine.UI.Selectable UnityEngine.UI.Navigation::m_SelectOnLeft
Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A * ___m_SelectOnLeft_3;
// UnityEngine.UI.Selectable UnityEngine.UI.Navigation::m_SelectOnRight
Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A * ___m_SelectOnRight_4;
public:
inline static int32_t get_offset_of_m_Mode_0() { return static_cast<int32_t>(offsetof(Navigation_t761250C05C09773B75F5E0D52DDCBBFE60288A07, ___m_Mode_0)); }
inline int32_t get_m_Mode_0() const { return ___m_Mode_0; }
inline int32_t* get_address_of_m_Mode_0() { return &___m_Mode_0; }
inline void set_m_Mode_0(int32_t value)
{
___m_Mode_0 = value;
}
inline static int32_t get_offset_of_m_SelectOnUp_1() { return static_cast<int32_t>(offsetof(Navigation_t761250C05C09773B75F5E0D52DDCBBFE60288A07, ___m_SelectOnUp_1)); }
inline Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A * get_m_SelectOnUp_1() const { return ___m_SelectOnUp_1; }
inline Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A ** get_address_of_m_SelectOnUp_1() { return &___m_SelectOnUp_1; }
inline void set_m_SelectOnUp_1(Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A * value)
{
___m_SelectOnUp_1 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_SelectOnUp_1), (void*)value);
}
inline static int32_t get_offset_of_m_SelectOnDown_2() { return static_cast<int32_t>(offsetof(Navigation_t761250C05C09773B75F5E0D52DDCBBFE60288A07, ___m_SelectOnDown_2)); }
inline Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A * get_m_SelectOnDown_2() const { return ___m_SelectOnDown_2; }
inline Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A ** get_address_of_m_SelectOnDown_2() { return &___m_SelectOnDown_2; }
inline void set_m_SelectOnDown_2(Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A * value)
{
___m_SelectOnDown_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_SelectOnDown_2), (void*)value);
}
inline static int32_t get_offset_of_m_SelectOnLeft_3() { return static_cast<int32_t>(offsetof(Navigation_t761250C05C09773B75F5E0D52DDCBBFE60288A07, ___m_SelectOnLeft_3)); }
inline Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A * get_m_SelectOnLeft_3() const { return ___m_SelectOnLeft_3; }
inline Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A ** get_address_of_m_SelectOnLeft_3() { return &___m_SelectOnLeft_3; }
inline void set_m_SelectOnLeft_3(Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A * value)
{
___m_SelectOnLeft_3 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_SelectOnLeft_3), (void*)value);
}
inline static int32_t get_offset_of_m_SelectOnRight_4() { return static_cast<int32_t>(offsetof(Navigation_t761250C05C09773B75F5E0D52DDCBBFE60288A07, ___m_SelectOnRight_4)); }
inline Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A * get_m_SelectOnRight_4() const { return ___m_SelectOnRight_4; }
inline Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A ** get_address_of_m_SelectOnRight_4() { return &___m_SelectOnRight_4; }
inline void set_m_SelectOnRight_4(Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A * value)
{
___m_SelectOnRight_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_SelectOnRight_4), (void*)value);
}
};
// Native definition for P/Invoke marshalling of UnityEngine.UI.Navigation
struct Navigation_t761250C05C09773B75F5E0D52DDCBBFE60288A07_marshaled_pinvoke
{
int32_t ___m_Mode_0;
Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A * ___m_SelectOnUp_1;
Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A * ___m_SelectOnDown_2;
Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A * ___m_SelectOnLeft_3;
Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A * ___m_SelectOnRight_4;
};
// Native definition for COM marshalling of UnityEngine.UI.Navigation
struct Navigation_t761250C05C09773B75F5E0D52DDCBBFE60288A07_marshaled_com
{
int32_t ___m_Mode_0;
Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A * ___m_SelectOnUp_1;
Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A * ___m_SelectOnDown_2;
Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A * ___m_SelectOnLeft_3;
Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A * ___m_SelectOnRight_4;
};
// UnityEngine.XR.ARSubsystems.XRRaycastHit
struct XRRaycastHit_t2DE122E601B75E2070D4A542A13E2486DEE60E82
{
public:
// UnityEngine.XR.ARSubsystems.TrackableId UnityEngine.XR.ARSubsystems.XRRaycastHit::m_TrackableId
TrackableId_tA7E19AFE62176E25E3759548887E9068E1E4AE47 ___m_TrackableId_0;
// UnityEngine.Pose UnityEngine.XR.ARSubsystems.XRRaycastHit::m_Pose
Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 ___m_Pose_1;
// System.Single UnityEngine.XR.ARSubsystems.XRRaycastHit::m_Distance
float ___m_Distance_2;
// UnityEngine.XR.ARSubsystems.TrackableType UnityEngine.XR.ARSubsystems.XRRaycastHit::m_HitType
int32_t ___m_HitType_3;
public:
inline static int32_t get_offset_of_m_TrackableId_0() { return static_cast<int32_t>(offsetof(XRRaycastHit_t2DE122E601B75E2070D4A542A13E2486DEE60E82, ___m_TrackableId_0)); }
inline TrackableId_tA7E19AFE62176E25E3759548887E9068E1E4AE47 get_m_TrackableId_0() const { return ___m_TrackableId_0; }
inline TrackableId_tA7E19AFE62176E25E3759548887E9068E1E4AE47 * get_address_of_m_TrackableId_0() { return &___m_TrackableId_0; }
inline void set_m_TrackableId_0(TrackableId_tA7E19AFE62176E25E3759548887E9068E1E4AE47 value)
{
___m_TrackableId_0 = value;
}
inline static int32_t get_offset_of_m_Pose_1() { return static_cast<int32_t>(offsetof(XRRaycastHit_t2DE122E601B75E2070D4A542A13E2486DEE60E82, ___m_Pose_1)); }
inline Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 get_m_Pose_1() const { return ___m_Pose_1; }
inline Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 * get_address_of_m_Pose_1() { return &___m_Pose_1; }
inline void set_m_Pose_1(Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 value)
{
___m_Pose_1 = value;
}
inline static int32_t get_offset_of_m_Distance_2() { return static_cast<int32_t>(offsetof(XRRaycastHit_t2DE122E601B75E2070D4A542A13E2486DEE60E82, ___m_Distance_2)); }
inline float get_m_Distance_2() const { return ___m_Distance_2; }
inline float* get_address_of_m_Distance_2() { return &___m_Distance_2; }
inline void set_m_Distance_2(float value)
{
___m_Distance_2 = value;
}
inline static int32_t get_offset_of_m_HitType_3() { return static_cast<int32_t>(offsetof(XRRaycastHit_t2DE122E601B75E2070D4A542A13E2486DEE60E82, ___m_HitType_3)); }
inline int32_t get_m_HitType_3() const { return ___m_HitType_3; }
inline int32_t* get_address_of_m_HitType_3() { return &___m_HitType_3; }
inline void set_m_HitType_3(int32_t value)
{
___m_HitType_3 = value;
}
};
// System.NullReferenceException
struct NullReferenceException_t204B194BC4DDA3259AF5A8633EA248AE5977ABDC : public SystemException_t5380468142AA850BE4A341D7AF3EAB9C78746782
{
public:
public:
};
// TMPro.WordWrapState
struct WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557
{
public:
// System.Int32 TMPro.WordWrapState::previous_WordBreak
int32_t ___previous_WordBreak_0;
// System.Int32 TMPro.WordWrapState::total_CharacterCount
int32_t ___total_CharacterCount_1;
// System.Int32 TMPro.WordWrapState::visible_CharacterCount
int32_t ___visible_CharacterCount_2;
// System.Int32 TMPro.WordWrapState::visible_SpriteCount
int32_t ___visible_SpriteCount_3;
// System.Int32 TMPro.WordWrapState::visible_LinkCount
int32_t ___visible_LinkCount_4;
// System.Int32 TMPro.WordWrapState::firstCharacterIndex
int32_t ___firstCharacterIndex_5;
// System.Int32 TMPro.WordWrapState::firstVisibleCharacterIndex
int32_t ___firstVisibleCharacterIndex_6;
// System.Int32 TMPro.WordWrapState::lastCharacterIndex
int32_t ___lastCharacterIndex_7;
// System.Int32 TMPro.WordWrapState::lastVisibleCharIndex
int32_t ___lastVisibleCharIndex_8;
// System.Int32 TMPro.WordWrapState::lineNumber
int32_t ___lineNumber_9;
// System.Single TMPro.WordWrapState::maxCapHeight
float ___maxCapHeight_10;
// System.Single TMPro.WordWrapState::maxAscender
float ___maxAscender_11;
// System.Single TMPro.WordWrapState::maxDescender
float ___maxDescender_12;
// System.Single TMPro.WordWrapState::maxLineAscender
float ___maxLineAscender_13;
// System.Single TMPro.WordWrapState::maxLineDescender
float ___maxLineDescender_14;
// System.Single TMPro.WordWrapState::previousLineAscender
float ___previousLineAscender_15;
// System.Single TMPro.WordWrapState::xAdvance
float ___xAdvance_16;
// System.Single TMPro.WordWrapState::preferredWidth
float ___preferredWidth_17;
// System.Single TMPro.WordWrapState::preferredHeight
float ___preferredHeight_18;
// System.Single TMPro.WordWrapState::previousLineScale
float ___previousLineScale_19;
// System.Int32 TMPro.WordWrapState::wordCount
int32_t ___wordCount_20;
// TMPro.FontStyles TMPro.WordWrapState::fontStyle
int32_t ___fontStyle_21;
// System.Single TMPro.WordWrapState::fontScale
float ___fontScale_22;
// System.Single TMPro.WordWrapState::fontScaleMultiplier
float ___fontScaleMultiplier_23;
// System.Single TMPro.WordWrapState::currentFontSize
float ___currentFontSize_24;
// System.Single TMPro.WordWrapState::baselineOffset
float ___baselineOffset_25;
// System.Single TMPro.WordWrapState::lineOffset
float ___lineOffset_26;
// TMPro.TMP_TextInfo TMPro.WordWrapState::textInfo
TMP_TextInfo_tC40DAAB47C5BD5AD21B3F456D860474D96D9C181 * ___textInfo_27;
// TMPro.TMP_LineInfo TMPro.WordWrapState::lineInfo
TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442 ___lineInfo_28;
// UnityEngine.Color32 TMPro.WordWrapState::vertexColor
Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 ___vertexColor_29;
// UnityEngine.Color32 TMPro.WordWrapState::underlineColor
Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 ___underlineColor_30;
// UnityEngine.Color32 TMPro.WordWrapState::strikethroughColor
Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 ___strikethroughColor_31;
// UnityEngine.Color32 TMPro.WordWrapState::highlightColor
Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 ___highlightColor_32;
// TMPro.TMP_FontStyleStack TMPro.WordWrapState::basicStyleStack
TMP_FontStyleStack_tC7146DA5AD4540B2C8733862D785AD50AD229E84 ___basicStyleStack_33;
// TMPro.TMP_RichTextTagStack`1<UnityEngine.Color32> TMPro.WordWrapState::colorStack
TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 ___colorStack_34;
// TMPro.TMP_RichTextTagStack`1<UnityEngine.Color32> TMPro.WordWrapState::underlineColorStack
TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 ___underlineColorStack_35;
// TMPro.TMP_RichTextTagStack`1<UnityEngine.Color32> TMPro.WordWrapState::strikethroughColorStack
TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 ___strikethroughColorStack_36;
// TMPro.TMP_RichTextTagStack`1<UnityEngine.Color32> TMPro.WordWrapState::highlightColorStack
TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 ___highlightColorStack_37;
// TMPro.TMP_RichTextTagStack`1<TMPro.TMP_ColorGradient> TMPro.WordWrapState::colorGradientStack
TMP_RichTextTagStack_1_tF73231072FB2CD9EBFCAF3C4D7E41E2221B9ED1D ___colorGradientStack_38;
// TMPro.TMP_RichTextTagStack`1<System.Single> TMPro.WordWrapState::sizeStack
TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 ___sizeStack_39;
// TMPro.TMP_RichTextTagStack`1<System.Single> TMPro.WordWrapState::indentStack
TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 ___indentStack_40;
// TMPro.TMP_RichTextTagStack`1<TMPro.FontWeight> TMPro.WordWrapState::fontWeightStack
TMP_RichTextTagStack_1_t9B6C6D23490A525AEA83F4301C7523574055098B ___fontWeightStack_41;
// TMPro.TMP_RichTextTagStack`1<System.Int32> TMPro.WordWrapState::styleStack
TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293 ___styleStack_42;
// TMPro.TMP_RichTextTagStack`1<System.Single> TMPro.WordWrapState::baselineStack
TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 ___baselineStack_43;
// TMPro.TMP_RichTextTagStack`1<System.Int32> TMPro.WordWrapState::actionStack
TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293 ___actionStack_44;
// TMPro.TMP_RichTextTagStack`1<TMPro.MaterialReference> TMPro.WordWrapState::materialReferenceStack
TMP_RichTextTagStack_1_t9742B1BC2B58D513502935F599F4AF09FFC379A9 ___materialReferenceStack_45;
// TMPro.TMP_RichTextTagStack`1<TMPro.TextAlignmentOptions> TMPro.WordWrapState::lineJustificationStack
TMP_RichTextTagStack_1_t435AA844A7DBDA7E54BCDA3C53622D4B28952115 ___lineJustificationStack_46;
// System.Int32 TMPro.WordWrapState::spriteAnimationID
int32_t ___spriteAnimationID_47;
// TMPro.TMP_FontAsset TMPro.WordWrapState::currentFontAsset
TMP_FontAsset_t44D2006105B39FB33AE5A0ADF07A7EF36C72385C * ___currentFontAsset_48;
// TMPro.TMP_SpriteAsset TMPro.WordWrapState::currentSpriteAsset
TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 * ___currentSpriteAsset_49;
// UnityEngine.Material TMPro.WordWrapState::currentMaterial
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___currentMaterial_50;
// System.Int32 TMPro.WordWrapState::currentMaterialIndex
int32_t ___currentMaterialIndex_51;
// TMPro.Extents TMPro.WordWrapState::meshExtents
Extents_tB63A1FF929CAEBC8E097EF426A8B6F91442B0EA3 ___meshExtents_52;
// System.Boolean TMPro.WordWrapState::tagNoParsing
bool ___tagNoParsing_53;
// System.Boolean TMPro.WordWrapState::isNonBreakingSpace
bool ___isNonBreakingSpace_54;
public:
inline static int32_t get_offset_of_previous_WordBreak_0() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___previous_WordBreak_0)); }
inline int32_t get_previous_WordBreak_0() const { return ___previous_WordBreak_0; }
inline int32_t* get_address_of_previous_WordBreak_0() { return &___previous_WordBreak_0; }
inline void set_previous_WordBreak_0(int32_t value)
{
___previous_WordBreak_0 = value;
}
inline static int32_t get_offset_of_total_CharacterCount_1() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___total_CharacterCount_1)); }
inline int32_t get_total_CharacterCount_1() const { return ___total_CharacterCount_1; }
inline int32_t* get_address_of_total_CharacterCount_1() { return &___total_CharacterCount_1; }
inline void set_total_CharacterCount_1(int32_t value)
{
___total_CharacterCount_1 = value;
}
inline static int32_t get_offset_of_visible_CharacterCount_2() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___visible_CharacterCount_2)); }
inline int32_t get_visible_CharacterCount_2() const { return ___visible_CharacterCount_2; }
inline int32_t* get_address_of_visible_CharacterCount_2() { return &___visible_CharacterCount_2; }
inline void set_visible_CharacterCount_2(int32_t value)
{
___visible_CharacterCount_2 = value;
}
inline static int32_t get_offset_of_visible_SpriteCount_3() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___visible_SpriteCount_3)); }
inline int32_t get_visible_SpriteCount_3() const { return ___visible_SpriteCount_3; }
inline int32_t* get_address_of_visible_SpriteCount_3() { return &___visible_SpriteCount_3; }
inline void set_visible_SpriteCount_3(int32_t value)
{
___visible_SpriteCount_3 = value;
}
inline static int32_t get_offset_of_visible_LinkCount_4() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___visible_LinkCount_4)); }
inline int32_t get_visible_LinkCount_4() const { return ___visible_LinkCount_4; }
inline int32_t* get_address_of_visible_LinkCount_4() { return &___visible_LinkCount_4; }
inline void set_visible_LinkCount_4(int32_t value)
{
___visible_LinkCount_4 = value;
}
inline static int32_t get_offset_of_firstCharacterIndex_5() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___firstCharacterIndex_5)); }
inline int32_t get_firstCharacterIndex_5() const { return ___firstCharacterIndex_5; }
inline int32_t* get_address_of_firstCharacterIndex_5() { return &___firstCharacterIndex_5; }
inline void set_firstCharacterIndex_5(int32_t value)
{
___firstCharacterIndex_5 = value;
}
inline static int32_t get_offset_of_firstVisibleCharacterIndex_6() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___firstVisibleCharacterIndex_6)); }
inline int32_t get_firstVisibleCharacterIndex_6() const { return ___firstVisibleCharacterIndex_6; }
inline int32_t* get_address_of_firstVisibleCharacterIndex_6() { return &___firstVisibleCharacterIndex_6; }
inline void set_firstVisibleCharacterIndex_6(int32_t value)
{
___firstVisibleCharacterIndex_6 = value;
}
inline static int32_t get_offset_of_lastCharacterIndex_7() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___lastCharacterIndex_7)); }
inline int32_t get_lastCharacterIndex_7() const { return ___lastCharacterIndex_7; }
inline int32_t* get_address_of_lastCharacterIndex_7() { return &___lastCharacterIndex_7; }
inline void set_lastCharacterIndex_7(int32_t value)
{
___lastCharacterIndex_7 = value;
}
inline static int32_t get_offset_of_lastVisibleCharIndex_8() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___lastVisibleCharIndex_8)); }
inline int32_t get_lastVisibleCharIndex_8() const { return ___lastVisibleCharIndex_8; }
inline int32_t* get_address_of_lastVisibleCharIndex_8() { return &___lastVisibleCharIndex_8; }
inline void set_lastVisibleCharIndex_8(int32_t value)
{
___lastVisibleCharIndex_8 = value;
}
inline static int32_t get_offset_of_lineNumber_9() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___lineNumber_9)); }
inline int32_t get_lineNumber_9() const { return ___lineNumber_9; }
inline int32_t* get_address_of_lineNumber_9() { return &___lineNumber_9; }
inline void set_lineNumber_9(int32_t value)
{
___lineNumber_9 = value;
}
inline static int32_t get_offset_of_maxCapHeight_10() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___maxCapHeight_10)); }
inline float get_maxCapHeight_10() const { return ___maxCapHeight_10; }
inline float* get_address_of_maxCapHeight_10() { return &___maxCapHeight_10; }
inline void set_maxCapHeight_10(float value)
{
___maxCapHeight_10 = value;
}
inline static int32_t get_offset_of_maxAscender_11() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___maxAscender_11)); }
inline float get_maxAscender_11() const { return ___maxAscender_11; }
inline float* get_address_of_maxAscender_11() { return &___maxAscender_11; }
inline void set_maxAscender_11(float value)
{
___maxAscender_11 = value;
}
inline static int32_t get_offset_of_maxDescender_12() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___maxDescender_12)); }
inline float get_maxDescender_12() const { return ___maxDescender_12; }
inline float* get_address_of_maxDescender_12() { return &___maxDescender_12; }
inline void set_maxDescender_12(float value)
{
___maxDescender_12 = value;
}
inline static int32_t get_offset_of_maxLineAscender_13() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___maxLineAscender_13)); }
inline float get_maxLineAscender_13() const { return ___maxLineAscender_13; }
inline float* get_address_of_maxLineAscender_13() { return &___maxLineAscender_13; }
inline void set_maxLineAscender_13(float value)
{
___maxLineAscender_13 = value;
}
inline static int32_t get_offset_of_maxLineDescender_14() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___maxLineDescender_14)); }
inline float get_maxLineDescender_14() const { return ___maxLineDescender_14; }
inline float* get_address_of_maxLineDescender_14() { return &___maxLineDescender_14; }
inline void set_maxLineDescender_14(float value)
{
___maxLineDescender_14 = value;
}
inline static int32_t get_offset_of_previousLineAscender_15() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___previousLineAscender_15)); }
inline float get_previousLineAscender_15() const { return ___previousLineAscender_15; }
inline float* get_address_of_previousLineAscender_15() { return &___previousLineAscender_15; }
inline void set_previousLineAscender_15(float value)
{
___previousLineAscender_15 = value;
}
inline static int32_t get_offset_of_xAdvance_16() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___xAdvance_16)); }
inline float get_xAdvance_16() const { return ___xAdvance_16; }
inline float* get_address_of_xAdvance_16() { return &___xAdvance_16; }
inline void set_xAdvance_16(float value)
{
___xAdvance_16 = value;
}
inline static int32_t get_offset_of_preferredWidth_17() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___preferredWidth_17)); }
inline float get_preferredWidth_17() const { return ___preferredWidth_17; }
inline float* get_address_of_preferredWidth_17() { return &___preferredWidth_17; }
inline void set_preferredWidth_17(float value)
{
___preferredWidth_17 = value;
}
inline static int32_t get_offset_of_preferredHeight_18() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___preferredHeight_18)); }
inline float get_preferredHeight_18() const { return ___preferredHeight_18; }
inline float* get_address_of_preferredHeight_18() { return &___preferredHeight_18; }
inline void set_preferredHeight_18(float value)
{
___preferredHeight_18 = value;
}
inline static int32_t get_offset_of_previousLineScale_19() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___previousLineScale_19)); }
inline float get_previousLineScale_19() const { return ___previousLineScale_19; }
inline float* get_address_of_previousLineScale_19() { return &___previousLineScale_19; }
inline void set_previousLineScale_19(float value)
{
___previousLineScale_19 = value;
}
inline static int32_t get_offset_of_wordCount_20() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___wordCount_20)); }
inline int32_t get_wordCount_20() const { return ___wordCount_20; }
inline int32_t* get_address_of_wordCount_20() { return &___wordCount_20; }
inline void set_wordCount_20(int32_t value)
{
___wordCount_20 = value;
}
inline static int32_t get_offset_of_fontStyle_21() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___fontStyle_21)); }
inline int32_t get_fontStyle_21() const { return ___fontStyle_21; }
inline int32_t* get_address_of_fontStyle_21() { return &___fontStyle_21; }
inline void set_fontStyle_21(int32_t value)
{
___fontStyle_21 = value;
}
inline static int32_t get_offset_of_fontScale_22() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___fontScale_22)); }
inline float get_fontScale_22() const { return ___fontScale_22; }
inline float* get_address_of_fontScale_22() { return &___fontScale_22; }
inline void set_fontScale_22(float value)
{
___fontScale_22 = value;
}
inline static int32_t get_offset_of_fontScaleMultiplier_23() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___fontScaleMultiplier_23)); }
inline float get_fontScaleMultiplier_23() const { return ___fontScaleMultiplier_23; }
inline float* get_address_of_fontScaleMultiplier_23() { return &___fontScaleMultiplier_23; }
inline void set_fontScaleMultiplier_23(float value)
{
___fontScaleMultiplier_23 = value;
}
inline static int32_t get_offset_of_currentFontSize_24() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___currentFontSize_24)); }
inline float get_currentFontSize_24() const { return ___currentFontSize_24; }
inline float* get_address_of_currentFontSize_24() { return &___currentFontSize_24; }
inline void set_currentFontSize_24(float value)
{
___currentFontSize_24 = value;
}
inline static int32_t get_offset_of_baselineOffset_25() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___baselineOffset_25)); }
inline float get_baselineOffset_25() const { return ___baselineOffset_25; }
inline float* get_address_of_baselineOffset_25() { return &___baselineOffset_25; }
inline void set_baselineOffset_25(float value)
{
___baselineOffset_25 = value;
}
inline static int32_t get_offset_of_lineOffset_26() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___lineOffset_26)); }
inline float get_lineOffset_26() const { return ___lineOffset_26; }
inline float* get_address_of_lineOffset_26() { return &___lineOffset_26; }
inline void set_lineOffset_26(float value)
{
___lineOffset_26 = value;
}
inline static int32_t get_offset_of_textInfo_27() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___textInfo_27)); }
inline TMP_TextInfo_tC40DAAB47C5BD5AD21B3F456D860474D96D9C181 * get_textInfo_27() const { return ___textInfo_27; }
inline TMP_TextInfo_tC40DAAB47C5BD5AD21B3F456D860474D96D9C181 ** get_address_of_textInfo_27() { return &___textInfo_27; }
inline void set_textInfo_27(TMP_TextInfo_tC40DAAB47C5BD5AD21B3F456D860474D96D9C181 * value)
{
___textInfo_27 = value;
Il2CppCodeGenWriteBarrier((void**)(&___textInfo_27), (void*)value);
}
inline static int32_t get_offset_of_lineInfo_28() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___lineInfo_28)); }
inline TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442 get_lineInfo_28() const { return ___lineInfo_28; }
inline TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442 * get_address_of_lineInfo_28() { return &___lineInfo_28; }
inline void set_lineInfo_28(TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442 value)
{
___lineInfo_28 = value;
}
inline static int32_t get_offset_of_vertexColor_29() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___vertexColor_29)); }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 get_vertexColor_29() const { return ___vertexColor_29; }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 * get_address_of_vertexColor_29() { return &___vertexColor_29; }
inline void set_vertexColor_29(Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 value)
{
___vertexColor_29 = value;
}
inline static int32_t get_offset_of_underlineColor_30() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___underlineColor_30)); }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 get_underlineColor_30() const { return ___underlineColor_30; }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 * get_address_of_underlineColor_30() { return &___underlineColor_30; }
inline void set_underlineColor_30(Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 value)
{
___underlineColor_30 = value;
}
inline static int32_t get_offset_of_strikethroughColor_31() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___strikethroughColor_31)); }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 get_strikethroughColor_31() const { return ___strikethroughColor_31; }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 * get_address_of_strikethroughColor_31() { return &___strikethroughColor_31; }
inline void set_strikethroughColor_31(Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 value)
{
___strikethroughColor_31 = value;
}
inline static int32_t get_offset_of_highlightColor_32() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___highlightColor_32)); }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 get_highlightColor_32() const { return ___highlightColor_32; }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 * get_address_of_highlightColor_32() { return &___highlightColor_32; }
inline void set_highlightColor_32(Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 value)
{
___highlightColor_32 = value;
}
inline static int32_t get_offset_of_basicStyleStack_33() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___basicStyleStack_33)); }
inline TMP_FontStyleStack_tC7146DA5AD4540B2C8733862D785AD50AD229E84 get_basicStyleStack_33() const { return ___basicStyleStack_33; }
inline TMP_FontStyleStack_tC7146DA5AD4540B2C8733862D785AD50AD229E84 * get_address_of_basicStyleStack_33() { return &___basicStyleStack_33; }
inline void set_basicStyleStack_33(TMP_FontStyleStack_tC7146DA5AD4540B2C8733862D785AD50AD229E84 value)
{
___basicStyleStack_33 = value;
}
inline static int32_t get_offset_of_colorStack_34() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___colorStack_34)); }
inline TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 get_colorStack_34() const { return ___colorStack_34; }
inline TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 * get_address_of_colorStack_34() { return &___colorStack_34; }
inline void set_colorStack_34(TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 value)
{
___colorStack_34 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___colorStack_34))->___m_ItemStack_0), (void*)NULL);
}
inline static int32_t get_offset_of_underlineColorStack_35() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___underlineColorStack_35)); }
inline TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 get_underlineColorStack_35() const { return ___underlineColorStack_35; }
inline TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 * get_address_of_underlineColorStack_35() { return &___underlineColorStack_35; }
inline void set_underlineColorStack_35(TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 value)
{
___underlineColorStack_35 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___underlineColorStack_35))->___m_ItemStack_0), (void*)NULL);
}
inline static int32_t get_offset_of_strikethroughColorStack_36() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___strikethroughColorStack_36)); }
inline TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 get_strikethroughColorStack_36() const { return ___strikethroughColorStack_36; }
inline TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 * get_address_of_strikethroughColorStack_36() { return &___strikethroughColorStack_36; }
inline void set_strikethroughColorStack_36(TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 value)
{
___strikethroughColorStack_36 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___strikethroughColorStack_36))->___m_ItemStack_0), (void*)NULL);
}
inline static int32_t get_offset_of_highlightColorStack_37() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___highlightColorStack_37)); }
inline TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 get_highlightColorStack_37() const { return ___highlightColorStack_37; }
inline TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 * get_address_of_highlightColorStack_37() { return &___highlightColorStack_37; }
inline void set_highlightColorStack_37(TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 value)
{
___highlightColorStack_37 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___highlightColorStack_37))->___m_ItemStack_0), (void*)NULL);
}
inline static int32_t get_offset_of_colorGradientStack_38() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___colorGradientStack_38)); }
inline TMP_RichTextTagStack_1_tF73231072FB2CD9EBFCAF3C4D7E41E2221B9ED1D get_colorGradientStack_38() const { return ___colorGradientStack_38; }
inline TMP_RichTextTagStack_1_tF73231072FB2CD9EBFCAF3C4D7E41E2221B9ED1D * get_address_of_colorGradientStack_38() { return &___colorGradientStack_38; }
inline void set_colorGradientStack_38(TMP_RichTextTagStack_1_tF73231072FB2CD9EBFCAF3C4D7E41E2221B9ED1D value)
{
___colorGradientStack_38 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___colorGradientStack_38))->___m_ItemStack_0), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___colorGradientStack_38))->___m_DefaultItem_3), (void*)NULL);
#endif
}
inline static int32_t get_offset_of_sizeStack_39() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___sizeStack_39)); }
inline TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 get_sizeStack_39() const { return ___sizeStack_39; }
inline TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 * get_address_of_sizeStack_39() { return &___sizeStack_39; }
inline void set_sizeStack_39(TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 value)
{
___sizeStack_39 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___sizeStack_39))->___m_ItemStack_0), (void*)NULL);
}
inline static int32_t get_offset_of_indentStack_40() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___indentStack_40)); }
inline TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 get_indentStack_40() const { return ___indentStack_40; }
inline TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 * get_address_of_indentStack_40() { return &___indentStack_40; }
inline void set_indentStack_40(TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 value)
{
___indentStack_40 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___indentStack_40))->___m_ItemStack_0), (void*)NULL);
}
inline static int32_t get_offset_of_fontWeightStack_41() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___fontWeightStack_41)); }
inline TMP_RichTextTagStack_1_t9B6C6D23490A525AEA83F4301C7523574055098B get_fontWeightStack_41() const { return ___fontWeightStack_41; }
inline TMP_RichTextTagStack_1_t9B6C6D23490A525AEA83F4301C7523574055098B * get_address_of_fontWeightStack_41() { return &___fontWeightStack_41; }
inline void set_fontWeightStack_41(TMP_RichTextTagStack_1_t9B6C6D23490A525AEA83F4301C7523574055098B value)
{
___fontWeightStack_41 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___fontWeightStack_41))->___m_ItemStack_0), (void*)NULL);
}
inline static int32_t get_offset_of_styleStack_42() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___styleStack_42)); }
inline TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293 get_styleStack_42() const { return ___styleStack_42; }
inline TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293 * get_address_of_styleStack_42() { return &___styleStack_42; }
inline void set_styleStack_42(TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293 value)
{
___styleStack_42 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___styleStack_42))->___m_ItemStack_0), (void*)NULL);
}
inline static int32_t get_offset_of_baselineStack_43() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___baselineStack_43)); }
inline TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 get_baselineStack_43() const { return ___baselineStack_43; }
inline TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 * get_address_of_baselineStack_43() { return &___baselineStack_43; }
inline void set_baselineStack_43(TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 value)
{
___baselineStack_43 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___baselineStack_43))->___m_ItemStack_0), (void*)NULL);
}
inline static int32_t get_offset_of_actionStack_44() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___actionStack_44)); }
inline TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293 get_actionStack_44() const { return ___actionStack_44; }
inline TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293 * get_address_of_actionStack_44() { return &___actionStack_44; }
inline void set_actionStack_44(TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293 value)
{
___actionStack_44 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___actionStack_44))->___m_ItemStack_0), (void*)NULL);
}
inline static int32_t get_offset_of_materialReferenceStack_45() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___materialReferenceStack_45)); }
inline TMP_RichTextTagStack_1_t9742B1BC2B58D513502935F599F4AF09FFC379A9 get_materialReferenceStack_45() const { return ___materialReferenceStack_45; }
inline TMP_RichTextTagStack_1_t9742B1BC2B58D513502935F599F4AF09FFC379A9 * get_address_of_materialReferenceStack_45() { return &___materialReferenceStack_45; }
inline void set_materialReferenceStack_45(TMP_RichTextTagStack_1_t9742B1BC2B58D513502935F599F4AF09FFC379A9 value)
{
___materialReferenceStack_45 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___materialReferenceStack_45))->___m_ItemStack_0), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___materialReferenceStack_45))->___m_DefaultItem_3))->___fontAsset_1), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___materialReferenceStack_45))->___m_DefaultItem_3))->___spriteAsset_2), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___materialReferenceStack_45))->___m_DefaultItem_3))->___material_3), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___materialReferenceStack_45))->___m_DefaultItem_3))->___fallbackMaterial_6), (void*)NULL);
#endif
}
inline static int32_t get_offset_of_lineJustificationStack_46() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___lineJustificationStack_46)); }
inline TMP_RichTextTagStack_1_t435AA844A7DBDA7E54BCDA3C53622D4B28952115 get_lineJustificationStack_46() const { return ___lineJustificationStack_46; }
inline TMP_RichTextTagStack_1_t435AA844A7DBDA7E54BCDA3C53622D4B28952115 * get_address_of_lineJustificationStack_46() { return &___lineJustificationStack_46; }
inline void set_lineJustificationStack_46(TMP_RichTextTagStack_1_t435AA844A7DBDA7E54BCDA3C53622D4B28952115 value)
{
___lineJustificationStack_46 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___lineJustificationStack_46))->___m_ItemStack_0), (void*)NULL);
}
inline static int32_t get_offset_of_spriteAnimationID_47() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___spriteAnimationID_47)); }
inline int32_t get_spriteAnimationID_47() const { return ___spriteAnimationID_47; }
inline int32_t* get_address_of_spriteAnimationID_47() { return &___spriteAnimationID_47; }
inline void set_spriteAnimationID_47(int32_t value)
{
___spriteAnimationID_47 = value;
}
inline static int32_t get_offset_of_currentFontAsset_48() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___currentFontAsset_48)); }
inline TMP_FontAsset_t44D2006105B39FB33AE5A0ADF07A7EF36C72385C * get_currentFontAsset_48() const { return ___currentFontAsset_48; }
inline TMP_FontAsset_t44D2006105B39FB33AE5A0ADF07A7EF36C72385C ** get_address_of_currentFontAsset_48() { return &___currentFontAsset_48; }
inline void set_currentFontAsset_48(TMP_FontAsset_t44D2006105B39FB33AE5A0ADF07A7EF36C72385C * value)
{
___currentFontAsset_48 = value;
Il2CppCodeGenWriteBarrier((void**)(&___currentFontAsset_48), (void*)value);
}
inline static int32_t get_offset_of_currentSpriteAsset_49() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___currentSpriteAsset_49)); }
inline TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 * get_currentSpriteAsset_49() const { return ___currentSpriteAsset_49; }
inline TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 ** get_address_of_currentSpriteAsset_49() { return &___currentSpriteAsset_49; }
inline void set_currentSpriteAsset_49(TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 * value)
{
___currentSpriteAsset_49 = value;
Il2CppCodeGenWriteBarrier((void**)(&___currentSpriteAsset_49), (void*)value);
}
inline static int32_t get_offset_of_currentMaterial_50() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___currentMaterial_50)); }
inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * get_currentMaterial_50() const { return ___currentMaterial_50; }
inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 ** get_address_of_currentMaterial_50() { return &___currentMaterial_50; }
inline void set_currentMaterial_50(Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * value)
{
___currentMaterial_50 = value;
Il2CppCodeGenWriteBarrier((void**)(&___currentMaterial_50), (void*)value);
}
inline static int32_t get_offset_of_currentMaterialIndex_51() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___currentMaterialIndex_51)); }
inline int32_t get_currentMaterialIndex_51() const { return ___currentMaterialIndex_51; }
inline int32_t* get_address_of_currentMaterialIndex_51() { return &___currentMaterialIndex_51; }
inline void set_currentMaterialIndex_51(int32_t value)
{
___currentMaterialIndex_51 = value;
}
inline static int32_t get_offset_of_meshExtents_52() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___meshExtents_52)); }
inline Extents_tB63A1FF929CAEBC8E097EF426A8B6F91442B0EA3 get_meshExtents_52() const { return ___meshExtents_52; }
inline Extents_tB63A1FF929CAEBC8E097EF426A8B6F91442B0EA3 * get_address_of_meshExtents_52() { return &___meshExtents_52; }
inline void set_meshExtents_52(Extents_tB63A1FF929CAEBC8E097EF426A8B6F91442B0EA3 value)
{
___meshExtents_52 = value;
}
inline static int32_t get_offset_of_tagNoParsing_53() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___tagNoParsing_53)); }
inline bool get_tagNoParsing_53() const { return ___tagNoParsing_53; }
inline bool* get_address_of_tagNoParsing_53() { return &___tagNoParsing_53; }
inline void set_tagNoParsing_53(bool value)
{
___tagNoParsing_53 = value;
}
inline static int32_t get_offset_of_isNonBreakingSpace_54() { return static_cast<int32_t>(offsetof(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557, ___isNonBreakingSpace_54)); }
inline bool get_isNonBreakingSpace_54() const { return ___isNonBreakingSpace_54; }
inline bool* get_address_of_isNonBreakingSpace_54() { return &___isNonBreakingSpace_54; }
inline void set_isNonBreakingSpace_54(bool value)
{
___isNonBreakingSpace_54 = value;
}
};
// Native definition for P/Invoke marshalling of TMPro.WordWrapState
struct WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557_marshaled_pinvoke
{
int32_t ___previous_WordBreak_0;
int32_t ___total_CharacterCount_1;
int32_t ___visible_CharacterCount_2;
int32_t ___visible_SpriteCount_3;
int32_t ___visible_LinkCount_4;
int32_t ___firstCharacterIndex_5;
int32_t ___firstVisibleCharacterIndex_6;
int32_t ___lastCharacterIndex_7;
int32_t ___lastVisibleCharIndex_8;
int32_t ___lineNumber_9;
float ___maxCapHeight_10;
float ___maxAscender_11;
float ___maxDescender_12;
float ___maxLineAscender_13;
float ___maxLineDescender_14;
float ___previousLineAscender_15;
float ___xAdvance_16;
float ___preferredWidth_17;
float ___preferredHeight_18;
float ___previousLineScale_19;
int32_t ___wordCount_20;
int32_t ___fontStyle_21;
float ___fontScale_22;
float ___fontScaleMultiplier_23;
float ___currentFontSize_24;
float ___baselineOffset_25;
float ___lineOffset_26;
TMP_TextInfo_tC40DAAB47C5BD5AD21B3F456D860474D96D9C181 * ___textInfo_27;
TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442 ___lineInfo_28;
Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 ___vertexColor_29;
Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 ___underlineColor_30;
Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 ___strikethroughColor_31;
Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 ___highlightColor_32;
TMP_FontStyleStack_tC7146DA5AD4540B2C8733862D785AD50AD229E84 ___basicStyleStack_33;
TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 ___colorStack_34;
TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 ___underlineColorStack_35;
TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 ___strikethroughColorStack_36;
TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 ___highlightColorStack_37;
TMP_RichTextTagStack_1_tF73231072FB2CD9EBFCAF3C4D7E41E2221B9ED1D ___colorGradientStack_38;
TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 ___sizeStack_39;
TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 ___indentStack_40;
TMP_RichTextTagStack_1_t9B6C6D23490A525AEA83F4301C7523574055098B ___fontWeightStack_41;
TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293 ___styleStack_42;
TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 ___baselineStack_43;
TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293 ___actionStack_44;
TMP_RichTextTagStack_1_t9742B1BC2B58D513502935F599F4AF09FFC379A9 ___materialReferenceStack_45;
TMP_RichTextTagStack_1_t435AA844A7DBDA7E54BCDA3C53622D4B28952115 ___lineJustificationStack_46;
int32_t ___spriteAnimationID_47;
TMP_FontAsset_t44D2006105B39FB33AE5A0ADF07A7EF36C72385C * ___currentFontAsset_48;
TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 * ___currentSpriteAsset_49;
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___currentMaterial_50;
int32_t ___currentMaterialIndex_51;
Extents_tB63A1FF929CAEBC8E097EF426A8B6F91442B0EA3 ___meshExtents_52;
int32_t ___tagNoParsing_53;
int32_t ___isNonBreakingSpace_54;
};
// Native definition for COM marshalling of TMPro.WordWrapState
struct WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557_marshaled_com
{
int32_t ___previous_WordBreak_0;
int32_t ___total_CharacterCount_1;
int32_t ___visible_CharacterCount_2;
int32_t ___visible_SpriteCount_3;
int32_t ___visible_LinkCount_4;
int32_t ___firstCharacterIndex_5;
int32_t ___firstVisibleCharacterIndex_6;
int32_t ___lastCharacterIndex_7;
int32_t ___lastVisibleCharIndex_8;
int32_t ___lineNumber_9;
float ___maxCapHeight_10;
float ___maxAscender_11;
float ___maxDescender_12;
float ___maxLineAscender_13;
float ___maxLineDescender_14;
float ___previousLineAscender_15;
float ___xAdvance_16;
float ___preferredWidth_17;
float ___preferredHeight_18;
float ___previousLineScale_19;
int32_t ___wordCount_20;
int32_t ___fontStyle_21;
float ___fontScale_22;
float ___fontScaleMultiplier_23;
float ___currentFontSize_24;
float ___baselineOffset_25;
float ___lineOffset_26;
TMP_TextInfo_tC40DAAB47C5BD5AD21B3F456D860474D96D9C181 * ___textInfo_27;
TMP_LineInfo_tE89A82D872E55C3DDF29C4C8D862358633D0B442 ___lineInfo_28;
Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 ___vertexColor_29;
Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 ___underlineColor_30;
Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 ___strikethroughColor_31;
Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 ___highlightColor_32;
TMP_FontStyleStack_tC7146DA5AD4540B2C8733862D785AD50AD229E84 ___basicStyleStack_33;
TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 ___colorStack_34;
TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 ___underlineColorStack_35;
TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 ___strikethroughColorStack_36;
TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 ___highlightColorStack_37;
TMP_RichTextTagStack_1_tF73231072FB2CD9EBFCAF3C4D7E41E2221B9ED1D ___colorGradientStack_38;
TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 ___sizeStack_39;
TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 ___indentStack_40;
TMP_RichTextTagStack_1_t9B6C6D23490A525AEA83F4301C7523574055098B ___fontWeightStack_41;
TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293 ___styleStack_42;
TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 ___baselineStack_43;
TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293 ___actionStack_44;
TMP_RichTextTagStack_1_t9742B1BC2B58D513502935F599F4AF09FFC379A9 ___materialReferenceStack_45;
TMP_RichTextTagStack_1_t435AA844A7DBDA7E54BCDA3C53622D4B28952115 ___lineJustificationStack_46;
int32_t ___spriteAnimationID_47;
TMP_FontAsset_t44D2006105B39FB33AE5A0ADF07A7EF36C72385C * ___currentFontAsset_48;
TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 * ___currentSpriteAsset_49;
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___currentMaterial_50;
int32_t ___currentMaterialIndex_51;
Extents_tB63A1FF929CAEBC8E097EF426A8B6F91442B0EA3 ___meshExtents_52;
int32_t ___tagNoParsing_53;
int32_t ___isNonBreakingSpace_54;
};
// UnityEngine.Behaviour
struct Behaviour_tBDC7E9C3C898AD8348891B82D3E345801D920CA8 : public Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621
{
public:
public:
};
// UnityEngine.Transform
struct Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA : public Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621
{
public:
public:
};
// UnityEngine.XR.ARFoundation.ARRaycastHit
struct ARRaycastHit_t509D3DB25CAC944ED3D3092C0A6096F85DDDD1BC
{
public:
// System.Single UnityEngine.XR.ARFoundation.ARRaycastHit::<distance>k__BackingField
float ___U3CdistanceU3Ek__BackingField_0;
// UnityEngine.XR.ARSubsystems.XRRaycastHit UnityEngine.XR.ARFoundation.ARRaycastHit::m_Hit
XRRaycastHit_t2DE122E601B75E2070D4A542A13E2486DEE60E82 ___m_Hit_1;
// UnityEngine.Transform UnityEngine.XR.ARFoundation.ARRaycastHit::m_Transform
Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * ___m_Transform_2;
public:
inline static int32_t get_offset_of_U3CdistanceU3Ek__BackingField_0() { return static_cast<int32_t>(offsetof(ARRaycastHit_t509D3DB25CAC944ED3D3092C0A6096F85DDDD1BC, ___U3CdistanceU3Ek__BackingField_0)); }
inline float get_U3CdistanceU3Ek__BackingField_0() const { return ___U3CdistanceU3Ek__BackingField_0; }
inline float* get_address_of_U3CdistanceU3Ek__BackingField_0() { return &___U3CdistanceU3Ek__BackingField_0; }
inline void set_U3CdistanceU3Ek__BackingField_0(float value)
{
___U3CdistanceU3Ek__BackingField_0 = value;
}
inline static int32_t get_offset_of_m_Hit_1() { return static_cast<int32_t>(offsetof(ARRaycastHit_t509D3DB25CAC944ED3D3092C0A6096F85DDDD1BC, ___m_Hit_1)); }
inline XRRaycastHit_t2DE122E601B75E2070D4A542A13E2486DEE60E82 get_m_Hit_1() const { return ___m_Hit_1; }
inline XRRaycastHit_t2DE122E601B75E2070D4A542A13E2486DEE60E82 * get_address_of_m_Hit_1() { return &___m_Hit_1; }
inline void set_m_Hit_1(XRRaycastHit_t2DE122E601B75E2070D4A542A13E2486DEE60E82 value)
{
___m_Hit_1 = value;
}
inline static int32_t get_offset_of_m_Transform_2() { return static_cast<int32_t>(offsetof(ARRaycastHit_t509D3DB25CAC944ED3D3092C0A6096F85DDDD1BC, ___m_Transform_2)); }
inline Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * get_m_Transform_2() const { return ___m_Transform_2; }
inline Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA ** get_address_of_m_Transform_2() { return &___m_Transform_2; }
inline void set_m_Transform_2(Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * value)
{
___m_Transform_2 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_Transform_2), (void*)value);
}
};
// Native definition for P/Invoke marshalling of UnityEngine.XR.ARFoundation.ARRaycastHit
struct ARRaycastHit_t509D3DB25CAC944ED3D3092C0A6096F85DDDD1BC_marshaled_pinvoke
{
float ___U3CdistanceU3Ek__BackingField_0;
XRRaycastHit_t2DE122E601B75E2070D4A542A13E2486DEE60E82 ___m_Hit_1;
Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * ___m_Transform_2;
};
// Native definition for COM marshalling of UnityEngine.XR.ARFoundation.ARRaycastHit
struct ARRaycastHit_t509D3DB25CAC944ED3D3092C0A6096F85DDDD1BC_marshaled_com
{
float ___U3CdistanceU3Ek__BackingField_0;
XRRaycastHit_t2DE122E601B75E2070D4A542A13E2486DEE60E82 ___m_Hit_1;
Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * ___m_Transform_2;
};
// UnityEngine.Camera
struct Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 : public Behaviour_tBDC7E9C3C898AD8348891B82D3E345801D920CA8
{
public:
public:
};
struct Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34_StaticFields
{
public:
// UnityEngine.Camera_CameraCallback UnityEngine.Camera::onPreCull
CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 * ___onPreCull_4;
// UnityEngine.Camera_CameraCallback UnityEngine.Camera::onPreRender
CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 * ___onPreRender_5;
// UnityEngine.Camera_CameraCallback UnityEngine.Camera::onPostRender
CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 * ___onPostRender_6;
public:
inline static int32_t get_offset_of_onPreCull_4() { return static_cast<int32_t>(offsetof(Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34_StaticFields, ___onPreCull_4)); }
inline CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 * get_onPreCull_4() const { return ___onPreCull_4; }
inline CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 ** get_address_of_onPreCull_4() { return &___onPreCull_4; }
inline void set_onPreCull_4(CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 * value)
{
___onPreCull_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___onPreCull_4), (void*)value);
}
inline static int32_t get_offset_of_onPreRender_5() { return static_cast<int32_t>(offsetof(Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34_StaticFields, ___onPreRender_5)); }
inline CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 * get_onPreRender_5() const { return ___onPreRender_5; }
inline CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 ** get_address_of_onPreRender_5() { return &___onPreRender_5; }
inline void set_onPreRender_5(CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 * value)
{
___onPreRender_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___onPreRender_5), (void*)value);
}
inline static int32_t get_offset_of_onPostRender_6() { return static_cast<int32_t>(offsetof(Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34_StaticFields, ___onPostRender_6)); }
inline CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 * get_onPostRender_6() const { return ___onPostRender_6; }
inline CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 ** get_address_of_onPostRender_6() { return &___onPostRender_6; }
inline void set_onPostRender_6(CameraCallback_t8BBB42AA08D7498DFC11F4128117055BC7F0B9D0 * value)
{
___onPostRender_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&___onPostRender_6), (void*)value);
}
};
// UnityEngine.Canvas
struct Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 : public Behaviour_tBDC7E9C3C898AD8348891B82D3E345801D920CA8
{
public:
public:
};
struct Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591_StaticFields
{
public:
// UnityEngine.Canvas_WillRenderCanvases UnityEngine.Canvas::willRenderCanvases
WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE * ___willRenderCanvases_4;
public:
inline static int32_t get_offset_of_willRenderCanvases_4() { return static_cast<int32_t>(offsetof(Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591_StaticFields, ___willRenderCanvases_4)); }
inline WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE * get_willRenderCanvases_4() const { return ___willRenderCanvases_4; }
inline WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE ** get_address_of_willRenderCanvases_4() { return &___willRenderCanvases_4; }
inline void set_willRenderCanvases_4(WillRenderCanvases_tBD5AD090B5938021DEAA679A5AEEA790F60A8BEE * value)
{
___willRenderCanvases_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___willRenderCanvases_4), (void*)value);
}
};
// UnityEngine.MonoBehaviour
struct MonoBehaviour_t4A60845CF505405AF8BE8C61CC07F75CADEF6429 : public Behaviour_tBDC7E9C3C898AD8348891B82D3E345801D920CA8
{
public:
public:
};
// ARPlacement
struct ARPlacement_t20C1E0720BEB83F20243FBDE8B3A3A255C70F925 : public MonoBehaviour_t4A60845CF505405AF8BE8C61CC07F75CADEF6429
{
public:
// UnityEngine.GameObject ARPlacement::placementIndicator
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___placementIndicator_4;
// UnityEngine.GameObject ARPlacement::vehicle1
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___vehicle1_5;
// UnityEngine.GameObject ARPlacement::vehicle2
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___vehicle2_6;
// UnityEngine.GameObject ARPlacement::vehicle3
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___vehicle3_7;
// MenuScript ARPlacement::menuScript
MenuScript_t7F3BC65E367445FC3A0AA8CD0A2A77941EF62B77 * ___menuScript_8;
// UnityEngine.GameObject ARPlacement::slider
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___slider_9;
// UnityEngine.XR.ARFoundation.ARRaycastManager ARPlacement::arRaycastManager
ARRaycastManager_t81A9513150BA5BE536DF064F1C6DE73349A60BE7 * ___arRaycastManager_10;
// UnityEngine.Pose ARPlacement::placementPose
Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 ___placementPose_11;
// System.Boolean ARPlacement::placementPoseIsValid
bool ___placementPoseIsValid_12;
// System.Boolean ARPlacement::vehicleIsPlaced
bool ___vehicleIsPlaced_13;
// UnityEngine.GameObject ARPlacement::instantiatedVehicle
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___instantiatedVehicle_14;
public:
inline static int32_t get_offset_of_placementIndicator_4() { return static_cast<int32_t>(offsetof(ARPlacement_t20C1E0720BEB83F20243FBDE8B3A3A255C70F925, ___placementIndicator_4)); }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * get_placementIndicator_4() const { return ___placementIndicator_4; }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F ** get_address_of_placementIndicator_4() { return &___placementIndicator_4; }
inline void set_placementIndicator_4(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * value)
{
___placementIndicator_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___placementIndicator_4), (void*)value);
}
inline static int32_t get_offset_of_vehicle1_5() { return static_cast<int32_t>(offsetof(ARPlacement_t20C1E0720BEB83F20243FBDE8B3A3A255C70F925, ___vehicle1_5)); }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * get_vehicle1_5() const { return ___vehicle1_5; }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F ** get_address_of_vehicle1_5() { return &___vehicle1_5; }
inline void set_vehicle1_5(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * value)
{
___vehicle1_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___vehicle1_5), (void*)value);
}
inline static int32_t get_offset_of_vehicle2_6() { return static_cast<int32_t>(offsetof(ARPlacement_t20C1E0720BEB83F20243FBDE8B3A3A255C70F925, ___vehicle2_6)); }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * get_vehicle2_6() const { return ___vehicle2_6; }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F ** get_address_of_vehicle2_6() { return &___vehicle2_6; }
inline void set_vehicle2_6(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * value)
{
___vehicle2_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&___vehicle2_6), (void*)value);
}
inline static int32_t get_offset_of_vehicle3_7() { return static_cast<int32_t>(offsetof(ARPlacement_t20C1E0720BEB83F20243FBDE8B3A3A255C70F925, ___vehicle3_7)); }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * get_vehicle3_7() const { return ___vehicle3_7; }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F ** get_address_of_vehicle3_7() { return &___vehicle3_7; }
inline void set_vehicle3_7(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * value)
{
___vehicle3_7 = value;
Il2CppCodeGenWriteBarrier((void**)(&___vehicle3_7), (void*)value);
}
inline static int32_t get_offset_of_menuScript_8() { return static_cast<int32_t>(offsetof(ARPlacement_t20C1E0720BEB83F20243FBDE8B3A3A255C70F925, ___menuScript_8)); }
inline MenuScript_t7F3BC65E367445FC3A0AA8CD0A2A77941EF62B77 * get_menuScript_8() const { return ___menuScript_8; }
inline MenuScript_t7F3BC65E367445FC3A0AA8CD0A2A77941EF62B77 ** get_address_of_menuScript_8() { return &___menuScript_8; }
inline void set_menuScript_8(MenuScript_t7F3BC65E367445FC3A0AA8CD0A2A77941EF62B77 * value)
{
___menuScript_8 = value;
Il2CppCodeGenWriteBarrier((void**)(&___menuScript_8), (void*)value);
}
inline static int32_t get_offset_of_slider_9() { return static_cast<int32_t>(offsetof(ARPlacement_t20C1E0720BEB83F20243FBDE8B3A3A255C70F925, ___slider_9)); }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * get_slider_9() const { return ___slider_9; }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F ** get_address_of_slider_9() { return &___slider_9; }
inline void set_slider_9(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * value)
{
___slider_9 = value;
Il2CppCodeGenWriteBarrier((void**)(&___slider_9), (void*)value);
}
inline static int32_t get_offset_of_arRaycastManager_10() { return static_cast<int32_t>(offsetof(ARPlacement_t20C1E0720BEB83F20243FBDE8B3A3A255C70F925, ___arRaycastManager_10)); }
inline ARRaycastManager_t81A9513150BA5BE536DF064F1C6DE73349A60BE7 * get_arRaycastManager_10() const { return ___arRaycastManager_10; }
inline ARRaycastManager_t81A9513150BA5BE536DF064F1C6DE73349A60BE7 ** get_address_of_arRaycastManager_10() { return &___arRaycastManager_10; }
inline void set_arRaycastManager_10(ARRaycastManager_t81A9513150BA5BE536DF064F1C6DE73349A60BE7 * value)
{
___arRaycastManager_10 = value;
Il2CppCodeGenWriteBarrier((void**)(&___arRaycastManager_10), (void*)value);
}
inline static int32_t get_offset_of_placementPose_11() { return static_cast<int32_t>(offsetof(ARPlacement_t20C1E0720BEB83F20243FBDE8B3A3A255C70F925, ___placementPose_11)); }
inline Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 get_placementPose_11() const { return ___placementPose_11; }
inline Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 * get_address_of_placementPose_11() { return &___placementPose_11; }
inline void set_placementPose_11(Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 value)
{
___placementPose_11 = value;
}
inline static int32_t get_offset_of_placementPoseIsValid_12() { return static_cast<int32_t>(offsetof(ARPlacement_t20C1E0720BEB83F20243FBDE8B3A3A255C70F925, ___placementPoseIsValid_12)); }
inline bool get_placementPoseIsValid_12() const { return ___placementPoseIsValid_12; }
inline bool* get_address_of_placementPoseIsValid_12() { return &___placementPoseIsValid_12; }
inline void set_placementPoseIsValid_12(bool value)
{
___placementPoseIsValid_12 = value;
}
inline static int32_t get_offset_of_vehicleIsPlaced_13() { return static_cast<int32_t>(offsetof(ARPlacement_t20C1E0720BEB83F20243FBDE8B3A3A255C70F925, ___vehicleIsPlaced_13)); }
inline bool get_vehicleIsPlaced_13() const { return ___vehicleIsPlaced_13; }
inline bool* get_address_of_vehicleIsPlaced_13() { return &___vehicleIsPlaced_13; }
inline void set_vehicleIsPlaced_13(bool value)
{
___vehicleIsPlaced_13 = value;
}
inline static int32_t get_offset_of_instantiatedVehicle_14() { return static_cast<int32_t>(offsetof(ARPlacement_t20C1E0720BEB83F20243FBDE8B3A3A255C70F925, ___instantiatedVehicle_14)); }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * get_instantiatedVehicle_14() const { return ___instantiatedVehicle_14; }
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F ** get_address_of_instantiatedVehicle_14() { return &___instantiatedVehicle_14; }
inline void set_instantiatedVehicle_14(GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * value)
{
___instantiatedVehicle_14 = value;
Il2CppCodeGenWriteBarrier((void**)(&___instantiatedVehicle_14), (void*)value);
}
};
// MenuScript
struct MenuScript_t7F3BC65E367445FC3A0AA8CD0A2A77941EF62B77 : public MonoBehaviour_t4A60845CF505405AF8BE8C61CC07F75CADEF6429
{
public:
// MenuScript_MenuStates MenuScript::currentMenuState
int32_t ___currentMenuState_4;
// MenuScript_ARStates MenuScript::currentARState
int32_t ___currentARState_5;
// UnityEngine.Canvas MenuScript::mainMenuCanvas
Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * ___mainMenuCanvas_6;
// UnityEngine.Canvas MenuScript::arCanvas
Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * ___arCanvas_7;
// TMPro.TextMeshProUGUI MenuScript::placeRemove
TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438 * ___placeRemove_8;
// ARPlacement MenuScript::arPlaceScript
ARPlacement_t20C1E0720BEB83F20243FBDE8B3A3A255C70F925 * ___arPlaceScript_9;
public:
inline static int32_t get_offset_of_currentMenuState_4() { return static_cast<int32_t>(offsetof(MenuScript_t7F3BC65E367445FC3A0AA8CD0A2A77941EF62B77, ___currentMenuState_4)); }
inline int32_t get_currentMenuState_4() const { return ___currentMenuState_4; }
inline int32_t* get_address_of_currentMenuState_4() { return &___currentMenuState_4; }
inline void set_currentMenuState_4(int32_t value)
{
___currentMenuState_4 = value;
}
inline static int32_t get_offset_of_currentARState_5() { return static_cast<int32_t>(offsetof(MenuScript_t7F3BC65E367445FC3A0AA8CD0A2A77941EF62B77, ___currentARState_5)); }
inline int32_t get_currentARState_5() const { return ___currentARState_5; }
inline int32_t* get_address_of_currentARState_5() { return &___currentARState_5; }
inline void set_currentARState_5(int32_t value)
{
___currentARState_5 = value;
}
inline static int32_t get_offset_of_mainMenuCanvas_6() { return static_cast<int32_t>(offsetof(MenuScript_t7F3BC65E367445FC3A0AA8CD0A2A77941EF62B77, ___mainMenuCanvas_6)); }
inline Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * get_mainMenuCanvas_6() const { return ___mainMenuCanvas_6; }
inline Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 ** get_address_of_mainMenuCanvas_6() { return &___mainMenuCanvas_6; }
inline void set_mainMenuCanvas_6(Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * value)
{
___mainMenuCanvas_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&___mainMenuCanvas_6), (void*)value);
}
inline static int32_t get_offset_of_arCanvas_7() { return static_cast<int32_t>(offsetof(MenuScript_t7F3BC65E367445FC3A0AA8CD0A2A77941EF62B77, ___arCanvas_7)); }
inline Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * get_arCanvas_7() const { return ___arCanvas_7; }
inline Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 ** get_address_of_arCanvas_7() { return &___arCanvas_7; }
inline void set_arCanvas_7(Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * value)
{
___arCanvas_7 = value;
Il2CppCodeGenWriteBarrier((void**)(&___arCanvas_7), (void*)value);
}
inline static int32_t get_offset_of_placeRemove_8() { return static_cast<int32_t>(offsetof(MenuScript_t7F3BC65E367445FC3A0AA8CD0A2A77941EF62B77, ___placeRemove_8)); }
inline TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438 * get_placeRemove_8() const { return ___placeRemove_8; }
inline TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438 ** get_address_of_placeRemove_8() { return &___placeRemove_8; }
inline void set_placeRemove_8(TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438 * value)
{
___placeRemove_8 = value;
Il2CppCodeGenWriteBarrier((void**)(&___placeRemove_8), (void*)value);
}
inline static int32_t get_offset_of_arPlaceScript_9() { return static_cast<int32_t>(offsetof(MenuScript_t7F3BC65E367445FC3A0AA8CD0A2A77941EF62B77, ___arPlaceScript_9)); }
inline ARPlacement_t20C1E0720BEB83F20243FBDE8B3A3A255C70F925 * get_arPlaceScript_9() const { return ___arPlaceScript_9; }
inline ARPlacement_t20C1E0720BEB83F20243FBDE8B3A3A255C70F925 ** get_address_of_arPlaceScript_9() { return &___arPlaceScript_9; }
inline void set_arPlaceScript_9(ARPlacement_t20C1E0720BEB83F20243FBDE8B3A3A255C70F925 * value)
{
___arPlaceScript_9 = value;
Il2CppCodeGenWriteBarrier((void**)(&___arPlaceScript_9), (void*)value);
}
};
// UnityEngine.EventSystems.UIBehaviour
struct UIBehaviour_t3C3C339CD5677BA7FC27C352FED8B78052A3FE70 : public MonoBehaviour_t4A60845CF505405AF8BE8C61CC07F75CADEF6429
{
public:
public:
};
// UnityEngine.XR.ARFoundation.SubsystemLifecycleManager`2<UnityEngine.XR.ARSubsystems.XRRaycastSubsystem,UnityEngine.XR.ARSubsystems.XRRaycastSubsystemDescriptor>
struct SubsystemLifecycleManager_2_tDE11645ED850AA7739D57BAF17A648834DB2CD5B : public MonoBehaviour_t4A60845CF505405AF8BE8C61CC07F75CADEF6429
{
public:
// TSubsystem UnityEngine.XR.ARFoundation.SubsystemLifecycleManager`2::<subsystem>k__BackingField
XRRaycastSubsystem_t1181EA314910ABB4E1F50BF2F7650EC1512A0A20 * ___U3CsubsystemU3Ek__BackingField_4;
public:
inline static int32_t get_offset_of_U3CsubsystemU3Ek__BackingField_4() { return static_cast<int32_t>(offsetof(SubsystemLifecycleManager_2_tDE11645ED850AA7739D57BAF17A648834DB2CD5B, ___U3CsubsystemU3Ek__BackingField_4)); }
inline XRRaycastSubsystem_t1181EA314910ABB4E1F50BF2F7650EC1512A0A20 * get_U3CsubsystemU3Ek__BackingField_4() const { return ___U3CsubsystemU3Ek__BackingField_4; }
inline XRRaycastSubsystem_t1181EA314910ABB4E1F50BF2F7650EC1512A0A20 ** get_address_of_U3CsubsystemU3Ek__BackingField_4() { return &___U3CsubsystemU3Ek__BackingField_4; }
inline void set_U3CsubsystemU3Ek__BackingField_4(XRRaycastSubsystem_t1181EA314910ABB4E1F50BF2F7650EC1512A0A20 * value)
{
___U3CsubsystemU3Ek__BackingField_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___U3CsubsystemU3Ek__BackingField_4), (void*)value);
}
};
struct SubsystemLifecycleManager_2_tDE11645ED850AA7739D57BAF17A648834DB2CD5B_StaticFields
{
public:
// System.Collections.Generic.List`1<TSubsystemDescriptor> UnityEngine.XR.ARFoundation.SubsystemLifecycleManager`2::s_SubsystemDescriptors
List_1_t67EA06DFF28CCF87DA1E9B7EB486336F8B486A7C * ___s_SubsystemDescriptors_5;
public:
inline static int32_t get_offset_of_s_SubsystemDescriptors_5() { return static_cast<int32_t>(offsetof(SubsystemLifecycleManager_2_tDE11645ED850AA7739D57BAF17A648834DB2CD5B_StaticFields, ___s_SubsystemDescriptors_5)); }
inline List_1_t67EA06DFF28CCF87DA1E9B7EB486336F8B486A7C * get_s_SubsystemDescriptors_5() const { return ___s_SubsystemDescriptors_5; }
inline List_1_t67EA06DFF28CCF87DA1E9B7EB486336F8B486A7C ** get_address_of_s_SubsystemDescriptors_5() { return &___s_SubsystemDescriptors_5; }
inline void set_s_SubsystemDescriptors_5(List_1_t67EA06DFF28CCF87DA1E9B7EB486336F8B486A7C * value)
{
___s_SubsystemDescriptors_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___s_SubsystemDescriptors_5), (void*)value);
}
};
// UnityEngine.UI.Graphic
struct Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8 : public UIBehaviour_t3C3C339CD5677BA7FC27C352FED8B78052A3FE70
{
public:
// UnityEngine.Material UnityEngine.UI.Graphic::m_Material
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___m_Material_6;
// UnityEngine.Color UnityEngine.UI.Graphic::m_Color
Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 ___m_Color_7;
// System.Boolean UnityEngine.UI.Graphic::m_SkipLayoutUpdate
bool ___m_SkipLayoutUpdate_8;
// System.Boolean UnityEngine.UI.Graphic::m_SkipMaterialUpdate
bool ___m_SkipMaterialUpdate_9;
// System.Boolean UnityEngine.UI.Graphic::m_RaycastTarget
bool ___m_RaycastTarget_10;
// UnityEngine.RectTransform UnityEngine.UI.Graphic::m_RectTransform
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * ___m_RectTransform_11;
// UnityEngine.CanvasRenderer UnityEngine.UI.Graphic::m_CanvasRenderer
CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 * ___m_CanvasRenderer_12;
// UnityEngine.Canvas UnityEngine.UI.Graphic::m_Canvas
Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * ___m_Canvas_13;
// System.Boolean UnityEngine.UI.Graphic::m_VertsDirty
bool ___m_VertsDirty_14;
// System.Boolean UnityEngine.UI.Graphic::m_MaterialDirty
bool ___m_MaterialDirty_15;
// UnityEngine.Events.UnityAction UnityEngine.UI.Graphic::m_OnDirtyLayoutCallback
UnityAction_tD19B26F1B2C048E38FD5801A33573BE01064CAF4 * ___m_OnDirtyLayoutCallback_16;
// UnityEngine.Events.UnityAction UnityEngine.UI.Graphic::m_OnDirtyVertsCallback
UnityAction_tD19B26F1B2C048E38FD5801A33573BE01064CAF4 * ___m_OnDirtyVertsCallback_17;
// UnityEngine.Events.UnityAction UnityEngine.UI.Graphic::m_OnDirtyMaterialCallback
UnityAction_tD19B26F1B2C048E38FD5801A33573BE01064CAF4 * ___m_OnDirtyMaterialCallback_18;
// UnityEngine.Mesh UnityEngine.UI.Graphic::m_CachedMesh
Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C * ___m_CachedMesh_21;
// UnityEngine.Vector2[] UnityEngine.UI.Graphic::m_CachedUvs
Vector2U5BU5D_tA065A07DFC060C1B8786BBAA5F3A6577CCEB27D6* ___m_CachedUvs_22;
// UnityEngine.UI.CoroutineTween.TweenRunner`1<UnityEngine.UI.CoroutineTween.ColorTween> UnityEngine.UI.Graphic::m_ColorTweenRunner
TweenRunner_1_t56CEB168ADE3739A1BDDBF258FDC759DF8927172 * ___m_ColorTweenRunner_23;
// System.Boolean UnityEngine.UI.Graphic::<useLegacyMeshGeneration>k__BackingField
bool ___U3CuseLegacyMeshGenerationU3Ek__BackingField_24;
public:
inline static int32_t get_offset_of_m_Material_6() { return static_cast<int32_t>(offsetof(Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8, ___m_Material_6)); }
inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * get_m_Material_6() const { return ___m_Material_6; }
inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 ** get_address_of_m_Material_6() { return &___m_Material_6; }
inline void set_m_Material_6(Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * value)
{
___m_Material_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_Material_6), (void*)value);
}
inline static int32_t get_offset_of_m_Color_7() { return static_cast<int32_t>(offsetof(Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8, ___m_Color_7)); }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 get_m_Color_7() const { return ___m_Color_7; }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 * get_address_of_m_Color_7() { return &___m_Color_7; }
inline void set_m_Color_7(Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 value)
{
___m_Color_7 = value;
}
inline static int32_t get_offset_of_m_SkipLayoutUpdate_8() { return static_cast<int32_t>(offsetof(Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8, ___m_SkipLayoutUpdate_8)); }
inline bool get_m_SkipLayoutUpdate_8() const { return ___m_SkipLayoutUpdate_8; }
inline bool* get_address_of_m_SkipLayoutUpdate_8() { return &___m_SkipLayoutUpdate_8; }
inline void set_m_SkipLayoutUpdate_8(bool value)
{
___m_SkipLayoutUpdate_8 = value;
}
inline static int32_t get_offset_of_m_SkipMaterialUpdate_9() { return static_cast<int32_t>(offsetof(Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8, ___m_SkipMaterialUpdate_9)); }
inline bool get_m_SkipMaterialUpdate_9() const { return ___m_SkipMaterialUpdate_9; }
inline bool* get_address_of_m_SkipMaterialUpdate_9() { return &___m_SkipMaterialUpdate_9; }
inline void set_m_SkipMaterialUpdate_9(bool value)
{
___m_SkipMaterialUpdate_9 = value;
}
inline static int32_t get_offset_of_m_RaycastTarget_10() { return static_cast<int32_t>(offsetof(Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8, ___m_RaycastTarget_10)); }
inline bool get_m_RaycastTarget_10() const { return ___m_RaycastTarget_10; }
inline bool* get_address_of_m_RaycastTarget_10() { return &___m_RaycastTarget_10; }
inline void set_m_RaycastTarget_10(bool value)
{
___m_RaycastTarget_10 = value;
}
inline static int32_t get_offset_of_m_RectTransform_11() { return static_cast<int32_t>(offsetof(Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8, ___m_RectTransform_11)); }
inline RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * get_m_RectTransform_11() const { return ___m_RectTransform_11; }
inline RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 ** get_address_of_m_RectTransform_11() { return &___m_RectTransform_11; }
inline void set_m_RectTransform_11(RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * value)
{
___m_RectTransform_11 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_RectTransform_11), (void*)value);
}
inline static int32_t get_offset_of_m_CanvasRenderer_12() { return static_cast<int32_t>(offsetof(Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8, ___m_CanvasRenderer_12)); }
inline CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 * get_m_CanvasRenderer_12() const { return ___m_CanvasRenderer_12; }
inline CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 ** get_address_of_m_CanvasRenderer_12() { return &___m_CanvasRenderer_12; }
inline void set_m_CanvasRenderer_12(CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 * value)
{
___m_CanvasRenderer_12 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_CanvasRenderer_12), (void*)value);
}
inline static int32_t get_offset_of_m_Canvas_13() { return static_cast<int32_t>(offsetof(Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8, ___m_Canvas_13)); }
inline Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * get_m_Canvas_13() const { return ___m_Canvas_13; }
inline Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 ** get_address_of_m_Canvas_13() { return &___m_Canvas_13; }
inline void set_m_Canvas_13(Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * value)
{
___m_Canvas_13 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_Canvas_13), (void*)value);
}
inline static int32_t get_offset_of_m_VertsDirty_14() { return static_cast<int32_t>(offsetof(Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8, ___m_VertsDirty_14)); }
inline bool get_m_VertsDirty_14() const { return ___m_VertsDirty_14; }
inline bool* get_address_of_m_VertsDirty_14() { return &___m_VertsDirty_14; }
inline void set_m_VertsDirty_14(bool value)
{
___m_VertsDirty_14 = value;
}
inline static int32_t get_offset_of_m_MaterialDirty_15() { return static_cast<int32_t>(offsetof(Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8, ___m_MaterialDirty_15)); }
inline bool get_m_MaterialDirty_15() const { return ___m_MaterialDirty_15; }
inline bool* get_address_of_m_MaterialDirty_15() { return &___m_MaterialDirty_15; }
inline void set_m_MaterialDirty_15(bool value)
{
___m_MaterialDirty_15 = value;
}
inline static int32_t get_offset_of_m_OnDirtyLayoutCallback_16() { return static_cast<int32_t>(offsetof(Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8, ___m_OnDirtyLayoutCallback_16)); }
inline UnityAction_tD19B26F1B2C048E38FD5801A33573BE01064CAF4 * get_m_OnDirtyLayoutCallback_16() const { return ___m_OnDirtyLayoutCallback_16; }
inline UnityAction_tD19B26F1B2C048E38FD5801A33573BE01064CAF4 ** get_address_of_m_OnDirtyLayoutCallback_16() { return &___m_OnDirtyLayoutCallback_16; }
inline void set_m_OnDirtyLayoutCallback_16(UnityAction_tD19B26F1B2C048E38FD5801A33573BE01064CAF4 * value)
{
___m_OnDirtyLayoutCallback_16 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_OnDirtyLayoutCallback_16), (void*)value);
}
inline static int32_t get_offset_of_m_OnDirtyVertsCallback_17() { return static_cast<int32_t>(offsetof(Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8, ___m_OnDirtyVertsCallback_17)); }
inline UnityAction_tD19B26F1B2C048E38FD5801A33573BE01064CAF4 * get_m_OnDirtyVertsCallback_17() const { return ___m_OnDirtyVertsCallback_17; }
inline UnityAction_tD19B26F1B2C048E38FD5801A33573BE01064CAF4 ** get_address_of_m_OnDirtyVertsCallback_17() { return &___m_OnDirtyVertsCallback_17; }
inline void set_m_OnDirtyVertsCallback_17(UnityAction_tD19B26F1B2C048E38FD5801A33573BE01064CAF4 * value)
{
___m_OnDirtyVertsCallback_17 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_OnDirtyVertsCallback_17), (void*)value);
}
inline static int32_t get_offset_of_m_OnDirtyMaterialCallback_18() { return static_cast<int32_t>(offsetof(Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8, ___m_OnDirtyMaterialCallback_18)); }
inline UnityAction_tD19B26F1B2C048E38FD5801A33573BE01064CAF4 * get_m_OnDirtyMaterialCallback_18() const { return ___m_OnDirtyMaterialCallback_18; }
inline UnityAction_tD19B26F1B2C048E38FD5801A33573BE01064CAF4 ** get_address_of_m_OnDirtyMaterialCallback_18() { return &___m_OnDirtyMaterialCallback_18; }
inline void set_m_OnDirtyMaterialCallback_18(UnityAction_tD19B26F1B2C048E38FD5801A33573BE01064CAF4 * value)
{
___m_OnDirtyMaterialCallback_18 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_OnDirtyMaterialCallback_18), (void*)value);
}
inline static int32_t get_offset_of_m_CachedMesh_21() { return static_cast<int32_t>(offsetof(Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8, ___m_CachedMesh_21)); }
inline Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C * get_m_CachedMesh_21() const { return ___m_CachedMesh_21; }
inline Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C ** get_address_of_m_CachedMesh_21() { return &___m_CachedMesh_21; }
inline void set_m_CachedMesh_21(Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C * value)
{
___m_CachedMesh_21 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_CachedMesh_21), (void*)value);
}
inline static int32_t get_offset_of_m_CachedUvs_22() { return static_cast<int32_t>(offsetof(Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8, ___m_CachedUvs_22)); }
inline Vector2U5BU5D_tA065A07DFC060C1B8786BBAA5F3A6577CCEB27D6* get_m_CachedUvs_22() const { return ___m_CachedUvs_22; }
inline Vector2U5BU5D_tA065A07DFC060C1B8786BBAA5F3A6577CCEB27D6** get_address_of_m_CachedUvs_22() { return &___m_CachedUvs_22; }
inline void set_m_CachedUvs_22(Vector2U5BU5D_tA065A07DFC060C1B8786BBAA5F3A6577CCEB27D6* value)
{
___m_CachedUvs_22 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_CachedUvs_22), (void*)value);
}
inline static int32_t get_offset_of_m_ColorTweenRunner_23() { return static_cast<int32_t>(offsetof(Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8, ___m_ColorTweenRunner_23)); }
inline TweenRunner_1_t56CEB168ADE3739A1BDDBF258FDC759DF8927172 * get_m_ColorTweenRunner_23() const { return ___m_ColorTweenRunner_23; }
inline TweenRunner_1_t56CEB168ADE3739A1BDDBF258FDC759DF8927172 ** get_address_of_m_ColorTweenRunner_23() { return &___m_ColorTweenRunner_23; }
inline void set_m_ColorTweenRunner_23(TweenRunner_1_t56CEB168ADE3739A1BDDBF258FDC759DF8927172 * value)
{
___m_ColorTweenRunner_23 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_ColorTweenRunner_23), (void*)value);
}
inline static int32_t get_offset_of_U3CuseLegacyMeshGenerationU3Ek__BackingField_24() { return static_cast<int32_t>(offsetof(Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8, ___U3CuseLegacyMeshGenerationU3Ek__BackingField_24)); }
inline bool get_U3CuseLegacyMeshGenerationU3Ek__BackingField_24() const { return ___U3CuseLegacyMeshGenerationU3Ek__BackingField_24; }
inline bool* get_address_of_U3CuseLegacyMeshGenerationU3Ek__BackingField_24() { return &___U3CuseLegacyMeshGenerationU3Ek__BackingField_24; }
inline void set_U3CuseLegacyMeshGenerationU3Ek__BackingField_24(bool value)
{
___U3CuseLegacyMeshGenerationU3Ek__BackingField_24 = value;
}
};
struct Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8_StaticFields
{
public:
// UnityEngine.Material UnityEngine.UI.Graphic::s_DefaultUI
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___s_DefaultUI_4;
// UnityEngine.Texture2D UnityEngine.UI.Graphic::s_WhiteTexture
Texture2D_tBBF96AC337723E2EF156DF17E09D4379FD05DE1C * ___s_WhiteTexture_5;
// UnityEngine.Mesh UnityEngine.UI.Graphic::s_Mesh
Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C * ___s_Mesh_19;
// UnityEngine.UI.VertexHelper UnityEngine.UI.Graphic::s_VertexHelper
VertexHelper_t27373EA2CF0F5810EC8CF873D0A6D6C0B23DAC3F * ___s_VertexHelper_20;
public:
inline static int32_t get_offset_of_s_DefaultUI_4() { return static_cast<int32_t>(offsetof(Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8_StaticFields, ___s_DefaultUI_4)); }
inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * get_s_DefaultUI_4() const { return ___s_DefaultUI_4; }
inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 ** get_address_of_s_DefaultUI_4() { return &___s_DefaultUI_4; }
inline void set_s_DefaultUI_4(Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * value)
{
___s_DefaultUI_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___s_DefaultUI_4), (void*)value);
}
inline static int32_t get_offset_of_s_WhiteTexture_5() { return static_cast<int32_t>(offsetof(Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8_StaticFields, ___s_WhiteTexture_5)); }
inline Texture2D_tBBF96AC337723E2EF156DF17E09D4379FD05DE1C * get_s_WhiteTexture_5() const { return ___s_WhiteTexture_5; }
inline Texture2D_tBBF96AC337723E2EF156DF17E09D4379FD05DE1C ** get_address_of_s_WhiteTexture_5() { return &___s_WhiteTexture_5; }
inline void set_s_WhiteTexture_5(Texture2D_tBBF96AC337723E2EF156DF17E09D4379FD05DE1C * value)
{
___s_WhiteTexture_5 = value;
Il2CppCodeGenWriteBarrier((void**)(&___s_WhiteTexture_5), (void*)value);
}
inline static int32_t get_offset_of_s_Mesh_19() { return static_cast<int32_t>(offsetof(Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8_StaticFields, ___s_Mesh_19)); }
inline Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C * get_s_Mesh_19() const { return ___s_Mesh_19; }
inline Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C ** get_address_of_s_Mesh_19() { return &___s_Mesh_19; }
inline void set_s_Mesh_19(Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C * value)
{
___s_Mesh_19 = value;
Il2CppCodeGenWriteBarrier((void**)(&___s_Mesh_19), (void*)value);
}
inline static int32_t get_offset_of_s_VertexHelper_20() { return static_cast<int32_t>(offsetof(Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8_StaticFields, ___s_VertexHelper_20)); }
inline VertexHelper_t27373EA2CF0F5810EC8CF873D0A6D6C0B23DAC3F * get_s_VertexHelper_20() const { return ___s_VertexHelper_20; }
inline VertexHelper_t27373EA2CF0F5810EC8CF873D0A6D6C0B23DAC3F ** get_address_of_s_VertexHelper_20() { return &___s_VertexHelper_20; }
inline void set_s_VertexHelper_20(VertexHelper_t27373EA2CF0F5810EC8CF873D0A6D6C0B23DAC3F * value)
{
___s_VertexHelper_20 = value;
Il2CppCodeGenWriteBarrier((void**)(&___s_VertexHelper_20), (void*)value);
}
};
// UnityEngine.UI.Selectable
struct Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A : public UIBehaviour_t3C3C339CD5677BA7FC27C352FED8B78052A3FE70
{
public:
// UnityEngine.UI.Navigation UnityEngine.UI.Selectable::m_Navigation
Navigation_t761250C05C09773B75F5E0D52DDCBBFE60288A07 ___m_Navigation_7;
// UnityEngine.UI.Selectable_Transition UnityEngine.UI.Selectable::m_Transition
int32_t ___m_Transition_8;
// UnityEngine.UI.ColorBlock UnityEngine.UI.Selectable::m_Colors
ColorBlock_t93B54DF6E8D65D24CEA9726CA745E48C53E3B1EA ___m_Colors_9;
// UnityEngine.UI.SpriteState UnityEngine.UI.Selectable::m_SpriteState
SpriteState_t58B9DD66A79CD69AB4CFC3AD0C41E45DC2192C0A ___m_SpriteState_10;
// UnityEngine.UI.AnimationTriggers UnityEngine.UI.Selectable::m_AnimationTriggers
AnimationTriggers_t164EF8B310E294B7D0F6BF1A87376731EBD06DC5 * ___m_AnimationTriggers_11;
// System.Boolean UnityEngine.UI.Selectable::m_Interactable
bool ___m_Interactable_12;
// UnityEngine.UI.Graphic UnityEngine.UI.Selectable::m_TargetGraphic
Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8 * ___m_TargetGraphic_13;
// System.Boolean UnityEngine.UI.Selectable::m_GroupsAllowInteraction
bool ___m_GroupsAllowInteraction_14;
// System.Boolean UnityEngine.UI.Selectable::m_WillRemove
bool ___m_WillRemove_15;
// System.Boolean UnityEngine.UI.Selectable::<isPointerInside>k__BackingField
bool ___U3CisPointerInsideU3Ek__BackingField_16;
// System.Boolean UnityEngine.UI.Selectable::<isPointerDown>k__BackingField
bool ___U3CisPointerDownU3Ek__BackingField_17;
// System.Boolean UnityEngine.UI.Selectable::<hasSelection>k__BackingField
bool ___U3ChasSelectionU3Ek__BackingField_18;
// System.Collections.Generic.List`1<UnityEngine.CanvasGroup> UnityEngine.UI.Selectable::m_CanvasGroupCache
List_1_t053DAB6E2110E276A0339D73497193F464BC1F82 * ___m_CanvasGroupCache_19;
public:
inline static int32_t get_offset_of_m_Navigation_7() { return static_cast<int32_t>(offsetof(Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A, ___m_Navigation_7)); }
inline Navigation_t761250C05C09773B75F5E0D52DDCBBFE60288A07 get_m_Navigation_7() const { return ___m_Navigation_7; }
inline Navigation_t761250C05C09773B75F5E0D52DDCBBFE60288A07 * get_address_of_m_Navigation_7() { return &___m_Navigation_7; }
inline void set_m_Navigation_7(Navigation_t761250C05C09773B75F5E0D52DDCBBFE60288A07 value)
{
___m_Navigation_7 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___m_Navigation_7))->___m_SelectOnUp_1), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___m_Navigation_7))->___m_SelectOnDown_2), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___m_Navigation_7))->___m_SelectOnLeft_3), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___m_Navigation_7))->___m_SelectOnRight_4), (void*)NULL);
#endif
}
inline static int32_t get_offset_of_m_Transition_8() { return static_cast<int32_t>(offsetof(Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A, ___m_Transition_8)); }
inline int32_t get_m_Transition_8() const { return ___m_Transition_8; }
inline int32_t* get_address_of_m_Transition_8() { return &___m_Transition_8; }
inline void set_m_Transition_8(int32_t value)
{
___m_Transition_8 = value;
}
inline static int32_t get_offset_of_m_Colors_9() { return static_cast<int32_t>(offsetof(Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A, ___m_Colors_9)); }
inline ColorBlock_t93B54DF6E8D65D24CEA9726CA745E48C53E3B1EA get_m_Colors_9() const { return ___m_Colors_9; }
inline ColorBlock_t93B54DF6E8D65D24CEA9726CA745E48C53E3B1EA * get_address_of_m_Colors_9() { return &___m_Colors_9; }
inline void set_m_Colors_9(ColorBlock_t93B54DF6E8D65D24CEA9726CA745E48C53E3B1EA value)
{
___m_Colors_9 = value;
}
inline static int32_t get_offset_of_m_SpriteState_10() { return static_cast<int32_t>(offsetof(Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A, ___m_SpriteState_10)); }
inline SpriteState_t58B9DD66A79CD69AB4CFC3AD0C41E45DC2192C0A get_m_SpriteState_10() const { return ___m_SpriteState_10; }
inline SpriteState_t58B9DD66A79CD69AB4CFC3AD0C41E45DC2192C0A * get_address_of_m_SpriteState_10() { return &___m_SpriteState_10; }
inline void set_m_SpriteState_10(SpriteState_t58B9DD66A79CD69AB4CFC3AD0C41E45DC2192C0A value)
{
___m_SpriteState_10 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___m_SpriteState_10))->___m_HighlightedSprite_0), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___m_SpriteState_10))->___m_PressedSprite_1), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___m_SpriteState_10))->___m_SelectedSprite_2), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___m_SpriteState_10))->___m_DisabledSprite_3), (void*)NULL);
#endif
}
inline static int32_t get_offset_of_m_AnimationTriggers_11() { return static_cast<int32_t>(offsetof(Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A, ___m_AnimationTriggers_11)); }
inline AnimationTriggers_t164EF8B310E294B7D0F6BF1A87376731EBD06DC5 * get_m_AnimationTriggers_11() const { return ___m_AnimationTriggers_11; }
inline AnimationTriggers_t164EF8B310E294B7D0F6BF1A87376731EBD06DC5 ** get_address_of_m_AnimationTriggers_11() { return &___m_AnimationTriggers_11; }
inline void set_m_AnimationTriggers_11(AnimationTriggers_t164EF8B310E294B7D0F6BF1A87376731EBD06DC5 * value)
{
___m_AnimationTriggers_11 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_AnimationTriggers_11), (void*)value);
}
inline static int32_t get_offset_of_m_Interactable_12() { return static_cast<int32_t>(offsetof(Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A, ___m_Interactable_12)); }
inline bool get_m_Interactable_12() const { return ___m_Interactable_12; }
inline bool* get_address_of_m_Interactable_12() { return &___m_Interactable_12; }
inline void set_m_Interactable_12(bool value)
{
___m_Interactable_12 = value;
}
inline static int32_t get_offset_of_m_TargetGraphic_13() { return static_cast<int32_t>(offsetof(Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A, ___m_TargetGraphic_13)); }
inline Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8 * get_m_TargetGraphic_13() const { return ___m_TargetGraphic_13; }
inline Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8 ** get_address_of_m_TargetGraphic_13() { return &___m_TargetGraphic_13; }
inline void set_m_TargetGraphic_13(Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8 * value)
{
___m_TargetGraphic_13 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_TargetGraphic_13), (void*)value);
}
inline static int32_t get_offset_of_m_GroupsAllowInteraction_14() { return static_cast<int32_t>(offsetof(Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A, ___m_GroupsAllowInteraction_14)); }
inline bool get_m_GroupsAllowInteraction_14() const { return ___m_GroupsAllowInteraction_14; }
inline bool* get_address_of_m_GroupsAllowInteraction_14() { return &___m_GroupsAllowInteraction_14; }
inline void set_m_GroupsAllowInteraction_14(bool value)
{
___m_GroupsAllowInteraction_14 = value;
}
inline static int32_t get_offset_of_m_WillRemove_15() { return static_cast<int32_t>(offsetof(Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A, ___m_WillRemove_15)); }
inline bool get_m_WillRemove_15() const { return ___m_WillRemove_15; }
inline bool* get_address_of_m_WillRemove_15() { return &___m_WillRemove_15; }
inline void set_m_WillRemove_15(bool value)
{
___m_WillRemove_15 = value;
}
inline static int32_t get_offset_of_U3CisPointerInsideU3Ek__BackingField_16() { return static_cast<int32_t>(offsetof(Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A, ___U3CisPointerInsideU3Ek__BackingField_16)); }
inline bool get_U3CisPointerInsideU3Ek__BackingField_16() const { return ___U3CisPointerInsideU3Ek__BackingField_16; }
inline bool* get_address_of_U3CisPointerInsideU3Ek__BackingField_16() { return &___U3CisPointerInsideU3Ek__BackingField_16; }
inline void set_U3CisPointerInsideU3Ek__BackingField_16(bool value)
{
___U3CisPointerInsideU3Ek__BackingField_16 = value;
}
inline static int32_t get_offset_of_U3CisPointerDownU3Ek__BackingField_17() { return static_cast<int32_t>(offsetof(Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A, ___U3CisPointerDownU3Ek__BackingField_17)); }
inline bool get_U3CisPointerDownU3Ek__BackingField_17() const { return ___U3CisPointerDownU3Ek__BackingField_17; }
inline bool* get_address_of_U3CisPointerDownU3Ek__BackingField_17() { return &___U3CisPointerDownU3Ek__BackingField_17; }
inline void set_U3CisPointerDownU3Ek__BackingField_17(bool value)
{
___U3CisPointerDownU3Ek__BackingField_17 = value;
}
inline static int32_t get_offset_of_U3ChasSelectionU3Ek__BackingField_18() { return static_cast<int32_t>(offsetof(Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A, ___U3ChasSelectionU3Ek__BackingField_18)); }
inline bool get_U3ChasSelectionU3Ek__BackingField_18() const { return ___U3ChasSelectionU3Ek__BackingField_18; }
inline bool* get_address_of_U3ChasSelectionU3Ek__BackingField_18() { return &___U3ChasSelectionU3Ek__BackingField_18; }
inline void set_U3ChasSelectionU3Ek__BackingField_18(bool value)
{
___U3ChasSelectionU3Ek__BackingField_18 = value;
}
inline static int32_t get_offset_of_m_CanvasGroupCache_19() { return static_cast<int32_t>(offsetof(Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A, ___m_CanvasGroupCache_19)); }
inline List_1_t053DAB6E2110E276A0339D73497193F464BC1F82 * get_m_CanvasGroupCache_19() const { return ___m_CanvasGroupCache_19; }
inline List_1_t053DAB6E2110E276A0339D73497193F464BC1F82 ** get_address_of_m_CanvasGroupCache_19() { return &___m_CanvasGroupCache_19; }
inline void set_m_CanvasGroupCache_19(List_1_t053DAB6E2110E276A0339D73497193F464BC1F82 * value)
{
___m_CanvasGroupCache_19 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_CanvasGroupCache_19), (void*)value);
}
};
struct Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A_StaticFields
{
public:
// UnityEngine.UI.Selectable[] UnityEngine.UI.Selectable::s_Selectables
SelectableU5BU5D_t98F7C5A863B20CD5DBE49CE288038BA954C83F02* ___s_Selectables_4;
// System.Int32 UnityEngine.UI.Selectable::s_SelectableCount
int32_t ___s_SelectableCount_5;
// System.Boolean UnityEngine.UI.Selectable::s_IsDirty
bool ___s_IsDirty_6;
public:
inline static int32_t get_offset_of_s_Selectables_4() { return static_cast<int32_t>(offsetof(Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A_StaticFields, ___s_Selectables_4)); }
inline SelectableU5BU5D_t98F7C5A863B20CD5DBE49CE288038BA954C83F02* get_s_Selectables_4() const { return ___s_Selectables_4; }
inline SelectableU5BU5D_t98F7C5A863B20CD5DBE49CE288038BA954C83F02** get_address_of_s_Selectables_4() { return &___s_Selectables_4; }
inline void set_s_Selectables_4(SelectableU5BU5D_t98F7C5A863B20CD5DBE49CE288038BA954C83F02* value)
{
___s_Selectables_4 = value;
Il2CppCodeGenWriteBarrier((void**)(&___s_Selectables_4), (void*)value);
}
inline static int32_t get_offset_of_s_SelectableCount_5() { return static_cast<int32_t>(offsetof(Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A_StaticFields, ___s_SelectableCount_5)); }
inline int32_t get_s_SelectableCount_5() const { return ___s_SelectableCount_5; }
inline int32_t* get_address_of_s_SelectableCount_5() { return &___s_SelectableCount_5; }
inline void set_s_SelectableCount_5(int32_t value)
{
___s_SelectableCount_5 = value;
}
inline static int32_t get_offset_of_s_IsDirty_6() { return static_cast<int32_t>(offsetof(Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A_StaticFields, ___s_IsDirty_6)); }
inline bool get_s_IsDirty_6() const { return ___s_IsDirty_6; }
inline bool* get_address_of_s_IsDirty_6() { return &___s_IsDirty_6; }
inline void set_s_IsDirty_6(bool value)
{
___s_IsDirty_6 = value;
}
};
// UnityEngine.XR.ARFoundation.ARRaycastManager
struct ARRaycastManager_t81A9513150BA5BE536DF064F1C6DE73349A60BE7 : public SubsystemLifecycleManager_2_tDE11645ED850AA7739D57BAF17A648834DB2CD5B
{
public:
// UnityEngine.XR.ARFoundation.ARSessionOrigin UnityEngine.XR.ARFoundation.ARRaycastManager::m_SessionOrigin
ARSessionOrigin_t61463C0A24AF925CF219B6C3F1720325C96720EF * ___m_SessionOrigin_8;
// System.Func`4<UnityEngine.Vector2,UnityEngine.XR.ARSubsystems.TrackableType,Unity.Collections.Allocator,Unity.Collections.NativeArray`1<UnityEngine.XR.ARSubsystems.XRRaycastHit>> UnityEngine.XR.ARFoundation.ARRaycastManager::m_RaycastViewportDelegate
Func_4_t5D589FB938B29FA2A1EF1FEC2CBA1201FF0C9A02 * ___m_RaycastViewportDelegate_9;
// System.Func`4<UnityEngine.Ray,UnityEngine.XR.ARSubsystems.TrackableType,Unity.Collections.Allocator,Unity.Collections.NativeArray`1<UnityEngine.XR.ARSubsystems.XRRaycastHit>> UnityEngine.XR.ARFoundation.ARRaycastManager::m_RaycastRayDelegate
Func_4_t127C0519F4FBF1149F38B4E895BA95F8E83EE659 * ___m_RaycastRayDelegate_10;
// System.Collections.Generic.List`1<UnityEngine.XR.ARFoundation.IRaycaster> UnityEngine.XR.ARFoundation.ARRaycastManager::m_Raycasters
List_1_tCF216E059678E6F86943670619732CE72CD5BC19 * ___m_Raycasters_11;
public:
inline static int32_t get_offset_of_m_SessionOrigin_8() { return static_cast<int32_t>(offsetof(ARRaycastManager_t81A9513150BA5BE536DF064F1C6DE73349A60BE7, ___m_SessionOrigin_8)); }
inline ARSessionOrigin_t61463C0A24AF925CF219B6C3F1720325C96720EF * get_m_SessionOrigin_8() const { return ___m_SessionOrigin_8; }
inline ARSessionOrigin_t61463C0A24AF925CF219B6C3F1720325C96720EF ** get_address_of_m_SessionOrigin_8() { return &___m_SessionOrigin_8; }
inline void set_m_SessionOrigin_8(ARSessionOrigin_t61463C0A24AF925CF219B6C3F1720325C96720EF * value)
{
___m_SessionOrigin_8 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_SessionOrigin_8), (void*)value);
}
inline static int32_t get_offset_of_m_RaycastViewportDelegate_9() { return static_cast<int32_t>(offsetof(ARRaycastManager_t81A9513150BA5BE536DF064F1C6DE73349A60BE7, ___m_RaycastViewportDelegate_9)); }
inline Func_4_t5D589FB938B29FA2A1EF1FEC2CBA1201FF0C9A02 * get_m_RaycastViewportDelegate_9() const { return ___m_RaycastViewportDelegate_9; }
inline Func_4_t5D589FB938B29FA2A1EF1FEC2CBA1201FF0C9A02 ** get_address_of_m_RaycastViewportDelegate_9() { return &___m_RaycastViewportDelegate_9; }
inline void set_m_RaycastViewportDelegate_9(Func_4_t5D589FB938B29FA2A1EF1FEC2CBA1201FF0C9A02 * value)
{
___m_RaycastViewportDelegate_9 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_RaycastViewportDelegate_9), (void*)value);
}
inline static int32_t get_offset_of_m_RaycastRayDelegate_10() { return static_cast<int32_t>(offsetof(ARRaycastManager_t81A9513150BA5BE536DF064F1C6DE73349A60BE7, ___m_RaycastRayDelegate_10)); }
inline Func_4_t127C0519F4FBF1149F38B4E895BA95F8E83EE659 * get_m_RaycastRayDelegate_10() const { return ___m_RaycastRayDelegate_10; }
inline Func_4_t127C0519F4FBF1149F38B4E895BA95F8E83EE659 ** get_address_of_m_RaycastRayDelegate_10() { return &___m_RaycastRayDelegate_10; }
inline void set_m_RaycastRayDelegate_10(Func_4_t127C0519F4FBF1149F38B4E895BA95F8E83EE659 * value)
{
___m_RaycastRayDelegate_10 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_RaycastRayDelegate_10), (void*)value);
}
inline static int32_t get_offset_of_m_Raycasters_11() { return static_cast<int32_t>(offsetof(ARRaycastManager_t81A9513150BA5BE536DF064F1C6DE73349A60BE7, ___m_Raycasters_11)); }
inline List_1_tCF216E059678E6F86943670619732CE72CD5BC19 * get_m_Raycasters_11() const { return ___m_Raycasters_11; }
inline List_1_tCF216E059678E6F86943670619732CE72CD5BC19 ** get_address_of_m_Raycasters_11() { return &___m_Raycasters_11; }
inline void set_m_Raycasters_11(List_1_tCF216E059678E6F86943670619732CE72CD5BC19 * value)
{
___m_Raycasters_11 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_Raycasters_11), (void*)value);
}
};
struct ARRaycastManager_t81A9513150BA5BE536DF064F1C6DE73349A60BE7_StaticFields
{
public:
// System.Comparison`1<UnityEngine.XR.ARFoundation.ARRaycastHit> UnityEngine.XR.ARFoundation.ARRaycastManager::s_RaycastHitComparer
Comparison_1_tE207337DE1F503EEC6370260BFAB53232F5224B3 * ___s_RaycastHitComparer_6;
// System.Collections.Generic.List`1<Unity.Collections.NativeArray`1<UnityEngine.XR.ARSubsystems.XRRaycastHit>> UnityEngine.XR.ARFoundation.ARRaycastManager::s_NativeRaycastHits
List_1_tB4ACC0E738125FD48DF94969067CC04FE44C01DD * ___s_NativeRaycastHits_7;
public:
inline static int32_t get_offset_of_s_RaycastHitComparer_6() { return static_cast<int32_t>(offsetof(ARRaycastManager_t81A9513150BA5BE536DF064F1C6DE73349A60BE7_StaticFields, ___s_RaycastHitComparer_6)); }
inline Comparison_1_tE207337DE1F503EEC6370260BFAB53232F5224B3 * get_s_RaycastHitComparer_6() const { return ___s_RaycastHitComparer_6; }
inline Comparison_1_tE207337DE1F503EEC6370260BFAB53232F5224B3 ** get_address_of_s_RaycastHitComparer_6() { return &___s_RaycastHitComparer_6; }
inline void set_s_RaycastHitComparer_6(Comparison_1_tE207337DE1F503EEC6370260BFAB53232F5224B3 * value)
{
___s_RaycastHitComparer_6 = value;
Il2CppCodeGenWriteBarrier((void**)(&___s_RaycastHitComparer_6), (void*)value);
}
inline static int32_t get_offset_of_s_NativeRaycastHits_7() { return static_cast<int32_t>(offsetof(ARRaycastManager_t81A9513150BA5BE536DF064F1C6DE73349A60BE7_StaticFields, ___s_NativeRaycastHits_7)); }
inline List_1_tB4ACC0E738125FD48DF94969067CC04FE44C01DD * get_s_NativeRaycastHits_7() const { return ___s_NativeRaycastHits_7; }
inline List_1_tB4ACC0E738125FD48DF94969067CC04FE44C01DD ** get_address_of_s_NativeRaycastHits_7() { return &___s_NativeRaycastHits_7; }
inline void set_s_NativeRaycastHits_7(List_1_tB4ACC0E738125FD48DF94969067CC04FE44C01DD * value)
{
___s_NativeRaycastHits_7 = value;
Il2CppCodeGenWriteBarrier((void**)(&___s_NativeRaycastHits_7), (void*)value);
}
};
// UnityEngine.UI.MaskableGraphic
struct MaskableGraphic_tDA46A5925C6A2101217C9F52C855B5C1A36A7A0F : public Graphic_tBA2C3EF11D3DAEBB57F6879AB0BB4F8BD40D00D8
{
public:
// System.Boolean UnityEngine.UI.MaskableGraphic::m_ShouldRecalculateStencil
bool ___m_ShouldRecalculateStencil_25;
// UnityEngine.Material UnityEngine.UI.MaskableGraphic::m_MaskMaterial
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___m_MaskMaterial_26;
// UnityEngine.UI.RectMask2D UnityEngine.UI.MaskableGraphic::m_ParentMask
RectMask2D_tF2CF19F2A4FE2D2FFC7E6F7809374757CA2F377B * ___m_ParentMask_27;
// System.Boolean UnityEngine.UI.MaskableGraphic::m_Maskable
bool ___m_Maskable_28;
// System.Boolean UnityEngine.UI.MaskableGraphic::m_IncludeForMasking
bool ___m_IncludeForMasking_29;
// UnityEngine.UI.MaskableGraphic_CullStateChangedEvent UnityEngine.UI.MaskableGraphic::m_OnCullStateChanged
CullStateChangedEvent_t6BC3E87DBC04B585798460D55F56B86C23B62FE4 * ___m_OnCullStateChanged_30;
// System.Boolean UnityEngine.UI.MaskableGraphic::m_ShouldRecalculate
bool ___m_ShouldRecalculate_31;
// System.Int32 UnityEngine.UI.MaskableGraphic::m_StencilValue
int32_t ___m_StencilValue_32;
// UnityEngine.Vector3[] UnityEngine.UI.MaskableGraphic::m_Corners
Vector3U5BU5D_tB9EC3346CC4A0EA5447D968E84A9AC1F6F372C28* ___m_Corners_33;
public:
inline static int32_t get_offset_of_m_ShouldRecalculateStencil_25() { return static_cast<int32_t>(offsetof(MaskableGraphic_tDA46A5925C6A2101217C9F52C855B5C1A36A7A0F, ___m_ShouldRecalculateStencil_25)); }
inline bool get_m_ShouldRecalculateStencil_25() const { return ___m_ShouldRecalculateStencil_25; }
inline bool* get_address_of_m_ShouldRecalculateStencil_25() { return &___m_ShouldRecalculateStencil_25; }
inline void set_m_ShouldRecalculateStencil_25(bool value)
{
___m_ShouldRecalculateStencil_25 = value;
}
inline static int32_t get_offset_of_m_MaskMaterial_26() { return static_cast<int32_t>(offsetof(MaskableGraphic_tDA46A5925C6A2101217C9F52C855B5C1A36A7A0F, ___m_MaskMaterial_26)); }
inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * get_m_MaskMaterial_26() const { return ___m_MaskMaterial_26; }
inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 ** get_address_of_m_MaskMaterial_26() { return &___m_MaskMaterial_26; }
inline void set_m_MaskMaterial_26(Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * value)
{
___m_MaskMaterial_26 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_MaskMaterial_26), (void*)value);
}
inline static int32_t get_offset_of_m_ParentMask_27() { return static_cast<int32_t>(offsetof(MaskableGraphic_tDA46A5925C6A2101217C9F52C855B5C1A36A7A0F, ___m_ParentMask_27)); }
inline RectMask2D_tF2CF19F2A4FE2D2FFC7E6F7809374757CA2F377B * get_m_ParentMask_27() const { return ___m_ParentMask_27; }
inline RectMask2D_tF2CF19F2A4FE2D2FFC7E6F7809374757CA2F377B ** get_address_of_m_ParentMask_27() { return &___m_ParentMask_27; }
inline void set_m_ParentMask_27(RectMask2D_tF2CF19F2A4FE2D2FFC7E6F7809374757CA2F377B * value)
{
___m_ParentMask_27 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_ParentMask_27), (void*)value);
}
inline static int32_t get_offset_of_m_Maskable_28() { return static_cast<int32_t>(offsetof(MaskableGraphic_tDA46A5925C6A2101217C9F52C855B5C1A36A7A0F, ___m_Maskable_28)); }
inline bool get_m_Maskable_28() const { return ___m_Maskable_28; }
inline bool* get_address_of_m_Maskable_28() { return &___m_Maskable_28; }
inline void set_m_Maskable_28(bool value)
{
___m_Maskable_28 = value;
}
inline static int32_t get_offset_of_m_IncludeForMasking_29() { return static_cast<int32_t>(offsetof(MaskableGraphic_tDA46A5925C6A2101217C9F52C855B5C1A36A7A0F, ___m_IncludeForMasking_29)); }
inline bool get_m_IncludeForMasking_29() const { return ___m_IncludeForMasking_29; }
inline bool* get_address_of_m_IncludeForMasking_29() { return &___m_IncludeForMasking_29; }
inline void set_m_IncludeForMasking_29(bool value)
{
___m_IncludeForMasking_29 = value;
}
inline static int32_t get_offset_of_m_OnCullStateChanged_30() { return static_cast<int32_t>(offsetof(MaskableGraphic_tDA46A5925C6A2101217C9F52C855B5C1A36A7A0F, ___m_OnCullStateChanged_30)); }
inline CullStateChangedEvent_t6BC3E87DBC04B585798460D55F56B86C23B62FE4 * get_m_OnCullStateChanged_30() const { return ___m_OnCullStateChanged_30; }
inline CullStateChangedEvent_t6BC3E87DBC04B585798460D55F56B86C23B62FE4 ** get_address_of_m_OnCullStateChanged_30() { return &___m_OnCullStateChanged_30; }
inline void set_m_OnCullStateChanged_30(CullStateChangedEvent_t6BC3E87DBC04B585798460D55F56B86C23B62FE4 * value)
{
___m_OnCullStateChanged_30 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_OnCullStateChanged_30), (void*)value);
}
inline static int32_t get_offset_of_m_ShouldRecalculate_31() { return static_cast<int32_t>(offsetof(MaskableGraphic_tDA46A5925C6A2101217C9F52C855B5C1A36A7A0F, ___m_ShouldRecalculate_31)); }
inline bool get_m_ShouldRecalculate_31() const { return ___m_ShouldRecalculate_31; }
inline bool* get_address_of_m_ShouldRecalculate_31() { return &___m_ShouldRecalculate_31; }
inline void set_m_ShouldRecalculate_31(bool value)
{
___m_ShouldRecalculate_31 = value;
}
inline static int32_t get_offset_of_m_StencilValue_32() { return static_cast<int32_t>(offsetof(MaskableGraphic_tDA46A5925C6A2101217C9F52C855B5C1A36A7A0F, ___m_StencilValue_32)); }
inline int32_t get_m_StencilValue_32() const { return ___m_StencilValue_32; }
inline int32_t* get_address_of_m_StencilValue_32() { return &___m_StencilValue_32; }
inline void set_m_StencilValue_32(int32_t value)
{
___m_StencilValue_32 = value;
}
inline static int32_t get_offset_of_m_Corners_33() { return static_cast<int32_t>(offsetof(MaskableGraphic_tDA46A5925C6A2101217C9F52C855B5C1A36A7A0F, ___m_Corners_33)); }
inline Vector3U5BU5D_tB9EC3346CC4A0EA5447D968E84A9AC1F6F372C28* get_m_Corners_33() const { return ___m_Corners_33; }
inline Vector3U5BU5D_tB9EC3346CC4A0EA5447D968E84A9AC1F6F372C28** get_address_of_m_Corners_33() { return &___m_Corners_33; }
inline void set_m_Corners_33(Vector3U5BU5D_tB9EC3346CC4A0EA5447D968E84A9AC1F6F372C28* value)
{
___m_Corners_33 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_Corners_33), (void*)value);
}
};
// UnityEngine.UI.Slider
struct Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09 : public Selectable_tAA9065030FE0468018DEC880302F95FEA9C0133A
{
public:
// UnityEngine.RectTransform UnityEngine.UI.Slider::m_FillRect
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * ___m_FillRect_20;
// UnityEngine.RectTransform UnityEngine.UI.Slider::m_HandleRect
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * ___m_HandleRect_21;
// UnityEngine.UI.Slider_Direction UnityEngine.UI.Slider::m_Direction
int32_t ___m_Direction_22;
// System.Single UnityEngine.UI.Slider::m_MinValue
float ___m_MinValue_23;
// System.Single UnityEngine.UI.Slider::m_MaxValue
float ___m_MaxValue_24;
// System.Boolean UnityEngine.UI.Slider::m_WholeNumbers
bool ___m_WholeNumbers_25;
// System.Single UnityEngine.UI.Slider::m_Value
float ___m_Value_26;
// UnityEngine.UI.Slider_SliderEvent UnityEngine.UI.Slider::m_OnValueChanged
SliderEvent_t64A824F56F80FC8E2F233F0A0FB0821702DF416C * ___m_OnValueChanged_27;
// UnityEngine.UI.Image UnityEngine.UI.Slider::m_FillImage
Image_t18FED07D8646917E1C563745518CF3DD57FF0B3E * ___m_FillImage_28;
// UnityEngine.Transform UnityEngine.UI.Slider::m_FillTransform
Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * ___m_FillTransform_29;
// UnityEngine.RectTransform UnityEngine.UI.Slider::m_FillContainerRect
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * ___m_FillContainerRect_30;
// UnityEngine.Transform UnityEngine.UI.Slider::m_HandleTransform
Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * ___m_HandleTransform_31;
// UnityEngine.RectTransform UnityEngine.UI.Slider::m_HandleContainerRect
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * ___m_HandleContainerRect_32;
// UnityEngine.Vector2 UnityEngine.UI.Slider::m_Offset
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___m_Offset_33;
// UnityEngine.DrivenRectTransformTracker UnityEngine.UI.Slider::m_Tracker
DrivenRectTransformTracker_tB8FBBE24EEE9618CA32E4B3CF52F4AD7FDDEBE03 ___m_Tracker_34;
// System.Boolean UnityEngine.UI.Slider::m_DelayedUpdateVisuals
bool ___m_DelayedUpdateVisuals_35;
public:
inline static int32_t get_offset_of_m_FillRect_20() { return static_cast<int32_t>(offsetof(Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09, ___m_FillRect_20)); }
inline RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * get_m_FillRect_20() const { return ___m_FillRect_20; }
inline RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 ** get_address_of_m_FillRect_20() { return &___m_FillRect_20; }
inline void set_m_FillRect_20(RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * value)
{
___m_FillRect_20 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_FillRect_20), (void*)value);
}
inline static int32_t get_offset_of_m_HandleRect_21() { return static_cast<int32_t>(offsetof(Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09, ___m_HandleRect_21)); }
inline RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * get_m_HandleRect_21() const { return ___m_HandleRect_21; }
inline RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 ** get_address_of_m_HandleRect_21() { return &___m_HandleRect_21; }
inline void set_m_HandleRect_21(RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * value)
{
___m_HandleRect_21 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_HandleRect_21), (void*)value);
}
inline static int32_t get_offset_of_m_Direction_22() { return static_cast<int32_t>(offsetof(Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09, ___m_Direction_22)); }
inline int32_t get_m_Direction_22() const { return ___m_Direction_22; }
inline int32_t* get_address_of_m_Direction_22() { return &___m_Direction_22; }
inline void set_m_Direction_22(int32_t value)
{
___m_Direction_22 = value;
}
inline static int32_t get_offset_of_m_MinValue_23() { return static_cast<int32_t>(offsetof(Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09, ___m_MinValue_23)); }
inline float get_m_MinValue_23() const { return ___m_MinValue_23; }
inline float* get_address_of_m_MinValue_23() { return &___m_MinValue_23; }
inline void set_m_MinValue_23(float value)
{
___m_MinValue_23 = value;
}
inline static int32_t get_offset_of_m_MaxValue_24() { return static_cast<int32_t>(offsetof(Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09, ___m_MaxValue_24)); }
inline float get_m_MaxValue_24() const { return ___m_MaxValue_24; }
inline float* get_address_of_m_MaxValue_24() { return &___m_MaxValue_24; }
inline void set_m_MaxValue_24(float value)
{
___m_MaxValue_24 = value;
}
inline static int32_t get_offset_of_m_WholeNumbers_25() { return static_cast<int32_t>(offsetof(Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09, ___m_WholeNumbers_25)); }
inline bool get_m_WholeNumbers_25() const { return ___m_WholeNumbers_25; }
inline bool* get_address_of_m_WholeNumbers_25() { return &___m_WholeNumbers_25; }
inline void set_m_WholeNumbers_25(bool value)
{
___m_WholeNumbers_25 = value;
}
inline static int32_t get_offset_of_m_Value_26() { return static_cast<int32_t>(offsetof(Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09, ___m_Value_26)); }
inline float get_m_Value_26() const { return ___m_Value_26; }
inline float* get_address_of_m_Value_26() { return &___m_Value_26; }
inline void set_m_Value_26(float value)
{
___m_Value_26 = value;
}
inline static int32_t get_offset_of_m_OnValueChanged_27() { return static_cast<int32_t>(offsetof(Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09, ___m_OnValueChanged_27)); }
inline SliderEvent_t64A824F56F80FC8E2F233F0A0FB0821702DF416C * get_m_OnValueChanged_27() const { return ___m_OnValueChanged_27; }
inline SliderEvent_t64A824F56F80FC8E2F233F0A0FB0821702DF416C ** get_address_of_m_OnValueChanged_27() { return &___m_OnValueChanged_27; }
inline void set_m_OnValueChanged_27(SliderEvent_t64A824F56F80FC8E2F233F0A0FB0821702DF416C * value)
{
___m_OnValueChanged_27 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_OnValueChanged_27), (void*)value);
}
inline static int32_t get_offset_of_m_FillImage_28() { return static_cast<int32_t>(offsetof(Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09, ___m_FillImage_28)); }
inline Image_t18FED07D8646917E1C563745518CF3DD57FF0B3E * get_m_FillImage_28() const { return ___m_FillImage_28; }
inline Image_t18FED07D8646917E1C563745518CF3DD57FF0B3E ** get_address_of_m_FillImage_28() { return &___m_FillImage_28; }
inline void set_m_FillImage_28(Image_t18FED07D8646917E1C563745518CF3DD57FF0B3E * value)
{
___m_FillImage_28 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_FillImage_28), (void*)value);
}
inline static int32_t get_offset_of_m_FillTransform_29() { return static_cast<int32_t>(offsetof(Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09, ___m_FillTransform_29)); }
inline Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * get_m_FillTransform_29() const { return ___m_FillTransform_29; }
inline Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA ** get_address_of_m_FillTransform_29() { return &___m_FillTransform_29; }
inline void set_m_FillTransform_29(Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * value)
{
___m_FillTransform_29 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_FillTransform_29), (void*)value);
}
inline static int32_t get_offset_of_m_FillContainerRect_30() { return static_cast<int32_t>(offsetof(Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09, ___m_FillContainerRect_30)); }
inline RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * get_m_FillContainerRect_30() const { return ___m_FillContainerRect_30; }
inline RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 ** get_address_of_m_FillContainerRect_30() { return &___m_FillContainerRect_30; }
inline void set_m_FillContainerRect_30(RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * value)
{
___m_FillContainerRect_30 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_FillContainerRect_30), (void*)value);
}
inline static int32_t get_offset_of_m_HandleTransform_31() { return static_cast<int32_t>(offsetof(Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09, ___m_HandleTransform_31)); }
inline Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * get_m_HandleTransform_31() const { return ___m_HandleTransform_31; }
inline Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA ** get_address_of_m_HandleTransform_31() { return &___m_HandleTransform_31; }
inline void set_m_HandleTransform_31(Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * value)
{
___m_HandleTransform_31 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_HandleTransform_31), (void*)value);
}
inline static int32_t get_offset_of_m_HandleContainerRect_32() { return static_cast<int32_t>(offsetof(Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09, ___m_HandleContainerRect_32)); }
inline RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * get_m_HandleContainerRect_32() const { return ___m_HandleContainerRect_32; }
inline RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 ** get_address_of_m_HandleContainerRect_32() { return &___m_HandleContainerRect_32; }
inline void set_m_HandleContainerRect_32(RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * value)
{
___m_HandleContainerRect_32 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_HandleContainerRect_32), (void*)value);
}
inline static int32_t get_offset_of_m_Offset_33() { return static_cast<int32_t>(offsetof(Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09, ___m_Offset_33)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_m_Offset_33() const { return ___m_Offset_33; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_m_Offset_33() { return &___m_Offset_33; }
inline void set_m_Offset_33(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___m_Offset_33 = value;
}
inline static int32_t get_offset_of_m_Tracker_34() { return static_cast<int32_t>(offsetof(Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09, ___m_Tracker_34)); }
inline DrivenRectTransformTracker_tB8FBBE24EEE9618CA32E4B3CF52F4AD7FDDEBE03 get_m_Tracker_34() const { return ___m_Tracker_34; }
inline DrivenRectTransformTracker_tB8FBBE24EEE9618CA32E4B3CF52F4AD7FDDEBE03 * get_address_of_m_Tracker_34() { return &___m_Tracker_34; }
inline void set_m_Tracker_34(DrivenRectTransformTracker_tB8FBBE24EEE9618CA32E4B3CF52F4AD7FDDEBE03 value)
{
___m_Tracker_34 = value;
}
inline static int32_t get_offset_of_m_DelayedUpdateVisuals_35() { return static_cast<int32_t>(offsetof(Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09, ___m_DelayedUpdateVisuals_35)); }
inline bool get_m_DelayedUpdateVisuals_35() const { return ___m_DelayedUpdateVisuals_35; }
inline bool* get_address_of_m_DelayedUpdateVisuals_35() { return &___m_DelayedUpdateVisuals_35; }
inline void set_m_DelayedUpdateVisuals_35(bool value)
{
___m_DelayedUpdateVisuals_35 = value;
}
};
// TMPro.TMP_Text
struct TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7 : public MaskableGraphic_tDA46A5925C6A2101217C9F52C855B5C1A36A7A0F
{
public:
// System.String TMPro.TMP_Text::m_text
String_t* ___m_text_34;
// System.Boolean TMPro.TMP_Text::m_isRightToLeft
bool ___m_isRightToLeft_35;
// TMPro.TMP_FontAsset TMPro.TMP_Text::m_fontAsset
TMP_FontAsset_t44D2006105B39FB33AE5A0ADF07A7EF36C72385C * ___m_fontAsset_36;
// TMPro.TMP_FontAsset TMPro.TMP_Text::m_currentFontAsset
TMP_FontAsset_t44D2006105B39FB33AE5A0ADF07A7EF36C72385C * ___m_currentFontAsset_37;
// System.Boolean TMPro.TMP_Text::m_isSDFShader
bool ___m_isSDFShader_38;
// UnityEngine.Material TMPro.TMP_Text::m_sharedMaterial
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___m_sharedMaterial_39;
// UnityEngine.Material TMPro.TMP_Text::m_currentMaterial
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___m_currentMaterial_40;
// TMPro.MaterialReference[] TMPro.TMP_Text::m_materialReferences
MaterialReferenceU5BU5D_t01EC9C1C00A504C2EF9FBAF95DE26BB88E9B743B* ___m_materialReferences_41;
// System.Collections.Generic.Dictionary`2<System.Int32,System.Int32> TMPro.TMP_Text::m_materialReferenceIndexLookup
Dictionary_2_tFE2A3F3BDE1290B85039D74816BB1FE1109BE0F8 * ___m_materialReferenceIndexLookup_42;
// TMPro.TMP_RichTextTagStack`1<TMPro.MaterialReference> TMPro.TMP_Text::m_materialReferenceStack
TMP_RichTextTagStack_1_t9742B1BC2B58D513502935F599F4AF09FFC379A9 ___m_materialReferenceStack_43;
// System.Int32 TMPro.TMP_Text::m_currentMaterialIndex
int32_t ___m_currentMaterialIndex_44;
// UnityEngine.Material[] TMPro.TMP_Text::m_fontSharedMaterials
MaterialU5BU5D_tD2350F98F2A1BB6C7A5FBFE1474DFC47331AB398* ___m_fontSharedMaterials_45;
// UnityEngine.Material TMPro.TMP_Text::m_fontMaterial
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___m_fontMaterial_46;
// UnityEngine.Material[] TMPro.TMP_Text::m_fontMaterials
MaterialU5BU5D_tD2350F98F2A1BB6C7A5FBFE1474DFC47331AB398* ___m_fontMaterials_47;
// System.Boolean TMPro.TMP_Text::m_isMaterialDirty
bool ___m_isMaterialDirty_48;
// UnityEngine.Color32 TMPro.TMP_Text::m_fontColor32
Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 ___m_fontColor32_49;
// UnityEngine.Color TMPro.TMP_Text::m_fontColor
Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 ___m_fontColor_50;
// UnityEngine.Color32 TMPro.TMP_Text::m_underlineColor
Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 ___m_underlineColor_52;
// UnityEngine.Color32 TMPro.TMP_Text::m_strikethroughColor
Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 ___m_strikethroughColor_53;
// UnityEngine.Color32 TMPro.TMP_Text::m_highlightColor
Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 ___m_highlightColor_54;
// UnityEngine.Vector4 TMPro.TMP_Text::m_highlightPadding
Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E ___m_highlightPadding_55;
// System.Boolean TMPro.TMP_Text::m_enableVertexGradient
bool ___m_enableVertexGradient_56;
// TMPro.ColorMode TMPro.TMP_Text::m_colorMode
int32_t ___m_colorMode_57;
// TMPro.VertexGradient TMPro.TMP_Text::m_fontColorGradient
VertexGradient_tDDAAE14E70CADA44B1B69F228CFF837C67EF6F9A ___m_fontColorGradient_58;
// TMPro.TMP_ColorGradient TMPro.TMP_Text::m_fontColorGradientPreset
TMP_ColorGradient_tEA29C4736B1786301A803B6C0FB30107A10D79B7 * ___m_fontColorGradientPreset_59;
// TMPro.TMP_SpriteAsset TMPro.TMP_Text::m_spriteAsset
TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 * ___m_spriteAsset_60;
// System.Boolean TMPro.TMP_Text::m_tintAllSprites
bool ___m_tintAllSprites_61;
// System.Boolean TMPro.TMP_Text::m_tintSprite
bool ___m_tintSprite_62;
// UnityEngine.Color32 TMPro.TMP_Text::m_spriteColor
Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 ___m_spriteColor_63;
// System.Boolean TMPro.TMP_Text::m_overrideHtmlColors
bool ___m_overrideHtmlColors_64;
// UnityEngine.Color32 TMPro.TMP_Text::m_faceColor
Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 ___m_faceColor_65;
// UnityEngine.Color32 TMPro.TMP_Text::m_outlineColor
Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 ___m_outlineColor_66;
// System.Single TMPro.TMP_Text::m_outlineWidth
float ___m_outlineWidth_67;
// System.Single TMPro.TMP_Text::m_fontSize
float ___m_fontSize_68;
// System.Single TMPro.TMP_Text::m_currentFontSize
float ___m_currentFontSize_69;
// System.Single TMPro.TMP_Text::m_fontSizeBase
float ___m_fontSizeBase_70;
// TMPro.TMP_RichTextTagStack`1<System.Single> TMPro.TMP_Text::m_sizeStack
TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 ___m_sizeStack_71;
// TMPro.FontWeight TMPro.TMP_Text::m_fontWeight
int32_t ___m_fontWeight_72;
// TMPro.FontWeight TMPro.TMP_Text::m_FontWeightInternal
int32_t ___m_FontWeightInternal_73;
// TMPro.TMP_RichTextTagStack`1<TMPro.FontWeight> TMPro.TMP_Text::m_FontWeightStack
TMP_RichTextTagStack_1_t9B6C6D23490A525AEA83F4301C7523574055098B ___m_FontWeightStack_74;
// System.Boolean TMPro.TMP_Text::m_enableAutoSizing
bool ___m_enableAutoSizing_75;
// System.Single TMPro.TMP_Text::m_maxFontSize
float ___m_maxFontSize_76;
// System.Single TMPro.TMP_Text::m_minFontSize
float ___m_minFontSize_77;
// System.Single TMPro.TMP_Text::m_fontSizeMin
float ___m_fontSizeMin_78;
// System.Single TMPro.TMP_Text::m_fontSizeMax
float ___m_fontSizeMax_79;
// TMPro.FontStyles TMPro.TMP_Text::m_fontStyle
int32_t ___m_fontStyle_80;
// TMPro.FontStyles TMPro.TMP_Text::m_FontStyleInternal
int32_t ___m_FontStyleInternal_81;
// TMPro.TMP_FontStyleStack TMPro.TMP_Text::m_fontStyleStack
TMP_FontStyleStack_tC7146DA5AD4540B2C8733862D785AD50AD229E84 ___m_fontStyleStack_82;
// System.Boolean TMPro.TMP_Text::m_isUsingBold
bool ___m_isUsingBold_83;
// TMPro.TextAlignmentOptions TMPro.TMP_Text::m_textAlignment
int32_t ___m_textAlignment_84;
// TMPro.TextAlignmentOptions TMPro.TMP_Text::m_lineJustification
int32_t ___m_lineJustification_85;
// TMPro.TMP_RichTextTagStack`1<TMPro.TextAlignmentOptions> TMPro.TMP_Text::m_lineJustificationStack
TMP_RichTextTagStack_1_t435AA844A7DBDA7E54BCDA3C53622D4B28952115 ___m_lineJustificationStack_86;
// UnityEngine.Vector3[] TMPro.TMP_Text::m_textContainerLocalCorners
Vector3U5BU5D_tB9EC3346CC4A0EA5447D968E84A9AC1F6F372C28* ___m_textContainerLocalCorners_87;
// System.Single TMPro.TMP_Text::m_characterSpacing
float ___m_characterSpacing_88;
// System.Single TMPro.TMP_Text::m_cSpacing
float ___m_cSpacing_89;
// System.Single TMPro.TMP_Text::m_monoSpacing
float ___m_monoSpacing_90;
// System.Single TMPro.TMP_Text::m_wordSpacing
float ___m_wordSpacing_91;
// System.Single TMPro.TMP_Text::m_lineSpacing
float ___m_lineSpacing_92;
// System.Single TMPro.TMP_Text::m_lineSpacingDelta
float ___m_lineSpacingDelta_93;
// System.Single TMPro.TMP_Text::m_lineHeight
float ___m_lineHeight_94;
// System.Single TMPro.TMP_Text::m_lineSpacingMax
float ___m_lineSpacingMax_95;
// System.Single TMPro.TMP_Text::m_paragraphSpacing
float ___m_paragraphSpacing_96;
// System.Single TMPro.TMP_Text::m_charWidthMaxAdj
float ___m_charWidthMaxAdj_97;
// System.Single TMPro.TMP_Text::m_charWidthAdjDelta
float ___m_charWidthAdjDelta_98;
// System.Boolean TMPro.TMP_Text::m_enableWordWrapping
bool ___m_enableWordWrapping_99;
// System.Boolean TMPro.TMP_Text::m_isCharacterWrappingEnabled
bool ___m_isCharacterWrappingEnabled_100;
// System.Boolean TMPro.TMP_Text::m_isNonBreakingSpace
bool ___m_isNonBreakingSpace_101;
// System.Boolean TMPro.TMP_Text::m_isIgnoringAlignment
bool ___m_isIgnoringAlignment_102;
// System.Single TMPro.TMP_Text::m_wordWrappingRatios
float ___m_wordWrappingRatios_103;
// TMPro.TextOverflowModes TMPro.TMP_Text::m_overflowMode
int32_t ___m_overflowMode_104;
// System.Int32 TMPro.TMP_Text::m_firstOverflowCharacterIndex
int32_t ___m_firstOverflowCharacterIndex_105;
// TMPro.TMP_Text TMPro.TMP_Text::m_linkedTextComponent
TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7 * ___m_linkedTextComponent_106;
// System.Boolean TMPro.TMP_Text::m_isLinkedTextComponent
bool ___m_isLinkedTextComponent_107;
// System.Boolean TMPro.TMP_Text::m_isTextTruncated
bool ___m_isTextTruncated_108;
// System.Boolean TMPro.TMP_Text::m_enableKerning
bool ___m_enableKerning_109;
// System.Boolean TMPro.TMP_Text::m_enableExtraPadding
bool ___m_enableExtraPadding_110;
// System.Boolean TMPro.TMP_Text::checkPaddingRequired
bool ___checkPaddingRequired_111;
// System.Boolean TMPro.TMP_Text::m_isRichText
bool ___m_isRichText_112;
// System.Boolean TMPro.TMP_Text::m_parseCtrlCharacters
bool ___m_parseCtrlCharacters_113;
// System.Boolean TMPro.TMP_Text::m_isOverlay
bool ___m_isOverlay_114;
// System.Boolean TMPro.TMP_Text::m_isOrthographic
bool ___m_isOrthographic_115;
// System.Boolean TMPro.TMP_Text::m_isCullingEnabled
bool ___m_isCullingEnabled_116;
// System.Boolean TMPro.TMP_Text::m_ignoreRectMaskCulling
bool ___m_ignoreRectMaskCulling_117;
// System.Boolean TMPro.TMP_Text::m_ignoreCulling
bool ___m_ignoreCulling_118;
// TMPro.TextureMappingOptions TMPro.TMP_Text::m_horizontalMapping
int32_t ___m_horizontalMapping_119;
// TMPro.TextureMappingOptions TMPro.TMP_Text::m_verticalMapping
int32_t ___m_verticalMapping_120;
// System.Single TMPro.TMP_Text::m_uvLineOffset
float ___m_uvLineOffset_121;
// TMPro.TextRenderFlags TMPro.TMP_Text::m_renderMode
int32_t ___m_renderMode_122;
// TMPro.VertexSortingOrder TMPro.TMP_Text::m_geometrySortingOrder
int32_t ___m_geometrySortingOrder_123;
// System.Boolean TMPro.TMP_Text::m_VertexBufferAutoSizeReduction
bool ___m_VertexBufferAutoSizeReduction_124;
// System.Int32 TMPro.TMP_Text::m_firstVisibleCharacter
int32_t ___m_firstVisibleCharacter_125;
// System.Int32 TMPro.TMP_Text::m_maxVisibleCharacters
int32_t ___m_maxVisibleCharacters_126;
// System.Int32 TMPro.TMP_Text::m_maxVisibleWords
int32_t ___m_maxVisibleWords_127;
// System.Int32 TMPro.TMP_Text::m_maxVisibleLines
int32_t ___m_maxVisibleLines_128;
// System.Boolean TMPro.TMP_Text::m_useMaxVisibleDescender
bool ___m_useMaxVisibleDescender_129;
// System.Int32 TMPro.TMP_Text::m_pageToDisplay
int32_t ___m_pageToDisplay_130;
// System.Boolean TMPro.TMP_Text::m_isNewPage
bool ___m_isNewPage_131;
// UnityEngine.Vector4 TMPro.TMP_Text::m_margin
Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E ___m_margin_132;
// System.Single TMPro.TMP_Text::m_marginLeft
float ___m_marginLeft_133;
// System.Single TMPro.TMP_Text::m_marginRight
float ___m_marginRight_134;
// System.Single TMPro.TMP_Text::m_marginWidth
float ___m_marginWidth_135;
// System.Single TMPro.TMP_Text::m_marginHeight
float ___m_marginHeight_136;
// System.Single TMPro.TMP_Text::m_width
float ___m_width_137;
// TMPro.TMP_TextInfo TMPro.TMP_Text::m_textInfo
TMP_TextInfo_tC40DAAB47C5BD5AD21B3F456D860474D96D9C181 * ___m_textInfo_138;
// System.Boolean TMPro.TMP_Text::m_havePropertiesChanged
bool ___m_havePropertiesChanged_139;
// System.Boolean TMPro.TMP_Text::m_isUsingLegacyAnimationComponent
bool ___m_isUsingLegacyAnimationComponent_140;
// UnityEngine.Transform TMPro.TMP_Text::m_transform
Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * ___m_transform_141;
// UnityEngine.RectTransform TMPro.TMP_Text::m_rectTransform
RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * ___m_rectTransform_142;
// System.Boolean TMPro.TMP_Text::<autoSizeTextContainer>k__BackingField
bool ___U3CautoSizeTextContainerU3Ek__BackingField_143;
// System.Boolean TMPro.TMP_Text::m_autoSizeTextContainer
bool ___m_autoSizeTextContainer_144;
// UnityEngine.Mesh TMPro.TMP_Text::m_mesh
Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C * ___m_mesh_145;
// System.Boolean TMPro.TMP_Text::m_isVolumetricText
bool ___m_isVolumetricText_146;
// TMPro.TMP_SpriteAnimator TMPro.TMP_Text::m_spriteAnimator
TMP_SpriteAnimator_tEB1A22D4A88DC5AAC3EFBDD8FD10B2A02C7B0D17 * ___m_spriteAnimator_147;
// System.Single TMPro.TMP_Text::m_flexibleHeight
float ___m_flexibleHeight_148;
// System.Single TMPro.TMP_Text::m_flexibleWidth
float ___m_flexibleWidth_149;
// System.Single TMPro.TMP_Text::m_minWidth
float ___m_minWidth_150;
// System.Single TMPro.TMP_Text::m_minHeight
float ___m_minHeight_151;
// System.Single TMPro.TMP_Text::m_maxWidth
float ___m_maxWidth_152;
// System.Single TMPro.TMP_Text::m_maxHeight
float ___m_maxHeight_153;
// UnityEngine.UI.LayoutElement TMPro.TMP_Text::m_LayoutElement
LayoutElement_tD503826DB41B6EA85AC689292F8B2661B3C1048B * ___m_LayoutElement_154;
// System.Single TMPro.TMP_Text::m_preferredWidth
float ___m_preferredWidth_155;
// System.Single TMPro.TMP_Text::m_renderedWidth
float ___m_renderedWidth_156;
// System.Boolean TMPro.TMP_Text::m_isPreferredWidthDirty
bool ___m_isPreferredWidthDirty_157;
// System.Single TMPro.TMP_Text::m_preferredHeight
float ___m_preferredHeight_158;
// System.Single TMPro.TMP_Text::m_renderedHeight
float ___m_renderedHeight_159;
// System.Boolean TMPro.TMP_Text::m_isPreferredHeightDirty
bool ___m_isPreferredHeightDirty_160;
// System.Boolean TMPro.TMP_Text::m_isCalculatingPreferredValues
bool ___m_isCalculatingPreferredValues_161;
// System.Int32 TMPro.TMP_Text::m_recursiveCount
int32_t ___m_recursiveCount_162;
// System.Int32 TMPro.TMP_Text::m_layoutPriority
int32_t ___m_layoutPriority_163;
// System.Boolean TMPro.TMP_Text::m_isCalculateSizeRequired
bool ___m_isCalculateSizeRequired_164;
// System.Boolean TMPro.TMP_Text::m_isLayoutDirty
bool ___m_isLayoutDirty_165;
// System.Boolean TMPro.TMP_Text::m_verticesAlreadyDirty
bool ___m_verticesAlreadyDirty_166;
// System.Boolean TMPro.TMP_Text::m_layoutAlreadyDirty
bool ___m_layoutAlreadyDirty_167;
// System.Boolean TMPro.TMP_Text::m_isAwake
bool ___m_isAwake_168;
// System.Boolean TMPro.TMP_Text::m_isWaitingOnResourceLoad
bool ___m_isWaitingOnResourceLoad_169;
// System.Boolean TMPro.TMP_Text::m_isInputParsingRequired
bool ___m_isInputParsingRequired_170;
// TMPro.TMP_Text_TextInputSources TMPro.TMP_Text::m_inputSource
int32_t ___m_inputSource_171;
// System.String TMPro.TMP_Text::old_text
String_t* ___old_text_172;
// System.Single TMPro.TMP_Text::m_fontScale
float ___m_fontScale_173;
// System.Single TMPro.TMP_Text::m_fontScaleMultiplier
float ___m_fontScaleMultiplier_174;
// System.Char[] TMPro.TMP_Text::m_htmlTag
CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* ___m_htmlTag_175;
// TMPro.RichTextTagAttribute[] TMPro.TMP_Text::m_xmlAttribute
RichTextTagAttributeU5BU5D_tDDFB2F68801310D7EEE16822832E48E70B11C652* ___m_xmlAttribute_176;
// System.Single[] TMPro.TMP_Text::m_attributeParameterValues
SingleU5BU5D_tA7139B7CAA40EAEF9178E2C386C8A5993754FDD5* ___m_attributeParameterValues_177;
// System.Single TMPro.TMP_Text::tag_LineIndent
float ___tag_LineIndent_178;
// System.Single TMPro.TMP_Text::tag_Indent
float ___tag_Indent_179;
// TMPro.TMP_RichTextTagStack`1<System.Single> TMPro.TMP_Text::m_indentStack
TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 ___m_indentStack_180;
// System.Boolean TMPro.TMP_Text::tag_NoParsing
bool ___tag_NoParsing_181;
// System.Boolean TMPro.TMP_Text::m_isParsingText
bool ___m_isParsingText_182;
// UnityEngine.Matrix4x4 TMPro.TMP_Text::m_FXMatrix
Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA ___m_FXMatrix_183;
// System.Boolean TMPro.TMP_Text::m_isFXMatrixSet
bool ___m_isFXMatrixSet_184;
// TMPro.TMP_Text_UnicodeChar[] TMPro.TMP_Text::m_TextParsingBuffer
UnicodeCharU5BU5D_t14B138F2B44C8EA3A5A5DB234E3739F385E55505* ___m_TextParsingBuffer_185;
// TMPro.TMP_CharacterInfo[] TMPro.TMP_Text::m_internalCharacterInfo
TMP_CharacterInfoU5BU5D_t415BD08A7E8A8C311B1F7BD9C3AC60BF99339604* ___m_internalCharacterInfo_186;
// System.Char[] TMPro.TMP_Text::m_input_CharArray
CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* ___m_input_CharArray_187;
// System.Int32 TMPro.TMP_Text::m_charArray_Length
int32_t ___m_charArray_Length_188;
// System.Int32 TMPro.TMP_Text::m_totalCharacterCount
int32_t ___m_totalCharacterCount_189;
// TMPro.WordWrapState TMPro.TMP_Text::m_SavedWordWrapState
WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557 ___m_SavedWordWrapState_190;
// TMPro.WordWrapState TMPro.TMP_Text::m_SavedLineState
WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557 ___m_SavedLineState_191;
// System.Int32 TMPro.TMP_Text::m_characterCount
int32_t ___m_characterCount_192;
// System.Int32 TMPro.TMP_Text::m_firstCharacterOfLine
int32_t ___m_firstCharacterOfLine_193;
// System.Int32 TMPro.TMP_Text::m_firstVisibleCharacterOfLine
int32_t ___m_firstVisibleCharacterOfLine_194;
// System.Int32 TMPro.TMP_Text::m_lastCharacterOfLine
int32_t ___m_lastCharacterOfLine_195;
// System.Int32 TMPro.TMP_Text::m_lastVisibleCharacterOfLine
int32_t ___m_lastVisibleCharacterOfLine_196;
// System.Int32 TMPro.TMP_Text::m_lineNumber
int32_t ___m_lineNumber_197;
// System.Int32 TMPro.TMP_Text::m_lineVisibleCharacterCount
int32_t ___m_lineVisibleCharacterCount_198;
// System.Int32 TMPro.TMP_Text::m_pageNumber
int32_t ___m_pageNumber_199;
// System.Single TMPro.TMP_Text::m_maxAscender
float ___m_maxAscender_200;
// System.Single TMPro.TMP_Text::m_maxCapHeight
float ___m_maxCapHeight_201;
// System.Single TMPro.TMP_Text::m_maxDescender
float ___m_maxDescender_202;
// System.Single TMPro.TMP_Text::m_maxLineAscender
float ___m_maxLineAscender_203;
// System.Single TMPro.TMP_Text::m_maxLineDescender
float ___m_maxLineDescender_204;
// System.Single TMPro.TMP_Text::m_startOfLineAscender
float ___m_startOfLineAscender_205;
// System.Single TMPro.TMP_Text::m_lineOffset
float ___m_lineOffset_206;
// TMPro.Extents TMPro.TMP_Text::m_meshExtents
Extents_tB63A1FF929CAEBC8E097EF426A8B6F91442B0EA3 ___m_meshExtents_207;
// UnityEngine.Color32 TMPro.TMP_Text::m_htmlColor
Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 ___m_htmlColor_208;
// TMPro.TMP_RichTextTagStack`1<UnityEngine.Color32> TMPro.TMP_Text::m_colorStack
TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 ___m_colorStack_209;
// TMPro.TMP_RichTextTagStack`1<UnityEngine.Color32> TMPro.TMP_Text::m_underlineColorStack
TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 ___m_underlineColorStack_210;
// TMPro.TMP_RichTextTagStack`1<UnityEngine.Color32> TMPro.TMP_Text::m_strikethroughColorStack
TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 ___m_strikethroughColorStack_211;
// TMPro.TMP_RichTextTagStack`1<UnityEngine.Color32> TMPro.TMP_Text::m_highlightColorStack
TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 ___m_highlightColorStack_212;
// TMPro.TMP_ColorGradient TMPro.TMP_Text::m_colorGradientPreset
TMP_ColorGradient_tEA29C4736B1786301A803B6C0FB30107A10D79B7 * ___m_colorGradientPreset_213;
// TMPro.TMP_RichTextTagStack`1<TMPro.TMP_ColorGradient> TMPro.TMP_Text::m_colorGradientStack
TMP_RichTextTagStack_1_tF73231072FB2CD9EBFCAF3C4D7E41E2221B9ED1D ___m_colorGradientStack_214;
// System.Single TMPro.TMP_Text::m_tabSpacing
float ___m_tabSpacing_215;
// System.Single TMPro.TMP_Text::m_spacing
float ___m_spacing_216;
// TMPro.TMP_RichTextTagStack`1<System.Int32> TMPro.TMP_Text::m_styleStack
TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293 ___m_styleStack_217;
// TMPro.TMP_RichTextTagStack`1<System.Int32> TMPro.TMP_Text::m_actionStack
TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293 ___m_actionStack_218;
// System.Single TMPro.TMP_Text::m_padding
float ___m_padding_219;
// System.Single TMPro.TMP_Text::m_baselineOffset
float ___m_baselineOffset_220;
// TMPro.TMP_RichTextTagStack`1<System.Single> TMPro.TMP_Text::m_baselineOffsetStack
TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 ___m_baselineOffsetStack_221;
// System.Single TMPro.TMP_Text::m_xAdvance
float ___m_xAdvance_222;
// TMPro.TMP_TextElementType TMPro.TMP_Text::m_textElementType
int32_t ___m_textElementType_223;
// TMPro.TMP_TextElement TMPro.TMP_Text::m_cached_TextElement
TMP_TextElement_tB9A6A361BB93487BD07DDDA37A368819DA46C344 * ___m_cached_TextElement_224;
// TMPro.TMP_Character TMPro.TMP_Text::m_cached_Underline_Character
TMP_Character_t1875AACA978396521498D6A699052C187903553D * ___m_cached_Underline_Character_225;
// TMPro.TMP_Character TMPro.TMP_Text::m_cached_Ellipsis_Character
TMP_Character_t1875AACA978396521498D6A699052C187903553D * ___m_cached_Ellipsis_Character_226;
// TMPro.TMP_SpriteAsset TMPro.TMP_Text::m_defaultSpriteAsset
TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 * ___m_defaultSpriteAsset_227;
// TMPro.TMP_SpriteAsset TMPro.TMP_Text::m_currentSpriteAsset
TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 * ___m_currentSpriteAsset_228;
// System.Int32 TMPro.TMP_Text::m_spriteCount
int32_t ___m_spriteCount_229;
// System.Int32 TMPro.TMP_Text::m_spriteIndex
int32_t ___m_spriteIndex_230;
// System.Int32 TMPro.TMP_Text::m_spriteAnimationID
int32_t ___m_spriteAnimationID_231;
// System.Boolean TMPro.TMP_Text::m_ignoreActiveState
bool ___m_ignoreActiveState_232;
// System.Single[] TMPro.TMP_Text::k_Power
SingleU5BU5D_tA7139B7CAA40EAEF9178E2C386C8A5993754FDD5* ___k_Power_233;
public:
inline static int32_t get_offset_of_m_text_34() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_text_34)); }
inline String_t* get_m_text_34() const { return ___m_text_34; }
inline String_t** get_address_of_m_text_34() { return &___m_text_34; }
inline void set_m_text_34(String_t* value)
{
___m_text_34 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_text_34), (void*)value);
}
inline static int32_t get_offset_of_m_isRightToLeft_35() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isRightToLeft_35)); }
inline bool get_m_isRightToLeft_35() const { return ___m_isRightToLeft_35; }
inline bool* get_address_of_m_isRightToLeft_35() { return &___m_isRightToLeft_35; }
inline void set_m_isRightToLeft_35(bool value)
{
___m_isRightToLeft_35 = value;
}
inline static int32_t get_offset_of_m_fontAsset_36() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_fontAsset_36)); }
inline TMP_FontAsset_t44D2006105B39FB33AE5A0ADF07A7EF36C72385C * get_m_fontAsset_36() const { return ___m_fontAsset_36; }
inline TMP_FontAsset_t44D2006105B39FB33AE5A0ADF07A7EF36C72385C ** get_address_of_m_fontAsset_36() { return &___m_fontAsset_36; }
inline void set_m_fontAsset_36(TMP_FontAsset_t44D2006105B39FB33AE5A0ADF07A7EF36C72385C * value)
{
___m_fontAsset_36 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_fontAsset_36), (void*)value);
}
inline static int32_t get_offset_of_m_currentFontAsset_37() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_currentFontAsset_37)); }
inline TMP_FontAsset_t44D2006105B39FB33AE5A0ADF07A7EF36C72385C * get_m_currentFontAsset_37() const { return ___m_currentFontAsset_37; }
inline TMP_FontAsset_t44D2006105B39FB33AE5A0ADF07A7EF36C72385C ** get_address_of_m_currentFontAsset_37() { return &___m_currentFontAsset_37; }
inline void set_m_currentFontAsset_37(TMP_FontAsset_t44D2006105B39FB33AE5A0ADF07A7EF36C72385C * value)
{
___m_currentFontAsset_37 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_currentFontAsset_37), (void*)value);
}
inline static int32_t get_offset_of_m_isSDFShader_38() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isSDFShader_38)); }
inline bool get_m_isSDFShader_38() const { return ___m_isSDFShader_38; }
inline bool* get_address_of_m_isSDFShader_38() { return &___m_isSDFShader_38; }
inline void set_m_isSDFShader_38(bool value)
{
___m_isSDFShader_38 = value;
}
inline static int32_t get_offset_of_m_sharedMaterial_39() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_sharedMaterial_39)); }
inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * get_m_sharedMaterial_39() const { return ___m_sharedMaterial_39; }
inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 ** get_address_of_m_sharedMaterial_39() { return &___m_sharedMaterial_39; }
inline void set_m_sharedMaterial_39(Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * value)
{
___m_sharedMaterial_39 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_sharedMaterial_39), (void*)value);
}
inline static int32_t get_offset_of_m_currentMaterial_40() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_currentMaterial_40)); }
inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * get_m_currentMaterial_40() const { return ___m_currentMaterial_40; }
inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 ** get_address_of_m_currentMaterial_40() { return &___m_currentMaterial_40; }
inline void set_m_currentMaterial_40(Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * value)
{
___m_currentMaterial_40 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_currentMaterial_40), (void*)value);
}
inline static int32_t get_offset_of_m_materialReferences_41() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_materialReferences_41)); }
inline MaterialReferenceU5BU5D_t01EC9C1C00A504C2EF9FBAF95DE26BB88E9B743B* get_m_materialReferences_41() const { return ___m_materialReferences_41; }
inline MaterialReferenceU5BU5D_t01EC9C1C00A504C2EF9FBAF95DE26BB88E9B743B** get_address_of_m_materialReferences_41() { return &___m_materialReferences_41; }
inline void set_m_materialReferences_41(MaterialReferenceU5BU5D_t01EC9C1C00A504C2EF9FBAF95DE26BB88E9B743B* value)
{
___m_materialReferences_41 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_materialReferences_41), (void*)value);
}
inline static int32_t get_offset_of_m_materialReferenceIndexLookup_42() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_materialReferenceIndexLookup_42)); }
inline Dictionary_2_tFE2A3F3BDE1290B85039D74816BB1FE1109BE0F8 * get_m_materialReferenceIndexLookup_42() const { return ___m_materialReferenceIndexLookup_42; }
inline Dictionary_2_tFE2A3F3BDE1290B85039D74816BB1FE1109BE0F8 ** get_address_of_m_materialReferenceIndexLookup_42() { return &___m_materialReferenceIndexLookup_42; }
inline void set_m_materialReferenceIndexLookup_42(Dictionary_2_tFE2A3F3BDE1290B85039D74816BB1FE1109BE0F8 * value)
{
___m_materialReferenceIndexLookup_42 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_materialReferenceIndexLookup_42), (void*)value);
}
inline static int32_t get_offset_of_m_materialReferenceStack_43() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_materialReferenceStack_43)); }
inline TMP_RichTextTagStack_1_t9742B1BC2B58D513502935F599F4AF09FFC379A9 get_m_materialReferenceStack_43() const { return ___m_materialReferenceStack_43; }
inline TMP_RichTextTagStack_1_t9742B1BC2B58D513502935F599F4AF09FFC379A9 * get_address_of_m_materialReferenceStack_43() { return &___m_materialReferenceStack_43; }
inline void set_m_materialReferenceStack_43(TMP_RichTextTagStack_1_t9742B1BC2B58D513502935F599F4AF09FFC379A9 value)
{
___m_materialReferenceStack_43 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___m_materialReferenceStack_43))->___m_ItemStack_0), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_materialReferenceStack_43))->___m_DefaultItem_3))->___fontAsset_1), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_materialReferenceStack_43))->___m_DefaultItem_3))->___spriteAsset_2), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_materialReferenceStack_43))->___m_DefaultItem_3))->___material_3), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_materialReferenceStack_43))->___m_DefaultItem_3))->___fallbackMaterial_6), (void*)NULL);
#endif
}
inline static int32_t get_offset_of_m_currentMaterialIndex_44() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_currentMaterialIndex_44)); }
inline int32_t get_m_currentMaterialIndex_44() const { return ___m_currentMaterialIndex_44; }
inline int32_t* get_address_of_m_currentMaterialIndex_44() { return &___m_currentMaterialIndex_44; }
inline void set_m_currentMaterialIndex_44(int32_t value)
{
___m_currentMaterialIndex_44 = value;
}
inline static int32_t get_offset_of_m_fontSharedMaterials_45() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_fontSharedMaterials_45)); }
inline MaterialU5BU5D_tD2350F98F2A1BB6C7A5FBFE1474DFC47331AB398* get_m_fontSharedMaterials_45() const { return ___m_fontSharedMaterials_45; }
inline MaterialU5BU5D_tD2350F98F2A1BB6C7A5FBFE1474DFC47331AB398** get_address_of_m_fontSharedMaterials_45() { return &___m_fontSharedMaterials_45; }
inline void set_m_fontSharedMaterials_45(MaterialU5BU5D_tD2350F98F2A1BB6C7A5FBFE1474DFC47331AB398* value)
{
___m_fontSharedMaterials_45 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_fontSharedMaterials_45), (void*)value);
}
inline static int32_t get_offset_of_m_fontMaterial_46() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_fontMaterial_46)); }
inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * get_m_fontMaterial_46() const { return ___m_fontMaterial_46; }
inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 ** get_address_of_m_fontMaterial_46() { return &___m_fontMaterial_46; }
inline void set_m_fontMaterial_46(Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * value)
{
___m_fontMaterial_46 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_fontMaterial_46), (void*)value);
}
inline static int32_t get_offset_of_m_fontMaterials_47() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_fontMaterials_47)); }
inline MaterialU5BU5D_tD2350F98F2A1BB6C7A5FBFE1474DFC47331AB398* get_m_fontMaterials_47() const { return ___m_fontMaterials_47; }
inline MaterialU5BU5D_tD2350F98F2A1BB6C7A5FBFE1474DFC47331AB398** get_address_of_m_fontMaterials_47() { return &___m_fontMaterials_47; }
inline void set_m_fontMaterials_47(MaterialU5BU5D_tD2350F98F2A1BB6C7A5FBFE1474DFC47331AB398* value)
{
___m_fontMaterials_47 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_fontMaterials_47), (void*)value);
}
inline static int32_t get_offset_of_m_isMaterialDirty_48() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isMaterialDirty_48)); }
inline bool get_m_isMaterialDirty_48() const { return ___m_isMaterialDirty_48; }
inline bool* get_address_of_m_isMaterialDirty_48() { return &___m_isMaterialDirty_48; }
inline void set_m_isMaterialDirty_48(bool value)
{
___m_isMaterialDirty_48 = value;
}
inline static int32_t get_offset_of_m_fontColor32_49() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_fontColor32_49)); }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 get_m_fontColor32_49() const { return ___m_fontColor32_49; }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 * get_address_of_m_fontColor32_49() { return &___m_fontColor32_49; }
inline void set_m_fontColor32_49(Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 value)
{
___m_fontColor32_49 = value;
}
inline static int32_t get_offset_of_m_fontColor_50() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_fontColor_50)); }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 get_m_fontColor_50() const { return ___m_fontColor_50; }
inline Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 * get_address_of_m_fontColor_50() { return &___m_fontColor_50; }
inline void set_m_fontColor_50(Color_t119BCA590009762C7223FDD3AF9706653AC84ED2 value)
{
___m_fontColor_50 = value;
}
inline static int32_t get_offset_of_m_underlineColor_52() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_underlineColor_52)); }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 get_m_underlineColor_52() const { return ___m_underlineColor_52; }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 * get_address_of_m_underlineColor_52() { return &___m_underlineColor_52; }
inline void set_m_underlineColor_52(Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 value)
{
___m_underlineColor_52 = value;
}
inline static int32_t get_offset_of_m_strikethroughColor_53() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_strikethroughColor_53)); }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 get_m_strikethroughColor_53() const { return ___m_strikethroughColor_53; }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 * get_address_of_m_strikethroughColor_53() { return &___m_strikethroughColor_53; }
inline void set_m_strikethroughColor_53(Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 value)
{
___m_strikethroughColor_53 = value;
}
inline static int32_t get_offset_of_m_highlightColor_54() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_highlightColor_54)); }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 get_m_highlightColor_54() const { return ___m_highlightColor_54; }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 * get_address_of_m_highlightColor_54() { return &___m_highlightColor_54; }
inline void set_m_highlightColor_54(Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 value)
{
___m_highlightColor_54 = value;
}
inline static int32_t get_offset_of_m_highlightPadding_55() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_highlightPadding_55)); }
inline Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E get_m_highlightPadding_55() const { return ___m_highlightPadding_55; }
inline Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E * get_address_of_m_highlightPadding_55() { return &___m_highlightPadding_55; }
inline void set_m_highlightPadding_55(Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E value)
{
___m_highlightPadding_55 = value;
}
inline static int32_t get_offset_of_m_enableVertexGradient_56() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_enableVertexGradient_56)); }
inline bool get_m_enableVertexGradient_56() const { return ___m_enableVertexGradient_56; }
inline bool* get_address_of_m_enableVertexGradient_56() { return &___m_enableVertexGradient_56; }
inline void set_m_enableVertexGradient_56(bool value)
{
___m_enableVertexGradient_56 = value;
}
inline static int32_t get_offset_of_m_colorMode_57() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_colorMode_57)); }
inline int32_t get_m_colorMode_57() const { return ___m_colorMode_57; }
inline int32_t* get_address_of_m_colorMode_57() { return &___m_colorMode_57; }
inline void set_m_colorMode_57(int32_t value)
{
___m_colorMode_57 = value;
}
inline static int32_t get_offset_of_m_fontColorGradient_58() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_fontColorGradient_58)); }
inline VertexGradient_tDDAAE14E70CADA44B1B69F228CFF837C67EF6F9A get_m_fontColorGradient_58() const { return ___m_fontColorGradient_58; }
inline VertexGradient_tDDAAE14E70CADA44B1B69F228CFF837C67EF6F9A * get_address_of_m_fontColorGradient_58() { return &___m_fontColorGradient_58; }
inline void set_m_fontColorGradient_58(VertexGradient_tDDAAE14E70CADA44B1B69F228CFF837C67EF6F9A value)
{
___m_fontColorGradient_58 = value;
}
inline static int32_t get_offset_of_m_fontColorGradientPreset_59() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_fontColorGradientPreset_59)); }
inline TMP_ColorGradient_tEA29C4736B1786301A803B6C0FB30107A10D79B7 * get_m_fontColorGradientPreset_59() const { return ___m_fontColorGradientPreset_59; }
inline TMP_ColorGradient_tEA29C4736B1786301A803B6C0FB30107A10D79B7 ** get_address_of_m_fontColorGradientPreset_59() { return &___m_fontColorGradientPreset_59; }
inline void set_m_fontColorGradientPreset_59(TMP_ColorGradient_tEA29C4736B1786301A803B6C0FB30107A10D79B7 * value)
{
___m_fontColorGradientPreset_59 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_fontColorGradientPreset_59), (void*)value);
}
inline static int32_t get_offset_of_m_spriteAsset_60() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_spriteAsset_60)); }
inline TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 * get_m_spriteAsset_60() const { return ___m_spriteAsset_60; }
inline TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 ** get_address_of_m_spriteAsset_60() { return &___m_spriteAsset_60; }
inline void set_m_spriteAsset_60(TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 * value)
{
___m_spriteAsset_60 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_spriteAsset_60), (void*)value);
}
inline static int32_t get_offset_of_m_tintAllSprites_61() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_tintAllSprites_61)); }
inline bool get_m_tintAllSprites_61() const { return ___m_tintAllSprites_61; }
inline bool* get_address_of_m_tintAllSprites_61() { return &___m_tintAllSprites_61; }
inline void set_m_tintAllSprites_61(bool value)
{
___m_tintAllSprites_61 = value;
}
inline static int32_t get_offset_of_m_tintSprite_62() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_tintSprite_62)); }
inline bool get_m_tintSprite_62() const { return ___m_tintSprite_62; }
inline bool* get_address_of_m_tintSprite_62() { return &___m_tintSprite_62; }
inline void set_m_tintSprite_62(bool value)
{
___m_tintSprite_62 = value;
}
inline static int32_t get_offset_of_m_spriteColor_63() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_spriteColor_63)); }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 get_m_spriteColor_63() const { return ___m_spriteColor_63; }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 * get_address_of_m_spriteColor_63() { return &___m_spriteColor_63; }
inline void set_m_spriteColor_63(Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 value)
{
___m_spriteColor_63 = value;
}
inline static int32_t get_offset_of_m_overrideHtmlColors_64() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_overrideHtmlColors_64)); }
inline bool get_m_overrideHtmlColors_64() const { return ___m_overrideHtmlColors_64; }
inline bool* get_address_of_m_overrideHtmlColors_64() { return &___m_overrideHtmlColors_64; }
inline void set_m_overrideHtmlColors_64(bool value)
{
___m_overrideHtmlColors_64 = value;
}
inline static int32_t get_offset_of_m_faceColor_65() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_faceColor_65)); }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 get_m_faceColor_65() const { return ___m_faceColor_65; }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 * get_address_of_m_faceColor_65() { return &___m_faceColor_65; }
inline void set_m_faceColor_65(Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 value)
{
___m_faceColor_65 = value;
}
inline static int32_t get_offset_of_m_outlineColor_66() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_outlineColor_66)); }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 get_m_outlineColor_66() const { return ___m_outlineColor_66; }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 * get_address_of_m_outlineColor_66() { return &___m_outlineColor_66; }
inline void set_m_outlineColor_66(Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 value)
{
___m_outlineColor_66 = value;
}
inline static int32_t get_offset_of_m_outlineWidth_67() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_outlineWidth_67)); }
inline float get_m_outlineWidth_67() const { return ___m_outlineWidth_67; }
inline float* get_address_of_m_outlineWidth_67() { return &___m_outlineWidth_67; }
inline void set_m_outlineWidth_67(float value)
{
___m_outlineWidth_67 = value;
}
inline static int32_t get_offset_of_m_fontSize_68() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_fontSize_68)); }
inline float get_m_fontSize_68() const { return ___m_fontSize_68; }
inline float* get_address_of_m_fontSize_68() { return &___m_fontSize_68; }
inline void set_m_fontSize_68(float value)
{
___m_fontSize_68 = value;
}
inline static int32_t get_offset_of_m_currentFontSize_69() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_currentFontSize_69)); }
inline float get_m_currentFontSize_69() const { return ___m_currentFontSize_69; }
inline float* get_address_of_m_currentFontSize_69() { return &___m_currentFontSize_69; }
inline void set_m_currentFontSize_69(float value)
{
___m_currentFontSize_69 = value;
}
inline static int32_t get_offset_of_m_fontSizeBase_70() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_fontSizeBase_70)); }
inline float get_m_fontSizeBase_70() const { return ___m_fontSizeBase_70; }
inline float* get_address_of_m_fontSizeBase_70() { return &___m_fontSizeBase_70; }
inline void set_m_fontSizeBase_70(float value)
{
___m_fontSizeBase_70 = value;
}
inline static int32_t get_offset_of_m_sizeStack_71() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_sizeStack_71)); }
inline TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 get_m_sizeStack_71() const { return ___m_sizeStack_71; }
inline TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 * get_address_of_m_sizeStack_71() { return &___m_sizeStack_71; }
inline void set_m_sizeStack_71(TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 value)
{
___m_sizeStack_71 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___m_sizeStack_71))->___m_ItemStack_0), (void*)NULL);
}
inline static int32_t get_offset_of_m_fontWeight_72() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_fontWeight_72)); }
inline int32_t get_m_fontWeight_72() const { return ___m_fontWeight_72; }
inline int32_t* get_address_of_m_fontWeight_72() { return &___m_fontWeight_72; }
inline void set_m_fontWeight_72(int32_t value)
{
___m_fontWeight_72 = value;
}
inline static int32_t get_offset_of_m_FontWeightInternal_73() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_FontWeightInternal_73)); }
inline int32_t get_m_FontWeightInternal_73() const { return ___m_FontWeightInternal_73; }
inline int32_t* get_address_of_m_FontWeightInternal_73() { return &___m_FontWeightInternal_73; }
inline void set_m_FontWeightInternal_73(int32_t value)
{
___m_FontWeightInternal_73 = value;
}
inline static int32_t get_offset_of_m_FontWeightStack_74() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_FontWeightStack_74)); }
inline TMP_RichTextTagStack_1_t9B6C6D23490A525AEA83F4301C7523574055098B get_m_FontWeightStack_74() const { return ___m_FontWeightStack_74; }
inline TMP_RichTextTagStack_1_t9B6C6D23490A525AEA83F4301C7523574055098B * get_address_of_m_FontWeightStack_74() { return &___m_FontWeightStack_74; }
inline void set_m_FontWeightStack_74(TMP_RichTextTagStack_1_t9B6C6D23490A525AEA83F4301C7523574055098B value)
{
___m_FontWeightStack_74 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___m_FontWeightStack_74))->___m_ItemStack_0), (void*)NULL);
}
inline static int32_t get_offset_of_m_enableAutoSizing_75() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_enableAutoSizing_75)); }
inline bool get_m_enableAutoSizing_75() const { return ___m_enableAutoSizing_75; }
inline bool* get_address_of_m_enableAutoSizing_75() { return &___m_enableAutoSizing_75; }
inline void set_m_enableAutoSizing_75(bool value)
{
___m_enableAutoSizing_75 = value;
}
inline static int32_t get_offset_of_m_maxFontSize_76() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_maxFontSize_76)); }
inline float get_m_maxFontSize_76() const { return ___m_maxFontSize_76; }
inline float* get_address_of_m_maxFontSize_76() { return &___m_maxFontSize_76; }
inline void set_m_maxFontSize_76(float value)
{
___m_maxFontSize_76 = value;
}
inline static int32_t get_offset_of_m_minFontSize_77() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_minFontSize_77)); }
inline float get_m_minFontSize_77() const { return ___m_minFontSize_77; }
inline float* get_address_of_m_minFontSize_77() { return &___m_minFontSize_77; }
inline void set_m_minFontSize_77(float value)
{
___m_minFontSize_77 = value;
}
inline static int32_t get_offset_of_m_fontSizeMin_78() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_fontSizeMin_78)); }
inline float get_m_fontSizeMin_78() const { return ___m_fontSizeMin_78; }
inline float* get_address_of_m_fontSizeMin_78() { return &___m_fontSizeMin_78; }
inline void set_m_fontSizeMin_78(float value)
{
___m_fontSizeMin_78 = value;
}
inline static int32_t get_offset_of_m_fontSizeMax_79() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_fontSizeMax_79)); }
inline float get_m_fontSizeMax_79() const { return ___m_fontSizeMax_79; }
inline float* get_address_of_m_fontSizeMax_79() { return &___m_fontSizeMax_79; }
inline void set_m_fontSizeMax_79(float value)
{
___m_fontSizeMax_79 = value;
}
inline static int32_t get_offset_of_m_fontStyle_80() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_fontStyle_80)); }
inline int32_t get_m_fontStyle_80() const { return ___m_fontStyle_80; }
inline int32_t* get_address_of_m_fontStyle_80() { return &___m_fontStyle_80; }
inline void set_m_fontStyle_80(int32_t value)
{
___m_fontStyle_80 = value;
}
inline static int32_t get_offset_of_m_FontStyleInternal_81() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_FontStyleInternal_81)); }
inline int32_t get_m_FontStyleInternal_81() const { return ___m_FontStyleInternal_81; }
inline int32_t* get_address_of_m_FontStyleInternal_81() { return &___m_FontStyleInternal_81; }
inline void set_m_FontStyleInternal_81(int32_t value)
{
___m_FontStyleInternal_81 = value;
}
inline static int32_t get_offset_of_m_fontStyleStack_82() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_fontStyleStack_82)); }
inline TMP_FontStyleStack_tC7146DA5AD4540B2C8733862D785AD50AD229E84 get_m_fontStyleStack_82() const { return ___m_fontStyleStack_82; }
inline TMP_FontStyleStack_tC7146DA5AD4540B2C8733862D785AD50AD229E84 * get_address_of_m_fontStyleStack_82() { return &___m_fontStyleStack_82; }
inline void set_m_fontStyleStack_82(TMP_FontStyleStack_tC7146DA5AD4540B2C8733862D785AD50AD229E84 value)
{
___m_fontStyleStack_82 = value;
}
inline static int32_t get_offset_of_m_isUsingBold_83() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isUsingBold_83)); }
inline bool get_m_isUsingBold_83() const { return ___m_isUsingBold_83; }
inline bool* get_address_of_m_isUsingBold_83() { return &___m_isUsingBold_83; }
inline void set_m_isUsingBold_83(bool value)
{
___m_isUsingBold_83 = value;
}
inline static int32_t get_offset_of_m_textAlignment_84() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_textAlignment_84)); }
inline int32_t get_m_textAlignment_84() const { return ___m_textAlignment_84; }
inline int32_t* get_address_of_m_textAlignment_84() { return &___m_textAlignment_84; }
inline void set_m_textAlignment_84(int32_t value)
{
___m_textAlignment_84 = value;
}
inline static int32_t get_offset_of_m_lineJustification_85() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_lineJustification_85)); }
inline int32_t get_m_lineJustification_85() const { return ___m_lineJustification_85; }
inline int32_t* get_address_of_m_lineJustification_85() { return &___m_lineJustification_85; }
inline void set_m_lineJustification_85(int32_t value)
{
___m_lineJustification_85 = value;
}
inline static int32_t get_offset_of_m_lineJustificationStack_86() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_lineJustificationStack_86)); }
inline TMP_RichTextTagStack_1_t435AA844A7DBDA7E54BCDA3C53622D4B28952115 get_m_lineJustificationStack_86() const { return ___m_lineJustificationStack_86; }
inline TMP_RichTextTagStack_1_t435AA844A7DBDA7E54BCDA3C53622D4B28952115 * get_address_of_m_lineJustificationStack_86() { return &___m_lineJustificationStack_86; }
inline void set_m_lineJustificationStack_86(TMP_RichTextTagStack_1_t435AA844A7DBDA7E54BCDA3C53622D4B28952115 value)
{
___m_lineJustificationStack_86 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___m_lineJustificationStack_86))->___m_ItemStack_0), (void*)NULL);
}
inline static int32_t get_offset_of_m_textContainerLocalCorners_87() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_textContainerLocalCorners_87)); }
inline Vector3U5BU5D_tB9EC3346CC4A0EA5447D968E84A9AC1F6F372C28* get_m_textContainerLocalCorners_87() const { return ___m_textContainerLocalCorners_87; }
inline Vector3U5BU5D_tB9EC3346CC4A0EA5447D968E84A9AC1F6F372C28** get_address_of_m_textContainerLocalCorners_87() { return &___m_textContainerLocalCorners_87; }
inline void set_m_textContainerLocalCorners_87(Vector3U5BU5D_tB9EC3346CC4A0EA5447D968E84A9AC1F6F372C28* value)
{
___m_textContainerLocalCorners_87 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_textContainerLocalCorners_87), (void*)value);
}
inline static int32_t get_offset_of_m_characterSpacing_88() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_characterSpacing_88)); }
inline float get_m_characterSpacing_88() const { return ___m_characterSpacing_88; }
inline float* get_address_of_m_characterSpacing_88() { return &___m_characterSpacing_88; }
inline void set_m_characterSpacing_88(float value)
{
___m_characterSpacing_88 = value;
}
inline static int32_t get_offset_of_m_cSpacing_89() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_cSpacing_89)); }
inline float get_m_cSpacing_89() const { return ___m_cSpacing_89; }
inline float* get_address_of_m_cSpacing_89() { return &___m_cSpacing_89; }
inline void set_m_cSpacing_89(float value)
{
___m_cSpacing_89 = value;
}
inline static int32_t get_offset_of_m_monoSpacing_90() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_monoSpacing_90)); }
inline float get_m_monoSpacing_90() const { return ___m_monoSpacing_90; }
inline float* get_address_of_m_monoSpacing_90() { return &___m_monoSpacing_90; }
inline void set_m_monoSpacing_90(float value)
{
___m_monoSpacing_90 = value;
}
inline static int32_t get_offset_of_m_wordSpacing_91() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_wordSpacing_91)); }
inline float get_m_wordSpacing_91() const { return ___m_wordSpacing_91; }
inline float* get_address_of_m_wordSpacing_91() { return &___m_wordSpacing_91; }
inline void set_m_wordSpacing_91(float value)
{
___m_wordSpacing_91 = value;
}
inline static int32_t get_offset_of_m_lineSpacing_92() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_lineSpacing_92)); }
inline float get_m_lineSpacing_92() const { return ___m_lineSpacing_92; }
inline float* get_address_of_m_lineSpacing_92() { return &___m_lineSpacing_92; }
inline void set_m_lineSpacing_92(float value)
{
___m_lineSpacing_92 = value;
}
inline static int32_t get_offset_of_m_lineSpacingDelta_93() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_lineSpacingDelta_93)); }
inline float get_m_lineSpacingDelta_93() const { return ___m_lineSpacingDelta_93; }
inline float* get_address_of_m_lineSpacingDelta_93() { return &___m_lineSpacingDelta_93; }
inline void set_m_lineSpacingDelta_93(float value)
{
___m_lineSpacingDelta_93 = value;
}
inline static int32_t get_offset_of_m_lineHeight_94() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_lineHeight_94)); }
inline float get_m_lineHeight_94() const { return ___m_lineHeight_94; }
inline float* get_address_of_m_lineHeight_94() { return &___m_lineHeight_94; }
inline void set_m_lineHeight_94(float value)
{
___m_lineHeight_94 = value;
}
inline static int32_t get_offset_of_m_lineSpacingMax_95() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_lineSpacingMax_95)); }
inline float get_m_lineSpacingMax_95() const { return ___m_lineSpacingMax_95; }
inline float* get_address_of_m_lineSpacingMax_95() { return &___m_lineSpacingMax_95; }
inline void set_m_lineSpacingMax_95(float value)
{
___m_lineSpacingMax_95 = value;
}
inline static int32_t get_offset_of_m_paragraphSpacing_96() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_paragraphSpacing_96)); }
inline float get_m_paragraphSpacing_96() const { return ___m_paragraphSpacing_96; }
inline float* get_address_of_m_paragraphSpacing_96() { return &___m_paragraphSpacing_96; }
inline void set_m_paragraphSpacing_96(float value)
{
___m_paragraphSpacing_96 = value;
}
inline static int32_t get_offset_of_m_charWidthMaxAdj_97() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_charWidthMaxAdj_97)); }
inline float get_m_charWidthMaxAdj_97() const { return ___m_charWidthMaxAdj_97; }
inline float* get_address_of_m_charWidthMaxAdj_97() { return &___m_charWidthMaxAdj_97; }
inline void set_m_charWidthMaxAdj_97(float value)
{
___m_charWidthMaxAdj_97 = value;
}
inline static int32_t get_offset_of_m_charWidthAdjDelta_98() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_charWidthAdjDelta_98)); }
inline float get_m_charWidthAdjDelta_98() const { return ___m_charWidthAdjDelta_98; }
inline float* get_address_of_m_charWidthAdjDelta_98() { return &___m_charWidthAdjDelta_98; }
inline void set_m_charWidthAdjDelta_98(float value)
{
___m_charWidthAdjDelta_98 = value;
}
inline static int32_t get_offset_of_m_enableWordWrapping_99() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_enableWordWrapping_99)); }
inline bool get_m_enableWordWrapping_99() const { return ___m_enableWordWrapping_99; }
inline bool* get_address_of_m_enableWordWrapping_99() { return &___m_enableWordWrapping_99; }
inline void set_m_enableWordWrapping_99(bool value)
{
___m_enableWordWrapping_99 = value;
}
inline static int32_t get_offset_of_m_isCharacterWrappingEnabled_100() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isCharacterWrappingEnabled_100)); }
inline bool get_m_isCharacterWrappingEnabled_100() const { return ___m_isCharacterWrappingEnabled_100; }
inline bool* get_address_of_m_isCharacterWrappingEnabled_100() { return &___m_isCharacterWrappingEnabled_100; }
inline void set_m_isCharacterWrappingEnabled_100(bool value)
{
___m_isCharacterWrappingEnabled_100 = value;
}
inline static int32_t get_offset_of_m_isNonBreakingSpace_101() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isNonBreakingSpace_101)); }
inline bool get_m_isNonBreakingSpace_101() const { return ___m_isNonBreakingSpace_101; }
inline bool* get_address_of_m_isNonBreakingSpace_101() { return &___m_isNonBreakingSpace_101; }
inline void set_m_isNonBreakingSpace_101(bool value)
{
___m_isNonBreakingSpace_101 = value;
}
inline static int32_t get_offset_of_m_isIgnoringAlignment_102() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isIgnoringAlignment_102)); }
inline bool get_m_isIgnoringAlignment_102() const { return ___m_isIgnoringAlignment_102; }
inline bool* get_address_of_m_isIgnoringAlignment_102() { return &___m_isIgnoringAlignment_102; }
inline void set_m_isIgnoringAlignment_102(bool value)
{
___m_isIgnoringAlignment_102 = value;
}
inline static int32_t get_offset_of_m_wordWrappingRatios_103() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_wordWrappingRatios_103)); }
inline float get_m_wordWrappingRatios_103() const { return ___m_wordWrappingRatios_103; }
inline float* get_address_of_m_wordWrappingRatios_103() { return &___m_wordWrappingRatios_103; }
inline void set_m_wordWrappingRatios_103(float value)
{
___m_wordWrappingRatios_103 = value;
}
inline static int32_t get_offset_of_m_overflowMode_104() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_overflowMode_104)); }
inline int32_t get_m_overflowMode_104() const { return ___m_overflowMode_104; }
inline int32_t* get_address_of_m_overflowMode_104() { return &___m_overflowMode_104; }
inline void set_m_overflowMode_104(int32_t value)
{
___m_overflowMode_104 = value;
}
inline static int32_t get_offset_of_m_firstOverflowCharacterIndex_105() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_firstOverflowCharacterIndex_105)); }
inline int32_t get_m_firstOverflowCharacterIndex_105() const { return ___m_firstOverflowCharacterIndex_105; }
inline int32_t* get_address_of_m_firstOverflowCharacterIndex_105() { return &___m_firstOverflowCharacterIndex_105; }
inline void set_m_firstOverflowCharacterIndex_105(int32_t value)
{
___m_firstOverflowCharacterIndex_105 = value;
}
inline static int32_t get_offset_of_m_linkedTextComponent_106() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_linkedTextComponent_106)); }
inline TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7 * get_m_linkedTextComponent_106() const { return ___m_linkedTextComponent_106; }
inline TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7 ** get_address_of_m_linkedTextComponent_106() { return &___m_linkedTextComponent_106; }
inline void set_m_linkedTextComponent_106(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7 * value)
{
___m_linkedTextComponent_106 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_linkedTextComponent_106), (void*)value);
}
inline static int32_t get_offset_of_m_isLinkedTextComponent_107() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isLinkedTextComponent_107)); }
inline bool get_m_isLinkedTextComponent_107() const { return ___m_isLinkedTextComponent_107; }
inline bool* get_address_of_m_isLinkedTextComponent_107() { return &___m_isLinkedTextComponent_107; }
inline void set_m_isLinkedTextComponent_107(bool value)
{
___m_isLinkedTextComponent_107 = value;
}
inline static int32_t get_offset_of_m_isTextTruncated_108() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isTextTruncated_108)); }
inline bool get_m_isTextTruncated_108() const { return ___m_isTextTruncated_108; }
inline bool* get_address_of_m_isTextTruncated_108() { return &___m_isTextTruncated_108; }
inline void set_m_isTextTruncated_108(bool value)
{
___m_isTextTruncated_108 = value;
}
inline static int32_t get_offset_of_m_enableKerning_109() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_enableKerning_109)); }
inline bool get_m_enableKerning_109() const { return ___m_enableKerning_109; }
inline bool* get_address_of_m_enableKerning_109() { return &___m_enableKerning_109; }
inline void set_m_enableKerning_109(bool value)
{
___m_enableKerning_109 = value;
}
inline static int32_t get_offset_of_m_enableExtraPadding_110() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_enableExtraPadding_110)); }
inline bool get_m_enableExtraPadding_110() const { return ___m_enableExtraPadding_110; }
inline bool* get_address_of_m_enableExtraPadding_110() { return &___m_enableExtraPadding_110; }
inline void set_m_enableExtraPadding_110(bool value)
{
___m_enableExtraPadding_110 = value;
}
inline static int32_t get_offset_of_checkPaddingRequired_111() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___checkPaddingRequired_111)); }
inline bool get_checkPaddingRequired_111() const { return ___checkPaddingRequired_111; }
inline bool* get_address_of_checkPaddingRequired_111() { return &___checkPaddingRequired_111; }
inline void set_checkPaddingRequired_111(bool value)
{
___checkPaddingRequired_111 = value;
}
inline static int32_t get_offset_of_m_isRichText_112() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isRichText_112)); }
inline bool get_m_isRichText_112() const { return ___m_isRichText_112; }
inline bool* get_address_of_m_isRichText_112() { return &___m_isRichText_112; }
inline void set_m_isRichText_112(bool value)
{
___m_isRichText_112 = value;
}
inline static int32_t get_offset_of_m_parseCtrlCharacters_113() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_parseCtrlCharacters_113)); }
inline bool get_m_parseCtrlCharacters_113() const { return ___m_parseCtrlCharacters_113; }
inline bool* get_address_of_m_parseCtrlCharacters_113() { return &___m_parseCtrlCharacters_113; }
inline void set_m_parseCtrlCharacters_113(bool value)
{
___m_parseCtrlCharacters_113 = value;
}
inline static int32_t get_offset_of_m_isOverlay_114() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isOverlay_114)); }
inline bool get_m_isOverlay_114() const { return ___m_isOverlay_114; }
inline bool* get_address_of_m_isOverlay_114() { return &___m_isOverlay_114; }
inline void set_m_isOverlay_114(bool value)
{
___m_isOverlay_114 = value;
}
inline static int32_t get_offset_of_m_isOrthographic_115() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isOrthographic_115)); }
inline bool get_m_isOrthographic_115() const { return ___m_isOrthographic_115; }
inline bool* get_address_of_m_isOrthographic_115() { return &___m_isOrthographic_115; }
inline void set_m_isOrthographic_115(bool value)
{
___m_isOrthographic_115 = value;
}
inline static int32_t get_offset_of_m_isCullingEnabled_116() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isCullingEnabled_116)); }
inline bool get_m_isCullingEnabled_116() const { return ___m_isCullingEnabled_116; }
inline bool* get_address_of_m_isCullingEnabled_116() { return &___m_isCullingEnabled_116; }
inline void set_m_isCullingEnabled_116(bool value)
{
___m_isCullingEnabled_116 = value;
}
inline static int32_t get_offset_of_m_ignoreRectMaskCulling_117() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_ignoreRectMaskCulling_117)); }
inline bool get_m_ignoreRectMaskCulling_117() const { return ___m_ignoreRectMaskCulling_117; }
inline bool* get_address_of_m_ignoreRectMaskCulling_117() { return &___m_ignoreRectMaskCulling_117; }
inline void set_m_ignoreRectMaskCulling_117(bool value)
{
___m_ignoreRectMaskCulling_117 = value;
}
inline static int32_t get_offset_of_m_ignoreCulling_118() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_ignoreCulling_118)); }
inline bool get_m_ignoreCulling_118() const { return ___m_ignoreCulling_118; }
inline bool* get_address_of_m_ignoreCulling_118() { return &___m_ignoreCulling_118; }
inline void set_m_ignoreCulling_118(bool value)
{
___m_ignoreCulling_118 = value;
}
inline static int32_t get_offset_of_m_horizontalMapping_119() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_horizontalMapping_119)); }
inline int32_t get_m_horizontalMapping_119() const { return ___m_horizontalMapping_119; }
inline int32_t* get_address_of_m_horizontalMapping_119() { return &___m_horizontalMapping_119; }
inline void set_m_horizontalMapping_119(int32_t value)
{
___m_horizontalMapping_119 = value;
}
inline static int32_t get_offset_of_m_verticalMapping_120() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_verticalMapping_120)); }
inline int32_t get_m_verticalMapping_120() const { return ___m_verticalMapping_120; }
inline int32_t* get_address_of_m_verticalMapping_120() { return &___m_verticalMapping_120; }
inline void set_m_verticalMapping_120(int32_t value)
{
___m_verticalMapping_120 = value;
}
inline static int32_t get_offset_of_m_uvLineOffset_121() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_uvLineOffset_121)); }
inline float get_m_uvLineOffset_121() const { return ___m_uvLineOffset_121; }
inline float* get_address_of_m_uvLineOffset_121() { return &___m_uvLineOffset_121; }
inline void set_m_uvLineOffset_121(float value)
{
___m_uvLineOffset_121 = value;
}
inline static int32_t get_offset_of_m_renderMode_122() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_renderMode_122)); }
inline int32_t get_m_renderMode_122() const { return ___m_renderMode_122; }
inline int32_t* get_address_of_m_renderMode_122() { return &___m_renderMode_122; }
inline void set_m_renderMode_122(int32_t value)
{
___m_renderMode_122 = value;
}
inline static int32_t get_offset_of_m_geometrySortingOrder_123() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_geometrySortingOrder_123)); }
inline int32_t get_m_geometrySortingOrder_123() const { return ___m_geometrySortingOrder_123; }
inline int32_t* get_address_of_m_geometrySortingOrder_123() { return &___m_geometrySortingOrder_123; }
inline void set_m_geometrySortingOrder_123(int32_t value)
{
___m_geometrySortingOrder_123 = value;
}
inline static int32_t get_offset_of_m_VertexBufferAutoSizeReduction_124() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_VertexBufferAutoSizeReduction_124)); }
inline bool get_m_VertexBufferAutoSizeReduction_124() const { return ___m_VertexBufferAutoSizeReduction_124; }
inline bool* get_address_of_m_VertexBufferAutoSizeReduction_124() { return &___m_VertexBufferAutoSizeReduction_124; }
inline void set_m_VertexBufferAutoSizeReduction_124(bool value)
{
___m_VertexBufferAutoSizeReduction_124 = value;
}
inline static int32_t get_offset_of_m_firstVisibleCharacter_125() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_firstVisibleCharacter_125)); }
inline int32_t get_m_firstVisibleCharacter_125() const { return ___m_firstVisibleCharacter_125; }
inline int32_t* get_address_of_m_firstVisibleCharacter_125() { return &___m_firstVisibleCharacter_125; }
inline void set_m_firstVisibleCharacter_125(int32_t value)
{
___m_firstVisibleCharacter_125 = value;
}
inline static int32_t get_offset_of_m_maxVisibleCharacters_126() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_maxVisibleCharacters_126)); }
inline int32_t get_m_maxVisibleCharacters_126() const { return ___m_maxVisibleCharacters_126; }
inline int32_t* get_address_of_m_maxVisibleCharacters_126() { return &___m_maxVisibleCharacters_126; }
inline void set_m_maxVisibleCharacters_126(int32_t value)
{
___m_maxVisibleCharacters_126 = value;
}
inline static int32_t get_offset_of_m_maxVisibleWords_127() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_maxVisibleWords_127)); }
inline int32_t get_m_maxVisibleWords_127() const { return ___m_maxVisibleWords_127; }
inline int32_t* get_address_of_m_maxVisibleWords_127() { return &___m_maxVisibleWords_127; }
inline void set_m_maxVisibleWords_127(int32_t value)
{
___m_maxVisibleWords_127 = value;
}
inline static int32_t get_offset_of_m_maxVisibleLines_128() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_maxVisibleLines_128)); }
inline int32_t get_m_maxVisibleLines_128() const { return ___m_maxVisibleLines_128; }
inline int32_t* get_address_of_m_maxVisibleLines_128() { return &___m_maxVisibleLines_128; }
inline void set_m_maxVisibleLines_128(int32_t value)
{
___m_maxVisibleLines_128 = value;
}
inline static int32_t get_offset_of_m_useMaxVisibleDescender_129() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_useMaxVisibleDescender_129)); }
inline bool get_m_useMaxVisibleDescender_129() const { return ___m_useMaxVisibleDescender_129; }
inline bool* get_address_of_m_useMaxVisibleDescender_129() { return &___m_useMaxVisibleDescender_129; }
inline void set_m_useMaxVisibleDescender_129(bool value)
{
___m_useMaxVisibleDescender_129 = value;
}
inline static int32_t get_offset_of_m_pageToDisplay_130() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_pageToDisplay_130)); }
inline int32_t get_m_pageToDisplay_130() const { return ___m_pageToDisplay_130; }
inline int32_t* get_address_of_m_pageToDisplay_130() { return &___m_pageToDisplay_130; }
inline void set_m_pageToDisplay_130(int32_t value)
{
___m_pageToDisplay_130 = value;
}
inline static int32_t get_offset_of_m_isNewPage_131() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isNewPage_131)); }
inline bool get_m_isNewPage_131() const { return ___m_isNewPage_131; }
inline bool* get_address_of_m_isNewPage_131() { return &___m_isNewPage_131; }
inline void set_m_isNewPage_131(bool value)
{
___m_isNewPage_131 = value;
}
inline static int32_t get_offset_of_m_margin_132() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_margin_132)); }
inline Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E get_m_margin_132() const { return ___m_margin_132; }
inline Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E * get_address_of_m_margin_132() { return &___m_margin_132; }
inline void set_m_margin_132(Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E value)
{
___m_margin_132 = value;
}
inline static int32_t get_offset_of_m_marginLeft_133() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_marginLeft_133)); }
inline float get_m_marginLeft_133() const { return ___m_marginLeft_133; }
inline float* get_address_of_m_marginLeft_133() { return &___m_marginLeft_133; }
inline void set_m_marginLeft_133(float value)
{
___m_marginLeft_133 = value;
}
inline static int32_t get_offset_of_m_marginRight_134() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_marginRight_134)); }
inline float get_m_marginRight_134() const { return ___m_marginRight_134; }
inline float* get_address_of_m_marginRight_134() { return &___m_marginRight_134; }
inline void set_m_marginRight_134(float value)
{
___m_marginRight_134 = value;
}
inline static int32_t get_offset_of_m_marginWidth_135() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_marginWidth_135)); }
inline float get_m_marginWidth_135() const { return ___m_marginWidth_135; }
inline float* get_address_of_m_marginWidth_135() { return &___m_marginWidth_135; }
inline void set_m_marginWidth_135(float value)
{
___m_marginWidth_135 = value;
}
inline static int32_t get_offset_of_m_marginHeight_136() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_marginHeight_136)); }
inline float get_m_marginHeight_136() const { return ___m_marginHeight_136; }
inline float* get_address_of_m_marginHeight_136() { return &___m_marginHeight_136; }
inline void set_m_marginHeight_136(float value)
{
___m_marginHeight_136 = value;
}
inline static int32_t get_offset_of_m_width_137() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_width_137)); }
inline float get_m_width_137() const { return ___m_width_137; }
inline float* get_address_of_m_width_137() { return &___m_width_137; }
inline void set_m_width_137(float value)
{
___m_width_137 = value;
}
inline static int32_t get_offset_of_m_textInfo_138() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_textInfo_138)); }
inline TMP_TextInfo_tC40DAAB47C5BD5AD21B3F456D860474D96D9C181 * get_m_textInfo_138() const { return ___m_textInfo_138; }
inline TMP_TextInfo_tC40DAAB47C5BD5AD21B3F456D860474D96D9C181 ** get_address_of_m_textInfo_138() { return &___m_textInfo_138; }
inline void set_m_textInfo_138(TMP_TextInfo_tC40DAAB47C5BD5AD21B3F456D860474D96D9C181 * value)
{
___m_textInfo_138 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_textInfo_138), (void*)value);
}
inline static int32_t get_offset_of_m_havePropertiesChanged_139() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_havePropertiesChanged_139)); }
inline bool get_m_havePropertiesChanged_139() const { return ___m_havePropertiesChanged_139; }
inline bool* get_address_of_m_havePropertiesChanged_139() { return &___m_havePropertiesChanged_139; }
inline void set_m_havePropertiesChanged_139(bool value)
{
___m_havePropertiesChanged_139 = value;
}
inline static int32_t get_offset_of_m_isUsingLegacyAnimationComponent_140() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isUsingLegacyAnimationComponent_140)); }
inline bool get_m_isUsingLegacyAnimationComponent_140() const { return ___m_isUsingLegacyAnimationComponent_140; }
inline bool* get_address_of_m_isUsingLegacyAnimationComponent_140() { return &___m_isUsingLegacyAnimationComponent_140; }
inline void set_m_isUsingLegacyAnimationComponent_140(bool value)
{
___m_isUsingLegacyAnimationComponent_140 = value;
}
inline static int32_t get_offset_of_m_transform_141() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_transform_141)); }
inline Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * get_m_transform_141() const { return ___m_transform_141; }
inline Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA ** get_address_of_m_transform_141() { return &___m_transform_141; }
inline void set_m_transform_141(Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * value)
{
___m_transform_141 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_transform_141), (void*)value);
}
inline static int32_t get_offset_of_m_rectTransform_142() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_rectTransform_142)); }
inline RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * get_m_rectTransform_142() const { return ___m_rectTransform_142; }
inline RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 ** get_address_of_m_rectTransform_142() { return &___m_rectTransform_142; }
inline void set_m_rectTransform_142(RectTransform_t285CBD8775B25174B75164F10618F8B9728E1B20 * value)
{
___m_rectTransform_142 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_rectTransform_142), (void*)value);
}
inline static int32_t get_offset_of_U3CautoSizeTextContainerU3Ek__BackingField_143() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___U3CautoSizeTextContainerU3Ek__BackingField_143)); }
inline bool get_U3CautoSizeTextContainerU3Ek__BackingField_143() const { return ___U3CautoSizeTextContainerU3Ek__BackingField_143; }
inline bool* get_address_of_U3CautoSizeTextContainerU3Ek__BackingField_143() { return &___U3CautoSizeTextContainerU3Ek__BackingField_143; }
inline void set_U3CautoSizeTextContainerU3Ek__BackingField_143(bool value)
{
___U3CautoSizeTextContainerU3Ek__BackingField_143 = value;
}
inline static int32_t get_offset_of_m_autoSizeTextContainer_144() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_autoSizeTextContainer_144)); }
inline bool get_m_autoSizeTextContainer_144() const { return ___m_autoSizeTextContainer_144; }
inline bool* get_address_of_m_autoSizeTextContainer_144() { return &___m_autoSizeTextContainer_144; }
inline void set_m_autoSizeTextContainer_144(bool value)
{
___m_autoSizeTextContainer_144 = value;
}
inline static int32_t get_offset_of_m_mesh_145() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_mesh_145)); }
inline Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C * get_m_mesh_145() const { return ___m_mesh_145; }
inline Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C ** get_address_of_m_mesh_145() { return &___m_mesh_145; }
inline void set_m_mesh_145(Mesh_t6106B8D8E4C691321581AB0445552EC78B947B8C * value)
{
___m_mesh_145 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_mesh_145), (void*)value);
}
inline static int32_t get_offset_of_m_isVolumetricText_146() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isVolumetricText_146)); }
inline bool get_m_isVolumetricText_146() const { return ___m_isVolumetricText_146; }
inline bool* get_address_of_m_isVolumetricText_146() { return &___m_isVolumetricText_146; }
inline void set_m_isVolumetricText_146(bool value)
{
___m_isVolumetricText_146 = value;
}
inline static int32_t get_offset_of_m_spriteAnimator_147() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_spriteAnimator_147)); }
inline TMP_SpriteAnimator_tEB1A22D4A88DC5AAC3EFBDD8FD10B2A02C7B0D17 * get_m_spriteAnimator_147() const { return ___m_spriteAnimator_147; }
inline TMP_SpriteAnimator_tEB1A22D4A88DC5AAC3EFBDD8FD10B2A02C7B0D17 ** get_address_of_m_spriteAnimator_147() { return &___m_spriteAnimator_147; }
inline void set_m_spriteAnimator_147(TMP_SpriteAnimator_tEB1A22D4A88DC5AAC3EFBDD8FD10B2A02C7B0D17 * value)
{
___m_spriteAnimator_147 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_spriteAnimator_147), (void*)value);
}
inline static int32_t get_offset_of_m_flexibleHeight_148() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_flexibleHeight_148)); }
inline float get_m_flexibleHeight_148() const { return ___m_flexibleHeight_148; }
inline float* get_address_of_m_flexibleHeight_148() { return &___m_flexibleHeight_148; }
inline void set_m_flexibleHeight_148(float value)
{
___m_flexibleHeight_148 = value;
}
inline static int32_t get_offset_of_m_flexibleWidth_149() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_flexibleWidth_149)); }
inline float get_m_flexibleWidth_149() const { return ___m_flexibleWidth_149; }
inline float* get_address_of_m_flexibleWidth_149() { return &___m_flexibleWidth_149; }
inline void set_m_flexibleWidth_149(float value)
{
___m_flexibleWidth_149 = value;
}
inline static int32_t get_offset_of_m_minWidth_150() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_minWidth_150)); }
inline float get_m_minWidth_150() const { return ___m_minWidth_150; }
inline float* get_address_of_m_minWidth_150() { return &___m_minWidth_150; }
inline void set_m_minWidth_150(float value)
{
___m_minWidth_150 = value;
}
inline static int32_t get_offset_of_m_minHeight_151() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_minHeight_151)); }
inline float get_m_minHeight_151() const { return ___m_minHeight_151; }
inline float* get_address_of_m_minHeight_151() { return &___m_minHeight_151; }
inline void set_m_minHeight_151(float value)
{
___m_minHeight_151 = value;
}
inline static int32_t get_offset_of_m_maxWidth_152() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_maxWidth_152)); }
inline float get_m_maxWidth_152() const { return ___m_maxWidth_152; }
inline float* get_address_of_m_maxWidth_152() { return &___m_maxWidth_152; }
inline void set_m_maxWidth_152(float value)
{
___m_maxWidth_152 = value;
}
inline static int32_t get_offset_of_m_maxHeight_153() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_maxHeight_153)); }
inline float get_m_maxHeight_153() const { return ___m_maxHeight_153; }
inline float* get_address_of_m_maxHeight_153() { return &___m_maxHeight_153; }
inline void set_m_maxHeight_153(float value)
{
___m_maxHeight_153 = value;
}
inline static int32_t get_offset_of_m_LayoutElement_154() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_LayoutElement_154)); }
inline LayoutElement_tD503826DB41B6EA85AC689292F8B2661B3C1048B * get_m_LayoutElement_154() const { return ___m_LayoutElement_154; }
inline LayoutElement_tD503826DB41B6EA85AC689292F8B2661B3C1048B ** get_address_of_m_LayoutElement_154() { return &___m_LayoutElement_154; }
inline void set_m_LayoutElement_154(LayoutElement_tD503826DB41B6EA85AC689292F8B2661B3C1048B * value)
{
___m_LayoutElement_154 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_LayoutElement_154), (void*)value);
}
inline static int32_t get_offset_of_m_preferredWidth_155() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_preferredWidth_155)); }
inline float get_m_preferredWidth_155() const { return ___m_preferredWidth_155; }
inline float* get_address_of_m_preferredWidth_155() { return &___m_preferredWidth_155; }
inline void set_m_preferredWidth_155(float value)
{
___m_preferredWidth_155 = value;
}
inline static int32_t get_offset_of_m_renderedWidth_156() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_renderedWidth_156)); }
inline float get_m_renderedWidth_156() const { return ___m_renderedWidth_156; }
inline float* get_address_of_m_renderedWidth_156() { return &___m_renderedWidth_156; }
inline void set_m_renderedWidth_156(float value)
{
___m_renderedWidth_156 = value;
}
inline static int32_t get_offset_of_m_isPreferredWidthDirty_157() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isPreferredWidthDirty_157)); }
inline bool get_m_isPreferredWidthDirty_157() const { return ___m_isPreferredWidthDirty_157; }
inline bool* get_address_of_m_isPreferredWidthDirty_157() { return &___m_isPreferredWidthDirty_157; }
inline void set_m_isPreferredWidthDirty_157(bool value)
{
___m_isPreferredWidthDirty_157 = value;
}
inline static int32_t get_offset_of_m_preferredHeight_158() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_preferredHeight_158)); }
inline float get_m_preferredHeight_158() const { return ___m_preferredHeight_158; }
inline float* get_address_of_m_preferredHeight_158() { return &___m_preferredHeight_158; }
inline void set_m_preferredHeight_158(float value)
{
___m_preferredHeight_158 = value;
}
inline static int32_t get_offset_of_m_renderedHeight_159() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_renderedHeight_159)); }
inline float get_m_renderedHeight_159() const { return ___m_renderedHeight_159; }
inline float* get_address_of_m_renderedHeight_159() { return &___m_renderedHeight_159; }
inline void set_m_renderedHeight_159(float value)
{
___m_renderedHeight_159 = value;
}
inline static int32_t get_offset_of_m_isPreferredHeightDirty_160() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isPreferredHeightDirty_160)); }
inline bool get_m_isPreferredHeightDirty_160() const { return ___m_isPreferredHeightDirty_160; }
inline bool* get_address_of_m_isPreferredHeightDirty_160() { return &___m_isPreferredHeightDirty_160; }
inline void set_m_isPreferredHeightDirty_160(bool value)
{
___m_isPreferredHeightDirty_160 = value;
}
inline static int32_t get_offset_of_m_isCalculatingPreferredValues_161() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isCalculatingPreferredValues_161)); }
inline bool get_m_isCalculatingPreferredValues_161() const { return ___m_isCalculatingPreferredValues_161; }
inline bool* get_address_of_m_isCalculatingPreferredValues_161() { return &___m_isCalculatingPreferredValues_161; }
inline void set_m_isCalculatingPreferredValues_161(bool value)
{
___m_isCalculatingPreferredValues_161 = value;
}
inline static int32_t get_offset_of_m_recursiveCount_162() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_recursiveCount_162)); }
inline int32_t get_m_recursiveCount_162() const { return ___m_recursiveCount_162; }
inline int32_t* get_address_of_m_recursiveCount_162() { return &___m_recursiveCount_162; }
inline void set_m_recursiveCount_162(int32_t value)
{
___m_recursiveCount_162 = value;
}
inline static int32_t get_offset_of_m_layoutPriority_163() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_layoutPriority_163)); }
inline int32_t get_m_layoutPriority_163() const { return ___m_layoutPriority_163; }
inline int32_t* get_address_of_m_layoutPriority_163() { return &___m_layoutPriority_163; }
inline void set_m_layoutPriority_163(int32_t value)
{
___m_layoutPriority_163 = value;
}
inline static int32_t get_offset_of_m_isCalculateSizeRequired_164() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isCalculateSizeRequired_164)); }
inline bool get_m_isCalculateSizeRequired_164() const { return ___m_isCalculateSizeRequired_164; }
inline bool* get_address_of_m_isCalculateSizeRequired_164() { return &___m_isCalculateSizeRequired_164; }
inline void set_m_isCalculateSizeRequired_164(bool value)
{
___m_isCalculateSizeRequired_164 = value;
}
inline static int32_t get_offset_of_m_isLayoutDirty_165() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isLayoutDirty_165)); }
inline bool get_m_isLayoutDirty_165() const { return ___m_isLayoutDirty_165; }
inline bool* get_address_of_m_isLayoutDirty_165() { return &___m_isLayoutDirty_165; }
inline void set_m_isLayoutDirty_165(bool value)
{
___m_isLayoutDirty_165 = value;
}
inline static int32_t get_offset_of_m_verticesAlreadyDirty_166() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_verticesAlreadyDirty_166)); }
inline bool get_m_verticesAlreadyDirty_166() const { return ___m_verticesAlreadyDirty_166; }
inline bool* get_address_of_m_verticesAlreadyDirty_166() { return &___m_verticesAlreadyDirty_166; }
inline void set_m_verticesAlreadyDirty_166(bool value)
{
___m_verticesAlreadyDirty_166 = value;
}
inline static int32_t get_offset_of_m_layoutAlreadyDirty_167() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_layoutAlreadyDirty_167)); }
inline bool get_m_layoutAlreadyDirty_167() const { return ___m_layoutAlreadyDirty_167; }
inline bool* get_address_of_m_layoutAlreadyDirty_167() { return &___m_layoutAlreadyDirty_167; }
inline void set_m_layoutAlreadyDirty_167(bool value)
{
___m_layoutAlreadyDirty_167 = value;
}
inline static int32_t get_offset_of_m_isAwake_168() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isAwake_168)); }
inline bool get_m_isAwake_168() const { return ___m_isAwake_168; }
inline bool* get_address_of_m_isAwake_168() { return &___m_isAwake_168; }
inline void set_m_isAwake_168(bool value)
{
___m_isAwake_168 = value;
}
inline static int32_t get_offset_of_m_isWaitingOnResourceLoad_169() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isWaitingOnResourceLoad_169)); }
inline bool get_m_isWaitingOnResourceLoad_169() const { return ___m_isWaitingOnResourceLoad_169; }
inline bool* get_address_of_m_isWaitingOnResourceLoad_169() { return &___m_isWaitingOnResourceLoad_169; }
inline void set_m_isWaitingOnResourceLoad_169(bool value)
{
___m_isWaitingOnResourceLoad_169 = value;
}
inline static int32_t get_offset_of_m_isInputParsingRequired_170() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isInputParsingRequired_170)); }
inline bool get_m_isInputParsingRequired_170() const { return ___m_isInputParsingRequired_170; }
inline bool* get_address_of_m_isInputParsingRequired_170() { return &___m_isInputParsingRequired_170; }
inline void set_m_isInputParsingRequired_170(bool value)
{
___m_isInputParsingRequired_170 = value;
}
inline static int32_t get_offset_of_m_inputSource_171() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_inputSource_171)); }
inline int32_t get_m_inputSource_171() const { return ___m_inputSource_171; }
inline int32_t* get_address_of_m_inputSource_171() { return &___m_inputSource_171; }
inline void set_m_inputSource_171(int32_t value)
{
___m_inputSource_171 = value;
}
inline static int32_t get_offset_of_old_text_172() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___old_text_172)); }
inline String_t* get_old_text_172() const { return ___old_text_172; }
inline String_t** get_address_of_old_text_172() { return &___old_text_172; }
inline void set_old_text_172(String_t* value)
{
___old_text_172 = value;
Il2CppCodeGenWriteBarrier((void**)(&___old_text_172), (void*)value);
}
inline static int32_t get_offset_of_m_fontScale_173() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_fontScale_173)); }
inline float get_m_fontScale_173() const { return ___m_fontScale_173; }
inline float* get_address_of_m_fontScale_173() { return &___m_fontScale_173; }
inline void set_m_fontScale_173(float value)
{
___m_fontScale_173 = value;
}
inline static int32_t get_offset_of_m_fontScaleMultiplier_174() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_fontScaleMultiplier_174)); }
inline float get_m_fontScaleMultiplier_174() const { return ___m_fontScaleMultiplier_174; }
inline float* get_address_of_m_fontScaleMultiplier_174() { return &___m_fontScaleMultiplier_174; }
inline void set_m_fontScaleMultiplier_174(float value)
{
___m_fontScaleMultiplier_174 = value;
}
inline static int32_t get_offset_of_m_htmlTag_175() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_htmlTag_175)); }
inline CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* get_m_htmlTag_175() const { return ___m_htmlTag_175; }
inline CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2** get_address_of_m_htmlTag_175() { return &___m_htmlTag_175; }
inline void set_m_htmlTag_175(CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* value)
{
___m_htmlTag_175 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_htmlTag_175), (void*)value);
}
inline static int32_t get_offset_of_m_xmlAttribute_176() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_xmlAttribute_176)); }
inline RichTextTagAttributeU5BU5D_tDDFB2F68801310D7EEE16822832E48E70B11C652* get_m_xmlAttribute_176() const { return ___m_xmlAttribute_176; }
inline RichTextTagAttributeU5BU5D_tDDFB2F68801310D7EEE16822832E48E70B11C652** get_address_of_m_xmlAttribute_176() { return &___m_xmlAttribute_176; }
inline void set_m_xmlAttribute_176(RichTextTagAttributeU5BU5D_tDDFB2F68801310D7EEE16822832E48E70B11C652* value)
{
___m_xmlAttribute_176 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_xmlAttribute_176), (void*)value);
}
inline static int32_t get_offset_of_m_attributeParameterValues_177() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_attributeParameterValues_177)); }
inline SingleU5BU5D_tA7139B7CAA40EAEF9178E2C386C8A5993754FDD5* get_m_attributeParameterValues_177() const { return ___m_attributeParameterValues_177; }
inline SingleU5BU5D_tA7139B7CAA40EAEF9178E2C386C8A5993754FDD5** get_address_of_m_attributeParameterValues_177() { return &___m_attributeParameterValues_177; }
inline void set_m_attributeParameterValues_177(SingleU5BU5D_tA7139B7CAA40EAEF9178E2C386C8A5993754FDD5* value)
{
___m_attributeParameterValues_177 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_attributeParameterValues_177), (void*)value);
}
inline static int32_t get_offset_of_tag_LineIndent_178() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___tag_LineIndent_178)); }
inline float get_tag_LineIndent_178() const { return ___tag_LineIndent_178; }
inline float* get_address_of_tag_LineIndent_178() { return &___tag_LineIndent_178; }
inline void set_tag_LineIndent_178(float value)
{
___tag_LineIndent_178 = value;
}
inline static int32_t get_offset_of_tag_Indent_179() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___tag_Indent_179)); }
inline float get_tag_Indent_179() const { return ___tag_Indent_179; }
inline float* get_address_of_tag_Indent_179() { return &___tag_Indent_179; }
inline void set_tag_Indent_179(float value)
{
___tag_Indent_179 = value;
}
inline static int32_t get_offset_of_m_indentStack_180() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_indentStack_180)); }
inline TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 get_m_indentStack_180() const { return ___m_indentStack_180; }
inline TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 * get_address_of_m_indentStack_180() { return &___m_indentStack_180; }
inline void set_m_indentStack_180(TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 value)
{
___m_indentStack_180 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___m_indentStack_180))->___m_ItemStack_0), (void*)NULL);
}
inline static int32_t get_offset_of_tag_NoParsing_181() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___tag_NoParsing_181)); }
inline bool get_tag_NoParsing_181() const { return ___tag_NoParsing_181; }
inline bool* get_address_of_tag_NoParsing_181() { return &___tag_NoParsing_181; }
inline void set_tag_NoParsing_181(bool value)
{
___tag_NoParsing_181 = value;
}
inline static int32_t get_offset_of_m_isParsingText_182() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isParsingText_182)); }
inline bool get_m_isParsingText_182() const { return ___m_isParsingText_182; }
inline bool* get_address_of_m_isParsingText_182() { return &___m_isParsingText_182; }
inline void set_m_isParsingText_182(bool value)
{
___m_isParsingText_182 = value;
}
inline static int32_t get_offset_of_m_FXMatrix_183() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_FXMatrix_183)); }
inline Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA get_m_FXMatrix_183() const { return ___m_FXMatrix_183; }
inline Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA * get_address_of_m_FXMatrix_183() { return &___m_FXMatrix_183; }
inline void set_m_FXMatrix_183(Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA value)
{
___m_FXMatrix_183 = value;
}
inline static int32_t get_offset_of_m_isFXMatrixSet_184() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_isFXMatrixSet_184)); }
inline bool get_m_isFXMatrixSet_184() const { return ___m_isFXMatrixSet_184; }
inline bool* get_address_of_m_isFXMatrixSet_184() { return &___m_isFXMatrixSet_184; }
inline void set_m_isFXMatrixSet_184(bool value)
{
___m_isFXMatrixSet_184 = value;
}
inline static int32_t get_offset_of_m_TextParsingBuffer_185() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_TextParsingBuffer_185)); }
inline UnicodeCharU5BU5D_t14B138F2B44C8EA3A5A5DB234E3739F385E55505* get_m_TextParsingBuffer_185() const { return ___m_TextParsingBuffer_185; }
inline UnicodeCharU5BU5D_t14B138F2B44C8EA3A5A5DB234E3739F385E55505** get_address_of_m_TextParsingBuffer_185() { return &___m_TextParsingBuffer_185; }
inline void set_m_TextParsingBuffer_185(UnicodeCharU5BU5D_t14B138F2B44C8EA3A5A5DB234E3739F385E55505* value)
{
___m_TextParsingBuffer_185 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_TextParsingBuffer_185), (void*)value);
}
inline static int32_t get_offset_of_m_internalCharacterInfo_186() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_internalCharacterInfo_186)); }
inline TMP_CharacterInfoU5BU5D_t415BD08A7E8A8C311B1F7BD9C3AC60BF99339604* get_m_internalCharacterInfo_186() const { return ___m_internalCharacterInfo_186; }
inline TMP_CharacterInfoU5BU5D_t415BD08A7E8A8C311B1F7BD9C3AC60BF99339604** get_address_of_m_internalCharacterInfo_186() { return &___m_internalCharacterInfo_186; }
inline void set_m_internalCharacterInfo_186(TMP_CharacterInfoU5BU5D_t415BD08A7E8A8C311B1F7BD9C3AC60BF99339604* value)
{
___m_internalCharacterInfo_186 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_internalCharacterInfo_186), (void*)value);
}
inline static int32_t get_offset_of_m_input_CharArray_187() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_input_CharArray_187)); }
inline CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* get_m_input_CharArray_187() const { return ___m_input_CharArray_187; }
inline CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2** get_address_of_m_input_CharArray_187() { return &___m_input_CharArray_187; }
inline void set_m_input_CharArray_187(CharU5BU5D_t4CC6ABF0AD71BEC97E3C2F1E9C5677E46D3A75C2* value)
{
___m_input_CharArray_187 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_input_CharArray_187), (void*)value);
}
inline static int32_t get_offset_of_m_charArray_Length_188() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_charArray_Length_188)); }
inline int32_t get_m_charArray_Length_188() const { return ___m_charArray_Length_188; }
inline int32_t* get_address_of_m_charArray_Length_188() { return &___m_charArray_Length_188; }
inline void set_m_charArray_Length_188(int32_t value)
{
___m_charArray_Length_188 = value;
}
inline static int32_t get_offset_of_m_totalCharacterCount_189() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_totalCharacterCount_189)); }
inline int32_t get_m_totalCharacterCount_189() const { return ___m_totalCharacterCount_189; }
inline int32_t* get_address_of_m_totalCharacterCount_189() { return &___m_totalCharacterCount_189; }
inline void set_m_totalCharacterCount_189(int32_t value)
{
___m_totalCharacterCount_189 = value;
}
inline static int32_t get_offset_of_m_SavedWordWrapState_190() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_SavedWordWrapState_190)); }
inline WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557 get_m_SavedWordWrapState_190() const { return ___m_SavedWordWrapState_190; }
inline WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557 * get_address_of_m_SavedWordWrapState_190() { return &___m_SavedWordWrapState_190; }
inline void set_m_SavedWordWrapState_190(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557 value)
{
___m_SavedWordWrapState_190 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___m_SavedWordWrapState_190))->___textInfo_27), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedWordWrapState_190))->___colorStack_34))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedWordWrapState_190))->___underlineColorStack_35))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedWordWrapState_190))->___strikethroughColorStack_36))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedWordWrapState_190))->___highlightColorStack_37))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedWordWrapState_190))->___colorGradientStack_38))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedWordWrapState_190))->___colorGradientStack_38))->___m_DefaultItem_3), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedWordWrapState_190))->___sizeStack_39))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedWordWrapState_190))->___indentStack_40))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedWordWrapState_190))->___fontWeightStack_41))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedWordWrapState_190))->___styleStack_42))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedWordWrapState_190))->___baselineStack_43))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedWordWrapState_190))->___actionStack_44))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedWordWrapState_190))->___materialReferenceStack_45))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&((&(((&___m_SavedWordWrapState_190))->___materialReferenceStack_45))->___m_DefaultItem_3))->___fontAsset_1), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&((&(((&___m_SavedWordWrapState_190))->___materialReferenceStack_45))->___m_DefaultItem_3))->___spriteAsset_2), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&((&(((&___m_SavedWordWrapState_190))->___materialReferenceStack_45))->___m_DefaultItem_3))->___material_3), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&((&(((&___m_SavedWordWrapState_190))->___materialReferenceStack_45))->___m_DefaultItem_3))->___fallbackMaterial_6), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedWordWrapState_190))->___lineJustificationStack_46))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___m_SavedWordWrapState_190))->___currentFontAsset_48), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___m_SavedWordWrapState_190))->___currentSpriteAsset_49), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___m_SavedWordWrapState_190))->___currentMaterial_50), (void*)NULL);
#endif
}
inline static int32_t get_offset_of_m_SavedLineState_191() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_SavedLineState_191)); }
inline WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557 get_m_SavedLineState_191() const { return ___m_SavedLineState_191; }
inline WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557 * get_address_of_m_SavedLineState_191() { return &___m_SavedLineState_191; }
inline void set_m_SavedLineState_191(WordWrapState_t415B8622774DD094A9CD7447D298B33B7365A557 value)
{
___m_SavedLineState_191 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___m_SavedLineState_191))->___textInfo_27), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedLineState_191))->___colorStack_34))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedLineState_191))->___underlineColorStack_35))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedLineState_191))->___strikethroughColorStack_36))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedLineState_191))->___highlightColorStack_37))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedLineState_191))->___colorGradientStack_38))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedLineState_191))->___colorGradientStack_38))->___m_DefaultItem_3), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedLineState_191))->___sizeStack_39))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedLineState_191))->___indentStack_40))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedLineState_191))->___fontWeightStack_41))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedLineState_191))->___styleStack_42))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedLineState_191))->___baselineStack_43))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedLineState_191))->___actionStack_44))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedLineState_191))->___materialReferenceStack_45))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&((&(((&___m_SavedLineState_191))->___materialReferenceStack_45))->___m_DefaultItem_3))->___fontAsset_1), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&((&(((&___m_SavedLineState_191))->___materialReferenceStack_45))->___m_DefaultItem_3))->___spriteAsset_2), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&((&(((&___m_SavedLineState_191))->___materialReferenceStack_45))->___m_DefaultItem_3))->___material_3), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&((&(((&___m_SavedLineState_191))->___materialReferenceStack_45))->___m_DefaultItem_3))->___fallbackMaterial_6), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&((&(((&___m_SavedLineState_191))->___lineJustificationStack_46))->___m_ItemStack_0), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___m_SavedLineState_191))->___currentFontAsset_48), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___m_SavedLineState_191))->___currentSpriteAsset_49), (void*)NULL);
#endif
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___m_SavedLineState_191))->___currentMaterial_50), (void*)NULL);
#endif
}
inline static int32_t get_offset_of_m_characterCount_192() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_characterCount_192)); }
inline int32_t get_m_characterCount_192() const { return ___m_characterCount_192; }
inline int32_t* get_address_of_m_characterCount_192() { return &___m_characterCount_192; }
inline void set_m_characterCount_192(int32_t value)
{
___m_characterCount_192 = value;
}
inline static int32_t get_offset_of_m_firstCharacterOfLine_193() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_firstCharacterOfLine_193)); }
inline int32_t get_m_firstCharacterOfLine_193() const { return ___m_firstCharacterOfLine_193; }
inline int32_t* get_address_of_m_firstCharacterOfLine_193() { return &___m_firstCharacterOfLine_193; }
inline void set_m_firstCharacterOfLine_193(int32_t value)
{
___m_firstCharacterOfLine_193 = value;
}
inline static int32_t get_offset_of_m_firstVisibleCharacterOfLine_194() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_firstVisibleCharacterOfLine_194)); }
inline int32_t get_m_firstVisibleCharacterOfLine_194() const { return ___m_firstVisibleCharacterOfLine_194; }
inline int32_t* get_address_of_m_firstVisibleCharacterOfLine_194() { return &___m_firstVisibleCharacterOfLine_194; }
inline void set_m_firstVisibleCharacterOfLine_194(int32_t value)
{
___m_firstVisibleCharacterOfLine_194 = value;
}
inline static int32_t get_offset_of_m_lastCharacterOfLine_195() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_lastCharacterOfLine_195)); }
inline int32_t get_m_lastCharacterOfLine_195() const { return ___m_lastCharacterOfLine_195; }
inline int32_t* get_address_of_m_lastCharacterOfLine_195() { return &___m_lastCharacterOfLine_195; }
inline void set_m_lastCharacterOfLine_195(int32_t value)
{
___m_lastCharacterOfLine_195 = value;
}
inline static int32_t get_offset_of_m_lastVisibleCharacterOfLine_196() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_lastVisibleCharacterOfLine_196)); }
inline int32_t get_m_lastVisibleCharacterOfLine_196() const { return ___m_lastVisibleCharacterOfLine_196; }
inline int32_t* get_address_of_m_lastVisibleCharacterOfLine_196() { return &___m_lastVisibleCharacterOfLine_196; }
inline void set_m_lastVisibleCharacterOfLine_196(int32_t value)
{
___m_lastVisibleCharacterOfLine_196 = value;
}
inline static int32_t get_offset_of_m_lineNumber_197() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_lineNumber_197)); }
inline int32_t get_m_lineNumber_197() const { return ___m_lineNumber_197; }
inline int32_t* get_address_of_m_lineNumber_197() { return &___m_lineNumber_197; }
inline void set_m_lineNumber_197(int32_t value)
{
___m_lineNumber_197 = value;
}
inline static int32_t get_offset_of_m_lineVisibleCharacterCount_198() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_lineVisibleCharacterCount_198)); }
inline int32_t get_m_lineVisibleCharacterCount_198() const { return ___m_lineVisibleCharacterCount_198; }
inline int32_t* get_address_of_m_lineVisibleCharacterCount_198() { return &___m_lineVisibleCharacterCount_198; }
inline void set_m_lineVisibleCharacterCount_198(int32_t value)
{
___m_lineVisibleCharacterCount_198 = value;
}
inline static int32_t get_offset_of_m_pageNumber_199() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_pageNumber_199)); }
inline int32_t get_m_pageNumber_199() const { return ___m_pageNumber_199; }
inline int32_t* get_address_of_m_pageNumber_199() { return &___m_pageNumber_199; }
inline void set_m_pageNumber_199(int32_t value)
{
___m_pageNumber_199 = value;
}
inline static int32_t get_offset_of_m_maxAscender_200() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_maxAscender_200)); }
inline float get_m_maxAscender_200() const { return ___m_maxAscender_200; }
inline float* get_address_of_m_maxAscender_200() { return &___m_maxAscender_200; }
inline void set_m_maxAscender_200(float value)
{
___m_maxAscender_200 = value;
}
inline static int32_t get_offset_of_m_maxCapHeight_201() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_maxCapHeight_201)); }
inline float get_m_maxCapHeight_201() const { return ___m_maxCapHeight_201; }
inline float* get_address_of_m_maxCapHeight_201() { return &___m_maxCapHeight_201; }
inline void set_m_maxCapHeight_201(float value)
{
___m_maxCapHeight_201 = value;
}
inline static int32_t get_offset_of_m_maxDescender_202() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_maxDescender_202)); }
inline float get_m_maxDescender_202() const { return ___m_maxDescender_202; }
inline float* get_address_of_m_maxDescender_202() { return &___m_maxDescender_202; }
inline void set_m_maxDescender_202(float value)
{
___m_maxDescender_202 = value;
}
inline static int32_t get_offset_of_m_maxLineAscender_203() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_maxLineAscender_203)); }
inline float get_m_maxLineAscender_203() const { return ___m_maxLineAscender_203; }
inline float* get_address_of_m_maxLineAscender_203() { return &___m_maxLineAscender_203; }
inline void set_m_maxLineAscender_203(float value)
{
___m_maxLineAscender_203 = value;
}
inline static int32_t get_offset_of_m_maxLineDescender_204() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_maxLineDescender_204)); }
inline float get_m_maxLineDescender_204() const { return ___m_maxLineDescender_204; }
inline float* get_address_of_m_maxLineDescender_204() { return &___m_maxLineDescender_204; }
inline void set_m_maxLineDescender_204(float value)
{
___m_maxLineDescender_204 = value;
}
inline static int32_t get_offset_of_m_startOfLineAscender_205() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_startOfLineAscender_205)); }
inline float get_m_startOfLineAscender_205() const { return ___m_startOfLineAscender_205; }
inline float* get_address_of_m_startOfLineAscender_205() { return &___m_startOfLineAscender_205; }
inline void set_m_startOfLineAscender_205(float value)
{
___m_startOfLineAscender_205 = value;
}
inline static int32_t get_offset_of_m_lineOffset_206() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_lineOffset_206)); }
inline float get_m_lineOffset_206() const { return ___m_lineOffset_206; }
inline float* get_address_of_m_lineOffset_206() { return &___m_lineOffset_206; }
inline void set_m_lineOffset_206(float value)
{
___m_lineOffset_206 = value;
}
inline static int32_t get_offset_of_m_meshExtents_207() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_meshExtents_207)); }
inline Extents_tB63A1FF929CAEBC8E097EF426A8B6F91442B0EA3 get_m_meshExtents_207() const { return ___m_meshExtents_207; }
inline Extents_tB63A1FF929CAEBC8E097EF426A8B6F91442B0EA3 * get_address_of_m_meshExtents_207() { return &___m_meshExtents_207; }
inline void set_m_meshExtents_207(Extents_tB63A1FF929CAEBC8E097EF426A8B6F91442B0EA3 value)
{
___m_meshExtents_207 = value;
}
inline static int32_t get_offset_of_m_htmlColor_208() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_htmlColor_208)); }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 get_m_htmlColor_208() const { return ___m_htmlColor_208; }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 * get_address_of_m_htmlColor_208() { return &___m_htmlColor_208; }
inline void set_m_htmlColor_208(Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 value)
{
___m_htmlColor_208 = value;
}
inline static int32_t get_offset_of_m_colorStack_209() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_colorStack_209)); }
inline TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 get_m_colorStack_209() const { return ___m_colorStack_209; }
inline TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 * get_address_of_m_colorStack_209() { return &___m_colorStack_209; }
inline void set_m_colorStack_209(TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 value)
{
___m_colorStack_209 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___m_colorStack_209))->___m_ItemStack_0), (void*)NULL);
}
inline static int32_t get_offset_of_m_underlineColorStack_210() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_underlineColorStack_210)); }
inline TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 get_m_underlineColorStack_210() const { return ___m_underlineColorStack_210; }
inline TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 * get_address_of_m_underlineColorStack_210() { return &___m_underlineColorStack_210; }
inline void set_m_underlineColorStack_210(TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 value)
{
___m_underlineColorStack_210 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___m_underlineColorStack_210))->___m_ItemStack_0), (void*)NULL);
}
inline static int32_t get_offset_of_m_strikethroughColorStack_211() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_strikethroughColorStack_211)); }
inline TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 get_m_strikethroughColorStack_211() const { return ___m_strikethroughColorStack_211; }
inline TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 * get_address_of_m_strikethroughColorStack_211() { return &___m_strikethroughColorStack_211; }
inline void set_m_strikethroughColorStack_211(TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 value)
{
___m_strikethroughColorStack_211 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___m_strikethroughColorStack_211))->___m_ItemStack_0), (void*)NULL);
}
inline static int32_t get_offset_of_m_highlightColorStack_212() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_highlightColorStack_212)); }
inline TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 get_m_highlightColorStack_212() const { return ___m_highlightColorStack_212; }
inline TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 * get_address_of_m_highlightColorStack_212() { return &___m_highlightColorStack_212; }
inline void set_m_highlightColorStack_212(TMP_RichTextTagStack_1_tDAE1C182F153530A3E6A3ADC1803919A380BCDF0 value)
{
___m_highlightColorStack_212 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___m_highlightColorStack_212))->___m_ItemStack_0), (void*)NULL);
}
inline static int32_t get_offset_of_m_colorGradientPreset_213() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_colorGradientPreset_213)); }
inline TMP_ColorGradient_tEA29C4736B1786301A803B6C0FB30107A10D79B7 * get_m_colorGradientPreset_213() const { return ___m_colorGradientPreset_213; }
inline TMP_ColorGradient_tEA29C4736B1786301A803B6C0FB30107A10D79B7 ** get_address_of_m_colorGradientPreset_213() { return &___m_colorGradientPreset_213; }
inline void set_m_colorGradientPreset_213(TMP_ColorGradient_tEA29C4736B1786301A803B6C0FB30107A10D79B7 * value)
{
___m_colorGradientPreset_213 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_colorGradientPreset_213), (void*)value);
}
inline static int32_t get_offset_of_m_colorGradientStack_214() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_colorGradientStack_214)); }
inline TMP_RichTextTagStack_1_tF73231072FB2CD9EBFCAF3C4D7E41E2221B9ED1D get_m_colorGradientStack_214() const { return ___m_colorGradientStack_214; }
inline TMP_RichTextTagStack_1_tF73231072FB2CD9EBFCAF3C4D7E41E2221B9ED1D * get_address_of_m_colorGradientStack_214() { return &___m_colorGradientStack_214; }
inline void set_m_colorGradientStack_214(TMP_RichTextTagStack_1_tF73231072FB2CD9EBFCAF3C4D7E41E2221B9ED1D value)
{
___m_colorGradientStack_214 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___m_colorGradientStack_214))->___m_ItemStack_0), (void*)NULL);
#if IL2CPP_ENABLE_STRICT_WRITE_BARRIERS
Il2CppCodeGenWriteBarrier((void**)&(((&___m_colorGradientStack_214))->___m_DefaultItem_3), (void*)NULL);
#endif
}
inline static int32_t get_offset_of_m_tabSpacing_215() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_tabSpacing_215)); }
inline float get_m_tabSpacing_215() const { return ___m_tabSpacing_215; }
inline float* get_address_of_m_tabSpacing_215() { return &___m_tabSpacing_215; }
inline void set_m_tabSpacing_215(float value)
{
___m_tabSpacing_215 = value;
}
inline static int32_t get_offset_of_m_spacing_216() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_spacing_216)); }
inline float get_m_spacing_216() const { return ___m_spacing_216; }
inline float* get_address_of_m_spacing_216() { return &___m_spacing_216; }
inline void set_m_spacing_216(float value)
{
___m_spacing_216 = value;
}
inline static int32_t get_offset_of_m_styleStack_217() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_styleStack_217)); }
inline TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293 get_m_styleStack_217() const { return ___m_styleStack_217; }
inline TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293 * get_address_of_m_styleStack_217() { return &___m_styleStack_217; }
inline void set_m_styleStack_217(TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293 value)
{
___m_styleStack_217 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___m_styleStack_217))->___m_ItemStack_0), (void*)NULL);
}
inline static int32_t get_offset_of_m_actionStack_218() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_actionStack_218)); }
inline TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293 get_m_actionStack_218() const { return ___m_actionStack_218; }
inline TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293 * get_address_of_m_actionStack_218() { return &___m_actionStack_218; }
inline void set_m_actionStack_218(TMP_RichTextTagStack_1_tC6AC19F231736A53E4E73CA41E8BE25BCCE04293 value)
{
___m_actionStack_218 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___m_actionStack_218))->___m_ItemStack_0), (void*)NULL);
}
inline static int32_t get_offset_of_m_padding_219() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_padding_219)); }
inline float get_m_padding_219() const { return ___m_padding_219; }
inline float* get_address_of_m_padding_219() { return &___m_padding_219; }
inline void set_m_padding_219(float value)
{
___m_padding_219 = value;
}
inline static int32_t get_offset_of_m_baselineOffset_220() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_baselineOffset_220)); }
inline float get_m_baselineOffset_220() const { return ___m_baselineOffset_220; }
inline float* get_address_of_m_baselineOffset_220() { return &___m_baselineOffset_220; }
inline void set_m_baselineOffset_220(float value)
{
___m_baselineOffset_220 = value;
}
inline static int32_t get_offset_of_m_baselineOffsetStack_221() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_baselineOffsetStack_221)); }
inline TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 get_m_baselineOffsetStack_221() const { return ___m_baselineOffsetStack_221; }
inline TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 * get_address_of_m_baselineOffsetStack_221() { return &___m_baselineOffsetStack_221; }
inline void set_m_baselineOffsetStack_221(TMP_RichTextTagStack_1_tD5CFAF6390F82194115C110DC92A2CFB29529106 value)
{
___m_baselineOffsetStack_221 = value;
Il2CppCodeGenWriteBarrier((void**)&(((&___m_baselineOffsetStack_221))->___m_ItemStack_0), (void*)NULL);
}
inline static int32_t get_offset_of_m_xAdvance_222() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_xAdvance_222)); }
inline float get_m_xAdvance_222() const { return ___m_xAdvance_222; }
inline float* get_address_of_m_xAdvance_222() { return &___m_xAdvance_222; }
inline void set_m_xAdvance_222(float value)
{
___m_xAdvance_222 = value;
}
inline static int32_t get_offset_of_m_textElementType_223() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_textElementType_223)); }
inline int32_t get_m_textElementType_223() const { return ___m_textElementType_223; }
inline int32_t* get_address_of_m_textElementType_223() { return &___m_textElementType_223; }
inline void set_m_textElementType_223(int32_t value)
{
___m_textElementType_223 = value;
}
inline static int32_t get_offset_of_m_cached_TextElement_224() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_cached_TextElement_224)); }
inline TMP_TextElement_tB9A6A361BB93487BD07DDDA37A368819DA46C344 * get_m_cached_TextElement_224() const { return ___m_cached_TextElement_224; }
inline TMP_TextElement_tB9A6A361BB93487BD07DDDA37A368819DA46C344 ** get_address_of_m_cached_TextElement_224() { return &___m_cached_TextElement_224; }
inline void set_m_cached_TextElement_224(TMP_TextElement_tB9A6A361BB93487BD07DDDA37A368819DA46C344 * value)
{
___m_cached_TextElement_224 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_cached_TextElement_224), (void*)value);
}
inline static int32_t get_offset_of_m_cached_Underline_Character_225() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_cached_Underline_Character_225)); }
inline TMP_Character_t1875AACA978396521498D6A699052C187903553D * get_m_cached_Underline_Character_225() const { return ___m_cached_Underline_Character_225; }
inline TMP_Character_t1875AACA978396521498D6A699052C187903553D ** get_address_of_m_cached_Underline_Character_225() { return &___m_cached_Underline_Character_225; }
inline void set_m_cached_Underline_Character_225(TMP_Character_t1875AACA978396521498D6A699052C187903553D * value)
{
___m_cached_Underline_Character_225 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_cached_Underline_Character_225), (void*)value);
}
inline static int32_t get_offset_of_m_cached_Ellipsis_Character_226() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_cached_Ellipsis_Character_226)); }
inline TMP_Character_t1875AACA978396521498D6A699052C187903553D * get_m_cached_Ellipsis_Character_226() const { return ___m_cached_Ellipsis_Character_226; }
inline TMP_Character_t1875AACA978396521498D6A699052C187903553D ** get_address_of_m_cached_Ellipsis_Character_226() { return &___m_cached_Ellipsis_Character_226; }
inline void set_m_cached_Ellipsis_Character_226(TMP_Character_t1875AACA978396521498D6A699052C187903553D * value)
{
___m_cached_Ellipsis_Character_226 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_cached_Ellipsis_Character_226), (void*)value);
}
inline static int32_t get_offset_of_m_defaultSpriteAsset_227() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_defaultSpriteAsset_227)); }
inline TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 * get_m_defaultSpriteAsset_227() const { return ___m_defaultSpriteAsset_227; }
inline TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 ** get_address_of_m_defaultSpriteAsset_227() { return &___m_defaultSpriteAsset_227; }
inline void set_m_defaultSpriteAsset_227(TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 * value)
{
___m_defaultSpriteAsset_227 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_defaultSpriteAsset_227), (void*)value);
}
inline static int32_t get_offset_of_m_currentSpriteAsset_228() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_currentSpriteAsset_228)); }
inline TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 * get_m_currentSpriteAsset_228() const { return ___m_currentSpriteAsset_228; }
inline TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 ** get_address_of_m_currentSpriteAsset_228() { return &___m_currentSpriteAsset_228; }
inline void set_m_currentSpriteAsset_228(TMP_SpriteAsset_tF896FFED2AA9395D6BC40FFEAC6DE7555A27A487 * value)
{
___m_currentSpriteAsset_228 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_currentSpriteAsset_228), (void*)value);
}
inline static int32_t get_offset_of_m_spriteCount_229() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_spriteCount_229)); }
inline int32_t get_m_spriteCount_229() const { return ___m_spriteCount_229; }
inline int32_t* get_address_of_m_spriteCount_229() { return &___m_spriteCount_229; }
inline void set_m_spriteCount_229(int32_t value)
{
___m_spriteCount_229 = value;
}
inline static int32_t get_offset_of_m_spriteIndex_230() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_spriteIndex_230)); }
inline int32_t get_m_spriteIndex_230() const { return ___m_spriteIndex_230; }
inline int32_t* get_address_of_m_spriteIndex_230() { return &___m_spriteIndex_230; }
inline void set_m_spriteIndex_230(int32_t value)
{
___m_spriteIndex_230 = value;
}
inline static int32_t get_offset_of_m_spriteAnimationID_231() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_spriteAnimationID_231)); }
inline int32_t get_m_spriteAnimationID_231() const { return ___m_spriteAnimationID_231; }
inline int32_t* get_address_of_m_spriteAnimationID_231() { return &___m_spriteAnimationID_231; }
inline void set_m_spriteAnimationID_231(int32_t value)
{
___m_spriteAnimationID_231 = value;
}
inline static int32_t get_offset_of_m_ignoreActiveState_232() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___m_ignoreActiveState_232)); }
inline bool get_m_ignoreActiveState_232() const { return ___m_ignoreActiveState_232; }
inline bool* get_address_of_m_ignoreActiveState_232() { return &___m_ignoreActiveState_232; }
inline void set_m_ignoreActiveState_232(bool value)
{
___m_ignoreActiveState_232 = value;
}
inline static int32_t get_offset_of_k_Power_233() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7, ___k_Power_233)); }
inline SingleU5BU5D_tA7139B7CAA40EAEF9178E2C386C8A5993754FDD5* get_k_Power_233() const { return ___k_Power_233; }
inline SingleU5BU5D_tA7139B7CAA40EAEF9178E2C386C8A5993754FDD5** get_address_of_k_Power_233() { return &___k_Power_233; }
inline void set_k_Power_233(SingleU5BU5D_tA7139B7CAA40EAEF9178E2C386C8A5993754FDD5* value)
{
___k_Power_233 = value;
Il2CppCodeGenWriteBarrier((void**)(&___k_Power_233), (void*)value);
}
};
struct TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7_StaticFields
{
public:
// UnityEngine.Color32 TMPro.TMP_Text::s_colorWhite
Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 ___s_colorWhite_51;
// UnityEngine.Vector2 TMPro.TMP_Text::k_LargePositiveVector2
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___k_LargePositiveVector2_234;
// UnityEngine.Vector2 TMPro.TMP_Text::k_LargeNegativeVector2
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___k_LargeNegativeVector2_235;
// System.Single TMPro.TMP_Text::k_LargePositiveFloat
float ___k_LargePositiveFloat_236;
// System.Single TMPro.TMP_Text::k_LargeNegativeFloat
float ___k_LargeNegativeFloat_237;
// System.Int32 TMPro.TMP_Text::k_LargePositiveInt
int32_t ___k_LargePositiveInt_238;
// System.Int32 TMPro.TMP_Text::k_LargeNegativeInt
int32_t ___k_LargeNegativeInt_239;
public:
inline static int32_t get_offset_of_s_colorWhite_51() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7_StaticFields, ___s_colorWhite_51)); }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 get_s_colorWhite_51() const { return ___s_colorWhite_51; }
inline Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 * get_address_of_s_colorWhite_51() { return &___s_colorWhite_51; }
inline void set_s_colorWhite_51(Color32_t23ABC4AE0E0BDFD2E22EE1FA0DA3904FFE5F6E23 value)
{
___s_colorWhite_51 = value;
}
inline static int32_t get_offset_of_k_LargePositiveVector2_234() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7_StaticFields, ___k_LargePositiveVector2_234)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_k_LargePositiveVector2_234() const { return ___k_LargePositiveVector2_234; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_k_LargePositiveVector2_234() { return &___k_LargePositiveVector2_234; }
inline void set_k_LargePositiveVector2_234(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___k_LargePositiveVector2_234 = value;
}
inline static int32_t get_offset_of_k_LargeNegativeVector2_235() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7_StaticFields, ___k_LargeNegativeVector2_235)); }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D get_k_LargeNegativeVector2_235() const { return ___k_LargeNegativeVector2_235; }
inline Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * get_address_of_k_LargeNegativeVector2_235() { return &___k_LargeNegativeVector2_235; }
inline void set_k_LargeNegativeVector2_235(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D value)
{
___k_LargeNegativeVector2_235 = value;
}
inline static int32_t get_offset_of_k_LargePositiveFloat_236() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7_StaticFields, ___k_LargePositiveFloat_236)); }
inline float get_k_LargePositiveFloat_236() const { return ___k_LargePositiveFloat_236; }
inline float* get_address_of_k_LargePositiveFloat_236() { return &___k_LargePositiveFloat_236; }
inline void set_k_LargePositiveFloat_236(float value)
{
___k_LargePositiveFloat_236 = value;
}
inline static int32_t get_offset_of_k_LargeNegativeFloat_237() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7_StaticFields, ___k_LargeNegativeFloat_237)); }
inline float get_k_LargeNegativeFloat_237() const { return ___k_LargeNegativeFloat_237; }
inline float* get_address_of_k_LargeNegativeFloat_237() { return &___k_LargeNegativeFloat_237; }
inline void set_k_LargeNegativeFloat_237(float value)
{
___k_LargeNegativeFloat_237 = value;
}
inline static int32_t get_offset_of_k_LargePositiveInt_238() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7_StaticFields, ___k_LargePositiveInt_238)); }
inline int32_t get_k_LargePositiveInt_238() const { return ___k_LargePositiveInt_238; }
inline int32_t* get_address_of_k_LargePositiveInt_238() { return &___k_LargePositiveInt_238; }
inline void set_k_LargePositiveInt_238(int32_t value)
{
___k_LargePositiveInt_238 = value;
}
inline static int32_t get_offset_of_k_LargeNegativeInt_239() { return static_cast<int32_t>(offsetof(TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7_StaticFields, ___k_LargeNegativeInt_239)); }
inline int32_t get_k_LargeNegativeInt_239() const { return ___k_LargeNegativeInt_239; }
inline int32_t* get_address_of_k_LargeNegativeInt_239() { return &___k_LargeNegativeInt_239; }
inline void set_k_LargeNegativeInt_239(int32_t value)
{
___k_LargeNegativeInt_239 = value;
}
};
// TMPro.TextMeshProUGUI
struct TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438 : public TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7
{
public:
// System.Boolean TMPro.TextMeshProUGUI::m_isRebuildingLayout
bool ___m_isRebuildingLayout_240;
// System.Boolean TMPro.TextMeshProUGUI::m_hasFontAssetChanged
bool ___m_hasFontAssetChanged_241;
// TMPro.TMP_SubMeshUI[] TMPro.TextMeshProUGUI::m_subTextObjects
TMP_SubMeshUIU5BU5D_tB20103A3891C74028E821AA6857CD89D59C9A87E* ___m_subTextObjects_242;
// System.Single TMPro.TextMeshProUGUI::m_previousLossyScaleY
float ___m_previousLossyScaleY_243;
// UnityEngine.Vector3[] TMPro.TextMeshProUGUI::m_RectTransformCorners
Vector3U5BU5D_tB9EC3346CC4A0EA5447D968E84A9AC1F6F372C28* ___m_RectTransformCorners_244;
// UnityEngine.CanvasRenderer TMPro.TextMeshProUGUI::m_canvasRenderer
CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 * ___m_canvasRenderer_245;
// UnityEngine.Canvas TMPro.TextMeshProUGUI::m_canvas
Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * ___m_canvas_246;
// System.Boolean TMPro.TextMeshProUGUI::m_isFirstAllocation
bool ___m_isFirstAllocation_247;
// System.Int32 TMPro.TextMeshProUGUI::m_max_characters
int32_t ___m_max_characters_248;
// System.Boolean TMPro.TextMeshProUGUI::m_isMaskingEnabled
bool ___m_isMaskingEnabled_249;
// UnityEngine.Material TMPro.TextMeshProUGUI::m_baseMaterial
Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * ___m_baseMaterial_250;
// System.Boolean TMPro.TextMeshProUGUI::m_isScrollRegionSet
bool ___m_isScrollRegionSet_251;
// System.Int32 TMPro.TextMeshProUGUI::m_stencilID
int32_t ___m_stencilID_252;
// UnityEngine.Vector4 TMPro.TextMeshProUGUI::m_maskOffset
Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E ___m_maskOffset_253;
// UnityEngine.Matrix4x4 TMPro.TextMeshProUGUI::m_EnvMapMatrix
Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA ___m_EnvMapMatrix_254;
// System.Boolean TMPro.TextMeshProUGUI::m_isRegisteredForEvents
bool ___m_isRegisteredForEvents_255;
// System.Int32 TMPro.TextMeshProUGUI::m_recursiveCountA
int32_t ___m_recursiveCountA_256;
// System.Int32 TMPro.TextMeshProUGUI::loopCountA
int32_t ___loopCountA_257;
public:
inline static int32_t get_offset_of_m_isRebuildingLayout_240() { return static_cast<int32_t>(offsetof(TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438, ___m_isRebuildingLayout_240)); }
inline bool get_m_isRebuildingLayout_240() const { return ___m_isRebuildingLayout_240; }
inline bool* get_address_of_m_isRebuildingLayout_240() { return &___m_isRebuildingLayout_240; }
inline void set_m_isRebuildingLayout_240(bool value)
{
___m_isRebuildingLayout_240 = value;
}
inline static int32_t get_offset_of_m_hasFontAssetChanged_241() { return static_cast<int32_t>(offsetof(TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438, ___m_hasFontAssetChanged_241)); }
inline bool get_m_hasFontAssetChanged_241() const { return ___m_hasFontAssetChanged_241; }
inline bool* get_address_of_m_hasFontAssetChanged_241() { return &___m_hasFontAssetChanged_241; }
inline void set_m_hasFontAssetChanged_241(bool value)
{
___m_hasFontAssetChanged_241 = value;
}
inline static int32_t get_offset_of_m_subTextObjects_242() { return static_cast<int32_t>(offsetof(TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438, ___m_subTextObjects_242)); }
inline TMP_SubMeshUIU5BU5D_tB20103A3891C74028E821AA6857CD89D59C9A87E* get_m_subTextObjects_242() const { return ___m_subTextObjects_242; }
inline TMP_SubMeshUIU5BU5D_tB20103A3891C74028E821AA6857CD89D59C9A87E** get_address_of_m_subTextObjects_242() { return &___m_subTextObjects_242; }
inline void set_m_subTextObjects_242(TMP_SubMeshUIU5BU5D_tB20103A3891C74028E821AA6857CD89D59C9A87E* value)
{
___m_subTextObjects_242 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_subTextObjects_242), (void*)value);
}
inline static int32_t get_offset_of_m_previousLossyScaleY_243() { return static_cast<int32_t>(offsetof(TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438, ___m_previousLossyScaleY_243)); }
inline float get_m_previousLossyScaleY_243() const { return ___m_previousLossyScaleY_243; }
inline float* get_address_of_m_previousLossyScaleY_243() { return &___m_previousLossyScaleY_243; }
inline void set_m_previousLossyScaleY_243(float value)
{
___m_previousLossyScaleY_243 = value;
}
inline static int32_t get_offset_of_m_RectTransformCorners_244() { return static_cast<int32_t>(offsetof(TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438, ___m_RectTransformCorners_244)); }
inline Vector3U5BU5D_tB9EC3346CC4A0EA5447D968E84A9AC1F6F372C28* get_m_RectTransformCorners_244() const { return ___m_RectTransformCorners_244; }
inline Vector3U5BU5D_tB9EC3346CC4A0EA5447D968E84A9AC1F6F372C28** get_address_of_m_RectTransformCorners_244() { return &___m_RectTransformCorners_244; }
inline void set_m_RectTransformCorners_244(Vector3U5BU5D_tB9EC3346CC4A0EA5447D968E84A9AC1F6F372C28* value)
{
___m_RectTransformCorners_244 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_RectTransformCorners_244), (void*)value);
}
inline static int32_t get_offset_of_m_canvasRenderer_245() { return static_cast<int32_t>(offsetof(TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438, ___m_canvasRenderer_245)); }
inline CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 * get_m_canvasRenderer_245() const { return ___m_canvasRenderer_245; }
inline CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 ** get_address_of_m_canvasRenderer_245() { return &___m_canvasRenderer_245; }
inline void set_m_canvasRenderer_245(CanvasRenderer_tB4D9C9FE77FD5C9C4546FC022D6E956960BC2B72 * value)
{
___m_canvasRenderer_245 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_canvasRenderer_245), (void*)value);
}
inline static int32_t get_offset_of_m_canvas_246() { return static_cast<int32_t>(offsetof(TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438, ___m_canvas_246)); }
inline Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * get_m_canvas_246() const { return ___m_canvas_246; }
inline Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 ** get_address_of_m_canvas_246() { return &___m_canvas_246; }
inline void set_m_canvas_246(Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * value)
{
___m_canvas_246 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_canvas_246), (void*)value);
}
inline static int32_t get_offset_of_m_isFirstAllocation_247() { return static_cast<int32_t>(offsetof(TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438, ___m_isFirstAllocation_247)); }
inline bool get_m_isFirstAllocation_247() const { return ___m_isFirstAllocation_247; }
inline bool* get_address_of_m_isFirstAllocation_247() { return &___m_isFirstAllocation_247; }
inline void set_m_isFirstAllocation_247(bool value)
{
___m_isFirstAllocation_247 = value;
}
inline static int32_t get_offset_of_m_max_characters_248() { return static_cast<int32_t>(offsetof(TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438, ___m_max_characters_248)); }
inline int32_t get_m_max_characters_248() const { return ___m_max_characters_248; }
inline int32_t* get_address_of_m_max_characters_248() { return &___m_max_characters_248; }
inline void set_m_max_characters_248(int32_t value)
{
___m_max_characters_248 = value;
}
inline static int32_t get_offset_of_m_isMaskingEnabled_249() { return static_cast<int32_t>(offsetof(TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438, ___m_isMaskingEnabled_249)); }
inline bool get_m_isMaskingEnabled_249() const { return ___m_isMaskingEnabled_249; }
inline bool* get_address_of_m_isMaskingEnabled_249() { return &___m_isMaskingEnabled_249; }
inline void set_m_isMaskingEnabled_249(bool value)
{
___m_isMaskingEnabled_249 = value;
}
inline static int32_t get_offset_of_m_baseMaterial_250() { return static_cast<int32_t>(offsetof(TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438, ___m_baseMaterial_250)); }
inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * get_m_baseMaterial_250() const { return ___m_baseMaterial_250; }
inline Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 ** get_address_of_m_baseMaterial_250() { return &___m_baseMaterial_250; }
inline void set_m_baseMaterial_250(Material_tF7DB3BF0C24DEC2FE0CB51E5DF5053D5223C8598 * value)
{
___m_baseMaterial_250 = value;
Il2CppCodeGenWriteBarrier((void**)(&___m_baseMaterial_250), (void*)value);
}
inline static int32_t get_offset_of_m_isScrollRegionSet_251() { return static_cast<int32_t>(offsetof(TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438, ___m_isScrollRegionSet_251)); }
inline bool get_m_isScrollRegionSet_251() const { return ___m_isScrollRegionSet_251; }
inline bool* get_address_of_m_isScrollRegionSet_251() { return &___m_isScrollRegionSet_251; }
inline void set_m_isScrollRegionSet_251(bool value)
{
___m_isScrollRegionSet_251 = value;
}
inline static int32_t get_offset_of_m_stencilID_252() { return static_cast<int32_t>(offsetof(TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438, ___m_stencilID_252)); }
inline int32_t get_m_stencilID_252() const { return ___m_stencilID_252; }
inline int32_t* get_address_of_m_stencilID_252() { return &___m_stencilID_252; }
inline void set_m_stencilID_252(int32_t value)
{
___m_stencilID_252 = value;
}
inline static int32_t get_offset_of_m_maskOffset_253() { return static_cast<int32_t>(offsetof(TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438, ___m_maskOffset_253)); }
inline Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E get_m_maskOffset_253() const { return ___m_maskOffset_253; }
inline Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E * get_address_of_m_maskOffset_253() { return &___m_maskOffset_253; }
inline void set_m_maskOffset_253(Vector4_tD148D6428C3F8FF6CD998F82090113C2B490B76E value)
{
___m_maskOffset_253 = value;
}
inline static int32_t get_offset_of_m_EnvMapMatrix_254() { return static_cast<int32_t>(offsetof(TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438, ___m_EnvMapMatrix_254)); }
inline Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA get_m_EnvMapMatrix_254() const { return ___m_EnvMapMatrix_254; }
inline Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA * get_address_of_m_EnvMapMatrix_254() { return &___m_EnvMapMatrix_254; }
inline void set_m_EnvMapMatrix_254(Matrix4x4_t6BF60F70C9169DF14C9D2577672A44224B236ECA value)
{
___m_EnvMapMatrix_254 = value;
}
inline static int32_t get_offset_of_m_isRegisteredForEvents_255() { return static_cast<int32_t>(offsetof(TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438, ___m_isRegisteredForEvents_255)); }
inline bool get_m_isRegisteredForEvents_255() const { return ___m_isRegisteredForEvents_255; }
inline bool* get_address_of_m_isRegisteredForEvents_255() { return &___m_isRegisteredForEvents_255; }
inline void set_m_isRegisteredForEvents_255(bool value)
{
___m_isRegisteredForEvents_255 = value;
}
inline static int32_t get_offset_of_m_recursiveCountA_256() { return static_cast<int32_t>(offsetof(TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438, ___m_recursiveCountA_256)); }
inline int32_t get_m_recursiveCountA_256() const { return ___m_recursiveCountA_256; }
inline int32_t* get_address_of_m_recursiveCountA_256() { return &___m_recursiveCountA_256; }
inline void set_m_recursiveCountA_256(int32_t value)
{
___m_recursiveCountA_256 = value;
}
inline static int32_t get_offset_of_loopCountA_257() { return static_cast<int32_t>(offsetof(TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438, ___loopCountA_257)); }
inline int32_t get_loopCountA_257() const { return ___loopCountA_257; }
inline int32_t* get_address_of_loopCountA_257() { return &___loopCountA_257; }
inline void set_loopCountA_257(int32_t value)
{
___loopCountA_257 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
// UnityEngine.XR.ARFoundation.ARRaycastHit[]
struct ARRaycastHitU5BU5D_t2DDAC1FD38DF991C190FAEF8144A68AFBC541E94 : public RuntimeArray
{
public:
ALIGN_FIELD (8) ARRaycastHit_t509D3DB25CAC944ED3D3092C0A6096F85DDDD1BC m_Items[1];
public:
inline ARRaycastHit_t509D3DB25CAC944ED3D3092C0A6096F85DDDD1BC GetAt(il2cpp_array_size_t index) const
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items[index];
}
inline ARRaycastHit_t509D3DB25CAC944ED3D3092C0A6096F85DDDD1BC * GetAddressAt(il2cpp_array_size_t index)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
return m_Items + index;
}
inline void SetAt(il2cpp_array_size_t index, ARRaycastHit_t509D3DB25CAC944ED3D3092C0A6096F85DDDD1BC value)
{
IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length);
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_Transform_2), (void*)NULL);
}
inline ARRaycastHit_t509D3DB25CAC944ED3D3092C0A6096F85DDDD1BC GetAtUnchecked(il2cpp_array_size_t index) const
{
return m_Items[index];
}
inline ARRaycastHit_t509D3DB25CAC944ED3D3092C0A6096F85DDDD1BC * GetAddressAtUnchecked(il2cpp_array_size_t index)
{
return m_Items + index;
}
inline void SetAtUnchecked(il2cpp_array_size_t index, ARRaycastHit_t509D3DB25CAC944ED3D3092C0A6096F85DDDD1BC value)
{
m_Items[index] = value;
Il2CppCodeGenWriteBarrier((void**)&((m_Items + index)->___m_Transform_2), (void*)NULL);
}
};
// !!0 UnityEngine.Component::GetComponent<System.Object>()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject * Component_GetComponent_TisRuntimeObject_m15E3130603CE5400743CCCDEE7600FB9EEFAE5C0_gshared (Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621 * __this, const RuntimeMethod* method);
// System.Void System.Collections.Generic.List`1<UnityEngine.XR.ARFoundation.ARRaycastHit>::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void List_1__ctor_mA52EAAB235BDE102E8518F30412F14422B05C9E0_gshared (List_1_tE22AC27B04238DDEA6B873A77D0222DA9B480F52 * __this, const RuntimeMethod* method);
// System.Int32 System.Collections.Generic.List`1<UnityEngine.XR.ARFoundation.ARRaycastHit>::get_Count()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t List_1_get_Count_m4F75A33A2B3EBF1A826FEFBFE30E1773DBED393C_gshared_inline (List_1_tE22AC27B04238DDEA6B873A77D0222DA9B480F52 * __this, const RuntimeMethod* method);
// !0 System.Collections.Generic.List`1<UnityEngine.XR.ARFoundation.ARRaycastHit>::get_Item(System.Int32)
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR ARRaycastHit_t509D3DB25CAC944ED3D3092C0A6096F85DDDD1BC List_1_get_Item_mFA1DFF7102266DFFCA6630C79C553225EE591AAE_gshared_inline (List_1_tE22AC27B04238DDEA6B873A77D0222DA9B480F52 * __this, int32_t ___index0, const RuntimeMethod* method);
// !!0 UnityEngine.Object::Instantiate<System.Object>(!!0,UnityEngine.Vector3,UnityEngine.Quaternion)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject * Object_Instantiate_TisRuntimeObject_m352D452C728667C9C76C942525CDE26444568ECD_gshared (RuntimeObject * ___original0, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___position1, Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 ___rotation2, const RuntimeMethod* method);
// !!0 UnityEngine.GameObject::GetComponent<System.Object>()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR RuntimeObject * GameObject_GetComponent_TisRuntimeObject_mD4382B2843BA9A61A01A8F9D7B9813D060F9C9CA_gshared (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, const RuntimeMethod* method);
// !!0 UnityEngine.Component::GetComponent<UnityEngine.XR.ARFoundation.ARRaycastManager>()
inline ARRaycastManager_t81A9513150BA5BE536DF064F1C6DE73349A60BE7 * Component_GetComponent_TisARRaycastManager_t81A9513150BA5BE536DF064F1C6DE73349A60BE7_m71DCE7466C02DBA59A1618314D7FA98D931BD522 (Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621 * __this, const RuntimeMethod* method)
{
return (( ARRaycastManager_t81A9513150BA5BE536DF064F1C6DE73349A60BE7 * (*) (Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621 *, const RuntimeMethod*))Component_GetComponent_TisRuntimeObject_m15E3130603CE5400743CCCDEE7600FB9EEFAE5C0_gshared)(__this, method);
}
// System.Void ARPlacement::UpdatePlacementPose()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ARPlacement_UpdatePlacementPose_mF4D9752238A373F827CD77C1199ABB4F39538316 (ARPlacement_t20C1E0720BEB83F20243FBDE8B3A3A255C70F925 * __this, const RuntimeMethod* method);
// System.Void ARPlacement::UpdatePlacementIndicator()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ARPlacement_UpdatePlacementIndicator_m1C4A8A8E4AF9D5F4EE06985BDA700216491EC9F4 (ARPlacement_t20C1E0720BEB83F20243FBDE8B3A3A255C70F925 * __this, const RuntimeMethod* method);
// System.Void UnityEngine.GameObject::SetActive(System.Boolean)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void GameObject_SetActive_m25A39F6D9FB68C51F13313F9804E85ACC937BC04 (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, bool ___value0, const RuntimeMethod* method);
// UnityEngine.Transform UnityEngine.GameObject::get_transform()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * GameObject_get_transform_mA5C38857137F137CB96C69FAA624199EB1C2FB2C (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, const RuntimeMethod* method);
// System.Void UnityEngine.Transform::SetPositionAndRotation(UnityEngine.Vector3,UnityEngine.Quaternion)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Transform_SetPositionAndRotation_mDB9B34321018846FD7E2315CBE8D4A6612E3DE43 (Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * __this, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___position0, Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 ___rotation1, const RuntimeMethod* method);
// UnityEngine.Camera UnityEngine.Camera::get_current()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * Camera_get_current_m6D8446E8359399CD9108A8E524671E0CC6E20350 (const RuntimeMethod* method);
// System.Void UnityEngine.Vector2::.ctor(System.Single,System.Single)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Vector2__ctor_mEE8FB117AB1F8DB746FB8B3EB4C0DA3BF2A230D0 (Vector2_tA85D2DD88578276CA8A8796756458277E72D073D * __this, float ___x0, float ___y1, const RuntimeMethod* method);
// UnityEngine.Vector3 UnityEngine.Vector2::op_Implicit(UnityEngine.Vector2)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 Vector2_op_Implicit_mD152B6A34B4DB7FFECC2844D74718568FE867D6F (Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___v0, const RuntimeMethod* method);
// UnityEngine.Vector3 UnityEngine.Camera::ViewportToScreenPoint(UnityEngine.Vector3)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 Camera_ViewportToScreenPoint_m8B42382A0571F1F6F1162F3DA05A9317F903B657 (Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * __this, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___position0, const RuntimeMethod* method);
// System.Void System.Collections.Generic.List`1<UnityEngine.XR.ARFoundation.ARRaycastHit>::.ctor()
inline void List_1__ctor_mA52EAAB235BDE102E8518F30412F14422B05C9E0 (List_1_tE22AC27B04238DDEA6B873A77D0222DA9B480F52 * __this, const RuntimeMethod* method)
{
(( void (*) (List_1_tE22AC27B04238DDEA6B873A77D0222DA9B480F52 *, const RuntimeMethod*))List_1__ctor_mA52EAAB235BDE102E8518F30412F14422B05C9E0_gshared)(__this, method);
}
// UnityEngine.Vector2 UnityEngine.Vector2::op_Implicit(UnityEngine.Vector3)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector2_tA85D2DD88578276CA8A8796756458277E72D073D Vector2_op_Implicit_mEA1F75961E3D368418BA8CEB9C40E55C25BA3C28 (Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___v0, const RuntimeMethod* method);
// System.Boolean UnityEngine.XR.ARFoundation.ARRaycastManager::Raycast(UnityEngine.Vector2,System.Collections.Generic.List`1<UnityEngine.XR.ARFoundation.ARRaycastHit>,UnityEngine.XR.ARSubsystems.TrackableType)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool ARRaycastManager_Raycast_mCBD053A6B0264981FCBF4244825A47F1DE0696F6 (ARRaycastManager_t81A9513150BA5BE536DF064F1C6DE73349A60BE7 * __this, Vector2_tA85D2DD88578276CA8A8796756458277E72D073D ___screenPoint0, List_1_tE22AC27B04238DDEA6B873A77D0222DA9B480F52 * ___hitResults1, int32_t ___trackableTypes2, const RuntimeMethod* method);
// System.Int32 System.Collections.Generic.List`1<UnityEngine.XR.ARFoundation.ARRaycastHit>::get_Count()
inline int32_t List_1_get_Count_m4F75A33A2B3EBF1A826FEFBFE30E1773DBED393C_inline (List_1_tE22AC27B04238DDEA6B873A77D0222DA9B480F52 * __this, const RuntimeMethod* method)
{
return (( int32_t (*) (List_1_tE22AC27B04238DDEA6B873A77D0222DA9B480F52 *, const RuntimeMethod*))List_1_get_Count_m4F75A33A2B3EBF1A826FEFBFE30E1773DBED393C_gshared_inline)(__this, method);
}
// !0 System.Collections.Generic.List`1<UnityEngine.XR.ARFoundation.ARRaycastHit>::get_Item(System.Int32)
inline ARRaycastHit_t509D3DB25CAC944ED3D3092C0A6096F85DDDD1BC List_1_get_Item_mFA1DFF7102266DFFCA6630C79C553225EE591AAE_inline (List_1_tE22AC27B04238DDEA6B873A77D0222DA9B480F52 * __this, int32_t ___index0, const RuntimeMethod* method)
{
return (( ARRaycastHit_t509D3DB25CAC944ED3D3092C0A6096F85DDDD1BC (*) (List_1_tE22AC27B04238DDEA6B873A77D0222DA9B480F52 *, int32_t, const RuntimeMethod*))List_1_get_Item_mFA1DFF7102266DFFCA6630C79C553225EE591AAE_gshared_inline)(__this, ___index0, method);
}
// UnityEngine.Pose UnityEngine.XR.ARFoundation.ARRaycastHit::get_pose()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 ARRaycastHit_get_pose_m5CCFFED6C4A101EA42083A8661956A2B4B4C4A0D (ARRaycastHit_t509D3DB25CAC944ED3D3092C0A6096F85DDDD1BC * __this, const RuntimeMethod* method);
// UnityEngine.Transform UnityEngine.Component::get_transform()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * Component_get_transform_m00F05BD782F920C301A7EBA480F3B7A904C07EC9 (Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621 * __this, const RuntimeMethod* method);
// UnityEngine.Vector3 UnityEngine.Transform::get_forward()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 Transform_get_forward_m0BE1E88B86049ADA39391C3ACED2314A624BC67F (Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * __this, const RuntimeMethod* method);
// System.Void UnityEngine.Vector3::.ctor(System.Single,System.Single,System.Single)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Vector3__ctor_m08F61F548AA5836D8789843ACB4A81E4963D2EE1 (Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * __this, float ___x0, float ___y1, float ___z2, const RuntimeMethod* method);
// UnityEngine.Vector3 UnityEngine.Vector3::get_normalized()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 Vector3_get_normalized_mE20796F1D2D36244FACD4D14DADB245BE579849B (Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 * __this, const RuntimeMethod* method);
// UnityEngine.Quaternion UnityEngine.Quaternion::LookRotation(UnityEngine.Vector3)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 Quaternion_LookRotation_m465C08262650385D02ADDE78C9791AED47D2155F (Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___forward0, const RuntimeMethod* method);
// System.Void UnityEngine.Debug::Log(System.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Debug_Log_m4B7C70BAFD477C6BDB59C88A0934F0B018D03708 (RuntimeObject * ___message0, const RuntimeMethod* method);
// !!0 UnityEngine.Object::Instantiate<UnityEngine.GameObject>(!!0,UnityEngine.Vector3,UnityEngine.Quaternion)
inline GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * Object_Instantiate_TisGameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F_m4F397BCC6697902B40033E61129D4EA6FE93570F (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * ___original0, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___position1, Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 ___rotation2, const RuntimeMethod* method)
{
return (( GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * (*) (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F *, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 , Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 , const RuntimeMethod*))Object_Instantiate_TisRuntimeObject_m352D452C728667C9C76C942525CDE26444568ECD_gshared)(___original0, ___position1, ___rotation2, method);
}
// System.Single ARPlacement::getSliderValue()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float ARPlacement_getSliderValue_mF90D9628B60732BDF6B60A8B73D27E5BDD256864 (ARPlacement_t20C1E0720BEB83F20243FBDE8B3A3A255C70F925 * __this, const RuntimeMethod* method);
// System.Void UnityEngine.Transform::set_localScale(UnityEngine.Vector3)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Transform_set_localScale_m7ED1A6E5A87CD1D483515B99D6D3121FB92B0556 (Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * __this, Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 ___value0, const RuntimeMethod* method);
// System.Void UnityEngine.Object::Destroy(UnityEngine.Object)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Object_Destroy_m23B4562495BA35A74266D4372D45368F8C05109A (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * ___obj0, const RuntimeMethod* method);
// System.Void ARPlacement::DestroyVehicle()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ARPlacement_DestroyVehicle_m25302C673BC57DE76F40906CE568EE5178253F92 (ARPlacement_t20C1E0720BEB83F20243FBDE8B3A3A255C70F925 * __this, const RuntimeMethod* method);
// System.Void ARPlacement::placeVehicle()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ARPlacement_placeVehicle_m18959D6E36E75CA5749196ED427C95FF0159A3CE (ARPlacement_t20C1E0720BEB83F20243FBDE8B3A3A255C70F925 * __this, const RuntimeMethod* method);
// !!0 UnityEngine.GameObject::GetComponent<UnityEngine.UI.Slider>()
inline Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09 * GameObject_GetComponent_TisSlider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09_m688424BCA2C09954B36F15A3C82F17CAECEB91A7 (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, const RuntimeMethod* method)
{
return (( Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09 * (*) (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F *, const RuntimeMethod*))GameObject_GetComponent_TisRuntimeObject_mD4382B2843BA9A61A01A8F9D7B9813D060F9C9CA_gshared)(__this, method);
}
// System.Void UnityEngine.MonoBehaviour::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void MonoBehaviour__ctor_mEAEC84B222C60319D593E456D769B3311DFCEF97 (MonoBehaviour_t4A60845CF505405AF8BE8C61CC07F75CADEF6429 * __this, const RuntimeMethod* method);
// UnityEngine.GameObject UnityEngine.GameObject::Find(System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * GameObject_Find_m1470FB04EB6DB15CCC0D9745B70EE987B318E9BD (String_t* ___name0, const RuntimeMethod* method);
// !!0 UnityEngine.GameObject::GetComponent<TMPro.TextMeshProUGUI>()
inline TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438 * GameObject_GetComponent_TisTextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438_m2A07D6A46280D3A547C55CD735795588AF24DAEB (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, const RuntimeMethod* method)
{
return (( TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438 * (*) (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F *, const RuntimeMethod*))GameObject_GetComponent_TisRuntimeObject_mD4382B2843BA9A61A01A8F9D7B9813D060F9C9CA_gshared)(__this, method);
}
// !!0 UnityEngine.GameObject::GetComponent<ARPlacement>()
inline ARPlacement_t20C1E0720BEB83F20243FBDE8B3A3A255C70F925 * GameObject_GetComponent_TisARPlacement_t20C1E0720BEB83F20243FBDE8B3A3A255C70F925_m0B259158D4F6A240F04723E8C2D29232FCE08AEC (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * __this, const RuntimeMethod* method)
{
return (( ARPlacement_t20C1E0720BEB83F20243FBDE8B3A3A255C70F925 * (*) (GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F *, const RuntimeMethod*))GameObject_GetComponent_TisRuntimeObject_mD4382B2843BA9A61A01A8F9D7B9813D060F9C9CA_gshared)(__this, method);
}
// UnityEngine.GameObject UnityEngine.Component::get_gameObject()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * Component_get_gameObject_m0B0570BA8DDD3CD78A9DB568EA18D7317686603C (Component_t05064EF382ABCAF4B8C94F8A350EA85184C26621 * __this, const RuntimeMethod* method);
// System.Boolean ARPlacement::isVehiclePlaced()
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR bool ARPlacement_isVehiclePlaced_mBB442841458A48070E86F1D7390971FB2B02D907_inline (ARPlacement_t20C1E0720BEB83F20243FBDE8B3A3A255C70F925 * __this, const RuntimeMethod* method);
// System.Void TMPro.TMP_Text::set_text(System.String)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void TMP_Text_set_text_m5CFCFE6E69321D9E6B6BAEAF92AE153C3484A960 (TMP_Text_t7BA5B6522651EBED2D8E2C92CBE3F17C14075CE7 * __this, String_t* ___value0, const RuntimeMethod* method);
// System.Void System.ThrowHelper::ThrowArgumentOutOfRangeException()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ThrowHelper_ThrowArgumentOutOfRangeException_mBA2AF20A35144E0C43CD721A22EAC9FCA15D6550 (const RuntimeMethod* method);
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void ARPlacement::Start()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ARPlacement_Start_m46C805907DAAB4ED17E5147C2C62B9662E75E554 (ARPlacement_t20C1E0720BEB83F20243FBDE8B3A3A255C70F925 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ARPlacement_Start_m46C805907DAAB4ED17E5147C2C62B9662E75E554_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
ARRaycastManager_t81A9513150BA5BE536DF064F1C6DE73349A60BE7 * L_0 = Component_GetComponent_TisARRaycastManager_t81A9513150BA5BE536DF064F1C6DE73349A60BE7_m71DCE7466C02DBA59A1618314D7FA98D931BD522(__this, /*hidden argument*/Component_GetComponent_TisARRaycastManager_t81A9513150BA5BE536DF064F1C6DE73349A60BE7_m71DCE7466C02DBA59A1618314D7FA98D931BD522_RuntimeMethod_var);
__this->set_arRaycastManager_10(L_0);
return;
}
}
// System.Void ARPlacement::Update()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ARPlacement_Update_m9B743FB24FED865C740A6C31D3965468FA411037 (ARPlacement_t20C1E0720BEB83F20243FBDE8B3A3A255C70F925 * __this, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
MenuScript_t7F3BC65E367445FC3A0AA8CD0A2A77941EF62B77 * L_0 = __this->get_menuScript_8();
NullCheck(L_0);
int32_t L_1 = L_0->get_currentMenuState_4();
V_0 = L_1;
int32_t L_2 = V_0;
if (!L_2)
{
goto IL_001f;
}
}
{
int32_t L_3 = V_0;
if ((!(((uint32_t)L_3) == ((uint32_t)1))))
{
goto IL_001f;
}
}
{
ARPlacement_UpdatePlacementPose_mF4D9752238A373F827CD77C1199ABB4F39538316(__this, /*hidden argument*/NULL);
ARPlacement_UpdatePlacementIndicator_m1C4A8A8E4AF9D5F4EE06985BDA700216491EC9F4(__this, /*hidden argument*/NULL);
}
IL_001f:
{
return;
}
}
// System.Void ARPlacement::UpdatePlacementIndicator()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ARPlacement_UpdatePlacementIndicator_m1C4A8A8E4AF9D5F4EE06985BDA700216491EC9F4 (ARPlacement_t20C1E0720BEB83F20243FBDE8B3A3A255C70F925 * __this, const RuntimeMethod* method)
{
{
bool L_0 = __this->get_placementPoseIsValid_12();
if (!L_0)
{
goto IL_0043;
}
}
{
bool L_1 = __this->get_vehicleIsPlaced_13();
if (L_1)
{
goto IL_0043;
}
}
{
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_2 = __this->get_placementIndicator_4();
NullCheck(L_2);
GameObject_SetActive_m25A39F6D9FB68C51F13313F9804E85ACC937BC04(L_2, (bool)1, /*hidden argument*/NULL);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_3 = __this->get_placementIndicator_4();
NullCheck(L_3);
Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_4 = GameObject_get_transform_mA5C38857137F137CB96C69FAA624199EB1C2FB2C(L_3, /*hidden argument*/NULL);
Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 * L_5 = __this->get_address_of_placementPose_11();
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_6 = L_5->get_position_0();
Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 * L_7 = __this->get_address_of_placementPose_11();
Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 L_8 = L_7->get_rotation_1();
NullCheck(L_4);
Transform_SetPositionAndRotation_mDB9B34321018846FD7E2315CBE8D4A6612E3DE43(L_4, L_6, L_8, /*hidden argument*/NULL);
return;
}
IL_0043:
{
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_9 = __this->get_placementIndicator_4();
NullCheck(L_9);
GameObject_SetActive_m25A39F6D9FB68C51F13313F9804E85ACC937BC04(L_9, (bool)0, /*hidden argument*/NULL);
return;
}
}
// System.Void ARPlacement::UpdatePlacementPose()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ARPlacement_UpdatePlacementPose_mF4D9752238A373F827CD77C1199ABB4F39538316 (ARPlacement_t20C1E0720BEB83F20243FBDE8B3A3A255C70F925 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ARPlacement_UpdatePlacementPose_mF4D9752238A373F827CD77C1199ABB4F39538316_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 V_0;
memset((&V_0), 0, sizeof(V_0));
List_1_tE22AC27B04238DDEA6B873A77D0222DA9B480F52 * V_1 = NULL;
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 V_2;
memset((&V_2), 0, sizeof(V_2));
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 V_3;
memset((&V_3), 0, sizeof(V_3));
ARRaycastHit_t509D3DB25CAC944ED3D3092C0A6096F85DDDD1BC V_4;
memset((&V_4), 0, sizeof(V_4));
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 V_5;
memset((&V_5), 0, sizeof(V_5));
Exception_t * __last_unhandled_exception = 0;
NO_UNUSED_WARNING (__last_unhandled_exception);
Exception_t * __exception_local = 0;
NO_UNUSED_WARNING (__exception_local);
void* __leave_targets_storage = alloca(sizeof(int32_t) * 2);
il2cpp::utils::LeaveTargetStack __leave_targets(__leave_targets_storage);
NO_UNUSED_WARNING (__leave_targets);
IL_0000:
try
{ // begin try (depth: 1)
{
Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * L_0 = Camera_get_current_m6D8446E8359399CD9108A8E524671E0CC6E20350(/*hidden argument*/NULL);
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_1;
memset((&L_1), 0, sizeof(L_1));
Vector2__ctor_mEE8FB117AB1F8DB746FB8B3EB4C0DA3BF2A230D0((&L_1), (0.5f), (0.5f), /*hidden argument*/NULL);
IL2CPP_RUNTIME_CLASS_INIT(Vector2_tA85D2DD88578276CA8A8796756458277E72D073D_il2cpp_TypeInfo_var);
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_2 = Vector2_op_Implicit_mD152B6A34B4DB7FFECC2844D74718568FE867D6F(L_1, /*hidden argument*/NULL);
NullCheck(L_0);
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_3 = Camera_ViewportToScreenPoint_m8B42382A0571F1F6F1162F3DA05A9317F903B657(L_0, L_2, /*hidden argument*/NULL);
V_0 = L_3;
List_1_tE22AC27B04238DDEA6B873A77D0222DA9B480F52 * L_4 = (List_1_tE22AC27B04238DDEA6B873A77D0222DA9B480F52 *)il2cpp_codegen_object_new(List_1_tE22AC27B04238DDEA6B873A77D0222DA9B480F52_il2cpp_TypeInfo_var);
List_1__ctor_mA52EAAB235BDE102E8518F30412F14422B05C9E0(L_4, /*hidden argument*/List_1__ctor_mA52EAAB235BDE102E8518F30412F14422B05C9E0_RuntimeMethod_var);
V_1 = L_4;
ARRaycastManager_t81A9513150BA5BE536DF064F1C6DE73349A60BE7 * L_5 = __this->get_arRaycastManager_10();
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_6 = V_0;
Vector2_tA85D2DD88578276CA8A8796756458277E72D073D L_7 = Vector2_op_Implicit_mEA1F75961E3D368418BA8CEB9C40E55C25BA3C28(L_6, /*hidden argument*/NULL);
List_1_tE22AC27B04238DDEA6B873A77D0222DA9B480F52 * L_8 = V_1;
NullCheck(L_5);
ARRaycastManager_Raycast_mCBD053A6B0264981FCBF4244825A47F1DE0696F6(L_5, L_7, L_8, ((int32_t)15), /*hidden argument*/NULL);
List_1_tE22AC27B04238DDEA6B873A77D0222DA9B480F52 * L_9 = V_1;
NullCheck(L_9);
int32_t L_10 = List_1_get_Count_m4F75A33A2B3EBF1A826FEFBFE30E1773DBED393C_inline(L_9, /*hidden argument*/List_1_get_Count_m4F75A33A2B3EBF1A826FEFBFE30E1773DBED393C_RuntimeMethod_var);
__this->set_placementPoseIsValid_12((bool)((((int32_t)L_10) > ((int32_t)0))? 1 : 0));
bool L_11 = __this->get_placementPoseIsValid_12();
if (!L_11)
{
goto IL_00a8;
}
}
IL_0051:
{
List_1_tE22AC27B04238DDEA6B873A77D0222DA9B480F52 * L_12 = V_1;
NullCheck(L_12);
ARRaycastHit_t509D3DB25CAC944ED3D3092C0A6096F85DDDD1BC L_13 = List_1_get_Item_mFA1DFF7102266DFFCA6630C79C553225EE591AAE_inline(L_12, 0, /*hidden argument*/List_1_get_Item_mFA1DFF7102266DFFCA6630C79C553225EE591AAE_RuntimeMethod_var);
V_4 = L_13;
Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 L_14 = ARRaycastHit_get_pose_m5CCFFED6C4A101EA42083A8661956A2B4B4C4A0D((ARRaycastHit_t509D3DB25CAC944ED3D3092C0A6096F85DDDD1BC *)(&V_4), /*hidden argument*/NULL);
__this->set_placementPose_11(L_14);
Camera_t48B2B9ECB3CE6108A98BF949A1CECF0FE3421F34 * L_15 = Camera_get_current_m6D8446E8359399CD9108A8E524671E0CC6E20350(/*hidden argument*/NULL);
NullCheck(L_15);
Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_16 = Component_get_transform_m00F05BD782F920C301A7EBA480F3B7A904C07EC9(L_15, /*hidden argument*/NULL);
NullCheck(L_16);
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_17 = Transform_get_forward_m0BE1E88B86049ADA39391C3ACED2314A624BC67F(L_16, /*hidden argument*/NULL);
V_2 = L_17;
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_18 = V_2;
float L_19 = L_18.get_x_2();
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_20 = V_2;
float L_21 = L_20.get_z_4();
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_22;
memset((&L_22), 0, sizeof(L_22));
Vector3__ctor_m08F61F548AA5836D8789843ACB4A81E4963D2EE1((&L_22), L_19, (0.0f), L_21, /*hidden argument*/NULL);
V_5 = L_22;
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_23 = Vector3_get_normalized_mE20796F1D2D36244FACD4D14DADB245BE579849B((Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 *)(&V_5), /*hidden argument*/NULL);
V_3 = L_23;
Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 * L_24 = __this->get_address_of_placementPose_11();
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_25 = V_3;
IL2CPP_RUNTIME_CLASS_INIT(Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357_il2cpp_TypeInfo_var);
Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 L_26 = Quaternion_LookRotation_m465C08262650385D02ADDE78C9791AED47D2155F(L_25, /*hidden argument*/NULL);
L_24->set_rotation_1(L_26);
}
IL_00a8:
{
Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 * L_27 = __this->get_address_of_placementPose_11();
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_28 = L_27->get_position_0();
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_29 = L_28;
RuntimeObject * L_30 = Box(Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720_il2cpp_TypeInfo_var, &L_29);
IL2CPP_RUNTIME_CLASS_INIT(Debug_t7B5FCB117E2FD63B6838BC52821B252E2BFB61C4_il2cpp_TypeInfo_var);
Debug_Log_m4B7C70BAFD477C6BDB59C88A0934F0B018D03708(L_30, /*hidden argument*/NULL);
goto IL_00ce;
}
} // end try (depth: 1)
catch(Il2CppExceptionWrapper& e)
{
__exception_local = (Exception_t *)e.ex;
if(il2cpp_codegen_class_is_assignable_from (NullReferenceException_t204B194BC4DDA3259AF5A8633EA248AE5977ABDC_il2cpp_TypeInfo_var, il2cpp_codegen_object_class(e.ex)))
goto CATCH_00bf;
throw e;
}
CATCH_00bf:
{ // begin catch(System.NullReferenceException)
Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 * L_31 = __this->get_address_of_placementPose_11();
il2cpp_codegen_initobj(L_31, sizeof(Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 ));
goto IL_00ce;
} // end catch (depth: 1)
IL_00ce:
{
return;
}
}
// System.Void ARPlacement::placeVehicle()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ARPlacement_placeVehicle_m18959D6E36E75CA5749196ED427C95FF0159A3CE (ARPlacement_t20C1E0720BEB83F20243FBDE8B3A3A255C70F925 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ARPlacement_placeVehicle_m18959D6E36E75CA5749196ED427C95FF0159A3CE_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * V_0 = NULL;
float V_1 = 0.0f;
int32_t V_2 = 0;
{
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_0 = __this->get_vehicle1_5();
V_0 = L_0;
IL2CPP_RUNTIME_CLASS_INIT(Debug_t7B5FCB117E2FD63B6838BC52821B252E2BFB61C4_il2cpp_TypeInfo_var);
Debug_Log_m4B7C70BAFD477C6BDB59C88A0934F0B018D03708(_stringLiteralB5504ABE9C78539CC8E82FF1C3381B351784378B, /*hidden argument*/NULL);
MenuScript_t7F3BC65E367445FC3A0AA8CD0A2A77941EF62B77 * L_1 = __this->get_menuScript_8();
NullCheck(L_1);
int32_t L_2 = L_1->get_currentARState_5();
V_2 = L_2;
int32_t L_3 = V_2;
switch (L_3)
{
case 0:
{
goto IL_0031;
}
case 1:
{
goto IL_003a;
}
case 2:
{
goto IL_0043;
}
}
}
{
goto IL_004a;
}
IL_0031:
{
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_4 = __this->get_vehicle1_5();
V_0 = L_4;
goto IL_004a;
}
IL_003a:
{
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_5 = __this->get_vehicle2_6();
V_0 = L_5;
goto IL_004a;
}
IL_0043:
{
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_6 = __this->get_vehicle3_7();
V_0 = L_6;
}
IL_004a:
{
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_7 = V_0;
Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 * L_8 = __this->get_address_of_placementPose_11();
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_9 = L_8->get_position_0();
Pose_t2997DE3CB3863E4D78FCF42B46FC481818823F29 * L_10 = __this->get_address_of_placementPose_11();
Quaternion_t319F3319A7D43FFA5D819AD6C0A98851F0095357 L_11 = L_10->get_rotation_1();
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_12 = Object_Instantiate_TisGameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F_m4F397BCC6697902B40033E61129D4EA6FE93570F(L_7, L_9, L_11, /*hidden argument*/Object_Instantiate_TisGameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F_m4F397BCC6697902B40033E61129D4EA6FE93570F_RuntimeMethod_var);
__this->set_instantiatedVehicle_14(L_12);
float L_13 = ARPlacement_getSliderValue_mF90D9628B60732BDF6B60A8B73D27E5BDD256864(__this, /*hidden argument*/NULL);
V_1 = L_13;
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_14 = __this->get_instantiatedVehicle_14();
NullCheck(L_14);
Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_15 = GameObject_get_transform_mA5C38857137F137CB96C69FAA624199EB1C2FB2C(L_14, /*hidden argument*/NULL);
float L_16 = V_1;
float L_17 = V_1;
float L_18 = V_1;
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_19;
memset((&L_19), 0, sizeof(L_19));
Vector3__ctor_m08F61F548AA5836D8789843ACB4A81E4963D2EE1((&L_19), L_16, L_17, L_18, /*hidden argument*/NULL);
NullCheck(L_15);
Transform_set_localScale_m7ED1A6E5A87CD1D483515B99D6D3121FB92B0556(L_15, L_19, /*hidden argument*/NULL);
__this->set_vehicleIsPlaced_13((bool)1);
return;
}
}
// System.Void ARPlacement::DestroyVehicle()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ARPlacement_DestroyVehicle_m25302C673BC57DE76F40906CE568EE5178253F92 (ARPlacement_t20C1E0720BEB83F20243FBDE8B3A3A255C70F925 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ARPlacement_DestroyVehicle_m25302C673BC57DE76F40906CE568EE5178253F92_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
bool L_0 = __this->get_vehicleIsPlaced_13();
if (!L_0)
{
goto IL_001a;
}
}
{
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_1 = __this->get_instantiatedVehicle_14();
IL2CPP_RUNTIME_CLASS_INIT(Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0_il2cpp_TypeInfo_var);
Object_Destroy_m23B4562495BA35A74266D4372D45368F8C05109A(L_1, /*hidden argument*/NULL);
__this->set_vehicleIsPlaced_13((bool)0);
}
IL_001a:
{
return;
}
}
// System.Void ARPlacement::placeOrRemoveVehicle()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ARPlacement_placeOrRemoveVehicle_m3D7D22EC5BDD3B9FBDD5C2E55514B3CDA5DA8F9D (ARPlacement_t20C1E0720BEB83F20243FBDE8B3A3A255C70F925 * __this, const RuntimeMethod* method)
{
{
bool L_0 = __this->get_vehicleIsPlaced_13();
if (!L_0)
{
goto IL_000f;
}
}
{
ARPlacement_DestroyVehicle_m25302C673BC57DE76F40906CE568EE5178253F92(__this, /*hidden argument*/NULL);
return;
}
IL_000f:
{
ARPlacement_placeVehicle_m18959D6E36E75CA5749196ED427C95FF0159A3CE(__this, /*hidden argument*/NULL);
return;
}
}
// System.Void ARPlacement::scaleVehicle(System.Single)
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ARPlacement_scaleVehicle_mED8C81366FCBA69F34773BF92E5090BABC7AD051 (ARPlacement_t20C1E0720BEB83F20243FBDE8B3A3A255C70F925 * __this, float ___value0, const RuntimeMethod* method)
{
{
bool L_0 = __this->get_vehicleIsPlaced_13();
if (!L_0)
{
goto IL_0020;
}
}
{
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_1 = __this->get_instantiatedVehicle_14();
NullCheck(L_1);
Transform_tBB9E78A2766C3C83599A8F66EDE7D1FCAFC66EDA * L_2 = GameObject_get_transform_mA5C38857137F137CB96C69FAA624199EB1C2FB2C(L_1, /*hidden argument*/NULL);
float L_3 = ___value0;
float L_4 = ___value0;
float L_5 = ___value0;
Vector3_tDCF05E21F632FE2BA260C06E0D10CA81513E6720 L_6;
memset((&L_6), 0, sizeof(L_6));
Vector3__ctor_m08F61F548AA5836D8789843ACB4A81E4963D2EE1((&L_6), L_3, L_4, L_5, /*hidden argument*/NULL);
NullCheck(L_2);
Transform_set_localScale_m7ED1A6E5A87CD1D483515B99D6D3121FB92B0556(L_2, L_6, /*hidden argument*/NULL);
}
IL_0020:
{
return;
}
}
// System.Single ARPlacement::getSliderValue()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float ARPlacement_getSliderValue_mF90D9628B60732BDF6B60A8B73D27E5BDD256864 (ARPlacement_t20C1E0720BEB83F20243FBDE8B3A3A255C70F925 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (ARPlacement_getSliderValue_mF90D9628B60732BDF6B60A8B73D27E5BDD256864_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_0 = __this->get_slider_9();
NullCheck(L_0);
Slider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09 * L_1 = GameObject_GetComponent_TisSlider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09_m688424BCA2C09954B36F15A3C82F17CAECEB91A7(L_0, /*hidden argument*/GameObject_GetComponent_TisSlider_t0654A41304B5CE7074CA86F4E66CB681D0D52C09_m688424BCA2C09954B36F15A3C82F17CAECEB91A7_RuntimeMethod_var);
NullCheck(L_1);
float L_2 = VirtFuncInvoker0< float >::Invoke(46 /* System.Single UnityEngine.UI.Slider::get_value() */, L_1);
return L_2;
}
}
// System.Void ARPlacement::resetAR()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ARPlacement_resetAR_mBFA7CFC2CFCD894AD8F2A43FC51B063686E0CEF9 (ARPlacement_t20C1E0720BEB83F20243FBDE8B3A3A255C70F925 * __this, const RuntimeMethod* method)
{
{
ARPlacement_DestroyVehicle_m25302C673BC57DE76F40906CE568EE5178253F92(__this, /*hidden argument*/NULL);
return;
}
}
// System.Boolean ARPlacement::isVehiclePlaced()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool ARPlacement_isVehiclePlaced_mBB442841458A48070E86F1D7390971FB2B02D907 (ARPlacement_t20C1E0720BEB83F20243FBDE8B3A3A255C70F925 * __this, const RuntimeMethod* method)
{
{
bool L_0 = __this->get_vehicleIsPlaced_13();
return L_0;
}
}
// System.Void ARPlacement::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void ARPlacement__ctor_m31B91054B290CF26BE55A357327C269365CE170F (ARPlacement_t20C1E0720BEB83F20243FBDE8B3A3A255C70F925 * __this, const RuntimeMethod* method)
{
{
MonoBehaviour__ctor_mEAEC84B222C60319D593E456D769B3311DFCEF97(__this, /*hidden argument*/NULL);
return;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Void MenuScript::Start()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void MenuScript_Start_mD611742173FFFDD78D7031CC175B5FBC60EDB4F6 (MenuScript_t7F3BC65E367445FC3A0AA8CD0A2A77941EF62B77 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (MenuScript_Start_mD611742173FFFDD78D7031CC175B5FBC60EDB4F6_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
__this->set_currentMenuState_4(0);
__this->set_currentARState_5(0);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_0 = GameObject_Find_m1470FB04EB6DB15CCC0D9745B70EE987B318E9BD(_stringLiteral00024CAB5257A05948096C411B408BEED35C60DC, /*hidden argument*/NULL);
NullCheck(L_0);
TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438 * L_1 = GameObject_GetComponent_TisTextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438_m2A07D6A46280D3A547C55CD735795588AF24DAEB(L_0, /*hidden argument*/GameObject_GetComponent_TisTextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438_m2A07D6A46280D3A547C55CD735795588AF24DAEB_RuntimeMethod_var);
__this->set_placeRemove_8(L_1);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_2 = GameObject_Find_m1470FB04EB6DB15CCC0D9745B70EE987B318E9BD(_stringLiteralCEF6F70A8DA2F5C6D32911D2F1F274155E8379F1, /*hidden argument*/NULL);
NullCheck(L_2);
ARPlacement_t20C1E0720BEB83F20243FBDE8B3A3A255C70F925 * L_3 = GameObject_GetComponent_TisARPlacement_t20C1E0720BEB83F20243FBDE8B3A3A255C70F925_m0B259158D4F6A240F04723E8C2D29232FCE08AEC(L_2, /*hidden argument*/GameObject_GetComponent_TisARPlacement_t20C1E0720BEB83F20243FBDE8B3A3A255C70F925_m0B259158D4F6A240F04723E8C2D29232FCE08AEC_RuntimeMethod_var);
__this->set_arPlaceScript_9(L_3);
return;
}
}
// System.Void MenuScript::Update()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void MenuScript_Update_m2C9029D0A11D4A143EC4FC88BD6B6D58B5459226 (MenuScript_t7F3BC65E367445FC3A0AA8CD0A2A77941EF62B77 * __this, const RuntimeMethod* method)
{
int32_t V_0 = 0;
{
int32_t L_0 = __this->get_currentMenuState_4();
V_0 = L_0;
int32_t L_1 = V_0;
if (!L_1)
{
goto IL_000f;
}
}
{
int32_t L_2 = V_0;
if ((((int32_t)L_2) == ((int32_t)1)))
{
goto IL_0032;
}
}
{
return;
}
IL_000f:
{
Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * L_3 = __this->get_mainMenuCanvas_6();
NullCheck(L_3);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_4 = Component_get_gameObject_m0B0570BA8DDD3CD78A9DB568EA18D7317686603C(L_3, /*hidden argument*/NULL);
NullCheck(L_4);
GameObject_SetActive_m25A39F6D9FB68C51F13313F9804E85ACC937BC04(L_4, (bool)1, /*hidden argument*/NULL);
Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * L_5 = __this->get_arCanvas_7();
NullCheck(L_5);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_6 = Component_get_gameObject_m0B0570BA8DDD3CD78A9DB568EA18D7317686603C(L_5, /*hidden argument*/NULL);
NullCheck(L_6);
GameObject_SetActive_m25A39F6D9FB68C51F13313F9804E85ACC937BC04(L_6, (bool)0, /*hidden argument*/NULL);
return;
}
IL_0032:
{
Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * L_7 = __this->get_mainMenuCanvas_6();
NullCheck(L_7);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_8 = Component_get_gameObject_m0B0570BA8DDD3CD78A9DB568EA18D7317686603C(L_7, /*hidden argument*/NULL);
NullCheck(L_8);
GameObject_SetActive_m25A39F6D9FB68C51F13313F9804E85ACC937BC04(L_8, (bool)0, /*hidden argument*/NULL);
Canvas_tBC28BF1DD8D8499A89B5781505833D3728CF8591 * L_9 = __this->get_arCanvas_7();
NullCheck(L_9);
GameObject_tBD1244AD56B4E59AAD76E5E7C9282EC5CE434F0F * L_10 = Component_get_gameObject_m0B0570BA8DDD3CD78A9DB568EA18D7317686603C(L_9, /*hidden argument*/NULL);
NullCheck(L_10);
GameObject_SetActive_m25A39F6D9FB68C51F13313F9804E85ACC937BC04(L_10, (bool)1, /*hidden argument*/NULL);
return;
}
}
// MenuScript_MenuStates MenuScript::getMenuState()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t MenuScript_getMenuState_m1F792BE2386367E0CD9CCF88F8D133FD2F336C25 (MenuScript_t7F3BC65E367445FC3A0AA8CD0A2A77941EF62B77 * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_currentMenuState_4();
return L_0;
}
}
// MenuScript_ARStates MenuScript::getARState()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t MenuScript_getARState_mD4F52C7688E3F2EAC3229E044F36BC290DD27916 (MenuScript_t7F3BC65E367445FC3A0AA8CD0A2A77941EF62B77 * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = __this->get_currentARState_5();
return L_0;
}
}
// System.Void MenuScript::Vehicle1ButtonPressed()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void MenuScript_Vehicle1ButtonPressed_m881415467A42A6CEA1FF6FB51E9E9EF75D64980D (MenuScript_t7F3BC65E367445FC3A0AA8CD0A2A77941EF62B77 * __this, const RuntimeMethod* method)
{
{
__this->set_currentMenuState_4(1);
__this->set_currentARState_5(0);
return;
}
}
// System.Void MenuScript::Vehicle2ButtonPressed()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void MenuScript_Vehicle2ButtonPressed_m586E298DE40EAE29CFE56CC40AF817C2686880A4 (MenuScript_t7F3BC65E367445FC3A0AA8CD0A2A77941EF62B77 * __this, const RuntimeMethod* method)
{
{
__this->set_currentMenuState_4(1);
__this->set_currentARState_5(1);
return;
}
}
// System.Void MenuScript::Vehicle3ButtonPressed()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void MenuScript_Vehicle3ButtonPressed_m309E2DDE9F1E4000910E12C26BF94E4DA8B2CF9F (MenuScript_t7F3BC65E367445FC3A0AA8CD0A2A77941EF62B77 * __this, const RuntimeMethod* method)
{
{
__this->set_currentMenuState_4(1);
__this->set_currentARState_5(2);
return;
}
}
// System.Void MenuScript::PlaceRemovePressed()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void MenuScript_PlaceRemovePressed_m9A0EDF2DA7FBB179204C3AD525EFEE45D8BE3F73 (MenuScript_t7F3BC65E367445FC3A0AA8CD0A2A77941EF62B77 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (MenuScript_PlaceRemovePressed_m9A0EDF2DA7FBB179204C3AD525EFEE45D8BE3F73_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
ARPlacement_t20C1E0720BEB83F20243FBDE8B3A3A255C70F925 * L_0 = __this->get_arPlaceScript_9();
NullCheck(L_0);
bool L_1 = ARPlacement_isVehiclePlaced_mBB442841458A48070E86F1D7390971FB2B02D907_inline(L_0, /*hidden argument*/NULL);
if (!L_1)
{
goto IL_001e;
}
}
{
TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438 * L_2 = __this->get_placeRemove_8();
NullCheck(L_2);
TMP_Text_set_text_m5CFCFE6E69321D9E6B6BAEAF92AE153C3484A960(L_2, _stringLiteralC32A0147F2E47A52E082FE2DD4B6AAA36084A4CB, /*hidden argument*/NULL);
return;
}
IL_001e:
{
TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438 * L_3 = __this->get_placeRemove_8();
NullCheck(L_3);
TMP_Text_set_text_m5CFCFE6E69321D9E6B6BAEAF92AE153C3484A960(L_3, _stringLiteralE963907DAC5CD5C017869B4C96C18021C9BD058B, /*hidden argument*/NULL);
return;
}
}
// System.Void MenuScript::BackToMain()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void MenuScript_BackToMain_mD5E8F349022E4FFE2EAB959400C1E73B4411C145 (MenuScript_t7F3BC65E367445FC3A0AA8CD0A2A77941EF62B77 * __this, const RuntimeMethod* method)
{
{
__this->set_currentMenuState_4(0);
return;
}
}
// System.Void MenuScript::resetMenu()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void MenuScript_resetMenu_m0D7B27EF2E878B3FDB38FBC63654F88FDB2A7D07 (MenuScript_t7F3BC65E367445FC3A0AA8CD0A2A77941EF62B77 * __this, const RuntimeMethod* method)
{
static bool s_Il2CppMethodInitialized;
if (!s_Il2CppMethodInitialized)
{
il2cpp_codegen_initialize_method (MenuScript_resetMenu_m0D7B27EF2E878B3FDB38FBC63654F88FDB2A7D07_MetadataUsageId);
s_Il2CppMethodInitialized = true;
}
{
TextMeshProUGUI_tBA60B913AB6151F8563F7078AD67EB6458129438 * L_0 = __this->get_placeRemove_8();
NullCheck(L_0);
TMP_Text_set_text_m5CFCFE6E69321D9E6B6BAEAF92AE153C3484A960(L_0, _stringLiteralC32A0147F2E47A52E082FE2DD4B6AAA36084A4CB, /*hidden argument*/NULL);
return;
}
}
// System.Void MenuScript::.ctor()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void MenuScript__ctor_mC6B243B2B70D5512CA4F1B254DFEDFEAE6E7B6A3 (MenuScript_t7F3BC65E367445FC3A0AA8CD0A2A77941EF62B77 * __this, const RuntimeMethod* method)
{
{
MonoBehaviour__ctor_mEAEC84B222C60319D593E456D769B3311DFCEF97(__this, /*hidden argument*/NULL);
return;
}
}
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
#ifdef __clang__
#pragma clang diagnostic pop
#endif
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR bool ARPlacement_isVehiclePlaced_mBB442841458A48070E86F1D7390971FB2B02D907_inline (ARPlacement_t20C1E0720BEB83F20243FBDE8B3A3A255C70F925 * __this, const RuntimeMethod* method)
{
{
bool L_0 = __this->get_vehicleIsPlaced_13();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR int32_t List_1_get_Count_m4F75A33A2B3EBF1A826FEFBFE30E1773DBED393C_gshared_inline (List_1_tE22AC27B04238DDEA6B873A77D0222DA9B480F52 * __this, const RuntimeMethod* method)
{
{
int32_t L_0 = (int32_t)__this->get__size_2();
return L_0;
}
}
IL2CPP_EXTERN_C inline IL2CPP_METHOD_ATTR ARRaycastHit_t509D3DB25CAC944ED3D3092C0A6096F85DDDD1BC List_1_get_Item_mFA1DFF7102266DFFCA6630C79C553225EE591AAE_gshared_inline (List_1_tE22AC27B04238DDEA6B873A77D0222DA9B480F52 * __this, int32_t ___index0, const RuntimeMethod* method)
{
{
int32_t L_0 = ___index0;
int32_t L_1 = (int32_t)__this->get__size_2();
if ((!(((uint32_t)L_0) >= ((uint32_t)L_1))))
{
goto IL_000e;
}
}
{
ThrowHelper_ThrowArgumentOutOfRangeException_mBA2AF20A35144E0C43CD721A22EAC9FCA15D6550(/*hidden argument*/NULL);
}
IL_000e:
{
ARRaycastHitU5BU5D_t2DDAC1FD38DF991C190FAEF8144A68AFBC541E94* L_2 = (ARRaycastHitU5BU5D_t2DDAC1FD38DF991C190FAEF8144A68AFBC541E94*)__this->get__items_1();
int32_t L_3 = ___index0;
ARRaycastHit_t509D3DB25CAC944ED3D3092C0A6096F85DDDD1BC L_4 = IL2CPP_ARRAY_UNSAFE_LOAD((ARRaycastHitU5BU5D_t2DDAC1FD38DF991C190FAEF8144A68AFBC541E94*)L_2, (int32_t)L_3);
return L_4;
}
}
|
dcee96a6d665f7e7abe6f8eabe924226c7220b6e
|
f5cf9c71112bfc5220dcc14f69799c4df1b33ef8
|
/Chapter 2/Kattis/doctorkattis.cpp
|
dbc46cbc9a6e6fb2f628de89b7a1c6a98a403fd0
|
[] |
no_license
|
rthaper01/competitive-programming-4-solutions
|
383b15461c6c58cd9d01e80fba9320f3a0e0e016
|
c42f2f8e1cf0c217b8f4f5d7fb52e702f78ff19b
|
refs/heads/main
| 2023-02-19T12:35:50.777389
| 2021-01-16T23:19:39
| 2021-01-16T23:19:39
| 316,351,989
| 3
| 0
| null | 2021-01-07T22:54:56
| 2020-11-26T22:52:20
|
C++
|
UTF-8
|
C++
| false
| false
| 1,583
|
cpp
|
doctorkattis.cpp
|
#include <iostream>
#include "stdio.h"
#include <vector>
#include <sstream>
#include <utility>
#include <set>
#include <map>
using namespace std;
void parse(map<pair<int, int>, string>& patients, map<string, pair<int, int>>& arrivals, int& pos) {
int command;
string name;
cin >> command;
switch (command) {
case 0:
{
--pos;
int level;
cin >> name >> level;
pair<int, int> info = make_pair(level, pos);
patients[info] = name;
arrivals[name] = info;
break;
}
case 1:
{
int level;
cin >> name >> level;
patients.erase(arrivals[name]);
arrivals[name].first+= level;
patients[arrivals[name]] = name;
break;
}
case 2:
{
cin >> name;
patients.erase(arrivals[name]);
arrivals.erase(name);
break;
}
case 3:
{
if (patients.empty()) {
cout << "The clinic is empty" << endl;
}
else {
auto it = patients.end();
it--;
cout << it->second << endl;
}
}
}
}
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL); cout.tie(NULL);
int N;
cin >> N;
map<pair<int, int>, string> pats;
map<string, pair<int, int>> reverse;
int position = 0;
for (int i = 0; i < N; i++) {
parse(pats, reverse, position);
}
return 0;
}
|
5640515a795f8f2e8f1b129ab5bca8f410e97b02
|
fb5da4878692c24c9a44c8ef829ce3fb86ea93f7
|
/main.cpp
|
965623b0876e54a9950e79cac6abe255958e6bd5
|
[] |
no_license
|
tuanhuynht1/Text_File_Compressor
|
922ed9d6a83dbf81de5ffd81ccae906ac31cd5ae
|
5001711651ac9fd13ce0f196442bba15032c5386
|
refs/heads/master
| 2022-02-27T17:09:19.093289
| 2019-11-06T19:39:50
| 2019-11-06T19:39:50
| 198,293,114
| 1
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,652
|
cpp
|
main.cpp
|
#include "HeapQueue.hpp"
#include "HuffmanBase.hpp"
#include "HuffmanTree.hpp"
#include "FileIO.hpp"
#include <iostream>
using namespace std;
int main(int argc, char* argv[]){
//requires additional command line arguments
if (argc == 1){
cout << "Command line arguments required";
return 1;
}
string mode = argv[1], filename = argv[2], buffer;
FileIO fio;
HuffmanTree tree;
if(mode == "compress"){
fio.fileToString(filename, buffer); //fill buffer with file contents
buffer = tree.compress(buffer); //compress buffer using Huffman Tree
cout << "Compressed: " << buffer << endl; //log to conslole
fio.stringToFile(filename, buffer); //rewrite origninal file with compressed code
buffer = tree.serializeTree(); //create a serialized key to decompress later
cout << "SerializedKey: " << buffer << endl; //log to console
fio.stringToFile("serializedKey_"+filename, buffer); //create a new file with the serialized key
}
else if (mode == "decompress"){
string key;
fio.fileToString(filename, buffer); //fill buffer with compressed code
fio.fileToString("serializedKey_"+filename, key); //fill key using the serialized key file
buffer = tree.decompress(buffer, key); //decode using the encoded string and the key
cout << buffer; //log to console
fio.stringToFile(filename, buffer); //rewrite to file after decoding the original text
}
//invalid arguments
else{
cout << "Invalid arguments!";
return 1;
}
}
|
492b5575eb84cae572c0b3566cec31abad85e65e
|
d1fc081702c50b72e75c01df0b68b1bac8369983
|
/recognizer.h
|
470876f5be44aa330fa4d5c4f813f9dd2387d555
|
[] |
no_license
|
ZhengWG/ZhongKong-Robot--Simple-object-recognition
|
f6b930b07f6b776c4c15edd109e28af69ca9d8cb
|
f4d43a65463975e2ac8f21adde0888a775b1595b
|
refs/heads/master
| 2021-09-10T01:06:19.405824
| 2018-03-20T12:53:37
| 2018-03-20T12:53:37
| 126,014,352
| 0
| 0
| null | null | null | null |
GB18030
|
C++
| false
| false
| 1,577
|
h
|
recognizer.h
|
#ifndef RECOGNIZER_H_
#define RECOGNIZER_H_
#include "cmhead.h"
#include "image.h"
using namespace std;
using namespace cv;
using namespace cv::gpu;
/*识别类,功能有:
匹配输入的ZKBImage_vector中的图像对象和frame图像对象*/
class ZKBRecognizer
{
public:
int count; //count保存识别几帧图片输出结果
uchar Recrst; //Recrst保存识别结果
ZKBRecognizer();
ZKBRecognizer(int m_count);
/************************************************************************/
/* 开始识别,识别结果保存在uchar Recrst中;buhuo_mode = 1时为补货模式*/
/************************************************************************/
int startRec(vector<ZKBImage> ZKBImage_vector,int buhuo_mode);
/************************************************************************/
/* 如果输入的向量中有大于5的,则认为这里有某事物*/
/************************************************************************/
bool hereIsSomething(vector<int>a,int thre);
/************************************************************************/
/* 得到向量中的最大值对应的下标*/
/************************************************************************/
void getMax(vector<int>a,int &index);
/************************************************************************/
/*返回:得到两个对象匹配上的点的对数*/
/************************************************************************/
int getNumofMatches(ZKBImage img_object,ZKBImage frame_object);
};
#endif
|
e99a64fd3be6747a8f9128bc708dc76bef5dadad
|
0f87e1cec828fc4fc9b7adb90339e3c21d0e75d9
|
/src/min_consumption.h
|
d72276a3646d5533ebd589ecbae6459e466af794
|
[] |
no_license
|
trollonos/RepairFirmDB
|
63cc9ff13684ae6351d4d8076c2ea0ad7ed1a63d
|
2e359ef91de036fe59c3d34c36f4310c46a24e22
|
refs/heads/main
| 2023-06-02T00:27:24.158530
| 2021-06-20T11:20:41
| 2021-06-20T11:20:41
| 367,009,514
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 721
|
h
|
min_consumption.h
|
#ifndef MIN_CONSUMPTION_H
#define MIN_CONSUMPTION_H
#include <QWidget>
#include <QMainWindow>
#include <QDebug>
#include <QtSql>
#include <QSqlDatabase>
#include <QFileInfo>
#include <QMessageBox>
#include <QSqlQuery>
#include <QFileDialog>
#include <QSqlTableModel>
namespace Ui {
class min_consumption;
}
class min_consumption : public QWidget
{
Q_OBJECT
public:
explicit min_consumption(QWidget *parent = nullptr);
~min_consumption();
QSqlDatabase db;
QSqlQueryModel *table;
QString sign;
private slots:
void on_pushButton_clicked();
void on_pushButton_2_clicked();
private:
Ui::min_consumption *ui;
};
#endif // MIN_CONSUMPTION_H
|
7a67194aace87cc9c6a6bf021278a021baf5ecaa
|
1390ac2a007892b62acbbb26afc6fc490acc5161
|
/Polish_Notation_Translater(Console)/Header.h
|
b77bb4469381ef110ddb495f3c5afb4e9d8d2307
|
[] |
no_license
|
Challanger524/Polish_Notation_Translater-Console-
|
9b291679529139d4529f51b16e70090b511c9817
|
26c8042657aa02ecdc56a1c3794d27a0aebfd939
|
refs/heads/master
| 2021-08-09T17:37:32.520733
| 2020-09-24T12:20:52
| 2020-09-24T12:20:52
| 223,027,694
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,933
|
h
|
Header.h
|
#pragma once
#include <iostream>
#include <string_view>
#include <stack>
#include <vector>
#include <thread>
#include <future>
#include <memory>
#include <algorithm>
using namespace std;
constexpr unsigned int G_SIZER = 128;
struct Timer {
Timer() : start{std::chrono::steady_clock::now()} {}
Timer(const Timer&) = delete;
Timer operator = (const Timer&) = delete;
~Timer() { cout << "\nTimer : " << static_cast<std::chrono::duration<float>>(std::chrono::steady_clock::now() - start).count() * 1000 << "ms\n"; }
std::chrono::duration<float> get() { return std::chrono::steady_clock::now() - start; }//sec
operator std::chrono::duration<float>() const { return std::chrono::steady_clock::now() - start; }
void Lap(){ cout << "\nLap : " << static_cast<std::chrono::duration<float>>(std::chrono::steady_clock::now() - start).count() * 1000 << "ms\n"; }
private:
std::chrono::time_point<std::chrono::steady_clock> start;
};
void Terminal_Single_Thread(string_view input, unique_ptr<char[]> &res1, unique_ptr<char[]> &res2);
void Terminal_Double_Thread(string_view input, unique_ptr<char[]> &res1, unique_ptr<char[]> &res2);
int OperChecker(const char Operator);
bool InfixSyntaxCheker(string_view view);
bool PostfSyntaxCheker(string_view view);
bool PrefiSyntaxCheker(string_view view);
void InfToPost(string_view _string, unique_ptr<char[]> &ptr);
void InfToPref(string_view _string, unique_ptr<char[]> &ptr);
void PostToInf(string_view _string, unique_ptr<char[]> &ptr);
void PostToPref(string_view _string, unique_ptr<char[]> &ptr);
void PrefToPost(string_view _string, unique_ptr<char[]> &ptr);
void PrefToInf(string_view _string, unique_ptr<char[]> &ptr);
//void PrefToInfMyOwn(string_view _string, unique_ptr<char[]> &ptr);
void SpaceRemover(char str[]);
void SpaceRemover(string &str);
bool Check(unique_ptr<char[]> &res);
int count_num(string_view::const_iterator First, string_view::const_iterator Last);
|
205eee86327b16fe4d69098e5c7752ff538e7731
|
f0c69db81d7c2d7d08aa5a42d4591dd79ca3f877
|
/토마토(7569).cpp
|
ffa2e9ab19f4b3c42ff7bd540c2d7ec6219aa771
|
[] |
no_license
|
bjh6654/1D3S
|
d7131ca9e148a51434fd64be6317d8605827f3e4
|
de287c6edb9af86cd10cf00802bed004ae2aea61
|
refs/heads/master
| 2022-11-18T10:20:55.799907
| 2020-07-14T14:53:18
| 2020-07-14T14:53:18
| 263,769,965
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,146
|
cpp
|
토마토(7569).cpp
|
#include <iostream>
#include <queue>
using namespace std;
int N, M, H, count;
int map[101][101][101];
int p[6] = {-1, 0, 1, 0, 0, 0};
int q[6] = {0, 1, 0, -1, 0, 0};
int o[6] = {0, 0, 0, 0, -1, 1};
struct loc {
int r, c, h, d;
};
bool isRange(int r, int c, int h) {
if ( r >= 0 && r < M && c >= 0 && c < N && h >= 0 && h < H )
return true;
return false;
}
int main() {
ios_base::sync_with_stdio(0); cout.tie(0); cin.tie(0);
cin >> N >> M >> H;
queue<loc> que;
for ( int h = 0; h < H; h++ )
for ( int r = 0; r < M; r++ )
for ( int c = 0; c < N; c++ ) {
cin >> map[r][c][h];
if ( map[r][c][h] == 1 )
que.push({r, c, h, 0});
else if ( map[r][c][h] == 0 )
count++;
}
if ( !count ) {
cout << 0;
} else {
while ( !que.empty() ) {
loc tmp = que.front(); que.pop();
for ( int i = 0; i < 6; i++ ) {
int r = tmp.r + p[i];
int c = tmp.c + q[i];
int h = tmp.h + o[i];
if ( isRange(r, c, h) && !map[r][c][h] ) {
map[r][c][h] = 1;
que.push({r, c, h, tmp.d+1});
if ( --count == 0 ) {
cout << tmp.d+1;
return 0;
}
}
}
}
cout << -1;
}
}
|
a289eee3bfa851542720cd0cf27db7d5145b7ffc
|
47955680db8ff6c3ac674bfeb9c6bdbb7db2f4d5
|
/03_UDP广播.cpp
|
515f568fc4d58a32bf6816aad01936495365c4ec
|
[] |
no_license
|
1340150899/Learn_Netprograming
|
dd267395622ad4e06d0adec975fa8d774669ac22
|
90a20ac6df5157812deec384a79ceb669b5cd961
|
refs/heads/master
| 2023-08-07T03:33:16.275340
| 2021-10-02T06:56:29
| 2021-10-02T06:56:29
| 412,704,929
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 659
|
cpp
|
03_UDP广播.cpp
|
#include<iostream>
#include<sys/socket.h>
#include<netinet/in.h>
#include<cstring>
#include<arpa/inet.h>
#include<unistd.h>
using namespace std;
int main()
{
int sockfd = socket(AF_INET, SOCK_DGRAM, 0);
int yes = 1;
setsockopt(sockfd, SOL_SOCKET, SO_BROADCAST, &yes, sizeof(yes));
struct sockaddr_in dst_addr;
dst_addr.sin_family = AF_INET;
dst_addr.sin_port = htons(9000);
dst_addr.sin_addr.s_addr = inet_addr("192.168.65.255");
char msg[]= "Hello I am broadcast";
sendto(sockfd, msg, strlen(msg), 0, (struct sockaddr*)&dst_addr, sizeof(dst_addr));
//close头文件#include<unistd>
close(sockfd);
return 0;
}
|
3912a18a3278b078400fd493ac54112d3b643de2
|
9176b0fd29516d34cfd0b143e1c5c0f9e665c0ed
|
/CS_153_Data_Structures/assignment3/test_slist.cpp
|
42e3092fc2e5dd508e8378286ff3fff1c0d52ea8
|
[] |
no_license
|
Mr-Anderson/james_mst_hw
|
70dbde80838e299f9fa9c5fcc16f4a41eec8263a
|
83db5f100c56e5bb72fe34d994c83a669218c962
|
refs/heads/master
| 2020-05-04T13:15:25.694979
| 2011-11-30T20:10:15
| 2011-11-30T20:10:15
| 2,639,602
| 2
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 2,744
|
cpp
|
test_slist.cpp
|
//////////////////////////////////////////////////////////////////////
/// @file test_slist.cpp
/// @author James Anderson Section A
/// @brief Implementation file for test_slist class for assignment 3
//////////////////////////////////////////////////////////////////////
#include "test_slist.h"
CPPUNIT_TEST_SUITE_REGISTRATION (Test_slist);
void Test_slist::test_constructor ()
{
SList<int> test;
SList<int>::Iterator i;
i = test.begin();
// Constructor check
CPPUNIT_ASSERT (test.size () == 0);
}
void Test_slist::test_copy ()
{
SList<int> test;
for ( unsigned int i = 1; i <= 1000 ; i++)
{
test.push_front(i);
}
SList<int> test2(test);
SList<int>::Iterator a;
SList<int>::Iterator b;
for ( a = test.begin() , b = test2.begin() ; a != test.end() ; a++ , b++ )
{
CPPUNIT_ASSERT (*a == *b);
}
}
void Test_slist::test_assignment ()
{
SList<int> test;
for ( unsigned int i = 1; i <= 1000 ; i++)
{
test.push_front(i);
}
SList<int> test2;
for ( unsigned int i = 1000; i <= 1 ; i--)
{
test2.push_front(i);
}
test2 = test;
SList<int>::Iterator a;
SList<int>::Iterator b;
for ( a = test.begin() , b = test2.begin() ; a != test.end() ; a++ , b++ )
{
CPPUNIT_ASSERT (*a == *b);
}
}
void Test_slist::test_push_front ()
{
SList<int> test;
SList<int>::Iterator k;
for ( int i = 1 ; i <= 1000 ; i++ )
{
test.push_front(5);
CPPUNIT_ASSERT (test.size() == i);
}
for ( k = test.begin() ; k != test.end() ; k++ )
{
CPPUNIT_ASSERT (5 == *k);
}
}
void Test_slist::test_remove ()
{
SList<int> test;
SList<int>::Iterator k;
int j = 1;
for ( int i = 1 ; i <= 1000 ; i++ )
{
test.push_front(j);
CPPUNIT_ASSERT (test.size() == i);
j++;
if (j > 5)
{
j = 1;
}
}
test.remove(3);
for ( k = test.begin() ; k != test.end() ; k++ )
{
CPPUNIT_ASSERT (3 != *k);
}
}
void Test_slist::test_pop_front ()
{
SList<int> test;
for ( unsigned int i = 1 ; i <= 1000 ; i++ )
{
test.push_front(i);
}
for ( unsigned int i = 1000 ; i >=1 ; i-- )
{
CPPUNIT_ASSERT (test.empty() == 0);
CPPUNIT_ASSERT (test.size() == i );
test.pop_front();
CPPUNIT_ASSERT (test.size() == i - 1);
}
CPPUNIT_ASSERT (test.size() == 0);
CPPUNIT_ASSERT (test.empty() == 1);
try
{
test.pop_front ();
CPPUNIT_ASSERT (false);
}
catch (Exception& e)
{
CPPUNIT_ASSERT (CONTAINER_EMPTY == e.error_code ());
}
}
void Test_slist::test_clear ()
{
SList<int> test;
for ( unsigned int i = 1 ; i <= 1000 ; i++ )
{
test.push_front(i);
}
test.clear();
CPPUNIT_ASSERT (test.size() == 0);
CPPUNIT_ASSERT (test.empty() == 1);
}
|
9da9132e27b5ca32902cb9c0c88c5480d571bebf
|
b11a84d4f5603cf222419eb9a7bf0aece7939645
|
/CannonsApplication/CannonsApplication/transformScene.cpp
|
39ed85b246ae2d9ca8068801b1095430ef32ffa7
|
[] |
no_license
|
YvensFaos/CG_MSC_Discipline
|
2615a279cd740498a79445fb667eb94629125083
|
f1c9676b799e52465aac015f65061c0f235fd091
|
refs/heads/master
| 2021-05-27T17:07:57.671221
| 2014-12-16T13:44:28
| 2014-12-16T13:44:28
| 17,761,687
| 1
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,804
|
cpp
|
transformScene.cpp
|
#include "transformScene.h"
#include "specialObjects.h"
void scaleOnXYZ(float elapsedTime, GObject* object)
{
GCube* cube = (GCube*)object;
object->floatCounter += (elapsedTime*0.5);
float factor = 1.0005f; //0.5f + sin(object->floatCounter);
printf("scale factor: %f\n", factor);
cube->scale(new EDPoint(1.0f, 1.0f, 1.0f), factor);
}
void translateOnXYZ(float elapsedTime, GObject* object)
{
GCube* cube = (GCube*)object;
object->floatCounter += (elapsedTime*0.5);
float factor = 0.05f; //0.5f + sin(object->floatCounter);
printf("translate factor: %f\n", factor);
cube->translate(new EDPoint(factor, factor, factor));
}
void rotateOnXYZ(float elapsedTime, GObject* object)
{
GCube* cube = (GCube*)object;
object->floatCounter += (elapsedTime*0.5);
float factor = 2.f; //0.5f + sin(object->floatCounter);
printf("rotate factor: %f\n", factor);
cube->rotate(new EDPoint(0.0f, 0.0f, 1.0f), factor);
}
TransformScene::TransformScene(void) : Scene()
{
camera = new EDCamera(new EDPoint(20.0f, 14.0f, 70.0f), new EDPoint(20.0f, 10.0f, 55.0f), 0.05f, 300.0f, 45.0f);
scenario = new Scenario();
GPlane* terrain = new GPlane("plano1", 37.5f, 45.0f, new EDPoint(0.0f, -3.0f, -1.0f), new EDPlane());
GLfloat ambientMaterial[] = {.2f, .8f, .1f, 0.9f};
GLfloat diffuseMaterial[] = {.1f, .0f, .4f, 0.4f};
terrain->setMaterial(ambientMaterial, diffuseMaterial);
scenario->objects.push_back(terrain);
GCube* cube = new GCube("cubo1", new EDPoint(20.0f, -1.5f, 30.f), 2.5f);
GLfloat ambientMaterial1[] = {.6f, .2f, .0f, 0.5f};
GLfloat diffuseMaterial1[] = {.6f, .1f, .3f, 0.4f};
cube->setMaterial(ambientMaterial1, diffuseMaterial1);
cube->setCallUpdate(rotateOnXYZ);
cube->floatCounter = 0.0f;
scenario->objects.push_back(cube);
}
TransformScene::~TransformScene(void)
{ }
|
81e695eb70f9bafea796a7399ad583f17eb4f82e
|
d3aafe095275adef7404788998a355414a227903
|
/dnn_project/dnn/learning_rules/optimal_stdp.h
|
46a9975e07c373da11d328dc7f5adf995a401743
|
[
"MIT"
] |
permissive
|
vvoZokk/dnn
|
325964282587c56178dd82eab0e2cc688695f347
|
19490dd86234d2f7fa9a0de162ed4c2ab33be7d3
|
refs/heads/master
| 2021-01-18T07:41:14.848205
| 2018-01-28T22:36:51
| 2018-01-28T22:36:51
| 46,082,204
| 1
| 1
| null | 2015-11-20T12:41:37
| 2015-11-12T21:32:39
|
C++
|
UTF-8
|
C++
| false
| false
| 2,207
|
h
|
optimal_stdp.h
|
#pragma once
#include <dnn/protos/optimal_stdp.pb.h>
#include <dnn/io/serialize.h>
#include <dnn/util/fastapprox/fastexp.h>
#include <dnn/neurons/srm_neuron.h>
#include <dnn/sim/global_ctx.h>
#include <dnn/sim/sim_info.h>
#include <dnn/util/fastapprox/fastpow.h>
namespace dnn {
template <typename C, typename S, typename N>
class LearningRule;
/*@GENERATE_PROTO@*/
struct OptimalStdpC : public Serializable<Protos::OptimalStdpC> {
OptimalStdpC()
: tau_c(100.0)
, tau_mean(10000.0)
, target_rate(10.0)
, target_rate_factor(1.0)
, weight_decay(0.0026)
, learning_rate(0.01)
, tau_mi_stat(30000.0)
, tau_hebb(0.0)
{}
void serial_process() {
begin() <<
"tau_c: " << tau_c << ", " <<
"tau_mean: " << tau_mean << ", " <<
"target_rate: " << target_rate << ", " <<
"target_rate_factor: " << target_rate_factor << ", " <<
"learning_rate: " << learning_rate << ", " <<
"weight_decay: " << weight_decay << ", " <<
"tau_mi_stat: " << tau_mi_stat << ", " <<
"tau_hebb: " << tau_hebb << Self::end;
__target_rate = target_rate/1000.0;
}
double tau_c;
double tau_mean;
double target_rate;
double __target_rate;
double target_rate_factor;
double weight_decay;
double learning_rate;
double tau_mi_stat;
double tau_hebb;
};
/*@GENERATE_PROTO@*/
struct OptimalStdpState : public Serializable<Protos::OptimalStdpState> {
OptimalStdpState()
: B(0.0), p_mean(0.0), mi_stat(0.0)
{}
void serial_process() {
begin() << "p_mean: " << p_mean << ", "
<< "C: " << C << ", "
<< "B: " << B << ", "
<< "mi_stat: " << mi_stat << Self::end;
}
double p_mean;
ActVector<double> C;
double B;
double mi_stat;
};
class OptimalStdp : public LearningRule<OptimalStdpC, OptimalStdpState, SRMNeuron> {
public:
void reset() {
s.B = 0.0;
s.C.resize(n->getSynapses().size());
fill(s.C.begin(), s.C.end(), 0.0);
}
void propagateSynapseSpike(const SynSpike &sp);
void calculateDynamics(const Time& t);
};
}
|
98a502315048a5b48b970f2cba11f8c87fc4e780
|
f6549f90d5d7ad7c4537df2ac4b20dcda28c8ab9
|
/src.cpp/alox/log.cpp
|
7fcc45b87e0baa0fdbac14fdc08846bd6debe948
|
[
"MIT"
] |
permissive
|
winsmith/ALox-Logging-Library
|
1b9606b907f72a3272f2b494b20bbcab84774aa7
|
9e5224a73f0e5c7ddab52de6646721ad7b358835
|
refs/heads/master
| 2020-12-13T21:52:26.224953
| 2016-04-19T13:07:25
| 2016-04-19T13:07:25
| 56,597,074
| 0
| 0
| null | 2016-04-19T13:01:28
| 2016-04-19T13:01:27
| null |
UTF-8
|
C++
| false
| false
| 4,154
|
cpp
|
log.cpp
|
// #################################################################################################
// aworx::lox - ALox Logging Library
//
// (c) 2013-2016 A-Worx GmbH, Germany
// Published under MIT License (Open Source License, see LICENSE.txt)
// #################################################################################################
#include "alib/stdafx_alib.h"
#if !defined (HPP_ALOX)
#include "alox/alox.hpp"
#endif
#if !defined (HPP_ALIB_CONFIG_CONFIGURATION)
#include "alib/config/configuration.hpp"
#endif
#if !defined (HPP_ALIB_SYSTEM_SYSTEM)
#include "alib/system/system.hpp"
#endif
#if !defined ( HPP_ALOX_CONSOLE_LOGGER )
#include "alox/alox_console_loggers.hpp"
#endif
using namespace std;
namespace aworx {
namespace lox {
using namespace core;
// #################################################################################################
// Static fields
// #################################################################################################
#if defined(ALOX_DBG_LOG)
ALoxReportWriter* Log::DebugReportWriter = nullptr;
#endif
#if defined(_MSC_VER)
// MSC (as of 12/2015):
// C4579: in-class initialization for type 'const aworx::SLiteral<10>'
// is not yet implemented; static member will remain uninitialized at runtime but
// use in constant-expressions is supported
SLiteral<2> ALox::InternalDomains {"$/" };
#else
constexpr SLiteral<2> ALox::InternalDomains;
#endif
// #################################################################################################
// Auto detection of DEBUG environment
// #################################################################################################
#if defined(ALOX_DBG_LOG)
TextLogger* Log::DebugLogger= nullptr;
TextLogger* Log::IDELogger = nullptr;
void Log::AddDebugLogger( Lox* lox )
{
if ( DebugLogger != nullptr )
{
ALIB_WARNING( "Log::AddDebugLogger(): called twice." );
return;
}
// add a VStudio logger if this a VStudio debug session
#if defined(ALIB_VSTUDIO) && defined(ALIB_DEBUG)
if( System::IsDebuggerPresent()
&& !ALIB::Config.IsTrue( ALox::ConfigCategoryName, "NO_IDE_LOGGER" ))
{
IDELogger= new VStudioLogger("IDE_LOGGER");
// add logger
lox->SetVerbosity( IDELogger, Verbosity::Verbose , "/" );
lox->SetVerbosity( IDELogger, Verbosity::Warning, ALox::InternalDomains );
}
#endif
// add a default console logger
DebugLogger= Lox::CreateConsoleLogger("DEBUG_LOGGER");
{
// add logger
lox->SetVerbosity( DebugLogger, Verbosity::Verbose );
lox->SetVerbosity( DebugLogger, Verbosity::Warning, ALox::InternalDomains );
// replace ALibs' ReportWriter by an ALox ReportWriter
if ( lib::Report::GetDefault().PeekWriter() == &lib::ConsoleReportWriter::Singleton )
lib::Report::GetDefault().PushWriter( DebugReportWriter= new ALoxReportWriter( lox ) );
}
}
void Log::RemoveDebugLogger( Lox* lox )
{
// replace the report writer (if we replaced it before)
if ( DebugReportWriter != nullptr )
{
lib::Report::GetDefault().PopWriter( DebugReportWriter );
delete DebugReportWriter;
DebugReportWriter= nullptr;
}
ALIB_ASSERT_WARNING( DebugLogger != nullptr, "Log::RemoveDebugLogger(): no debug logger to remove." );
if ( DebugLogger != nullptr )
{
lox->RemoveLogger( DebugLogger );
delete DebugLogger;
DebugLogger= nullptr;
}
#if defined(ALIB_VSTUDIO) && defined(ALIB_DEBUG)
if ( IDELogger != nullptr )
{
lox->RemoveLogger( IDELogger );
delete IDELogger;
IDELogger= nullptr;
}
#endif
}
#endif // ALOX_DBG_LOG
}}// namespace aworx::lox
|
307c26ede0cae4d85d84c57db86c6e0c429a4bf6
|
a0977a28bf39fdd8c4a4cec4ba180c5770f01379
|
/src/cs_hook/hook_function.h
|
4062a3c21651fc426a513d793e781f14fa0b17fd
|
[] |
no_license
|
shuhaoc/sogp2
|
092506e2b278f59f8d0f407b38d4e5ff0d8138f1
|
0f4a790ff5b7b79b9c7a8fe21761ccb0a9792578
|
refs/heads/master
| 2021-01-01T17:21:10.150787
| 2015-03-29T05:34:53
| 2015-03-29T05:34:53
| 33,062,811
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 416
|
h
|
hook_function.h
|
#pragma once
#include <Winsock2.h>
namespace cs_hook {
SOCKET __stdcall WSASocketA(int af, int type, int protocol, LPWSAPROTOCOL_INFOA lpProtocolInfo, GROUP p, DWORD dwFlags);
SOCKET __stdcall socket(int af, int type, int protocol);
int __stdcall WSAConnect(SOCKET s, const sockaddr* name, int namelen, LPWSABUF lpCallerData, LPWSABUF lpCalleeData, LPQOS lpSQOS, LPQOS lpGQOS);
} // namespace cs_hook
|
6f0a08c0d07af223bc4a5821e81f594d1612fff6
|
3159d77c2fc0828025bd0fb6f5d95c91fcbf4cd5
|
/cpp/dll/libMath/Helpers.h
|
8de2c9c51075a74e674f18bca1093c181038b89c
|
[] |
no_license
|
jcmana/playground
|
50384f4489a23c3a3bb6083bc619e95bd20b17ea
|
8cf9b9402d38184f1767c4683c6954ae63d818b8
|
refs/heads/master
| 2023-09-01T11:26:07.231711
| 2023-08-21T16:30:16
| 2023-08-21T16:30:16
| 152,144,627
| 1
| 0
| null | 2023-08-21T16:21:29
| 2018-10-08T20:47:39
|
C++
|
UTF-8
|
C++
| false
| false
| 74
|
h
|
Helpers.h
|
#pragma once
namespace Math {
void Print(double d);
} // namespace Math
|
ecbd4a81fb3065d101bd3737e3bef9d65bee8d55
|
67d1eba373b9afe9cd1f6bc8a52fde774207e6c7
|
/TopCoder/testprograms/MergeStrings.cpp
|
a60f216d21b9c3c1d014a4425525ffc251b21d06
|
[] |
no_license
|
evan-hossain/competitive-programming
|
879b8952df587baf906298a609b471971bdfd421
|
561ce1a6b4a4a6958260206a5d0252cc9ea80c75
|
refs/heads/master
| 2021-06-01T13:54:04.351848
| 2018-01-19T14:18:35
| 2018-01-19T14:18:35
| 93,148,046
| 2
| 3
| null | 2020-10-01T13:29:54
| 2017-06-02T09:04:50
|
C++
|
UTF-8
|
C++
| false
| false
| 11,621
|
cpp
|
MergeStrings.cpp
|
#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <queue>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <cstring>
#define out freopen("output.txt", "w", stdout);
#define in freopen("input.txt", "r", stdin);
#define clr(arr, key) memset(arr, key, sizeof arr)
#define pb push_back
#define infinity (1 << 28)
#define LL long long
#define PI acos(-1)
#define gcd(a, b) __gcd(a, b)
#define CF ios_base::sync_with_stdio(0);cin.tie(0);
#define lcm(a, b) ((a)*((b)/gcd(a,b)))
#define all(v) v.begin(), v.end()
#define no_of_ones __builtin_popcount // count 1's in a numbers binary representation
#define SZ(v) (int)(v.size())
#define eps 10e-7
//int col[8] = {0, 1, 1, 1, 0, -1, -1, -1};
//int row[8] = {1, 1, 0, -1, -1, -1, 0, 1};
//int col[4] = {1, 0, -1, 0};
//int row[4] = {0, 1, 0, -1};
//int months[13] = {0, ,31,28,31,30,31,30,31,31,30,31,30,31};
using namespace std;
struct point{int x, y; point () {} point(int a, int b) {x = a, y = b;}}; // for coordinates;
template <class T> T sqr(T a){return a * a;} // square
template <class T> T power(T n, T p) { T res = 1; for(int i = 0; i < p; i++) res *= n; return res;} // n to the power p
template <class T> double getdist(T a, T b){return sqrt((a.x - b.x) * (a.x - b.x) + (a.y - b.y) * (a.y - b.y));} // distance between a and b
template <class T> T extract(string s, T ret) {stringstream ss(s); ss >> ret; return ret;} // extract words or numbers from a line
template <class T> string tostring(T n) {stringstream ss; ss << n; return ss.str();} // convert a number to string
template <class T> inline T Mod(T n,T m) {return (n%m+m)%m;} // negative mod
template <class T> void print_all(T v) {for(int i = 0; i < v.size(); i++) cout << v[i] << ' ';};
template <class T> void print_all(T &v, int len) {for(int i = 0; i < len; i++) cout << v[i] << ' ';} // prints all elements in a vector or array
template <class T> void print_pair(T v, int len) {for(int i = 0; i < len; i++) cout << v[i].first << ' ' << v[i].second << endl;} // prints pair vector
//LL bigmod(LL B,LL P,LL M){LL R=1; while(P>0) {if(P%2==1){R=(R*B)%M;}P/=2;B=(B*B)%M;} return R;}
#define MAX 500010
/*************************************************HABIJABI ENDS HERE******************************************************/
class MergeStrings {
public:
int dp[55][55], mark[55][55];
string S, A, B, sdp[55][55];
int call(int s, int a, int b)
{
if(a == SZ(A) && b == SZ(B))
return 1;
int &ret = dp[a][b];
if(ret != -1)
return ret;
ret = 0;
if(S[s] == '?')
{
if(a < SZ(A))
ret = max(ret, call(s + 1, a + 1, b));
if(b < SZ(B))
ret = max(ret, call(s + 1, a, b + 1));
}
if(a < SZ(A) && S[s] == A[a])
ret = max(ret, call(s + 1, a + 1, b));
else if(b < SZ(B) && S[s] == B[b])
ret = max(ret, call(s + 1, a, b + 1));
return ret;
}
string get_result(int s, int a, int b)
{
if(a == SZ(A) && b == SZ(B))
return "";
string &ret = sdp[a][b];
if(mark[a][b])
return ret;
mark[a][b] = 1;
ret = "a";
if(S[s] == '?')
{
if(a < SZ(A) && call(s + 1, a + 1, b))
ret = min(ret, A[a] + get_result(s + 1, a + 1, b));
if(b < SZ(B) && call(s + 1, a, b + 1))
ret = min(ret, B[b] + get_result(s + 1, a, b + 1));
return ret;
}
if(a < SZ(A) && S[s] == A[a])
ret = min(ret, A[a] + get_result(s + 1, a + 1, b));
if(b < SZ(B) && S[s] == B[b])
ret = min(ret, B[b] + get_result(s + 1, a, b + 1));
return ret;
}
string getmin(string Ss, string Aa, string Bb) {
S = Ss;
A = Aa;
B = Bb;
clr(dp, -1);
if(!call(0, 0, 0))
return "";
return get_result(0, 0, 0);
}
};
// BEGIN KAWIGIEDIT TESTING
// Generated by KawigiEdit-pf 2.3.0
#include <iostream>
#include <string>
#include <vector>
#include <ctime>
#include <cmath>
using namespace std;
bool KawigiEdit_RunTest(int testNum, string p0, string p1, string p2, bool hasAnswer, string p3) {
cout << "Test " << testNum << ": [" << "\"" << p0 << "\"" << "," << "\"" << p1 << "\"" << "," << "\"" << p2 << "\"";
cout << "]" << endl;
MergeStrings *obj;
string answer;
obj = new MergeStrings();
clock_t startTime = clock();
answer = obj->getmin(p0, p1, p2);
clock_t endTime = clock();
delete obj;
bool res;
res = true;
cout << "Time: " << double(endTime - startTime) / CLOCKS_PER_SEC << " seconds" << endl;
if (hasAnswer) {
cout << "Desired answer:" << endl;
cout << "\t" << "\"" << p3 << "\"" << endl;
}
cout << "Your answer:" << endl;
cout << "\t" << "\"" << answer << "\"" << endl;
if (hasAnswer) {
res = answer == p3;
}
if (!res) {
cout << "DOESN'T MATCH!!!!" << endl;
} else if (double(endTime - startTime) / CLOCKS_PER_SEC >= 2) {
cout << "FAIL the timeout" << endl;
res = false;
} else if (hasAnswer) {
cout << "Match :-)" << endl;
} else {
cout << "OK, but is it right?" << endl;
}
cout << "" << endl;
return res;
}
int main() {
bool all_right;
bool disabled;
bool tests_disabled;
all_right = true;
tests_disabled = false;
string p0;
string p1;
string p2;
string p3;
// ----- test 0 -----
disabled = false;
p0 = "?" "?CC?" "?";
p1 = "ABC";
p2 = "BCC";
p3 = "ABCCBC";
all_right = (disabled || KawigiEdit_RunTest(0, p0, p1, p2, true, p3) ) && all_right;
tests_disabled = tests_disabled || disabled;
// ------------------
// ----- test 1 -----
disabled = false;
p0 = "WHAT?";
p1 = "THE";
p2 = "WA";
p3 = "";
all_right = (disabled || KawigiEdit_RunTest(1, p0, p1, p2, true, p3) ) && all_right;
tests_disabled = tests_disabled || disabled;
// ------------------
// ----- test 2 -----
disabled = false;
p0 = "PARROT";
p1 = "PARROT";
p2 = "";
p3 = "PARROT";
all_right = (disabled || KawigiEdit_RunTest(2, p0, p1, p2, true, p3) ) && all_right;
tests_disabled = tests_disabled || disabled;
// ------------------
// ----- test 3 -----
disabled = false;
p0 = "?" "?" "?" "?" "?" "?" "?" "?" "?" "?" "?";
p1 = "AZZAA";
p2 = "AZAZZA";
p3 = "AAZAZZAAZZA";
all_right = (disabled || KawigiEdit_RunTest(3, p0, p1, p2, true, p3) ) && all_right;
tests_disabled = tests_disabled || disabled;
// ------------------
// ----- test 4 -----
disabled = false;
p0 = "?" "?" "?" "?K?" "?" "?" "?" "?" "?" "?" "?" "?" "?" "?" "?" "?" "?D?" "?" "?K?" "?" "?K?" "?" "?" "?" "?" "?" "?" "?K?" "?" "?" "?" "?K?" "?" "?" "?" "?" "?" "?";
p1 = "KKKKKDKKKDKKDDKDDDKDKK";
p2 = "KDKDDKKKDDKDDKKKDKDKKDDDDDDD";
p3 = "KDKDKDKKKDDKDDKKKDKDKKDKDDDKDDDKKDKKKDKKDDKDDDKDKK";
all_right = (disabled || KawigiEdit_RunTest(4, p0, p1, p2, true, p3) ) && all_right;
tests_disabled = tests_disabled || disabled;
// ------------------
// ----- test 5 -----
disabled = false;
p0 = "";
p1 = "";
p2 = "";
all_right = (disabled || KawigiEdit_RunTest(5, p0, p1, p2, false, p3) ) && all_right;
tests_disabled = tests_disabled || disabled;
// ------------------
// ----- test 6 -----
disabled = false;
p0 = "?" "?" "?" "?Q?" "?" "?J?" "?" "?B?X";
p1 = "PIQJBQ";
p2 = "CPVJVXBLX";
p3 = "CPIPQJBVJQVXBLX";
all_right = (disabled || KawigiEdit_RunTest(6, p0, p1, p2, true, p3) ) && all_right;
tests_disabled = tests_disabled || disabled;
// ------------------
// ----- test 7 -----
disabled = false;
p0 = "W?WW?" "?" "?" "?" "?" "?P?" "?CC?" "?" "?" "?" "?" "?" "?" "?" "?" "?" "?" "?" "?" "?" "?" "?" "?" "?" "?" "?" "?P?W?" "?" "?" "?P?C?" "?" "?W";
p1 = "WWWCWWCPCWC";
p2 = "WPCCWWWCCCPWPWPWPWWWWCCPCPPWWWWPPCCWWWW";
p3 = "WPWWCWCWWCPCWCCWWWCCCPWPWPWPWWWWCCPCPPWWWWPPCCWWWW";
all_right = (disabled || KawigiEdit_RunTest(7, p0, p1, p2, true, p3) ) && all_right;
tests_disabled = tests_disabled || disabled;
// ------------------
if (all_right) {
if (tests_disabled) {
cout << "You're a stud (but some test cases were disabled)!" << endl;
} else {
cout << "You're a stud (at least on given cases)!" << endl;
}
} else {
cout << "Some of the test cases had errors." << endl;
}
return 0;
}
// PROBLEM STATEMENT
// Guts is a slow loris who likes to play with strings.
//
// String C is obtained by shuffling strings A and B if we can create C by repeatedly taking either the first character of A or the first character of B. Formally, string C is obtained by shuffling strings A and B if length(C) = length(A) + length(B) and there are sequences of integers X and Y such that:
//
// length(X) = length(A) and length(Y) = length(B).
// For each valid i, X[i] < X[i+1].
// For each valid i, Y[i] < Y[i+1].
// For each valid i and j, X[i] != Y[j].
// For each valid i, C[X[i]] = A[i].
// For each valid i, C[Y[i]] = B[i].
//
//
// You are given strings S, A, and B. Strings A and B contain only letters, string S can also contain multiple copies of the '?' (question mark) character. The '?' is a wildcard that represents any single letter. Guts wants to shuffle strings A and B in such a way that the resulting string matches S.
//
// Replace each '?' with a letter in such a way that the resulting string S can be obtained by shuffling A and B. Return the resulting string S. If there are multiple solutions, return the lexicographically smallest one. If there is no solution, return an empty string instead.
//
// DEFINITION
// Class:MergeStrings
// Method:getmin
// Parameters:string, string, string
// Returns:string
// Method signature:string getmin(string S, string A, string B)
//
//
// NOTES
// -Given two distinct strings X and Y such that length(X)=length(Y), the lexicographically smaller one is the one that has a character with a smaller ASCII value on the first position on which they differ.
//
//
// CONSTRAINTS
// -S will contain between 1 and 50 characters, inclusive.
// -The number of characters in S will be same as the total number of characters of A and B.
// -Each character in S will be an uppercase letter ('A'-'Z') or '?'.
// -Each character in A and B will be an uppercase letter ('A'-'Z').
//
//
// EXAMPLES
//
// 0)
// "??CC??"
// "ABC"
// "BCC"
//
// Returns: "ABCCBC"
//
// Out of all strings that can be obtained by shuffling "ABC" and "BCC", only two match "??CC??": the strings "ABCCBC" and "BACCBC". The string "ABCCBC" is the lexicographically smaller of the two.
//
// 1)
// "WHAT?"
// "THE"
// "WA"
//
// Returns: ""
//
// None of the strings obtained by shuffling "THE" and "WA" matches "WHAT?".
//
// 2)
// "PARROT"
// "PARROT"
// ""
//
// Returns: "PARROT"
//
// One of A and B may sometimes be empty.
//
// 3)
// "???????????"
// "AZZAA"
// "AZAZZA"
//
// Returns: "AAZAZZAAZZA"
//
//
//
// 4)
// "????K??????????????D???K???K????????K?????K???????"
// "KKKKKDKKKDKKDDKDDDKDKK"
// "KDKDDKKKDDKDDKKKDKDKKDDDDDDD"
//
// Returns: "KDKDKDKKKDDKDDKKKDKDKKDKDDDKDDDKKDKKKDKKDDKDDDKDKK"
//
//
//
// END KAWIGIEDIT TESTING
//Powered by KawigiEdit-pf 2.3.0!
|
ff21c78d6cd687cba783ae9b3eca7cb94144a35d
|
de7e050dd1e4052fbd79236455cd13b03d214950
|
/network/middleware/package.cpp
|
ff24a9ee3e8d9bfda3fbf7b62c0438fd313ab92d
|
[] |
no_license
|
Samuelchen85/ffnet
|
5c4a7a2f4d445dcd2f08f9e6164fa12e0c671a48
|
3dfb578d29f3e709fbcc1e71878319e83ed0d9ee
|
refs/heads/master
| 2020-03-23T14:54:41.329815
| 2015-08-01T01:23:59
| 2015-08-01T01:23:59
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 155
|
cpp
|
package.cpp
|
#include "package/package.h"
namespace ffnet
{
package::package(uint32_t typeID)
: m_iTypeID(typeID){}
package::~package(){}
}//end namespace ffnet
|
f94c5e50e8b458613b048b4b1021b482f7c0bc61
|
8e7ebfadebeca8b9c6fea4bda4298cb6a3e737be
|
/spanish-legacy/R/coding_challenge_3.cpp
|
be207f5a6d28642f1426abc9177c27d5d48ce812
|
[] |
no_license
|
Dk0958/youtube-scripts
|
7057601f98347a46c6e8cf49460a2f01ea133645
|
55de6a809f4c7a2c603659fa31d1d2a82aaed446
|
refs/heads/master
| 2023-02-13T10:08:40.088503
| 2020-12-17T01:34:36
| 2020-12-17T01:34:36
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 572
|
cpp
|
coding_challenge_3.cpp
|
#include<iostream>
#include<vector>
using namespace std;
void coding_challenge3(vector<int> x){
int count = 0;
int n = x.size();
for(int i=1;i<=n-2;i++){
if(x[i-1]==1 && x[i] == 1 && x[i+1]==0){
count++;
}
if(i==n-2 && x[i] == 1 && x[i+1] == 1){
count++;
}
}
cout << "Number of blocks of 1s: " << count << endl;
}
int main(){
vector<int> x;
cout << "Enter the numbers of the vectors or -1 to quit\n" << endl;
int a;
do{
cin >> a;
if(a==-1){
break;
}
x.push_back(a);
}while(true);
coding_challenge3(x);
}
|
b1486f3957bd02ba433f39619fded9bb9f86415e
|
d152b7706a665eb16bac8b4d4e92cf60b27152ee
|
/hdr/ImageLoader.h
|
51e354a699181d8957e5076aca146a6abb398275
|
[] |
no_license
|
AnandSundar/Kitty-Pirateer
|
971ea82a1527898803d51982d1870c5d1213cbdb
|
b35d4a7c778b9b16dbccf3caa96e4d7659fccb99
|
refs/heads/master
| 2021-01-16T22:03:22.905062
| 2016-03-01T21:35:25
| 2016-03-01T21:35:25
| 49,181,358
| 0
| 5
| null | 2016-02-24T20:50:09
| 2016-01-07T04:37:52
|
C++
|
UTF-8
|
C++
| false
| false
| 776
|
h
|
ImageLoader.h
|
#ifndef IMAGE_LOADER_H_
#define IMAGE_LOADER_H_
#include <GL/glut.h> /* glut.h includes gl.h and glu.h */
#include <GL/freeglut.h>
#include <SOIL/SOIL.h>
class ImageLoader {
private:
public:
static GLuint LoadTexture( const char * filename );
static void drawBox(GLfloat size, GLenum type, int x, int y, int xangle, int yangle);
static void RenderString(float x, float y, void *font, const char* string);
static void arc(GLfloat x, GLfloat y, GLfloat r, int n, int s, int e);
static void circle(GLfloat x, GLfloat y, GLfloat r, int n);
static void rectangle(GLfloat x, GLfloat y, GLfloat width, GLfloat height);
static void line(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2, GLfloat thickness=5.0);
};
#endif /* IMAGE_LOADER_H_ */
|
73c0ed95eb86271e933b9f4b2296c72e082dc037
|
ef5293888c681e234c476aada1e234098008d849
|
/src/queryServer/corba/server/ServerInterface.cpp
|
40658f0e002a97387e857daf76ebb597ae4a0dce
|
[
"MIT"
] |
permissive
|
fmidev/smartmet-library-grid-content
|
5a76dcf35e0bda79ab2b8da3c524ff2a2361103e
|
71e4b24bab79a5f6238a163bb951091cac23f04e
|
refs/heads/master
| 2023-08-04T06:45:03.732347
| 2023-08-03T07:32:36
| 2023-08-03T07:32:36
| 91,444,640
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 3,521
|
cpp
|
ServerInterface.cpp
|
#include "ServerInterface.h"
#include "../convert/Converter.h"
#include "../../../contentServer/corba/convert/Converter.h"
#include <macgyver/Exception.h>
#include <grid-files/common/ShowFunction.h>
#define FUNCTION_TRACE FUNCTION_TRACE_OFF
namespace SmartMet
{
namespace QueryServer
{
namespace Corba
{
ServerInterface::ServerInterface()
{
FUNCTION_TRACE
try
{
mService = nullptr;
}
catch (...)
{
throw Fmi::Exception(BCP,"Operation failed!",nullptr);
}
}
ServerInterface::~ServerInterface()
{
FUNCTION_TRACE
try
{
}
catch (...)
{
Fmi::Exception exception(BCP,"Destructor failed",nullptr);
exception.printError();
}
}
void ServerInterface::init(QueryServer::ServiceInterface *service)
{
FUNCTION_TRACE
try
{
mService = service;
}
catch (...)
{
throw Fmi::Exception(BCP,"Operation failed!",nullptr);
}
}
::CORBA::Long ServerInterface::executeQuery(::CORBA::LongLong sessionId, SmartMet::QueryServer::Corba::CorbaQuery& query)
{
FUNCTION_TRACE
try
{
if (mService == nullptr)
throw Fmi::Exception(BCP,"Service not initialized!");
QueryServer::Query sQuery;
QueryServer::Corba::Converter::convert(query,sQuery);
int result = mService->executeQuery(sessionId,sQuery);
if (result == 0)
QueryServer::Corba::Converter::convert(sQuery,query);
return result;
}
catch (...)
{
Fmi::Exception exception(BCP,"Service call failed!",nullptr);
exception.printError();
return Result::UNEXPECTED_EXCEPTION;
}
}
::CORBA::Long ServerInterface::getProducerList(::CORBA::LongLong sessionId, SmartMet::QueryServer::Corba::CorbaStringList_out producerList)
{
FUNCTION_TRACE
try
{
if (mService == nullptr)
throw Fmi::Exception(BCP,"Service not initialized!");
string_vec sProducerList;
QueryServer::Corba::CorbaStringList *corbaProducerList = new QueryServer::Corba::CorbaStringList();
producerList = corbaProducerList;
int result = mService->getProducerList(sessionId,sProducerList);
if (result == 0)
QueryServer::Corba::Converter::convert(sProducerList,*producerList);
return result;
}
catch (...)
{
Fmi::Exception exception(BCP,"Service call failed!",nullptr);
//exception.printError();
return Result::UNEXPECTED_EXCEPTION;
}
}
::CORBA::Long ServerInterface::getValuesByGridPoint(::CORBA::LongLong sessionId, const SmartMet::ContentServer::Corba::CorbaContentInfoList& contentInfoList, ::CORBA::Octet coordinateType, ::CORBA::Double x, ::CORBA::Double y, ::CORBA::Short interpolationMethod, SmartMet::QueryServer::Corba::CorbaGridPointValueList_out valueList)
{
FUNCTION_TRACE
try
{
if (mService == nullptr)
throw Fmi::Exception(BCP,"Service not initialized!");
T::GridPointValueList sValueList;
T::ContentInfoList sContentInfoList;
QueryServer::Corba::CorbaGridPointValueList *corbaValueList = new QueryServer::Corba::CorbaGridPointValueList();
valueList = corbaValueList;
ContentServer::Corba::Converter::convert(contentInfoList,sContentInfoList);
int result = mService->getValuesByGridPoint(sessionId,sContentInfoList,coordinateType,x,y,(short)interpolationMethod,sValueList);
if (result == 0)
QueryServer::Corba::Converter::convert(sValueList,*valueList);
return result;
}
catch (...)
{
Fmi::Exception exception(BCP,"Service call failed!",nullptr);
//exception.printError();
return Result::UNEXPECTED_EXCEPTION;
}
}
}
}
}
|
70bdf0e4dbdf580eb36b12efdc09293a17ec0941
|
a65b1d944e0eff62c9a482238802ad62af3973c0
|
/WB/w2/w2t11.cpp
|
e9e1ad8995b4383e1102b6b588c909851e9b1cf8
|
[] |
no_license
|
vlasove/programming
|
8f632177c4e4752990495ca129838a9c4929254e
|
50993694eab22611c962f6be65d4501ed72cf23b
|
refs/heads/master
| 2020-09-29T05:24:11.283045
| 2019-12-14T21:19:08
| 2019-12-14T21:19:08
| 226,963,461
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 2,758
|
cpp
|
w2t11.cpp
|
#include <iostream>
#include <map>
#include <string>
using namespace std;
void ChangerCap(map<string, string> &grossbuch, string country, string new_capital)
{
if (grossbuch.count(country) == 0)
{
grossbuch[country] = new_capital;
cout << "Introduce new country " << country << " with capital " << new_capital << endl;
}
else if (grossbuch[country] == new_capital)
{
cout << "Country " << country << " hasn't changed its capital" << endl;
}
else
{
cout << "Country " << country << " has changed its capital from " << grossbuch[country] << " to " << new_capital << endl;
grossbuch[country] = new_capital;
}
}
void Renamer(map<string, string> &grossbuch, string oldName, string newName)
{
if (oldName == newName)
{
cout << "Incorrect rename, skip" << endl;
}
else if (grossbuch.count(oldName) == 0)
{
cout << "Incorrect rename, skip" << endl;
grossbuch.erase(oldName);
}
else if (grossbuch.count(newName) == 1)
{
cout << "Incorrect rename, skip" << endl;
}
else
{
cout << "Country " << oldName << " with capital " << grossbuch[oldName] << " has been renamed to " << newName << endl;
grossbuch[newName] = grossbuch[oldName];
grossbuch.erase(oldName);
}
}
void About(map<string, string> &grossbuch, string country)
{
if (grossbuch.count(country) == 0)
{
cout << "Country " << country << " doesn't exist" << endl;
grossbuch.erase(country);
}
else
{
cout << "Country " << country << " has capital " << grossbuch[country] << endl;
}
}
void Dump(const map<string, string> &grossbuch)
{
if (grossbuch.size() == 0)
{
cout << "There are no countries in the world" << endl;
}
else
{
for (auto p : grossbuch)
{
cout << p.first << "/" << p.second << " ";
}
cout << endl;
}
}
int main()
{
map<string, string> grossbuch;
int num;
cin >> num;
for (int i = 0; i < num; i++)
{
string command;
cin >> command;
if (command == "CHANGE_CAPITAL")
{
string country, new_capital;
cin >> country >> new_capital;
ChangerCap(grossbuch, country, new_capital);
}
else if (command == "RENAME")
{
string oldName, newName;
cin >> oldName >> newName;
Renamer(grossbuch, oldName, newName);
}
else if (command == "ABOUT")
{
string country;
cin >> country;
About(grossbuch, country);
}
else
{
Dump(grossbuch);
}
}
return 0;
}
|
b4a1744a09180d5d889211e31ccdfbf3bc794f45
|
587a987f72a6a0b366fdd52a611a56e10972491a
|
/LeetCode/300_最长上升子序列.cpp
|
04c5d8f71c6631c2bb0d1e90381279e00328e950
|
[] |
no_license
|
SeanCST/Algorithm_Problems
|
18e4115dfd8d6b51cef6fad90b537d989123d655
|
03f7de3e4717677967d8b11ed4d7f0285debdb61
|
refs/heads/master
| 2023-07-27T22:33:56.783638
| 2023-07-17T14:13:49
| 2023-07-17T14:13:49
| 144,162,747
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,681
|
cpp
|
300_最长上升子序列.cpp
|
class Solution {
public:
int lengthOfLIS(vector<int>& nums) {
vector<int> dp(nums.size(), 0);
int maxLen = 0;
for(int num : nums) {
int l = 0, r = maxLen;
while(l < r) {
int mid = l + (r - l) / 2;
if(dp[mid] < num) {
l = mid + 1;
} else {
r = mid;
}
}
dp[l] = num;
if(l == maxLen) {
maxLen++;
}
}
return maxLen;
}
};
class Solution {
public:
int lengthOfLIS(vector<int>& nums) {
int n = nums.size();
if(n == 0) {
return 0;
}
// vector<int> dp(n, 0);
// 有效区为 ends[0...right],无效区为 ends[right+1 ... N-1]
// 对有效区上的位置 b,如果有 ends[b] == c,表示遍历到目前为止,
// 在所有长度为 b+1 的递增序列中,最小的结尾数是 c
vector<int> ends(n, 0);
// dp[0] = 1;
ends[0] = nums[0];
int right = 0;
int l = 0, r = 0, m = 0;
int maxLen = 1;
for (int i = 1; i < n; i++) {
l = 0;
r = right;
while(l <= r) {
m = (l + r) / 2;
if(nums[i] > ends[m]){
l = m + 1;
} else {
r = m - 1;
}
}
right = max(right, l);
ends[l] = nums[i];
// dp[i] = l + 1;
// maxLen = max(maxLen, dp[i]);
maxLen = max(maxLen, l + 1);
}
return maxLen;
}
};
|
4bca293d06824518cfd2199948ef89356eb47fc1
|
6a6bad489b95f002485ce7b2d9ff2d09790f1536
|
/Branch/glPro/glPro/Camera/glFirstPersonCamera.h
|
baef426d559438a8396f3867adcdd041346922d7
|
[] |
no_license
|
yura84/rts-game-engine
|
d53f67ddac9346b31f7930dc2b928ee21d56d314
|
797523cc5bb8fd9e0d7942e4e97b2b9e9678f78b
|
refs/heads/master
| 2021-01-01T18:48:30.914812
| 2012-12-18T21:33:32
| 2012-12-18T21:33:32
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 916
|
h
|
glFirstPersonCamera.h
|
/*
* glFirstPersonCamera.h
*
* Created on: Mar 6, 2012
* Author: iurii
*/
#ifndef GLFIRSTPERSONCAMERA_H_
#define GLFIRSTPERSONCAMERA_H_
#include "glCamera.h"
#define WIDTH 800
#define HEIGHT 600
class glFirstPersonCamera : public glCamera{
private:
float angleX;
bool moving[4];
bool _jump;
float dt;
private:
void computePos(float deltaMove);
void computePosL(float deltaMove);
void computeDir(float deltaAngle);
void computeDirL(float deltaAngle);
public:
glFirstPersonCamera();
virtual ~glFirstPersonCamera();
virtual void Update(float dt);
virtual void moveForward();
virtual void moveBackward();
virtual void moveLeft();
virtual void moveRight();
void setMove(char type, bool value);
void moveTo();
void jump();
void mouseNavigate(int x, int y);
Vector3f GetPosition(void);
Vector3f GetAngle(void);
Vector3f GetView(void);
};
#endif /* GLFIRSTPERSONCAMERA_H_ */
|
7bf1969875d6b0204ff9d152b03da371a91351c0
|
5e7098aa1d4cac17873f77a626d95e97f2d5c07b
|
/new 32codejam-14-1.cpp
|
640a831dc9a5180a7dc0bcff1055393f182eec67
|
[] |
no_license
|
vartulbiet/uva
|
e73f82ae5f0b9d82baa9612be73322574919a91d
|
85d3328185cbf9df8b0e18a1902b27dcd6b6eb68
|
refs/heads/master
| 2016-09-03T07:13:04.510472
| 2015-07-09T06:52:42
| 2015-07-09T06:52:42
| 38,802,883
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,954
|
cpp
|
new 32codejam-14-1.cpp
|
#include<iostream>
#include<vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <string>
#include <queue>
#include <sstream>
#include <iostream>
#include<string.h>
#include <iomanip>
#include <cstdio>
#include<math.h>
#include <cmath>
#include <cstdlib>
#include <ctime>
#define ull unsigned long long
#define ll long long int
#define pi 3.141592653589793
#define ARRAY_SIZE(A) sizeof(A)/sizeof(A[0])
#define PB push_back
#define INF 1<<30
using namespace std;
ull count(ull y)
{
ull c =0;
while(y!=0)
{
if(y%2 ==1)
c++;
y=y/2;
}
return c;
}
string do_And(string in,ull y)
{
vector<ull>arr(in.size());
fill(arr.begin(),arr.end(),0);
ull yy =y;ull k =in.size()-1;
while(y!=0)
{
arr[k--] =y%2;
y=y/2;
}
string ans;
reverse(arr.begin(),arr.end());
for(ull i =0;i<arr.size();i++)
{
if(arr[i] ==1)
{
if(in[i] == '1')
ans.PB('0');
else
ans.PB('1');
}
else
ans.PB(in[i]);
}
return ans;
}
int main()
{
ull n =0;
cin>>n;
ull tc =1;
while(n--)
{
ull a,b;
cin>>a>>b;
vector<string>inp;
vector<string>out;
for(ull i =0;i<a;i++)
{
string x;
cin>>x;
inp.PB(x);
}
for(ull i =0;i<a;i++)
{
string x;
cin>>x;
out.PB(x);
}
ull ans =INF;
for(ll i =0;i<(1<<b);i++)
{
map<string,bool>temp;
for(ull j =0;j<a;j++)
{
string d = inp[j];
string y = do_And(d,i);
//cout<<d<<" "<<i<<" "<<y<<endl;
temp[y] = true;
}
bool bt =true;
for(ull j =0;j<a && bt;j++)
{
if(temp.find(out[j])==temp.end())
bt =false;
}
if(bt)
{
ans = i;
break;}
}
cout<<"Case #"<<tc++<<": ";
if(ans ==INF)
cout<<"NOT POSSIBLE"<<endl;
else
cout<<count(ans)<<endl;
}
return 0;
}
|
5f80dad8cd0a261fdc7510f5b42e11e2432c1432
|
dd9dd8e79b35cefdd36911117c2858f3248452f5
|
/src/test/objectstore/test_idempotent_sequence.cc
|
7cf31fa92984537b4bb55d361eb09cafd50cb616
|
[
"MIT"
] |
permissive
|
SrinivasaBharath/ceph-1
|
fed913cbf90c8d8ddffa156987d7b06464f19743
|
6a0747b6b79f5ca814afca6cefeb45f52fb9a509
|
refs/heads/master
| 2023-01-13T20:43:58.705726
| 2020-09-20T13:31:14
| 2020-09-20T13:31:14
| 298,234,477
| 0
| 0
|
MIT
| 2020-09-24T09:42:19
| 2020-09-24T09:42:18
| null |
UTF-8
|
C++
| false
| false
| 7,021
|
cc
|
test_idempotent_sequence.cc
|
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2012 New Dream Network
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software
* Foundation. See file COPYING.
*/
#include <stdio.h>
#include <string.h>
#include <iostream>
#include <sstream>
#include <time.h>
#include <stdlib.h>
#include "common/ceph_argparse.h"
#include "global/global_init.h"
#include "common/debug.h"
#include "os/filestore/FileStore.h"
#include "DeterministicOpSequence.h"
#include "FileStoreDiff.h"
#include "common/config.h"
#include "include/ceph_assert.h"
#define dout_context g_ceph_context
#define dout_subsys ceph_subsys_
#undef dout_prefix
#define dout_prefix *_dout << "test_idempotent_sequence "
void usage(const char *name, std::string command = "") {
ceph_assert(name != NULL);
std::string more = "cmd <args...>";
std::string diff = "diff <filestoreA> <journalA> <filestoreB> <journalB>";
std::string get_last_op = "get-last-op <filestore> <journal>";
std::string run_seq_to = "run-sequence-to <num-ops> <filestore> <journal>";
if (!command.empty()) {
if (command == "diff")
more = diff;
else if (command == "get-last-op")
more = get_last_op;
else if (command == "run-sequence-to")
more = run_seq_to;
}
std::cout << "usage: " << name << " " << more << " [options]" << std::endl;
std::cout << "\n\
Commands:\n\
" << diff << "\n\
" << get_last_op << "\n\
" << run_seq_to << "\n\
\n\
Global Options:\n\
-c FILE Read configuration from FILE\n\
--osd-data PATH Set OSD Data path\n\
--osd-journal PATH Set OSD Journal path\n\
--osd-journal-size VAL Set Journal size\n\
--help This message\n\
\n\
Test-specific Options:\n\
--test-seed VAL Seed to run the test\n\
--test-status-file PATH Path to keep the status file\n\
--test-num-colls VAL Number of collections to create on init\n\
--test-num-objs VAL Number of objects to create on init\n\
" << std::endl;
}
const char *our_name = NULL;
int seed = 0, num_txs = 100, num_colls = 30, num_objs = 0;
bool is_seed_set = false;
int verify_at = 0;
std::string status_file;
int run_diff(std::string& a_path, std::string& a_journal,
std::string& b_path, std::string& b_journal)
{
FileStore *a = new FileStore(g_ceph_context, a_path, a_journal, 0, "a");
FileStore *b = new FileStore(g_ceph_context, b_path, b_journal, 0, "b");
int ret = 0;
{
FileStoreDiff fsd(a, b);
if (fsd.diff()) {
dout(0) << "diff found an difference" << dendl;
ret = -1;
} else {
dout(0) << "no diff" << dendl;
}
}
delete a;
delete b;
return ret;
}
int run_get_last_op(std::string& filestore_path, std::string& journal_path)
{
FileStore *store = new FileStore(g_ceph_context, filestore_path,
journal_path);
int err = store->mount();
if (err) {
store->umount();
delete store;
return err;
}
vector<coll_t> cls;
store->list_collections(cls);
int32_t txn = 0;
for (auto cid : cls) {
ghobject_t txn_object = DeterministicOpSequence::get_txn_object(cid);
bufferlist bl;
auto ch = store->open_collection(cid);
store->read(ch, txn_object, 0, 100, bl);
int32_t t = 0;
if (bl.length()) {
auto p = bl.cbegin();
decode(t, p);
}
if (t > txn) {
txn = t;
}
}
store->umount();
delete store;
cout << txn << std::endl;
return 0;
}
int run_sequence_to(int val, std::string& filestore_path,
std::string& journal_path)
{
num_txs = val;
if (!is_seed_set)
seed = (int) time(NULL);
FileStore *store = new FileStore(g_ceph_context, filestore_path,
journal_path);
int err;
// mkfs iff directory dne
err = ::mkdir(filestore_path.c_str(), 0755);
if (err) {
cerr << filestore_path << " already exists" << std::endl;
store->umount();
delete store;
return err;
}
err = store->mkfs();
ceph_assert(err == 0);
err = store->mount();
ceph_assert(err == 0);
DeterministicOpSequence op_sequence(store, status_file);
op_sequence.init(num_colls, num_objs);
op_sequence.generate(seed, num_txs);
store->umount();
return 0;
}
int run_command(std::string& command, std::vector<std::string>& args)
{
if (command.empty()) {
usage(our_name);
exit(0);
}
/* We'll have a class that will handle the options, the command
* and its arguments. For the time being, and so we can move on, let's
* tolerate this big, ugly code.
*/
if (command == "diff") {
/* expect 4 arguments: (filestore path + journal path)*2 */
if (args.size() == 4) {
return run_diff(args[0], args[1], args[2], args[3]);
}
} else if (command == "get-last-op") {
/* expect 2 arguments: a filestore path + journal */
if (args.size() == 2) {
return run_get_last_op(args[0], args[1]);
}
} else if (command == "run-sequence-to") {
/* expect 3 arguments: # of operations and a filestore path + journal. */
if (args.size() == 3) {
return run_sequence_to(strtoll(args[0].c_str(), NULL, 10), args[1], args[2]);
}
} else {
std::cout << "unknown command " << command << std::endl;
usage(our_name);
exit(1);
}
usage(our_name, command);
exit(1);
}
int main(int argc, const char *argv[])
{
vector<const char*> args;
our_name = argv[0];
argv_to_vec(argc, argv, args);
auto cct = global_init(NULL, args,
CEPH_ENTITY_TYPE_CLIENT, CODE_ENVIRONMENT_UTILITY,
CINIT_FLAG_NO_DEFAULT_CONFIG_FILE);
common_init_finish(g_ceph_context);
g_ceph_context->_conf.apply_changes(nullptr);
std::string command;
std::vector<std::string> command_args;
for (std::vector<const char*>::iterator i = args.begin(); i != args.end();) {
string val;
if (ceph_argparse_double_dash(args, i)) {
break;
} else if (ceph_argparse_witharg(args, i, &val,
"--test-seed", (char*) NULL)) {
seed = strtoll(val.c_str(), NULL, 10);
is_seed_set = true;
} else if (ceph_argparse_witharg(args, i, &val,
"--test-num-colls", (char*) NULL)) {
num_colls = strtoll(val.c_str(), NULL, 10);
} else if (ceph_argparse_witharg(args, i, &val,
"--test-num-objs", (char*) NULL)) {
num_objs = strtoll(val.c_str(), NULL, 10);
} else if (ceph_argparse_witharg(args, i, &val,
"--test-status-file", (char*) NULL)) {
status_file = val;
} else if (ceph_argparse_flag(args, i, "--help", (char*) NULL)) {
usage(our_name);
exit(0);
} else {
if (command.empty())
command = *i++;
else
command_args.push_back(string(*i++));
}
}
int ret = run_command(command, command_args);
return ret;
}
|
d2621d60a2486f89dfd6ae9e1483ae1558046b23
|
17da681b73da0a2db1d0a15040f573834762ac32
|
/qt-everywhere-opensource-src-4.7.3/src/gui/kernel/qeventdispatcher_gix_p.h
|
e53237d2509cfb3de8d529635f5dac5d57805cf0
|
[] |
no_license
|
easion/GoogleCodeImport
|
652690592ad0e113ac60f807a937e50978cb3f64
|
e7648d4fa4543520012b6e47a1d2fefed6f22d81
|
refs/heads/master
| 2021-01-25T05:35:28.584058
| 2015-03-14T07:59:22
| 2015-03-14T07:59:22
| 32,141,682
| 1
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 645
|
h
|
qeventdispatcher_gix_p.h
|
#ifndef FEASOIFESWR
#define FEASOIFESWR
#include <private/qabstracteventdispatcher_p.h>
#include <private/qeventdispatcher_unix_p.h>
class QEventDispatcherGixPrivate;
class QEventDispatcherGix : public QEventDispatcherUNIX
{
//Q_OBJECT
Q_DECLARE_PRIVATE(QEventDispatcherGix)
public:
explicit QEventDispatcherGix(QObject *parent = 0);
~QEventDispatcherGix();
bool processEvents(QEventLoop::ProcessEventsFlags flags);
bool hasPendingEvents();
void flush();
void startingUp();
void closingDown();
protected:
int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
timeval *timeout);
};
#endif
|
6604650616ae23ed934cc0acf7249125aff2691e
|
29a739d31b1cd10fb81cc98e21e147407646bc6e
|
/chrome/browser/task_manager/task_manager_browsertest_util.cc
|
d5b0aca85f62da49dcc001b4c3a58aab8db54fb0
|
[
"BSD-3-Clause"
] |
permissive
|
nemare/chromium
|
f3aab188290fedeb112d653d0fb42c04e25c2285
|
b772275d9555449120cbc756bd11d0fceb4dd8cc
|
refs/heads/master
| 2023-03-18T14:53:06.697612
| 2016-05-10T15:52:41
| 2016-05-10T15:55:01
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 16,250
|
cc
|
task_manager_browsertest_util.cc
|
// Copyright (c) 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 "chrome/browser/task_manager/task_manager_browsertest_util.h"
#include "base/bind_helpers.h"
#include "base/command_line.h"
#include "base/location.h"
#include "base/memory/ptr_util.h"
#include "base/run_loop.h"
#include "base/single_thread_task_runner.h"
#include "base/strings/pattern.h"
#include "base/strings/string16.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/test_timeouts.h"
#include "base/thread_task_runner_handle.h"
#include "base/timer/timer.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/sessions/session_tab_helper.h"
#include "chrome/browser/task_management/task_manager_interface.h"
#include "chrome/browser/task_manager/resource_provider.h"
#include "chrome/browser/task_manager/task_manager.h"
#include "chrome/browser/ui/browser_dialogs.h"
#include "chrome/browser/ui/task_manager/task_manager_table_model.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/grit/generated_resources.h"
#include "extensions/strings/grit/extensions_strings.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/models/table_model_observer.h"
namespace task_manager {
namespace browsertest_util {
namespace {
// Returns whether chrome::ShowTaskManager() will, for the current platform and
// command line, show a view backed by a task_management::TaskManagerTableModel.
bool IsNewTaskManagerViewEnabled() {
#if defined(OS_MACOSX)
if (!chrome::ToolkitViewsDialogsEnabled())
return false;
#endif
return switches::NewTaskManagerEnabled();
}
// Temporarily intercepts the calls between a TableModel and its Observer,
// running |callback| whenever anything happens.
class ScopedInterceptTableModelObserver : public ui::TableModelObserver {
public:
ScopedInterceptTableModelObserver(
ui::TableModel* model_to_intercept,
ui::TableModelObserver* real_table_model_observer,
const base::Closure& callback)
: model_to_intercept_(model_to_intercept),
real_table_model_observer_(real_table_model_observer),
callback_(callback) {
model_to_intercept_->SetObserver(this);
}
~ScopedInterceptTableModelObserver() override {
model_to_intercept_->SetObserver(real_table_model_observer_);
}
// ui::TableModelObserver:
void OnModelChanged() override {
real_table_model_observer_->OnModelChanged();
callback_.Run();
}
void OnItemsChanged(int start, int length) override {
real_table_model_observer_->OnItemsChanged(start, length);
callback_.Run();
}
void OnItemsAdded(int start, int length) override {
real_table_model_observer_->OnItemsAdded(start, length);
callback_.Run();
}
void OnItemsRemoved(int start, int length) override {
real_table_model_observer_->OnItemsRemoved(start, length);
callback_.Run();
}
private:
ui::TableModel* model_to_intercept_;
ui::TableModelObserver* real_table_model_observer_;
base::Closure callback_;
};
} // namespace
// Implementation of TaskManagerTester for the 'new' TaskManager.
class TaskManagerTesterImpl : public TaskManagerTester {
public:
explicit TaskManagerTesterImpl(const base::Closure& on_resource_change)
: model_(GetRealModel()) {
// Eavesdrop the model->view conversation, since the model only supports
// single observation.
if (!on_resource_change.is_null()) {
interceptor_.reset(new ScopedInterceptTableModelObserver(
model_, model_->table_model_observer_, on_resource_change));
}
}
~TaskManagerTesterImpl() override {
CHECK_EQ(GetRealModel(), model_) << "Task Manager should not be hidden "
"while TaskManagerTester is alive. "
"This indicates a test bug.";
}
// TaskManagerTester:
int GetRowCount() override { return model_->RowCount(); }
base::string16 GetRowTitle(int row) override {
return model_->GetText(row, IDS_TASK_MANAGER_TASK_COLUMN);
}
void ToggleColumnVisibility(ColumnSpecifier column) override {
int column_id = 0;
switch (column) {
case COLUMN_NONE:
return;
case SQLITE_MEMORY_USED:
column_id = IDS_TASK_MANAGER_SQLITE_MEMORY_USED_COLUMN;
break;
case V8_MEMORY_USED:
case V8_MEMORY:
column_id = IDS_TASK_MANAGER_JAVASCRIPT_MEMORY_ALLOCATED_COLUMN;
break;
}
model_->ToggleColumnVisibility(column_id);
}
int64_t GetColumnValue(ColumnSpecifier column, int row) override {
task_management::TaskId task_id = model_->tasks_[row];
int64_t value = 0;
int64_t ignored = 0;
bool success = false;
switch (column) {
case COLUMN_NONE:
break;
case V8_MEMORY:
success = task_manager()->GetV8Memory(task_id, &value, &ignored);
break;
case V8_MEMORY_USED:
success = task_manager()->GetV8Memory(task_id, &ignored, &value);
break;
case SQLITE_MEMORY_USED:
value = task_manager()->GetSqliteMemoryUsed(task_id);
success = true;
break;
}
if (!success)
return 0;
return value;
}
int32_t GetTabId(int row) override {
task_management::TaskId task_id = model_->tasks_[row];
return task_manager()->GetTabId(task_id);
}
void Kill(int row) override { model_->KillTask(row); }
private:
task_management::TaskManagerInterface* task_manager() {
return model_->observed_task_manager();
}
// Returns the TaskManagerTableModel for the the visible NewTaskManagerView.
static task_management::TaskManagerTableModel* GetRealModel() {
CHECK(IsNewTaskManagerViewEnabled());
// This downcast is safe, as long as the new task manager is enabled.
task_management::TaskManagerTableModel* result =
static_cast<task_management::TaskManagerTableModel*>(
chrome::ShowTaskManager(nullptr));
return result;
}
task_management::TaskManagerTableModel* model_;
std::unique_ptr<ScopedInterceptTableModelObserver> interceptor_;
};
namespace {
class LegacyTaskManagerTesterImpl : public TaskManagerTester,
public TaskManagerModelObserver {
public:
explicit LegacyTaskManagerTesterImpl(const base::Closure& on_resource_change)
: on_resource_change_(on_resource_change),
model_(TaskManager::GetInstance()->model()) {
if (!on_resource_change_.is_null())
model_->AddObserver(this);
}
~LegacyTaskManagerTesterImpl() override {
if (!on_resource_change_.is_null())
model_->RemoveObserver(this);
}
// TaskManagerTester:
int GetRowCount() override { return model_->ResourceCount(); }
base::string16 GetRowTitle(int row) override {
return model_->GetResourceTitle(row);
}
int64_t GetColumnValue(ColumnSpecifier column, int row) override {
size_t value = 0;
bool success = false;
switch (column) {
case COLUMN_NONE:
break;
case V8_MEMORY:
success = model_->GetV8Memory(row, &value);
break;
case V8_MEMORY_USED:
success = model_->GetV8MemoryUsed(row, &value);
break;
case SQLITE_MEMORY_USED:
success = model_->GetSqliteMemoryUsedBytes(row, &value);
break;
}
if (!success)
return 0;
return static_cast<int64_t>(value);
}
void ToggleColumnVisibility(ColumnSpecifier column) override {
// Doing nothing is okay here; the legacy TaskManager always collects all
// stats.
}
int32_t GetTabId(int row) override {
if (model_->GetResourceWebContents(row)) {
return SessionTabHelper::IdForTab(model_->GetResourceWebContents(row));
}
return -1;
}
void Kill(int row) override { TaskManager::GetInstance()->KillProcess(row); }
// TaskManagerModelObserver:
void OnModelChanged() override { OnResourceChange(); }
void OnItemsChanged(int start, int length) override { OnResourceChange(); }
void OnItemsAdded(int start, int length) override { OnResourceChange(); }
void OnItemsRemoved(int start, int length) override { OnResourceChange(); }
private:
void OnResourceChange() {
if (!on_resource_change_.is_null())
on_resource_change_.Run();
}
base::Closure on_resource_change_;
TaskManagerModel* model_;
};
// Helper class to run a message loop until a TaskManagerTester is in an
// expected state. If timeout occurs, an ASCII version of the task manager's
// contents, along with a summary of the expected state, are dumped to test
// output, to assist debugging.
class ResourceChangeObserver {
public:
ResourceChangeObserver(int required_count,
const base::string16& title_pattern,
ColumnSpecifier column_specifier,
size_t min_column_value)
: required_count_(required_count),
title_pattern_(title_pattern),
column_specifier_(column_specifier),
min_column_value_(min_column_value) {
base::Closure callback = base::Bind(
&ResourceChangeObserver::OnResourceChange, base::Unretained(this));
if (IsNewTaskManagerViewEnabled())
task_manager_tester_.reset(new TaskManagerTesterImpl(callback));
else
task_manager_tester_.reset(new LegacyTaskManagerTesterImpl(callback));
}
void RunUntilSatisfied() {
// See if the condition is satisfied without having to run the loop. This
// check has to be placed after the installation of the
// TaskManagerModelObserver, because resources may change before that.
if (IsSatisfied())
return;
timer_.Start(FROM_HERE, TestTimeouts::action_timeout(), this,
&ResourceChangeObserver::OnTimeout);
run_loop_.Run();
// If we succeeded normally (no timeout), check our post condition again
// before returning control to the test. If it is no longer satisfied, the
// test is likely flaky: we were waiting for a state that was only achieved
// emphemerally), so treat this as a failure.
if (!IsSatisfied() && timer_.IsRunning()) {
FAIL() << "Wait condition satisfied only emphemerally. Likely test "
<< "problem. Maybe wait instead for the state below?\n"
<< DumpTaskManagerModel();
}
timer_.Stop();
}
private:
void OnResourceChange() {
if (!IsSatisfied())
return;
base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE,
run_loop_.QuitClosure());
}
bool IsSatisfied() { return CountMatches() == required_count_; }
int CountMatches() {
int match_count = 0;
for (int i = 0; i < task_manager_tester_->GetRowCount(); i++) {
if (!base::MatchPattern(task_manager_tester_->GetRowTitle(i),
title_pattern_))
continue;
if (GetColumnValue(i) < min_column_value_)
continue;
match_count++;
}
return match_count;
}
int64_t GetColumnValue(int index) {
return task_manager_tester_->GetColumnValue(column_specifier_, index);
}
const char* GetColumnName() {
switch (column_specifier_) {
case COLUMN_NONE:
return "N/A";
case V8_MEMORY:
return "V8 Memory";
case V8_MEMORY_USED:
return "V8 Memory Used";
case SQLITE_MEMORY_USED:
return "SQLite Memory Used";
}
return "N/A";
}
void OnTimeout() {
base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE,
run_loop_.QuitClosure());
FAIL() << "Timed out.\n" << DumpTaskManagerModel();
}
testing::Message DumpTaskManagerModel() {
testing::Message task_manager_state_dump;
task_manager_state_dump << "Waiting for exactly " << required_count_
<< " matches of wildcard pattern \""
<< base::UTF16ToASCII(title_pattern_) << "\"";
if (min_column_value_ > 0) {
task_manager_state_dump << " && [" << GetColumnName()
<< " >= " << min_column_value_ << "]";
}
task_manager_state_dump << "\nCurrently there are " << CountMatches()
<< " matches.";
task_manager_state_dump << "\nCurrent Task Manager Model is:";
for (int i = 0; i < task_manager_tester_->GetRowCount(); i++) {
task_manager_state_dump
<< "\n > " << std::setw(40) << std::left
<< base::UTF16ToASCII(task_manager_tester_->GetRowTitle(i));
if (min_column_value_ > 0) {
task_manager_state_dump << " [" << GetColumnName()
<< " == " << GetColumnValue(i) << "]";
}
}
return task_manager_state_dump;
}
std::unique_ptr<TaskManagerTester> task_manager_tester_;
const int required_count_;
const base::string16 title_pattern_;
const ColumnSpecifier column_specifier_;
const int64_t min_column_value_;
base::RunLoop run_loop_;
base::OneShotTimer timer_;
};
} // namespace
std::unique_ptr<TaskManagerTester> GetTaskManagerTester() {
if (IsNewTaskManagerViewEnabled())
return base::WrapUnique(new TaskManagerTesterImpl(base::Closure()));
else
return base::WrapUnique(new LegacyTaskManagerTesterImpl(base::Closure()));
}
void WaitForTaskManagerRows(int required_count,
const base::string16& title_pattern) {
const int column_value_dont_care = 0;
ResourceChangeObserver observer(required_count, title_pattern, COLUMN_NONE,
column_value_dont_care);
observer.RunUntilSatisfied();
}
void WaitForTaskManagerStatToExceed(const base::string16& title_pattern,
ColumnSpecifier column_getter,
size_t min_column_value) {
const int wait_for_one_match = 1;
ResourceChangeObserver observer(wait_for_one_match, title_pattern,
column_getter, min_column_value);
observer.RunUntilSatisfied();
}
base::string16 MatchTab(const char* title) {
return l10n_util::GetStringFUTF16(IDS_TASK_MANAGER_TAB_PREFIX,
base::ASCIIToUTF16(title));
}
base::string16 MatchAnyTab() {
return MatchTab("*");
}
base::string16 MatchAboutBlankTab() {
return MatchTab("about:blank");
}
base::string16 MatchExtension(const char* title) {
return l10n_util::GetStringFUTF16(IDS_TASK_MANAGER_EXTENSION_PREFIX,
base::ASCIIToUTF16(title));
}
base::string16 MatchAnyExtension() {
return MatchExtension("*");
}
base::string16 MatchApp(const char* title) {
return l10n_util::GetStringFUTF16(IDS_TASK_MANAGER_APP_PREFIX,
base::ASCIIToUTF16(title));
}
base::string16 MatchAnyApp() {
return MatchApp("*");
}
base::string16 MatchWebView(const char* title) {
return l10n_util::GetStringFUTF16(
IDS_EXTENSION_TASK_MANAGER_WEBVIEW_TAG_PREFIX, base::ASCIIToUTF16(title));
}
base::string16 MatchAnyWebView() {
return MatchWebView("*");
}
base::string16 MatchBackground(const char* title) {
return l10n_util::GetStringFUTF16(IDS_TASK_MANAGER_BACKGROUND_PREFIX,
base::ASCIIToUTF16(title));
}
base::string16 MatchAnyBackground() {
return MatchBackground("*");
}
base::string16 MatchPrint(const char* title) {
return l10n_util::GetStringFUTF16(IDS_TASK_MANAGER_PRINT_PREFIX,
base::ASCIIToUTF16(title));
}
base::string16 MatchAnyPrint() {
return MatchPrint("*");
}
base::string16 MatchSubframe(const char* title) {
return l10n_util::GetStringFUTF16(IDS_TASK_MANAGER_SUBFRAME_PREFIX,
base::ASCIIToUTF16(title));
}
base::string16 MatchAnySubframe() {
return MatchSubframe("*");
}
base::string16 MatchUtility(const base::string16& title) {
return l10n_util::GetStringFUTF16(IDS_TASK_MANAGER_UTILITY_PREFIX, title);
}
base::string16 MatchAnyUtility() {
return MatchUtility(base::ASCIIToUTF16("*"));
}
} // namespace browsertest_util
} // namespace task_manager
|
fc6c493192d9d52bafcda330b007af0426ced5a3
|
886d4aab75c1d77c2b979f7771f02aace66fb90b
|
/includes/Log.hpp
|
ccc6ffa1b214bb165ca4ccea028b44a67dd72e01
|
[] |
no_license
|
vccolombo/Gossip-membership-protocol
|
e004cb3a9bc41e1709327c5ab51db403991814a0
|
6e245a45ac856ad76ccde346864175bb31d4d5b0
|
refs/heads/master
| 2022-12-26T16:57:36.791762
| 2020-10-03T18:53:33
| 2020-10-03T18:59:46
| 286,344,320
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 293
|
hpp
|
Log.hpp
|
#pragma once
#include <fstream>
#include <string>
#include "Address.hpp"
#include "Config.hpp"
class Log {
static Log* instance;
std::ofstream file;
Log() { remove(Config::LOG_FILE.c_str()); }
public:
static Log* getInstance();
void write(std::string message);
};
|
9f5cff1273a370565933c529f546b2505f7a8680
|
1a51f078d58741b09a5386b056a9a269f7b91909
|
/project/MotorController/dk.ino
|
8925fc76ef8c5f2abf6d1548b8dd73d603d29792
|
[] |
no_license
|
quangnuce/cleanerbot
|
cb0abde3cf51b12e8786b9d6507659233e155bf4
|
af40cbfa5f825376003d745ccd94371526566a14
|
refs/heads/master
| 2020-04-10T03:48:44.898446
| 2019-06-29T11:54:17
| 2019-06-29T11:54:17
| 160,780,277
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,948
|
ino
|
dk.ino
|
#include "ros.h"
#include "geometry_msgs/Twist.h"
#include <math.h>
#define INA 3
#define INB 4
#define INC 5
#define IND 6
#define ENA 8
#define ENB 9
float HR;
float Va,Vb,V,V0;
ros::NodeHandle nh;
void velCallback( const geometry_msgs::Twist& vel_cmd)
{
V0 = vel_cmd.linear.x/0.15;
HR = vel_cmd.angular.z;
}
ros::Subscriber<geometry_msgs::Twist> sub("cmd_vel" , velCallback);
void setup()
{
nh.initNode();
nh.subscribe(sub);
pinMode(INA,OUTPUT);
pinMode(INB,OUTPUT);
pinMode(INC,OUTPUT);
pinMode(IND,OUTPUT);
}
void loop()
{
nh.spinOnce();
int Vmin=80;
float absHR=HR<0?-HR:HR;
if (absHR < 0.05) {
Va = Vb = V = V0 * (255 - Vmin) + Vmin;
}
if (absHR > 0.05) {
if (HR > 0) {
Va = V0 * (225 - Vmin) + Vmin;
Vb = Va * (1 - absHR);
}
else if (HR < 0) {
Vb = V0 * (225 - Vmin) + Vmin;
Va = Vb * (1 - absHR);
}
}
if (absHR < 0.05) {
digitalWrite(INA, HIGH);
digitalWrite(INC, HIGH);
digitalWrite(INB, LOW);
digitalWrite(IND, LOW);
analogWrite(ENA, Va);
analogWrite(ENB, Vb);
delay(1000);
}
if (absHR > 0.05) {
if (HR > 0) {
digitalWrite (INC, HIGH);
digitalWrite (INA, HIGH);
digitalWrite (INB, LOW);
digitalWrite (IND, LOW);
analogWrite(ENA, Va);
analogWrite(ENB, Vb);
delay (1000);
}
else if (HR < 0) {
digitalWrite (INC, HIGH);
digitalWrite (INA, HIGH);
digitalWrite (INB, LOW);
digitalWrite (IND, LOW);
analogWrite(ENA, Va);
analogWrite(ENB, Vb);
delay (1000);
}
Serial.print("Va: ");Serial.println(Va);
Serial.print("Vb: ");Serial.println(Vb);
}
char log_msg[50];
char str_va[6];
char str_vb[6];
dtostrf(Va, 4, 2, str_va);
dtostrf(Vb, 4, 2, str_vb);
sprintf(log_msg,"Va=%s,Vb=%s",str_va,str_vb);
nh.loginfo(log_msg);
}
|
f51efdf31f1014c8a7ae5b9d37316da4f63228ad
|
e03095f7e2ecc7e0e98d20ff55008e11e55d0d76
|
/error/NotParsedError.h
|
151bdd3dcafdbe8059866c20dc7f645f67bb1369
|
[] |
no_license
|
llylly/LapisParser
|
9f1f5c33b4a48cb19057d41e9b640f790049b0b3
|
06dab89b6df60b98ebe899cb27ea0f6990386724
|
refs/heads/master
| 2021-05-16T05:10:06.060115
| 2017-12-20T14:33:48
| 2017-12-20T14:33:48
| 106,280,804
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 456
|
h
|
NotParsedError.h
|
//
// Created by lly on 01/08/2017.
//
#ifndef VPARSER_NOTPARSEDERROR_H
#define VPARSER_NOTPARSEDERROR_H
#include "Error.h"
class NotParsedError: public Error {
public:
NotParsedError() {
this->fileName = "";
this->line = 1;
this->col = 1;
this->errorType = NOT_PARSED;
this->msg = "The Doc tree has not parsed to internal representation. The request is invalid.";
}
};
#endif //VPARSER_NOTPARSEDERROR_H
|
136473db1f9a99363f07a3d342b151e268786cde
|
3a35b302ac0355dd5911bdd5f93546fd22766ed2
|
/Library/GUI/WidgetList.h
|
cd6843955b8037084c3e58cb76753d5e582a87db
|
[] |
no_license
|
kyoichi001/sarashina-yako
|
86ec8e66e6a8d1b0751baf52bcdc29b9785b7419
|
bcf25a24bc21bff1b450d69e94376e3e2d7170ab
|
refs/heads/master
| 2023-02-01T21:08:27.135547
| 2020-12-16T02:36:52
| 2020-12-16T02:36:52
| 321,843,299
| 0
| 0
| null | null | null | null |
SHIFT_JIS
|
C++
| false
| false
| 2,296
|
h
|
WidgetList.h
|
#pragma once
#include "IWidget.h"
//#include "../../Class/Object/Effect/IEffect.h"
#include "../ObjectList/ObjectMap.h"
#include <string>
class IWidget;
class WidgetList {
protected:
std::unordered_map<std::string, std::unique_ptr<IWidget>> mMap;
IWidget* mBeforeWidget;
IWidget* mLastWidget;
public:
WidgetList()noexcept;
IWidget* push(IWidget* widget,bool selectableFlag=true)noexcept;
IWidget* push(const std::string& key, IWidget* widget, bool selectableFlag = true)noexcept;
IWidget* push(IWidget* widget, const std::string& up, const std::string& down = "", const std::string& left = "", const std::string& right="")noexcept;
IWidget* push(const std::string& key, IWidget* widget, const std::string& up, const std::string& down = "", const std::string& left = "", const std::string& right = "")noexcept;
void link(const std::string& key, const std::string& up, const std::string& down = "", const std::string& left = "", const std::string& right = "")noexcept;
void update()noexcept;
void draw()const noexcept;
int size() const noexcept { return mMap.size(); }
void foreach(void(*func)(IWidget*))noexcept;
bool empty()const noexcept { return mMap.empty(); }
void clear()noexcept { mMap.clear(); }
//キーが存在していない場合強制終了(自分で管理しろ)
IWidget* getWidget(const std::string& key)const noexcept{
if (mMap.empty()||key.empty())return nullptr;
return mMap.at(key).get();
}
template<typename T>
T& getWidget(const std::string& key)noexcept {
return *dynamic_cast<T*>(getWidget(key));
}
};
/*class WidgetList {
ObjectMap<std::string, IWidget> mMap;
IWidget* mBeforeWidget;
public:
WidgetList(){}
~WidgetList(){}
IWidget* push(IWidget* widget)noexcept { return nullptr; }
IWidget* push(const std::string& key, IWidget* widget)noexcept { return nullptr; }
void update()noexcept{}
void draw()const noexcept{}
int size() const noexcept { return 0; }
void foreach(void(*func)(IWidget*))noexcept{}
bool empty()noexcept { return false; }
//キーが存在していない場合強制終了(自分で管理しろ)
IWidget* getWidget(const std::string& key)const { return nullptr; }
template<typename T>
T& getWidget(const std::string& key)noexcept {
return *dynamic_cast<T*>(getWidget(key));
}
};*/
|
c80608b6ac4ced2c4f12a392f90b176e27d67e19
|
1fd457df5375342d8510a3b7f734f34d041051bd
|
/C++ Concepts/modular.cpp
|
b15dcf719c7573591f8d9d4bb4ba960153267419
|
[] |
no_license
|
kavyashree1903/DSA-course-by-abdul-bari
|
92b0befb84f1a6e1435a76fd12a10a59e0db13a4
|
ef6310fe3e3a819789c4d861a2678b4821276ece
|
refs/heads/master
| 2023-04-23T04:57:48.204796
| 2021-05-07T10:17:03
| 2021-05-07T10:17:03
| 323,089,073
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 435
|
cpp
|
modular.cpp
|
#include<iostream>
#include <stdio.h>
using namespace std;
int area(int length, int breadth){
return length*breadth;
}
int peri(int length, int breadth){
int p;
p=2*(length+breadth);
return p;
}
int main()
{
int length=0, breadth=0;
printf("Enter length and breadth");
cin>>length>>breadth;
int a=area(length, breadth);
int perimeter=peri(length, breadth);
printf("Area=%d\nPerimeter=%d\n",a,perimeter);
return 0;
}
|
b310120fec61ef6ed525dc24cc71d954dac8b3be
|
8c7689767a949ecec2f75c754b5a7f69e496c660
|
/inc/RayTracer_GPU.h
|
a5dc727f4dce85f736d2be9f653a0bf70e8d75dd
|
[] |
no_license
|
jwasinger/raytracer
|
d5951833ae35da8dbf67a2386ebfb2cc14616189
|
634ceb73e09578ab4d32afd7133ac3d823ce3131
|
refs/heads/master
| 2021-05-28T15:54:54.417656
| 2015-03-20T07:29:48
| 2015-03-20T07:29:48
| 16,874,125
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 2,438
|
h
|
RayTracer_GPU.h
|
#ifndef RAY_TRACER_H
#define RAY_TRACER_H
#include "Renderer.h"
#include "Vertex.h"
#include "log.h"
#define CS_OUTPUT_WIDTH 256
#define CS_OUTPUT_HEIGHT 256
#define LIGHT_DIRECTIONAL 1
#define LIGHT_POINT 0
namespace Core
{
struct Light
{
int type;
int padding[3];
Vector3 pos_direction;
};
struct Material
{
Vector3 ambient_color;
float ambient_intensity;
float reflectivity;
Vector3 padding;
};
struct Sphere
{
Vector3 pos;
float radius;
int material_index;
};
struct Plane
{
Vector3 v1;
float padding;
Vector3 v2;
float padding1;
int material_index;
};
struct RayTracerParams
{
float epsilon;
Vector3 padding1;
Vector4 bgr_color;
int num_spheres;
int padding2[3];
int num_materials;
int padding3[3];
int num_planes;
int padding4[3];
int num_lights;
int padding5[3];
};
HRESULT CreateStructuredBuffer(
ID3D11Device *device,
UINT element_size,
UINT count,
void *initial_data,
ID3D11Buffer **out);
HRESULT CreateStructuredBufferSRV(
ID3D11Device *device,
UINT element_size,
UINT element_count,
ID3D11Buffer *resource,
ID3D11ShaderResourceView **out_srv);
class RayTracer
{
private:
Renderer *renderer = NULL;
ID3D11Texture2D *compute_output = NULL;
ID3D11Buffer *quadVBuffer = NULL;
ID3D11UnorderedAccessView *output_uav = NULL;
ID3D11ShaderResourceView *compute_output_view = NULL;
ID3D11ComputeShader *ray_tracer_shader = NULL;
Matrix view;
bool has_view = false;
RayTracerParams params;
ID3D11Buffer *params_c_buffer = NULL;
TexturedVertex vertices[6];
Sphere spheres[16];
Material materials[16];
Plane planes[16];
Light lights[16];
bool needUpdateBuffers = false;
ID3D11Buffer *plane_structured_buffer = NULL;
ID3D11Buffer *material_structured_buffer = NULL;
ID3D11Buffer *sphere_structured_buffer = NULL;
ID3D11Buffer *light_structured_buffer = NULL;
ID3D11ShaderResourceView *plane_buf_srv = NULL;
ID3D11ShaderResourceView *material_buf_srv = NULL;
ID3D11ShaderResourceView *sphere_buf_srv = NULL;
ID3D11ShaderResourceView *light_buf_srv = NULL;
public:
RayTracer(Renderer *renderer);
bool Init(void);
void Run(void);
void Render(void);
void AddSphere(Sphere s);
int AddMaterial(Material m);
void AddPlane(Plane p);
void AddLight(Light l);
void SetViewTransform(Matrix m);
private:
bool createCS(void);
void updateBuffers(void);
};
}
#endif
|
cd22ab88412c992ca9c9fd59f4a9680cd94b4e2f
|
ddbabd0ef940e4d7389f7b14e292981b414272ce
|
/codec_test/NullCodec.cpp
|
69cf6c8e7e6cf640ef3ea5a455f091867032ae10
|
[] |
no_license
|
miuk/dsp
|
04e2871c4cacd91ba32666befe3cf69b25dd3d7f
|
dfd1ac0deb9297f633167afdbe46775b51f6a2f5
|
refs/heads/master
| 2020-12-24T16:31:46.987865
| 2019-09-13T01:38:53
| 2019-09-13T01:38:53
| 15,839,210
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,440
|
cpp
|
NullCodec.cpp
|
#include "NullCodec.hxx"
#include "wav.hxx"
#include <string.h>
#include <iostream>
using namespace std;
NullCodec::NullCodec(void)
{
hz = 0;
type = WAVFmt::Type_pcm;
frame_size = 0;
}
const char*
NullCodec::getName(void) const
{
static const char* name = "Null";
return name;
}
void
NullCodec::init(void)
{
}
int
NullCodec::getFrameSize(void)
{
int ptime = pls->getPtime();
return frame_size * (ptime / 20);
}
void
NullCodec::clear(void)
{
}
int
NullCodec::encode(const int16_t* src, int srclen, char* dst)
{
int dstlen = sizeof(*src) * srclen;
memcpy(dst, src, dstlen);
return dstlen;
}
int
NullCodec::decode(const char* src, int srclen, int16_t* dst)
{
int dstlen = srclen / sizeof(*dst);
memcpy(dst, src, srclen);
return dstlen;
}
int
NullCodec::codec(const int16_t* src, int srclen, int16_t* dst, int& bps)
{
int n = srclen / frame_size;
int len = sizeof(int16_t) * frame_size;
const int16_t* src_pos = src;
int16_t* dst_pos = dst;
int nf = pls->getPtime() / 20;
bool bLost = false;
for (int i = 0; i < n; i++) {
if (i % nf == 0)
bLost = pls->isLost();
if (bLost)
memset(dst_pos, 0, len);
else
memcpy(dst_pos, src_pos, len);
src_pos += frame_size;
dst_pos += frame_size;
}
bps = hz * 8;
if (type != WAVFmt::Type_mulaw)
bps *= 2;
return srclen;
}
|
4898274ef70fd913ec5c5548c2b537f6c31e4cb4
|
ad6b1f83e5a8d6d6723a0d6e6a9e45fcb76826b2
|
/Codeforces/307_2/contest.cpp
|
dd5e01aaad65a180133ce93c71363b81572a1988
|
[] |
no_license
|
VibhorKanojia/Programming
|
3201b75886eb106cbc528f8b9ce9358b6af1584c
|
b677833dee2bd67b2683e692212b40b562b66d75
|
refs/heads/master
| 2021-03-27T08:42:53.672396
| 2015-09-11T19:12:56
| 2015-09-11T19:12:56
| 24,784,698
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 732
|
cpp
|
contest.cpp
|
#include <bits/stdc++.h>
using namespace std;
bool compareFunction(int a, int b){
if (a > b) return 1;
else return 0;
}
int main(){
ios::sync_with_stdio(false);
int n;
cin >> n;
int array[n];
int sort_array[n];
for (int i = 0 ; i < n ; i++){
cin >> array[i];
sort_array[i] = array[i];
}
sort(sort_array, sort_array+n, compareFunction);
int rankArray[2001];
int rank = 1;
int val = sort_array[0];
rankArray[val] = rank;
for (int i = 1 ; i < n ; i++){
int cur_val = sort_array[i];
rank++;
if (cur_val != val){
rankArray[cur_val]=rank;
val = cur_val;
}
}
for (int i = 0 ; i < n ; i++){
cout<<rankArray[array[i]]<<" ";
}
cout<<endl;
return 0;
}
|
487d979c1fc59d0d5fb1990e857228b782cb377d
|
dbcf311d97da672c49f2753cf927ec4eb93b5fc0
|
/cpp01/ex03/ZombieHorde.hpp
|
94adba92b7a445ad82b4c4c0e6a84924d3d05843
|
[] |
no_license
|
ekmbcd/Cpp_Piscine
|
fdbcd5b408ecba504e328f143caf9146fef838b6
|
b8d4123229f362e0e50acc65020f1ded8d3d073a
|
refs/heads/main
| 2023-05-01T06:05:11.494469
| 2021-05-12T16:20:22
| 2021-05-12T16:20:22
| 361,516,339
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 298
|
hpp
|
ZombieHorde.hpp
|
#ifndef ZOMBIEHORDE_HPP
# define ZOMBIEHORDE_HPP
# include <string>
# include <iostream>
# include <stdlib.h>
# include <time.h>
# include "Zombie.hpp"
class ZombieHorde
{
public:
ZombieHorde(int N);
~ZombieHorde();
void announce() const;
private:
Zombie* _zombies;
int _n;
};
#endif
|
8922229a8da630ad29c0949c79dc62f51aa5fef5
|
05b0c763ab92086e69a8d00ae6465009c596f6bc
|
/csrc/cpu/aten/FlashAttention.h
|
8e8e39b908a48fb4b89bbf16c2c549e6868048eb
|
[
"Apache-2.0"
] |
permissive
|
intel/intel-extension-for-pytorch
|
60ce2af2ec3a1dacae0d0db13dd51a5b44512e61
|
7f9266789de7ca9d8bcf55606f3204f1a3640640
|
refs/heads/master
| 2023-09-01T09:13:16.866410
| 2023-08-31T08:00:37
| 2023-08-31T08:00:37
| 256,061,008
| 991
| 144
|
Apache-2.0
| 2023-08-13T13:56:07
| 2020-04-15T23:35:29
|
Python
|
UTF-8
|
C++
| false
| false
| 577
|
h
|
FlashAttention.h
|
#pragma once
#include <ATen/ATen.h>
#include <dyndisp/DispatchStub.h>
namespace torch_ipex {
namespace cpu {
namespace {
at::Tensor flash_attention(
at::Tensor query,
at::Tensor key,
at::Tensor value,
const double scale_attn,
at::Tensor attention_mask);
}
using flash_attention_kernel_fn = at::Tensor (*)(
at::Tensor query,
at::Tensor key,
at::Tensor value,
const double scale_attn,
at::Tensor attention_mask);
DECLARE_DISPATCH(flash_attention_kernel_fn, flash_attention_kernel_stub);
} // namespace cpu
} // namespace torch_ipex
|
e1ab0f3a944a42d4d58a6fa1aabbaafc5d61d7af
|
2a5db4d9e51d29445f72d1ffd3f98609523b082d
|
/media-driver/media_driver/agnostic/common/cm/cm_surface.cpp
|
79d57b0600214b887359fb17493a9d146ca4170b
|
[
"BSD-3-Clause",
"MIT"
] |
permissive
|
mintaka33/media
|
19f26239aee1d889860867a536024ffc137c2776
|
4ab1435ef3b3269ff9c0fa71072c3f81275a4b9d
|
refs/heads/master
| 2021-05-11T04:01:48.314310
| 2018-02-02T03:43:36
| 2018-02-02T03:43:36
| 117,930,190
| 0
| 1
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 11,052
|
cpp
|
cm_surface.cpp
|
/*
* Copyright (c) 2017, Intel Corporation
*
* 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.
*/
//!
//! \file cm_surface.cpp
//! \brief Contains Class CmSurface definitions
//!
#include "cm_surface.h"
#include "cm_device_rt.h"
#include "cm_event_rt.h"
#include "cm_hal.h"
#include "cm_mem.h"
#include "cm_queue_rt.h"
#include "cm_surface_manager.h"
namespace CMRT_UMD
{
//*-----------------------------------------------------------------------------
//| Purpose: Destory CmSurface
//| Returns: Result of the operation.
//*-----------------------------------------------------------------------------
int32_t CmSurface::Destroy( CmSurface* &pSurface )
{
CmSafeDelete( pSurface );
return CM_SUCCESS;
}
//*-----------------------------------------------------------------------------
//| Purpose: Constructor of CmSurface
//| Returns: Result of the operation.
//*-----------------------------------------------------------------------------
CmSurface::CmSurface( CmSurfaceManager* surfMgr ,bool isCmCreated):
m_pIndex( nullptr ),
m_SurfaceMgr( surfMgr ),
m_IsCmCreated (isCmCreated)
{
}
//*-----------------------------------------------------------------------------
//| Purpose: Destructor of CmSurface
//| Returns: Result of the operation.
//*-----------------------------------------------------------------------------
CmSurface::~CmSurface( void )
{
MosSafeDelete(m_pIndex);
}
//*-----------------------------------------------------------------------------
//| Purpose: Initialize CmSurface
//| Returns: Result of the operation.
//*-----------------------------------------------------------------------------
int32_t CmSurface::Initialize( uint32_t index )
{
// using CM compiler data structure
m_pIndex = MOS_New(SurfaceIndex, index);
if( m_pIndex )
{
return CM_SUCCESS;
}
else
{
return CM_OUT_OF_HOST_MEMORY;
}
}
//*-----------------------------------------------------------------------------
//| Purpose: Flush the task, once flushed, lock will untill the task finishes
//| the execution of kernels upon the surface
//| Returns: Result of the operation.
//*-----------------------------------------------------------------------------
int32_t CmSurface::FlushDeviceQueue( CmEventRT* pEvent )
{
if( pEvent == nullptr )
{
CM_ASSERTMESSAGE("Error: Pointer to CM event is null.")
return CM_FAILURE;
}
CmDeviceRT* pCmDev = nullptr;
m_SurfaceMgr->GetCmDevice( pCmDev );
CM_ASSERT( pCmDev );
//Used for timeout detection
CmQueueRT* pCmQueue = nullptr;
pEvent->GetQueue(pCmQueue);
uint32_t num_tasks;
pCmQueue->GetTaskCount(num_tasks);
LARGE_INTEGER freq;
MOS_QueryPerformanceFrequency((uint64_t*)&freq.QuadPart);
LARGE_INTEGER start;
MOS_QueryPerformanceCounter((uint64_t*)&start.QuadPart);
int64_t timeout = start.QuadPart + (CM_MAX_TIMEOUT * freq.QuadPart * num_tasks); //Count to timeout at
CM_STATUS status;
pEvent->GetStatusNoFlush( status );
// Not necessary CM_STATUS_FINISHED, once flushed, lock will waiti
// untill the task finishes the execution of kernels upon the surface
//while( ( status != CM_STATUS_FLUSHED ) &&
// ( status != CM_STATUS_FINISHED ) &&
// ( status != CM_STATUS_STARTED ) )
while( status == CM_STATUS_QUEUED )
{
LARGE_INTEGER current;
MOS_QueryPerformanceCounter((uint64_t*)¤t.QuadPart);
if( current.QuadPart > timeout )
return CM_EXCEED_MAX_TIMEOUT;
pEvent->GetStatusNoFlush( status );
}
return CM_SUCCESS;
}
int32_t CmSurface::TouchDeviceQueue()
{
CmDeviceRT* pCmDev = nullptr;
m_SurfaceMgr->GetCmDevice(pCmDev);
CM_ASSERT(pCmDev);
std::vector<CmQueueRT *> &pCmQueue = pCmDev->GetQueue();
CSync *lock = pCmDev->GetQueueLock();
lock->Acquire();
for (auto iter = pCmQueue.begin(); iter != pCmQueue.end(); iter++)
{
int32_t result = (*iter)->TouchFlushedTasks();
if (FAILED(result))
{
lock->Release();
return result;
}
}
lock->Release();
return CM_SUCCESS;;
}
int32_t CmSurface::WaitForReferenceFree()
{
// Make sure the surface is not referenced any more
int32_t * pSurfState = nullptr;
m_SurfaceMgr->GetSurfaceState(pSurfState);
while (pSurfState[m_pIndex->get_data()])
{
if (FAILED(TouchDeviceQueue()))
{
CM_ASSERTMESSAGE("Error: Failed to touch device queue.")
return CM_FAILURE;
};
};
return CM_SUCCESS;
}
bool CmSurface::MemoryObjectCtrlPolicyCheck(MEMORY_OBJECT_CONTROL memCtrl)
{
if (memCtrl == MEMORY_OBJECT_CONTROL_UNKNOW)
{
return true;
}
CmDeviceRT* pCmDevice = nullptr;
m_SurfaceMgr->GetCmDevice(pCmDevice);
if(pCmDevice == nullptr)
{
return false;
}
PCM_HAL_STATE pCmHalState = ((PCM_CONTEXT_DATA)pCmDevice->GetAccelData())->cmHalState;
if (pCmHalState == nullptr)
{
return false;
}
return pCmHalState->pCmHalInterface->MemoryObjectCtrlPolicyCheck(memCtrl);
}
int32_t CmSurface::SetMemoryObjectControl(MEMORY_OBJECT_CONTROL mem_ctrl, MEMORY_TYPE mem_type, uint32_t age)
{
if (!MemoryObjectCtrlPolicyCheck(mem_ctrl))
{
return CM_FAILURE;
}
m_MemObjCtrl.mem_ctrl = mem_ctrl;
m_MemObjCtrl.mem_type = mem_type;
m_MemObjCtrl.age= age;
return CM_SUCCESS;
}
std::string CmSurface::GetFormatString(CM_SURFACE_FORMAT format)
{
switch (format)
{
case CM_SURFACE_FORMAT_A8R8G8B8: return "argb";
case CM_SURFACE_FORMAT_X8R8G8B8: return "xrgb";
case CM_SURFACE_FORMAT_A8B8G8R8: return "abgr";
case CM_SURFACE_FORMAT_A8: return "a8";
case CM_SURFACE_FORMAT_P8: return "p8";
case CM_SURFACE_FORMAT_R32F: return "r32f";
case CM_SURFACE_FORMAT_NV12: return "nv12";
case CM_SURFACE_FORMAT_P016: return "p016";
case CM_SURFACE_FORMAT_P010: return "p010";
case CM_SURFACE_FORMAT_V8U8: return "v8u8";
case CM_SURFACE_FORMAT_A8L8: return "a8l8";
case CM_SURFACE_FORMAT_D16: return "d16";
case CM_SURFACE_FORMAT_A16B16G16R16F: return "argb16f";
case CM_SURFACE_FORMAT_R10G10B10A2: return "r10g10b10a2";
case CM_SURFACE_FORMAT_A16B16G16R16: return "argb16";
case CM_SURFACE_FORMAT_IRW0: return "irw0";
case CM_SURFACE_FORMAT_IRW1: return "irw1";
case CM_SURFACE_FORMAT_IRW2: return "irw2";
case CM_SURFACE_FORMAT_IRW3: return "irw3";
case CM_SURFACE_FORMAT_R32_SINT: return "r32s";
case CM_SURFACE_FORMAT_R16_FLOAT: return "r16f";
case CM_SURFACE_FORMAT_A8P8: return "a8p8";
case CM_SURFACE_FORMAT_I420: return "i420";
case CM_SURFACE_FORMAT_IMC3: return "imc3";
case CM_SURFACE_FORMAT_IA44: return "ia44";
case CM_SURFACE_FORMAT_AI44: return "ai44";
case CM_SURFACE_FORMAT_Y410: return "y410";
case CM_SURFACE_FORMAT_Y416: return "y416";
case CM_SURFACE_FORMAT_Y210: return "y210";
case CM_SURFACE_FORMAT_Y216: return "y216";
case CM_SURFACE_FORMAT_AYUV: return "ayuv";
case CM_SURFACE_FORMAT_YV12: return "yv12";
case CM_SURFACE_FORMAT_400P: return "400p";
case CM_SURFACE_FORMAT_411P: return "411p";
case CM_SURFACE_FORMAT_411R: return "411r";
case CM_SURFACE_FORMAT_422H: return "422h";
case CM_SURFACE_FORMAT_422V: return "422v";
case CM_SURFACE_FORMAT_444P: return "444p";
case CM_SURFACE_FORMAT_RGBP: return "rgbp";
case CM_SURFACE_FORMAT_BGRP: return "bgrp";
case CM_SURFACE_FORMAT_R8_UINT: return "r8u";
case CM_SURFACE_FORMAT_R32_UINT: return "r32u";
case CM_SURFACE_FORMAT_R16_SINT: return "r16s";
case CM_SURFACE_FORMAT_R16_UNORM: return "r16un";
case CM_SURFACE_FORMAT_R8G8_UNORM: return "r8g8un";
case CM_SURFACE_FORMAT_R16_UINT: return "r16u";
case CM_SURFACE_FORMAT_R16G16_UNORM: return "r16g16un";
case CM_SURFACE_FORMAT_L16: return "l16";
case CM_SURFACE_FORMAT_YUY2: return "yuy2";
case CM_SURFACE_FORMAT_L8: return "l8";
case CM_SURFACE_FORMAT_UYVY: return "uyvy";
case CM_SURFACE_FORMAT_VYUY: return "vyuy";
case CM_SURFACE_FORMAT_R8G8_SNORM: return "r8g8sn";
case CM_SURFACE_FORMAT_Y16_SNORM: return "y16sn";
case CM_SURFACE_FORMAT_Y16_UNORM: return "y16un";
case CM_SURFACE_FORMAT_Y8_UNORM: return "y8un";
case CM_SURFACE_FORMAT_BUFFER_2D: return "buffer2d";
case CM_SURFACE_FORMAT_D32F: return "d32f";
case CM_SURFACE_FORMAT_D24_UNORM_S8_UINT: return "d24uns8ui";
case CM_SURFACE_FORMAT_D32F_S8X24_UINT: return "d32fs8x24ui";
case CM_SURFACE_FORMAT_R16G16_SINT: return "r16g16si";
case CM_SURFACE_FORMAT_R16_TYPELESS: return "r16";
case CM_SURFACE_FORMAT_R24G8_TYPELESS: return "r24g8";
case CM_SURFACE_FORMAT_R32_TYPELESS: return "r32";
case CM_SURFACE_FORMAT_R32G8X24_TYPELESS: return "r32g8x24";
default: return "Invalid";
}
}
}
|
d8566a430b1c88e1d414f4a0749772fe4ec6407b
|
d14853c465ede75b0f18f3ee59654310580e2551
|
/editor/old_wx_editor/dlgAbout.cpp
|
03cd3bb6d5600aceb88524f1b09808d20a01a6f9
|
[] |
no_license
|
k3a/Panther3D-2
|
dec2f4ef742c1b57da1f17e2b55c39d471e0309a
|
f906796e331d70ac963d0b899c4c83c50b71cdc0
|
refs/heads/master
| 2021-01-10T22:23:02.226127
| 2014-11-08T21:31:46
| 2014-11-08T21:31:46
| null | 0
| 0
| null | null | null | null |
WINDOWS-1252
|
C++
| false
| false
| 561
|
cpp
|
dlgAbout.cpp
|
/* Panther3D Engine © 2004-2008 Reversity Studios (www.reversity.org)
* This contents may be used and/or copied only with the written permission or
* terms and conditions stipulated in agreement/contract.
-----------------------------------------------------------------------------
Authors: kexik
*/
#include "precompiled.h"
#include "dlgAbout.h"
namespace P3D
{
dlgAbout::dlgAbout( wxWindow* parent )
:
dlgAboutGui( parent )
{
}
void dlgAbout::OnClose( wxCommandEvent& event )
{
this->Destroy();
//delete this;
}
}
|
9e9423bee98a0e58eac68a6dcff11a9255a7d3ae
|
64d7cc6e293d9f06f4f31f444a64d74420ef7b65
|
/inet/src/linklayer/common/MACBase.cc
|
8d9d46d98748140f566ba430c860bdc58a520a50
|
[] |
no_license
|
floxyz/veins-lte
|
73ab1a1034c4f958177f72849ebd5b5ef6e5e4db
|
23c9aa10aa5e31c6c61a0d376b380566e594b38d
|
refs/heads/master
| 2021-01-18T02:19:59.365549
| 2020-11-16T06:05:49
| 2020-11-16T06:05:49
| 27,383,107
| 19
| 12
| null | 2016-10-26T06:05:52
| 2014-12-01T14:31:19
|
C++
|
UTF-8
|
C++
| false
| false
| 3,884
|
cc
|
MACBase.cc
|
//
// Copyright (C) 2013 Opensim Ltd.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser 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 Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this program; if not, see <http://www.gnu.org/licenses/>.
//
// Author: Andras Varga (andras@omnetpp.org)
//
#include "MACBase.h"
#include "NodeStatus.h"
#include "NotifierConsts.h"
#include "InterfaceEntry.h"
#include "IInterfaceTable.h"
#include "InterfaceTableAccess.h"
#include "NodeOperations.h"
#include "ModuleAccess.h"
#include "NotificationBoard.h"
MACBase::MACBase()
{
hostModule = NULL;
nb = NULL;
interfaceEntry = NULL;
isOperational = false;
}
MACBase::~MACBase()
{
}
void MACBase::initialize(int stage)
{
cSimpleModule::initialize(stage);
if (stage == 0)
{
hostModule = findContainingNode(this);
nb = NotificationBoardAccess().getIfExists();
}
else if (stage == 1)
{
if (nb)
nb->subscribe(this, NF_INTERFACE_DELETED);
}
if (stage == numInitStages()-1)
{
if (stage < 1)
throw cRuntimeError("Required minimum value of numInitStages is 2");
updateOperationalFlag(isNodeUp()); // needs to be done when interface is already registered (=last stage)
}
}
bool MACBase::handleOperationStage(LifecycleOperation *operation, int stage, IDoneCallback *doneCallback)
{
Enter_Method_Silent();
if (dynamic_cast<NodeStartOperation *>(operation))
{
if (stage == NodeStartOperation::STAGE_LINK_LAYER) {
updateOperationalFlag(true);
}
}
else if (dynamic_cast<NodeShutdownOperation *>(operation))
{
if (stage == NodeShutdownOperation::STAGE_LINK_LAYER) {
updateOperationalFlag(false);
flushQueue();
}
}
else if (dynamic_cast<NodeCrashOperation *>(operation))
{
if (stage == NodeCrashOperation::STAGE_CRASH) {
updateOperationalFlag(false);
clearQueue();
}
}
else
{
throw cRuntimeError("Unsupported operation '%s'", operation->getClassName());
}
return true;
}
void MACBase::receiveChangeNotification(int category, const cObject *details)
{
if (category == NF_INTERFACE_DELETED)
{
if (interfaceEntry == check_and_cast<const InterfaceEntry *>(details))
interfaceEntry = NULL;
}
}
bool MACBase::isNodeUp()
{
NodeStatus *nodeStatus = dynamic_cast<NodeStatus *>(hostModule->getSubmodule("status"));
return !nodeStatus || nodeStatus->getState() == NodeStatus::UP;
}
void MACBase::updateOperationalFlag(bool isNodeUp)
{
isOperational = isNodeUp; // TODO and interface is up, too
}
void MACBase::registerInterface() //XXX registerInterfaceIfInterfaceTableExists() ???
{
ASSERT(interfaceEntry == NULL);
IInterfaceTable *ift = InterfaceTableAccess().getIfExists();
if (ift) {
interfaceEntry = createInterfaceEntry();
ift->addInterface(interfaceEntry);
}
}
void MACBase::handleMessageWhenDown(cMessage *msg)
{
if (isUpperMsg(msg) || msg->isSelfMessage()) { //FIXME remove 1st part -- it is not possible to ensure that no msg is sent by upper layer (race condition!!!)
throw cRuntimeError("Message received from higher layer while interface is off");
}
else {
EV << "Interface is turned off, dropping packet\n";
delete msg;
}
}
|
8581c5d70019de177fa84fdaf11d420bf74ce97f
|
b4d2b42f94c72842ef8334ea3b763e56a1fb317f
|
/benchmark/hash_table_benchmark.cpp
|
a255953fa7a6676abc45488c3702c7f44f2fec14
|
[
"MIT"
] |
permissive
|
codingpotato/Lox-modern-cpp
|
8194654b054c021e8103b0adfd22bb5606270600
|
7ddc0edb95ea171a3dc0baf33ddaab1aeb3a34c5
|
refs/heads/master
| 2020-12-04T21:51:26.334972
| 2020-05-17T09:46:30
| 2020-05-17T09:46:30
| 231,911,761
| 13
| 6
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 806
|
cpp
|
hash_table_benchmark.cpp
|
#include <benchmark/benchmark.h>
#include <memory>
#include "hash_table.h"
#include "object.h"
static void hash_table(benchmark::State& state) {
while (state.KeepRunning()) {
lox::Hash_table table;
std::vector<std::unique_ptr<lox::String>> strings;
for (auto i = 0; i < 100; ++i) {
strings.emplace_back(
std::make_unique<lox::String>("test string " + std::to_string(i)));
}
for (std::size_t i = 0; i < strings.size(); ++i) {
table.insert(strings[i].get(), lox::Value{static_cast<double>(i)});
}
double result = 0;
for (std::size_t i = 0; i < strings.size(); ++i) {
if (auto value = table.get_if(strings[i].get()); value != nullptr) {
benchmark::DoNotOptimize(result += value->as_double());
}
}
}
}
BENCHMARK(hash_table);
|
c7f73459d535d91233b3f7f0c70f799bddddc8cd
|
b281afaacfd0a41a9086773d1a1b497f89d21f3b
|
/Yet Another Two Integers Problem.cpp
|
eb0a60a1cb8dfe71b9fbf1070624c3e4088e445b
|
[] |
no_license
|
rishabhgupta03/c-plus-plus
|
186090ffa630225cc12973d2166781b22e46bc75
|
da31fd1d88489aaa601274f60bce55df1665d9b7
|
refs/heads/master
| 2022-12-15T06:28:44.821629
| 2020-09-15T21:39:49
| 2020-09-15T21:39:49
| 295,854,636
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,696
|
cpp
|
Yet Another Two Integers Problem.cpp
|
#include<i>
using namespace std;
int main()
{
int a,b,n;
cin>>n;
for (int i=0;i<n;i++){
cin>>a>>b;
int diff = a-b;
int count = 0;
if (a==b){
cout<<0<<endl;
continue;
}
else if(abs(a-b)<=10){
cout<<1<<endl;
continue;
}
else{
while (diff!=0){
if (diff>0){
if (diff>10){
a = a-10;
diff = a-b;
}
else{
a = a-diff;
diff = a-b;
}
count+=1;
}
else{
if (diff<-10){
a = a+10;
diff = a-b;
}
else{
a = a-diff;
diff = a-b;
}
count+=1;
}
}
}
cout<<count<<endl;
}
return 0;
}
//*******************************************//
#include<bits\stdc++.h>
using namespace std;
int main()
{
long int a,b,n;
cin>>n;
for (int i=0;i<n;i++){
cin>>a>>b;
long int diff = abs(a-b);
long int count = 0;
if (a==b){
cout<<0<<endl;
}
else if(abs(a-b)<=10){
cout<<1<<endl;
}
else{
count=diff/10;
if(diff%10!=0)
count=count+1;
cout<<count<<endl;}
}
return 0;
}
|
241f79ddb3ab29145986e70e81ce52876a6189f5
|
2c50e14d49a97c121c2d0e7bf5f2ede8f4bfc449
|
/WirelessModuleCfg/WirelessModuleCfg/Protocol/ComPortExplorer.h
|
77cb092e21975b9f3b41269508c77793a6c007f1
|
[] |
no_license
|
weiziyong/WirelessModule
|
7d93dc9c6811d4a45532a39b63c19876cf944134
|
c5ca8fa38a1e641a7d9ad22dc7b4cd3c9d516238
|
refs/heads/master
| 2020-12-03T01:44:27.360039
| 2017-10-16T15:06:47
| 2017-10-16T15:06:47
| 95,834,548
| 1
| 0
| null | null | null | null |
WINDOWS-1252
|
C++
| false
| false
| 872
|
h
|
ComPortExplorer.h
|
//
//
// Generated by StarUML(tm) C++ Add-In
//
// @ Project : Untitled
// @ File Name : CComPortExplorer.h
// @ Date : 2014/11/7 ÐÇÆÚÎå
// @ Author :
//
//
#if !defined(_CCOMPORTEXPORER_H)
#define _CCOMPORTEXPORER_H
#include "../stdafx.h"
#include "../../Com/CnComm.h"
class CComPortExplorer
{
public:
CComPortExplorer(const HWND hWnd = NULL);
virtual ~CComPortExplorer();
BOOL GetCurLinkedDevCommPort(CMap<CString, LPCTSTR, DWORD, DWORD>& mapAllLinkedDeviceCom);
DWORD GetPortNum(CString strComPortName);
BOOL GetSysAllComPort(CStringArray& allSysCom);
protected:
BOOL GetSystemAllComPort();
BOOL GetAllAvailableComPort(CMap<CString, LPCTSTR, DWORD, DWORD>& mapAllLinkedDeviceCom);
private:
CStringArray m_aAllSysCom;
HWND m_hWnd;
};
#endif //_CCOMPORTEXPORER_H
|
51b1cf593a4c68ff04d2efa53c859b2ed30e6619
|
84f15bdd1d6e044583a20091653d9049b842f788
|
/MessagingProgram/Source.cpp
|
992494bcbc84e9fe66b9ccef0a5ac6480a4e58b7
|
[] |
no_license
|
Amuuo/MessagingProgram2_win32
|
32c6cf38c4494df32c31d9cd88b5bc0668287809
|
3ad4cbe98caaa6b196bdec332e7b68743eb09fac
|
refs/heads/master
| 2020-03-25T04:25:32.381285
| 2018-08-28T08:54:03
| 2018-08-28T08:54:03
| 143,394,226
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 15,147
|
cpp
|
Source.cpp
|
#include<iostream>
#include<string>
#include<sstream>
#include<Windows.h>
#include<Windowsx.h>
#include<tchar.h>
#include<conio.h>
#include<stdio.h>
#include<stdlib.h>
#define TESTRUN 1
#define clearScreen() system("cls")
using namespace std;
enum {USERNAMEDIALOG,
USERNAMEBUTTON,
MESSAGEBOX,
MESSAGEDIALOG,
MESSAGEBUTTON,
MESSAGEWINDOW,
USERNAMETITLE};
enum {SPEAK = 1,
URL = 2,
MESSAGE = 3,
EXIT = 4};
struct testMsg {
testMsg(HWND _h, UINT _m, WPARAM _w, LPARAM _l): h{_h}, m{_m}, w{_w}, l{_l} {
w_l = LOWORD(w);
w_h = HIWORD(w);
l_l = LOWORD(l);
l_h = HIWORD(l);
}
HWND h;
UINT m;
WPARAM w;
LPARAM l;
unsigned short w_l, w_h, l_l, l_h;
};
static TCHAR szWindowClass[] = _T("win32app");
static TCHAR szTitle[] = _T("FrankAdamMessaging");
TCHAR test[100] = "\ntesting\0";
TCHAR messageBuffer[256];
TCHAR screenBuffer[1024];
#ifdef TESTRUN
TCHAR username[24] = "Adam";
#else
TCHAR username[24];
#endif
HINSTANCE hInst;
WNDPROC dlgMsgProcHandle;
WNDPROC msgDisplayProcHandle;
HWND msgDisplayWinHandle;
HWND msgInputWinHandle;
HWND msgWinHandle;
LRESULT CALLBACK mainWinProc(HWND, UINT, WPARAM, LPARAM);
LRESULT CALLBACK msgDisplayProc(HWND, UINT, WPARAM, LPARAM);
LRESULT CALLBACK msgWinProc(HWND, UINT, WPARAM, LPARAM);
LRESULT CALLBACK usrWinProc(HWND, UINT, WPARAM, LPARAM);
LRESULT CALLBACK msgDlgProc(HWND, UINT, WPARAM, LPARAM);
void messageMenu();
void getUsername(HWND);
void setupMessaging(HWND);
int printMenu();
int printMenu();
void destroyUsernameWindows(HWND);
int CALLBACK WinMain(HINSTANCE _hInst, HINSTANCE pInst, LPSTR lpCmd, int nCmd) {
WNDCLASSEX wc;
// SET UP WINDOW CLASS
wc.cbSize = sizeof(WNDCLASSEX);
wc.style = CS_HREDRAW | CS_VREDRAW;
wc.lpfnWndProc = mainWinProc;
wc.cbClsExtra = 0;
wc.cbWndExtra = 0;
wc.hInstance = _hInst;
wc.hIcon = LoadIcon(_hInst, IDI_APPLICATION);
wc.hCursor = LoadCursor(NULL, IDC_ARROW);
wc.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
wc.lpszMenuName = NULL;
wc.lpszClassName = szWindowClass;
wc.hIconSm = LoadIcon(wc.hInstance, IDI_APPLICATION);
hInst = _hInst;
if (!RegisterClassEx(&wc)) {
MessageBox(
NULL,
_T("Call to RegisterClassEx failed!"),
_T("Window Desktop Guided Tour"),
SW_SHOW);
return 1;
}
HWND hwnd = CreateWindow(
szWindowClass,
szTitle,
WS_SYSMENU | WS_CAPTION,
CW_USEDEFAULT, CW_USEDEFAULT,
500, 500,
NULL,
NULL,
_hInst,
NULL);
if (!hwnd) {
MessageBox(
NULL,
_T("Call to CreateWindow failed!"),
_T("Windows Desktop Guided Tour"),
SW_SHOW);
return 1;
}
UpdateWindow(hwnd);
MSG msg;
while (GetMessage(&msg, NULL, 0, 0)) {
TranslateMessage(&msg);
DispatchMessage (&msg);
}
return (int)msg.wParam;
}
LRESULT CALLBACK mainWinProc(HWND hwnd, UINT Msg, WPARAM wParam, LPARAM lParam) {
switch (Msg) {
case WM_CREATE:
/**************************************/
/* skip username window for testing */
/**************************************/
TESTRUN ? setupMessaging(hwnd) : getUsername(hwnd);
return 0;
case WM_GETDLGCODE:
break;
case WM_KEYDOWN:
switch (wParam) {
case VK_RETURN:
SendMessage(FindWindow("messageClass", "messaging"),
WM_KEYDOWN,
wParam,
lParam);
break;
}
break;
case WM_SYSKEYDOWN:
break;
case WM_DESTROY:
PostQuitMessage(0);
return 0;
}
return DefWindowProc(hwnd, Msg, wParam, lParam);
}
LRESULT CALLBACK msgDisplayProc(HWND hwnd, UINT Msg, WPARAM wParam, LPARAM lParam) {
PAINTSTRUCT ps;
static HBRUSH hBrush;
static HRGN bgRgn;
static RECT clientRect;
static HDC hdc;
static int numLines{0};
switch (Msg) {
case WM_SYSKEYDOWN:
break;
case WM_CREATE:
InvalidateRect(hwnd, &clientRect, false);
break;;
case WM_PAINT:
hdc = BeginPaint(hwnd, &ps);
SetBkMode(hdc, TRANSPARENT);
SetTextColor(hdc, RGB(255,255,255));
GetClientRect(hwnd, &clientRect);
bgRgn = CreateRectRgnIndirect(&clientRect);
hBrush = CreateSolidBrush(RGB(75, 53, 118));
FillRgn(hdc, bgRgn, hBrush);
DrawText(hdc, screenBuffer, strlen(screenBuffer), &clientRect, 0);
EndPaint(hwnd, &ps);
numLines += 2;
break;
case WM_CLOSE:
DestroyWindow(hwnd);
break;
}
return DefWindowProcW(hwnd, Msg, wParam, lParam);
}
LRESULT CALLBACK msgWinProc(HWND hwnd, UINT Msg, WPARAM wParam, LPARAM lParam) {
PAINTSTRUCT ps;
static HDC hdc;
static RECT clientRect;
static HRGN bgRgn;
static HBRUSH hBrush;
static string tmp2;
static char tmp[24];
static WORD syskey{};
static WORD test{};
switch (Msg) {
case WM_CREATE:
hdc = GetDC(hwnd);
InvalidateRect(hwnd,NULL,false);
ReleaseDC(hwnd, hdc);
break;
case WM_KEYDOWN:
syskey = LOWORD(wParam);
break;
case WM_SYSKEYDOWN:
syskey = LOWORD(wParam);
break;
case WM_COMMAND:{
testMsg tMsg2{hwnd,Msg,wParam,lParam};
syskey = HIWORD(wParam);
test = LOWORD(wParam);
switch (LOWORD(wParam)) {
case MESSAGEBUTTON:
GetDlgItemText(hwnd, MESSAGEDIALOG, messageBuffer, 24);
memcpy(tmp, string{username + string{": "} +
messageBuffer + '\n'}.c_str(), 24);
strncat_s(screenBuffer, tmp, strlen(tmp));
SetDlgItemText(hwnd, MESSAGEDIALOG, "");
InvalidateRect(hwnd,&clientRect,false);
break;
}
}
break;
case WM_PAINT:
hdc = BeginPaint(hwnd, &ps);
GetClientRect(hwnd, &clientRect);
bgRgn = CreateRectRgnIndirect(&clientRect);
hBrush = CreateSolidBrush(RGB(45, 23, 88));
FillRgn(hdc, bgRgn, hBrush);
EndPaint(hwnd, &ps);
break;
}
return DefWindowProcW(hwnd, Msg, wParam, lParam);
}
LRESULT CALLBACK msgDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) {
PAINTSTRUCT ps;
static HDC hdc;
static RECT clientRect;
static HRGN bgRgn;
static HBRUSH hBrush;
static char testChar;
testMsg tMsg{hwnd,msg,wParam,lParam};
switch (msg) {
case WM_CREATE:
hdc = GetDC(hwnd);
InvalidateRect(hwnd, NULL, false);
break;
case WM_KEYDOWN:
if(wParam == VK_RETURN){
SendMessageW(msgDisplayWinHandle,
WM_COMMAND,
MAKEWPARAM(MESSAGEBUTTON, 0),
lParam);
}
break;
}
return CallWindowProc(dlgMsgProcHandle, hwnd, msg, wParam, lParam);
}
LRESULT CALLBACK usrWinProc(HWND hwnd, UINT Msg, WPARAM wParam, LPARAM lParam) {
PAINTSTRUCT ps;
static HBRUSH hBrush;
static HRGN bgRgn;
static RECT clientRect;
static HDC hdc;
switch (Msg) {
case WM_CREATE:
hdc = CreateDC(TEXT("DISPLAY"), NULL, NULL, NULL);
InvalidateRect(hwnd, &clientRect, false);
ReleaseDC(hwnd, hdc);
break;
case WM_PAINT:
hdc = BeginPaint(hwnd, &ps);
GetClientRect(hwnd, &clientRect);
bgRgn = CreateRectRgnIndirect(&clientRect);
hBrush = CreateSolidBrush(RGB(45, 23, 88));
FillRgn(hdc, bgRgn, hBrush);
EndPaint(hwnd, &ps);
break;
case WM_CLOSE:
DestroyWindow(hwnd);
break;
case WM_COMMAND:
switch (LOWORD(wParam)) {
case USERNAMEBUTTON:
GetDlgItemText(hwnd, USERNAMEDIALOG, username, 24);
DestroyWindow(hwnd);
setupMessaging(GetParent(hwnd));
}
break;
}
return DefWindowProcA(hwnd,Msg,wParam,lParam);
}
LRESULT CALLBACK msgInput(HWND hwnd, UINT Msg, WPARAM wParam, LPARAM lParam) {
PAINTSTRUCT ps;
static HBRUSH hBrush;
static HRGN bgRgn;
static RECT clientRect;
static HDC hdc;
switch (Msg) {
case WM_CREATE:
break;
case WM_KEYDOWN:
if (LOWORD(wParam) == VK_RETURN)
SendMessage(hwnd, WM_PAINT, wParam, lParam);
break;
case WM_SYSKEYDOWN:
LOWORD(wParam);
break;
case WM_PAINT:
hdc = BeginPaint(hwnd, &ps);
GetClientRect(hwnd, &clientRect);
bgRgn = CreateRectRgnIndirect(&clientRect);
hBrush = CreateSolidBrush(RGB(90, 145, 88));
FillRgn(hdc, bgRgn, hBrush);
EndPaint(hwnd, &ps);
break;
}
return DefWindowProcW(hwnd,Msg,wParam,lParam);
}
void getUsername(HWND hwnd) {
WNDCLASSW usernameWin = {0};
usernameWin.lpfnWndProc = usrWinProc;
usernameWin.hInstance = hInst;
usernameWin.hCursor = LoadCursor(NULL, IDC_ARROW);
usernameWin.hbrBackground = (HBRUSH)(GRAY_BRUSH);
usernameWin.lpszMenuName = NULL;
usernameWin.style = CS_HREDRAW | CS_VREDRAW;
usernameWin.lpszClassName = L"usernameClass";
RegisterClassW(&usernameWin);
HWND displayWin =
CreateWindowW(
L"usernameClass", _T(L"Get Username"),
WS_VISIBLE | WS_CAPTION | WS_SYSMENU,
200, 200, 400, 150,
hwnd, NULL, NULL, NULL);
CreateWindowW(L"EDIT", L" ENTER USERNAME",
WS_VISIBLE | WS_CHILD | ES_READONLY,
120, 15, 140, 20, displayWin,
(HMENU)USERNAMETITLE, NULL, NULL);
CreateWindowW(
L"EDIT", NULL,
WS_VISIBLE | WS_CHILD | ES_WANTRETURN,
20, 40, 340, 20, displayWin,
(HMENU)USERNAMEDIALOG, NULL, NULL);
CreateWindowW(
L"Button", L"Enter",
WS_VISIBLE | WS_CHILD,
140, 75, 100, 20, displayWin,
(HMENU)USERNAMEBUTTON, NULL, NULL);
}
void setupMessaging(HWND hwnd) {
WNDCLASSW messageClass = {0};
WNDCLASSW textBoxClass = {0};
WNDCLASSW messageInputBox = {0};
messageClass .lpfnWndProc = msgWinProc;
messageClass .hInstance = hInst;
messageClass .hCursor = LoadCursor(NULL, IDC_ARROW);
messageClass .lpszMenuName = NULL;
messageClass .lpszClassName = L"messageClass";
RegisterClassW(&messageClass);
/*textBoxClass.lpfnWndProc = msgDsply;
textBoxClass.hInstance = hInst;
textBoxClass.hCursor = LoadCursor(NULL, IDC_ARROW);
textBoxClass.hbrBackground = (HBRUSH)(GRAY_BRUSH);
textBoxClass.lpszMenuName = NULL;
textBoxClass.style = CS_HREDRAW | CS_VREDRAW;
textBoxClass.lpszClassName = L"textBoxClass";
RegisterClassW(&textBoxClass);
*/
int margin = 12;
msgWinHandle =
CreateWindowW(
L"messageClass", L"Messaging",
WS_VISIBLE | WS_BORDER,
400, 400, 408, 544, hwnd,
NULL, NULL, NULL);
ShowWindow(msgWinHandle, SW_HIDE);ShowWindow(msgWinHandle, SW_SHOW);
msgInputWinHandle =
CreateWindowW(
L"Edit", L"inputBox",
WS_VISIBLE | WS_CHILD | ES_MULTILINE | WS_VSCROLL | ES_AUTOVSCROLL,
margin, 376 + (margin + 11), 293, 93,
msgWinHandle, (HMENU)MESSAGEDIALOG, GetModuleHandle(NULL), NULL);
dlgMsgProcHandle = (WNDPROC)SetWindowLongPtr(msgInputWinHandle,
GWLP_WNDPROC,
(LONG_PTR)msgDlgProc);
msgDisplayWinHandle =
CreateWindowW(
L"Static", NULL,
WS_VISIBLE | WS_CHILD,
margin, margin, 367, 375, msgWinHandle,
(HMENU)MESSAGEBOX, NULL, NULL);
msgDisplayProcHandle = (WNDPROC)SetWindowLongPtr(msgDisplayWinHandle,
GWLP_WNDPROC,
(LONG_PTR)msgDisplayProc);
CreateWindowW(
L"Button", L"Send",
WS_VISIBLE | WS_CHILD,
307, 376 + (margin + 11),
73, 94, msgWinHandle,
(HMENU)MESSAGEBUTTON, NULL, NULL);
}
void messageMenu(){
clearScreen();
while(1){
switch(printMenu()){
case SPEAK: {
ostringstream out{};
string message{};
out << "-ExecutionPolicy Bypass -NoProfile";
out << "-NonInteractive -WindowStyle Hidden -File ";
out << "\"speak.ps1\" \"";
clearScreen();
printf("\n\n\tEnter Message: ");
getline(cin, message);
out << message << "\"";
clearScreen();
printf("\n\n\t>> Synthesizing \"%s\"", message.c_str());
ShellExecute(NULL,
"open",
"powershell.exe",
out.str().c_str(),
NULL,
SW_HIDE);
break;
}
case URL: {
string url{};
ostringstream out{};
clearScreen();
printf("\n\n\tEnter URL: ");
getline(cin, url);
printf("\n\n\t\t1 - Save to Clipboard");
printf("\n\t\t2 - Open Webpage");
switch(_getch()) {
case '1':
out << "-ExecutionPolicy Bypass -NoProfile -NonInteractive ";
out << "-WindowStyle Hidden Set-Clipboard -Value " << url;
ShellExecute(NULL,
"open",
"powershell.exe",
out.str().c_str(),
NULL,
SW_HIDE);
clearScreen();
printf("\n\n\t>> URL saved to clipboard.");
break;
case '2':
printf("\n\n\t>> Opening %s...", url.c_str());
ShellExecute(NULL,
"open",
"chrome.exe",
url.c_str(),
NULL,
SW_MINIMIZE);
break;
default: break;
}
break;
}
case MESSAGE: {
string message;
clearScreen();
printf("\n\n\tEnter Message: ");
getline(cin, message);
while (MessageBox(NULL, message.c_str(), NULL, MB_YESNO) == IDABORT) {
MessageBox(NULL, "How dare you 'X' that MessageBox", NULL, MB_OK);
}
break;
}
case EXIT:
exit(1);
break;
default: break;
}
}
}
int printMenu(){
printf("\n\n\tSelect Item to Send:\n");
printf("\n\t1 - Speech");
printf("\n\t2 - URL");
printf("\n\t3 - Message");
printf("\n\t4 - Exit");
return _getch() - 48;
}
|
f84f86f2ce7a2615a25ca189c3f3eb4d34242fbc
|
4321623e52a72f63debb78af5021fd5a47e57674
|
/RTManager.cpp
|
0b95ee6dafedad3d4ffecb11f7700269e4971726
|
[] |
no_license
|
jashingden/TCPForward
|
81d7dc0ca59ba0610651c3b2dc2e130ef3c9dd9c
|
452dccf8cd64638144ab767256e95ac51d1789a6
|
refs/heads/master
| 2020-05-14T23:30:43.657472
| 2020-04-13T10:33:19
| 2020-04-13T10:33:19
| 181,998,057
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,446
|
cpp
|
RTManager.cpp
|
// RTManager.cpp
//
#include "RTManager.h"
#include "RTClient.h"
#include "DataSocket.h"
using namespace std;
//////////////////////////////////////////////////////////////////////////////////////
//
CRealtimeManager::CRealtimeManager()
{
m_pRTClient = NULL;
}
CRealtimeManager::~CRealtimeManager()
{
}
bool CRealtimeManager::Init(int from_port, int to_port)
{
//m_pSocket = new CDataSocket(this);
//m_pSocket->SetHost("127.0.0.1", to_port);
// Accept Client Socket
tcp::endpoint accept_endpoint(tcp::v4(), from_port);
m_pRTClient = new CRealtimeClient(this, accept_endpoint, to_port);
return true;
}
void CRealtimeManager::Start()
{
/*if (m_pSocket != NULL) {
m_pSocket->Connect();
m_pSocket->Start();
}*/
if (m_pRTClient != NULL) {
m_pRTClient->Start();
}
}
void CRealtimeManager::Finish()
{
/*if (m_pSocket != NULL) {
m_pSocket->Finish();
delete m_pSocket;
m_pSocket = NULL;
}*/
if (m_pRTClient != NULL) {
m_pRTClient->Finish();
// wait for client socket closed
boost::this_thread::sleep(boost::posix_time::milliseconds(1000));
delete m_pRTClient;
m_pRTClient = NULL;
}
}
/*
bool CRealtimeManager::FromData(const char* sFrame, int nFrame)
{
if (m_pSocket != NULL) {
return m_pSocket->SendRequest(sFrame, nFrame);
}
return false;
}
bool CRealtimeManager::ToData(const char* sFrame, int nFrame)
{
if (m_pRTClient != NULL) {
return m_pRTClient->ToData(sFrame, nFrame);
}
return false;
}
*/
|
5ae63a7c9455f9ab19fc5905eafc83f12abdd974
|
7aee96bffe5d0ba5edfcce401c379b0fd5abae51
|
/821C - Okabe and Boxes.cpp
|
2740d2dd8b0d47ff9306e77349dba6f1080bbfcf
|
[] |
no_license
|
johnsourour/Codeforces-Solutions
|
01ae61eb4fe5c6dd04b5f0adc99a9679861c7842
|
35e38200650a71950a3834362e8d617c47cb5e35
|
refs/heads/master
| 2021-01-25T08:27:39.675697
| 2017-06-30T14:24:05
| 2017-06-30T14:24:05
| 93,764,640
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 766
|
cpp
|
821C - Okabe and Boxes.cpp
|
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n, val,cnt=0,cur=1,last;
vector<int> st;
vector<int>::iterator it;
string s;
bool ok=false,was=false;
cin>>n;
while(cur<=n)
{
cin>>s;
if(s=="add")
{
ok=false;
cin>>val;
st.push_back(val);
if(val!=cur)was=false;
}
else
{
if(st.back()==cur)
{
st.pop_back();cur++;
}
else if(ok || was || st.back()==last)
{
cur++;
ok=true;
}
else if(st.back()<cur){
while(st.back()<cur)st.pop_back();
if(st.back()==cur){
st.pop_back();cur++;ok=false;}
else
{
ok=true;
cnt++;cur++;
}
}
else
{
ok=true;
was=true;
last=st.back();
cnt++;cur++;
}
}
}
cout<<cnt;
return 0;
}
|
5bc3fc9fabbb71f0775cc03b763a5040430dc63b
|
6e9ec0e127b29603236df51701d45965b8fa7c2f
|
/src/animatedtransform.h
|
3ae87fe4696e73bbc208e4af061efab9efb503ab
|
[
"MIT"
] |
permissive
|
jammm/Langevin-MCMC
|
8c4ee90fb2a913956fba828d6fbdbd844fb26482
|
06cadf6d0213e365c37cb39438bf1fef0e511912
|
refs/heads/master
| 2022-10-11T03:20:48.968894
| 2020-06-14T15:31:44
| 2020-06-14T21:50:03
| 271,672,514
| 1
| 0
|
MIT
| 2020-06-12T00:23:14
| 2020-06-12T00:23:13
| null |
UTF-8
|
C++
| false
| false
| 3,327
|
h
|
animatedtransform.h
|
#pragma once
#include "commondef.h"
#include "quaternion.h"
#include "transform.h"
int GetAnimatedTransformSerializedSize();
void Decompose(const Matrix4x4 &m, Vector3 *t, Quaternion *r);
template <typename FloatType>
struct TAnimatedTransform {
FloatType isMoving;
TVector3<FloatType, Eigen::DontAlign> translate[2];
TVector4<FloatType, Eigen::DontAlign> rotate[2];
};
template <>
struct TAnimatedTransform<ADFloat> {
ADFloat isMoving;
ADVector3 translate[2];
ADVector4 rotate[2];
};
typedef TAnimatedTransform<Float> AnimatedTransform;
typedef TAnimatedTransform<ADFloat> ADAnimatedTransform;
inline Float *Serialize(const AnimatedTransform &transform, Float *buffer) {
buffer = Serialize(transform.isMoving, buffer);
buffer = Serialize(transform.translate[0], buffer);
buffer = Serialize(transform.translate[1], buffer);
buffer = Serialize(transform.rotate[0], buffer);
buffer = Serialize(transform.rotate[1], buffer);
return buffer;
}
template <typename FloatType>
const FloatType *Deserialize(const FloatType *buffer, TAnimatedTransform<FloatType> &transform) {
buffer = Deserialize(buffer, transform.isMoving);
buffer = Deserialize(buffer, transform.translate[0]);
buffer = Deserialize(buffer, transform.translate[1]);
buffer = Deserialize(buffer, transform.rotate[0]);
buffer = Deserialize(buffer, transform.rotate[1]);
return buffer;
}
inline AnimatedTransform MakeAnimatedTransform(const Matrix4x4 &m0, const Matrix4x4 &m1) {
AnimatedTransform ret;
ret.isMoving = BoolToFloat(m0 != m1);
Vector3 translate;
Vector4 rotate;
Decompose(m0, &translate, &rotate);
ret.translate[0] = translate;
ret.rotate[0] = rotate;
if (ret.isMoving == FTRUE) {
Decompose(m1, &translate, &rotate);
ret.translate[1] = translate;
ret.rotate[1] = rotate;
} else {
ret.translate[1] = ret.translate[0];
ret.rotate[1] = ret.rotate[0];
}
return ret;
}
Float *Serialize(const AnimatedTransform &transform, Float *buffer);
Matrix4x4 Interpolate(const AnimatedTransform &transform, const Float time);
ADMatrix4x4 Interpolate(const ADAnimatedTransform &transform, const ADFloat time);
ADMatrix4x4 ToMatrix4x4(const ADAnimatedTransform &transform);
template <typename FloatType>
TAnimatedTransform<FloatType> Invert(const TAnimatedTransform<FloatType> &transform) {
TAnimatedTransform<FloatType> ret;
ret.isMoving = transform.isMoving;
ret.rotate[0] = TVector4<FloatType>(-transform.rotate[0][0],
-transform.rotate[0][1],
-transform.rotate[0][2],
transform.rotate[0][3]);
ret.rotate[1] = TVector4<FloatType>(-transform.rotate[1][0],
-transform.rotate[1][1],
-transform.rotate[1][2],
transform.rotate[1][3]);
TMatrix4x4<FloatType> rot0 = ToMatrix4x4<FloatType>(ret.rotate[0]);
TMatrix4x4<FloatType> rot1 = ToMatrix4x4<FloatType>(ret.rotate[1]);
ret.translate[0] = -XformVector<FloatType>(rot0, transform.translate[0]);
ret.translate[1] = -XformVector<FloatType>(rot1, transform.translate[1]);
return ret;
}
|
c3dac8de7722e59e9df0796bbad7006e6214c6b0
|
58ced8170915bd6aae57827798f274f08e0fc021
|
/gameobject.h
|
f07380a8c6d34fe7e88f1a01a4e9d73c462f6843
|
[] |
no_license
|
GitHoek/Invaders
|
173e0de9a1ca971463c6e4bcb93244a43d83d828
|
87e8081556222edf9c85dd367adfa7482460db1d
|
refs/heads/master
| 2021-07-03T18:35:29.533112
| 2017-09-25T11:07:05
| 2017-09-25T11:07:05
| 104,738,647
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 698
|
h
|
gameobject.h
|
#ifndef GAMEOBJECT_H
#define GAMEOBJECT_H
class GameObject
{
public:
GameObject( int Position_X, int Position_Y, int Height, int Width,int Velocity_X, int Velocity_Y);
int GetHeight();
void SetHeight(int Height);
int GetWidth();
void SetWidth(int Width);
int GetPosition_X();
void SetPosition_X(int Position_X);
int GetPosition_Y();
void SetPosition_Y(int Position_Y);
int GetVelocity_X();
void SetVelocity_X(int Velocity_X);
int GetVelocity_Y();
void SetVelocity_Y(int Velocity_Y);
protected:
int Height;
int Width;
int Position_X;
int Position_Y;
int Velocity_X;
int Velocity_Y;
};
#endif // GAMEOBJECT_H
|
d11eeac09e6f3140b9818d092f4461fab2c8b0cd
|
9cb14eaff82ba9cf75c6c99e34c9446ee9d7c17b
|
/codeforces/div3/pd.cpp
|
75a1317ac3fea443e25ab6c5e07b631fbf12b09f
|
[] |
no_license
|
rafa95359/programacionCOmpetitiva
|
fe7008e85a41e958517a0c336bdb5da9c8a5df83
|
d471229758e9c4f3cac7459845e04c7056e2a1e0
|
refs/heads/master
| 2022-02-19T06:43:37.794325
| 2019-09-02T15:09:35
| 2019-09-02T15:09:35
| 183,834,924
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 978
|
cpp
|
pd.cpp
|
#include <bits/stdc++.h>
using namespace std;
#define para(i,a,n) for(int i=a;i<n;i++)
#define N 1000000
typedef long long Long ;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
Long n,k;
cin>>n>>k;
string x;
cin>>x;
Long con=1,sum=0;
while(con!=k){
for(int i=1;i<=n && con<k ; i++){
cout<<" i "<<i<<endl;
for(int j=0;j+i<=n;j++){
if(j==0){
con++;
sum+=i;
}
if(j+i<n && x.substr(j,i)!=x.substr(j+1,i)){
sum+=i;
con++;
}
cout<<j<<" "<<i<<" "<<sum<<" "<<con<<endl;
if(con==k){
cout<<sum<<endl;
return 0;
}
}
}
cout<<-1<<endl;
return 0;
}
cout<<sum<<endl;
return 0;
}
|
b23a2cdfb01b8d4048d6a2f70c3b80817cdacd84
|
23819413de400fa78bb813e62950682e57bb4dc0
|
/Random/1151B/backup.cpp
|
db777b736f2d45e1d8a1203648121f8a60b9ef2b
|
[] |
no_license
|
Manzood/CodeForces
|
56144f36d73cd35d2f8644235a1f1958b735f224
|
578ed25ac51921465062e4bbff168359093d6ab6
|
refs/heads/master
| 2023-08-31T16:09:55.279615
| 2023-08-20T13:42:49
| 2023-08-20T13:42:49
| 242,544,327
| 1
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,683
|
cpp
|
backup.cpp
|
#include "bits/stdc++.h"
#ifdef local
#include "custom/debugger.h"
#else
#define debug(...) 42;
#endif
using namespace std;
#define int long long
const int MX_N = 20;
void solve([[maybe_unused]] int test) {
int n, m;
scanf("%lld%lld", &n, &m);
vector<vector<int>> a(n, vector<int>(m));
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
scanf("%lld", &a[i][j]);
}
}
vector<vector<bool>> dp(n + 1, vector<bool>(MX_N, false));
vector<vector<int>> prev(n + 1, vector<int>(MX_N, -1));
dp[0][0] = true;
for (int i = 0; i < n; i++) {
for (int j = 0; j < m; j++) {
for (int k = 0; k < MX_N; k++) {
if (dp[i][k]) {
dp[i + 1][k ^ a[i][j]] = true;
prev[i + 1][k ^ a[i][j]] = j;
}
}
}
}
bool ans = false;
vector<int> soln;
for (int i = 1; i < MX_N; i++) {
if (dp[n][i] == true) {
ans = true;
int ptr = prev[n][i];
soln.push_back(ptr);
debug(ptr);
for (int j = n - 1; j > 0; j--) {
debug(a[j][ptr] ^ ptr);
ptr = prev[j][a[j][ptr] ^ ptr];
debug(ptr);
soln.push_back(ptr);
}
break;
}
}
ans ? printf("TAK\n") : printf("NIE\n");
if (ans) {
reverse(soln.begin(), soln.end());
for (int i = 0; i < n; i++) {
printf("%lld ", soln[i] + 1);
}
printf("\n");
}
}
int32_t main() {
int t = 1;
// cin >> t;
for (int tt = 1; tt <= t; tt++) {
solve(tt);
}
}
|
fbaf2f110352d8d54774562d674402f86e7cd094
|
3b8e1dc351d4c3217044a29828fe143cd143caa0
|
/src/integrators/spssmlt/algo/algo_classic.h
|
8d9e922df8178545050e31d54d95007fd8c171d1
|
[] |
no_license
|
beltegeuse/smcmc
|
475c118f636aec70cf40636615b467f37df4e400
|
86969da4c8ddbca27c2190015c313f16da45f51a
|
refs/heads/master
| 2023-05-24T23:59:35.188624
| 2023-05-23T00:44:05
| 2023-05-23T00:44:05
| 261,313,097
| 6
| 1
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,547
|
h
|
algo_classic.h
|
#ifndef MITSUBA_ALGO_TILED_CLASSIC_H
#define MITSUBA_ALGO_TILED_CLASSIC_H
#include "algo.h"
MTS_NAMESPACE_BEGIN
/**
* Implementation of MH where no RE is performed
*/
class RenderingClassical : public Rendering {
public:
RenderingClassical(SPSSMLTConfiguration &config_,
Scene *scene, const Vector2i &cropSize_) : Rendering(config_, scene, cropSize_) {}
void compute(std::vector<AbstractTile *> &tildes,
std::vector<std::vector<AbstractTile *>> &&tasks,
size_t sampleCount) override {
// Create the random number vector
ref_vector<Random> rand_gen;
rand_gen.reserve(nCores);
for (int idCore = 0; idCore < nCores; idCore++) {
rand_gen.push_back(tildes[idCore]->sampler->getRandom());
}
BlockScheduler runChains(tasks.size(), nCores, config.MCMC == ERE ? 1 : 128);
BlockScheduler::ComputeBlockFunction
runfunc = [this, &tasks, sampleCount, &rand_gen](int tileID, int threadID) {
// Fetch data
auto pathSampler = pathSamplers[threadID];
auto current_tiles = tasks[tileID];
auto random = rand_gen[threadID];
independentChainExploration(current_tiles, sampleCount, pathSampler.get(), random.get());
// Make sure that all states are flush
for (int i = 0; i < current_tiles.size(); i++) {
current_tiles[i]->flush();
}
};
runChains.run(runfunc);
}
};
MTS_NAMESPACE_END
#endif //MITSUBA_ALGO_TILED_CLASSIC_H
|
a52b35394cf4005abadd63f8e11961dec36f9444
|
e17d187bcb92f3feac467cfe49d6a85b12eb06ed
|
/src/MortonSort.cpp
|
d29209dbdc086be83f7ee4679a00832bc0e88cf2
|
[] |
no_license
|
dlr1516/ars
|
08fa4d7efcf3861a6f0a967d10e4ed335fd77706
|
e7e73da3459cffbf842952e23bcfae03ff3462dc
|
refs/heads/master
| 2023-03-16T03:45:02.262735
| 2023-03-13T22:53:41
| 2023-03-13T22:53:41
| 125,033,169
| 7
| 1
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 6,334
|
cpp
|
MortonSort.cpp
|
#include <ars/MortonSort.h>
namespace ars {
// ---------------------------------------------------------------
// NUMBER OF LEADING ZEROS
// ---------------------------------------------------------------
// ---------------------------------------------------------------
// NUMBER OF LEADING ZEROS
// ---------------------------------------------------------------
int8_t nlz8(uint8_t x) {
uint8_t y;
int n;
n = 8;
y = x >> 4;
if (y != 0) {
n = n - 4;
x = y;
}
y = x >> 2;
if (y != 0) {
n = n - 2;
x = y;
}
y = x >> 1;
if (y != 0) return n - 2;
return n - x;
}
int16_t nlz16(uint16_t x) {
uint16_t y;
int n;
n = 16;
y = x >> 8;
if (y != 0) {
n = n - 8;
x = y;
}
y = x >> 4;
if (y != 0) {
n = n - 4;
x = y;
}
y = x >> 2;
if (y != 0) {
n = n - 2;
x = y;
}
y = x >> 1;
if (y != 0) return n - 2;
return n - x;
}
int32_t nlz32(uint32_t x) {
uint32_t y;
int n;
n = 32;
y = x >> 16;
if (y != 0) {
n = n - 16;
x = y;
}
y = x >> 8;
if (y != 0) {
n = n - 8;
x = y;
}
y = x >> 4;
if (y != 0) {
n = n - 4;
x = y;
}
y = x >> 2;
if (y != 0) {
n = n - 2;
x = y;
}
y = x >> 1;
if (y != 0) return n - 2;
return n - x;
}
int64_t nlz64(uint64_t x) {
uint64_t y;
int n;
n = 64;
y = x >> 32;
if (y != 0) {
n = n - 32;
x = y;
}
y = x >> 16;
if (y != 0) {
n = n - 16;
x = y;
}
y = x >> 8;
if (y != 0) {
n = n - 8;
x = y;
}
y = x >> 4;
if (y != 0) {
n = n - 4;
x = y;
}
y = x >> 2;
if (y != 0) {
n = n - 2;
x = y;
}
y = x >> 1;
if (y != 0) return n - 2;
return n - x;
}
// ---------------------------------------------------------------
// FLOOR/CEIL LOW POWER 2
// ---------------------------------------------------------------
/**
* Returns the larger power of 2 less than the given argument.
* Example: flp2(5) = 2^2.
* @param x input argument
*/
uint8_t flp2u8(uint8_t x) {
x = x | (x >> 1);
x = x | (x >> 2);
x = x | (x >> 4);
return x - (x >> 1);
}
/**
* Returns the larger power of 2 less than the given argument.
* Example: flp2(5) = 2^2.
* @param x input argument
*/
uint16_t flp2u16(uint16_t x) {
x = x | (x >> 1);
x = x | (x >> 2);
x = x | (x >> 4);
x = x | (x >> 8);
return x - (x >> 1);
}
/**
* Returns the larger power of 2 less than the given argument.
* Example: flp2(5) = 2^2.
* @param x input argument
*/
uint32_t flp2u32(uint32_t x) {
// std::cout << " x: " << std::bitset<32>(x) << " | \n"
// << " x >> 1: " << std::bitset<32>(x >> 1) << "\n";
x = x | (x >> 1);
// std::cout << " x: " << std::bitset<32>(x) << " | \n"
// << " x >> 2: " << std::bitset<32>(x >> 2) << "\n";
x = x | (x >> 2);
// std::cout << " x: " << std::bitset<32>(x) << " | \n"
// << " x >> 4: " << std::bitset<32>(x >> 4) << "\n";
x = x | (x >> 4);
// std::cout << " x: " << std::bitset<32>(x) << " | \n"
// << " x >> 8: " << std::bitset<32>(x >> 8) << "\n";
x = x | (x >> 8);
// std::cout << " x: " << std::bitset<32>(x) << " | \n"
// << " x >> 16: " << std::bitset<32>(x >> 16) << "\n";
x = x | (x >> 16);
// std::cout << " x: " << std::bitset<32>(x) << " - \n"
// << " x >> 1: " << std::bitset<32>(x >> 1) << "\n"
// << " diff " << (x - (x >> 1)) << std::endl;
return x - (x >> 1);
}
/**
* Returns the larger power of 2 less than the given argument.
* Example: flp2(5) = 2^2.
* @param x input argument
*/
uint64_t flp2u64(uint64_t x) {
x = x | (x >> 1);
x = x | (x >> 2);
x = x | (x >> 4);
x = x | (x >> 8);
x = x | (x >> 16);
x = x | (x >> 32);
return x - (x >> 1);
}
/**
* Returns the smaller power of 2 greater than the given argument.
* Example: clp2(5) = 2^3.
* @param x input argument
*/
uint8_t clp2u8(uint8_t x) {
x = x - 1;
x = x | (x >> 1);
x = x | (x >> 2);
x = x | (x >> 4);
return x + 1;
}
/**
* Returns the smaller power of 2 greater than the given argument.
* Example: clp2(5) = 2^3.
* @param x input argument
*/
uint16_t clp2u16(uint16_t x) {
x = x - 1;
x = x | (x >> 1);
x = x | (x >> 2);
x = x | (x >> 4);
x = x | (x >> 8);
return x + 1;
}
/**
* Returns the smaller power of 2 greater than the given argument.
* Example: clp2(5) = 2^3.
* @param x input argument
*/
uint32_t clp2u32(uint32_t x) {
x = x - 1;
x = x | (x >> 1);
x = x | (x >> 2);
x = x | (x >> 4);
x = x | (x >> 8);
x = x | (x >> 16);
return x + 1;
}
/**
* Returns the smaller power of 2 greater than the given argument.
* Example: clp2(5) = 2^3.
* @param x input argument
*/
uint64_t clp2u64(uint64_t x) {
x = x - 1;
x = x | (x >> 1);
x = x | (x >> 2);
x = x | (x >> 4);
x = x | (x >> 8);
x = x | (x >> 16);
x = x | (x >> 32);
return x + 1;
}
}
|
9a2ea0942e9104f0a0c2db30cb82a34a27b03c66
|
67f7bd54773ca5a5d1ce530a978e5d99b529e02e
|
/stringstreamTesting/common.h
|
f064cd6382988f2f31215e61ae912ad8ddde1582
|
[] |
no_license
|
yuandaxing/Talk
|
3d7463b0a9e6b5a095a9830084ef197512b84bd1
|
6a494a009c3557ca1e6268949bdb1c86252743bf
|
refs/heads/master
| 2021-01-21T12:58:44.034695
| 2016-04-14T09:39:19
| 2016-04-14T09:39:19
| 45,820,814
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 4,841
|
h
|
common.h
|
/*
* author: yuandx
* create: 2015-06-18
* email: yuandx@mvad.com
*/
#ifndef PUBLIC_COMMON_H_
#define PUBLIC_COMMON_H_
#include <pthread.h>
#include <string>
#include <iostream>
#include <vector>
#include <algorithm>
#include <sys/time.h>
#include <stdint.h>
namespace micro_ad
{
namespace utils
{
class MutexGuard
{
public:
explicit MutexGuard(pthread_mutex_t *mutex) : mu_(mutex)
{
pthread_mutex_lock(mu_);
}
~MutexGuard()
{
pthread_mutex_unlock(mu_);
}
private:
// No copying allowed
MutexGuard(const MutexGuard&);
void operator=(const MutexGuard&);
pthread_mutex_t *const mu_;
};
class ScopeSpinlock
{
public:
ScopeSpinlock(pthread_spinlock_t * lock)
{
lock_ = lock;
pthread_spin_lock(lock_);
}
~ScopeSpinlock()
{
pthread_spin_unlock(lock_);
}
private:
pthread_spinlock_t * lock_;
};
class ScopeRwlock
{
public:
ScopeRwlock(pthread_rwlock_t * lock, bool is_readlock)
{
lock_ = lock;
if (is_readlock)
{
pthread_rwlock_rdlock(lock_);
}
else
{
pthread_rwlock_wrlock(lock_);
}
}
~ScopeRwlock()
{
pthread_rwlock_unlock(lock_);
}
private:
pthread_rwlock_t * lock_;
};
/*
* string utils
* to Lower/Upper, split/join by string,
*/
inline std::string ToLower(const std::string& str)
{
std::string ret(str);
std::transform(ret.begin(), ret.end(), ret.begin(), ::tolower);
return ret;
}
inline std::string ToUpper(const std::string& str)
{
std::string ret(str);
std::transform(ret.begin(), ret.end(), ret.begin(), ::toupper);
return ret;
}
inline std::string Join(const std::vector<std::string>& strs, const std::string& sep)
{
std::string ret;
if(strs.size() < 1)
{
return ret;
}
ret.append(strs[0]);
for(std::size_t i = 1; i != strs.size(); i++)
{
ret.append(sep);
ret.append(strs[i]);
}
return ret;
}
inline std::vector<std::string> Split(const std::string& s, const std::string& delim)
{
std::vector<std::string> ret;
std::size_t start = 0, next = 0;
do
{
next = s.find_first_of(delim, start);
ret.push_back(s.substr(start, next - start));
start = next + 1;
} while (next != std::string::npos);
return ret;
}
inline bool StartWith(const std::string& l, const std::string& r)
{
return l.compare(0, r.size(), r) == 0;
}
class Random
{
public:
Random();
Random(unsigned int seed);
int Next();
private:
unsigned int seed_;
};
inline Random::Random():
seed_(0)
{
struct timeval tv;
gettimeofday(&tv, NULL);
seed_ = static_cast<unsigned int>(tv.tv_sec ^ tv.tv_usec);
}
inline Random::Random(unsigned int seed):
seed_(seed)
{
}
inline int Random::Next()
{
return rand_r(&seed_);
}
inline int64_t CurrentUSeconds()
{
struct timeval cur;
gettimeofday(&cur, NULL);
return cur.tv_sec *1000000 + cur.tv_usec;
}
template <typename Iterator>
void LockFreeShuffle(Iterator begin, Iterator end)
{
Random rand_;
for (std::ptrdiff_t size = end - begin; size != 0; size--)
{
std::swap(*(begin + size - 1), *(begin + rand_.Next() % size));
}
}
void ReplaceAll(std::string& str, const std::string& from, const std::string& to)
{
if (from.empty())
{
return ;
}
size_t pos = 0;
for (pos = str.find(from, pos); pos != std::string::npos; pos = str.find(from, pos))
{
str.replace(pos, from.size(), to);
pos += to.size();
}
}
template <typename int_type>
void SortUniqVector(std::vector<int_type>& vec)
{
if (vec.size() == 0u)
{
return ;
}
sort(vec.begin(), vec.end());
int insert_pos = 1;
for (size_t i = 1; i < vec.size(); i++)
{
if ( vec[i-1] != vec[i] )
{
vec[insert_pos++] = vec[i];
}
}
vec.resize(insert_pos);
}
template<typename T, typename Iter>
static void SplitBySign(Iter beg , Iter end, std::vector<T>& positive, std::vector<T>& negative)
{
for (; beg != end; ++beg)
{
T val = *beg;
std::vector<T>& dest = val > static_cast<T>(0) ? positive : negative;
dest.push_back(*beg);
}
}
template <typename T>
inline static std::string Number2Bit(T data)
{
std::string result;
int bit_num = sizeof(T) * 8;
do
{
result.push_back( (data & 1 ? '1' : '0') );
data >>= 1;
--bit_num;
} while (bit_num > 0 && data != 0);
std::reverse(result.begin(), result.end());
return result;
}
class Singleton
{
static Singleton* Instance()
{
if (NULL == instance)
{
MutexGuard mg(&lock);
if (NULL == instance)
{
instance = new Singleton();
}
}
return instance;
}
private:
Singleton()
{}
~Singleton()
{}
Singleton(const Singleton&)
{}
Singleton(Singleton&&)
{}
static Singleton* instance;
static pthread_mutex_t lock;
};
Singleton* Singleton::instance = NULL;
pthread_mutex_t Singleton::lock = PTHREAD_MUTEX_INITIALIZER;
}
}
#endif // PUBLIC_COMMON_H_
|
f10f9755d4c27ad155339b4c3889a87c26708069
|
2a27f87ec56988e404b499c59681e2cc78e5847f
|
/PAT-Basic Level/b1067.cpp
|
ae9d1a679989c6c043862faf8b9e29a05881e1bd
|
[] |
no_license
|
Judenpech/BeginningAlgorithmContests
|
c38d741ec013330782dc6937cb832657184ca65e
|
c8b2b2e06627300dd2addca1baf25391205ee435
|
refs/heads/master
| 2021-09-20T21:27:23.457195
| 2018-08-15T12:27:05
| 2018-08-15T12:27:05
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 404
|
cpp
|
b1067.cpp
|
#include <iostream>
#include <string>
using namespace std;
int main(){
string psw,tmp;
int n,count=0;
cin>>psw>>n;
cin.get();
while(getline(cin,tmp) && tmp!="#"){
count++;
if(tmp==psw && count<=n){
cout<<"Welcome in"<<endl;
return 0;
}
if(tmp!=psw){
cout<<"Wrong password: "<<tmp<<endl;
if(count==n){
cout<<"Account locked"<<endl;
return 0;
}
}
}
return 0;
}
|
cb02fd5d6bf3ae8a025a32d509b14ef90159e665
|
7d83df57b7cb4a98733c76ad8c6a9691b2ca7890
|
/test/ese/src/devlibtest/resmgr/resmgrimpl/resmgrbeladysif/resmgrbeladysif.cxx
|
4ebdbfbb3bda32eed7bcefe407062bd92f0131d2
|
[
"MIT"
] |
permissive
|
microsoft/Extensible-Storage-Engine
|
30ab5bf8b5f8f2c2b5887b1dfa59b82c0588de70
|
933dc839b5a97b9a5b3e04824bdd456daf75a57d
|
refs/heads/main
| 2023-08-13T11:53:52.563089
| 2022-07-29T17:16:38
| 2022-07-29T17:16:38
| 331,747,853
| 844
| 66
|
MIT
| 2023-06-15T11:57:35
| 2021-01-21T20:34:01
|
C++
|
UTF-8
|
C++
| false
| false
| 6,654
|
cxx
|
resmgrbeladysif.cxx
|
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
// Header files.
#include "resmgrbeladysif.hxx"
// class PageEvictionAlgorithmBeladys.
PageEvictionAlgorithmBeladys::PageEvictionAlgorithmBeladys( const bool fBest ) :
IPageEvictionAlgorithmImplementation(),
m_lrutest(),
m_beladys(),
m_fBest( fBest )
{
}
PageEvictionAlgorithmBeladys::~PageEvictionAlgorithmBeladys()
{
}
ERR PageEvictionAlgorithmBeladys::ErrInit( const BFTRACE::BFSysResMgrInit_& bfinit )
{
if ( m_beladys.ErrInit() != CBeladysResourceUtilityManagerType::errSuccess )
{
return ErrERRCheck( JET_errTestError );
}
if ( !m_beladys.FProcessing() )
{
return m_lrutest.ErrInit( bfinit );
}
return JET_errSuccess;
}
void PageEvictionAlgorithmBeladys::Term( const BFTRACE::BFSysResMgrTerm_& bfterm )
{
m_beladys.Term();
if ( !m_beladys.FProcessing() )
{
m_lrutest.Term( bfterm );
}
}
ERR PageEvictionAlgorithmBeladys::ErrCachePage( PAGE* const ppage, const BFTRACE::BFCache_& bfcache )
{
if ( m_beladys.ErrCacheResource( QwGetCompactIFMPPGNOFromPAGE_( ppage ), RESMGRBELADYSGetTickCount() ) != CBeladysResourceUtilityManagerType::errSuccess )
{
return ErrERRCheck( JET_errTestError );
}
if ( !m_beladys.FProcessing() )
{
return m_lrutest.ErrCachePage( ppage, bfcache );
}
return JET_errSuccess;
}
ERR PageEvictionAlgorithmBeladys::ErrTouchPage( PAGE* const ppage, const BFTRACE::BFTouch_& bftouch )
{
if ( m_beladys.ErrTouchResource( QwGetCompactIFMPPGNOFromPAGE_( ppage ), RESMGRBELADYSGetTickCount() ) != CBeladysResourceUtilityManagerType::errSuccess )
{
return ErrERRCheck( JET_errTestError );
}
if ( !m_beladys.FProcessing() )
{
return m_lrutest.ErrTouchPage( ppage, bftouch );
}
return JET_errSuccess;
}
ERR PageEvictionAlgorithmBeladys::ErrSuperColdPage( PAGE* const ppage, const BFTRACE::BFSuperCold_& bfsupercold )
{
if ( !m_beladys.FProcessing() )
{
return m_lrutest.ErrSuperColdPage( ppage, bfsupercold );
}
// No such concept in Bélády's implementation.
return JET_errSuccess;
}
ERR PageEvictionAlgorithmBeladys::ErrEvictSpecificPage( PAGE* const ppage, const BFTRACE::BFEvict_& bfevict )
{
if ( m_beladys.ErrEvictResource( QwGetCompactIFMPPGNOFromPAGE_( ppage ) ) != CBeladysResourceUtilityManagerType::errSuccess )
{
return ErrERRCheck( JET_errTestError );
}
if ( !m_beladys.FProcessing() )
{
return m_lrutest.ErrEvictSpecificPage( ppage, bfevict );
}
return JET_errSuccess;
}
ERR PageEvictionAlgorithmBeladys::ErrEvictNextPage( void* const pv, const BFTRACE::BFEvict_& bfevict, PageEvictionContextType* const ppectyp )
{
*ppectyp = pectypIFMPPGNO;
CBeladysResourceUtilityManagerTypeERR err = CBeladysResourceUtilityManagerType::errSuccess;
QWORD qwCompactIFMPPGNO = 0;
if ( m_fBest )
{
err = m_beladys.ErrEvictBestNextResource( &qwCompactIFMPPGNO );
}
else
{
err = m_beladys.ErrEvictWorstNextResource( &qwCompactIFMPPGNO );
}
// Force success if there is nothing to evict.
if ( err == CBeladysResourceUtilityManagerType::errNoCurrentResource )
{
Enforce( m_beladys.FProcessing() );
err = CBeladysResourceUtilityManagerType::errSuccess;
PAGE** const pppage = (PAGE**)pv;
*pppage = NULL;
*ppectyp = pectypPAGE;
}
if ( err != CBeladysResourceUtilityManagerType::errSuccess )
{
return ErrERRCheck( JET_errTestError );
}
if ( !m_beladys.FProcessing() )
{
return m_lrutest.ErrEvictNextPage( pv, bfevict, ppectyp );
}
else if ( *ppectyp == pectypIFMPPGNO )
{
GetIFMPPGNOFromCompactIFMPPGNO_( (IFMPPGNO*)pv, qwCompactIFMPPGNO );
}
return JET_errSuccess;
}
ERR PageEvictionAlgorithmBeladys::ErrGetNextPageToEvict( void* const pv, PageEvictionContextType* const ppectyp )
{
*ppectyp = pectypIFMPPGNO;
CBeladysResourceUtilityManagerTypeERR err = CBeladysResourceUtilityManagerType::errSuccess;
QWORD qwCompactIFMPPGNO = 0;
if ( m_fBest )
{
err = m_beladys.ErrGetBestNextResource( &qwCompactIFMPPGNO );
}
else
{
err = m_beladys.ErrGetWorstNextResource( &qwCompactIFMPPGNO );
}
// Force success if there is nothing to evict.
if ( err == CBeladysResourceUtilityManagerType::errNoCurrentResource )
{
Enforce( m_beladys.FProcessing() );
err = CBeladysResourceUtilityManagerType::errSuccess;
PAGE** const pppage = (PAGE**)pv;
*pppage = NULL;
*ppectyp = pectypPAGE;
}
if ( err != CBeladysResourceUtilityManagerType::errSuccess )
{
return ErrERRCheck( JET_errTestError );
}
if ( *ppectyp == pectypIFMPPGNO )
{
GetIFMPPGNOFromCompactIFMPPGNO_( (IFMPPGNO*)pv, qwCompactIFMPPGNO );
}
return JET_errSuccess;
}
bool PageEvictionAlgorithmBeladys::FNeedsPreProcessing() const
{
return true;
}
ERR PageEvictionAlgorithmBeladys::ErrStartProcessing()
{
if ( !m_beladys.FProcessing() )
{
return m_beladys.ErrStartProcessing();
}
return JET_errSuccess;
}
ERR PageEvictionAlgorithmBeladys::ErrResetProcessing()
{
if ( m_beladys.FProcessing() )
{
return m_beladys.ErrResetProcessing();
}
return JET_errSuccess;
}
size_t PageEvictionAlgorithmBeladys::CbPageContext() const
{
if ( !m_beladys.FProcessing() )
{
return m_lrutest.CbPageContext();
}
return sizeof(PAGE);
}
void PageEvictionAlgorithmBeladys::InitPage( PAGE* const ppage )
{
if ( !m_beladys.FProcessing() )
{
m_lrutest.InitPage( ppage );
}
else
{
new ( ppage ) PAGE;
}
}
void PageEvictionAlgorithmBeladys::DestroyPage( PAGE* const ppage )
{
if ( !m_beladys.FProcessing() )
{
m_lrutest.DestroyPage( ppage );
}
else
{
ppage->~PAGE();
}
}
QWORD PageEvictionAlgorithmBeladys::QwGetCompactIFMPPGNOFromPAGE_( const PAGE* const ppage )
{
const IFMP ifmp = ppage->ifmppgno.ifmp;
const PGNO pgno = ppage->ifmppgno.pgno;
Enforce( ifmp <= ULONG_MAX );
Enforce( pgno <= ULONG_MAX );
return ( ( (QWORD)ifmp << ( 8 * sizeof(QWORD) / 2 ) ) | (DWORD)pgno );
}
void PageEvictionAlgorithmBeladys::GetIFMPPGNOFromCompactIFMPPGNO_( IFMPPGNO* const pifmppgno, const QWORD qwCompactIFMPPGNO )
{
pifmppgno->ifmp = (IFMP)( qwCompactIFMPPGNO >> ( 8 * sizeof(QWORD) / 2 ) );
pifmppgno->pgno = (PGNO)( qwCompactIFMPPGNO & 0xFFFFFFFF );
}
|
f743f8a50d293d33f02c999be14b6ae582297208
|
73caa69db639276fd30bb0aa28a4a2cce4e98311
|
/include/server/modules/message_collector.h
|
2a26d2bd0518f40bc96755a568b58698a3bf29e2
|
[] |
no_license
|
Luxan/ServerClientQTCrypto
|
e6078d5eaebb8cd8cd1e8f4806bc9623166c40f8
|
65e6029030e950b551d333f9d73cef60f7b6128c
|
refs/heads/master
| 2020-09-25T21:34:17.421116
| 2016-11-16T23:12:25
| 2016-11-16T23:12:25
| 67,248,348
| 1
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,282
|
h
|
message_collector.h
|
/**
\author Sergey Gorokh (ESEGORO)
*/
#pragma once
#include <map>
#include <list>
#include "../interfaces/interface_communication.h"
#include "../../shared/packages/package.h"
#include "../../shared/messages/message.h"
#include "../interfaces/interface_thread.h"
/**
\class
\brief
*/
//interface
class MessageCollector : public InterfaceThread
{
private:
std::map<SessionID, std::list<MessageProcessable *>*> qMessages;
/**
\see interface_thread.h
*/
virtual void dowork();
public:
/**
\param
\return
\throw
\brief
\pre
\post
*/
MessageCollector(ThreadConfiguration conf);
/**
\param
\return
\throw
\brief
\pre
\post
*/
void RequestStart();
/**
\param
\return
\throw
\brief
\pre
\post
*/
void RequestStop();
/**
\param
\return
\throw
\brief
\pre
\post
*/
void storeMessageToSend(Message *m);
/**
\param
\return
\throw
\brief
\pre
\post
*/
void storeKeyAgreementMessageToSend(MessageSessionDetailResponse *m);
/**
\param
\return
\throw
\brief
\pre
\post
*/
void collectPackage(PackageWrapperDecoded *p);
virtual ~MessageCollector(){}
};
|
579cac6a524f0a69b3c217196940af8256493d4c
|
1a65adea801d4bbd2510006830d1f7573a5c9434
|
/version1.5/sxEditor/EditorHUD.cpp
|
beadc72c41bd456102e0c69ce9e4424628e26caa
|
[] |
no_license
|
seganx/old-engine
|
4ed9d6165a6ed884b9e44cd10e2c451dc169d543
|
e5b9fbc07632c870acb96b8448b5c9591111080c
|
refs/heads/master
| 2020-08-08T21:23:26.885808
| 2019-10-09T13:18:03
| 2019-10-09T13:18:03
| 213,920,786
| 2
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 618
|
cpp
|
EditorHUD.cpp
|
#include "EditorHUD.h"
#include "MainEditor.h"
#include "EditorUI.h"
#include "EditorSettings.h"
//////////////////////////////////////////////////////////////////////////
// CLASS AND FUNCTION IMPLEMENTATION
//////////////////////////////////////////////////////////////////////////
void EditorHUD::Initialize( void )
{
}
void EditorHUD::Finalize( void )
{
}
void EditorHUD::Resize( int width, int height )
{
}
void EditorHUD::Update( float elpsTime, bool& inputResult )
{
}
void EditorHUD::Render( float elpsTime )
{
sx::d3d::Device3D::Clear_Screen(0xffaacaca);
}
|
40a5bce5583ccb1ebbfe1b0438bfeca5d7161e7a
|
6b40e9dccf2edc767c44df3acd9b626fcd586b4d
|
/NT/termsrv/newclient/tsmmc/snapin/comp.h
|
43985b335df4a880cd84eba4297109c7db18364f
|
[] |
no_license
|
jjzhang166/WinNT5_src_20201004
|
712894fcf94fb82c49e5cd09d719da00740e0436
|
b2db264153b80fbb91ef5fc9f57b387e223dbfc2
|
refs/heads/Win2K3
| 2023-08-12T01:31:59.670176
| 2021-10-14T15:14:37
| 2021-10-14T15:14:37
| 586,134,273
| 1
| 0
| null | 2023-01-07T03:47:45
| 2023-01-07T03:47:44
| null |
UTF-8
|
C++
| false
| false
| 3,418
|
h
|
comp.h
|
// Comp.h : Declaration of the CComp
// The View class
//
// The view is per console
#ifndef __COMP_H_
#define __COMP_H_
#include <mmc.h>
class CConNode;
class CComp;
//
// Defered connection info
//
typedef struct tagTSSNAPIN_DEFER_CONNECT
{
CComp* pComponent;
CConNode* pConnectionNode;
} TSSNAPIN_DEFER_CONNECT, *PTSSNAPIN_DEFER_CONNECT;
class ATL_NO_VTABLE CComp :
public CComObjectRootEx<CComSingleThreadModel>,
public IExtendContextMenu,
public IComponent,
public IPersistStreamInit
{
public:
DECLARE_NOT_AGGREGATABLE( CComp )
BEGIN_COM_MAP( CComp )
COM_INTERFACE_ENTRY( IComponent )
COM_INTERFACE_ENTRY( IExtendContextMenu )
COM_INTERFACE_ENTRY( IPersistStreamInit )
END_COM_MAP()
public:
CComp();
~CComp();
STDMETHOD( Initialize )( LPCONSOLE );
STDMETHOD( Notify )( LPDATAOBJECT , MMC_NOTIFY_TYPE , LPARAM , LPARAM );
STDMETHOD( Destroy )( MMC_COOKIE );
STDMETHOD( GetResultViewType )( MMC_COOKIE , LPOLESTR* , PLONG );
STDMETHOD( QueryDataObject )( MMC_COOKIE , DATA_OBJECT_TYPES , LPDATAOBJECT* );
STDMETHOD( GetDisplayInfo )( LPRESULTDATAITEM );
STDMETHOD( CompareObjects )( LPDATAOBJECT , LPDATAOBJECT );
HRESULT OnShow( LPDATAOBJECT , BOOL );
HRESULT InsertItemsinResultPane( );
HRESULT AddSettingsinResultPane( );
HRESULT OnSelect( LPDATAOBJECT , BOOL , BOOL );
HRESULT SetCompdata( CCompdata * );
// IPersistStreamInit
STDMETHOD(GetClassID)(CLSID *pClassID)
{
UNREFERENCED_PARAMETER(pClassID);
ATLTRACENOTIMPL(_T("CCOMP::GetClassID"));
}
STDMETHOD(IsDirty)()
{
//
// The implementation is CCompdata::IsDirty will do all the work
//
return S_FALSE;
}
STDMETHOD(Load)(IStream *pStm)
{
UNREFERENCED_PARAMETER(pStm);
ATLTRACE(_T("CCOMP::Load"));
return S_OK;
}
STDMETHOD(Save)(IStream *pStm, BOOL fClearDirty)
{
UNREFERENCED_PARAMETER(pStm);
UNREFERENCED_PARAMETER(fClearDirty);
ATLTRACE(_T("CCOMP::Save"));
return S_OK;
}
STDMETHOD(GetSizeMax)(ULARGE_INTEGER *pcbSize)
{
UNREFERENCED_PARAMETER(pcbSize);
ATLTRACENOTIMPL(_T("CCOMP::GetSizeMax"));
}
STDMETHOD(InitNew)()
{
ATLTRACE(_T("CCOMP::InitNew\n"));
return S_OK;
}
HRESULT ConnectWithNewSettings(IMsRdpClient* pTS, CConNode* pConNode);
//IExtendContextMenu
STDMETHOD( AddMenuItems )( LPDATAOBJECT , LPCONTEXTMENUCALLBACK , PLONG );
STDMETHOD( Command )( LONG , LPDATAOBJECT );
private:
BOOL OnAddImages( );
BOOL OnHelp( LPDATAOBJECT );
HWND GetMMCMainWindow();
BOOL GiveFocusToControl(IMsRdpClient* pTs);
CCompdata *m_pCompdata;
LPIMAGELIST m_pImageResult;
IConsole *m_pConsole;
BOOL m_bFlag;
OLECHAR m_wszConnectingStatus[MAX_PATH];
OLECHAR m_wszConnectedStatus[MAX_PATH];
OLECHAR m_wszDisconnectedStatus[MAX_PATH];
LPCONSOLEVERB m_pConsoleVerb;
LPDISPLAYHELP m_pDisplayHelp;
//
// Has autoconnection of first
// selected node been triggered
//
BOOL m_bTriggeredFirstAutoConnect;
};
#endif //__COMP_H_
|
28f68087414415ad76417aff0a85b9859d5a27c7
|
b449c5afb34d283c54988cb17c0daf1838b7e00d
|
/Bai Tap Stack Va Queue (BTH-6)/MinStack.cpp
|
eaa84f143e4307065d7b3ba01fe70b5370bb6ca4
|
[] |
no_license
|
hidang/ctrdl-gt
|
9e877c29a02036b605d2994d327497d86b28ed34
|
8fe55602a871afad5ace9696f00d4323bda2b042
|
refs/heads/master
| 2023-01-24T18:34:11.199806
| 2020-12-12T11:23:17
| 2020-12-12T11:23:17
| 267,872,831
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,089
|
cpp
|
MinStack.cpp
|
#include <iostream>
#include <stack>
using namespace std;
int main()
{
stack<int> Stack, MinStack;
int n;
cin >> n;
for (int i = 0; i < n; i++)
{
int mode;
cin >> mode;
if (mode == 1)
{
int temp;
cin >> temp;
Stack.push(temp);
if (MinStack.empty())
{
MinStack.push(temp);
}
else
{
if (temp < MinStack.top())
{
MinStack.push(temp);
}
}
}
if (mode == 2)
{
if (MinStack.top() == Stack.top())
{
MinStack.pop();
Stack.pop();
}
else
{
Stack.pop();
}
}
if (mode == 3)
{
cout << Stack.top() << endl;
}
if (mode == 4)
{
cout << MinStack.top() << endl;
}
}
return 0;
}
|
257f0b4ad57aeccb266371e1621c0b19f7e55e29
|
8ca3a9b354907a5fe972124a6ff224a1d136f441
|
/Estruturas_dados/Semana_6_Aula_18_Grafo_Matriz_Adjacencia/Grafo.h
|
6e4701040e3b1e8360efbd47f1a1e15caa9425b7
|
[] |
no_license
|
jucelinoss/Estruturas_de_dados
|
50e3ec3edcb5537f980309e9203ee9904f995edc
|
c44202a1b2dd4a9856be8ec917d4dc58ebef6394
|
refs/heads/main
| 2023-04-13T17:27:42.598509
| 2021-05-02T03:13:09
| 2021-05-02T03:13:09
| 363,526,711
| 0
| 0
| null | null | null | null |
ISO-8859-1
|
C++
| false
| false
| 665
|
h
|
Grafo.h
|
#pragma once
#include <iostream>
#include <cstddef>
using namespace std;
typedef string TipoItem;
//grafo simples não direcionado ponderado
class Grafo
{
private:
int arestaNula = -1;
int maxQtdVertices;
int numVertices;
TipoItem* vertices;
int** matrizAdjacencia;// vetor de vetores do tipo inteiro
public:
Grafo(int maxQtdVertices, int vlrArestaNula);
~Grafo();
int getIndice(TipoItem item);
bool estaCheio();
void insereVertice(TipoItem item);
void insereAresta(TipoItem noSaida, TipoItem noEntrada, int peso);
int getPeso(TipoItem noSaida, TipoItem noEntrada);
int getGrau(TipoItem item);
void imprimirMatriz();
void imprimirVertices();
};
|
5574123c2b4d057a59014f3328c5165c08d4b655
|
e2bdb179231d5123c636905f173f58654df876c4
|
/algorithms/cpp/substringWithConcatenationOfAllWords/substringWithConcatenationOfAllWords.cpp
|
7abc70ee54d55ed55079fea64d60a416b22ece91
|
[] |
no_license
|
410588896/leetcode
|
ba130c26be38a68d06b80fe7964b2bc874e39f06
|
14abd40fad66ae1585ad1564d8af6124f45eb4b3
|
refs/heads/master
| 2022-11-14T22:21:02.976222
| 2022-11-06T05:32:02
| 2022-11-06T05:32:02
| 291,714,180
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,947
|
cpp
|
substringWithConcatenationOfAllWords.cpp
|
/*
* @lc app=leetcode id=30 lang=cpp
*
* [30] Substring with Concatenation of All Words
*/
/********************************************
*
* You are given a string s and an array of strings words of the same length. Return all starting indices of substring(s) in s that is a concatenation of each word in words exactly once, in any order, and without any intervening characters.
*
* You can return the answer in any order.
*
*
*
* Example 1:
*
* Input: s = "barfoothefoobarman", words = ["foo","bar"]
* Output: [0,9]
* Explanation: Substrings starting at index 0 and 9 are "barfoo" and "foobar" respectively.
* The output order does not matter, returning [9,0] is fine too.
* Example 2:
*
* Input: s = "wordgoodgoodgoodbestword", words = ["word","good","best","word"]
* Output: []
* Example 3:
*
* Input: s = "barfoofoobarthefoobarman", words = ["bar","foo","the"]
* Output: [6,9,12]
*
*
* Constraints:
*
* 1 <= s.length <= 104
* s consists of lower-case English letters.
* 1 <= words.length <= 5000
* 1 <= words[i].length <= 30
* words[i] consists of lower-case English letters.
*
********************************************/
// @lc code=start
class Solution {
public:
vector<int> findSubstring(string s, vector<string>& words) {
vector<int> res;
if (s.size() == 0 || words.size() == 0) return res;
unordered_map<string, int> m1;
for (auto item : words) m1[item]++;
int n = words.size();
int m = words[0].size();
for (int i = 0; i <= int(s.size()) - n * m; i++) {
unordered_map<string, int> m2;
int j = 0;
for (j = 0; j < n; j++) {
string item = s.substr(i + j * m, m);
if (m1.find(item) == m1.end()) break;
++m2[item];
if (m2[item] > m1[item]) break;
}
if (j == n) res.push_back(i);
}
return res;
}
};
// @lc code=end
|
d9d6ae72301940d10305e797e54a98a1de2b2563
|
6c679bc5227e8dedcec85dadab43e7a96e308778
|
/TimeMachine/preintegrate/BringUp.txt
|
41ac72912638b2a11b96201bb81b3c5fa99c615f
|
[] |
no_license
|
marshalltaylorSFE/ArduinoSynthLooper
|
b0cd8946cdfa59dfd09c3f87ebfda9d5af4e9c9b
|
8b8bd58d4e1ce843c4d6f38b24c075aa389a475b
|
refs/heads/master
| 2021-01-10T19:43:43.125958
| 2019-02-23T01:41:50
| 2019-02-23T01:41:50
| 39,349,241
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 9,649
|
txt
|
BringUp.txt
|
#include <MIDI.h>
#include <midi_Defs.h>
#include <midi_Message.h>
#include <midi_Namespace.h>
#include <midi_Settings.h>
#include "timerModule.h"
#include "TimeCode.h"
#include "stdint.h"
#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11); // RX, TX
//**********************************************************************//
// BEERWARE LICENSE
//
// This code is free for any use provided that if you meet the author
// in person, you buy them a beer.
//
// This license block is BeerWare itself.
//
// Written by: Marshall Taylor
// Created: March 21, 2015
//
//**********************************************************************//
//Includes for The MicroLinkedList Library
#include "MicroLL.h"
MidiEvent * nextEventToPlay;
//fstream-like file operations on memory:
#include "MemFile.h"
const uint8_t midiFileLUT [169] = { 0x4D, 0x54, 0x68, 0x64, 0x00, 0x00, 0x00, 0x06, 0x00, 0x01, 0x00, 0x01, 0x01, 0x80, 0x4D, 0x54, 0x72, 0x6B, 0x00, 0x00, 0x00, 0x93, 0x00, 0xFF, 0x58, 0x04, 0x04, 0x02, 0x18, 0x08, 0x00, 0xFF, 0x51, 0x03, 0x04, 0x93, 0xE0, 0x00, 0x90, 0x24, 0x32, 0x35, 0x80, 0x24, 0x30, 0x2B, 0x90, 0x30, 0x32, 0x35, 0x80, 0x30, 0x30, 0x2B, 0x90, 0x24, 0x32, 0x35, 0x80, 0x24, 0x30, 0x2B, 0x90, 0x30, 0x32, 0x35, 0x80, 0x30, 0x30, 0x2B, 0x90, 0x24, 0x32, 0x35, 0x80, 0x24, 0x30, 0x2B, 0x90, 0x30, 0x32, 0x35, 0x80, 0x30, 0x30, 0x2B, 0x90, 0x24, 0x32, 0x35, 0x80, 0x24, 0x30, 0x2B, 0x90, 0x30, 0x32, 0x35, 0x80, 0x30, 0x30, 0x2B, 0x90, 0x24, 0x32, 0x35, 0x80, 0x24, 0x30, 0x2B, 0x90, 0x30, 0x32, 0x35, 0x80, 0x30, 0x30, 0x2B, 0x90, 0x24, 0x32, 0x35, 0x80, 0x24, 0x30, 0x2B, 0x90, 0x30, 0x32, 0x35, 0x80, 0x30, 0x30, 0x2B, 0x90, 0x24, 0x32, 0x35, 0x80, 0x24, 0x30, 0x2B, 0x90, 0x30, 0x32, 0x35, 0x80, 0x30, 0x30, 0x2B, 0x90, 0x24, 0x32, 0x35, 0x80, 0x24, 0x30, 0x2B, 0x90, 0x30, 0x32, 0x35, 0x80, 0x30, 0x30, 0x4B, 0xFF, 0x2F, 0x00 };
uint8_t * midiFileLUTPointer = (uint8_t *)midiFileLUT;
MemFile myFile( midiFileLUTPointer, midiFileLUTPointer + 168, 169 );
//File reading algorithm
#include "MidiFile.h"
MidiFile midiFile(myFile);
//HOW TO OPERATE
// Make TimerClass objects for each thing that needs periodic service
// pass the interval of the period in ticks
// Set MAXINTERVAL to the max foreseen interval of any TimerClass
// Set MAXTIMER to overflow number in the header. MAXTIMER + MAXINTERVAL
// cannot exceed variable size.
//Connect listener pin 2 to sender pin 1 (and ground)
#define LEDPIN 13
#define FRAMERATE 25 //24, 25, 29.97 30
//Globals
TimerClass debounceTimer( 100 );
TimerClass ledTimer( 500 );
TimerClass ledDwell( 200 );
TimerClass inputTimer( 100 );
TimerClass qBeatTimer( 1000 );
uint16_t msTicks = 0;
uint8_t msTicksMutex = 1; //start locked out
BeatCode playHead;
uint8_t framePiece;
#define button2pin 2
#define button3pin 3
#define button4pin 4
uint8_t buttonReg = 0;
uint8_t protoSynthFeed = 0;
//MIDI_CREATE_INSTANCE(HardwareSerial, Serial, midiPort);
MIDI_CREATE_DEFAULT_INSTANCE();
#define MAXINTERVAL 2000
uint8_t frameNumber = 0;
uint16_t myBPM = 100;
//uint16_t time64th = 200;
// -----------------------------------------------------------------------------
// This function will be automatically called when a NoteOn is received.
// It must be a void-returning function with the correct parameters,
// see documentation here:
// http://arduinomidilib.fortyseveneffects.com/a00022.html
int16_t offset = 0;
void handleNoteOn(byte channel, byte pitch, byte velocity)
{
// Do whatever you want when a note is pressed.
//Make me a sammach
offset = pitch - 28;
// Try to keep your callbacks short (no delays ect)
// otherwise it would slow down the loop() and have a bad impact
// on real-time performance.
}
void handleNoteOff(byte channel, byte pitch, byte velocity)
{
// Do something when the note is released.
// Note that NoteOn messages with 0 velocity are interpreted as NoteOffs.
}
// -----------------------------------------------------------------------------
void setup()
{
//Buttons
pinMode(button2pin, INPUT_PULLUP);
pinMode(button3pin, INPUT_PULLUP);
pinMode(4, INPUT_PULLUP);
//Test button pin
pinMode(7, INPUT_PULLUP);
//Test LED pins
pinMode(8, OUTPUT);
pinMode(9, OUTPUT);
//Serial.begin(9600);
pinMode(LEDPIN, OUTPUT);
// Connect the handleNoteOn function to the library,
// so it is called upon reception of a NoteOn.
MIDI.setHandleNoteOn(handleNoteOn); // Put only the name of the function
// Do the same for NoteOffs
MIDI.setHandleNoteOff(handleNoteOff);
MIDI.begin(MIDI_CHANNEL_OMNI);
MIDI.turnThruOff();
// initialize Timer1
cli(); // disable global interrupts
TCCR1A = 0; // set entire TCCR1A register to 0
TCCR1B = 0; // same for TCCR1B
// set compare match register to desired timer count:
OCR1A = 16000;
// turn on CTC mode:
TCCR1B |= (1 << WGM12);
// Set CS10 and CS12 bits for 1 prescaler:
TCCR1B |= (1 << CS10);
// enable timer compare interrupt:
TIMSK1 |= (1 << OCIE1A);
// enable global interrupts:
sei();
// set the data rate for the SoftwareSerial port
mySerial.begin(57600);
mySerial.println("Program Started");
mySerial.print("Ticks per quarter-note: ");
mySerial.println(midiFile.ticksPerQuarterNote);
nextEventToPlay = midiFile.track2.startObjectPtr;
}
int i = 0;
void loop()
{
// main program
digitalWrite( 8, digitalRead(7));
if( digitalRead(7) == 0)
{
playHead.zero();
framePiece = 0;
frameNumber = 0;
digitalWrite( 9, 0 );
}
if( msTicksMutex == 0 ) //Only touch the timers if clear to do so.
{
debounceTimer.update(msTicks);
ledTimer.update(msTicks);
ledDwell.update(msTicks);
inputTimer.update(msTicks);
qBeatTimer.update(msTicks);
//Done? Lock it back up
msTicksMutex = 1;
} //The ISR should clear the mutex.
if(debounceTimer.flagStatus() == PENDING)
{
//Is the button new?
uint8_t tempButtonReg = digitalRead(4)^0x01;
//mySerial.print( tempButtonReg );
if( tempButtonReg != buttonReg )
{
//Going to track 2 or 1?
if( tempButtonReg == 0 )
{
//track1
//seek the next note to play
nextEventToPlay = midiFile.track1.seekNextAfter(playHead.ticks);
protoSynthFeed = 0;
mySerial.println("button 0");
buttonReg = 0;
}
else
{
//track2
//seek the next note to play
nextEventToPlay = midiFile.track2.seekNextAfter(playHead.ticks);
protoSynthFeed = 1;
mySerial.println("button 1");
buttonReg = 1;
}
}
}
if(ledTimer.flagStatus() == PENDING)
{
//Turn on LED
digitalWrite( LEDPIN, 1 );
//Reset the timer
ledDwell.set(200);
}
if(ledDwell.flagStatus() == PENDING)
{
// If the light is on, turn it off
if( digitalRead(LEDPIN) == 1 )
{
digitalWrite(LEDPIN, 0);
}
}
if(inputTimer.flagStatus() == PENDING)
{
uint32_t tempKnobValue = (analogRead( A0 ) >> 2 );
myBPM = ((tempKnobValue * 800) >> 8) + 40;
//time64th = ((1875 / myBPM ) >> 1 );// 60000 / myBPM / 64; //ms per 1/64th beat
qBeatTimer.setInterval( 60000 / myBPM / 64 );
//LED gen
ledTimer.setInterval( 60000 / myBPM );
}
if(qBeatTimer.flagStatus() == PENDING)
{
qBeatTick();
}
i++;
//DO THIS S*** CONTINOUSLY
MIDI.read();
//Seek here
if(nextEventToPlay->timeStamp < playHead.ticks)
{
if((nextEventToPlay != &midiFile.track1.nullObject)&&(nextEventToPlay != &midiFile.track2.nullObject))
{
switch(nextEventToPlay->eventType)
{
case 0x80: //Note off
//mySerial.println("Note Off");
MIDI.sendNoteOff((nextEventToPlay->value) + offset, nextEventToPlay->data,1); // Send a Note (pitch, velo on channel 1)
break;
case 0x90: //Note on
MIDI.sendNoteOn((nextEventToPlay->value) + offset, nextEventToPlay->data,1); // Send a Note (pitch, velo on channel 1)
//mySerial.println("Note On");
break;
default:
//mySerial.println("Not a note!");
break;
}
nextEventToPlay = nextEventToPlay->nextObject;
}
}
if(playHead.ticks > 1535)
{
playHead.zero();
if(protoSynthFeed == 0)
{
nextEventToPlay = midiFile.track1.startObjectPtr;
}
else
{
nextEventToPlay = midiFile.track2.startObjectPtr;
}
}
}
void qBeatTick()
{
playHead.addFramePiece();
uint8_t data;
switch( playHead.framePiece )
{
case 0x00:
data = playHead.frames & 0x0F;
break;
case 0x01:
data = playHead.frames >> 4;
break;
case 0x02:
data = playHead.beats;
break;
case 0x03:
data = playHead.beats >> 4;
break;
case 0x04:
data = playHead.bars;
break;
case 0x05:
data = playHead.bars >> 4;
break;
case 0x06:
data = playHead.eightBars;
break;
default:
case 0x07:
data = playHead.eightBars >> 4;
break;
}
//Big hit
// mySerial.print( playHead.ticks );
// mySerial.print(":");
// mySerial.print( playHead.eightBars );
// mySerial.print(",");
// mySerial.print( playHead.bars );
// mySerial.print(",");
// mySerial.print( playHead.beats );
// mySerial.print(",");
// mySerial.print( playHead.frames );
// mySerial.print(",");
// mySerial.print( playHead.framePiece );
// mySerial.print("\n");
//Send here
//MIDI.sendTimeCodeQuarterFrame( playHead.framePiece, data );
}
ISR(TIMER1_COMPA_vect)
{
uint32_t returnVar = 0;
if(msTicks >= ( MAXTIMER + MAXINTERVAL ))
{
returnVar = msTicks - MAXTIMER;
}
else
{
returnVar = msTicks + 1;
}
msTicks = returnVar;
msTicksMutex = 0; //unlock
}
|
344d129e24c74298d20add46a0e345d9193dca8b
|
07f049d4b9dee0a35d524f08552302fa1664efd7
|
/run/tutorials/incompressible/simpleFoam/pitzDailyNew/800/epsilon
|
70f62a28a304d22cbbb40f15622e42582460b3ad
|
[] |
no_license
|
crisefd/MyOpenfoam231
|
759913f01be33392e5f042e74114d4c195d91fd4
|
82974f3688b850f26b24dfecea4d5c1165d997cd
|
refs/heads/master
| 2021-01-10T13:15:49.943263
| 2015-12-17T01:25:22
| 2015-12-17T01:25:22
| 45,358,477
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 2,275
|
epsilon
|
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "800";
object epsilon;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -3 0 0 0 0];
internalField nonuniform List<scalar>
100
(
0.000187985
0.000188109
0.000188189
0.000188242
0.000188269
0.00018827
0.000188244
0.000188193
0.000188117
0.000188015
0.000188109
0.000188225
0.000188305
0.000188358
0.000188385
0.000188385
0.00018836
0.000188308
0.000188231
0.000188126
0.000188189
0.000188305
0.000188385
0.000188438
0.000188465
0.000188465
0.000188439
0.000188387
0.000188309
0.000188203
0.000188242
0.000188358
0.000188438
0.000188491
0.000188518
0.000188518
0.000188492
0.000188439
0.00018836
0.000188254
0.000188269
0.000188385
0.000188465
0.000188518
0.000188544
0.000188544
0.000188517
0.000188465
0.000188385
0.000188278
0.00018827
0.000188385
0.000188465
0.000188518
0.000188544
0.000188544
0.000188517
0.000188464
0.000188384
0.000188277
0.000188244
0.00018836
0.000188439
0.000188492
0.000188517
0.000188517
0.00018849
0.000188437
0.000188357
0.00018825
0.000188193
0.000188308
0.000188387
0.000188439
0.000188465
0.000188464
0.000188437
0.000188383
0.000188304
0.000188197
0.000188117
0.000188231
0.000188309
0.00018836
0.000188385
0.000188384
0.000188357
0.000188304
0.000188224
0.000188117
0.000188015
0.000188126
0.000188203
0.000188254
0.000188278
0.000188277
0.00018825
0.000188197
0.000188117
0.00018801
)
;
boundaryField
{
frontAndBack
{
type empty;
}
defaultFaces
{
type empty;
}
}
// ************************************************************************* //
|
|
a13a6825b3e116a0c7d15e0c439b3d850c6afa93
|
8a0458d96da032528319422f5ced046621efc3da
|
/networktables/include/networktables2/server/ServerAdapterManager.h
|
db723d991fa33e1ee197caee9acc2c5a8a448778
|
[
"MIT"
] |
permissive
|
warrenlp/2015VisionCode
|
c44a1bba9f4432553a2900f16b13b16b6c9453ec
|
38a46724e2fbdc57baeeb7bf196327a106437f11
|
refs/heads/master
| 2021-01-18T02:19:24.809552
| 2015-12-30T02:10:05
| 2015-12-30T02:10:05
| 46,771,955
| 1
| 1
| null | 2015-12-30T02:10:05
| 2015-11-24T06:31:57
|
C++
|
UTF-8
|
C++
| false
| false
| 692
|
h
|
ServerAdapterManager.h
|
/*
* ServerAdapterManager.h
*
* Created on: Sep 26, 2012
* Author: Mitchell Wills
*/
#ifndef SERVERADAPTERMANAGER_H_
#define SERVERADAPTERMANAGER_H_
class ServerAdapterManager;
#include "networktables2/server/ServerConnectionAdapter.h"
/**
* A class that manages connections to a server
*
* @author Mitchell
*
*/
class ServerAdapterManager
{
public:
virtual ~ServerAdapterManager()
{
}
/**
* Called when a connection adapter has been closed
* @param connectionAdapter the adapter that was closed
*/
virtual void close(ServerConnectionAdapter& connectionAdapter, bool closeStream) = 0;
};
#endif /* SERVERADAPTERMANAGER_H_ */
|
a21b8a26df59db9c2f2c721b857a2e6a07d53901
|
aaa20c0c80642821fe87e1ed00895b1a08966ec6
|
/Aufgabe 4/OneDimObject.hpp
|
b185e9517c8f992f574951b523b0b5e59a4f609e
|
[] |
no_license
|
HSE-SWB2-OOS/OOS-LB5
|
8a9cb475ea2972b9ac74adda794eefb4397203bb
|
500547abfaa32f784257b7741f21a9beb385c068
|
refs/heads/master
| 2016-09-05T18:10:48.141339
| 2015-06-26T06:41:04
| 2015-06-26T06:41:04
| 37,471,060
| 1
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 605
|
hpp
|
OneDimObject.hpp
|
/* Uebungen zu OOP, Aufgabe 2.3
Erstersteller: Jan Binder, Matthias Geckeler, Thomas Günter
E-Mail: jabi00@hs-esslingen.de, matthias.geckeler@stud.hs-esslinge.de, Thomas.Guenter@stud.hs-esslingen.de
Datum: 03.06.2015
Version: 1.0
Zeitaufwand: 0,5h
Aenderungshistorie:
-------------------
Durchgefuehrte Aenderung | Autor | Datum
-------------------------------------------------------
Programmbeschreibung:
---------------------
*/
#pragma once
#include "DrawingObject.hpp"
class OneDimObject : public DrawingObject {
public:
// Konstruktoren und Destruktoren
OneDimObject();
~OneDimObject();
};
|
0b0ef7329799dcdd8442eba4edab015b2303e850
|
7c63a96fad4257f4959ffeba0868059fc96566fb
|
/cpp/std-14/s_meyers-effective_modern_cpp/code/ch_05-rvalue_refs/item_27-alternatives_to_overloading_on_universal_refs/case_2-tag_dispatching/main.cpp
|
04423e13eb9cf0e4d3cfea4e5b9b2402d2b8e57d
|
[
"MIT"
] |
permissive
|
ordinary-developer/education
|
b426148f5690f48e0ed4853adfc3740bd038b72c
|
526e5cf86f90eab68063bb7c75744226f2c54b8d
|
refs/heads/master
| 2023-08-31T14:42:37.237690
| 2023-08-30T18:15:18
| 2023-08-30T18:15:18
| 91,232,306
| 8
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,037
|
cpp
|
main.cpp
|
#include <string>
#include <set>
#include <memory>
#include <type_traits>
#include <chrono>
class Logger {
public:
template <typename T>
void logAndAdd(T&& name)
{
logAndAddImpl(std::forward<T>(name),
std::is_integral<std::remove_reference_t<T>>());
}
template <typename T>
void logAndAddImpl(T&& name, std::false_type)
{
auto now = std::chrono::system_clock::now();
log();
names.emplace(std::forward<T>(name));
}
// a dump function
std::string nameFromIdx(int idx)
{
return std::string("exempli gratia");
}
void logAndAddImpl(int idx, std::true_type)
{
logAndAdd(nameFromIdx(idx));
}
private:
// a dump function
void log() { }
std::multiset<std::string> names;
};
int main() {
Logger logger;
logger.logAndAdd("simpel string");
logger.logAndAdd(0);
return 0;
}
|
92697fa7800b1bbbbfdb643eaa34b573ff64e308
|
1f09440f2c51c53d0b192c9075d9e4856cf94f81
|
/3-nishijima/glmm_poisson.cpp
|
3f010281c414f43502749bbca6a8352e408a6e5d
|
[] |
no_license
|
ichimomo/shigen_kensyu2019A
|
1d6232161d3ecc378550cecf8982add5ce977405
|
c14e3ac5cee37f0e106f1bc82ce63923cd7aa6a0
|
refs/heads/master
| 2020-06-26T23:06:27.498811
| 2020-04-07T02:50:10
| 2020-04-07T02:50:10
| 199,782,578
| 1
| 5
| null | 2019-10-07T15:44:13
| 2019-07-31T05:05:34
|
HTML
|
UTF-8
|
C++
| false
| false
| 639
|
cpp
|
glmm_poisson.cpp
|
// glmm with Poisson distribution
#include <TMB.hpp>
#include <iostream>
template<class Type>
Type objective_function<Type>::operator() ()
{
// DATA //
DATA_VECTOR(Y);
DATA_VECTOR(X);
// PARAMETER //
PARAMETER_VECTOR(beta); // fixed effect
PARAMETER_VECTOR(epsilon); // random effect
vector<Type> r(X.size());
Type nll=0;
for(int i=0;i<X.size();i++){
r(i) = beta(CppAD::Integer(Type(0)))+beta(CppAD::Integer(Type(1)))*X(i)+epsilon(i);
nll -= dpois(Y(i),exp(r(i)),true); // poisson distribution
nll -= dnorm(epsilon(i),Type(0),beta(CppAD::Integer(Type(2))),true); // random effect
}
return nll;
}
|
0fe4dfd12c0137f9247235026ea399da1bd709c0
|
d73cb2d4d045c23ffa3823ae1ccc8c505a563bfa
|
/c program/Project1/9w2.cpp
|
1e676102030c08a19cab3d74bf6823c601708ab6
|
[] |
no_license
|
Kimchanghwan2/c-
|
968a0dc182f3a790c72f37bde62ea1ffe6d7197a
|
29fb2aeedc7d417fa3217a051659cb3c33eb072a
|
refs/heads/master
| 2020-07-28T16:45:38.014010
| 2019-12-12T04:26:17
| 2019-12-12T04:26:17
| 209,470,135
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 226
|
cpp
|
9w2.cpp
|
#include <stdio.h>
int main(void)
{
int data[] = { 3,21,35,57,24,82,8 };
int size = sizeof(data) / sizeof(data[0]);
for (int i = 0; i < size; i++)
{
* (data + i) = 10 + data[i];
printf("%d\n", data[i]);
}
return 0;
}
|
d10c1cb74f48c0dc081a3061d6d169b71d7eba6d
|
2d06fc4558f40cb7420b69372d04b6ab9add0a3e
|
/Chapter-15/ex 06-07.cpp
|
b7f7eaeb98d1267044dcc9bd1742afca1a3f146a
|
[] |
no_license
|
Naooki/stroustrup_ppp_exercises
|
f5724c64518448e92e4922d3bd6019b5d48902bf
|
687af7594dd57399efdbc25c9cb20a4c1062e942
|
refs/heads/master
| 2021-01-12T13:07:33.062992
| 2017-01-31T06:53:37
| 2017-01-31T06:53:37
| 72,111,086
| 2
| 0
| null | 2016-11-05T23:14:20
| 2016-10-27T13:28:30
|
C++
|
UTF-8
|
C++
| false
| false
| 612
|
cpp
|
ex 06-07.cpp
|
#include "Simple_window.h"
int main()
{
Simple_window win(Point(100, 100), 1000, 600, "ex 6-7");
vector<double> vals = {14.88, 3.22, 5.56, 5.45};
Bar_graph bg(Point(100, 100),"MLG", vals, 800);
bg.set_color(Color::blue);
/*bg.rects[0].set_fill_color(Color::red);
bg.labels[0].set_label("\\o");
bg.rects[1].set_fill_color(Color::blue);
bg.labels[1].set_label("SOLO");
bg.rects[2].set_fill_color(Color::green);
bg.labels[2].set_label("nato");
bg.rects[3].set_fill_color(Color::yellow);
bg.labels[3].set_label("russian");*/
win.attach(bg);
win.wait_for_button();
}
|
adcd760605bbb24577dec6fd602b4903d975563d
|
f6cf00ddafb046887bd898844d403432be766bf7
|
/Source/Biased/Private/BiasedBPLibrary.cpp
|
9f760086a481278fa0d0b6592f4705d83f2333a8
|
[] |
no_license
|
TroyFerguson/Biased
|
b8abfcbec46dd750eb893d6a46c31a1ef57514c2
|
bd5a26755bfbaab32908302238917769e9e8d67f
|
refs/heads/master
| 2020-12-25T18:42:44.705051
| 2017-07-02T05:33:24
| 2017-07-02T05:33:24
| 93,976,903
| 3
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 4,884
|
cpp
|
BiasedBPLibrary.cpp
|
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
#include "BiasedPrivatePCH.h"
#include "BiasedBPLibrary.h"
DEFINE_LOG_CATEGORY(BiasedLog);
float UBiasedBPLibrary::FLOATING_POINT_TOLERANCE = 0.00001f;
const int32 UBiasedBPLibrary::ALIAS_NONE = 0;
const int32 UBiasedBPLibrary::INVALID_ROLL = 0;
UBiasedBPLibrary::UBiasedBPLibrary(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
{
}
void UBiasedBPLibrary::NormaliseDieFaces(const TArray<FDieFace>& Faces, TArray<FDieFace>& NormalisedFaces)
{
//Determine the value we need to scale each face by to normalise them
float ProbabilityScaleFactor = 0.0f;
for (FDieFace Face : Faces)
{
ProbabilityScaleFactor += Face.Probability;
}
//Create a normalised copy of the faces
NormalisedFaces.Empty();
for (FDieFace Face : Faces)
{
FDieFace NormalisedFace(Face);
NormalisedFace.Probability /= ProbabilityScaleFactor;
NormalisedFaces.Add(NormalisedFace);
}
}
bool UBiasedBPLibrary::GenerateBiasedDieData(const TArray<FDieFace>& Faces, FBiasedDieData& OutBiasedDieData)
{
//Invalidate the die data before we process the new data
OutBiasedDieData.Invalidate();
TArray<FDieFace> Large, Small;
int32 ProbabilityScale = Faces.Num();
if (ProbabilityScale <= 0)
{
UE_LOG(BiasedLog, Warning, TEXT("Die has no faces."));
return false;
}
float TotalProbabilityCheck = 0.0;
//Sort faces into large and small faces based on their relative weightings
for (FDieFace Face : Faces)
{
TotalProbabilityCheck += Face.Probability;
FDieFace ScaledFace(Face.Value, Face.Probability * ProbabilityScale);
if (ScaledFace.Probability >= 1.0f)
{
Large.Add(ScaledFace);
}
else
{
Small.Add(ScaledFace);
}
}
//Quick check to see if the face data is normalised correctly
if ( !FMath::IsNearlyEqual( TotalProbabilityCheck, 1.0f, FLOATING_POINT_TOLERANCE) )
{
UE_LOG(BiasedLog, Warning, TEXT("Combined face probability is not 1."));
return false;
}
//FBiasedDieData Data;
bool bFinished = false;
while (!bFinished)
{
if (Small.Num() > 0)
{
if (Large.Num() > 0)
{
//Grab a large and a small face
FDieFace LargeFace = Large.Pop();
FDieFace SmallFace = Small.Pop();
//Create an alias for the pair of chosen faces
OutBiasedDieData.AddDieFaceAlias(SmallFace, LargeFace.Value);
//Consume the amount of probability from the large face that we have used
LargeFace.Probability = (LargeFace.Probability + SmallFace.Probability) - 1.0f;
//push the excess back into the system to be used later
if (LargeFace.Probability >= 1.0f)
{
Large.Add(LargeFace);
}
else
{
Small.Add(LargeFace);
}
}
else
{
//We've run out of large faces so we just fully fill out the probability
FDieFace Face = Small.Pop();
Face.Probability = 1.0f;
//We have no alias face here
OutBiasedDieData.AddDieFaceAlias(Face, ALIAS_NONE);
}
}
else
{
//We've run out of small faces so we just fully fill out the probability
FDieFace Face = Large.Pop();
Face.Probability = 1.0f;
//We have no alias face here
OutBiasedDieData.AddDieFaceAlias(Face, ALIAS_NONE);
}
if (Large.Num() == 0 && Small.Num() == 0)
{
bFinished = true;
}
}
//Validate the die date so it is ready to be used
OutBiasedDieData.Validate();
return true;
}
int32 UBiasedBPLibrary::RollBiasedDie(const FBiasedDieData& BiasedDieData)
{
if (!BiasedDieData.IsValid())
{
UE_LOG(BiasedLog, Warning, TEXT("Die data is invalid!"));
return INVALID_ROLL;
}
int32 RandIndex = FMath::Rand() % BiasedDieData.NumFaces();
float RandRoll = FMath::FRand();
return InternalRollBiasedDice(BiasedDieData, RandIndex, RandRoll);
}
int32 UBiasedBPLibrary::RollBiasedDieFromStream(const FBiasedDieData& BiasedDieData, const FRandomStream& RandomStream)
{
if (!BiasedDieData.IsValid())
{
UE_LOG(BiasedLog, Warning, TEXT("Die data is invalid!"));
return INVALID_ROLL;
}
int32 RandIndex = RandomStream.RandRange(0, BiasedDieData.NumFaces() - 1);
float RandRoll = RandomStream.FRand();
return InternalRollBiasedDice(BiasedDieData, RandIndex, RandRoll);
}
void UBiasedBPLibrary::AdjustErrorCheckingTolerance(float NewTolerance)
{
FLOATING_POINT_TOLERANCE = NewTolerance;
}
bool UBiasedBPLibrary::IsDieDataValid(const FBiasedDieData &BiasedDieData)
{
return BiasedDieData.IsValid();
}
int32 UBiasedBPLibrary::InternalRollBiasedDice(const FBiasedDieData &BiasedDieData, int32 RandIndex, float RandRoll)
{
FDieFaceAlias PairToRoll = BiasedDieData[RandIndex];
int32 Result = PairToRoll.Key.Value;
if (RandRoll > PairToRoll.Key.Probability)
{
Result = PairToRoll.Value;
}
return Result;
}
|
0dbb96f5a875b029ff4647ed3e080b442df31b49
|
80aab0d9bc51d9ebe9228f05576895727a8413ec
|
/Shorya Kansal/question9/solution.cpp
|
aed99484105f43f77d061ba1bf7edc168b4f96ce
|
[] |
no_license
|
shoryakansal/21DaysOfCode
|
0e9d31653184999d7bc05a968fcb43d5564ffe9a
|
894a9c1dc36ff9d90854bcc4406d4365e431499b
|
refs/heads/master
| 2022-07-19T06:07:18.036727
| 2020-05-29T18:24:44
| 2020-05-29T18:24:44
| 259,675,123
| 0
| 0
| null | 2020-04-28T15:22:26
| 2020-04-28T15:22:25
| null |
UTF-8
|
C++
| false
| false
| 547
|
cpp
|
solution.cpp
|
#include<bits/stdc++.h>
using namespace std;
int main()
{
long long int n,i,max=0,c=0,f=1,t;
cin>>n;
long long int a[n];
stack <long long int> st;
for(i=0;i<n;i++)
{
cin>>a[i];
}
for(i=0;i<n;i++)
{
if(a[i]>0)
{
st.push(a[i]);
t++;
if(t>1)
c=0;
}
else if(a[i]<0 && i>0&&!st.empty())
{
t=0;
if(st.top()==(-1*(a[i])) && !st.empty())
{
c=c+2;
st.pop();
if(max<c)
max=c;
}
else if(!st.empty())
{
c=0;
while(st.size())
st.pop();
}
}
}
cout<<max;
}
|
8185fb8d35841551c3e086d6bb5baa8967328d9e
|
b703cb4f590af7b5f138f4a383b2f6f31209993b
|
/mef02-c07/ensamb30.cpp
|
1aad0e93efbebf69f1a59b54384c0f5e77879389
|
[] |
no_license
|
Beasalman/mef
|
9d5e28a77d1dd25542174cd2e8a2289ec1167548
|
cd08c3b3cf7050fb76c38b7cd74c7e553faca025
|
refs/heads/master
| 2020-05-29T21:50:22.841664
| 2019-05-31T12:20:08
| 2019-05-31T12:20:08
| 189,392,446
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 2,876
|
cpp
|
ensamb30.cpp
|
#include "ensamb30.h"
/* -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- */
void ensamb30 (vector<int> ind, Matrix3d aelt, Vector3d belt, MatrixXd &a, VectorXd &b) {
/* ENSAMB30: Ensamblado de la matriz del sistema.
Matriz y vector elementales de dimensión 3.
Matrices llenas.
Entradas:
- ind: índices de las posiciones en la matriz global.
- aelt: matriz elemental (dimensión 3).
- belt: vector elemental (dimensión 3).
Entrada/salida:
- a: (puntero a la) matriz global.
- b: (punto a) vector global.
*/
for (int i=0; i<3; i++) {
for (int j=0; j<3; j++) {
a (ind[i],ind[j]) += aelt (i,j);
}
b (ind[i]) += belt (i);
}
}
/* -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- */
void ensamb30 (vector<int> ind, Matrix3d aelt, Vector3d belt, SparseMatrix <double> &a, VectorXd &b) {
/* ENSAMB30: Ensamblado de la matriz del sistema.
Matriz y vector elementales de dimensión 3.
Matrices huecas.
Entradas:
- ind: índices de las posiciones en la matriz global.
- aelt: matriz elemental (dimensión 3).
- belt: vector elemental (dimensión 3).
Entrada/salida:
- a: (puntero a la) matriz global.
- b: (punto a) vector global.
*/
for (int i=0; i<3; i++) {
for (int j=0; j<3; j++) {
a.coeffRef (ind[i],ind[j]) += aelt (i,j);
}
b (ind[i]) += belt (i);
}
}
/* -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- */
void ensamb30 (vector<int> ind, Matrix3d aelt, SparseMatrix <double> &a) {
/* ENSAMB30: Ensamblado de la matriz del sistema.
Matriz elemental de dimensión 3.
Matrices huecas.
Entradas:
- ind: índices de las posiciones en la matriz global.
- aelt: matriz elemental (dimensión 3).
Entrada/salida:
- a: (puntero a la) matriz global.
*/
for (int i=0; i<3; i++) {
for (int j=0; j<3; j++) {
a.coeffRef (ind[i],ind[j]) += aelt (i,j);
}
}
}
/* -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- */
void ensamb30 (vector<int> ind, Vector3d belt, VectorXd &b) {
/* ENSAMB30: Ensamblado de un vector.
Vector elementales de dimensión 3.
Entradas:
- ind: índices de las posiciones en la matriz global.
- belt: vector elemental (dimensión 3).
Entrada/salida:
- b: (punto a) vector global.
*/
for (int i=0; i<3; i++) {
b (ind[i]) += belt (i);
}
}
/* -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- */
|
a5b0dbd2ba577e6c674a30037b8ace2a51277519
|
972c2641d6ac0ba06fcfe49b4e369701ddaa4b4b
|
/.svn/pristine/a5/a5b0dbd2ba577e6c674a30037b8ace2a51277519.svn-base
|
6de8c24fcd6da8e378cee9ea14951f9cef00a0a2
|
[] |
no_license
|
mattrix27/moos-ivp-oyster
|
65176f0ff78037a8c4b2b67a552de633fedcc0ec
|
b001c1a60f023165856ea2bca6a2a2d3e4293064
|
refs/heads/main
| 2023-05-25T22:08:05.843274
| 2021-05-27T17:45:44
| 2021-05-27T17:45:44
| 362,630,835
| 1
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 16,264
|
a5b0dbd2ba577e6c674a30037b8ace2a51277519.svn-base
|
/*
* NMEAUtils.cpp
*
* Created on: Feb 3, 2014
* Author: Alon Yaari
*/
#include "NMEAUtils.h"
#include <stdlib.h> // Must explicitly include stdlib.h for clang to find abs()
#include <sstream>
#include <iomanip>
#include "MOOS/libMOOS/MOOSLib.h"
#include "MBUtils.h"
#include "NMEAutcTime.h"
#include "NMEAparsing.h"
#include "math.h" // pow()
using namespace std;
// ValidCharInString()
// Returns true if the char is in the string
// Input: char c the char in question
// string validChars all possible valid values that char can be to be true
// blankIsValid the BLANK_CHAR character evaluates to blankIsValid
// caseInensitive TRUE means ignore case, FALSE means upper and lower aren't the same
bool ValidCharInString(char c, std::string validChars, bool blankIsValid, bool caseInsensitive)
{
if (c == BLANK_CHAR)
return blankIsValid;
if (caseInsensitive) {
validChars = toupper(validChars);
if (c >= 'a' && c <= 'z')
c -= 32; }
return (validChars.find(c, 0) != string::npos);
}
// OneCharToUShort()
// - Converts single char [c] into unsigned integer value
// - Returns true if [c] is '0' through '9'
// - Any other value is FALSE
bool OneCharToUShort(unsigned short& intVal, char c)
{
bool bGood = !(c < '0' || c > '9');
if (bGood)
intVal = (unsigned short) c - 48;
return bGood;
}
// CharsToUShort()
// - Converts three characters into an unsigned short integer
// - [ones] must be specified
// - [tens] and [hundreds] may be omitted
// - TRUE if [ones], [tens], [hundreds] converts to 000 through 999
// - FALSE if any chars not '0' through '9'
bool CharsToUShort(unsigned short &intVal, char ones, char tens, char hundreds)
{
unsigned short iHundreds, iTens, iOnes;
bool goodH = OneCharToUShort(iHundreds, hundreds);
bool goodT = OneCharToUShort(iTens, tens);
bool goodO = OneCharToUShort(iOnes, ones);
bool bGood = (goodH && goodT && goodO);
if (bGood)
intVal = iOnes + (iTens * 10) + (iHundreds * 100);
return bGood;
}
string UnsignedShortToStringWithTwoChars(unsigned short n)
{
string retStr = "";
n = n % 100; // Only dealing with tens and ones place
char ones = '0' + (n % 10);
n = n / 10;
char tens = '0' + (n % 10);
retStr += tens;
retStr += ones;
return retStr;
}
bool IsValidBoundedInt(const int& i, const int& min, const int& max, bool inclusive, bool blankOK)
{
if (i == BLANK_INT)
return blankOK;
if (inclusive)
return (i >= min && i <= max);
return (i > min && i < max);
}
bool IsValidBoundedDouble(const double& d, const double& min, const double& max, bool inclusive, bool blankOK)
{
if (d == BLANK_DOUBLE)
return blankOK;
if (inclusive)
return (d >= min && d <= max);
return (d > min && d < max);
}
bool IsValidBoundedUChar(const unsigned char& uc, const unsigned char& min, const unsigned char max, bool inclusive, bool blankOK)
{
if (uc == (unsigned char) BLANK_UCHAR)
return blankOK;
if (inclusive)
return (uc >= min && uc <= max);
return (uc > min && uc < max);
}
bool IsValidBoundedUShort(const unsigned short& u, const unsigned short& min, const unsigned short max, bool inclusive, bool blankOK)
{
if (u == BLANK_USHORT)
return blankOK;
if (inclusive)
return (u >= min && u <= max);
return (u > min && u < max);
}
void StoreDoubleFromNMEAstring(double& dStoreHere, const string &sStoreThis)
{
if (sStoreThis.empty())
dStoreHere = BLANK_DOUBLE;
else
ParseDouble(dStoreHere, sStoreThis);
}
void StoreUShortFromNMEAstring(unsigned short& uStoreHere, const std::string &sStoreThis)
{
if (sStoreThis.empty())
uStoreHere = BLANK_USHORT;
else
ParseUShort(uStoreHere, sStoreThis);
}
void StoreIntFromNMEAstring(int&iStoreHere, const std::string &sStoreThis)
{
if (sStoreThis.empty())
iStoreHere = BLANK_USHORT;
else
ParseInt(iStoreHere, sStoreThis);
}
void StoreCharFromNMEAstring(char& cStoreHere, const std::string &sStoreThis)
{
if (sStoreThis.empty())
cStoreHere = BLANK_CHAR;
else
ParseChar(cStoreHere, sStoreThis);
}
string CharToString(char c)
{
if (c == BLANK_CHAR || c == BAD_CHAR)
return "";
string strRet = "";
strRet += c;
return strRet;
}
string SingleDigitToString(unsigned short n)
{
return SingleDigitToString((int) n);
}
string SingleDigitToString(int n)
{
n = abs(n);
char c = '0' + (n % 10);
return CharToString(c);
}
string TwoDigitsToString(unsigned short n)
{
return TwoDigitsToString((int) n);
}
string TwoDigitsToString(int n)
{
if (n == BLANK_USHORT || n == BAD_USHORT)
return "";
n = abs(n);
char ones = '0' + (n % 10);
n = n / 10;
char tens = '0' + (n % 10);
string strRet = "";
strRet += tens;
strRet += ones;
return strRet;
}
// BoundedDoubleToString()
// Constrains dVal between upper and lower, inclusive
string BoundedDoubleToString(double lower, double upper, unsigned short decimalPlaces, double dVal)
{
if (dVal == BLANK_DOUBLE || dVal == BAD_DOUBLE)
return "";
if (dVal < lower)
dVal = lower;
if (dVal > upper)
dVal = upper;
return doubleToString(dVal, decimalPlaces);
}
string FormatHDOP(double hdop)
{
if (hdop > 99.9)
hdop = 99.9;
if (hdop < 0.5)
hdop = 0.5;
int hdopInt = hdop * 10;
char tenths = '0' + (hdopInt % 10);
hdopInt /= 10;
char ones = '0' + (hdopInt % 10);
hdopInt /= 10;
char tens = '0' + (hdopInt % 10);
string hdopStr = "";
if (tens != '0')
hdopStr += tens;
hdopStr += ones;
hdopStr += '.';
hdopStr += tenths;
return hdopStr;
}
// FormatAltMSL()
// Alt above MSL -9999.9 to 999999.9 meters
string FormatAltMSL(double altMSL)
{
return BoundedDoubleToString(-9999.9, 999999.9, 1, altMSL);
}
// FormatAltGeoid()
// Geoid separation -999.9 to 9999.9 meters
string FormatAltGeoid(double altGeoid)
{
return BoundedDoubleToString(-999.9, 9999.9, 1, altGeoid);
}
// FormatPosDouble()
// leftDigits Number of digits to the left of the decimal point
// rightDigits Number of digits to the right of the decimal point
// Returns a string formatted with this number of digits
// Returns null string if:
// - Negative values
string FormatPosDouble(double dVal, unsigned short leftDigits, unsigned short rightDigits)
{
string retVal = "";
if (dVal < 0.0)
return retVal;
ostringstream doubleToString;
int width = leftDigits + rightDigits + 1;
doubleToString << fixed << setprecision(rightDigits) << setw(width) << setfill('0') << dVal;
retVal = doubleToString.str().c_str();
return retVal;
}
// FormatDouble()
// leftDigits Number of digits to the left of the decimal point
// rightDigits Number of digits to the right of the decimal point
// Returns a string formatted with this number of digits
string FormatDouble(double dVal, unsigned short leftDigits, unsigned short rightDigits)
{
ostringstream doubleToString;
int width = leftDigits + rightDigits + 1;
doubleToString << fixed << setprecision(rightDigits) << setw(width) << setfill('0') << dVal;
string retVal = doubleToString.str().c_str();
return retVal;
}
// ChecksumCalc()
// sentence Checksum will be created from this string
string ChecksumCalc(string sentence)
{
string ck = "00";
if (sentence.empty())
return ck;
unsigned char xCheckSum = 0;
biteString(sentence,'$');
string sToCheck = biteString(sentence,'*');
string sRxCheckSum = sentence;
string::iterator p;
for (p = sToCheck.begin(); p != sToCheck.end(); p++)
xCheckSum ^= *p;
ostringstream os;
os.flags(ios::hex);
os << (int) xCheckSum;
ck = toupper(os.str());
if (ck.length() < 2)
ck = "0" + ck;
return ck;
}
// IsUInt()
// str Input number as string
// minLen minimum .length() number of characters the string can be
// maxLen max .length() number of characters the string can be
bool IsUInt(std::string str, unsigned minLen, unsigned maxLen)
{
// Empty strings are not unsigned integers
if (str.empty())
return false;
// Entire string must be a number, no whitespace allowed
if (!isNumber(str, false))
return false;
// Unsigned integers do not have a negative sign
if (str.find('-') != string::npos)
return false;
// Must fit within the proper length
unsigned len = str.length();
if (len < minLen || len > maxLen)
return false;
// No decimal point allowed
if (str.find('.') != string::npos)
return false;
return true;
}
// IsFormattedDouble()
// str Input string representing a double
// minLen minimum .length() number of characters the string can be
// maxLen max .length() number of characters the string can be
// decPoint Zero-based index position where the decimal point should be (< 0 if not to check)
bool IsFormattedDouble(string str, unsigned minLen, unsigned maxLen, short decPoint)
{
// Empty strings are not double
if (str.empty())
return false;
// Entire string must be a number, no whitespace allowed
if (!isNumber(str, false))
return false;
// Must fit within the proper length
unsigned len = str.length();
if (len < minLen || len > maxLen)
return false;
// Decimal point in expected location
// - Do we need to check for dec point?
// - Expected position must be within valid length
// - Dec point must be at exact position
if (decPoint < 0)
return true;
if ((unsigned) decPoint >= len)
return false;
if (str.at(decPoint) != '.')
return false;
return true;
}
// IsSimpleDouble()
// Checks if the string is an nmea-valid floating point with no unallowed characters
// str Input string representing a double
bool IsSimpleDouble(string str)
{
if (str.empty())
return false;
string validChars = "01233456789-+.";
for (string::iterator it = str.begin(); it != str.end(); it++) {
if (validChars.find(*it) == string::npos)
return false; }
return true;
}
// IsSingleChar()
// str Input string to check that we are validating only has one char in it
// listOfValidChars Single string containing all the chars that the char may be
bool IsSingleChar(std::string str, std::string listOfValidChars)
{
// Input string must only contain one char
if (str.length() == 1) {
// That one char must be present in the list of valid characters
char c = str.at(0);
if (listOfValidChars.find(c) != string::npos)
return true; }
return false;
}
// IsGenericField()
// str Input string to validate
bool IsGenericField(string str)
{
// No space characters allowed
if (str.find(' ') != string::npos)
return false;
return true;
}
bool HexInAStringToUInt(const std::string hex, unsigned int& ui)
{
ui = 0;
int len = hex.length();
if (!len)
return true;
ui = HexCharToInt(hex.at(len - 1)); // start with the rightmost column (16th place)
for (int i = 1; i < len; i++) {
int val = HexCharToInt(hex.at(i - 1)) * pow(16, len - i);
if (val == -1)
return false;
ui += val; }
return true;
}
bool UIntToHexInAString(const unsigned int ui, std::string& hex, unsigned int padZeroToThisLen)
{
hex = "";
if (ui > 16777215) return false; // Can only handle numbers <= 16^6
bool nonZero = false;
unsigned int num = ui;
for (int i = 5; i != 0; i--) {
unsigned int curPow = pow(16, i);
unsigned int calc = num / curPow;
if (calc) nonZero = true;
if (nonZero) {
char c = IntToHexChar(calc);
if (c == 'X')
return false;
hex += c; }
num -= (calc * curPow); }
char c = IntToHexChar(num);
if (c == 'X')
return false;
hex += c;
while (hex.length() < padZeroToThisLen)
hex = '0' + hex;
return true;
}
// Input: 0123456789ABCDEF or abcdef
// Output: 0 to 15
// Invalid input char will return -1
int HexCharToInt(char h)
{
if (h >= '0' && h <= '9')
return (int) (h - '0');
if (h >= 'A' && h <= 'F')
return (int) (h - 'A' + 10);
if (h >= 'a' && h <= 'f')
return (int) (h - 'a' + 10);
return -1;
}
// Input: 0 to 15
// Output: 0123456789ABCDEF
// input < 0 or > 15 will return 'X'
char IntToHexChar(int i)
{
if (i >= 0 && i < 10)
return (char) (i + '0');
if (i < 16)
return (char) (i - 10 + 'A');
return 'X';
}
/* ATTIC
// FormatGeog()
// INPUT: geogVal struct with doubleDD populated
// OUTPUT: fully populated struct
// - Converts a double into an NMEA formatted lat or lon with hemisphere character
// - gVal.doubleDD is a double that is in the proper range for lat or lon
// - isLat is a bool; true if lat, false if lon
bool FormatGeog(geogVal& gVal, bool isLat)
{
bool bValid = (isLat ? IsValidLat(gVal) : IsValidLon(gVal));
if (bValid) {
double d = gVal.doubleDD;
if (d < 0) {
gVal.hemisphere = (isLat ? 'S' : 'E');
d *= -1.0; }
else {
gVal.hemisphere = (isLat ? 'N' : 'W'); }
// Format the value string
// - Always positive, no negative or positive signs
// - Format: ddmm.mmmmmm where d=degrees and m=minutes
// - Must have leading zeros
// - Decimal Degrees has the minutes and seconds rolled up into a fraction of a degree
// - Need to convert the fraction of the degree into minutes only
// - Isolate the fractional part (right side of the decimal point)
// - Multiply by 60 to get the number of degrees
int intVal = (int) d;
double degFraction = d - (double) intVal;
double mins = degFraction * 60.0;
double dddmm = (intVal * 100.0) + mins;
int width = (isLat ? 11 : 12);
ostringstream doubleToString;
doubleToString << fixed << setprecision(6) << setw(width) << setfill('0') << dddmm;
gVal.strValue = doubleToString.str();
gVal.bValid = true; }
return bValid;
}
// FormatLatStr()
// - Converts a double latitude value into an NMEA formatted string and hemisphere char
bool FormatLatStr(geogVal lat)
{
return FormatGeog(lat, true);
}
// FormatLonStr()
// - Converts a double longitude value into an NMEA formatted string and hemisphere char
bool FormatLonStr(geogVal lon)
{
return FormatGeog(lon, false);
}
// FormatMagVar()
// INPUT: geogVal struct with doubleDD populated, holding the magvar value
// OUTPUT: fully populated struct
// - Converts a double into a string representation of a double
// - mag.doubleDD is a double that is in the proper range for a magnetic offset
// - Valid MAGVAR values are -360.0 to 360.0
// - Negative values mean SUBTRACT this value from the magnetic compass heading
bool FormatMagVar(geogVal mag)
{
double d = mag.doubleDD;
bool bValid = IsValidBoundedDouble(d, 360.0, -360.0);
if (bValid) {
mag.hemisphere = (d < 0 ? 'W' : 'E');
d *= (d < 0 ? -1.0 : 1.0);
mag.strValue = doubleToString(d, 1);
mag.bValid = true; }
return bValid;
}
// IsValidLat
// Checks contents of a geogVal struct for a valid latitude
// Only checks the DD value
// Does not store results in struct, only reports
bool IsValidLat(const geogVal& lat)
{
return IsValidLatValue(lat.doubleDD);
}
// IsValidLon
// Checks contents of a geogVal struct for a valid longitude
// Only checks the DD value
// Does not store results in struct, only reports
bool IsValidLon(const geogVal& lon)
{
return IsValidLonValue(lon.doubleDD);
}
*/
//
|
|
b040c2fe08a1177bc5d833e9de7140cfb45511fa
|
ba2163f47cf28811c078ac9e278346a0f725165b
|
/src/Player.cpp
|
4c99a67f598f3ed94a50540664bde5859805c057
|
[] |
no_license
|
cmoylan/sdl-engine
|
49f6931b769858943133f0333f2bb92e25c70583
|
126a2aa2ce0292a1f8073590dd0438d471787d9d
|
refs/heads/master
| 2021-01-23T04:49:19.416398
| 2017-05-26T04:46:31
| 2017-05-26T05:19:16
| 80,394,717
| 1
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 852
|
cpp
|
Player.cpp
|
#include "Player.h"
Player::Player()
{
}
Player::~Player()
{
// FIXME: need to unsubscribe events here
//messageCentre().
}
void Player::init()
{
messageCentre().subscribe("collision", _uuid, bind(
&Player::handleCollisionEvent, this, placeholders::_1)
);
//initLifecycleFunctions();
//dddddscm_call_0(lc_init);
}
AssetList Player::assetData()
{
AssetList assets;
Asset asset;
asset.spriteFilename = "player.png";
asset.name = "player.png";
assets.push_back(asset);
this->assetName = "player.png";
return assets;
}
void Player::handleCollisionEvent(Message message)
{
cout << "collision from player!: " << message.test << endl;
//scm_call_0(lc_collision);
}
void Player::setScreenPositionFromOffset(int x, int y)
{
}
|
60b1ed036659c46d9736ad1e53ede38b64fae238
|
5d83739af703fb400857cecc69aadaf02e07f8d1
|
/Archive2/ce/d6db267e3488b0/main.cpp
|
5e2e14b40fcdbbffc536ca126750498e938080b2
|
[] |
no_license
|
WhiZTiM/coliru
|
3a6c4c0bdac566d1aa1c21818118ba70479b0f40
|
2c72c048846c082f943e6c7f9fa8d94aee76979f
|
refs/heads/master
| 2021-01-01T05:10:33.812560
| 2015-08-24T19:09:22
| 2015-08-24T19:09:22
| 56,789,706
| 3
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 126
|
cpp
|
main.cpp
|
struct Foo {
int a; bool b;
};
class C {
Foo f;
public:
C(int i) : f{i, false}
{}
};
int main() {
C c{12};
}
|
d250fac96238e80627a227d0928b23aa83352fac
|
368c2c66ce51919677ae6b29a04702af84e7e625
|
/Practica 6 MP - Lukas/src/Main_Pareja.cpp
|
f852aad5238aa0701bd0e6c2728f7f76cf6cf2a8
|
[] |
no_license
|
cazajuegos/MP
|
e232fd2ca4a8b25b6a07d99274c27aed5188c7d1
|
89ec93e5a3d4e732760942cb6cc7850adb71b259
|
refs/heads/master
| 2020-12-30T14:55:22.400523
| 2017-06-12T23:03:46
| 2017-06-12T23:03:46
| 91,096,103
| 0
| 1
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 370
|
cpp
|
Main_Pareja.cpp
|
#include<iostream>
#include "Pareja.h"
using namespace std;
int main(){
Precuencia secuencia;
char number[100];
cout << "Introduzca el numero: ";
cin.getline(number, 100);
int i = 0;
while(number[i] != '\0'){
int n = number[i] - '0', m = 1;
while(number[i + m] == number[i]) m++;
secuencia.setPareja(n, m);
i += m;
}
secuencia.show();
}
|
bb5a8f3c1cb9c465521838eb373cfc33d8b15d57
|
6c5fac165ccdc5a1e9982b89b2bdd87b32ced4c9
|
/bonsai/vertexfit.cc
|
3b8fcc265b4068cf012b99328bf83d5c4c55dc32
|
[] |
no_license
|
marc1uk/hk-BONSAI
|
12a0bd2fa33b1b3513656f2855c4631650201e13
|
d1d2d23464ef78f74b9d20c002c1193a16b7153c
|
refs/heads/master
| 2021-01-12T12:20:28.361892
| 2017-12-16T05:21:33
| 2017-12-16T05:21:33
| 72,444,763
| 1
| 0
| null | 2016-10-31T14:32:54
| 2016-10-31T14:32:54
| null |
UTF-8
|
C++
| false
| false
| 2,091
|
cc
|
vertexfit.cc
|
#include <stdio.h>
#include <stdlib.h>
#include "vertexfit.h"
#include "binfile.h"
// hit selection parameter
#define TCLOSE 3. // timing difference to pass unchecked
#define TRES 3. // timing resolution
// **********************************************
// load PMT positions; decide fit volume and
// test point radii
// **********************************************
void vertexfit::loadgeom(void)
{
int *sizes,*numbers;
void **starts;
binfile bf("geom.bin",'r');
npmt=bf.read(sizes,numbers,starts);
if (npmt!=1)
{
printf("Invalid Geometry file: %d Arrays\n",npmt);
exit(1);
}
if (sizes[0]!=4)
{
printf("Invalid Geometry file: Array of size %d\n",sizes[0]);
exit(1);
}
pmts=(float *)starts[0];
delete(sizes);
delete(starts);
npmt=numbers[0]/3;
delete(numbers);
}
void vertexfit::set(float resolution)
{
int i;
float r2,z;
rmax=0;
zmax=0;
for(i=0; i<npmt; i++)
{
r2=pmts[3*i]*pmts[3*i]+pmts[3*i+1]*pmts[3*i+1];
z=fabs(pmts[3*i+2]);
if (rmax<r2) rmax=r2;
if (zmax<z) zmax=z;
}
rmax=sqrt(rmax);
printf("Loaded %d PMT locations, maximum r=%f, maximum z=%f\n",
npmt,rmax,zmax);
set_cylinder(rmax,zmax,resolution);
set_hitsel(0.357*(rmax+zmax),0.01*(rmax+zmax),
0.09*sqrt(rmax*rmax+zmax*zmax),TRES,TCLOSE);
set_radius(0.43*zmax,0.43*zmax,0.86*zmax,zmax);
}
vertexfit::vertexfit(float resolution)
{
loadgeom();
set(resolution);
}
vertexfit::vertexfit(int np,float *ps,float resolution)
{
int i;
npmt=np;
pmts=new float[3*npmt];
for(i=0; i<3*npmt; i++)
pmts[i]=ps[i];
set(resolution);
}
// **********************************************
// do everything!
// **********************************************
vertexfit::vertexfit(float resolution,
int n_raw,int *cable,int *bad_ch,
float *tim_raw,float *chg_raw)
{
loadgeom();
set(resolution);
loadhits(n_raw,cable,bad_ch,tim_raw,chg_raw);
}
vertexfit::~vertexfit(void)
{
delete(pmts);
}
|
eb11f6eed0f07894894b4c9e4ce40419c35221a7
|
1fa5b40ae5b52feeca986492d50548e1b2506047
|
/src/PeopleDetection/PeopleDetection.cpp
|
d2a736a217f0a9dc3839eb818c64a67a7db74c20
|
[] |
no_license
|
malterik/VideoSystem
|
c16aee2e64f603693e1004a413c8791796e30396
|
badbd322021ef415755c94ca6428f43e48a34125
|
refs/heads/master
| 2021-06-04T08:05:30.787346
| 2016-08-26T12:27:39
| 2016-08-26T12:27:39
| 50,796,005
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 6,664
|
cpp
|
PeopleDetection.cpp
|
#include "PeopleDetection.hpp"
#include "../WindowManager/WindowManager.hpp"
#include "../json/json.hpp"
#include <iostream>
#include <fstream>
#include "../CameraInterface/CameraInterface.hpp"
#include "../Utils/print.hpp"
#include "../ImageWriter/ImageWriter.hpp"
using json = nlohmann::json;
PeopleDetection::PeopleDetection(cv::Mat initBackground) :
background_image_(), blur_img_(), contour_img_(), dilate_img_(),
image_(), kernel_(), thresh_img_(),
contours_(), contours_poly(), hierarchy_(),
people_candidates_(),
image_subtractor_(initBackground),
FILE_NAME_("config/PeopleDetection.json")
{
readConfig();
kernel_= cv::getStructuringElement(0,
cv::Size(2 * DILATE_KERNEL_SIZE_+ 1, 2 * DILATE_KERNEL_SIZE_+ 1),
cv::Point(DILATE_KERNEL_SIZE_, DILATE_KERNEL_SIZE_)
);
}
PeopleDetection::PeopleDetection() :
background_image_(), blur_img_(), contour_img_(),
image_(), kernel_(), thresh_img_(),
contours_(), contours_poly(), hierarchy_(),
people_candidates_(),
image_subtractor_(),
FILE_NAME_("config/PeopleDetection.json")
{
readConfig();
kernel_= cv::getStructuringElement(0,
cv::Size(2 * DILATE_KERNEL_SIZE_+ 1, 2 * DILATE_KERNEL_SIZE_+ 1),
cv::Point(DILATE_KERNEL_SIZE_, DILATE_KERNEL_SIZE_)
);
}
void PeopleDetection::setBackground(const cv::Mat backgroundImage)
{
background_image_ = backgroundImage;
}
void PeopleDetection::reset() {
//Reset all vectors
people_candidates_.clear();
contours_poly.clear();
}
// Trackbars
int dilateKernel;
int blurKernel;
int threshold;
int minBoundingBoxArea;
void on_trackbar_dilate( int, void* )
{
PeopleDetection peopleDetector;
if(dilateKernel == 0) return;
peopleDetector.setDilateKernelSize(dilateKernel);
peopleDetector.writeConfig();
}
void on_trackbar_blur( int, void* )
{
PeopleDetection peopleDetector;
if(blurKernel == 0) return;
peopleDetector.setBlurKernelSize(blurKernel);
peopleDetector.writeConfig();
}
void on_trackbar_threshold( int, void* )
{
PeopleDetection peopleDetector;
peopleDetector.setThreshold(threshold);
peopleDetector.writeConfig();
}
void on_trackbar_area( int, void* )
{
PeopleDetection peopleDetector;
peopleDetector.setMinBoundingBoxArea(minBoundingBoxArea);
peopleDetector.writeConfig();
}
void PeopleDetection::showTrackbars(const char* windowName) {
dilateKernel = DILATE_KERNEL_SIZE_;
blurKernel = BLUR_KERNEL_SIZE_;
threshold = THRESHOLD_;
minBoundingBoxArea = MIN_BOUNDING_BOX_AREA_;
cv::createTrackbar("Dilate Kernel" , windowName, &dilateKernel, 30, on_trackbar_dilate );
cv::createTrackbar("Blur Kernel" , windowName, &blurKernel, 30, on_trackbar_blur );
cv::createTrackbar("Threshold" , windowName, &threshold, 255, on_trackbar_threshold );
cv::createTrackbar("minBoundingBoxArea" , windowName, &minBoundingBoxArea, 50000, on_trackbar_area );
}
const std::vector<cv::Rect>& PeopleDetection::detect(const cv::Mat& image) {
readConfig();
std::vector<cv::Point> foundLocations;
image_ = image.clone();;
background_image_= image_subtractor_.subtractBackground(image_);
cv::threshold(background_image_, thresh_img_, THRESHOLD_, 255, CV_THRESH_BINARY);
cv::blur(thresh_img_, blur_img_, cv::Size(2 * BLUR_KERNEL_SIZE_ + 1, 2 * BLUR_KERNEL_SIZE_ +1));
cv::dilate(blur_img_, dilate_img_,cv::getStructuringElement(0,
cv::Size(2 * DILATE_KERNEL_SIZE_+ 1, 2 * DILATE_KERNEL_SIZE_+ 1),
cv::Point(DILATE_KERNEL_SIZE_, DILATE_KERNEL_SIZE_)));
dilate_img_.copyTo(contour_img_);
cv::findContours(contour_img_, contours_, hierarchy_, CV_RETR_EXTERNAL, CV_CHAIN_APPROX_NONE, cv::Point(0,0));
contours_poly.resize( contours_.size() );
for( unsigned int i = 0; i < contours_.size(); i++ )
{
approxPolyDP( cv::Mat(contours_[i]), contours_poly[i], 3, true );
cv::Rect boundRect = boundingRect( cv::Mat(contours_poly[i]) );
if(boundRect.area() > MIN_BOUNDING_BOX_AREA_)
{
people_candidates_.push_back(boundRect);
}
}
return people_candidates_;
}
void PeopleDetection::debugImage() const {
WindowManager::getInstance().addImage(background_image_);
WindowManager::getInstance().addImage(thresh_img_);
WindowManager::getInstance().addImage(blur_img_);
WindowManager::getInstance().addImage(dilate_img_);
WindowManager::getInstance().addImage(contour_img_);
}
void PeopleDetection::saveDebugImages() const {
ImageWriter iw("Images/");
iw.writeImage(background_image_,"BackgroundImage");
iw.writeImage(thresh_img_,"ThresholdImage");
iw.writeImage(blur_img_,"BlurImage");
iw.writeImage(contour_img_,"ContourImage");
iw.writeImage(dilate_img_,"DilateImage");
}
void PeopleDetection::writeConfig() {
json peopleDetectionConfig;
std::ofstream configFile;
peopleDetectionConfig["DILATE_KERNEL_SIZE_"] = DILATE_KERNEL_SIZE_;
peopleDetectionConfig["BLUR_KERNEL_SIZE_"] = BLUR_KERNEL_SIZE_;
peopleDetectionConfig["THRESHOLD_"] = THRESHOLD_;
peopleDetectionConfig["MIN_BOUNDING_BOX_AREA_"] = MIN_BOUNDING_BOX_AREA_;
configFile.open(FILE_NAME_);
if (configFile.is_open()) {
configFile<< peopleDetectionConfig.dump(4) << std::endl;
configFile.close();
}
else std::cout << "Unable to open file";
}
void PeopleDetection::readConfig() {
std::string line;
json peopleDetectionConfig;
std::ifstream configFile (FILE_NAME_);
if (configFile.is_open()) {
std::string str((std::istreambuf_iterator<char>(configFile)),
std::istreambuf_iterator<char>());
peopleDetectionConfig = json::parse(str);
DILATE_KERNEL_SIZE_ = peopleDetectionConfig["DILATE_KERNEL_SIZE_"];
BLUR_KERNEL_SIZE_ = peopleDetectionConfig["BLUR_KERNEL_SIZE_"];
THRESHOLD_ = peopleDetectionConfig["THRESHOLD_"];
MIN_BOUNDING_BOX_AREA_ = peopleDetectionConfig["MIN_BOUNDING_BOX_AREA_"];
configFile.close();
} else std::cout << "Unable to open people detection config file" << std::endl;
}
// Getter and setter functions
void PeopleDetection::setDilateKernelSize(int dilateKernelSize) {
DILATE_KERNEL_SIZE_ = dilateKernelSize;
}
int PeopleDetection::getDilateKernelSize() {
return DILATE_KERNEL_SIZE_;
}
void PeopleDetection::setBlurKernelSize(int blurKernelSize) {
BLUR_KERNEL_SIZE_ = blurKernelSize;
}
int PeopleDetection::getBlurKernelSize() {
return BLUR_KERNEL_SIZE_;
}
void PeopleDetection::setThreshold(int threshold) {
THRESHOLD_ = threshold;
}
int PeopleDetection::getThreshold() {
return THRESHOLD_;
}
void PeopleDetection::setMinBoundingBoxArea(int minBoundingBoxArea) {
MIN_BOUNDING_BOX_AREA_ = minBoundingBoxArea;
}
int PeopleDetection::getMinBoundingBoxArea() {
return MIN_BOUNDING_BOX_AREA_;
}
|
364d4d56178d77f2d6053d5c02323dbdf581515f
|
d452a9c74124368643ac5fb5c9586dea84f5be5f
|
/engine/includes/Common.h
|
5894105f5dfde25aca8d444311c6a40e4b4f0496
|
[] |
no_license
|
ribeiropdiogo/CG
|
822f0bd2609a5aa60750688dd044bd8ea9bc33b2
|
c9de752b9fb1a019f3ce3381ab1e158fedfa1d07
|
refs/heads/master
| 2022-09-16T08:42:28.690690
| 2020-05-30T11:42:41
| 2020-05-30T11:42:41
| 279,054,696
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 439
|
h
|
Common.h
|
/**
* Defines common functions and transversal to all mechanisms
* in the engine.
*/
#ifndef GENERATOR_COMMON_H
#define GENERATOR_COMMON_H
#include <string>
/**
* Verifies is a string is suffix of another.
*
* @param fullString Full string-
* @param ending Suffix to match with.
*
* @return true if the string is suffixed, false otherwise.
*/
bool isSuffixOf (std::string const &fullString, std::string const &ending);
#endif
|
e8d8b45aa9e919934434d800464bc2c96d711f6a
|
66d48cbca3584b43bdd74ca004d272f0d65e37f7
|
/ui-doc-viewer/models/include/image_model.h
|
0eb7aba427ac7e899be5482a72c2bdf56d694f29
|
[] |
no_license
|
pornosaur/stochastic-image-denoising
|
ebba18b7c3e69c805171643fd513a498220f5a81
|
acfe42aa4d9e066c0ea41c172dc2f1aebc791b57
|
refs/heads/main
| 2023-01-31T13:59:24.180388
| 2020-12-13T01:32:51
| 2020-12-13T01:32:51
| 320,784,143
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,494
|
h
|
image_model.h
|
//
// Created by Patrik Patera on 28/11/2019.
//
#ifndef STOCHASTIC_IMAGE_DENOISING_IMAGE_MODEL_H
#define STOCHASTIC_IMAGE_DENOISING_IMAGE_MODEL_H
#include <QObject>
#include <QImage>
#include <image_denoising.h>
#include <QtCore/QMap>
namespace qmodel {
class ImageModel : public QObject {
Q_OBJECT
private:
QString m_image_internal_uuid;
QString m_img_path, m_img_name, m_img_format;
QImage m_img;
public:
explicit ImageModel(QString img_path);
ImageModel(const QImage &image);
/**
* Saving an image to a file.
* @param img_path path to an image.
* @return true - image was saved, otherwise not.
*/
bool save_image(const QString &img_path = "");
inline QString get_internal_id() const { return m_image_internal_uuid; }
inline bool is_loaded() const { return !m_img.isNull(); }
inline QString get_name() const { return m_img_name; }
inline QImage &get_image() { return m_img; }
inline bool is_path_empty() const {return m_img_path.isEmpty(); }
static cv::Mat convert_to_mat(const QImage &img);
static QImage mat_to_qimage(const cv::Mat &mat);
static QImage mat_to_qimage2(const cv::Mat &inMat);
};
class ImageModelList {
private:
ImageModel *m_actual_model;
QMap<QString, ImageModel> m_image_map;
public:
};
}
#endif //STOCHASTIC_IMAGE_DENOISING_IMAGE_MODEL_H
|
ea23145493e7c8b2bf0533461761be329a3be2ec
|
13e3c317c9da3777e51dbca8f168cb5a50b35308
|
/src/JobSystems/UserLevelJobSystem/AssistantKernelWorkerThread.h
|
31d7afe4c880269fc4404bc4da586117df7a135b
|
[] |
no_license
|
animet/BA2_JobSystems_Threads
|
4c446ac1231116a7e92fa41f684cc69e2e8bd5b6
|
dfea09108a7b571d046c7e272773322d408315bb
|
refs/heads/master
| 2020-03-28T20:54:16.830921
| 2017-06-17T10:31:42
| 2017-06-17T10:31:42
| 94,615,900
| 2
| 1
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,049
|
h
|
AssistantKernelWorkerThread.h
|
//#pragma once
//
//#include "Fiber.h"
//class FiberScheduler;
//
//class AssistantKernelWorkerThread
//{
//public:
// AssistantKernelWorkerThread();
// ~AssistantKernelWorkerThread();
//
// //Kernel-Level
// HANDLE m_Thread;
// DWORD_PTR m_ProcessorAffinity;
// DWORD m_ThreadId;
// //Fiber
// void* m_AssistantFiberPointer;
// //Use this fiber pointer:
// void* m_concreteAssistantFiberPointer;
//
// void Initialize(FiberScheduler* scheduler);
//
// DWORD ThreadProc();
//
// bool IsReadyForProcessing() const;
//
// void PushExpensiveFiber(Fiber* fiber);
//
//private:
//
// static DWORD WINAPI StaticThreadProc(void* p);
//
// bool PopExpensiveFiber(Fiber** OUT_fiber);
//
// FiberScheduler* m_scheduler;
//
// std::queue<Fiber*> m_expensiveFibers;
// std::mutex m_expensiveFibersMutex;
// std::mutex m_scheduleMutex;
// std::condition_variable m_scheduleCondition;
// //std::mutex m_readyFibersMutex; //May need no mutex because per fiber scheduler thread only one fiber is always executing
// //DEBUG:
// bool m_isReadyForProcessing;
//};
//
|
407164a2ca6f609597497e26910b6811e041ae3d
|
8f8f87c0ffacf8509ee5f32f74447f64887ef501
|
/problems/spoj-250/19-next-palindrome/util.hpp
|
94e68f5fbea311b000c622290886587646dac5bd
|
[] |
no_license
|
godcrampy/competitive
|
c32eb1baf355fa9697f4ea69bea1e8e2d346e14c
|
e42f3000296c7b40e6a4c368dd17241ebb678d18
|
refs/heads/master
| 2023-03-28T17:05:15.776334
| 2021-04-03T13:40:15
| 2021-04-03T13:40:15
| 206,922,544
| 6
| 3
| null | 2020-10-01T13:22:40
| 2019-09-07T05:51:30
|
C++
|
UTF-8
|
C++
| false
| false
| 1,701
|
hpp
|
util.hpp
|
#ifndef _UTIL_HPP_
#define _UTIL_HPP_
#include <math.h>
#include <algorithm>
#include <vector>
int length_of_number(long number) {
// works
if (!number) return 1;
return std::log10(number) + 1;
}
std::vector<int> number_to_vector(long number) {
std::vector<int> vector = {};
while (number != 0) {
vector.push_back(number % 10);
number /= 10;
}
std::reverse(vector.begin(), vector.end());
return vector;
}
long vector_to_number(std::vector<int> vector) {
int size = vector.size(); // length of number
long number = 0; // return number
for (int i = 0; i < size; ++i)
number += vector.at(i) * std::pow(10, size - i - 1);
return number;
}
long make_palindrome(long number) {
// works
std::vector<int> vector = number_to_vector(number);
int length = vector.size(); // length of number
int boundary_index =
(length - 1) / 2; // index of the last number which cannot be edited
if (length % 2 == 0)
for (int i = 0; i < length / 2; ++i)
vector.at(boundary_index + i + 1) = vector.at(boundary_index - i);
else
for (int i = 0; i < length / 2; ++i)
vector.at(boundary_index + i + 1) = vector.at(boundary_index - i - 1);
return vector_to_number(vector);
}
long next_palindrome(long number) {
int length = length_of_number(number);
long proposal = number; // number to be returned
long temp = number; // copy of number to add numbers too
int add_position = (length - 1) / 2; // position to be increased by one
while (true) {
proposal = make_palindrome(temp);
if (proposal > number) break;
temp += pow(10, length - add_position - 1);
}
return proposal;
}
#endif
|
430df86d7a7a3cc28d0d623e776001d04f710b4b
|
8dae84666530c848f7c3b9121e89cbcecb24a8cb
|
/src/compiler.h
|
09850a7c8d5a1ac954a3683c90d402f2bf5eb42e
|
[
"MIT"
] |
permissive
|
rikushoney/aavm
|
798194ad17540867966165cb22013be0a1e85931
|
42e088078915b1973fae20ceb055680da5fbef6b
|
refs/heads/main
| 2023-04-29T19:18:38.342544
| 2021-05-15T17:42:11
| 2021-05-15T17:42:11
| 299,420,576
| 1
| 0
|
MIT
| 2021-01-31T21:36:23
| 2020-09-28T20:11:33
|
C++
|
UTF-8
|
C++
| false
| false
| 1,587
|
h
|
compiler.h
|
#ifndef AAVM_COMPILER_H_
#define AAVM_COMPILER_H_
#if !(defined(AAVM_MSVC) && defined(AAVM_CLANG) && defined(AAVM_GCC) && \
defined(AAVM_WINDOWS) && defined(AAVM_LINUX) && defined(AAVM_MACOS))
#error "config error"
#endif
namespace aavm {
namespace compiler {
#if AAVM_MSVC
static constexpr auto msvc = true;
static constexpr auto clang = false;
static constexpr auto gcc = false;
#elif AAVM_CLANG
static constexpr auto msvc = false;
static constexpr auto clang = true;
static constexpr auto gcc = false;
#elif AAVM_GCC
static constexpr auto msvc = false;
static constexpr auto clang = false;
static constexpr auto gcc = true;
#else
#warning "unsupported compiler"
static constexpr auto msvc = false;
static constexpr auto clang = false;
static constexpr auto gcc = false;
#endif
} // namespace compiler
namespace platform {
#if AAVM_WINDOWS
static constexpr auto windows = true;
static constexpr auto linux = false;
static constexpr auto macos = false;
#elif AAVM_LINUX
static constexpr auto windows = false;
static constexpr auto linux = true;
static constexpr auto macos = false;
#elif AAVM_MACOS
static constexpr auto windows = false;
static constexpr auto linux = false;
static constexpr auto macos = true;
#else
#warning "unsupported platform"
static constexpr auto windows = false;
static constexpr auto linux = false;
static constexpr auto macos = false;
#endif
} // namespace platform
inline auto aavm_unreachable() {
#if AAVM_GCC || AAVM_CLANG
__builtin_unreachable();
#elif AAVM_MSVC
__assume(0);
#else
(void);
#endif
}
} // namespace aavm
#endif
|
f06d10223faba492c334d326543424ab74c86050
|
17cf96eac8698680b2b543a4f568bf9115cbd69e
|
/tools/datagenerator.cpp
|
274944916c77bbca37c30a46e8ab1ea50cd8e38e
|
[] |
no_license
|
GuiM0x/Mapox2D
|
7b724d52f0cc566c736d3fb4ad75b44185ffc753
|
1085e6e648a211ecc22c24a355c4965414709cc9
|
refs/heads/master
| 2020-04-16T00:10:02.647657
| 2019-02-22T21:58:35
| 2019-02-22T21:58:35
| 165,128,537
| 1
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 4,879
|
cpp
|
datagenerator.cpp
|
#include "datagenerator.h"
DataGenerator::DataGenerator(MapScene *mapScene)
: m_mapScene{mapScene}
{
assert(m_mapScene != nullptr);
}
void DataGenerator::generateDatas(const QString &path) const
{
const QString newFolderPath = path + "/MapDatas_gen_" + UtilityTools::createRandomKey(5);
qDebug() << "DataGenerator::generateDatas - New folder path => " << newFolderPath;
QDir newDir{newFolderPath};
if(!newDir.exists()){
newDir.mkpath(newFolderPath);
} else {
newDir.removeRecursively();
}
// -> generate texture/*.png
const QString texturesPath = newFolderPath + "/textures";
newDir.mkpath(texturesPath);
auto imageFiles = generateImageFiles(texturesPath);
// -> generate array.txt
QFile arrayFile{newFolderPath + "/array.txt"};
if(arrayFile.exists()) arrayFile.remove();
arrayFile.open(QFile::WriteOnly);
const QString arrayGenerated = generateArray(imageFiles);
QTextStream out{&arrayFile};
out << arrayGenerated;
}
std::map<QString, QImage> DataGenerator::generateImageFiles(const QString& pathFolder) const
{
const std::size_t rows = static_cast<std::size_t>(m_mapScene->rows());
const std::size_t cols = static_cast<std::size_t>(m_mapScene->cols());
const std::vector<TileItem*> *tiles = m_mapScene->tiles();
assert(tiles->size() == rows*cols);
std::map<QString, QImage> mapper{};
// Here, we check all tiles on map
for(std::size_t i = 0; i < rows; ++i){
for(std::size_t j = 0; j < cols; ++j){
const TileItem *tile = (*tiles)[i*cols+j];
// If mapper doesn't have tile registered yet,
// we insert the tile's name (key) and the tile's texture (value) in mapper
if(mapper.find(tile->name()) == std::end(mapper)){
mapper[tile->name()] = tile->image();
} else {
// Else, maybe we've got a new composed Image
// Yes, because of the layer system on tile, the name of a tile
// is the last name of layer added.
// So, we check if the image tile corresponding to the image registered
// under the current tile's name
const QImage tileTexture = tile->image();
auto it = std::find_if(std::begin(mapper), std::end(mapper),
[&](const std::pair<QString, QImage>& p){
return p.second == tileTexture;
});
// If image not corresponding, we've got a composed image to register in mapper,
// We ensure to create a new name for the texture, then add it to the mapper
if(it == std::end(mapper)){
const QString genName = tile->name() + "_" + UtilityTools::createRandomKey(4);
mapper[genName] = tile->image();
}
}
}
}
// Create *.png files
for(const auto& it : mapper){
const QString filePath = pathFolder + "/" + it.first + ".png";
if(!it.second.isNull()){
QFile file{filePath};
file.open(QIODevice::WriteOnly);
it.second.save(&file, "PNG");
}
}
return mapper;
}
QString DataGenerator::generateArray(const std::map<QString, QImage>& imageFiles) const
{
const std::map<QString, QImage> mapperImages = imageFiles;
std::map<QString, int> mapperId{};
// Create mapper for associate ID to texture's name
int id{0};
for(const auto& it : mapperImages){
mapperId[it.first] = id;
++id;
}
const std::size_t rows = static_cast<std::size_t>(m_mapScene->rows());
const std::size_t cols = static_cast<std::size_t>(m_mapScene->cols());
const std::vector<TileItem*> *tiles = m_mapScene->tiles();
assert(tiles->size() == rows*cols);
QString datas{};
for(const auto& it : mapperId){
datas += QString::number(it.second) + " = " + it.first + "\n";
}
datas += "\n";
// Here, we check all tiles on map
for(std::size_t i = 0; i < rows; ++i){
for(std::size_t j = 0; j < cols; ++j){
const TileItem *tile = (*tiles)[i*cols+j];
const QImage tileTexture = tile->image();
// Find image corresponding in mapperImages
auto it = std::find_if(std::begin(mapperImages), std::end(mapperImages),
[&](const std::pair<QString, QImage>& p){
return p.second == tileTexture;
});
assert(it != std::end(mapperImages));
// Then, we use the name to get ID from mapper ID
datas += QString::number(mapperId[it->first]) + ", ";
}
datas += '\n';
}
return datas;
}
|
4f114e20c6c08300be6c49da2374749c52857a07
|
2f7c02078e2dede90e5384de69a289acb3049f98
|
/U TEST/test.cpp
|
fcb4d2769ca8ba6f328d91d6dd5fbdad5cbf7eff
|
[] |
no_license
|
kittysammy123/INJECT
|
7a97036a5b4780ad86b8c94347a1a07c8e0424b2
|
4044ada43ec2f3a35c477279c9955acc42ab2c54
|
refs/heads/master
| 2023-04-15T02:58:31.244560
| 2021-05-03T23:03:49
| 2021-05-03T23:03:49
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 11,982
|
cpp
|
test.cpp
|
BOOL IsKeySz(PKEY_VALUE_PARTIAL_INFORMATION pkvpi)
{
ULONG DataLength = pkvpi->DataLength;
return (pkvpi->Type == REG_SZ || pkvpi->Type == REG_EXPAND_SZ) &&
(DataLength - 1 < MAXUSHORT) && !(DataLength & (sizeof(WCHAR) - 1)) &&
!((PWSTR)RtlOffsetToPointer(pkvpi->Data, DataLength))[-1];
}
NTSTATUS RegGetValue(
HANDLE hKey,
PCUNICODE_STRING ValueName,
BOOL (*Validate)(PKEY_VALUE_PARTIAL_INFORMATION),
PKEY_VALUE_PARTIAL_INFORMATION* ppkvpi
)
{
NTSTATUS status;
DWORD cb = sizeof(KEY_VALUE_PARTIAL_INFORMATION) + 16 * sizeof(WCHAR);
union {
PVOID buf;
PKEY_VALUE_PARTIAL_INFORMATION pkvpi;
};
do
{
status = STATUS_INSUFFICIENT_RESOURCES;
if (buf = LocalAlloc(0, cb))
{
if (0 <= (status = ZwQueryValueKey(hKey, ValueName, KeyValuePartialInformation, pkvpi, cb, &cb)))
{
if (Validate(pkvpi))
{
*ppkvpi = pkvpi;
return STATUS_SUCCESS;
}
status = STATUS_OBJECT_TYPE_MISMATCH;
}
LocalFree(pkvpi);
}
} while (status == STATUS_BUFFER_OVERFLOW);
DbgPrint("GetValue(%wZ)=%x\n", ValueName, status);
return status;
}
#pragma intrinsic(_lrotr, _lrotl)
#define RUN_ONCE_STATUS_TO_CONTEXT(status) ((PVOID)(ULONG_PTR)(_lrotl(status, 4) & ~((1 << RTL_RUN_ONCE_CTX_RESERVED_BITS) - 1)))
#define RUN_ONCE_CONTEXT_TO_STATUS(Context) ((NTSTATUS)_lrotr((ULONG)(ULONG_PTR)Context, 4))
struct DLL_INFORMATION
{
RTL_RUN_ONCE SectionStatus;
PVOID Section, PreferredAddress;
ULONG rva_1, SizeOfImage;
NTSTATUS CreateDllSection();
NTSTATUS GetSection(PVOID* pSection)
{
union {
PVOID Context;
NTSTATUS status;
};
if (RtlRunOnceBeginInitialize(&SectionStatus, 0, &Context) == STATUS_PENDING)
{
RtlRunOnceComplete(&SectionStatus, 0, Context = RUN_ONCE_STATUS_TO_CONTEXT(CreateDllSection()));
}
status = RUN_ONCE_CONTEXT_TO_STATUS(Context);
*pSection = Section;
return status;
}
NTSTATUS MapSection(HANDLE hProcess, PVOID& hmod)
{
PVOID ReservedAddress = PreferredAddress, BaseAddress = 0;
SIZE_T RegionSize = SizeOfImage, ViewSize = 0;
NTSTATUS status = ZwAllocateVirtualMemory(hProcess, &ReservedAddress, 0, &RegionSize, MEM_RESERVE, PAGE_NOACCESS);
bool bFreeMemory = false;
switch (status)
{
case STATUS_SUCCESS:
bFreeMemory = true;
case STATUS_CONFLICTING_ADDRESSES:
static LARGE_INTEGER ZeroOffset;
if (0 <= (status = ZwMapViewOfSection(Section, hProcess, &BaseAddress,
0, 0, &ZeroOffset, &ViewSize, ViewUnmap, 0, PAGE_EXECUTE)))
{
hmod = BaseAddress;
}
break;
}
DbgPrint("MapSection[%x]: %x %p\n", status, bFreeMemory, BaseAddress);
if (bFreeMemory)
{
ZwFreeVirtualMemory(hProcess, &ReservedAddress, &RegionSize, MEM_RELEASE);
}
return status;
}
};
namespace DLL_32
{
#include "../dlldemo/md5_32.h" // autogenerated file, on post-build step for DllDemo
DLL_INFORMATION di {};
}
#ifdef _WIN64
namespace DLL_64
{
#include "../dlldemo/md5_64.h" // autogenerated file, on post-build step for DllDemo
DLL_INFORMATION di {};
}
#endif
#ifdef _WIN64
#define NATIVE_DLL DLL_64
#define WOW_DLL DLL_32
#else
#define NATIVE_DLL DLL_32
#endif
NTSTATUS MapPeAsData(HANDLE hFile, PVOID* BaseAddress, PSIZE_T ViewSize)
{
HANDLE hSection;
NTSTATUS status = ZwCreateSection(&hSection, SECTION_MAP_READ, 0, 0, PAGE_READONLY, SEC_COMMIT, hFile);
if (0 <= status)
{
status = ZwMapViewOfSection(hSection, NtCurrentProcess(), BaseAddress, 0, 0, 0, ViewSize, ViewUnmap, 0, PAGE_READONLY);
}
ZwClose(hSection);
return status;
}
PVOID AddressInSectionTable
(
PIMAGE_NT_HEADERS NtHeaders,
PVOID Base,
ULONG Rva
)
{
if (ULONG NumberOfSections = NtHeaders->FileHeader.NumberOfSections)
{
PIMAGE_SECTION_HEADER pish = IMAGE_FIRST_SECTION(NtHeaders);
do
{
ULONG o = Rva - pish->VirtualAddress;
if (o < pish->Misc.VirtualSize)
{
return (PBYTE)Base + pish->PointerToRawData + o;
}
} while (pish++, --NumberOfSections);
}
return 0;
}
NTSTATUS IsFileOk(HANDLE hFile, PVOID _md5, ULONG FileSize, PULONG rva, PULONG AddressOfEntryPoint, PULONG SizeOfImage)
{
NTSTATUS status;
BCRYPT_ALG_HANDLE hAlgorithm;
if (0 <= (status = BCryptOpenAlgorithmProvider(&hAlgorithm, BCRYPT_MD5_ALGORITHM, 0, 0)))
{
union {
ULONG64 align;
UCHAR md5[16];
};
BCRYPT_HASH_HANDLE hHash;
if (0 <= (status = BCryptCreateHash(hAlgorithm, &hHash, 0, 0, 0, 0, 0)))
{
PVOID BaseAddress = 0;
SIZE_T ViewSize = 0;
if (0 <= (status = MapPeAsData(hFile, &BaseAddress, &ViewSize)))
{
status = FileSize > ViewSize ? STATUS_INVALID_IMAGE_HASH : BCryptHashData(hHash, (PUCHAR)BaseAddress, FileSize, 0);
if (0 <= status && 0 <= (status = BCryptFinishHash(hHash, md5, sizeof(md5), 0)))
{
DbgPrint("md5_0: %016I64x%016I64x\nmd5_1: %016I64x%016I64x\n",
*(1 + (PULONG64)_md5), *(PULONG64)_md5,
*(1 + (PULONG64)md5), *(PULONG64)md5);
if (memcmp(md5, _md5, sizeof(md5)))
{
status = STATUS_INVALID_IMAGE_HASH;
}
else
{
status = STATUS_INVALID_IMAGE_FORMAT;
if (PIMAGE_NT_HEADERS pinth = RtlImageNtHeader(BaseAddress))
{
status = STATUS_PROCEDURE_NOT_FOUND;
ULONG size, Ordinal = 1;
PIMAGE_EXPORT_DIRECTORY pied = (PIMAGE_EXPORT_DIRECTORY)
RtlImageDirectoryEntryToData(BaseAddress, FALSE, IMAGE_DIRECTORY_ENTRY_EXPORT, &size);
if (pied && size >= sizeof(IMAGE_EXPORT_DIRECTORY) && (Ordinal -= pied->Base) < pied->NumberOfFunctions)
{
if (PULONG AddressOfFunctions = (PULONG)AddressInSectionTable(pinth, BaseAddress, pied->AddressOfFunctions))
{
*rva = AddressOfFunctions[Ordinal];
*AddressOfEntryPoint = pinth->OptionalHeader.AddressOfEntryPoint;
*SizeOfImage = pinth->OptionalHeader.SizeOfImage;
status = STATUS_SUCCESS;
}
}
}
}
}
ZwUnmapViewOfSection(NtCurrentProcess(), BaseAddress);
}
BCryptDestroyHash(hHash);
}
BCryptCloseAlgorithmProvider(hAlgorithm, 0);
}
return status;
}
NTSTATUS CreateKnownSection(HANDLE hFile, PCOBJECT_ATTRIBUTES poaKernel32, PCUNICODE_STRING My, PVOID* pTransferAddress, PVOID *pSection)
{
ULONG cb = 0, rcb = 64;
static volatile UCHAR guz;
PVOID stack = alloca(guz);
HANDLE hSection;
OBJECT_ATTRIBUTES oa = { sizeof(oa), 0, const_cast<PUNICODE_STRING>(My), OBJ_CASE_INSENSITIVE };
// look for system (smss.exe) assigned SD for known dlls
NTSTATUS status = ZwOpenSection(&hSection, READ_CONTROL, const_cast<POBJECT_ATTRIBUTES>(poaKernel32));
if (0 <= status)
{
do
{
if (cb < rcb)
{
cb = RtlPointerToOffset(oa.SecurityDescriptor = alloca(rcb - cb), stack);
}
status = ZwQuerySecurityObject(hSection,
PROCESS_TRUST_LABEL_SECURITY_INFORMATION|
DACL_SECURITY_INFORMATION|LABEL_SECURITY_INFORMATION|OWNER_SECURITY_INFORMATION,
oa.SecurityDescriptor, cb, &rcb);
} while (status == STATUS_BUFFER_TOO_SMALL);
NtClose(hSection);
if (0 <= status)
{
// not use &oa - no access to \\KnownDlls as result S-1-19-512-8192 label
// SECURITY_PROCESS_TRUST_AUTHORITY - SECURITY_PROCESS_PROTECTION_TYPE_LITE_RID - SECURITY_PROCESS_PROTECTION_LEVEL_WINTCB_RID
status = ZwCreateSection(&hSection, SECTION_MAP_EXECUTE|SECTION_QUERY, /*&oa*/0, 0, PAGE_EXECUTE, SEC_IMAGE, hFile);
if (0 <= status)
{
SECTION_IMAGE_INFORMATION sii;
status = ZwQuerySection(hSection, SectionImageInformation, &sii, sizeof(sii), 0);
DbgPrint("[%08x]:%wZ<%p> at %p\n", status, My, hSection, sii.TransferAddress);
if (0 <= status)
{
*pTransferAddress = sii.TransferAddress;
*pSection = hSection;
return STATUS_SUCCESS;
}
ZwClose(hSection);
}
}
}
return status;
}
NTSTATUS DLL_INFORMATION::CreateDllSection()
{
ULONG FileSize;
PVOID md5;
PCOBJECT_ATTRIBUTES poaKernel32, poaDLL;
PCUNICODE_STRING pMy;
#ifdef _WIN64
if (this == &WOW_DLL::di)
{
STATIC_UNICODE_STRING(My, "\\KnownDlls32\\{EBB50DDB-F6AA-492d-94E3-1D51B299F627}.DLL");
STATIC_OBJECT_ATTRIBUTES(oaKernel32, "\\KnownDlls32\\kernel32.dll");
STATIC_OBJECT_ATTRIBUTES(oaDLL, "\\systemroot\\syswow64\\{EBB50DDB-F6AA-492d-94E3-1D51B299F627}.DLL");
poaKernel32 = &oaKernel32, pMy = &My, poaDLL = &oaDLL;
FileSize = WOW_DLL::FileSize;
md5 = &WOW_DLL::md5;
}
else
#endif
{
STATIC_UNICODE_STRING(My, "\\KnownDlls\\{EBB50DDB-F6AA-492d-94E3-1D51B299F627}.DLL");
STATIC_OBJECT_ATTRIBUTES(oaKernel32, "\\KnownDlls\\kernel32.dll");
STATIC_OBJECT_ATTRIBUTES(oaDLL, "\\systemroot\\system32\\{EBB50DDB-F6AA-492d-94E3-1D51B299F627}.DLL");
poaKernel32 = &oaKernel32, pMy = &My, poaDLL = &oaDLL;
FileSize = NATIVE_DLL::FileSize;
md5 = &NATIVE_DLL::md5;
}
HANDLE hFile;
IO_STATUS_BLOCK iosb;
NTSTATUS status = ZwOpenFile(&hFile, FILE_GENERIC_READ|FILE_EXECUTE,
const_cast<POBJECT_ATTRIBUTES>(poaDLL), &iosb, FILE_SHARE_READ, FILE_SYNCHRONOUS_IO_NONALERT);
DbgPrint("OpenFile(%wZ)=%x\n", poaDLL->ObjectName, status);
if (0 <= status)
{
FILE_STANDARD_INFORMATION fsi;
if (0 <= (status = ZwQueryInformationFile(hFile, &iosb, &fsi, sizeof(fsi), FileStandardInformation)))
{
DbgPrint("EndOfFile=%I64x\n_FileSize=%x\n", fsi.EndOfFile.QuadPart, FileSize);
if (fsi.EndOfFile.QuadPart == FileSize)
{
ULONG AddressOfEntryPoint;
if (0 <= (status = IsFileOk(hFile, md5, FileSize, &rva_1, &AddressOfEntryPoint, &SizeOfImage)))
{
PVOID TransferAddress;
status = CreateKnownSection(hFile, poaKernel32, pMy, &TransferAddress, &Section);
PreferredAddress = (PBYTE)TransferAddress - AddressOfEntryPoint;
}
}
else
{
status = STATUS_INVALID_IMAGE_HASH;
}
}
ZwClose(hFile);
}
return status;
}
void FreeLoadImageData()
{
PVOID Context;
if (STATUS_SUCCESS == RtlRunOnceBeginInitialize(&NATIVE_DLL::di.SectionStatus, RTL_RUN_ONCE_CHECK_ONLY, &Context))
{
if (0 <= RUN_ONCE_CONTEXT_TO_STATUS(Context))
{
DbgPrint("delete section %p\n", NATIVE_DLL::di.Section);
NtClose(NATIVE_DLL::di.Section);
}
}
#ifdef _WIN64
if (STATUS_SUCCESS == RtlRunOnceBeginInitialize(&WOW_DLL::di.SectionStatus, RTL_RUN_ONCE_CHECK_ONLY, &Context))
{
if (0 <= RUN_ONCE_CONTEXT_TO_STATUS(Context))
{
DbgPrint("delete section %p\n", WOW_DLL::di.Section);
NtClose(WOW_DLL::di.Section);
}
}
#endif
}
void DoInject(BOOL Wow, HANDLE hProcess, HANDLE hThread)
{
DLL_INFORMATION* pdi = Wow ? &DLL_32::di : &DLL_64::di;
HANDLE hSection;
if (0 <= pdi->GetSection(&hSection))
{
PVOID BasseAddress;
union {
PVOID pvNormalRoutine;
PKNORMAL_ROUTINE NormalRoutine;
};
if (0 <= pdi->MapSection(hProcess, BasseAddress))
{
pvNormalRoutine = (PBYTE)BasseAddress + pdi->rva_1;
if (0 > (Wow ? RtlQueueApcWow64Thread : ZwQueueApcThread)(hThread, NormalRoutine, BasseAddress, NtCurrentProcess(), BasseAddress))
{
ZwUnmapViewOfSection(hProcess, BasseAddress);
}
}
}
}
void DoInject(HANDLE hProcess, HANDLE hThread)
{
DoInject(FALSE, hProcess, hThread);
#ifdef _WIN64
BOOL Wow;
if (IsWow64Process(hProcess, &Wow) && Wow)
{
DoInject(TRUE, hProcess, hThread);
}
#endif
}
void WINAPI EpZ(void*)
{
PROCESS_MITIGATION_CONTROL_FLOW_GUARD_POLICY cfg {};
cfg.EnableControlFlowGuard = 1;
cfg.EnableExportSuppression = 1;
cfg.StrictMode = 1;
if (SetProcessMitigationPolicy(::ProcessControlFlowGuardPolicy, &cfg, sizeof(cfg)))
{
DoInject(NtCurrentProcess(), NtCurrentThread());
ZwTestAlert();
STARTUPINFO si = { sizeof(si) };
PROCESS_INFORMATION pi;
if (CreateProcessW(L"c:/windows/syswow64/notepad.exe", 0, 0, 0, 0, CREATE_SUSPENDED, 0, 0, &si, &pi))
{
DoInject(pi.hProcess, pi.hThread);
ResumeThread(pi.hThread);
CloseHandle(pi.hThread);
CloseHandle(pi.hProcess);
}
if (CreateProcessW(L"c:/windows/notepad.exe", 0, 0, 0, 0, CREATE_SUSPENDED, 0, 0, &si, &pi))
{
DoInject(pi.hProcess, pi.hThread);
ResumeThread(pi.hThread);
CloseHandle(pi.hThread);
CloseHandle(pi.hProcess);
}
FreeLoadImageData();
}
}
|
196f100e60d9f767bd5d841b3943a1b20e19326b
|
1262085a9b1c9ef235d09ed4124145bf6f87d66a
|
/USACO/2016 Season/February/Platinum/cbarn.cpp
|
e0d5fc10996e9fcfcc2dffe08a6851962827a4fa
|
[
"MIT"
] |
permissive
|
nvichare/Programming_Contests
|
992aaed05321e49cfad3e0e104fc4c32ee23f839
|
f2a0470ace18ef3ee349bae74f02811e1e6ed7a7
|
refs/heads/master
| 2021-05-15T06:09:45.643731
| 2017-12-24T03:02:37
| 2017-12-24T03:02:37
| null | 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,958
|
cpp
|
cbarn.cpp
|
#include <bits/stdc++.h>
#define SQ(a) (a)*(a)
#define F0R(i, a) for(int i = 0; i < (a); i++)
#define FOR(i, a, b) for(int i = (a); i < (b); i++)
#define R0F(i, a) for(int i = (a) - 1; i >= 0; i--)
#define ROF(i, a, b) for(int i = (b) - 1; i >= (a); i--)
#define F first
#define S second
#define PB push_back
#define MP make_pair
#define MT make_tuple
#define UB upper_bound
#define LB lower_bound
#define MAXN 1000
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<int, int> pii;
typedef vector<int> vi;
int n, k;
ll tree[MAXN + 1], r[MAXN], total;
ll update(int idx, ll v) {
idx++;
for(; idx <= n; idx += (idx & -idx)) tree[idx] += v;
total += v;
}
ll query(int idx) {
ll v = 0;
for(; idx > 0; idx -= (idx & -idx)) v += tree[idx];
return v;
}
ll sum(int lo, int hi) {
if(hi < lo) {
if(hi == lo - 1) return total;
return total - sum(hi + 1, lo - 1);
}
return query(hi + 1) - query(lo);
}
int main() {
ifstream fin("cbarn.in");
ofstream fout("cbarn.out");
fin >> n >> k;
F0R(i, n) {
ll v;
fin >> v;
update(i, v);
r[i] = v;
}
ll minCost = -1;
F0R(s, n) {
ll dp[n][k + 1];
F0R(i, n) F0R(j, k) dp[i][j] = -1;
dp[0][0] = 0;
F0R(l, n) {
dp[0][0] += (ll)l * r[(s + l) % n];
}
if(dp[0][0] < minCost || minCost == -1) minCost = dp[0][0];
F0R(l, n) FOR(j, 1, k) {
ll m = -1;
F0R(last, l) {
if(dp[last][j - 1] != -1) {
ll cost = dp[last][j - 1];
cost -= (l - last) * sum((s + l) % n, (s + n - 1) % n);
if(m == -1 || cost < m) m = cost;
}
}
dp[l][j] = m;
if(dp[l][j] != -1 && (dp[l][j] < minCost || minCost == -1)) minCost = dp[l][j];
}
}
fout << minCost << "\n";
return 0;
}
|
e81d0830dfc95f6ebddaf5c0cc4986981baa80d3
|
314053b20264b3dd4b4df57407fb01fe154b5300
|
/dhcpserver.h
|
daabb6fd9697470becc2e32725e63d16260e1127
|
[] |
no_license
|
storyyey/tcp_server
|
9fff070369aab07632acc78a3697dac4745f6f71
|
ba2a58cdae6d22080fff464f9dcfd0600dd44faa
|
refs/heads/master
| 2023-04-09T06:41:23.125686
| 2023-03-31T16:23:20
| 2023-03-31T16:23:20
| 265,773,353
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 2,272
|
h
|
dhcpserver.h
|
#ifndef DHCPSERVER_H
#define DHCPSERVER_H
#include <QUdpSocket>
class DhcpServer : public QObject
{
Q_OBJECT
public:
struct dhcptu {
uint8_t op;
uint8_t htype;
uint8_t hlen;
uint8_t hops;
uint32_t xid;
uint16_t secs;
uint16_t flags;
uint32_t ciaddr;
uint32_t yiaddr;
uint32_t siaddr;
uint32_t giaddr;
char chaddr[16];
char sname[64];
char file[128];
};
struct dhcpop {
uint8_t code;
uint8_t len;
char padd[255];
};
#define OPTION_MAX (16)
struct dhcpFrame {
struct dhcptu tu;
struct dhcpop op[OPTION_MAX];
uint8_t opn;
};
enum messageType {
DISCOVER = 0x01,
OFFER = 0x02,
REQUEST = 0x03,
DECLINE = 0x04,
ACK = 0x05,
NAK = 0x06,
RELEASE = 0x07,
INFORM = 0x08,
};
struct dhcpcfg {
uint32_t srvip;
uint32_t startip;
uint32_t endip;
uint32_t netmask;
uint32_t gateway;
uint32_t broadcast;
uint32_t router;
};
struct sessionRecord {
uint32_t yiaddr;
};
DhcpServer();
~DhcpServer();
uint32_t decode(uint8_t *data, dhcpFrame &frame);
uint32_t encode(uint8_t *data, dhcpFrame &frame);
bool addOption(dhcpFrame &frame, uint8_t code, uint8_t len, uint8_t *val);
bool findOption(dhcpFrame &frame, uint8_t code, uint8_t *len, uint8_t *val);
void reply(QHostAddress &addr, dhcpFrame &frame);
inline uint8_t *bigEndIntegerToByte(uint32_t Integer);
inline uint32_t byteToBigEndInteger(uint8_t arr[4]);
inline uint8_t *bigEndShortToByte(uint16_t Short);
inline uint16_t byteToBigEndShort(uint8_t arr[2]);
bool start(dhcpcfg &cfg);
bool stop();
uint32_t deAvailableIP();
bool addSessionRecord(uint32_t xid, sessionRecord &data);
bool findSessionRecord(uint32_t xid, sessionRecord &data);
private:
QUdpSocket *dhcpserver;
dhcpcfg cfg;
uint32_t currAvailableIP;
QMap <uint32_t, sessionRecord> sessMap;
private slots:
void readPendingDatagrams();
};
#endif // DHCPSERVER_H
|
971112567ede3f4a21600aa0974ec018659a2d93
|
4fdd656e931354aa4c86506710734040f6dac620
|
/include/simplemapreduce/ops/func.h
|
0c97b8de6c844492f45ec30740df35ec0534c194
|
[] |
no_license
|
riomat13/simple-mapreduce
|
f868da73a456822bd46293e391edb30ab96b7520
|
88bcbb43ab028128c911a1776c616d9713bab06f
|
refs/heads/master
| 2023-04-19T08:55:14.820678
| 2021-05-04T04:25:28
| 2021-05-04T04:25:28
| 333,633,551
| 0
| 1
| null | 2021-05-04T04:25:29
| 2021-01-28T03:24:13
|
C++
|
UTF-8
|
C++
| false
| false
| 688
|
h
|
func.h
|
#ifndef SIMPLEMAPREDUCE_OPS_FUNC_H_
#define SIMPLEMAPREDUCE_OPS_FUNC_H_
#include <functional>
#include <numeric>
namespace mapreduce {
#ifdef HAS_TBB
#include <execution>
// Macro to calculate sum using tbb
// This can be used for int, long, float, double
#define REDUCE_SUM(a) std::reduce(std::execution::par, a.cbegin(), a.cend())
#else
// Macro to calculate sum
// This can be used for int, long, float, double
#define REDUCE_SUM(a) std::reduce(a.cbegin(), a.cend())
#endif // HAS_TBB
// Macro to calculate average
// The output will be double
#define REDUCE_MEAN(a) static_cast<double>(REDUCE_SUM(a)) / a.size()
} // namespace mapreduce
#endif // SIMPLEMAPREDUCE_OPS_FUNC_H_
|
8d127131c46c758108cc841e113a8a835c597dc5
|
77c4f4dd27b8d7497e66a7a5a87ad7ea83f2c4be
|
/cpp/src/arrow/compute/kernels/vector_selection_test.cc
|
30e85c1f71089c27f349af1049bcc4e21c13d3cd
|
[
"Apache-2.0",
"MIT",
"BSD-3-Clause",
"BSD-2-Clause",
"ZPL-2.1",
"BSL-1.0",
"LicenseRef-scancode-public-domain",
"NTP",
"OpenSSL",
"CC-BY-4.0",
"LLVM-exception",
"Python-2.0",
"CC0-1.0",
"LicenseRef-scancode-protobuf",
"JSON",
"Zlib",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference"
] |
permissive
|
apache/arrow
|
0714bfbf6fd491e1f4ed4acf838845ce4b94ec3e
|
59954225d4615f9b3bd7a3c266fb68761794229a
|
refs/heads/main
| 2023-08-24T09:04:22.253199
| 2023-08-24T07:21:51
| 2023-08-24T07:21:51
| 51,905,353
| 12,955
| 3,585
|
Apache-2.0
| 2023-09-14T20:45:56
| 2016-02-17T08:00:23
|
C++
|
UTF-8
|
C++
| false
| false
| 100,208
|
cc
|
vector_selection_test.cc
|
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
#include <algorithm>
#include <iostream>
#include <limits>
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "arrow/array/concatenate.h"
#include "arrow/chunked_array.h"
#include "arrow/compute/api.h"
#include "arrow/compute/kernels/test_util.h"
#include "arrow/table.h"
#include "arrow/testing/builder.h"
#include "arrow/testing/gtest_util.h"
#include "arrow/testing/random.h"
#include "arrow/testing/util.h"
#include "arrow/util/logging.h"
namespace arrow {
using internal::checked_cast;
using internal::checked_pointer_cast;
using std::string_view;
namespace compute {
namespace {
template <typename T>
Result<std::shared_ptr<Array>> REEncode(const T& array) {
ARROW_ASSIGN_OR_RAISE(auto datum, RunEndEncode(array));
return datum.make_array();
}
Result<std::shared_ptr<Array>> REEFromJSON(const std::shared_ptr<DataType>& ree_type,
const std::string& json) {
auto ree_type_ptr = checked_cast<const RunEndEncodedType*>(ree_type.get());
auto array = ArrayFromJSON(ree_type_ptr->value_type(), json);
ARROW_ASSIGN_OR_RAISE(
auto datum, RunEndEncode(array, RunEndEncodeOptions{ree_type_ptr->run_end_type()}));
return datum.make_array();
}
Result<std::shared_ptr<Array>> FilterFromJSON(
const std::shared_ptr<DataType>& filter_type, const std::string& json) {
if (filter_type->id() == Type::RUN_END_ENCODED) {
return REEFromJSON(filter_type, json);
} else {
return ArrayFromJSON(filter_type, json);
}
}
Result<std::shared_ptr<Array>> REEncode(const std::shared_ptr<Array>& array) {
ARROW_ASSIGN_OR_RAISE(auto datum, RunEndEncode(array));
return datum.make_array();
}
void CheckTakeIndicesCase(const BooleanArray& filter,
const std::shared_ptr<Array>& expected_indices,
FilterOptions::NullSelectionBehavior null_selection) {
ASSERT_OK_AND_ASSIGN(auto indices,
internal::GetTakeIndices(*filter.data(), null_selection));
auto indices_array = MakeArray(indices);
ValidateOutput(indices);
AssertArraysEqual(*expected_indices, *indices_array, /*verbose=*/true);
ASSERT_OK_AND_ASSIGN(auto ree_filter, REEncode(filter));
ASSERT_OK_AND_ASSIGN(auto indices_from_ree,
internal::GetTakeIndices(*ree_filter->data(), null_selection));
auto indices_from_ree_array = MakeArray(indices);
ValidateOutput(indices_from_ree);
AssertArraysEqual(*expected_indices, *indices_from_ree_array, /*verbose=*/true);
}
void CheckTakeIndicesCase(const std::string& filter_json, const std::string& indices_json,
FilterOptions::NullSelectionBehavior null_selection,
const std::shared_ptr<DataType>& indices_type = uint16()) {
auto filter = ArrayFromJSON(boolean(), filter_json);
auto expected_indices = ArrayFromJSON(indices_type, indices_json);
const auto& boolean_filter = checked_cast<const BooleanArray&>(*filter);
CheckTakeIndicesCase(boolean_filter, expected_indices, null_selection);
}
} // namespace
// ----------------------------------------------------------------------
TEST(GetTakeIndices, Basics) {
// Drop null cases
CheckTakeIndicesCase("[]", "[]", FilterOptions::DROP);
CheckTakeIndicesCase("[null]", "[]", FilterOptions::DROP);
CheckTakeIndicesCase("[null, false, true, true, false, true]", "[2, 3, 5]",
FilterOptions::DROP);
// Emit null cases
CheckTakeIndicesCase("[]", "[]", FilterOptions::EMIT_NULL);
CheckTakeIndicesCase("[null]", "[null]", FilterOptions::EMIT_NULL);
CheckTakeIndicesCase("[null, false, true, true]", "[null, 2, 3]",
FilterOptions::EMIT_NULL);
}
TEST(GetTakeIndices, NullValidityBuffer) {
BooleanArray filter(1, *AllocateEmptyBitmap(1), /*null_bitmap=*/nullptr);
auto expected_indices = ArrayFromJSON(uint16(), "[]");
CheckTakeIndicesCase(filter, expected_indices, FilterOptions::DROP);
CheckTakeIndicesCase(filter, expected_indices, FilterOptions::EMIT_NULL);
}
template <typename IndexArrayType>
void CheckGetTakeIndicesCase(const Array& untyped_filter) {
const auto& filter = checked_cast<const BooleanArray&>(untyped_filter);
ASSERT_OK_AND_ASSIGN(auto ree_filter, REEncode(*filter.data()));
ASSERT_OK_AND_ASSIGN(std::shared_ptr<ArrayData> drop_indices,
internal::GetTakeIndices(*filter.data(), FilterOptions::DROP));
ASSERT_OK_AND_ASSIGN(
std::shared_ptr<ArrayData> drop_indices_from_ree,
internal::GetTakeIndices(*ree_filter->data(), FilterOptions::DROP));
// Verify DROP indices
{
IndexArrayType indices(drop_indices);
IndexArrayType indices_from_ree(drop_indices);
ValidateOutput(indices);
ValidateOutput(indices_from_ree);
int64_t out_position = 0;
for (int64_t i = 0; i < filter.length(); ++i) {
if (filter.IsValid(i)) {
if (filter.Value(i)) {
ASSERT_EQ(indices.Value(out_position), i);
ASSERT_EQ(indices_from_ree.Value(out_position), i);
++out_position;
}
}
}
ASSERT_EQ(out_position, indices.length());
ASSERT_EQ(out_position, indices_from_ree.length());
// Check that the end length agrees with the output of GetFilterOutputSize
ASSERT_EQ(out_position,
internal::GetFilterOutputSize(*filter.data(), FilterOptions::DROP));
ASSERT_EQ(out_position,
internal::GetFilterOutputSize(*ree_filter->data(), FilterOptions::DROP));
}
ASSERT_OK_AND_ASSIGN(
std::shared_ptr<ArrayData> emit_indices,
internal::GetTakeIndices(*filter.data(), FilterOptions::EMIT_NULL));
ASSERT_OK_AND_ASSIGN(
std::shared_ptr<ArrayData> emit_indices_from_ree,
internal::GetTakeIndices(*ree_filter->data(), FilterOptions::EMIT_NULL));
// Verify EMIT_NULL indices
{
IndexArrayType indices(emit_indices);
IndexArrayType indices_from_ree(emit_indices);
ValidateOutput(indices);
ValidateOutput(indices_from_ree);
int64_t out_position = 0;
for (int64_t i = 0; i < filter.length(); ++i) {
if (filter.IsValid(i)) {
if (filter.Value(i)) {
ASSERT_EQ(indices.Value(out_position), i);
ASSERT_EQ(indices_from_ree.Value(out_position), i);
++out_position;
}
} else {
ASSERT_TRUE(indices.IsNull(out_position));
ASSERT_TRUE(indices_from_ree.IsNull(out_position));
++out_position;
}
}
ASSERT_EQ(out_position, indices.length());
ASSERT_EQ(out_position, indices_from_ree.length());
// Check that the end length agrees with the output of GetFilterOutputSize
ASSERT_EQ(out_position,
internal::GetFilterOutputSize(*filter.data(), FilterOptions::EMIT_NULL));
ASSERT_EQ(out_position, internal::GetFilterOutputSize(*ree_filter->data(),
FilterOptions::EMIT_NULL));
}
}
TEST(GetTakeIndices, RandomlyGenerated) {
random::RandomArrayGenerator rng(kRandomSeed);
// Multiple of word size + 1
const int64_t length = 6401;
for (auto null_prob : {0.0, 0.01, 0.999, 1.0}) {
for (auto true_prob : {0.0, 0.01, 0.999, 1.0}) {
auto filter = rng.Boolean(length, true_prob, null_prob);
CheckGetTakeIndicesCase<UInt16Array>(*filter);
CheckGetTakeIndicesCase<UInt16Array>(*filter->Slice(7));
}
}
// Check that the uint32 path is traveled successfully
const int64_t uint16_max = std::numeric_limits<uint16_t>::max();
auto filter =
std::static_pointer_cast<BooleanArray>(rng.Boolean(uint16_max + 1, 0.99, 0.01));
CheckGetTakeIndicesCase<UInt16Array>(*filter->Slice(1));
CheckGetTakeIndicesCase<UInt32Array>(*filter);
}
// ----------------------------------------------------------------------
// Filter tests
std::shared_ptr<Array> CoalesceNullToFalse(std::shared_ptr<Array> filter) {
const bool is_ree = filter->type_id() == Type::RUN_END_ENCODED;
// Work directly on run values array in case of REE
const ArrayData& data = is_ree ? *filter->data()->child_data[1] : *filter->data();
if (data.GetNullCount() == 0) {
return filter;
}
auto is_true = std::make_shared<BooleanArray>(data.length, data.buffers[1], nullptr, 0,
data.offset);
auto is_valid = std::make_shared<BooleanArray>(data.length, data.buffers[0], nullptr, 0,
data.offset);
EXPECT_OK_AND_ASSIGN(Datum out_datum, And(is_true, is_valid));
if (is_ree) {
const auto& ree_filter = checked_cast<const RunEndEncodedArray&>(*filter);
EXPECT_OK_AND_ASSIGN(
auto new_ree_filter,
RunEndEncodedArray::Make(ree_filter.length(), ree_filter.run_ends(),
/*values=*/out_datum.make_array(), ree_filter.offset()));
return new_ree_filter;
}
return out_datum.make_array();
}
class TestFilterKernel : public ::testing::Test {
protected:
TestFilterKernel() : emit_null_(FilterOptions::EMIT_NULL), drop_(FilterOptions::DROP) {}
void DoAssertFilter(const std::shared_ptr<Array>& values,
const std::shared_ptr<Array>& filter,
const std::shared_ptr<Array>& expected) {
// test with EMIT_NULL
{
ARROW_SCOPED_TRACE("with EMIT_NULL");
ASSERT_OK_AND_ASSIGN(Datum out_datum, Filter(values, filter, emit_null_));
auto actual = out_datum.make_array();
ValidateOutput(*actual);
AssertArraysEqual(*expected, *actual, /*verbose=*/true);
}
// test with DROP using EMIT_NULL and a coalesced filter
{
ARROW_SCOPED_TRACE("with DROP");
auto coalesced_filter = CoalesceNullToFalse(filter);
ASSERT_OK_AND_ASSIGN(Datum out_datum, Filter(values, coalesced_filter, emit_null_));
auto expected_for_drop = out_datum.make_array();
ASSERT_OK_AND_ASSIGN(out_datum, Filter(values, filter, drop_));
auto actual = out_datum.make_array();
ValidateOutput(*actual);
AssertArraysEqual(*expected_for_drop, *actual, /*verbose=*/true);
}
}
void AssertFilter(const std::shared_ptr<Array>& values,
const std::shared_ptr<Array>& filter,
const std::shared_ptr<Array>& expected) {
DoAssertFilter(values, filter, expected);
// Check slicing: add M(=3) dummy values at the start and end of `values`,
// add N(=2) dummy values at the start and end of `filter`.
ARROW_SCOPED_TRACE("for sliced values and filter");
ASSERT_OK_AND_ASSIGN(auto values_filler, MakeArrayOfNull(values->type(), 3));
ASSERT_OK_AND_ASSIGN(auto filter_filler,
FilterFromJSON(filter->type(), "[true, false]"));
ASSERT_OK_AND_ASSIGN(auto values_with_filler,
Concatenate({values_filler, values, values_filler}));
ASSERT_OK_AND_ASSIGN(auto filter_with_filler,
Concatenate({filter_filler, filter, filter_filler}));
auto values_sliced = values_with_filler->Slice(3, values->length());
auto filter_sliced = filter_with_filler->Slice(2, filter->length());
DoAssertFilter(values_sliced, filter_sliced, expected);
}
void AssertFilter(const std::shared_ptr<DataType>& type, const std::string& values,
const std::string& filter, const std::string& expected) {
auto values_array = ArrayFromJSON(type, values);
auto filter_array = ArrayFromJSON(boolean(), filter);
auto expected_array = ArrayFromJSON(type, expected);
AssertFilter(values_array, filter_array, expected_array);
ASSERT_OK_AND_ASSIGN(auto ree_filter, REEncode(filter_array));
ARROW_SCOPED_TRACE("for plain values and REE filter");
AssertFilter(values_array, ree_filter, expected_array);
}
const FilterOptions emit_null_, drop_;
};
void ValidateFilter(const std::shared_ptr<Array>& values,
const std::shared_ptr<Array>& filter_boxed) {
FilterOptions emit_null(FilterOptions::EMIT_NULL);
FilterOptions drop(FilterOptions::DROP);
ASSERT_OK_AND_ASSIGN(Datum out_datum, Filter(values, filter_boxed, emit_null));
auto filtered_emit_null = out_datum.make_array();
ValidateOutput(*filtered_emit_null);
ASSERT_OK_AND_ASSIGN(out_datum, Filter(values, filter_boxed, drop));
auto filtered_drop = out_datum.make_array();
ValidateOutput(*filtered_drop);
// Create the expected arrays using Take
ASSERT_OK_AND_ASSIGN(
std::shared_ptr<ArrayData> drop_indices,
internal::GetTakeIndices(*filter_boxed->data(), FilterOptions::DROP));
ASSERT_OK_AND_ASSIGN(Datum expected_drop, Take(values, Datum(drop_indices)));
ASSERT_OK_AND_ASSIGN(
std::shared_ptr<ArrayData> emit_null_indices,
internal::GetTakeIndices(*filter_boxed->data(), FilterOptions::EMIT_NULL));
ASSERT_OK_AND_ASSIGN(Datum expected_emit_null, Take(values, Datum(emit_null_indices)));
AssertArraysEqual(*expected_drop.make_array(), *filtered_drop,
/*verbose=*/true);
AssertArraysEqual(*expected_emit_null.make_array(), *filtered_emit_null,
/*verbose=*/true);
}
class TestFilterKernelWithNull : public TestFilterKernel {
protected:
void AssertFilter(const std::string& values, const std::string& filter,
const std::string& expected) {
TestFilterKernel::AssertFilter(ArrayFromJSON(null(), values),
ArrayFromJSON(boolean(), filter),
ArrayFromJSON(null(), expected));
}
};
TEST_F(TestFilterKernelWithNull, FilterNull) {
this->AssertFilter("[]", "[]", "[]");
this->AssertFilter("[null, null, null]", "[0, 1, 0]", "[null]");
this->AssertFilter("[null, null, null]", "[1, 1, 0]", "[null, null]");
}
class TestFilterKernelWithBoolean : public TestFilterKernel {
protected:
void AssertFilter(const std::string& values, const std::string& filter,
const std::string& expected) {
TestFilterKernel::AssertFilter(ArrayFromJSON(boolean(), values),
ArrayFromJSON(boolean(), filter),
ArrayFromJSON(boolean(), expected));
}
};
TEST_F(TestFilterKernelWithBoolean, FilterBoolean) {
this->AssertFilter("[]", "[]", "[]");
this->AssertFilter("[true, false, true]", "[0, 1, 0]", "[false]");
this->AssertFilter("[null, false, true]", "[0, 1, 0]", "[false]");
this->AssertFilter("[true, false, true]", "[null, 1, 0]", "[null, false]");
}
TEST_F(TestFilterKernelWithBoolean, DefaultOptions) {
auto values = ArrayFromJSON(int8(), "[7, 8, null, 9]");
auto filter = ArrayFromJSON(boolean(), "[1, 1, 0, null]");
ASSERT_OK_AND_ASSIGN(auto no_options_provided,
CallFunction("filter", {values, filter}));
auto default_options = FilterOptions::Defaults();
ASSERT_OK_AND_ASSIGN(auto explicit_defaults,
CallFunction("filter", {values, filter}, &default_options));
AssertDatumsEqual(explicit_defaults, no_options_provided);
}
template <typename ArrowType>
class TestFilterKernelWithNumeric : public TestFilterKernel {
protected:
std::shared_ptr<DataType> type_singleton() {
return TypeTraits<ArrowType>::type_singleton();
}
};
TYPED_TEST_SUITE(TestFilterKernelWithNumeric, NumericArrowTypes);
TYPED_TEST(TestFilterKernelWithNumeric, FilterNumeric) {
auto type = this->type_singleton();
this->AssertFilter(type, "[]", "[]", "[]");
this->AssertFilter(type, "[9]", "[0]", "[]");
this->AssertFilter(type, "[9]", "[1]", "[9]");
this->AssertFilter(type, "[9]", "[null]", "[null]");
this->AssertFilter(type, "[null]", "[0]", "[]");
this->AssertFilter(type, "[null]", "[1]", "[null]");
this->AssertFilter(type, "[null]", "[null]", "[null]");
this->AssertFilter(type, "[7, 8, 9]", "[0, 1, 0]", "[8]");
this->AssertFilter(type, "[7, 8, 9]", "[1, 0, 1]", "[7, 9]");
this->AssertFilter(type, "[null, 8, 9]", "[0, 1, 0]", "[8]");
this->AssertFilter(type, "[7, 8, 9]", "[null, 1, 0]", "[null, 8]");
this->AssertFilter(type, "[7, 8, 9]", "[1, null, 1]", "[7, null, 9]");
this->AssertFilter(ArrayFromJSON(type, "[7, 8, 9]"),
ArrayFromJSON(boolean(), "[0, 1, 1, 1, 0, 1]")->Slice(3, 3),
ArrayFromJSON(type, "[7, 9]"));
ASSERT_RAISES(Invalid, Filter(ArrayFromJSON(type, "[7, 8, 9]"),
ArrayFromJSON(boolean(), "[]"), this->emit_null_));
ASSERT_RAISES(Invalid, Filter(ArrayFromJSON(type, "[7, 8, 9]"),
ArrayFromJSON(boolean(), "[]"), this->drop_));
}
template <typename CType>
using Comparator = bool(CType, CType);
template <typename CType>
Comparator<CType>* GetComparator(CompareOperator op) {
static Comparator<CType>* cmp[] = {
// EQUAL
[](CType l, CType r) { return l == r; },
// NOT_EQUAL
[](CType l, CType r) { return l != r; },
// GREATER
[](CType l, CType r) { return l > r; },
// GREATER_EQUAL
[](CType l, CType r) { return l >= r; },
// LESS
[](CType l, CType r) { return l < r; },
// LESS_EQUAL
[](CType l, CType r) { return l <= r; },
};
return cmp[op];
}
template <typename T, typename Fn, typename CType = typename TypeTraits<T>::CType>
std::shared_ptr<Array> CompareAndFilter(const CType* data, int64_t length, Fn&& fn) {
std::vector<CType> filtered;
filtered.reserve(length);
std::copy_if(data, data + length, std::back_inserter(filtered), std::forward<Fn>(fn));
std::shared_ptr<Array> filtered_array;
ArrayFromVector<T, CType>(filtered, &filtered_array);
return filtered_array;
}
template <typename T, typename CType = typename TypeTraits<T>::CType>
std::shared_ptr<Array> CompareAndFilter(const CType* data, int64_t length, CType val,
CompareOperator op) {
auto cmp = GetComparator<CType>(op);
return CompareAndFilter<T>(data, length, [&](CType e) { return cmp(e, val); });
}
template <typename T, typename CType = typename TypeTraits<T>::CType>
std::shared_ptr<Array> CompareAndFilter(const CType* data, int64_t length,
const CType* other, CompareOperator op) {
auto cmp = GetComparator<CType>(op);
return CompareAndFilter<T>(data, length, [&](CType e) { return cmp(e, *other++); });
}
TYPED_TEST(TestFilterKernelWithNumeric, CompareScalarAndFilterRandomNumeric) {
using ScalarType = typename TypeTraits<TypeParam>::ScalarType;
using ArrayType = typename TypeTraits<TypeParam>::ArrayType;
using CType = typename TypeTraits<TypeParam>::CType;
auto rand = random::RandomArrayGenerator(kRandomSeed);
for (size_t i = 3; i < 10; i++) {
const int64_t length = static_cast<int64_t>(1ULL << i);
// TODO(bkietz) rewrite with some nulls
auto array =
checked_pointer_cast<ArrayType>(rand.Numeric<TypeParam>(length, 0, 100, 0));
CType c_fifty = 50;
auto fifty = std::make_shared<ScalarType>(c_fifty);
for (auto op : {EQUAL, NOT_EQUAL, GREATER, LESS_EQUAL}) {
ASSERT_OK_AND_ASSIGN(
Datum selection,
CallFunction(CompareOperatorToFunctionName(op), {array, Datum(fifty)}));
ASSERT_OK_AND_ASSIGN(Datum filtered, Filter(array, selection));
auto filtered_array = filtered.make_array();
ValidateOutput(*filtered_array);
auto expected =
CompareAndFilter<TypeParam>(array->raw_values(), array->length(), c_fifty, op);
ASSERT_ARRAYS_EQUAL(*filtered_array, *expected);
}
}
}
TYPED_TEST(TestFilterKernelWithNumeric, CompareArrayAndFilterRandomNumeric) {
using ArrayType = typename TypeTraits<TypeParam>::ArrayType;
auto rand = random::RandomArrayGenerator(kRandomSeed);
for (size_t i = 3; i < 10; i++) {
const int64_t length = static_cast<int64_t>(1ULL << i);
auto lhs = checked_pointer_cast<ArrayType>(
rand.Numeric<TypeParam>(length, 0, 100, /*null_probability=*/0.0));
auto rhs = checked_pointer_cast<ArrayType>(
rand.Numeric<TypeParam>(length, 0, 100, /*null_probability=*/0.0));
for (auto op : {EQUAL, NOT_EQUAL, GREATER, LESS_EQUAL}) {
ASSERT_OK_AND_ASSIGN(Datum selection,
CallFunction(CompareOperatorToFunctionName(op), {lhs, rhs}));
ASSERT_OK_AND_ASSIGN(Datum filtered, Filter(lhs, selection));
auto filtered_array = filtered.make_array();
ValidateOutput(*filtered_array);
auto expected = CompareAndFilter<TypeParam>(lhs->raw_values(), lhs->length(),
rhs->raw_values(), op);
ASSERT_ARRAYS_EQUAL(*filtered_array, *expected);
}
}
}
TYPED_TEST(TestFilterKernelWithNumeric, ScalarInRangeAndFilterRandomNumeric) {
using ScalarType = typename TypeTraits<TypeParam>::ScalarType;
using ArrayType = typename TypeTraits<TypeParam>::ArrayType;
using CType = typename TypeTraits<TypeParam>::CType;
auto rand = random::RandomArrayGenerator(kRandomSeed);
for (size_t i = 3; i < 10; i++) {
const int64_t length = static_cast<int64_t>(1ULL << i);
auto array = checked_pointer_cast<ArrayType>(
rand.Numeric<TypeParam>(length, 0, 100, /*null_probability=*/0.0));
CType c_fifty = 50, c_hundred = 100;
auto fifty = std::make_shared<ScalarType>(c_fifty);
auto hundred = std::make_shared<ScalarType>(c_hundred);
ASSERT_OK_AND_ASSIGN(Datum greater_than_fifty,
CallFunction("greater", {array, Datum(fifty)}));
ASSERT_OK_AND_ASSIGN(Datum less_than_hundred,
CallFunction("less", {array, Datum(hundred)}));
ASSERT_OK_AND_ASSIGN(Datum selection, And(greater_than_fifty, less_than_hundred));
ASSERT_OK_AND_ASSIGN(Datum filtered, Filter(array, selection));
auto filtered_array = filtered.make_array();
ValidateOutput(*filtered_array);
auto expected = CompareAndFilter<TypeParam>(
array->raw_values(), array->length(),
[&](CType e) { return (e > c_fifty) && (e < c_hundred); });
ASSERT_ARRAYS_EQUAL(*filtered_array, *expected);
}
}
template <typename ArrowType>
class TestFilterKernelWithDecimal : public TestFilterKernel {
protected:
std::shared_ptr<DataType> type_singleton() { return std::make_shared<ArrowType>(3, 2); }
};
TYPED_TEST_SUITE(TestFilterKernelWithDecimal, DecimalArrowTypes);
TYPED_TEST(TestFilterKernelWithDecimal, FilterNumeric) {
auto type = this->type_singleton();
this->AssertFilter(type, R"([])", "[]", R"([])");
this->AssertFilter(type, R"(["9.00"])", "[0]", R"([])");
this->AssertFilter(type, R"(["9.00"])", "[1]", R"(["9.00"])");
this->AssertFilter(type, R"(["9.00"])", "[null]", R"([null])");
this->AssertFilter(type, R"([null])", "[0]", R"([])");
this->AssertFilter(type, R"([null])", "[1]", R"([null])");
this->AssertFilter(type, R"([null])", "[null]", R"([null])");
this->AssertFilter(type, R"(["7.12", "8.00", "9.87"])", "[0, 1, 0]", R"(["8.00"])");
this->AssertFilter(type, R"(["7.12", "8.00", "9.87"])", "[1, 0, 1]",
R"(["7.12", "9.87"])");
this->AssertFilter(type, R"([null, "8.00", "9.87"])", "[0, 1, 0]", R"(["8.00"])");
this->AssertFilter(type, R"(["7.12", "8.00", "9.87"])", "[null, 1, 0]",
R"([null, "8.00"])");
this->AssertFilter(type, R"(["7.12", "8.00", "9.87"])", "[1, null, 1]",
R"(["7.12", null, "9.87"])");
this->AssertFilter(ArrayFromJSON(type, R"(["7.12", "8.00", "9.87"])"),
ArrayFromJSON(boolean(), "[0, 1, 1, 1, 0, 1]")->Slice(3, 3),
ArrayFromJSON(type, R"(["7.12", "9.87"])"));
ASSERT_RAISES(Invalid, Filter(ArrayFromJSON(type, R"(["7.12", "8.00", "9.87"])"),
ArrayFromJSON(boolean(), "[]"), this->emit_null_));
ASSERT_RAISES(Invalid, Filter(ArrayFromJSON(type, R"(["7.12", "8.00", "9.87"])"),
ArrayFromJSON(boolean(), "[]"), this->drop_));
}
TEST(TestFilterKernel, NoValidityBitmapButUnknownNullCount) {
auto values = ArrayFromJSON(int32(), "[1, 2, 3, 4]");
auto filter = ArrayFromJSON(boolean(), "[true, true, false, true]");
auto expected = (*Filter(values, filter)).make_array();
filter->data()->null_count = kUnknownNullCount;
auto result = (*Filter(values, filter)).make_array();
AssertArraysEqual(*expected, *result);
}
template <typename TypeClass>
class TestFilterKernelWithString : public TestFilterKernel {
protected:
std::shared_ptr<DataType> value_type() {
return TypeTraits<TypeClass>::type_singleton();
}
void AssertFilter(const std::string& values, const std::string& filter,
const std::string& expected) {
TestFilterKernel::AssertFilter(ArrayFromJSON(value_type(), values),
ArrayFromJSON(boolean(), filter),
ArrayFromJSON(value_type(), expected));
}
void AssertFilterDictionary(const std::string& dictionary_values,
const std::string& dictionary_filter,
const std::string& filter,
const std::string& expected_filter) {
auto dict = ArrayFromJSON(value_type(), dictionary_values);
auto type = dictionary(int8(), value_type());
ASSERT_OK_AND_ASSIGN(auto values,
DictionaryArray::FromArrays(
type, ArrayFromJSON(int8(), dictionary_filter), dict));
ASSERT_OK_AND_ASSIGN(
auto expected,
DictionaryArray::FromArrays(type, ArrayFromJSON(int8(), expected_filter), dict));
auto take_filter = ArrayFromJSON(boolean(), filter);
TestFilterKernel::AssertFilter(values, take_filter, expected);
}
};
TYPED_TEST_SUITE(TestFilterKernelWithString, BaseBinaryArrowTypes);
TYPED_TEST(TestFilterKernelWithString, FilterString) {
this->AssertFilter(R"(["a", "b", "c"])", "[0, 1, 0]", R"(["b"])");
this->AssertFilter(R"([null, "b", "c"])", "[0, 1, 0]", R"(["b"])");
this->AssertFilter(R"(["a", "b", "c"])", "[null, 1, 0]", R"([null, "b"])");
}
TYPED_TEST(TestFilterKernelWithString, FilterDictionary) {
auto dict = R"(["a", "b", "c", "d", "e"])";
this->AssertFilterDictionary(dict, "[3, 4, 2]", "[0, 1, 0]", "[4]");
this->AssertFilterDictionary(dict, "[null, 4, 2]", "[0, 1, 0]", "[4]");
this->AssertFilterDictionary(dict, "[3, 4, 2]", "[null, 1, 0]", "[null, 4]");
}
class TestFilterKernelWithList : public TestFilterKernel {
public:
};
TEST_F(TestFilterKernelWithList, FilterListInt32) {
std::string list_json = "[[], [1,2], null, [3]]";
this->AssertFilter(list(int32()), list_json, "[0, 0, 0, 0]", "[]");
this->AssertFilter(list(int32()), list_json, "[0, 1, 1, null]", "[[1,2], null, null]");
this->AssertFilter(list(int32()), list_json, "[0, 0, 1, null]", "[null, null]");
this->AssertFilter(list(int32()), list_json, "[1, 0, 0, 1]", "[[], [3]]");
this->AssertFilter(list(int32()), list_json, "[1, 1, 1, 1]", list_json);
this->AssertFilter(list(int32()), list_json, "[0, 1, 0, 1]", "[[1,2], [3]]");
}
TEST_F(TestFilterKernelWithList, FilterListListInt32) {
std::string list_json = R"([
[],
[[1], [2, null, 2], []],
null,
[[3, null], null]
])";
auto type = list(list(int32()));
this->AssertFilter(type, list_json, "[0, 0, 0, 0]", "[]");
this->AssertFilter(type, list_json, "[0, 1, 1, null]", R"([
[[1], [2, null, 2], []],
null,
null
])");
this->AssertFilter(type, list_json, "[0, 0, 1, null]", "[null, null]");
this->AssertFilter(type, list_json, "[1, 0, 0, 1]", R"([
[],
[[3, null], null]
])");
this->AssertFilter(type, list_json, "[1, 1, 1, 1]", list_json);
this->AssertFilter(type, list_json, "[0, 1, 0, 1]", R"([
[[1], [2, null, 2], []],
[[3, null], null]
])");
}
class TestFilterKernelWithLargeList : public TestFilterKernel {};
TEST_F(TestFilterKernelWithLargeList, FilterListInt32) {
std::string list_json = "[[], [1,2], null, [3]]";
this->AssertFilter(large_list(int32()), list_json, "[0, 0, 0, 0]", "[]");
this->AssertFilter(large_list(int32()), list_json, "[0, 1, 1, null]",
"[[1,2], null, null]");
}
class TestFilterKernelWithFixedSizeList : public TestFilterKernel {};
TEST_F(TestFilterKernelWithFixedSizeList, FilterFixedSizeListInt32) {
std::string list_json = "[null, [1, null, 3], [4, 5, 6], [7, 8, null]]";
this->AssertFilter(fixed_size_list(int32(), 3), list_json, "[0, 0, 0, 0]", "[]");
this->AssertFilter(fixed_size_list(int32(), 3), list_json, "[0, 1, 1, null]",
"[[1, null, 3], [4, 5, 6], null]");
this->AssertFilter(fixed_size_list(int32(), 3), list_json, "[0, 0, 1, null]",
"[[4, 5, 6], null]");
this->AssertFilter(fixed_size_list(int32(), 3), list_json, "[1, 1, 1, 1]", list_json);
this->AssertFilter(fixed_size_list(int32(), 3), list_json, "[0, 1, 0, 1]",
"[[1, null, 3], [7, 8, null]]");
}
class TestFilterKernelWithMap : public TestFilterKernel {};
TEST_F(TestFilterKernelWithMap, FilterMapStringToInt32) {
std::string map_json = R"([
[["joe", 0], ["mark", null]],
null,
[["cap", 8]],
[]
])";
this->AssertFilter(map(utf8(), int32()), map_json, "[0, 0, 0, 0]", "[]");
this->AssertFilter(map(utf8(), int32()), map_json, "[0, 1, 1, null]", R"([
null,
[["cap", 8]],
null
])");
this->AssertFilter(map(utf8(), int32()), map_json, "[1, 1, 1, 1]", map_json);
this->AssertFilter(map(utf8(), int32()), map_json, "[0, 1, 0, 1]", "[null, []]");
}
class TestFilterKernelWithStruct : public TestFilterKernel {};
TEST_F(TestFilterKernelWithStruct, FilterStruct) {
auto struct_type = struct_({field("a", int32()), field("b", utf8())});
auto struct_json = R"([
null,
{"a": 1, "b": ""},
{"a": 2, "b": "hello"},
{"a": 4, "b": "eh"}
])";
this->AssertFilter(struct_type, struct_json, "[0, 0, 0, 0]", "[]");
this->AssertFilter(struct_type, struct_json, "[0, 1, 1, null]", R"([
{"a": 1, "b": ""},
{"a": 2, "b": "hello"},
null
])");
this->AssertFilter(struct_type, struct_json, "[1, 1, 1, 1]", struct_json);
this->AssertFilter(struct_type, struct_json, "[1, 0, 1, 0]", R"([
null,
{"a": 2, "b": "hello"}
])");
}
class TestFilterKernelWithUnion : public TestFilterKernel {};
TEST_F(TestFilterKernelWithUnion, FilterUnion) {
for (const auto& union_type :
{dense_union({field("a", int32()), field("b", utf8())}, {2, 5}),
sparse_union({field("a", int32()), field("b", utf8())}, {2, 5})}) {
auto union_json = R"([
[2, null],
[2, 222],
[5, "hello"],
[5, "eh"],
[2, null],
[2, 111],
[5, null]
])";
this->AssertFilter(union_type, union_json, "[0, 0, 0, 0, 0, 0, 0]", "[]");
this->AssertFilter(union_type, union_json, "[0, 1, 1, null, 0, 1, 1]", R"([
[2, 222],
[5, "hello"],
[2, null],
[2, 111],
[5, null]
])");
this->AssertFilter(union_type, union_json, "[1, 0, 1, 0, 1, 0, 0]", R"([
[2, null],
[5, "hello"],
[2, null]
])");
this->AssertFilter(union_type, union_json, "[1, 1, 1, 1, 1, 1, 1]", union_json);
}
}
class TestFilterKernelWithRecordBatch : public TestFilterKernel {
public:
void AssertFilter(const std::shared_ptr<Schema>& schm, const std::string& batch_json,
const std::string& selection, FilterOptions options,
const std::string& expected_batch) {
std::shared_ptr<RecordBatch> actual;
ASSERT_OK(this->DoFilter(schm, batch_json, selection, options, &actual));
ValidateOutput(actual);
ASSERT_BATCHES_EQUAL(*RecordBatchFromJSON(schm, expected_batch), *actual);
}
Status DoFilter(const std::shared_ptr<Schema>& schm, const std::string& batch_json,
const std::string& selection, FilterOptions options,
std::shared_ptr<RecordBatch>* out) {
auto batch = RecordBatchFromJSON(schm, batch_json);
ARROW_ASSIGN_OR_RAISE(Datum out_datum,
Filter(batch, ArrayFromJSON(boolean(), selection), options));
*out = out_datum.record_batch();
return Status::OK();
}
};
TEST_F(TestFilterKernelWithRecordBatch, FilterRecordBatch) {
std::vector<std::shared_ptr<Field>> fields = {field("a", int32()), field("b", utf8())};
auto schm = schema(fields);
auto batch_json = R"([
{"a": null, "b": "yo"},
{"a": 1, "b": ""},
{"a": 2, "b": "hello"},
{"a": 4, "b": "eh"}
])";
for (auto options : {this->emit_null_, this->drop_}) {
this->AssertFilter(schm, batch_json, "[0, 0, 0, 0]", options, "[]");
this->AssertFilter(schm, batch_json, "[1, 1, 1, 1]", options, batch_json);
this->AssertFilter(schm, batch_json, "[1, 0, 1, 0]", options, R"([
{"a": null, "b": "yo"},
{"a": 2, "b": "hello"}
])");
}
this->AssertFilter(schm, batch_json, "[0, 1, 1, null]", this->drop_, R"([
{"a": 1, "b": ""},
{"a": 2, "b": "hello"}
])");
this->AssertFilter(schm, batch_json, "[0, 1, 1, null]", this->emit_null_, R"([
{"a": 1, "b": ""},
{"a": 2, "b": "hello"},
{"a": null, "b": null}
])");
}
class TestFilterKernelWithChunkedArray : public TestFilterKernel {
public:
void AssertFilter(const std::shared_ptr<DataType>& type,
const std::vector<std::string>& values, const std::string& filter,
const std::vector<std::string>& expected) {
std::shared_ptr<ChunkedArray> actual;
ASSERT_OK(this->FilterWithArray(type, values, filter, &actual));
ValidateOutput(actual);
AssertChunkedEqual(*ChunkedArrayFromJSON(type, expected), *actual);
}
void AssertChunkedFilter(const std::shared_ptr<DataType>& type,
const std::vector<std::string>& values,
const std::vector<std::string>& filter,
const std::vector<std::string>& expected) {
std::shared_ptr<ChunkedArray> actual;
ASSERT_OK(this->FilterWithChunkedArray(type, values, filter, &actual));
ValidateOutput(actual);
AssertChunkedEqual(*ChunkedArrayFromJSON(type, expected), *actual);
}
Status FilterWithArray(const std::shared_ptr<DataType>& type,
const std::vector<std::string>& values,
const std::string& filter, std::shared_ptr<ChunkedArray>* out) {
ARROW_ASSIGN_OR_RAISE(Datum out_datum, Filter(ChunkedArrayFromJSON(type, values),
ArrayFromJSON(boolean(), filter)));
*out = out_datum.chunked_array();
return Status::OK();
}
Status FilterWithChunkedArray(const std::shared_ptr<DataType>& type,
const std::vector<std::string>& values,
const std::vector<std::string>& filter,
std::shared_ptr<ChunkedArray>* out) {
ARROW_ASSIGN_OR_RAISE(Datum out_datum,
Filter(ChunkedArrayFromJSON(type, values),
ChunkedArrayFromJSON(boolean(), filter)));
*out = out_datum.chunked_array();
return Status::OK();
}
};
TEST_F(TestFilterKernelWithChunkedArray, FilterChunkedArray) {
this->AssertFilter(int8(), {"[]"}, "[]", {});
this->AssertChunkedFilter(int8(), {"[]"}, {"[]"}, {});
this->AssertFilter(int8(), {"[7]", "[8, 9]"}, "[0, 1, 0]", {"[8]"});
this->AssertChunkedFilter(int8(), {"[7]", "[8, 9]"}, {"[0]", "[1, 0]"}, {"[8]"});
this->AssertChunkedFilter(int8(), {"[7]", "[8, 9]"}, {"[0, 1]", "[0]"}, {"[8]"});
std::shared_ptr<ChunkedArray> arr;
ASSERT_RAISES(
Invalid, this->FilterWithArray(int8(), {"[7]", "[8, 9]"}, "[0, 1, 0, 1, 1]", &arr));
ASSERT_RAISES(Invalid, this->FilterWithChunkedArray(int8(), {"[7]", "[8, 9]"},
{"[0, 1, 0]", "[1, 1]"}, &arr));
}
class TestFilterKernelWithTable : public TestFilterKernel {
public:
void AssertFilter(const std::shared_ptr<Schema>& schm,
const std::vector<std::string>& table_json, const std::string& filter,
FilterOptions options,
const std::vector<std::string>& expected_table) {
std::shared_ptr<Table> actual;
ASSERT_OK(this->FilterWithArray(schm, table_json, filter, options, &actual));
ValidateOutput(actual);
ASSERT_TABLES_EQUAL(*TableFromJSON(schm, expected_table), *actual);
}
void AssertChunkedFilter(const std::shared_ptr<Schema>& schm,
const std::vector<std::string>& table_json,
const std::vector<std::string>& filter, FilterOptions options,
const std::vector<std::string>& expected_table) {
std::shared_ptr<Table> actual;
ASSERT_OK(this->FilterWithChunkedArray(schm, table_json, filter, options, &actual));
ValidateOutput(actual);
AssertTablesEqual(*TableFromJSON(schm, expected_table), *actual,
/*same_chunk_layout=*/false);
}
Status FilterWithArray(const std::shared_ptr<Schema>& schm,
const std::vector<std::string>& values,
const std::string& filter, FilterOptions options,
std::shared_ptr<Table>* out) {
ARROW_ASSIGN_OR_RAISE(
Datum out_datum,
Filter(TableFromJSON(schm, values), ArrayFromJSON(boolean(), filter), options));
*out = out_datum.table();
return Status::OK();
}
Status FilterWithChunkedArray(const std::shared_ptr<Schema>& schm,
const std::vector<std::string>& values,
const std::vector<std::string>& filter,
FilterOptions options, std::shared_ptr<Table>* out) {
ARROW_ASSIGN_OR_RAISE(Datum out_datum,
Filter(TableFromJSON(schm, values),
ChunkedArrayFromJSON(boolean(), filter), options));
*out = out_datum.table();
return Status::OK();
}
};
TEST_F(TestFilterKernelWithTable, FilterTable) {
std::vector<std::shared_ptr<Field>> fields = {field("a", int32()), field("b", utf8())};
auto schm = schema(fields);
std::vector<std::string> table_json = {R"([
{"a": null, "b": "yo"},
{"a": 1, "b": ""}
])",
R"([
{"a": 2, "b": "hello"},
{"a": 4, "b": "eh"}
])"};
for (auto options : {this->emit_null_, this->drop_}) {
this->AssertFilter(schm, table_json, "[0, 0, 0, 0]", options, {});
this->AssertChunkedFilter(schm, table_json, {"[0]", "[0, 0, 0]"}, options, {});
this->AssertFilter(schm, table_json, "[1, 1, 1, 1]", options, table_json);
this->AssertChunkedFilter(schm, table_json, {"[1]", "[1, 1, 1]"}, options,
table_json);
}
std::vector<std::string> expected_emit_null = {R"([
{"a": 1, "b": ""}
])",
R"([
{"a": 2, "b": "hello"},
{"a": null, "b": null}
])"};
this->AssertFilter(schm, table_json, "[0, 1, 1, null]", this->emit_null_,
expected_emit_null);
this->AssertChunkedFilter(schm, table_json, {"[0, 1, 1]", "[null]"}, this->emit_null_,
expected_emit_null);
std::vector<std::string> expected_drop = {R"([{"a": 1, "b": ""}])",
R"([{"a": 2, "b": "hello"}])"};
this->AssertFilter(schm, table_json, "[0, 1, 1, null]", this->drop_, expected_drop);
this->AssertChunkedFilter(schm, table_json, {"[0, 1, 1]", "[null]"}, this->drop_,
expected_drop);
}
TEST(TestFilterMetaFunction, ArityChecking) {
ASSERT_RAISES(Invalid, CallFunction("filter", ExecBatch({}, 0)));
}
// ----------------------------------------------------------------------
// Take tests
void AssertTakeArrays(const std::shared_ptr<Array>& values,
const std::shared_ptr<Array>& indices,
const std::shared_ptr<Array>& expected) {
ASSERT_OK_AND_ASSIGN(std::shared_ptr<Array> actual, Take(*values, *indices));
ValidateOutput(actual);
AssertArraysEqual(*expected, *actual, /*verbose=*/true);
}
Status TakeJSON(const std::shared_ptr<DataType>& type, const std::string& values,
const std::shared_ptr<DataType>& index_type, const std::string& indices,
std::shared_ptr<Array>* out) {
return Take(*ArrayFromJSON(type, values), *ArrayFromJSON(index_type, indices))
.Value(out);
}
void CheckTake(const std::shared_ptr<DataType>& type, const std::string& values_json,
const std::string& indices_json, const std::string& expected_json) {
auto values = ArrayFromJSON(type, values_json);
auto expected = ArrayFromJSON(type, expected_json);
for (auto index_type : {int8(), uint32()}) {
auto indices = ArrayFromJSON(index_type, indices_json);
AssertTakeArrays(values, indices, expected);
// Check sliced values
ASSERT_OK_AND_ASSIGN(auto values_filler, MakeArrayOfNull(type, 2));
ASSERT_OK_AND_ASSIGN(auto values_sliced,
Concatenate({values_filler, values, values_filler}));
values_sliced = values_sliced->Slice(2, values->length());
AssertTakeArrays(values_sliced, indices, expected);
// Check sliced indices
ASSERT_OK_AND_ASSIGN(auto zero, MakeScalar(index_type, int8_t{0}));
ASSERT_OK_AND_ASSIGN(auto indices_filler, MakeArrayFromScalar(*zero, 3));
ASSERT_OK_AND_ASSIGN(auto indices_sliced,
Concatenate({indices_filler, indices, indices_filler}));
indices_sliced = indices_sliced->Slice(3, indices->length());
AssertTakeArrays(values, indices_sliced, expected);
}
}
void AssertTakeNull(const std::string& values, const std::string& indices,
const std::string& expected) {
CheckTake(null(), values, indices, expected);
}
void AssertTakeBoolean(const std::string& values, const std::string& indices,
const std::string& expected) {
CheckTake(boolean(), values, indices, expected);
}
template <typename ValuesType, typename IndexType>
void ValidateTakeImpl(const std::shared_ptr<Array>& values,
const std::shared_ptr<Array>& indices,
const std::shared_ptr<Array>& result) {
using ValuesArrayType = typename TypeTraits<ValuesType>::ArrayType;
using IndexArrayType = typename TypeTraits<IndexType>::ArrayType;
auto typed_values = checked_pointer_cast<ValuesArrayType>(values);
auto typed_result = checked_pointer_cast<ValuesArrayType>(result);
auto typed_indices = checked_pointer_cast<IndexArrayType>(indices);
for (int64_t i = 0; i < indices->length(); ++i) {
if (typed_indices->IsNull(i) || typed_values->IsNull(typed_indices->Value(i))) {
ASSERT_TRUE(result->IsNull(i)) << i;
} else {
ASSERT_FALSE(result->IsNull(i)) << i;
ASSERT_EQ(typed_result->GetView(i), typed_values->GetView(typed_indices->Value(i)))
<< i;
}
}
}
template <typename ValuesType>
void ValidateTake(const std::shared_ptr<Array>& values,
const std::shared_ptr<Array>& indices) {
ASSERT_OK_AND_ASSIGN(Datum out, Take(values, indices));
auto taken = out.make_array();
ValidateOutput(taken);
ASSERT_EQ(indices->length(), taken->length());
switch (indices->type_id()) {
case Type::INT8:
ValidateTakeImpl<ValuesType, Int8Type>(values, indices, taken);
break;
case Type::INT16:
ValidateTakeImpl<ValuesType, Int16Type>(values, indices, taken);
break;
case Type::INT32:
ValidateTakeImpl<ValuesType, Int32Type>(values, indices, taken);
break;
case Type::INT64:
ValidateTakeImpl<ValuesType, Int64Type>(values, indices, taken);
break;
case Type::UINT8:
ValidateTakeImpl<ValuesType, UInt8Type>(values, indices, taken);
break;
case Type::UINT16:
ValidateTakeImpl<ValuesType, UInt16Type>(values, indices, taken);
break;
case Type::UINT32:
ValidateTakeImpl<ValuesType, UInt32Type>(values, indices, taken);
break;
case Type::UINT64:
ValidateTakeImpl<ValuesType, UInt64Type>(values, indices, taken);
break;
default:
FAIL() << "Invalid index type";
break;
}
}
template <typename T>
T GetMaxIndex(int64_t values_length) {
int64_t max_index = values_length - 1;
if (max_index > static_cast<int64_t>(std::numeric_limits<T>::max())) {
max_index = std::numeric_limits<T>::max();
}
return static_cast<T>(max_index);
}
template <>
uint64_t GetMaxIndex(int64_t values_length) {
return static_cast<uint64_t>(values_length - 1);
}
class TestTakeKernel : public ::testing::Test {
public:
void TestNoValidityBitmapButUnknownNullCount(const std::shared_ptr<Array>& values,
const std::shared_ptr<Array>& indices) {
ASSERT_EQ(values->null_count(), 0);
ASSERT_EQ(indices->null_count(), 0);
auto expected = (*Take(values, indices)).make_array();
auto new_values = MakeArray(values->data()->Copy());
new_values->data()->buffers[0].reset();
new_values->data()->null_count = kUnknownNullCount;
auto new_indices = MakeArray(indices->data()->Copy());
new_indices->data()->buffers[0].reset();
new_indices->data()->null_count = kUnknownNullCount;
auto result = (*Take(new_values, new_indices)).make_array();
AssertArraysEqual(*expected, *result);
}
void TestNoValidityBitmapButUnknownNullCount(const std::shared_ptr<DataType>& type,
const std::string& values,
const std::string& indices) {
TestNoValidityBitmapButUnknownNullCount(ArrayFromJSON(type, values),
ArrayFromJSON(int16(), indices));
}
};
template <typename ArrowType>
class TestTakeKernelTyped : public TestTakeKernel {};
TEST_F(TestTakeKernel, TakeNull) {
AssertTakeNull("[null, null, null]", "[0, 1, 0]", "[null, null, null]");
AssertTakeNull("[null, null, null]", "[0, 2]", "[null, null]");
std::shared_ptr<Array> arr;
ASSERT_RAISES(IndexError,
TakeJSON(null(), "[null, null, null]", int8(), "[0, 9, 0]", &arr));
ASSERT_RAISES(IndexError,
TakeJSON(boolean(), "[null, null, null]", int8(), "[0, -1, 0]", &arr));
}
TEST_F(TestTakeKernel, InvalidIndexType) {
std::shared_ptr<Array> arr;
ASSERT_RAISES(NotImplemented, TakeJSON(null(), "[null, null, null]", float32(),
"[0.0, 1.0, 0.1]", &arr));
}
TEST_F(TestTakeKernel, TakeCCEmptyIndices) {
Datum dat = ChunkedArrayFromJSON(int8(), {"[]"});
Datum idx = ChunkedArrayFromJSON(int32(), {});
ASSERT_OK_AND_ASSIGN(auto out, Take(dat, idx));
ValidateOutput(out);
AssertDatumsEqual(ChunkedArrayFromJSON(int8(), {"[]"}), out, true);
}
TEST_F(TestTakeKernel, TakeACEmptyIndices) {
Datum dat = ArrayFromJSON(int8(), {"[]"});
Datum idx = ChunkedArrayFromJSON(int32(), {});
ASSERT_OK_AND_ASSIGN(auto out, Take(dat, idx));
ValidateOutput(out);
AssertDatumsEqual(ChunkedArrayFromJSON(int8(), {"[]"}), out, true);
}
TEST_F(TestTakeKernel, DefaultOptions) {
auto indices = ArrayFromJSON(int8(), "[null, 2, 0, 3]");
auto values = ArrayFromJSON(int8(), "[7, 8, 9, null]");
ASSERT_OK_AND_ASSIGN(auto no_options_provided, CallFunction("take", {values, indices}));
auto default_options = TakeOptions::Defaults();
ASSERT_OK_AND_ASSIGN(auto explicit_defaults,
CallFunction("take", {values, indices}, &default_options));
AssertDatumsEqual(explicit_defaults, no_options_provided);
}
TEST_F(TestTakeKernel, TakeBoolean) {
AssertTakeBoolean("[7, 8, 9]", "[]", "[]");
AssertTakeBoolean("[true, false, true]", "[0, 1, 0]", "[true, false, true]");
AssertTakeBoolean("[null, false, true]", "[0, 1, 0]", "[null, false, null]");
AssertTakeBoolean("[true, false, true]", "[null, 1, 0]", "[null, false, true]");
TestNoValidityBitmapButUnknownNullCount(boolean(), "[true, false, true]", "[1, 0, 0]");
std::shared_ptr<Array> arr;
ASSERT_RAISES(IndexError,
TakeJSON(boolean(), "[true, false, true]", int8(), "[0, 9, 0]", &arr));
ASSERT_RAISES(IndexError,
TakeJSON(boolean(), "[true, false, true]", int8(), "[0, -1, 0]", &arr));
}
template <typename ArrowType>
class TestTakeKernelWithNumeric : public TestTakeKernelTyped<ArrowType> {
protected:
void AssertTake(const std::string& values, const std::string& indices,
const std::string& expected) {
CheckTake(type_singleton(), values, indices, expected);
}
std::shared_ptr<DataType> type_singleton() {
return TypeTraits<ArrowType>::type_singleton();
}
};
TYPED_TEST_SUITE(TestTakeKernelWithNumeric, NumericArrowTypes);
TYPED_TEST(TestTakeKernelWithNumeric, TakeNumeric) {
this->AssertTake("[7, 8, 9]", "[]", "[]");
this->AssertTake("[7, 8, 9]", "[0, 1, 0]", "[7, 8, 7]");
this->AssertTake("[null, 8, 9]", "[0, 1, 0]", "[null, 8, null]");
this->AssertTake("[7, 8, 9]", "[null, 1, 0]", "[null, 8, 7]");
this->AssertTake("[null, 8, 9]", "[]", "[]");
this->AssertTake("[7, 8, 9]", "[0, 0, 0, 0, 0, 0, 2]", "[7, 7, 7, 7, 7, 7, 9]");
std::shared_ptr<Array> arr;
ASSERT_RAISES(IndexError,
TakeJSON(this->type_singleton(), "[7, 8, 9]", int8(), "[0, 9, 0]", &arr));
ASSERT_RAISES(IndexError, TakeJSON(this->type_singleton(), "[7, 8, 9]", int8(),
"[0, -1, 0]", &arr));
}
template <typename TypeClass>
class TestTakeKernelWithString : public TestTakeKernelTyped<TypeClass> {
public:
std::shared_ptr<DataType> value_type() {
return TypeTraits<TypeClass>::type_singleton();
}
void AssertTake(const std::string& values, const std::string& indices,
const std::string& expected) {
CheckTake(value_type(), values, indices, expected);
}
void AssertTakeDictionary(const std::string& dictionary_values,
const std::string& dictionary_indices,
const std::string& indices,
const std::string& expected_indices) {
auto dict = ArrayFromJSON(value_type(), dictionary_values);
auto type = dictionary(int8(), value_type());
ASSERT_OK_AND_ASSIGN(auto values,
DictionaryArray::FromArrays(
type, ArrayFromJSON(int8(), dictionary_indices), dict));
ASSERT_OK_AND_ASSIGN(
auto expected,
DictionaryArray::FromArrays(type, ArrayFromJSON(int8(), expected_indices), dict));
auto take_indices = ArrayFromJSON(int8(), indices);
AssertTakeArrays(values, take_indices, expected);
}
};
TYPED_TEST_SUITE(TestTakeKernelWithString, BaseBinaryArrowTypes);
TYPED_TEST(TestTakeKernelWithString, TakeString) {
this->AssertTake(R"(["a", "b", "c"])", "[0, 1, 0]", R"(["a", "b", "a"])");
this->AssertTake(R"([null, "b", "c"])", "[0, 1, 0]", "[null, \"b\", null]");
this->AssertTake(R"(["a", "b", "c"])", "[null, 1, 0]", R"([null, "b", "a"])");
this->TestNoValidityBitmapButUnknownNullCount(this->value_type(), R"(["a", "b", "c"])",
"[0, 1, 0]");
std::shared_ptr<DataType> type = this->value_type();
std::shared_ptr<Array> arr;
ASSERT_RAISES(IndexError,
TakeJSON(type, R"(["a", "b", "c"])", int8(), "[0, 9, 0]", &arr));
ASSERT_RAISES(IndexError, TakeJSON(type, R"(["a", "b", null, "ddd", "ee"])", int64(),
"[2, 5]", &arr));
}
TYPED_TEST(TestTakeKernelWithString, TakeDictionary) {
auto dict = R"(["a", "b", "c", "d", "e"])";
this->AssertTakeDictionary(dict, "[3, 4, 2]", "[0, 1, 0]", "[3, 4, 3]");
this->AssertTakeDictionary(dict, "[null, 4, 2]", "[0, 1, 0]", "[null, 4, null]");
this->AssertTakeDictionary(dict, "[3, 4, 2]", "[null, 1, 0]", "[null, 4, 3]");
}
class TestTakeKernelFSB : public TestTakeKernelTyped<FixedSizeBinaryType> {
public:
std::shared_ptr<DataType> value_type() { return fixed_size_binary(3); }
void AssertTake(const std::string& values, const std::string& indices,
const std::string& expected) {
CheckTake(value_type(), values, indices, expected);
}
};
TEST_F(TestTakeKernelFSB, TakeFixedSizeBinary) {
this->AssertTake(R"(["aaa", "bbb", "ccc"])", "[0, 1, 0]", R"(["aaa", "bbb", "aaa"])");
this->AssertTake(R"([null, "bbb", "ccc"])", "[0, 1, 0]", "[null, \"bbb\", null]");
this->AssertTake(R"(["aaa", "bbb", "ccc"])", "[null, 1, 0]", R"([null, "bbb", "aaa"])");
this->TestNoValidityBitmapButUnknownNullCount(this->value_type(),
R"(["aaa", "bbb", "ccc"])", "[0, 1, 0]");
std::shared_ptr<DataType> type = this->value_type();
std::shared_ptr<Array> arr;
ASSERT_RAISES(IndexError,
TakeJSON(type, R"(["aaa", "bbb", "ccc"])", int8(), "[0, 9, 0]", &arr));
ASSERT_RAISES(IndexError, TakeJSON(type, R"(["aaa", "bbb", null, "ddd", "eee"])",
int64(), "[2, 5]", &arr));
}
class TestTakeKernelWithList : public TestTakeKernelTyped<ListType> {};
TEST_F(TestTakeKernelWithList, TakeListInt32) {
std::string list_json = "[[], [1,2], null, [3]]";
CheckTake(list(int32()), list_json, "[]", "[]");
CheckTake(list(int32()), list_json, "[3, 2, 1]", "[[3], null, [1,2]]");
CheckTake(list(int32()), list_json, "[null, 3, 0]", "[null, [3], []]");
CheckTake(list(int32()), list_json, "[null, null]", "[null, null]");
CheckTake(list(int32()), list_json, "[3, 0, 0, 3]", "[[3], [], [], [3]]");
CheckTake(list(int32()), list_json, "[0, 1, 2, 3]", list_json);
CheckTake(list(int32()), list_json, "[0, 0, 0, 0, 0, 0, 1]",
"[[], [], [], [], [], [], [1, 2]]");
this->TestNoValidityBitmapButUnknownNullCount(list(int32()), "[[], [1,2], [3]]",
"[0, 1, 0]");
}
TEST_F(TestTakeKernelWithList, TakeListListInt32) {
std::string list_json = R"([
[],
[[1], [2, null, 2], []],
null,
[[3, null], null]
])";
auto type = list(list(int32()));
CheckTake(type, list_json, "[]", "[]");
CheckTake(type, list_json, "[3, 2, 1]", R"([
[[3, null], null],
null,
[[1], [2, null, 2], []]
])");
CheckTake(type, list_json, "[null, 3, 0]", R"([
null,
[[3, null], null],
[]
])");
CheckTake(type, list_json, "[null, null]", "[null, null]");
CheckTake(type, list_json, "[3, 0, 0, 3]",
"[[[3, null], null], [], [], [[3, null], null]]");
CheckTake(type, list_json, "[0, 1, 2, 3]", list_json);
CheckTake(type, list_json, "[0, 0, 0, 0, 0, 0, 1]",
"[[], [], [], [], [], [], [[1], [2, null, 2], []]]");
this->TestNoValidityBitmapButUnknownNullCount(
type, "[[[1], [2, null, 2], []], [[3, null]]]", "[0, 1, 0]");
}
class TestTakeKernelWithLargeList : public TestTakeKernelTyped<LargeListType> {};
TEST_F(TestTakeKernelWithLargeList, TakeLargeListInt32) {
std::string list_json = "[[], [1,2], null, [3]]";
CheckTake(large_list(int32()), list_json, "[]", "[]");
CheckTake(large_list(int32()), list_json, "[null, 1, 2, 0]", "[null, [1,2], null, []]");
}
class TestTakeKernelWithFixedSizeList : public TestTakeKernelTyped<FixedSizeListType> {};
TEST_F(TestTakeKernelWithFixedSizeList, TakeFixedSizeListInt32) {
std::string list_json = "[null, [1, null, 3], [4, 5, 6], [7, 8, null]]";
CheckTake(fixed_size_list(int32(), 3), list_json, "[]", "[]");
CheckTake(fixed_size_list(int32(), 3), list_json, "[3, 2, 1]",
"[[7, 8, null], [4, 5, 6], [1, null, 3]]");
CheckTake(fixed_size_list(int32(), 3), list_json, "[null, 2, 0]",
"[null, [4, 5, 6], null]");
CheckTake(fixed_size_list(int32(), 3), list_json, "[null, null]", "[null, null]");
CheckTake(fixed_size_list(int32(), 3), list_json, "[3, 0, 0, 3]",
"[[7, 8, null], null, null, [7, 8, null]]");
CheckTake(fixed_size_list(int32(), 3), list_json, "[0, 1, 2, 3]", list_json);
CheckTake(
fixed_size_list(int32(), 3), list_json, "[2, 2, 2, 2, 2, 2, 1]",
"[[4, 5, 6], [4, 5, 6], [4, 5, 6], [4, 5, 6], [4, 5, 6], [4, 5, 6], [1, null, 3]]");
this->TestNoValidityBitmapButUnknownNullCount(fixed_size_list(int32(), 3),
"[[1, null, 3], [4, 5, 6], [7, 8, null]]",
"[0, 1, 0]");
}
class TestTakeKernelWithMap : public TestTakeKernelTyped<MapType> {};
TEST_F(TestTakeKernelWithMap, TakeMapStringToInt32) {
std::string map_json = R"([
[["joe", 0], ["mark", null]],
null,
[["cap", 8]],
[]
])";
CheckTake(map(utf8(), int32()), map_json, "[]", "[]");
CheckTake(map(utf8(), int32()), map_json, "[3, 1, 3, 1, 3]",
"[[], null, [], null, []]");
CheckTake(map(utf8(), int32()), map_json, "[2, 1, null]", R"([
[["cap", 8]],
null,
null
])");
CheckTake(map(utf8(), int32()), map_json, "[2, 1, 0]", R"([
[["cap", 8]],
null,
[["joe", 0], ["mark", null]]
])");
CheckTake(map(utf8(), int32()), map_json, "[0, 1, 2, 3]", map_json);
CheckTake(map(utf8(), int32()), map_json, "[0, 0, 0, 0, 0, 0, 3]", R"([
[["joe", 0], ["mark", null]],
[["joe", 0], ["mark", null]],
[["joe", 0], ["mark", null]],
[["joe", 0], ["mark", null]],
[["joe", 0], ["mark", null]],
[["joe", 0], ["mark", null]],
[]
])");
}
class TestTakeKernelWithStruct : public TestTakeKernelTyped<StructType> {};
TEST_F(TestTakeKernelWithStruct, TakeStruct) {
auto struct_type = struct_({field("a", int32()), field("b", utf8())});
auto struct_json = R"([
null,
{"a": 1, "b": ""},
{"a": 2, "b": "hello"},
{"a": 4, "b": "eh"}
])";
CheckTake(struct_type, struct_json, "[]", "[]");
CheckTake(struct_type, struct_json, "[3, 1, 3, 1, 3]", R"([
{"a": 4, "b": "eh"},
{"a": 1, "b": ""},
{"a": 4, "b": "eh"},
{"a": 1, "b": ""},
{"a": 4, "b": "eh"}
])");
CheckTake(struct_type, struct_json, "[3, 1, 0]", R"([
{"a": 4, "b": "eh"},
{"a": 1, "b": ""},
null
])");
CheckTake(struct_type, struct_json, "[0, 1, 2, 3]", struct_json);
CheckTake(struct_type, struct_json, "[0, 2, 2, 2, 2, 2, 2]", R"([
null,
{"a": 2, "b": "hello"},
{"a": 2, "b": "hello"},
{"a": 2, "b": "hello"},
{"a": 2, "b": "hello"},
{"a": 2, "b": "hello"},
{"a": 2, "b": "hello"}
])");
this->TestNoValidityBitmapButUnknownNullCount(
struct_type, R"([{"a": 1}, {"a": 2, "b": "hello"}])", "[0, 1, 0]");
}
class TestTakeKernelWithUnion : public TestTakeKernelTyped<UnionType> {};
TEST_F(TestTakeKernelWithUnion, TakeUnion) {
for (const auto& union_type :
{dense_union({field("a", int32()), field("b", utf8())}, {2, 5}),
sparse_union({field("a", int32()), field("b", utf8())}, {2, 5})}) {
auto union_json = R"([
[2, 222],
[2, null],
[5, "hello"],
[5, "eh"],
[2, null],
[2, 111],
[5, null]
])";
CheckTake(union_type, union_json, "[]", "[]");
CheckTake(union_type, union_json, "[3, 0, 3, 0, 3]", R"([
[5, "eh"],
[2, 222],
[5, "eh"],
[2, 222],
[5, "eh"]
])");
CheckTake(union_type, union_json, "[4, 2, 0, 6]", R"([
[2, null],
[5, "hello"],
[2, 222],
[5, null]
])");
CheckTake(union_type, union_json, "[0, 1, 2, 3, 4, 5, 6]", union_json);
CheckTake(union_type, union_json, "[1, 2, 2, 2, 2, 2, 2]", R"([
[2, null],
[5, "hello"],
[5, "hello"],
[5, "hello"],
[5, "hello"],
[5, "hello"],
[5, "hello"]
])");
CheckTake(union_type, union_json, "[0, null, 1, null, 2, 2, 2]", R"([
[2, 222],
[2, null],
[2, null],
[2, null],
[5, "hello"],
[5, "hello"],
[5, "hello"]
])");
}
}
class TestPermutationsWithTake : public ::testing::Test {
protected:
void DoTake(const Int16Array& values, const Int16Array& indices,
std::shared_ptr<Int16Array>* out) {
ASSERT_OK_AND_ASSIGN(std::shared_ptr<Array> boxed_out, Take(values, indices));
ValidateOutput(boxed_out);
*out = checked_pointer_cast<Int16Array>(std::move(boxed_out));
}
std::shared_ptr<Int16Array> DoTake(const Int16Array& values,
const Int16Array& indices) {
std::shared_ptr<Int16Array> out;
DoTake(values, indices, &out);
return out;
}
std::shared_ptr<Int16Array> DoTakeN(uint64_t n, std::shared_ptr<Int16Array> array) {
auto power_of_2 = array;
array = Identity(array->length());
while (n != 0) {
if (n & 1) {
array = DoTake(*array, *power_of_2);
}
power_of_2 = DoTake(*power_of_2, *power_of_2);
n >>= 1;
}
return array;
}
template <typename Rng>
void Shuffle(const Int16Array& array, Rng& gen, std::shared_ptr<Int16Array>* shuffled) {
auto byte_length = array.length() * sizeof(int16_t);
ASSERT_OK_AND_ASSIGN(auto data, array.values()->CopySlice(0, byte_length));
auto mutable_data = reinterpret_cast<int16_t*>(data->mutable_data());
std::shuffle(mutable_data, mutable_data + array.length(), gen);
shuffled->reset(new Int16Array(array.length(), data));
}
template <typename Rng>
std::shared_ptr<Int16Array> Shuffle(const Int16Array& array, Rng& gen) {
std::shared_ptr<Int16Array> out;
Shuffle(array, gen, &out);
return out;
}
void Identity(int64_t length, std::shared_ptr<Int16Array>* identity) {
Int16Builder identity_builder;
ASSERT_OK(identity_builder.Resize(length));
for (int16_t i = 0; i < length; ++i) {
identity_builder.UnsafeAppend(i);
}
ASSERT_OK(identity_builder.Finish(identity));
}
std::shared_ptr<Int16Array> Identity(int64_t length) {
std::shared_ptr<Int16Array> out;
Identity(length, &out);
return out;
}
std::shared_ptr<Int16Array> Inverse(const std::shared_ptr<Int16Array>& permutation) {
auto length = static_cast<int16_t>(permutation->length());
std::vector<bool> cycle_lengths(length + 1, false);
auto permutation_to_the_i = permutation;
for (int16_t cycle_length = 1; cycle_length <= length; ++cycle_length) {
cycle_lengths[cycle_length] = HasTrivialCycle(*permutation_to_the_i);
permutation_to_the_i = DoTake(*permutation, *permutation_to_the_i);
}
uint64_t cycle_to_identity_length = 1;
for (int16_t cycle_length = length; cycle_length > 1; --cycle_length) {
if (!cycle_lengths[cycle_length]) {
continue;
}
if (cycle_to_identity_length % cycle_length == 0) {
continue;
}
if (cycle_to_identity_length >
std::numeric_limits<uint64_t>::max() / cycle_length) {
// overflow, can't compute Inverse
return nullptr;
}
cycle_to_identity_length *= cycle_length;
}
return DoTakeN(cycle_to_identity_length - 1, permutation);
}
bool HasTrivialCycle(const Int16Array& permutation) {
for (int64_t i = 0; i < permutation.length(); ++i) {
if (permutation.Value(i) == static_cast<int16_t>(i)) {
return true;
}
}
return false;
}
};
TEST_F(TestPermutationsWithTake, InvertPermutation) {
for (auto seed : std::vector<random::SeedType>({0, kRandomSeed, kRandomSeed * 2 - 1})) {
std::default_random_engine gen(seed);
for (int16_t length = 0; length < 1 << 10; ++length) {
auto identity = Identity(length);
auto permutation = Shuffle(*identity, gen);
auto inverse = Inverse(permutation);
if (inverse == nullptr) {
break;
}
ASSERT_TRUE(DoTake(*inverse, *permutation)->Equals(identity));
}
}
}
class TestTakeKernelWithRecordBatch : public TestTakeKernelTyped<RecordBatch> {
public:
void AssertTake(const std::shared_ptr<Schema>& schm, const std::string& batch_json,
const std::string& indices, const std::string& expected_batch) {
std::shared_ptr<RecordBatch> actual;
for (auto index_type : {int8(), uint32()}) {
ASSERT_OK(TakeJSON(schm, batch_json, index_type, indices, &actual));
ValidateOutput(actual);
ASSERT_BATCHES_EQUAL(*RecordBatchFromJSON(schm, expected_batch), *actual);
}
}
Status TakeJSON(const std::shared_ptr<Schema>& schm, const std::string& batch_json,
const std::shared_ptr<DataType>& index_type, const std::string& indices,
std::shared_ptr<RecordBatch>* out) {
auto batch = RecordBatchFromJSON(schm, batch_json);
ARROW_ASSIGN_OR_RAISE(Datum result,
Take(Datum(batch), Datum(ArrayFromJSON(index_type, indices))));
*out = result.record_batch();
return Status::OK();
}
};
TEST_F(TestTakeKernelWithRecordBatch, TakeRecordBatch) {
std::vector<std::shared_ptr<Field>> fields = {field("a", int32()), field("b", utf8())};
auto schm = schema(fields);
auto struct_json = R"([
{"a": null, "b": "yo"},
{"a": 1, "b": ""},
{"a": 2, "b": "hello"},
{"a": 4, "b": "eh"}
])";
this->AssertTake(schm, struct_json, "[]", "[]");
this->AssertTake(schm, struct_json, "[3, 1, 3, 1, 3]", R"([
{"a": 4, "b": "eh"},
{"a": 1, "b": ""},
{"a": 4, "b": "eh"},
{"a": 1, "b": ""},
{"a": 4, "b": "eh"}
])");
this->AssertTake(schm, struct_json, "[3, 1, 0]", R"([
{"a": 4, "b": "eh"},
{"a": 1, "b": ""},
{"a": null, "b": "yo"}
])");
this->AssertTake(schm, struct_json, "[0, 1, 2, 3]", struct_json);
this->AssertTake(schm, struct_json, "[0, 2, 2, 2, 2, 2, 2]", R"([
{"a": null, "b": "yo"},
{"a": 2, "b": "hello"},
{"a": 2, "b": "hello"},
{"a": 2, "b": "hello"},
{"a": 2, "b": "hello"},
{"a": 2, "b": "hello"},
{"a": 2, "b": "hello"}
])");
}
class TestTakeKernelWithChunkedArray : public TestTakeKernelTyped<ChunkedArray> {
public:
void AssertTake(const std::shared_ptr<DataType>& type,
const std::vector<std::string>& values, const std::string& indices,
const std::vector<std::string>& expected) {
std::shared_ptr<ChunkedArray> actual;
ASSERT_OK(this->TakeWithArray(type, values, indices, &actual));
ValidateOutput(actual);
AssertChunkedEqual(*ChunkedArrayFromJSON(type, expected), *actual);
}
void AssertChunkedTake(const std::shared_ptr<DataType>& type,
const std::vector<std::string>& values,
const std::vector<std::string>& indices,
const std::vector<std::string>& expected) {
std::shared_ptr<ChunkedArray> actual;
ASSERT_OK(this->TakeWithChunkedArray(type, values, indices, &actual));
ValidateOutput(actual);
AssertChunkedEqual(*ChunkedArrayFromJSON(type, expected), *actual);
}
Status TakeWithArray(const std::shared_ptr<DataType>& type,
const std::vector<std::string>& values, const std::string& indices,
std::shared_ptr<ChunkedArray>* out) {
ARROW_ASSIGN_OR_RAISE(Datum result, Take(ChunkedArrayFromJSON(type, values),
ArrayFromJSON(int8(), indices)));
*out = result.chunked_array();
return Status::OK();
}
Status TakeWithChunkedArray(const std::shared_ptr<DataType>& type,
const std::vector<std::string>& values,
const std::vector<std::string>& indices,
std::shared_ptr<ChunkedArray>* out) {
ARROW_ASSIGN_OR_RAISE(Datum result, Take(ChunkedArrayFromJSON(type, values),
ChunkedArrayFromJSON(int8(), indices)));
*out = result.chunked_array();
return Status::OK();
}
};
TEST_F(TestTakeKernelWithChunkedArray, TakeChunkedArray) {
this->AssertTake(int8(), {"[]"}, "[]", {"[]"});
this->AssertChunkedTake(int8(), {}, {}, {});
this->AssertChunkedTake(int8(), {}, {"[]"}, {"[]"});
this->AssertChunkedTake(int8(), {}, {"[null]"}, {"[null]"});
this->AssertChunkedTake(int8(), {"[]"}, {}, {});
this->AssertChunkedTake(int8(), {"[]"}, {"[]"}, {"[]"});
this->AssertChunkedTake(int8(), {"[]"}, {"[null]"}, {"[null]"});
this->AssertTake(int8(), {"[7]", "[8, 9]"}, "[0, 1, 0, 2]", {"[7, 8, 7, 9]"});
this->AssertChunkedTake(int8(), {"[7]", "[8, 9]"}, {"[0, 1, 0]", "[]", "[2]"},
{"[7, 8, 7]", "[]", "[9]"});
this->AssertTake(int8(), {"[7]", "[8, 9]"}, "[2, 1]", {"[9, 8]"});
std::shared_ptr<ChunkedArray> arr;
ASSERT_RAISES(IndexError,
this->TakeWithArray(int8(), {"[7]", "[8, 9]"}, "[0, 5]", &arr));
ASSERT_RAISES(IndexError, this->TakeWithChunkedArray(int8(), {"[7]", "[8, 9]"},
{"[0, 1, 0]", "[5, 1]"}, &arr));
ASSERT_RAISES(IndexError, this->TakeWithChunkedArray(int8(), {}, {"[0]"}, &arr));
ASSERT_RAISES(IndexError, this->TakeWithChunkedArray(int8(), {"[]"}, {"[0]"}, &arr));
}
class TestTakeKernelWithTable : public TestTakeKernelTyped<Table> {
public:
void AssertTake(const std::shared_ptr<Schema>& schm,
const std::vector<std::string>& table_json, const std::string& filter,
const std::vector<std::string>& expected_table) {
std::shared_ptr<Table> actual;
ASSERT_OK(this->TakeWithArray(schm, table_json, filter, &actual));
ValidateOutput(actual);
ASSERT_TABLES_EQUAL(*TableFromJSON(schm, expected_table), *actual);
}
void AssertChunkedTake(const std::shared_ptr<Schema>& schm,
const std::vector<std::string>& table_json,
const std::vector<std::string>& filter,
const std::vector<std::string>& expected_table) {
std::shared_ptr<Table> actual;
ASSERT_OK(this->TakeWithChunkedArray(schm, table_json, filter, &actual));
ValidateOutput(actual);
ASSERT_TABLES_EQUAL(*TableFromJSON(schm, expected_table), *actual);
}
Status TakeWithArray(const std::shared_ptr<Schema>& schm,
const std::vector<std::string>& values, const std::string& indices,
std::shared_ptr<Table>* out) {
ARROW_ASSIGN_OR_RAISE(Datum result, Take(Datum(TableFromJSON(schm, values)),
Datum(ArrayFromJSON(int8(), indices))));
*out = result.table();
return Status::OK();
}
Status TakeWithChunkedArray(const std::shared_ptr<Schema>& schm,
const std::vector<std::string>& values,
const std::vector<std::string>& indices,
std::shared_ptr<Table>* out) {
ARROW_ASSIGN_OR_RAISE(Datum result,
Take(Datum(TableFromJSON(schm, values)),
Datum(ChunkedArrayFromJSON(int8(), indices))));
*out = result.table();
return Status::OK();
}
};
TEST_F(TestTakeKernelWithTable, TakeTable) {
std::vector<std::shared_ptr<Field>> fields = {field("a", int32()), field("b", utf8())};
auto schm = schema(fields);
std::vector<std::string> table_json = {
"[{\"a\": null, \"b\": \"yo\"},{\"a\": 1, \"b\": \"\"}]",
"[{\"a\": 2, \"b\": \"hello\"},{\"a\": 4, \"b\": \"eh\"}]"};
this->AssertTake(schm, table_json, "[]", {"[]"});
std::vector<std::string> expected_310 = {
"[{\"a\": 4, \"b\": \"eh\"},{\"a\": 1, \"b\": \"\"},{\"a\": null, \"b\": \"yo\"}]"};
this->AssertTake(schm, table_json, "[3, 1, 0]", expected_310);
this->AssertChunkedTake(schm, table_json, {"[0, 1]", "[2, 3]"}, table_json);
}
TEST(TestTakeMetaFunction, ArityChecking) {
ASSERT_RAISES(Invalid, CallFunction("take", ExecBatch({}, 0)));
}
// ----------------------------------------------------------------------
// Random data tests
template <typename Unused = void>
struct FilterRandomTest {
static void Test(const std::shared_ptr<DataType>& type) {
auto rand = random::RandomArrayGenerator(kRandomSeed);
const int64_t length = static_cast<int64_t>(1ULL << 10);
for (auto null_probability : {0.0, 0.01, 0.1, 0.999, 1.0}) {
for (auto true_probability : {0.0, 0.1, 0.999, 1.0}) {
auto values = rand.ArrayOf(type, length, null_probability);
auto filter = rand.Boolean(length + 1, true_probability, null_probability);
auto filter_no_nulls = rand.Boolean(length + 1, true_probability, 0.0);
ValidateFilter(values, filter->Slice(0, values->length()));
ValidateFilter(values, filter_no_nulls->Slice(0, values->length()));
// Test values and filter have different offsets
ValidateFilter(values->Slice(3), filter->Slice(4));
ValidateFilter(values->Slice(3), filter_no_nulls->Slice(4));
}
}
}
};
template <typename ValuesType, typename IndexType>
void CheckTakeRandom(const std::shared_ptr<Array>& values, int64_t indices_length,
double null_probability, random::RandomArrayGenerator* rand) {
using IndexCType = typename IndexType::c_type;
IndexCType max_index = GetMaxIndex<IndexCType>(values->length());
auto indices = rand->Numeric<IndexType>(indices_length, static_cast<IndexCType>(0),
max_index, null_probability);
auto indices_no_nulls = rand->Numeric<IndexType>(
indices_length, static_cast<IndexCType>(0), max_index, /*null_probability=*/0.0);
ValidateTake<ValuesType>(values, indices);
ValidateTake<ValuesType>(values, indices_no_nulls);
// Sliced indices array
if (indices_length >= 2) {
indices = indices->Slice(1, indices_length - 2);
indices_no_nulls = indices_no_nulls->Slice(1, indices_length - 2);
ValidateTake<ValuesType>(values, indices);
ValidateTake<ValuesType>(values, indices_no_nulls);
}
}
template <typename ValuesType>
struct TakeRandomTest {
static void Test(const std::shared_ptr<DataType>& type) {
auto rand = random::RandomArrayGenerator(kRandomSeed);
const int64_t values_length = 64 * 16 + 1;
const int64_t indices_length = 64 * 4 + 1;
for (const auto null_probability : {0.0, 0.001, 0.05, 0.25, 0.95, 0.999, 1.0}) {
auto values = rand.ArrayOf(type, values_length, null_probability);
CheckTakeRandom<ValuesType, Int8Type>(values, indices_length, null_probability,
&rand);
CheckTakeRandom<ValuesType, Int16Type>(values, indices_length, null_probability,
&rand);
CheckTakeRandom<ValuesType, Int32Type>(values, indices_length, null_probability,
&rand);
CheckTakeRandom<ValuesType, Int64Type>(values, indices_length, null_probability,
&rand);
CheckTakeRandom<ValuesType, UInt8Type>(values, indices_length, null_probability,
&rand);
CheckTakeRandom<ValuesType, UInt16Type>(values, indices_length, null_probability,
&rand);
CheckTakeRandom<ValuesType, UInt32Type>(values, indices_length, null_probability,
&rand);
CheckTakeRandom<ValuesType, UInt64Type>(values, indices_length, null_probability,
&rand);
// Sliced values array
if (values_length > 2) {
values = values->Slice(1, values_length - 2);
CheckTakeRandom<ValuesType, UInt64Type>(values, indices_length, null_probability,
&rand);
}
}
}
};
TEST(TestFilter, PrimitiveRandom) { TestRandomPrimitiveCTypes<FilterRandomTest>(); }
TEST(TestFilter, RandomBoolean) { FilterRandomTest<>::Test(boolean()); }
TEST(TestFilter, RandomString) {
FilterRandomTest<>::Test(utf8());
FilterRandomTest<>::Test(large_utf8());
}
TEST(TestFilter, RandomFixedSizeBinary) {
FilterRandomTest<>::Test(fixed_size_binary(0));
FilterRandomTest<>::Test(fixed_size_binary(16));
}
TEST(TestTake, PrimitiveRandom) { TestRandomPrimitiveCTypes<TakeRandomTest>(); }
TEST(TestTake, RandomBoolean) { TakeRandomTest<BooleanType>::Test(boolean()); }
TEST(TestTake, RandomString) {
TakeRandomTest<StringType>::Test(utf8());
TakeRandomTest<LargeStringType>::Test(large_utf8());
}
TEST(TestTake, RandomFixedSizeBinary) {
TakeRandomTest<FixedSizeBinaryType>::Test(fixed_size_binary(0));
TakeRandomTest<FixedSizeBinaryType>::Test(fixed_size_binary(16));
}
// ----------------------------------------------------------------------
// DropNull tests
void AssertDropNullArrays(const std::shared_ptr<Array>& values,
const std::shared_ptr<Array>& expected) {
ASSERT_OK_AND_ASSIGN(std::shared_ptr<Array> actual, DropNull(*values));
ValidateOutput(actual);
AssertArraysEqual(*expected, *actual, /*verbose=*/true);
}
Status DropNullJSON(const std::shared_ptr<DataType>& type, const std::string& values,
std::shared_ptr<Array>* out) {
return DropNull(*ArrayFromJSON(type, values)).Value(out);
}
void CheckDropNull(const std::shared_ptr<DataType>& type, const std::string& values,
const std::string& expected) {
std::shared_ptr<Array> actual;
ASSERT_OK(DropNullJSON(type, values, &actual));
ValidateOutput(actual);
AssertArraysEqual(*ArrayFromJSON(type, expected), *actual, /*verbose=*/true);
}
struct TestDropNullKernel : public ::testing::Test {
void TestNoValidityBitmapButUnknownNullCount(const std::shared_ptr<Array>& values) {
ASSERT_EQ(values->null_count(), 0);
auto expected = (*DropNull(values)).make_array();
auto new_values = MakeArray(values->data()->Copy());
new_values->data()->buffers[0].reset();
new_values->data()->null_count = kUnknownNullCount;
auto result = (*DropNull(new_values)).make_array();
AssertArraysEqual(*expected, *result);
}
void TestNoValidityBitmapButUnknownNullCount(const std::shared_ptr<DataType>& type,
const std::string& values) {
TestNoValidityBitmapButUnknownNullCount(ArrayFromJSON(type, values));
}
};
TEST_F(TestDropNullKernel, DropNull) {
CheckDropNull(null(), "[null, null, null]", "[]");
CheckDropNull(null(), "[null]", "[]");
}
TEST_F(TestDropNullKernel, DropNullBoolean) {
CheckDropNull(boolean(), "[true, false, true]", "[true, false, true]");
CheckDropNull(boolean(), "[null, false, true]", "[false, true]");
CheckDropNull(boolean(), "[]", "[]");
CheckDropNull(boolean(), "[null, null]", "[]");
TestNoValidityBitmapButUnknownNullCount(boolean(), "[true, false, true]");
}
template <typename ArrowType>
struct TestDropNullKernelTyped : public TestDropNullKernel {
TestDropNullKernelTyped() : rng_(seed_) {}
std::shared_ptr<Int32Array> Offsets(int32_t length, int32_t slice_count) {
return checked_pointer_cast<Int32Array>(rng_.Offsets(slice_count, 0, length));
}
// Slice `array` into multiple chunks along `offsets`
ArrayVector Slices(const std::shared_ptr<Array>& array,
const std::shared_ptr<Int32Array>& offsets) {
ArrayVector slices(offsets->length() - 1);
for (int64_t i = 0; i != static_cast<int64_t>(slices.size()); ++i) {
slices[i] =
array->Slice(offsets->Value(i), offsets->Value(i + 1) - offsets->Value(i));
}
return slices;
}
random::SeedType seed_ = 0xdeadbeef;
random::RandomArrayGenerator rng_;
};
template <typename ArrowType>
class TestDropNullKernelWithNumeric : public TestDropNullKernelTyped<ArrowType> {
protected:
void AssertDropNull(const std::string& values, const std::string& expected) {
CheckDropNull(type_singleton(), values, expected);
}
std::shared_ptr<DataType> type_singleton() {
return TypeTraits<ArrowType>::type_singleton();
}
};
TYPED_TEST_SUITE(TestDropNullKernelWithNumeric, NumericArrowTypes);
TYPED_TEST(TestDropNullKernelWithNumeric, DropNullNumeric) {
this->AssertDropNull("[7, 8, 9]", "[7, 8, 9]");
this->AssertDropNull("[null, 8, 9]", "[8, 9]");
this->AssertDropNull("[null, null, null]", "[]");
}
template <typename TypeClass>
class TestDropNullKernelWithString : public TestDropNullKernelTyped<TypeClass> {
public:
std::shared_ptr<DataType> value_type() {
return TypeTraits<TypeClass>::type_singleton();
}
void AssertDropNull(const std::string& values, const std::string& expected) {
CheckDropNull(value_type(), values, expected);
}
void AssertDropNullDictionary(const std::string& dictionary_values,
const std::string& dictionary_indices,
const std::string& expected_indices) {
auto dict = ArrayFromJSON(value_type(), dictionary_values);
auto type = dictionary(int8(), value_type());
ASSERT_OK_AND_ASSIGN(auto values,
DictionaryArray::FromArrays(
type, ArrayFromJSON(int8(), dictionary_indices), dict));
ASSERT_OK_AND_ASSIGN(
auto expected,
DictionaryArray::FromArrays(type, ArrayFromJSON(int8(), expected_indices), dict));
AssertDropNullArrays(values, expected);
}
};
TYPED_TEST_SUITE(TestDropNullKernelWithString, BaseBinaryArrowTypes);
TYPED_TEST(TestDropNullKernelWithString, DropNullString) {
this->AssertDropNull(R"(["a", "b", "c"])", R"(["a", "b", "c"])");
this->AssertDropNull(R"([null, "b", "c"])", "[\"b\", \"c\"]");
this->AssertDropNull(R"(["a", "b", null])", R"(["a", "b"])");
this->TestNoValidityBitmapButUnknownNullCount(this->value_type(), R"(["a", "b", "c"])");
}
TYPED_TEST(TestDropNullKernelWithString, DropNullDictionary) {
auto dict = R"(["a", "b", "c", "d", "e"])";
this->AssertDropNullDictionary(dict, "[3, 4, 2]", "[3, 4, 2]");
this->AssertDropNullDictionary(dict, "[null, 4, 2]", "[4, 2]");
}
class TestDropNullKernelFSB : public TestDropNullKernelTyped<FixedSizeBinaryType> {
public:
std::shared_ptr<DataType> value_type() { return fixed_size_binary(3); }
void AssertDropNull(const std::string& values, const std::string& expected) {
CheckDropNull(value_type(), values, expected);
}
};
TEST_F(TestDropNullKernelFSB, DropNullFixedSizeBinary) {
this->AssertDropNull(R"(["aaa", "bbb", "ccc"])", R"(["aaa", "bbb", "ccc"])");
this->AssertDropNull(R"([null, "bbb", "ccc"])", "[\"bbb\", \"ccc\"]");
this->TestNoValidityBitmapButUnknownNullCount(this->value_type(),
R"(["aaa", "bbb", "ccc"])");
}
class TestDropNullKernelWithList : public TestDropNullKernelTyped<ListType> {};
TEST_F(TestDropNullKernelWithList, DropNullListInt32) {
std::string list_json = "[[], [1,2], null, [3]]";
CheckDropNull(list(int32()), list_json, "[[], [1,2], [3]]");
this->TestNoValidityBitmapButUnknownNullCount(list(int32()), "[[], [1,2], [3]]");
}
TEST_F(TestDropNullKernelWithList, DropNullListListInt32) {
std::string list_json = R"([
[],
[[1], [2, null, 2], []],
null,
[[3, null], null]
])";
auto type = list(list(int32()));
CheckDropNull(type, list_json, R"([
[],
[[1], [2, null, 2], []],
[[3, null], null]
])");
this->TestNoValidityBitmapButUnknownNullCount(type,
"[[[1], [2, null, 2], []], [[3, null]]]");
}
class TestDropNullKernelWithLargeList : public TestDropNullKernelTyped<LargeListType> {};
TEST_F(TestDropNullKernelWithLargeList, DropNullLargeListInt32) {
std::string list_json = "[[], [1,2], null, [3]]";
CheckDropNull(large_list(int32()), list_json, "[[], [1,2], [3]]");
this->TestNoValidityBitmapButUnknownNullCount(
fixed_size_list(int32(), 3), "[[1, null, 3], [4, 5, 6], [7, 8, null]]");
}
class TestDropNullKernelWithFixedSizeList
: public TestDropNullKernelTyped<FixedSizeListType> {};
TEST_F(TestDropNullKernelWithFixedSizeList, DropNullFixedSizeListInt32) {
std::string list_json = "[null, [1, null, 3], [4, 5, 6], [7, 8, null]]";
CheckDropNull(fixed_size_list(int32(), 3), list_json,
"[[1, null, 3], [4, 5, 6], [7, 8, null]]");
this->TestNoValidityBitmapButUnknownNullCount(
fixed_size_list(int32(), 3), "[[1, null, 3], [4, 5, 6], [7, 8, null]]");
}
class TestDropNullKernelWithMap : public TestDropNullKernelTyped<MapType> {};
TEST_F(TestDropNullKernelWithMap, DropNullMapStringToInt32) {
std::string map_json = R"([
[["joe", 0], ["mark", null]],
null,
[["cap", 8]],
[]
])";
std::string expected_json = R"([
[["joe", 0], ["mark", null]],
[["cap", 8]],
[]
])";
CheckDropNull(map(utf8(), int32()), map_json, expected_json);
}
class TestDropNullKernelWithStruct : public TestDropNullKernelTyped<StructType> {};
TEST_F(TestDropNullKernelWithStruct, DropNullStruct) {
auto struct_type = struct_({field("a", int32()), field("b", utf8())});
auto struct_json = R"([
null,
{"a": 1, "b": ""},
{"a": 2, "b": "hello"},
{"a": 4, "b": "eh"}
])";
auto expected_struct_json = R"([
{"a": 1, "b": ""},
{"a": 2, "b": "hello"},
{"a": 4, "b": "eh"}
])";
CheckDropNull(struct_type, struct_json, expected_struct_json);
this->TestNoValidityBitmapButUnknownNullCount(struct_type, expected_struct_json);
}
class TestDropNullKernelWithUnion : public TestDropNullKernelTyped<UnionType> {};
TEST_F(TestDropNullKernelWithUnion, DropNullUnion) {
for (const auto& union_type :
{dense_union({field("a", int32()), field("b", utf8())}, {2, 5}),
sparse_union({field("a", int32()), field("b", utf8())}, {2, 5})}) {
auto union_json = R"([
[2, null],
[2, 222],
[5, "hello"],
[5, "eh"],
[2, null],
[2, 111],
[5, null]
])";
CheckDropNull(union_type, union_json, union_json);
}
}
class TestDropNullKernelWithRecordBatch : public TestDropNullKernelTyped<RecordBatch> {
public:
void AssertDropNull(const std::shared_ptr<Schema>& schm, const std::string& batch_json,
const std::string& expected_batch) {
std::shared_ptr<RecordBatch> actual;
ASSERT_OK(this->DoDropNull(schm, batch_json, &actual));
ValidateOutput(actual);
ASSERT_BATCHES_EQUAL(*RecordBatchFromJSON(schm, expected_batch), *actual);
}
Status DoDropNull(const std::shared_ptr<Schema>& schm, const std::string& batch_json,
std::shared_ptr<RecordBatch>* out) {
auto batch = RecordBatchFromJSON(schm, batch_json);
ARROW_ASSIGN_OR_RAISE(Datum out_datum, DropNull(batch));
*out = out_datum.record_batch();
return Status::OK();
}
};
TEST_F(TestDropNullKernelWithRecordBatch, DropNullRecordBatch) {
std::vector<std::shared_ptr<Field>> fields = {field("a", int32()), field("b", utf8())};
auto schm = schema(fields);
auto batch_json = R"([
{"a": null, "b": "yo"},
{"a": 1, "b": ""},
{"a": 2, "b": "hello"},
{"a": 4, "b": "eh"}
])";
this->AssertDropNull(schm, batch_json, R"([
{"a": 1, "b": ""},
{"a": 2, "b": "hello"},
{"a": 4, "b": "eh"}
])");
batch_json = R"([
{"a": null, "b": "yo"},
{"a": 1, "b": null},
{"a": null, "b": "hello"},
{"a": 4, "b": null}
])";
this->AssertDropNull(schm, batch_json, R"([])");
this->AssertDropNull(schm, R"([])", R"([])");
}
class TestDropNullKernelWithChunkedArray : public TestDropNullKernelTyped<ChunkedArray> {
public:
TestDropNullKernelWithChunkedArray()
: sizes_({0, 1, 2, 4, 16, 31, 1234}),
null_probabilities_({0.0, 0.1, 0.5, 0.9, 1.0}) {}
void AssertDropNull(const std::shared_ptr<DataType>& type,
const std::vector<std::string>& values,
const std::vector<std::string>& expected) {
std::shared_ptr<ChunkedArray> actual;
ASSERT_OK(this->DoDropNull(type, values, &actual));
ValidateOutput(actual);
AssertChunkedEqual(*ChunkedArrayFromJSON(type, expected), *actual);
}
Status DoDropNull(const std::shared_ptr<DataType>& type,
const std::vector<std::string>& values,
std::shared_ptr<ChunkedArray>* out) {
ARROW_ASSIGN_OR_RAISE(Datum out_datum, DropNull(ChunkedArrayFromJSON(type, values)));
*out = out_datum.chunked_array();
return Status::OK();
}
template <typename ArrayFactory>
void CheckDropNullWithSlices(ArrayFactory&& factory) {
for (auto size : this->sizes_) {
for (auto null_probability : this->null_probabilities_) {
std::shared_ptr<Array> concatenated_array;
std::shared_ptr<ChunkedArray> chunked_array;
factory(size, null_probability, &chunked_array, &concatenated_array);
ASSERT_OK_AND_ASSIGN(auto out_datum, DropNull(chunked_array));
auto actual_chunked_array = out_datum.chunked_array();
ASSERT_OK_AND_ASSIGN(auto actual, Concatenate(actual_chunked_array->chunks()));
ASSERT_OK_AND_ASSIGN(out_datum, DropNull(*concatenated_array));
auto expected = out_datum.make_array();
AssertArraysEqual(*expected, *actual);
}
}
}
std::vector<int32_t> sizes_;
std::vector<double> null_probabilities_;
};
TEST_F(TestDropNullKernelWithChunkedArray, DropNullChunkedArray) {
this->AssertDropNull(int8(), {"[]"}, {"[]"});
this->AssertDropNull(int8(), {"[null]", "[8, null]"}, {"[8]"});
this->AssertDropNull(int8(), {"[null]", "[null, null]"}, {"[]"});
this->AssertDropNull(int8(), {"[7]", "[8, 9]"}, {"[7]", "[8, 9]"});
this->AssertDropNull(int8(), {"[]", "[]"}, {"[]", "[]"});
}
TEST_F(TestDropNullKernelWithChunkedArray, DropNullChunkedArrayWithSlices) {
// With Null Arrays
this->CheckDropNullWithSlices([this](int32_t size, double null_probability,
std::shared_ptr<ChunkedArray>* out_chunked_array,
std::shared_ptr<Array>* out_concatenated_array) {
auto array = std::make_shared<NullArray>(size);
auto offsets = this->Offsets(size, 3);
auto slices = this->Slices(array, offsets);
*out_chunked_array = std::make_shared<ChunkedArray>(std::move(slices));
ASSERT_OK_AND_ASSIGN(*out_concatenated_array,
Concatenate((*out_chunked_array)->chunks()));
});
// Without Null Arrays
this->CheckDropNullWithSlices([this](int32_t size, double null_probability,
std::shared_ptr<ChunkedArray>* out_chunked_array,
std::shared_ptr<Array>* out_concatenated_array) {
auto array = this->rng_.ArrayOf(int16(), size, null_probability);
auto offsets = this->Offsets(size, 3);
auto slices = this->Slices(array, offsets);
*out_chunked_array = std::make_shared<ChunkedArray>(std::move(slices));
ASSERT_OK_AND_ASSIGN(*out_concatenated_array,
Concatenate((*out_chunked_array)->chunks()));
});
}
class TestDropNullKernelWithTable : public TestDropNullKernelTyped<Table> {
public:
TestDropNullKernelWithTable()
: sizes_({0, 1, 4, 31, 1234}), null_probabilities_({0.0, 0.1, 0.5, 0.9, 1.0}) {}
void AssertDropNull(const std::shared_ptr<Schema>& schm,
const std::vector<std::string>& table_json,
const std::vector<std::string>& expected_table) {
std::shared_ptr<Table> actual;
ASSERT_OK(this->DoDropNull(schm, table_json, &actual));
ValidateOutput(actual);
ASSERT_TABLES_EQUAL(*TableFromJSON(schm, expected_table), *actual);
}
Status DoDropNull(const std::shared_ptr<Schema>& schm,
const std::vector<std::string>& values, std::shared_ptr<Table>* out) {
ARROW_ASSIGN_OR_RAISE(Datum out_datum, DropNull(TableFromJSON(schm, values)));
*out = out_datum.table();
return Status::OK();
}
template <typename ArrayFactory>
void CheckDropNullWithSlices(ArrayFactory&& factory) {
for (auto size : this->sizes_) {
for (auto null_probability : this->null_probabilities_) {
std::shared_ptr<Table> table_w_slices;
std::shared_ptr<Table> table_wo_slices;
factory(size, null_probability, &table_w_slices, &table_wo_slices);
ASSERT_OK_AND_ASSIGN(auto out_datum, DropNull(table_w_slices));
ValidateOutput(out_datum);
auto actual = out_datum.table();
ASSERT_OK_AND_ASSIGN(out_datum, DropNull(table_wo_slices));
ValidateOutput(out_datum);
auto expected = out_datum.table();
if (actual->num_rows() > 0) {
ASSERT_TRUE(actual->num_rows() == expected->num_rows());
for (int index = 0; index < actual->num_columns(); index++) {
ASSERT_OK_AND_ASSIGN(auto actual_col,
Concatenate(actual->column(index)->chunks()));
ASSERT_OK_AND_ASSIGN(auto expected_col,
Concatenate(expected->column(index)->chunks()));
AssertArraysEqual(*actual_col, *expected_col);
}
}
}
}
}
std::vector<int32_t> sizes_;
std::vector<double> null_probabilities_;
};
TEST_F(TestDropNullKernelWithTable, DropNullTable) {
std::vector<std::shared_ptr<Field>> fields = {field("a", int32()), field("b", utf8())};
auto schm = schema(fields);
{
std::vector<std::string> table_json = {R"([
{"a": null, "b": "yo"},
{"a": 1, "b": ""}
])",
R"([
{"a": 2, "b": "hello"},
{"a": 4, "b": "eh"}
])"};
std::vector<std::string> expected_table_json = {R"([
{"a": 1, "b": ""}
])",
R"([
{"a": 2, "b": "hello"},
{"a": 4, "b": "eh"}
])"};
this->AssertDropNull(schm, table_json, expected_table_json);
}
{
std::vector<std::string> table_json = {R"([
{"a": null, "b": "yo"},
{"a": 1, "b": null}
])",
R"([
{"a": 2, "b": null},
{"a": null, "b": "eh"}
])"};
std::shared_ptr<Table> actual;
ASSERT_OK(this->DoDropNull(schm, table_json, &actual));
AssertSchemaEqual(schm, actual->schema());
ASSERT_EQ(actual->num_rows(), 0);
}
}
TEST_F(TestDropNullKernelWithTable, DropNullTableWithSlices) {
// With Null Arrays
this->CheckDropNullWithSlices([this](int32_t size, double null_probability,
std::shared_ptr<Table>* out_table_w_slices,
std::shared_ptr<Table>* out_table_wo_slices) {
FieldVector fields = {field("a", int32()), field("b", utf8())};
auto schm = schema(fields);
ASSERT_OK_AND_ASSIGN(auto col_a, MakeArrayOfNull(int32(), size));
ASSERT_OK_AND_ASSIGN(auto col_b, MakeArrayOfNull(utf8(), size));
// Compute random chunkings of columns `a` and `b`
auto slices_a = this->Slices(col_a, this->Offsets(size, 3));
auto slices_b = this->Slices(col_b, this->Offsets(size, 3));
ChunkedArrayVector table_content_w_slices{
std::make_shared<ChunkedArray>(std::move(slices_a)),
std::make_shared<ChunkedArray>(std::move(slices_b))};
*out_table_w_slices = Table::Make(schm, std::move(table_content_w_slices), size);
ChunkedArrayVector table_content_wo_slices{std::make_shared<ChunkedArray>(col_a),
std::make_shared<ChunkedArray>(col_b)};
*out_table_wo_slices = Table::Make(schm, std::move(table_content_wo_slices), size);
});
// Without Null Arrays
this->CheckDropNullWithSlices([this](int32_t size, double null_probability,
std::shared_ptr<Table>* out_table_w_slices,
std::shared_ptr<Table>* out_table_wo_slices) {
FieldVector fields = {field("a", int32()), field("b", utf8())};
auto schm = schema(fields);
auto col_a = this->rng_.ArrayOf(int32(), size, null_probability);
auto col_b = this->rng_.ArrayOf(utf8(), size, null_probability);
// Compute random chunkings of columns `a` and `b`
auto slices_a = this->Slices(col_a, this->Offsets(size, 3));
auto slices_b = this->Slices(col_b, this->Offsets(size, 3));
ChunkedArrayVector table_content_w_slices{
std::make_shared<ChunkedArray>(std::move(slices_a)),
std::make_shared<ChunkedArray>(std::move(slices_b))};
*out_table_w_slices = Table::Make(schm, std::move(table_content_w_slices), size);
ChunkedArrayVector table_content_wo_slices{std::make_shared<ChunkedArray>(col_a),
std::make_shared<ChunkedArray>(col_b)};
*out_table_wo_slices = Table::Make(schm, std::move(table_content_wo_slices), size);
});
}
TEST(TestIndicesNonZero, IndicesNonZero) {
Datum actual;
std::shared_ptr<Array> result;
for (const auto& type : NumericTypes()) {
ARROW_SCOPED_TRACE("Input type = ", type->ToString());
ASSERT_OK_AND_ASSIGN(
actual,
CallFunction("indices_nonzero", {ArrayFromJSON(type, "[null, 50, 0, 10]")}));
result = actual.make_array();
AssertArraysEqual(*ArrayFromJSON(uint64(), "[1, 3]"), *result, /*verbose*/ true);
// empty
ASSERT_OK_AND_ASSIGN(actual,
CallFunction("indices_nonzero", {ArrayFromJSON(type, "[]")}));
result = actual.make_array();
AssertArraysEqual(*ArrayFromJSON(uint64(), "[]"), *result, /*verbose*/ true);
// chunked
ChunkedArray chunked_arr(
{ArrayFromJSON(type, "[1, 0, 3]"), ArrayFromJSON(type, "[4, 0, 6]")});
ASSERT_OK_AND_ASSIGN(
actual, CallFunction("indices_nonzero", {static_cast<Datum>(chunked_arr)}));
AssertArraysEqual(*ArrayFromJSON(uint64(), "[0, 2, 3, 5]"), *actual.make_array(),
/*verbose*/ true);
// empty chunked
ChunkedArray chunked_arr_empty({ArrayFromJSON(type, "[1, 0, 3]"),
ArrayFromJSON(type, "[]"),
ArrayFromJSON(type, "[4, 0, 6]")});
ASSERT_OK_AND_ASSIGN(
actual, CallFunction("indices_nonzero", {static_cast<Datum>(chunked_arr_empty)}));
AssertArraysEqual(*ArrayFromJSON(uint64(), "[0, 2, 3, 5]"), *actual.make_array(),
/*verbose*/ true);
}
}
TEST(TestIndicesNonZero, IndicesNonZeroBoolean) {
Datum actual;
std::shared_ptr<Array> result;
// boool
ASSERT_OK_AND_ASSIGN(
actual, CallFunction("indices_nonzero",
{ArrayFromJSON(boolean(), "[null, true, false, true]")}));
result = actual.make_array();
AssertArraysEqual(*result, *ArrayFromJSON(uint64(), "[1, 3]"), /*verbose*/ true);
}
TEST(TestIndicesNonZero, IndicesNonZeroDecimal) {
Datum actual;
std::shared_ptr<Array> result;
for (const auto& decimal_factory : {decimal128, decimal256}) {
ASSERT_OK_AND_ASSIGN(
actual, CallFunction("indices_nonzero",
{DecimalArrayFromJSON(decimal_factory(2, -2),
R"(["12E2",null,"0","0"])")}));
result = actual.make_array();
AssertArraysEqual(*ArrayFromJSON(uint64(), "[0]"), *result, /*verbose*/ true);
ASSERT_OK_AND_ASSIGN(
actual,
CallFunction(
"indices_nonzero",
{DecimalArrayFromJSON(
decimal_factory(6, 9),
R"(["765483.999999999","0.000000000",null,"-987645.000000001"])")}));
result = actual.make_array();
AssertArraysEqual(*ArrayFromJSON(uint64(), "[0, 3]"), *result, /*verbose*/ true);
}
}
} // namespace compute
} // namespace arrow
|
13498098f8604a4135e3d55e79258a25b5f1f6b5
|
06394bc34f4298ddc625ced2ac68530a257810c0
|
/geeks/problems/CheckIfStringIsRotatedByTwoPlaces.cpp
|
a303ad87b0004b492dc58f57e90c68e8836fc9de
|
[] |
no_license
|
dubeyalok7/problems
|
a052e5e06e009a4df40972eb48f204c2193aea3b
|
6e2b74cf7188dcaa26c368ce847a0d0a873f15d0
|
refs/heads/master
| 2020-03-26T05:11:37.206457
| 2019-02-16T18:00:27
| 2019-02-16T20:18:52
| 144,542,942
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 840
|
cpp
|
CheckIfStringIsRotatedByTwoPlaces.cpp
|
/*
* CheckIfStringIsRotatedByTwoPlaces.cpp
*
* Created on: 11-Feb-2019
* Author: napster
*/
#if 0
#include <iostream>
using namespace std;
string leftRotate(string str)
{
string nstr;
for(unsigned int i =2; i< str.length(); i++)
nstr.push_back(str[i]);
nstr.push_back(str[0]);
nstr.push_back(str[1]);
return nstr;
}
string rightRotate(string str)
{
string nstr;
nstr.push_back(str[str.length()-2]);
nstr.push_back(str[str.length()-1]);
for(unsigned int i = 0; i < str.length() - 2; i++)
nstr.push_back(str[i]);
return nstr;
}
int CheckIfStringIsRotatedByTwoPlaces()
{
int T;
cin >> T;
while(T--){
string str1, str2;
string lstr, rstr;
cin >> str1 >> str2;
lstr = leftRotate(str1);
rstr = rightRotate(str1);
cout << ((!str2.compare(lstr)) || (!str2.compare(rstr))) << endl;
}
return 0;
}
#endif
|
37d563b4f9c97cf4bf6e2d209b5dac1ed0017bf5
|
b12b1d880e8a5f769091eafdd8b6fe9572cbd0a3
|
/elasticSearchUI/http.h
|
a954a629748aeb4de87eed3f408f146956afec54
|
[] |
no_license
|
Holycute/ElasticSearchUI
|
d2a3366b074cd80fefa89f7a4abb3290772590bc
|
c3424d78b24d1646809b0c0ade696c27e6cb9fb5
|
refs/heads/master
| 2021-01-21T11:18:31.353878
| 2017-03-02T12:17:00
| 2017-03-02T12:17:00
| 83,547,847
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 407
|
h
|
http.h
|
#pragma once
#include <QtNetwork/qnetworkaccessmanager.h>
#include <QtCore/qstring.h>
#include <QtNetwork/qnetworkrequest.h>
#include <QtNetwork/qnetworkreply.h>
class HTTP: public QObject
{
Q_OBJECT;
QString host;
int port;
QNetworkAccessManager *qHttp;
private slots:
void finshedReply(QNetworkReply *);
public:
HTTP(void);
HTTP(QString host, int port);
void get(QString url);
~HTTP(void);
};
|
54f060f9dd9a9afb79eecaf6ff18b8d08fc18738
|
bb1e4eef5423fb9ecc4af4b29a29c1ba2ad161ae
|
/tests/Input.cpp
|
83ae24df103f19625d1ee0dacd8e56688c032516
|
[
"GPL-1.0-or-later",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] |
permissive
|
marcizhu/Units
|
b2045ee24b3d4f9d295bfcdcfc07a018b8f22909
|
a15c1700593e4ee7da11f6b1870418b778733ef0
|
refs/heads/master
| 2021-12-15T03:10:19.054851
| 2021-11-29T13:43:37
| 2021-11-29T13:43:37
| 230,805,901
| 15
| 1
|
MIT
| 2021-02-22T08:27:27
| 2019-12-29T21:33:54
|
C++
|
UTF-8
|
C++
| false
| false
| 2,612
|
cpp
|
Input.cpp
|
#include "Units/Units.h"
#include "Units/IO.h"
#include "catch2/catch.hpp"
TEST_CASE("Unit input parsing", "[unit][input]")
{
Units::Unit temp = Units::Unit();
SECTION("Basic SI units")
{
temp = Units::to_unit("" ); CHECK(temp != Units::error); CHECK(temp == Units::none);
temp = Units::to_unit("m" ); CHECK(temp != Units::error); CHECK(temp == Units::m );
temp = Units::to_unit("s" ); CHECK(temp != Units::error); CHECK(temp == Units::s );
temp = Units::to_unit("kg" ); CHECK(temp != Units::error); CHECK(temp == Units::kg );
temp = Units::to_unit("mol"); CHECK(temp != Units::error); CHECK(temp == Units::mol);
temp = Units::to_unit("Cd" ); CHECK(temp != Units::error); CHECK(temp == Units::Cd );
temp = Units::to_unit("K" ); CHECK(temp != Units::error); CHECK(temp == Units::K );
temp = Units::to_unit("A" ); CHECK(temp != Units::error); CHECK(temp == Units::A );
}
SECTION("Derived SI units")
{
temp = Units::to_unit("sr" ); CHECK(temp != Units::error); CHECK(temp == Units::sr );
temp = Units::to_unit("Hz" ); CHECK(temp != Units::error); CHECK(temp == Units::Hz );
temp = Units::to_unit("N" ); CHECK(temp != Units::error); CHECK(temp == Units::N );
temp = Units::to_unit("Pa" ); CHECK(temp != Units::error); CHECK(temp == Units::Pa );
temp = Units::to_unit("J" ); CHECK(temp != Units::error); CHECK(temp == Units::J );
temp = Units::to_unit("W" ); CHECK(temp != Units::error); CHECK(temp == Units::W );
temp = Units::to_unit("C" ); CHECK(temp != Units::error); CHECK(temp == Units::C );
temp = Units::to_unit("V" ); CHECK(temp != Units::error); CHECK(temp == Units::V );
temp = Units::to_unit("F" ); CHECK(temp != Units::error); CHECK(temp == Units::F );
temp = Units::to_unit("S" ); CHECK(temp != Units::error); CHECK(temp == Units::S );
temp = Units::to_unit("Wb" ); CHECK(temp != Units::error); CHECK(temp == Units::Wb );
temp = Units::to_unit("T" ); CHECK(temp != Units::error); CHECK(temp == Units::T );
temp = Units::to_unit("H" ); CHECK(temp != Units::error); CHECK(temp == Units::H );
temp = Units::to_unit("lm" ); CHECK(temp != Units::error); CHECK(temp == Units::lm );
temp = Units::to_unit("lx" ); CHECK(temp != Units::error); CHECK(temp == Units::lx );
temp = Units::to_unit("Bq" ); CHECK(temp != Units::error); CHECK(temp == Units::Bq );
temp = Units::to_unit("Gy" ); CHECK(temp != Units::error); CHECK(temp == Units::Gy );
temp = Units::to_unit("Sv" ); CHECK(temp != Units::error); CHECK(temp == Units::Sv );
temp = Units::to_unit("kat"); CHECK(temp != Units::error); CHECK(temp == Units::kat);
}
}
|
9473636106340b8890d610cc890a810685971eaf
|
271a03c29ff5f74f2017cc3e978c0859b00c11c1
|
/BarrageShooting/BarrageShooting/Player.cpp
|
c18fffa9e939e633261b7206a48202ca313055cf
|
[] |
no_license
|
hakase0724/BarrageShooting
|
efc0bd56d8fd41df52dcb68fc36736326c7a3073
|
1b8442a21d6adb545582e6bb268f7d85ba7b2f9b
|
refs/heads/master
| 2020-06-13T03:54:44.150522
| 2019-06-30T14:37:51
| 2019-06-30T14:37:51
| 194,525,646
| 0
| 0
| null | null | null | null |
SHIFT_JIS
|
C++
| false
| false
| 5,596
|
cpp
|
Player.cpp
|
#include "stdafx.h"
#include "Player.h"
#include "Mover.h"
#include <math.h>
#include "DXAnimation.h"
using namespace MyDirectX;
void Player::Initialize(DXGameObject * gameObject)
{
mGameObject = gameObject;
mDXInput = mGameObject->GetDXInput();
auto transform = mGameObject->GetTransform();
mId = mGameObject->GetID();
mGameObject->SetDefaultTransform(transform);
mCoolCount = BULLET_COOL_COUNT;
mWaitCount = mCoolCount;
mHitPoint = 1.0;
}
void Player::Initialize()
{
mGameObject->ResetTransform();
mCoolCount = BULLET_COOL_COUNT;
mWaitCount = mCoolCount;
if (mIsInvincible) mIsInvincible = false;
mHitPoint = mDefaultHitPoint;
mBombNum = 0;
mMaxBombNum = 3;
mPower = 1;
mMaxPower = 4;
mIsLongPush = false;
//移動コンポーネント取得
if (mMover == nullptr) mMover = mGameObject->GetComponent<Mover>();
mRazerWidth = 0.6f;
}
void Player::Update()
{
#if _DEBUG
//エンターキーで無敵モードへ
if (mDXInput->GetKeyDown(DIK_NUMPADENTER))
{
mIsInvincible = true;
mHitPoint = 100;
}
#endif
//毎フレームカウントを行う
mWaitCount++;
//打てるフレームか
mIsShot = false;
//ボム
if (mDXInput->GetKeyDown(DIK_X))
{
Bomb();
}
//ショットボタンが押されているか
if (mDXInput->GetKey(DIK_Z))
{
//発射判定
mIsShot = CanShot();
//長押し判定
mIsLongPush = IsMyLongPush();
if(mIsLongPush)
{
mMover->SetSpeed(0.01f);
}
else
{
mMover->SetSpeed(0.02f);
}
}
else
{
mMover->SetSpeed(0.02f);
//押されていないなら長押しされていない
mIsLongPush = false;
//発射しなかった場合は発射可能状態にしておく
//-1しているのは次の判定では+1して判定するから
mWaitCount = mCoolCount - 1;
//SEをリセットしておく
mGameObject->GetDXResourceManager()->GetSEDXSound()->Stop();
}
if (mIsShot) Shot();
}
void Player::OnCollisionEnter2D(Collider2D* col)
{
auto game = col->GetGameObject();
//アイテムとの衝突ではダメージを受けない
if (game->GetTag() == DynamicInstantiateItem) return;
if (game->GetTag() == StaticInstantiateItem) return;
Damage(1.0);
}
void Player::Damage(double damage)
{
if(!mIsInvincible)
{
mHitPoint -= damage;
}
//体力がなくなったら自身のアクティブを切る
if (mHitPoint <= 0)
{
mGameObject->SetEnable(false);
}
}
void Player::Bomb()
{
//ボムを持っていなければ何もしない
if (mBombNum <= 0) return;
//シーンに登録されているオブジェクトを取得
auto gameObjects = mGameObject->GetScene()->GetGameObjects();
for (auto &game : *gameObjects)
{
//非アクティブなら無視
if (!game->GetEnable()) continue;
auto tag = game->GetTag();
//自機もしくは自弾なら無視
if (tag == PlayerTag) continue;
if (tag == PlayerBullet) continue;
//HPをもっているコンポーネントを取得
auto gameHaveHP = game->GetComponent<IHP>();
//HPがあるならダメージを与える
if (gameHaveHP != nullptr)
{
gameHaveHP->Damage(10.0);
}
//なければアクティブを切る
else
{
game->SetEnable(false);
}
}
mUsedBombNum++;
//使用回数が最大所有数を超えたら最大所有数を更新
if (mUsedBombNum >= mMaxBombNum)
{
mUsedBombNum = 0;
mMaxBombNum++;
}
mBombNum--;
}
void Player::Shot()
{
//長押ししているか
if (mIsLongPush)
{
ShotRazer();
}
//長押ししていない
else
{
ShotBullet();
}
mGameObject->GetDXResourceManager()->GetSEDXSound()->ResetSound();
mGameObject->GetDXResourceManager()->GetSEDXSound()->Play();
}
void Player::ShotBullet()
{
mCoolCount = BULLET_COOL_COUNT;
//弾データ
BULLET_SETTING_DATA data = BULLET_SETTING_DATA();
data.transform = *mGameObject->GetTransform();
data.tag = PlayerBullet;
data.xVectol = 0.0f;
data.yVectol = 0.05f;
data.ScaleRatio(0.3f);
// 弾画像
data.texturePath = BLUE_TO_LIGHTBLUE_BULLET_PATH;
//弾を打つ
for (int i = 0; i < mPower; i++)
{
//弾を出す
auto game = mBulletPool->GetBullet(data);
auto gameTransform = game->GetTransform();
//各弾同士の間隔
auto offset = gameTransform->Scale.x;
//弾同士のオフセット計算
gameTransform->Position.x += offset * (i - (float)mPower / 3.0f);
}
}
void Player::ShotRazer()
{
mCoolCount = RAZER_COOL_COUNT;
mRazerWidth += mAddValue;
//弾データ
BULLET_SETTING_DATA data;
data.pTransform = mGameObject->GetTransform();
data.transform = *mGameObject->GetTransform();
data.transform.Position.y += 0.3f;
data.tag = PlayerBullet;
data.xVectol = 0.0f;
data.yVectol = 0.05f;
data.isXFixed = true;
//横幅を動かせばレーザー打ってるぽくならないかな・・?
if (mRazerWidth < 0.6f) mAddValue = 0.01f;
if (mRazerWidth > 0.7f) mAddValue = -0.01f;
data.scaleXRatio = mRazerWidth;
// 弾画像
data.texturePath = RAZER_PATH;
//弾を出す
mBulletPool->GetBullet(data);
}
bool Player::IsMyLongPush()
{
//既に長押し判定済みなら判定しない
if (mIsLongPush) return true;
//押し始めのフレームか
if (mDXInput->GetKeyDown(DIK_Z))
{
//カウントリセット
mPushFrame = 0;
return false;
}
else
{
//カウントアップ
mPushFrame++;
//長押し判定フレーム数より長い間押してたら
if(mPushFrame > mJudgeLongPushFrame)
{
//カウントリセット
mPushFrame = 0;
return true;
}
}
//押されていない
return false;
}
bool Player::CanShot()
{
if (mWaitCount % mCoolCount == 0)
{
mWaitCount = 0;
return true;
}
else
{
return false;
}
}
|
66e16f400c384e342bc03000aeda63e995a84fa0
|
671204099e6c8016b386303bea6ce79d5e2ae9d2
|
/LightWeightBlackboard_Client/LightWeightBlackboard/roomDlg.h
|
53cbee8f80f644cd204edec68cd0c83a9d897690
|
[] |
no_license
|
GGoMak/LightWeightBlackboard
|
b64e3c8876a80c0afd792fa683d0825bc69fcc3a
|
26d21d624cd09242f2ef36e5acca1c1e237b534d
|
refs/heads/master
| 2022-12-10T16:46:11.918661
| 2020-09-10T17:35:04
| 2020-09-10T17:35:04
| 294,045,789
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 1,244
|
h
|
roomDlg.h
|
#pragma once
// roomDlg 대화 상자
class roomDlg : public CDialogEx
{
DECLARE_DYNAMIC(roomDlg)
public:
roomDlg(CWnd* pParent = nullptr); // 표준 생성자입니다.
virtual ~roomDlg();
// 대화 상자 데이터입니다.
#ifdef AFX_DESIGN_TIME
enum { IDD = IDD_DIALOG2 };
#endif
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 지원입니다.
DECLARE_MESSAGE_MAP()
public:
CListBox chat_list;
CEdit chat_edit;
CEdit file_edit;
CEdit compile_edit;
SOCKET sock;
CWinThread *m_pThread;
bool mod = false;
enum ThreadWorking
{
STOP = 0,
RUNNING = 1,
PAUSE = 2
};
ThreadWorking m_ThreadWorkType;
virtual BOOL OnInitDialog();
void AddEventString(CString ap_string);
void OnLbnSelchangeChatList();
afx_msg void OnBnClickedButton2();
static UINT ThreadFunction(LPVOID _mothod);
bool m_bThreadStart;
afx_msg void OnBnClickedCancel();
afx_msg void OnEnChangeEdit2();
afx_msg void OnBnClickedButton1();
afx_msg void OnBnClickedButton4();
afx_msg void OnBnClickedButton3();
afx_msg void OnBnClickedButton5();
CButton m_cButton_Test1;
afx_msg void OnBnClickedButton6();
afx_msg void OnBnClickedButton7();
};
|
335c39c3b602dbbbcb0b6eba718e15cb50b3960b
|
f743cbf6a802022af45ba99d7630d9ce9a931d05
|
/src/AnalysisBase.cc
|
61210e2e79e7a76894c7b45ced4e719595da4a87
|
[] |
no_license
|
Jphsx/KUEWKinoAnalysis
|
993e78c6f823e183c13961f29cff94cb6d5cb44a
|
9d0a719fc08477a9060e05ca716c40641edd5a96
|
refs/heads/master
| 2020-05-30T08:26:50.637409
| 2019-05-29T18:43:18
| 2019-05-29T18:43:18
| 189,620,560
| 0
| 0
| null | 2019-05-31T15:50:05
| 2019-05-31T15:50:05
| null |
UTF-8
|
C++
| false
| false
| 12,473
|
cc
|
AnalysisBase.cc
|
#include <TH1D.h>
#include <iostream>
#include "AnalysisBase.hh"
#include "ParticleList.hh"
#include "TMatrixDSym.h"
#include "TVectorD.h"
#include "StopNtupleTree.hh"
using namespace std;
template <class Base>
AnalysisBase<Base>::AnalysisBase(TTree* tree)
: Base(tree)
{
m_Nsample = 0;
m_SampleIndex = 0;
m_DoSMS = false;
}
template <class Base>
AnalysisBase<Base>::~AnalysisBase() {}
template <class Base>
string AnalysisBase<Base>::GetEntry(int entry){
if (!Base::fChain) return 0;
Base::fChain->GetEntry(entry);
m_SampleIndex = GetSampleIndex();
return m_IndexToSample[m_SampleIndex];
}
template <class Base>
int AnalysisBase<Base>::GetSampleIndex(){
if(m_Nsample == 0){
m_IndexToSample[0] = "KUAnalysis";
m_IndexToXsec[0] = 1.;
m_IndexToNevent[0] = 1.;
m_IndexToNweight[0] = 1.;
m_Nsample++;
}
return 0;
}
template <class Base>
double AnalysisBase<Base>::GetXsec(){
if(m_Nsample)
return m_IndexToXsec[m_SampleIndex];
else
return 0.;
}
template <class Base>
void AnalysisBase<Base>::AddLabels(const string& dataset, const string& filetag){
m_DataSet = dataset;
m_FileTag = filetag;
}
template <class Base>
void AnalysisBase<Base>::AddEventCountFile(const string& rootfile){
m_NeventTool.BuildMap(rootfile);
}
template <class Base>
double AnalysisBase<Base>::DeltaPhiMin(const vector<TLorentzVector>& JETs, const TVector3& MET, int N){
double dphimin = acos(-1);
int Njet = JETs.size();
for(int i = 0; i < Njet; i++){
if(N > 0 && i >= N) break;
if(fabs(JETs[i].Vect().DeltaPhi(MET)) < dphimin) dphimin = fabs(JETs[i].Vect().DeltaPhi(MET));
}
return dphimin;
}
template <class Base>
double AnalysisBase<Base>::DeltaPhiMin(const vector<pair<TLorentzVector, bool> >& JETs, const TVector3& MET, int N){
double dphimin = acos(-1);
int Njet = JETs.size();
for(int i = 0; i < Njet; i++){
if(N > 0 && i >= N) break;
if(fabs(JETs[i].first.Vect().DeltaPhi(MET)) < dphimin) dphimin = fabs(JETs[i].first.Vect().DeltaPhi(MET));
}
return dphimin;
}
template <class Base>
double AnalysisBase<Base>::GetEventWeight(){
return 0;
}
template <class Base>
TVector3 AnalysisBase<Base>::GetMET(){
return TVector3(0.,0.,0.);
}
template <class Base>
ParticleList AnalysisBase<Base>::GetJets(){
return ParticleList();
}
template <class Base>
ParticleList AnalysisBase<Base>::GetElectrons(){
return ParticleList();
}
template <class Base>
ParticleList AnalysisBase<Base>::GetMuons(){
return ParticleList();
}
template <class Base>
ParticleList GetGenElectrons(){
return ParticleList();
}
template <class Base>
ParticleList GetGenMuons(){
return ParticleList();
}
template <class Base>
ParticleList GetGenNeutrinos(){
return ParticleList();
}
template <class Base>
ParticleList GetGenBosons(){
return ParticleList();
}
template <class Base>
ParticleList GetGenSparticles(){
return ParticleList();
}
template <class Base>
void AnalysisBase<Base>::MomTensorCalc(vector<TLorentzVector>& input, vector<double>& eigenvalues, double power, bool threeD){
eigenvalues.clear();
int N = input.size();
if(threeD){
if(N <= 0){
for(int i = 0; i < 3; i++) eigenvalues.push_back(0.);
return;
}
if(N == 1){
eigenvalues.push_back(1.);
for(int i = 0; i < 2; i++) eigenvalues.push_back(0.);
return;
}
TMatrixDSym momTensor(3);
momTensor.Zero();
double norm = 0.;
double P = 0.;
double pnorm = 0.;
for(int i = 0; i < N; i++){
P = input[i].P();
if( P > 0. ){
norm += pow(P, power);
pnorm = pow(P, power - 2.);
momTensor(0,0) += pnorm*input[i].Px()*input[i].Px();
momTensor(0,1) += pnorm*input[i].Px()*input[i].Py();
momTensor(0,2) += pnorm*input[i].Px()*input[i].Pz();
momTensor(1,0) += pnorm*input[i].Py()*input[i].Px();
momTensor(1,1) += pnorm*input[i].Py()*input[i].Py();
momTensor(1,2) += pnorm*input[i].Py()*input[i].Pz();
momTensor(2,0) += pnorm*input[i].Pz()*input[i].Px();
momTensor(2,1) += pnorm*input[i].Pz()*input[i].Py();
momTensor(2,2) += pnorm*input[i].Pz()*input[i].Pz();
}
}
if(norm > 0.){
momTensor = (1./norm)*momTensor;
TVectorD evalues(3);
momTensor.EigenVectors(evalues);
for(int i = 0; i < 3; i++) eigenvalues.push_back(evalues(i));
return;
} else {
for(int i = 0; i < 3; i++) eigenvalues.push_back(0.);
return;
}
} else { // transverse
if(N <= 0){
for(int i = 0; i < 2; i++) eigenvalues.push_back(0.);
return;
}
if(N == 1){
eigenvalues.push_back(1.);
eigenvalues.push_back(0.);
return;
}
TMatrixDSym momTensor(2);
momTensor.Zero();
double norm = 0.;
double P = 0.;
double pnorm = 0.;
for(int i = 0; i < N; i++){
P = input[i].Pt();
if( P > 0. ){
norm += pow(P, power);
pnorm = pow(P, power - 2.);
momTensor(0,0) += pnorm*input[i].Px()*input[i].Px();
momTensor(0,1) += pnorm*input[i].Px()*input[i].Py();
momTensor(1,0) += pnorm*input[i].Py()*input[i].Px();
momTensor(1,1) += pnorm*input[i].Py()*input[i].Py();
}
}
if(norm > 0.){
momTensor = (1./norm)*momTensor;
TVectorD evalues(2);
momTensor.EigenVectors(evalues);
for(int i = 0; i < 2; i++) eigenvalues.push_back(evalues(i));
return;
} else{
for(int i = 0; i < 2; i++) eigenvalues.push_back(0.);
return;
}
}
}
/////////////////////////////////////////////////
// StopNtupleTree specific methods
/////////////////////////////////////////////////
template <>
int AnalysisBase<StopNtupleTree>::GetSampleIndex(){
if(!m_DoSMS){
if(m_Nsample == 0){
m_IndexToSample[0] = "KUAnalysis";
m_IndexToXsec[0] = m_XsecTool.GetXsec_BKG(m_DataSet);
m_IndexToNevent[0] = m_NeventTool.GetNevent_BKG(m_DataSet, m_FileTag);
m_IndexToNweight[0] = m_NeventTool.GetNweight_BKG(m_DataSet, m_FileTag);
m_Nsample++;
}
return 0;
}
int MP = 0;
int MC = 0;
int Ngen = genDecayPdgIdVec->size();
int PDGID;
for(int i = 0; i < Ngen; i++){
PDGID = fabs(genDecayPdgIdVec->at(i));
if(PDGID > 1000000 && PDGID < 3000000){
int mass = int(genDecayLVec->at(i).M()+0.5);
if(PDGID == 1000022)
MC = mass;
else
if(mass > MP)
MP = mass;
}
}
int hash = 100000*MP + MC;
if(m_HashToIndex.count(hash) == 0){
m_HashToIndex[hash] = m_Nsample;
m_IndexToSample[m_Nsample] = std::string(Form("%d_%d", MP, MC));
m_IndexToXsec[m_Nsample] = m_XsecTool.GetXsec_SMS(m_DataSet, MP);
m_IndexToNevent[m_Nsample] = m_NeventTool.GetNevent_SMS(m_DataSet, m_FileTag, MP, MC);
m_IndexToNweight[m_Nsample] = m_NeventTool.GetNweight_SMS(m_DataSet, m_FileTag, MP, MC);
m_Nsample++;
}
return m_HashToIndex[hash];
}
template <>
double AnalysisBase<StopNtupleTree>::GetEventWeight(){
if(m_IndexToNweight[m_SampleIndex] > 0.)
return (m_USEFLOAT ? evtWeight_f : evtWeight_d)*m_IndexToXsec[m_SampleIndex]/m_IndexToNweight[m_SampleIndex];
else
return 0.;
}
template <>
TVector3 AnalysisBase<StopNtupleTree>::GetMET(){
TVector3 vmet;
if(m_USEFLOAT)
vmet.SetPtEtaPhi(met_f,0.0,metphi_f);
else
vmet.SetPtEtaPhi(met_d,0.0,metphi_d);
return vmet;
}
template <>
TVector3 AnalysisBase<StopNtupleTree>::GetGenMET(){
TVector3 vmet;
vmet.SetPtEtaPhi(genmet,0.0,genmetphi);
return vmet;
}
template <>
ParticleList AnalysisBase<StopNtupleTree>::GetJets(){
ParticleList list;
int Njet = jetsLVec->size();
for(int i = 0; i < Njet; i++){
TLorentzVector JET = (*jetsLVec)[i];
Particle jet;
float mass = JET.M();
if(std::isnan(mass))
mass = 0;
if(std::isinf(mass))
mass = 0;
if(mass < 0.)
mass = 0.;
jet.SetPtEtaPhiM( JET.Pt(), JET.Eta(), JET.Phi(), mass );
jet.SetBtag((*recoJetsBtag_0)[i]);
if(jet.Btag() > 0.9535)
jet.SetParticleID(kTight);
else if(jet.Btag() > 0.8484)
jet.SetParticleID(kMedium);
else if(jet.Btag() > 0.5426)
jet.SetParticleID(kLoose);
jet.SetPDGID( (*recoJetsFlavor)[i] );
list.push_back(jet);
}
return list;
}
template <>
ParticleList AnalysisBase<StopNtupleTree>::GetElectrons(){
ParticleList list;
int N = elesLVec->size();
for(int i = 0; i < N; i++){
Particle lep;
lep.SetVectM((*elesLVec)[i].Vect(),std::max(0.,(*elesLVec)[i].M()));
lep.SetPDGID( (elesCharge->at(i) < 0. ? 13 : -13) );
lep.SetCharge( (elesCharge->at(i) < 0. ? -1 : 1) );
if(tightElectronID->at(i))
lep.SetParticleID(kTight);
else if(mediumElectronID->at(i))
lep.SetParticleID(kMedium);
else if(looseElectronID->at(i))
lep.SetParticleID(kLoose);
else if(vetoElectronID->at(i))
lep.SetParticleID(kVeryLoose);
lep.SetRelIso(elesRelIso->at(i));
lep.SetMiniIso(elesMiniIso->at(i));
list.push_back(lep);
}
return list;
}
template <>
ParticleList AnalysisBase<StopNtupleTree>::GetMuons(){
ParticleList list;
int N = muonsLVec->size();
for(int i = 0; i < N; i++){
Particle lep;
lep.SetVectM((*muonsLVec)[i].Vect(),std::max(0.,(*muonsLVec)[i].M()));
lep.SetPDGID( (muonsCharge->at(i) < 0. ? 15 : -15) );
lep.SetCharge( (muonsCharge->at(i) < 0. ? -1 : 1) );
if(muonsFlagTight->at(i))
lep.SetParticleID(kTight);
else if(muonsFlagMedium->at(i))
lep.SetParticleID(kMedium);
lep.SetRelIso(muonsRelIso->at(i));
lep.SetMiniIso(muonsMiniIso->at(i));
list.push_back(lep);
}
return list;
}
template <>
ParticleList AnalysisBase<StopNtupleTree>::GetGenElectrons(){
ParticleList list;
int N = genDecayPdgIdVec->size();
int PDGID;
for(int i = 0; i < N; i++){
PDGID = genDecayPdgIdVec->at(i);
if(abs(PDGID) == 13){
Particle lep;
lep.SetPDGID(PDGID);
int mom = genDecayMomRefVec->at(i);
if(mom >= 0 && mom < N)
lep.SetMomPDGID(genDecayPdgIdVec->at(mom));
lep.SetCharge( (PDGID > 0 ? -1 : 1) );
lep.SetVectM((*genDecayLVec)[i].Vect(),max(0.,(*genDecayLVec)[i].M()));
list.push_back(lep);
}
}
return list;
}
template <>
ParticleList AnalysisBase<StopNtupleTree>::GetGenMuons(){
ParticleList list;
int N = genDecayPdgIdVec->size();
int PDGID;
for(int i = 0; i < N; i++){
PDGID = genDecayPdgIdVec->at(i);
if(abs(PDGID) == 15){
Particle lep;
lep.SetPDGID(PDGID);
int mom = genDecayMomRefVec->at(i);
if(mom >= 0 && mom < N)
lep.SetMomPDGID(genDecayPdgIdVec->at(mom));
lep.SetCharge( (PDGID > 0 ? -1 : 1) );
lep.SetVectM((*genDecayLVec)[i].Vect(),std::max(0.,(*genDecayLVec)[i].M()));
list.push_back(lep);
}
}
return list;
}
template <>
ParticleList AnalysisBase<StopNtupleTree>::GetGenNeutrinos(){
ParticleList list;
int N = genDecayPdgIdVec->size();
int PDGID;
for(int i = 0; i < N; i++){
PDGID = genDecayPdgIdVec->at(i);
if(abs(PDGID) == 12 || abs(PDGID) == 14 || abs(PDGID) == 16){
Particle lep;
lep.SetPDGID(PDGID);
int mom = genDecayMomRefVec->at(i);
if(mom >= 0 && mom < N)
lep.SetMomPDGID(genDecayPdgIdVec->at(mom));
lep.SetVectM((*genDecayLVec)[i].Vect(),(*genDecayLVec)[i].M());
list.push_back(lep);
}
}
return list;
}
template <>
ParticleList AnalysisBase<StopNtupleTree>::GetGenBosons(){
ParticleList list;
int N = genDecayPdgIdVec->size();
int PDGID;
for(int i = 0; i < N; i++){
PDGID = genDecayPdgIdVec->at(i);
if(abs(PDGID) == 23 || abs(PDGID) == 24 || abs(PDGID) == 25){
Particle p;
p.SetPDGID(PDGID);
int mom = genDecayMomRefVec->at(i);
if(mom >= 0 && mom < N)
p.SetMomPDGID(genDecayPdgIdVec->at(mom));
p.SetVectM((*genDecayLVec)[i].Vect(),(*genDecayLVec)[i].M());
list.push_back(p);
}
}
return list;
}
template <>
ParticleList AnalysisBase<StopNtupleTree>::GetGenSparticles(){
ParticleList list;
int N = genDecayPdgIdVec->size();
int PDGID;
for(int i = 0; i < N; i++){
PDGID = genDecayPdgIdVec->at(i);
if(abs(PDGID) >= 1000000 && abs(PDGID) < 3000000){
Particle p;
p.SetPDGID(PDGID);
int mom = genDecayMomRefVec->at(i);
if(mom >= 0 && mom < N)
p.SetMomPDGID(genDecayPdgIdVec->at(mom));
p.SetVectM((*genDecayLVec)[i].Vect(),(*genDecayLVec)[i].M());
list.push_back(p);
}
}
return list;
}
template class AnalysisBase<StopNtupleTree>;
|
a2ff22192b732e8d126ebc94cb59be1a7ad96293
|
3fd3387adf63c1f0918fe85e25151dd93dd5229e
|
/cpp/Part02/chapter04/Construct.cpp
|
a01e84ed27d74cc1f5671883000cabddefb17695
|
[] |
no_license
|
AhnWoojin-sys/Cstudy
|
d803dea90af5053827ce96f4f5c54ab735bc59f6
|
c0bf51d0b4c082a919d02ff63759e549876c39f6
|
refs/heads/main
| 2023-01-31T17:43:35.906167
| 2020-11-17T10:32:11
| 2020-11-17T10:32:11
| 308,801,773
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 606
|
cpp
|
Construct.cpp
|
#include <iostream>
using namespace std;
class SimpleClass{
private:
int num1;
int num2;
public:
SimpleClass();
SimpleClass(int n1, int n2);
void ShowMembers();
};
SimpleClass::SimpleClass(){
num1 = 100;
num2 = 200;
}
SimpleClass::SimpleClass(int n1, int n2){
num1 = n1;
num2 = n2;
}
void SimpleClass::ShowMembers(){
cout<<"num1 : "<<num1<<endl;
cout<<"num2 : "<<num2<<endl;
}
int main(void){
SimpleClass simple;
SimpleClass simple2(1000, 2000);
simple.ShowMembers();
simple2.ShowMembers();
return 0;
}
|
9b83298189e17a6f14e8abe120432e172f4f5904
|
03220a7e03aff025b4b56fe0917877a7b6ceca69
|
/code forces/688/C.cpp
|
525cc4659c1916fba8725c8a080b4482e3b520a5
|
[] |
no_license
|
kaestro/algorithms_v2
|
8cce9f29b6a7d965e3dfd8a43616875168dff07f
|
0659c00d087456b5c46092d14e1ff6982855cb73
|
refs/heads/master
| 2021-03-28T10:08:37.160829
| 2021-03-18T04:50:05
| 2021-03-18T04:50:05
| 247,856,011
| 0
| 0
| null | 2020-04-26T10:32:22
| 2020-03-17T01:54:42
|
Python
|
UTF-8
|
C++
| false
| false
| 4,236
|
cpp
|
C.cpp
|
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
using namespace std;
using vi = vector<int>;
using vvi = vector<vi>;
class Points {
public:
Points(int num, int matSize) {
this->num = num;
pointsByRow = vvi(matSize);
pointsByCol = vvi(matSize);
pointsCnt = 0;
}
int num;
vvi pointsByRow;
vvi pointsByCol;
int pointsCnt;
};
int main() {
int t;
cin >> t;
while (t--) {
int n;
cin >> n;
vector<string> matrix;
vector<Points> vPoints;
for (int i = 0; i < 10; ++i) {
vPoints.push_back(Points(i, n));
}
matrix.reserve(n);
for (int i = 0; i < n; ++i) {
string num;
cin >> num;
matrix.push_back(num);
}
for (int i = 0; i < n; ++i) {
string& row = matrix[i];
for (int j = 0; j < n; ++j) {
int num = row[j] - '0';
vPoints[num].pointsCnt++;
vPoints[num].pointsByRow[i].push_back(j);
vPoints[num].pointsByCol[j].push_back(i);
}
}
vector<int> ans;
for (auto& points : vPoints) {
if (points.pointsCnt < 2) {
ans.push_back(0);
continue;
}
int maxSize = 0;
int num = points.num;
for (int i = 0; i < n; ++i) {
auto& row = points.pointsByRow[i];
if (row.size() == 0) continue;
int row_len;
int col_len;
if (row.size() == 1) {
row_len = max(abs(0 - row[0]), n - row[0] - 1);
col_len = 0;
for (int j = 0; j < n; ++j) {
if (points.pointsByRow[j].empty()) continue;
col_len = max(col_len, abs(j - i));
}
maxSize = max(maxSize, row_len * col_len);
} else {
row_len = row.back() - row.front();
col_len = max(i - 0, n - i - 1);
maxSize = max(maxSize, row_len * col_len);
if (points.pointsCnt != row.size()) {
row_len = max(row.back(), n - row.front() - 1);
col_len = 0;
for (int j = 0; j < n; ++j) {
if (points.pointsByRow[j].empty()) continue;
col_len = max(col_len, abs(j - i));
}
maxSize = max(maxSize, row_len * col_len);
}
}
}
for (int i = 0; i < n; ++i) {
auto& row = points.pointsByCol[i];
if (row.size() == 0) continue;
int row_len;
int col_len;
if (row.size() == 1) {
row_len = max(abs(0 - row[0]), n - row[0] - 1);
col_len = 0;
for (int j = 0; j < n; ++j) {
if (points.pointsByCol[j].empty()) continue;
col_len = max(col_len, abs(j - i));
}
maxSize = max(maxSize, row_len * col_len);
} else {
row_len = row.back() - row.front();
col_len = max(i - 0, n - i - 1);
maxSize = max(maxSize, row_len * col_len);
if (points.pointsCnt != row.size()) {
row_len = max(row.back(), n - row.front() - 1);
col_len = 0;
for (int j = 0; j < n; ++j) {
if (points.pointsByCol[j].empty()) continue;
col_len = max(col_len, abs(j - i));
}
maxSize = max(maxSize, row_len * col_len);
}
}
}
ans.push_back(maxSize);
}
for (auto num : ans) {
cout << num << " ";
}
cout << endl;
}
return 0;
}
|
dd7411188a05d943d4a004c6c799142de3a8b5c8
|
17019d2108dc261bd6249425b4d57b1d4a56a3de
|
/GameMario/05-ScenceManager/IntroBackgroundSuper.h
|
3b7bba223b8d011e0ad42bc61e07ef446c385cfc
|
[] |
no_license
|
ducnpdev/gameSuperMario
|
3b10662ffe4c6dc203a7562adde3539052384d2e
|
7ae2c8452853e9d095046ca083b6cdc0e8eae862
|
refs/heads/master
| 2023-02-15T00:49:30.448549
| 2021-01-14T16:06:16
| 2021-01-14T16:06:16
| 321,370,113
| 1
| 0
| null | 2020-12-20T05:10:43
| 2020-12-14T14:17:37
|
C++
|
UTF-8
|
C++
| false
| false
| 495
|
h
|
IntroBackgroundSuper.h
|
#pragma once
#include "GameObject.h"
#include "Define.h"
#include "Utils.h"
#include "BrickFloor.h"
#include "IntroPlayerSecond.h"
class CIntroBackgroundSuper : public CGameObject
{
int type;
int breakPosY;
DWORD initTime;
public:
CIntroBackgroundSuper(int type, int breakPosY);
virtual void Update(DWORD dt, vector<LPGAMEOBJECT>* coObjects);
virtual void Render();
virtual void GetBoundingBox(float &left, float &top, float &right, float &bottom);
virtual void SetState(int state);
};
|
deb463b936032d2ae6bc25a9cf6d7c2a5f9d05e4
|
518948e597be42fef377ccb7f18bd5957b0e2b37
|
/src/test-scene-2.hpp
|
b752585286f674049c89e045bc5924558d4a2dcd
|
[] |
no_license
|
forenoonwatch/new-engine
|
11c20e1e75ecdc0e0f0f8a5f9ddc6f74061d0de7
|
090c3d36a3d47e0790151f8f8e25524f54e1c1c2
|
refs/heads/master
| 2023-08-18T22:17:19.613707
| 2021-10-12T15:51:14
| 2021-10-12T15:51:14
| 415,331,235
| 0
| 0
| null | null | null | null |
UTF-8
|
C++
| false
| false
| 565
|
hpp
|
test-scene-2.hpp
|
#pragma once
#include "scene.hpp"
#include "gamecs/renderable-mesh.hpp"
#include "terrain/water.hpp"
class SpinSystem : public BaseECSSystem {
public:
SpinSystem(GameRenderContext& rc)
: BaseECSSystem()
, counter(0)
, rc(rc) {
addComponentType(TransformComponent::ID);
addComponentType(RenderableMeshComponent::ID);
}
virtual void updateComponents(float delta, BaseECSComponent** components) override;
private:
float counter;
GameRenderContext& rc;
};
class TestScene2 : public Scene {
public:
virtual int load(Game& game);
};
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.